Android - inconsistent ringtone behavior - android

I am trying to add ringtones to the media/ringtones folder from my application. If the phone is connected via USB to a computer or mounted on my Mac, the ringtones do not show up in the SD Card, nor in the Ringtone settings.
But if I run the application with the USB unplugged, the ringtones appear ok. This is not a problem with Ringdroid which does the same thing.
Can someone please tell me what could be wrong.

Did you check the setting for usb mass storage? It should be off if you want to access the content of the sd card from the phone.

If you mount the SDCard on your Mac, your Phone canĀ“t acces it.
So, if you want to use the SDCard on your phone, it has to be mounted there (and nowhere else).

Related

How to read/write external USB storage on Android?

I am currently making an app that needs to be able to read from and write to a USB flash drive connected via a USB OTG adapter. Is there an easy way to access this storage via standard Java.io.File APIs? This app is only going to be run on a rooted Motorola Xoom running Android 4.2.2. Any suggestions would be appreciated.
USB Drives get mounted to your device just like an SDCard does essentially*.
The mount path usually resides at:
/storage/usb0/
I have not used this on many devices other then my Droid running CyanogenMod, your device may very. You can smiply use a file manager to explore this path. The directories will still exist even if there is no mount path, so you will be able to determine the path.

Make device SD Card windows bootable by an android app

It may seem strange, but I wonder is an android app able to make the SD Card inside the device windows bootable? I thought of making the SD bootable and write ultimatebootcd to it. I did it through windows, but it would be so great if android can do it!
To make the SD card bootable, you have to modify the boot sector of the card. This can not be done from a standard Android application. If the Android device is rooted, it can almost certainly be done from a native Linux program, or an NDK program.
If the device is not rooted, you can probably not do what you want. As Chris Stratton commented, if the card is already made bootable, you could probably then change for instance what OS is booted up and how.
Say, there is startup code which loads and boots an OS, then you can change the configuration file for the bootloader. A starter: http://www.syslinux.org/wiki/index.php/Boot_an_Iso_image
I used Rufus and installed a syslynux on the SdCard from a PC running window 10.then I put the card back into the Moto phone. It's receiving files that I have moved from the internal storage to the card how ever I have not a chance to find out whether they Will open up In the PC or not.

android media scanner bug?

Short question, When usb mass storage mode is enabled, I replace a image file in sdcard with another image file with the same name, Then disable usb mass storage mode, Enter gallery, The thumbnail is not updated, This issue exists even in Nexus S device, What's wrong? Thank you!
I think the media scanner service doesn't get the chance to rescan the image.
Try rebooting your phone. The media scanner runs on startup by default so it should rescan the SD card then.
Or.. you can just unmount then mount the SDCard. I think MediaScanner also runs when mounting a SDCard.

Android 2.2 SDK - can't access SD when using phone as app testing device

I'm using my phone as the "emulator", e.g. running my app from Eclipse to the phone. I'm trying to access the SD card from within the app (create a folder, save a file), but the error I'm getting is almost as if the SD card isn't inserted (write permissions are granted inside manifest, too). What is wrong here?
Are you sure you don't have the SD card mounted through the USB connection? If it is mounted Android can't access it. Unmount it by swiping the top, then click on Unmount USB or similar verbiage.

Motorola flipout cannot access SD card while USB connected

I have a Motorola flipout with Android 2.1. and the USB my driver is the following:
http://developer.motorola.com/docstools/USB_Drivers/Handset_USB_Driver_64/
Whenever I connect the USB cord to the cellphone I can access the SD card from the computer and I no longer can access it from the cellphone. That means that any software on the phone that needs to access the SD card can't do so, therefore I can't debug anything that needs file access. Is there any way to connect the USB cord yet at the same time not mount the SD card file system onto the computer filesystem?
The SD card can only be mounted by one device at a time. It sounds like the default setting upon USB connection is to basically mount the SD card to your computer so it can browse/edit the files. Use blindstuff's method to disable USB storage mode. your phone will still be connected via USB allowing you to use adb to debug applications.
Blindstuff called it. The reason you cannot is because the SD card is in use by the computer (depending on how you've connected of course). While the SD card is in use by the computer, it's not available to the device.
I strongly suspect that's an artifact of SD cards, not Android (or iPhone, or anything else).

Categories

Resources