sd-card

Installing Android App Without SD Card

情到浓时终转凉″ 提交于 2019-12-22 04:17:29
问题 I uploaded an apk file to a web server and attempted to access the link from the browser on the phone. When I attempt to download from that link I receive an error message that reads "An SD card is required to download." I do not have an SD card installed, but the internal memory is not full, so I would expect the app to install to internal memory. The obvious solution is to install an SD Card. Putting an SD card in the device does allow the app to install. So, the question is why is this

I need to be able to store sound files for my application on sdcard

删除回忆录丶 提交于 2019-12-22 00:27:53
问题 I've read a lot of topics but none seem to cover what I need. I basically have a load of sound files and I want to be able to play them in the application from the sdcard. I also want to be able to install them there in the first place when the application is installed. I am using Eclipse with the android SDK and currently my Target project is v1.6 Can anyone help? Thanks 回答1: OK so I found the answer! First we need to get the external Storage Directory to a variable called baseDir. String

Need help correctly emulating the Samsung Galaxy Nexus with AVD

风流意气都作罢 提交于 2019-12-21 17:24:12
问题 I'm working to ensure my app is getting tested on ICS properly using the popular Galaxy Nexus as a basis. I'd like to emulate it as faithfully as possible. I've created an AVD with the following parameters (from config.ini). This was mostly created using the GUI (disk.dataPartition.size is a hand-edited param based on other articles I've read). The memory values may be on the low side but that's not causing a problem for me at the moment. Since the device had no external sdcard I've said "no"

How to open local PDF file in PhoneGap (android)

非 Y 不嫁゛ 提交于 2019-12-21 14:12:31
问题 I'm trying to open a local PDF file stored in the sdcard. I tried everything possible but nothing seems to work. I tried to open the pdf using the anchor tag with external and _blank attribute. I as well tried to "WebIntent, an Android PhoneGap Plugin". But was not able to succeed. I'm sure i have missed something in the manifest xml file. I'm not more into backend development. Any help will be appreciated. Thanks in advance 回答1: Here the answer : http://giovesoft.blogspot.com/2011/08

Android - How to start an application on the /sdcard after boot

三世轮回 提交于 2019-12-21 06:57:17
问题 Is there a way how to start and android application after a boot automatically if it is on the /sdcard ? Ok, probably by BroadcastReceiver . But which action is the right one? ACTION_BOOT_COMPLETED - does not work if it is on the /sdcard (documented) ACTION_MEDIA_MOUNTED - does not work if it is on the /sdcard (which is undocumented) ACTION_EXTERNAL_APPLICATIONS_AVAILABLE - does not work, I do not know why ACTION_USER_PRESENT - does not work if the BroadcastReceiver is registered in

how to save view as an image to the SD card

对着背影说爱祢 提交于 2019-12-21 06:00:43
问题 My app creates a puzzle grid using table layout, tablerows and textviews. I want a user to be able to save this grid to the SD card so that it can be printed or copied or loaded onto another device. How do you save a view so that when it's printed it will look like it does on the android screen? 来源: https://stackoverflow.com/questions/4080133/how-to-save-view-as-an-image-to-the-sd-card

Storing data on SD Card in Android

和自甴很熟 提交于 2019-12-21 04:26:08
问题 Using the data-storage page in the docs, I've tried to store some data to the SD-Card. This is my code: // Path to write files to String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Android/data/"+ctxt.getString(R.string.package_name)+"/files/"; String fname = "mytest.txt"; // Current state of the external media String extState = Environment.getExternalStorageState(); // External media can be written onto if (extState.equals(Environment.MEDIA_MOUNTED)) { try { //

Creating a zip file with some files on SDCard

最后都变了- 提交于 2019-12-20 12:37:19
问题 As I posted a question a few days ago, I realized thet the stock eMail app couldn't send multiple files in attachment: https://stackoverflow.com/questions/5773006/sending-email-with-multiple-attachement-fail-with-default-email-android-app-but Unfortunately, I got no answer on it, so need to find a workaround. The user has to select in a list some pdf and send them by email with stock app. As the multiple attachment fail, I will create a zip file with all the requested files and sent this

how to upload images from sd card by picking over them in android

旧巷老猫 提交于 2019-12-20 03:48:06
问题 in my app i am trying to send images to a server that are stored in sd card. When i click a button it opens the sd card and shows the image in a grid view. From that the i want to upload the image which i am touching on it. I know to upload an image to a server, but i dont know to select an image from the sd card please help me..... Following is my code.... public void library() { Intent myIntent = new Intent(); myIntent.setType("image/*"); myIntent.setAction(Intent.ACTION_GET_CONTENT);

Is it possible to save database file to SD card? [duplicate]

假如想象 提交于 2019-12-19 11:25:00
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Is it possible to copy database file to SD card? I have a database on my Android phone, and I need to get the information onto an SD card. Is it possible to save the database file onto the SD card in a readable state? I haven't been able to find any information on how to do this. I know the name of the database, and fields etc... I've found some examples that show how to save to SD cards, but not exactly what I