Android :: Programmatic SD Card Mounting / Unmounting
Mar 1, 2010
I'm wondering how programmatic sd card mounting/unmounting can be achieved while the handset is connected to a pc via USB. I cannot find any managed API for that and also my jni attempts failed with errno: 1, [Operation not permitted] error.
View 1 Replies
Feb 25, 2010
I am in the process of rooting my phone. What does "unmounting" the sd card and "mounting" it mean? I get that it means taking it out of the phone and in, but is there a certain way of doing it? I have my phone plugged in the computer right now, so can I just take the micro sd card out? Or can I just take it out whenever?And when I put it back in, is there a certain way to do that?Sorry for such a dumb question, I just want to be sure I do everything right!
View 24 Replies
View Related
Jan 31, 2012
I was playing with my htc evo 3d and popped the sd card out without unmounting it...i freaked out turned it off...got it back in turned it on and my icon themes were broken and most of my pics were broken...i factory reset the phone and formatted the sd card...now it doesnt run media scanner on start up or on sd card install...and the external_sd folder doesnt show up in astro file manager...
View 3 Replies
View Related
Sep 3, 2010
Hi has anyone else had a problem with the SD card unmounting all the time,i've used 3 cards now and they all seem to do the same thing?
View 48 Replies
View Related
Sep 15, 2010
I want to mount SD card programmatic, how can I check?
View 1 Replies
View Related
Nov 10, 2008
Not sure if it happened with the RC29 or RC30 update but they removed the setting option to "Allow File Browsing on Computer"(or something like that) from the SD Card Settings menu. I just got both updates pretty close together and I couldn't figure out why the phone wasn't showing as a Removable Disk in My Computer.Well, now when you connect the phone you will see a USB icon show up in your notifications bar. You have to select that and choose to "Mount" the phone/card. Done.Still not sure if I like the new way. Seems like unnecessary extra clicks to have to choose this option each time you connect the phone. What do you guys think?
View 5 Replies
View Related
Jan 17, 2010
I have a program that uses the SD card, so I want to be informed if the state of the card changes by registering a listener if possible. I'm aware of the Environment class and its methods, but I don't really want to be constantly polling the state. I'd rather not have my program force close when running cause someone mounted the sd card to their computer.
View 1 Replies
View Related
Sep 19, 2010
Didn't have a problem with this before on my EVO and can't recall any settings I might have changed to cause this problem but when I choose the "Disk Drive" connection for "Connect to PC" it takes a long while (minute or so) for the drive to mount. I have the default connection to "Charge Only" but when connected to my computer and I choose the "Disk Drive" option the mount is SLOW. It SEEMS to get a bit quicker if I RE-choose "Charge Only" and then go back to "Disk Drive" to mount the SD card, however, like I said above, it is MUCH SLOWER than before. I used to choose the Disk Drive option and the mount would occur RIGHT AWAY. But not it is slow.
I have installed various apps over the weeks but only recently experienced this slowness. I recall some information about USB debugging conflicting with the SD mount but that option is turned OFF on my phone. Anyone know of any apps that might be known to conflict with the SD mount?
View 10 Replies
View Related
Sep 16, 2010
I have a rooted evo, fresh 3.2, and noticed this morning that my sdcard wasnt mounting, so i did a hard reset and now am stuck in a bootloop, i can enter recovery and bootloader, but since sdcard is not mounting can not preform a nand restore any ideas?
View 2 Replies
View Related
May 19, 2010
I have the Droid Eris 2.1 and today all of the sudden I cant save to my sd card. I can open it fine on the PC and drop files in it. The error says to make sure it is mounted correctly, i have done that and rebooted.
View 4 Replies
View Related
Aug 31, 2010
Has anyone else had any issues with their Droid 2 refusing to realize that there's an SD card inserted? I went through basic troubleshooting steps for this:
1) try a different SD card - no dice
2) format the SD card - again, nothing
3) factory phone reset - nothing
I have 3 cards: a 2gb, an 8gb and a 16gb. the 16 is what I had in my Droid 1 and it had no issues whatsoever!
View 10 Replies
View Related
Oct 26, 2009
Lately, my HTC Magic with Android 1.5 suffering problem of unmounting SD card whenever boot up, or leave running for a while.I'd installed a couple of apps lately, but now, I'm not sure what's wrong with my phone.I don't want to Reset to Factory Settings. Is there anyway I could pinpoint what's wrong with my phone?
View 5 Replies
View Related
Nov 15, 2010
I have been mounting my phone with my pc for quite awhile, then one day, it decided to be difficult. At first it took a couple, replugs to get it to recognize the SD card. Then, It stopped recognizing it at all. Depending on what USB port I use, I get different results from I/O error, to device not recognized.
Things I have tried:
-Every driver known to mankind.
-Plugging in every single usb port on the computer (including mobo)
-Disconnecting every usb device except for the phone
-Formatting the SD card (lost my photos forgot they were on there)
-Only used STOCK cable.
I'm out of ideas, and sprint claims this is not a problem with the phone on all the forum posts I've seen with similar problems. Has anyone actually found a solution for this other than thinking plugging it in the back of the computer actually fixes anything?
View 5 Replies
View Related
Jun 9, 2010
I have the latest Motorola drivers on two different laptops, but sometimes my SD fails to mount on the PC when I plug it into the USB. I am able to mount most of the time and do normal file operations, no problem. But sometimes I go into failure mode where no matter what I try the SD won't mount. I try rebooting the phone and laptop, trying my other laptop, uninstalling an app I suspect is causing a problem, but probably isn't, etc. Then, sometime later, for no apparent reason, I'll plug the phone into the laptop and suddenly it's working again. I see threads about SD mounting difficulties, but none that address an intermittent problem like I'm having. Any ideas about diagnostics, fixes, or preventive measures?
When it fails to mount, the symptom is that with many attempts, the phone will make the mounting sound repeatedly, but never mounts. Other times, it makes the sound once, as if it succeeded, but it doesn't mount. I've checked the log with aLogcat, but I see nothing that I can tell might be informative, but then I'm not an expert with that stuff.
I must say, the error is really vexing. Mounting works well enough to use the SD card for transferring files, but then just when you need it (to transfer something back) it fails.
View 7 Replies
View Related
Nov 12, 2010
I just picked up a Moto Droid X coming from the Droid Eris what a difference.For some reason it takes a very long time for my Win Vista laptop to be able to connect to the SD card. When I pull down the notifications bar and select USB storage, it takes about 5 minutes for the process to complete?I have checked to see if the Droid X has issues on a WinXP machine and it mounts right away. I have downloaded the Moto drivers, but wondering if anyone else has had issues with Win Vista.
View 2 Replies
View Related
Nov 1, 2009
Am I missing something? How do I make it where the laptop will see the moment? I don't see a place for mounting the sd card, only unmounting?
View 49 Replies
View Related
Feb 20, 2010
I have a HTC hero and Im having trouble "mounting" my sd card to my computer.Im running a windows 7 64 OS and have downloaded the HTC software update for my computer. I can now sync my phone but i cant get my pictures from my phone to my laptop. it shows the removable device for a second or two then disappears!
View 12 Replies
View Related
May 11, 2014
I have an LG Gpad 8.3 and its running on kitkat. I purchased a 32GB SD card to store some movies on so my son can watch them on our trip. I purchased a samsung 32GB SDHC card. I was under the impression that the HC was just for high capacity and that it would work in my device. I did not format it as I dont have a micro sd to sd card adapter. (have to stop on the way home today and get one). I popped it into my tablet and it recognized it. I actually saved a few pictures and one movie to it to make sure it was going to work. I set it up to transfer about 8 movies from my mac using the android file transfer client. It was all going smooth with only about 2 movies left when the card suddenly became "unmounted" and now it no longer will see it. Is the card toast?
1) if the MSDHC card is even compatible with my device as it doesn't say that anywhere, just microsd.
2)do I need to reformat it with a windows computer to a fat 32 file system and start over
3) did I kill the card by trying to transfer too much at once..(ie large files that would have taken about 1.5 hrs to transfer
View 8 Replies
View Related
Feb 12, 2014
I'm using celkon a112 smart phone i had rooted my phone with framaroot app and i had installed rom manger when I was changing font of system my phone stopped working now its stuck on boot loop i have tried installed cwm recovery but there's no option for mounting sd card to apply the zip file so any solution for mounting my extsd card.
View 2 Replies
View Related
Sep 7, 2010
Just updated to 2.2 and phone/sd card will mount to pc but then it randomly acts like it has been unplugged and plugged by in. For instance I was copying a 1gb file from the phone to the sd card and it was copying for all of 20 seconds then it was gone then it was back and wanted to know if I wanted to copy over the existing files that had been transfered before the disconnect (or whatever). It does this on both the sd card and the phone memory; anyone else have this problem? Have a solution? Oh, and this is done over the same usb cable I have been using for months without the slightest problem.
View 10 Replies
View Related
Aug 23, 2010
I was trying to install the latest Froyo update on my new galaxy i9000 and ran into problems. The update was JP3. First the phone kept on flashing i.e. screen off and on. and then i had to reboot the phone and same problem. I tried to flash it again with odin but this time I got an error message:
Update Media please wait
E:Can't mount /dev/block/mmcblk0p1 (or /dev/block/mmcblk0) (No such file or directory) E:copy_dbdata_media:Can't mount SDCARD:"
Your storage not prepared yet, please use UI menu for format and reboot actions
copy default media content failed.
When I boot it moves past the Galaxy I9000m screen shows me the galaxy screen with animation and sound, the screen then goes of leaving me with a black screen and the buttons lit.
Now, no matter what I do I kept on getting this message. I have a feeling that somehow it messed up the internal sd card of my device.
Is there a way I could repartition my card (if that would solve it) and then reinstall a froyo 2.2 update.
View 3 Replies
View Related
May 2, 2013
I am using SGS2 i9100g.
I have flashed from CM10.0, JB4.1.2 to pacman 3.00, JB4.2.2
ISSUES:
1. error mounting emmc and cannot detect external sd card
2. When i want to use camera or gallery, there is an error saying "No external storage available"
Attempted solutions:
I have tried the following but it does not solve my problem
1. re-flash the custom rom and gapps. (full wipe with wipe cache and dalvik cache)
2. reformatted my sd card to fat32.
3. went to recovery to unmount and remount my external sd card
4. tried to mount emmc in recovery but returns an error "error mounting emmc"
5. off and on and also rebooted my smartphone
6. tried these codes shown at the bottom(to manual remount)
- I have a storage folder which has sdcard0 which contains nothing, sdcard1 which contains my file in my external sd card and a usbdisk0 contains nothing also.
- Now i am not sure which is the cause of the problem where i cannot use my camera phone and gallery
View 2 Replies
View Related
Nov 17, 2009
i'm having trouble mounting my SD card.My computer found the device when i first plugged it up but the drive is not showing up for me to drag files to.I'm trying to drag some pictures onto my SD card
View 2 Replies
View Related
Jul 10, 2010
SD Card mounting via a front USB port stopped me typing under Ubuntu Lucid!
Plugging in via the front usb's stopped me typing!
Also other weird behaviour.
I was actually plugging the mouse in via PS2 to stop the issues I was having.
Ubuntu 10.04 Lucid 64bit, HTC Desire.
View 6 Replies
View Related
Aug 4, 2009
How can I take a screenshot programmatically? So far I've learned that:
1) DDMS does it by sending "framebuffer:" to the adb service over a socket, which takes a screenshot in framebuffer_service.c that it sends back.
2) There are some proprietary screenshot apps out there that stipulate the user must have root access, I'm not sure why.
Would it be possible for an Android app to send "framebuffer:" to its own adb service and get the screenshot that way?
View 7 Replies
View Related
Apr 1, 2010
Has anyone seen or compiled benchmarks comparing declarative (XML) versus programmatically created UI's in Android? There are things that Google has done to speed up the declarative approach, but you still do have the layout inflation step done at runtime. Have you ever switched (or considered) changing your UI from declarative to programmatic for any reason?
View 1 Replies
View Related
Sep 2, 2010
I'm looking for a programmatic way to set-up http proxy settings for android handsets. I've tried using android.provider.Settings.System.putString() to set System.HTTP_PROXY, but my call fails (I'm using a 2.2 emulator image at the moment). My code looks like:
if (System.putString(getContentResolver(), System.HTTP_PROXY, "10.10.2.1:8080")) {
tv.append("put for HTTP_PROXY succeeded. ");
} else { tv.append("put for HTTP_PROXY failed. "); }
I've also added to my android manifest:
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
Although it's not clear from the docs which permission, if any, is required.
I'm familiar with this SO thread, but the technique there requires manual adb commands, which require the SDK tools and (possibly) a rooted phone. Is there a way to accomplish this? Ideally, I'd like away to set an http proxy that will be used for both data and WiFi connections.
View 1 Replies
View Related
Feb 3, 2010
I need to add some parts of my UI programmatically. I'm doing this because I need to set the ids of some elements up in such a way that they can be easily access in a for loop. So far I have this xml:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/attr_row" android:layout_width="fill_parent"
android:layout_height="wrap_content"> <EditText android:id="@+id/attr_name"
android:hint="Attribute" android:layout_width="0dip" android:layout_weight="2"
android:layout_height="wrap_content" android:inputType="textPersonName" />
<EditText android:id="@+id/attr_val" android:hint="Value"
android:layout_width="0dip" android:layout_weight="3"
android:layout_height="wrap_content" android:inputType="textPersonName" />
<ImageButton android:id="@+id/drop_attr" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="@drawable/btn_delete_states"
android:layout_gravity="center_vertical" /> </LinearLayout>
At the moment, I inflate this xml five times like so:
for (int i = 0; i<5; i++) { LinearLayout attrList = (LinearLayout) findViewById (R.id.attr_list);
LayoutInflater inflater = getLayoutInflater();
View row = inflater.inflate(R.layout.attr_row, null);
LinearLayout extraAttr = (LinearLayout) row.findViewById (R.id.attr_row);
ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);
attrList.addView(extraAttr, i, params); }
The link below shows two pictures - the layout hierarchy and the result in the emulator. http://picasaweb.google.com/bengoldcross/Android?authkey=Gv1sRgCJ785I...
As can be seen, the xml is inflated five times successfully but only one is actually displayed. Inspecting the hierarchy viewer a bit more explains why. The layout being displayed is at location x=0 y=111 all the others are being rendered at x=320 y=111. It would appear they are being displayed a) off screen and b) on top of each other. So, why are they and how do I stop it from happening?
View 3 Replies
View Related
Aug 26, 2010
Been stuck on this for a while and tried a few various things.Basically I've overridden frame layout to create myself a custom button. The frame layout has two children a button and a linearlayout with items in it.The problem is I'm trying to the get the button to stretch to the size of the frame layout (i.e. fill parent) and it isn't doing.
View 1 Replies
View Related
May 12, 2010
I wanted to know if it is even possible to either set up or modify email account settings programmatically. I do not believe it is, due to email applications controlling their own settings (and thus would depend upon a ContentProvider from that specific client), but I have not yet found a definitive "no", either.
Further, I was wondering about the email account support on Android in general. It appears that Android 2.0 and above will allow for multiple ActiveSync/Exchange accounts and mulitple IMAP/POP3 accounts, and displays these in the same inbox. Is this claim true? Also, how is this different from the other major Android releases (Android 1.5 and 1.6)?
View 1 Replies
View Related