sd-card

Able to insert passed image value into sdcard?

As asked, is it possible? Here's part of my code. I don't know how to change it, please help me! Bundle b = New_Entry.this.getIntent().getExtras(); String s1 = b.getString("image"); try { new File("/sdcard/myImages").mkdirs(); InputStream in = getResources().openRawResource(imageSID[position]); File f2 = new File("/sdcard/myima...

android intent for sdcard ready

I have an application that uses a file on the SD card, the application runs when the phone boots, and it has become apparent that the file cannot be accessed when the program is first run as it starts working before SD card is avaliable. Is there an broadcast receiver I can use to tell when the SD card is ready? Update Just to summar...

Android- SDCard

I am currently working on Windows with android 2.2. I am trying to create an SDCard for the Emulator. I have created Sdcard.iso. I am trying to pull songs and videos into it. But I do no how to do it. ...

Is it possible to move the internal DB to the SDCard?

As the database in my app grows, it is going to require more and more of the internal phone space. There isn't any sensitive/private data in the DB, so I'm interested in moving it to the SD card. I'm using SQLiteOpenHelper to assist with the database work. It's my understanding that you can't use this for DB-access on the SD card as you...

Where to place the resources of her application so that they are installed on the SD card ?

Hello everybody, I have big files to integrate into my application (videos), and thus for not not that my application occupies all the internal memory of the telephones, I saw that it was possible with Froyo to install the applications on the SD card. I thus have to test this solution and my application settles down well on the SD card...

Detect drive letter of SD card hardware

Is there a way to programatically detect the driver letter of an SD card(s) on Windows? Does the method support internal and external SD card hardware? Thank you for your time. ...

Android Force Mount USB Storage when SD card is formatted to HFS+

I'm not exactly sure if this is the best place for this topic but here goes.. I've reformatted my Android SD card (16GB) to HFS+ format, and pushed a Mac OS X 10.6 boot image (from a .dmg file) onto the card. I did this because I don't want to go out and buy a DL DVD-R to reinstall my operating system, and because it's a nice little exp...

Internal memory vs. external storage in Android

I've started seeing some apps that offer to read/write data to the internal phone memory (like Super KO Boxing 2, which offers to save a whopping 52MB to the phone memory). I suppose this is because newer Android devices have a lot of internal storage, as opposed to my devices, which have very little. I would like to support internal s...

TableLayout background from sdcard

hey :) I want to put a background image in may java file from an image stored on the sdcard. I use the code below but with no success :/ TableLayout tl=new TableLayout(this); int tmp = this.getResources().getIdentifier("sdcard/pic.png", "drawable", getPackageName()); tl.setBackgroundResource(tmp); an idea ? ...

Convert View to bitmap FileNotFoundException problem

I'm trying to convert my LinearLayout to a bitmap so that I can save the current layout content as an image in SD card. First, I create bitmap and canvas and attach the layout to the canvas. Followed steps from http://www.brighthub.com/mobile/google-android/articles/30676.aspx#comments. //code to add child view into layout before creat...

anyone know of a utility that can be used to test sd card quality?

anyone know of a utility that can be used to test sd card quality? ...

Unable to cd do sdcard with adb after update to Froyo

My application takes a picture and saves to the sdcard. It worked fine on Android 2.1, but I just upgraded to Froyo and now I'm getting: ERROR/CameraPreview(28216): Problem taking picture WARN/System.err(28216): java.io.FileNotFoundException: /mnt/sdcard/silviaterra/temp.jpg (Permission denied) WARN/System.err(28216): at org.apache...

How to get the available space on Android sdcard?

I am using Environment.getExternalStorageDirectory() to create a file and I will need to know if there is enough space available before I create and store the file. If you can cite the Android Ref doc, that would be helpful too. ...

FileNotFoundException + Writing a File to SD Card

I am trying to download a file from the net and write it to the SD card. I have the WRITE_EXTERNAL_STORAGE permission enabled. The code fails here: OutputStream output = new FileOutputStream(filePath); 09-15 19:40:31.630: WARN/System.err(7933): java.io.FileNotFoundException: /sdcard/artoo/Customerv08.apk 09-15 19:40:31.630: WARN/System...

SD card writing fails?

Can someone please tell me where I'm going wrong with this piece of code? Basically I want the app to download a .png file, display it to the user and also save it to the sd card for future reference. It seems to be all going fine until the while ((len = webstream.read(buffer)) > 0) part; as the debugger doesn't reach the breakpoint I've...

Downloading Image to SD Card in Service fails (Android)

I created a separate project and activity that downloads an image from a URL, converts it to a Bitmap, and then uses a FileOutputStream to save that file to the SD card. When in the separate project and free-standing activity, this worked fine, and I could see that the image is stored on the SD card. public class PictureDownload extends...

Move to SD Card

I've been following the post: http://tut7.com/2010/06/15/quick-tip-enabling-the-android-%E2%80%9Cmove-to-sd-card%E2%80%9D-feature/comment-page-1/#comment-6766 (even tried to post a comment but it's been awaiting moderation forever)... I'm trying to target Android 1.6-2.2 OSs and after applying your Build Target I get the following warni...

Where does the Android Emulator store the SD-Card files?

I want to make two emulators use the same SD-Card image. I automatically created a SD-Card in the first emulator and downloaded all the data to this SD-Card. How can I load this SD-Card in another emulator? I don't want to recreate all the data on the SD-Card for every single emulator all the time. ...

Permission to write on SD card android

EDIT: Problem solved, FileOutputStream defined uncorrectly, change to: fos = new FileOutputStream( root + "/" + saveFileName ); Hello, I have a problem writing to the SD card, here is the code: (Sorry about the layout of the code, just copy pased it ) public class SaveAndReadManager { private String result; private String saveFileN...

Restart Service for App on SD Card When SD Card Is Remounted

Due to overwhelming user complaints I have decided try allowing users of my Android application to move it to the SD card as per the official documentation. However, a core feature of my application requires a background service to be continuously running. When someone who has moved my app to their SD card mounts their SD card for what...