Android :: Activity Get Notified When External Storage State Changes?

Jul 24, 2010

I would like my Activity to be informed when the SD card is removed, since it relies on files from the SD card (to keep apk size down) but for compatibility reasons is not targeted at Froyo. I'd like to close the application when the SD card is removed/mounted (giving the user a dialog message to inform them of course) so that I don't get IOExceptions etc (I'd quite like to not have to check everytime I load a file to see if the external storage is available, I already do a check on application launch). There doesn't seem to be any attribute in the manifest for this (like configChanges) that I can find.

Android :: Activity Get Notified when External Storage State Changes?


Android :: Notified When Foreground (top) Activity (application) Changes

Oct 6, 2010

I want to write a service for Android platform that is notified when the current foreground activity changes. Basically the service should do some tasks only when the top activity changes. Is there any way to subscribe and to be notified when this kind of event occurs? Or there is no possibility and the service should poll from time to time the list of running activities and to check what is the foreground activity ?Not preferable solution...

View 1 Replies View Related

Android :: External USB Storage

Apr 30, 2010

Is there a way to access an external mass storage device from the USB port of an Android phone? I have a project I'm working on, but I'm stuck on that part.The goal is to plug my DSLR into the phone's USB (I made a specific cable to do just that) and access the pictures from the phone, then with my phone running an FTP server app broadcasting over WiFi, access the pictures on my camera from my computer.I'm stuck on accessing the files on my camera from Android. Is this even possible?

View 8 Replies View Related

Android :: Accessing External USB Storage

Jun 4, 2010

Are there Android API's to access data from an external USB device, such as a hard drive? I need to write an app to interface with an external usb device, is this possible? What system calls are used?

View 2 Replies View Related

Android :: How To Launch External Activity In Current Activity's Process?

Aug 27, 2010

My app is comprised of a set of reusable Activities that other apps can reuse. For various reasons, I would like my Activities to be launched in context of the invoking Activity's process, instead of always being launched in my Activity's process (default behavior on Android). How can I achieve this?

View 1 Replies View Related

Android :: Internal Memory And External Storage

Aug 18, 2010

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 storage in my app as well.

But it's a bit difficult to implement a solution to something that I don't really know how it works. For example, do these newer devices allow users to upload files to the internal memory, like it's possible to do with the SD card? Can someone explain internal storage from an user perspective and recommend strategies for supporting read/write operations both for internal and external memory (ie: letting the user choose which memory to use at startup, like the Super KO Boxing 2 app)?

View 1 Replies View Related

Android :: Application Data - Internal Or External Storage

Oct 3, 2010

I have a question about where people expect me to store my application data. I have an application where the user will enter information via the keypad, and download information (including images) from a website. Where is the proper place to save this? Internal or External Storage?

View 5 Replies View Related

Android :: Directories And Files On External Storage Are Invisible

Oct 11, 2010

I have created a directory and even a file in that directory on the external storage, I am able to read and write into that but the problem is they are not visible on the emulator i.e, in the phone.

View 17 Replies View Related

Android :: Internal And External Storage - Force Close

Jul 6, 2010

I have an app that accesses music and I had at least one user complain that some of his songs are on internal storage and that causes a force close. My question is do I have to do 2 calls for each song now or can I make a query that will look at both the internal and external memory?

View 1 Replies View Related

Android :: Check Availability Of Space On External Storage

Jul 2, 2010

How do you check if the SD card is full or not so that your application can decide if it can continue to do its job i.e. write to external storage or notify the user that storage has run out of space.

View 3 Replies View Related

Android :: Way To Delete App Associated Files From External Storage On Uninstall

Jan 1, 2010

It'd be convenient if an application I'm writing stored some files to external storage permanently (so they persist after the application has been exited[destroyed]), but on an uninstall I'd like to do the decent thing and have these files removed to free up the storage.

Is there any way I can have these files removed on an uninstall?

If there isn't (and I'm skeptical), then I'll have to create these files each time. I'm trying to save start-up time and also occupy required space by having them exist permanently.

Note: I need to use external storage, so both internal storage or a DB would be inappropriate.

View 1 Replies View Related

General :: CM 10.1 - No External Storage Available?

Jun 25, 2013

I flashed CM 10.1 Final Release on my Sprint GS3 and whenever I try to use the camera or gallery, I get a message saying "No external storage available." SPH-L710

View 9 Replies View Related

Android :: OutOfMemory Exception When Loading Bitmap From External Storage

Nov 5, 2010

In my application I load a couple of images from JPEG and PNG files. When I place all those files into assets directory and load it in this way, everything is ok:

CODE:..................

But when I try to load the exact same images from sd card, I get an OutOfMemory exception!

CODE:..............

This is what I get in the log:

CODE:...........

UPDATE: Tried both of these on real device - it seems that I can't load more than 12MB of bitmaps into whatever is called "external memory" (this is not an sd card).

View 7 Replies View Related

Android : Way To Delete Image File In External Storage After Email Sent?

Sep 20, 2010

I am storing image in External storage using MediaStore,and send email with attach that image,image saved and sent email with attachment is working fine,i want to delete that image in external storage after mail sent.anybody knows,please give sample code for me..

View 1 Replies View Related

General :: USB Storage - External SD Card Not Seen In PC

Mar 9, 2014

Recently I started using 32GB card with my Micromax Canvas HD and everything is working only for when I try to connect my mobile to PC for file transfer via usb storage I can see only two drive one of CD drive of mmx and other internal sd drive and I can see one more drive but it is not mounted which is my external sd drive when clicked on it, it asked to enter disk.

Solution tried so far by me
1. I have erase external sd card in mobile itself.
2. Reset the entire phone.
3. Uninstalled the mmx driver on my PC and reinstalled it.

View 1 Replies View Related

General :: How To Make Default Storage As External SD Card In Android Tablet

Oct 2, 2013

I have purchased iball slide 3G 7271 ( 3G model ) (Android version 4.0.4) in India. Available Interneal SD memory 2GB.I have external micro SD card slot expandable upto 32GB.

I have downloaded and installed many games in it...but now whenever I try to download new ones , it says "INSUFFICIENT SD MEMORY"

In order to use my external SD card for installing the games and other things....

I have gone through Google search and found ""FolderMount "" software and downloaded to my tab.

I have installed also. It was successful.when I open FolderMount, it says......""serching for root "" ( with one EXIT button to cancel)....and doing nothing beyond that.

View 5 Replies View Related

Samsung Captivate :: Can Get Phone And It's Internal Storage To Factory Fresh State?

Jul 21, 2010

I've recently restored my phone to factory defaults and it decided not to remove my music. Is there any way I can get my phone and it's internal storage to a "factory fresh" state?

View 3 Replies View Related

Android :: Access Programatically Internal - Flash And External - Sd Card - Storage Values

Oct 18, 2010

Does anyone know how to access programatically the internal(flash) and external(sd card) storage values such as space used and space available? I cant seem to find an api anywhere?

View 4 Replies View Related

General :: Google MUST Support External Storage

Oct 9, 2012

None of the Google Applications support external storage, Gmail 4.1.2 won't send documents attached from an external sd card, Play Movies & TV won't allow you to specify a external card as a storage location, pinned Google Drive documents can't be stored on an external card, Play Music sucks up internal memory. Try sending an attachment using Gmail from a Motorola Xoom, a "Google Experience Device".

How do we get Google to support this? Most other email applications support it, but as a Google Apps Enterprise user I want and expect the native Android email application to work.I use external storage on a Galaxy Note 10.1, Galaxy S3, Razr Maxx and Transformer Prime.

View 1 Replies View Related

General :: Swap Internal And External Storage ICS?

Oct 15, 2013

So I have this GT n7000 with android 4.0.4 ICS, rooted. I want to swap my 32 gb external sd card with my internal one. I googled it, found a method that included replacing a vold.fstab file in system/etc but that was only for jellybean. I need a method for ICS. Also I can't understand what usb storage means. Is it different form internal sd card??

View 5 Replies View Related

General :: How To Install App On External SD Card And Not On Internal Storage

May 7, 2013

How can I install app on external sd card and not on internal storage.

View 1 Replies View Related

General :: Expanding Internal Storage Onto External / SDCard?

May 8, 2013

I finally upgraded to android, i got the cheapest phone possible(kyocera milano) which seems to be a mistake. The phone has only about 300mb internal storage and can barely handle its own updates(because of the limited storage). so i would like to know if its possible to make the phone "think" that some of the sd card is part of its internal memory? I found an adb driver for it(dont ask me where or which one because i had no idea and started messing with one until it worked) i have not tried rooting but can if i need to.

View 5 Replies View Related

General :: System Is Damaged / Try To Recover External Storage

Apr 6, 2014

I have Zenithink ZT-280 ZT 102. When I try to turn on it's only "System is demaged, please try to recover from external storage." I tried to enter fastboot (Home button + Power On) but it doesn't work. When I connect device to PC nothing happens. Is there any chance to repair it?

View 1 Replies View Related

General :: Swapping External To Internal SD Storage In Gingerbread Phone

Apr 8, 2013

This phone of mine is in Android Gingerbread 2.3.6. The phone is already rooted but without CWM.

Here are the significant screenshots that maybe needed (Specs of the Phone, File Explorer structure and path of the SD Card, Internal Storage & SD Card capacities, and Location Path and Size of the vold.fstab):

Attached file below is the original untouched "vold.fstab" file from my MyPhone A818 Duo Slim in zip

View 3 Replies View Related

Android :: Launching Activity At Its Current State

May 17, 2010

I am trying to make a task switcher and i succed in it. My only problem is that when I launch activities, they are relaunched as they were new activities ( for instance, I am writing an email, i press home and go into my activity,launch email, and then the app launch the email bout goes back at the inbox and the email is lost) So that's not true multitasking.

View 2 Replies View Related

Android :: Want Activity State Without Override Each Methods

Nov 22, 2010

I want see the state of my activity (Pause Stop Resume etc etc) without override each methods like this: Code...

View 3 Replies View Related

Android :: How The Activity Updated In Pause State

Aug 18, 2010

I have one query. In Home Application the timer is running and if any ANR or Alert or Notify come then this home activity would go in Pause state but timer is running and visible. How it is happening. Can anybody explain me how this work.

View 4 Replies View Related

Android :: Find Activity Is In Pause State / Not?

Jun 14, 2010

Suppose i have a program that' s currently in a PAUSED state. Then the user launches another activity. In this second one, i want to find if the first one is in paused state or not because, if its paused, i want to recover it.

Is there a way to find if a specific activity is in pause state or not?

View 6 Replies View Related

Android :: How To Save State Of An Activity On An ActivityUnitTestCase

Jan 22, 2009

In an ActivityUnitTestCase I'm trying to do:

CODE:...............

But on the save state call I get this trace:

CODE:.................................

Going through the ApplicationContext source code I've found this (http://tinyurl.com/d8qsyc):

CODE:...................

It seems the problem is that the activity token is not set. But here I'm puzzled, I don't know where to go next. Any ideas on how to fix it or workaround it are appreciated. I want to test that my application is saving its state correctly.

View 3 Replies View Related

Android :: Correct Way To Save State Of An Activity?

Jul 1, 2010

I have an Activity, which contains a bunch of check boxes and a submit button.

When the submit button is clicked, the activity will exit (finish() will be called). Before the activity exits, I want to save the states of the check boxes in the activity, so when the activity starts again, the check boxes can stay in their previous states. What's the correct way to save these states? Should I use SharedPreference.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved