Android :: Prevent Data Deletion From SD Card On Reinstall / Update?

Sep 26, 2010

I notice that my app's data on external storage (i.e. SD card) gets deleted during an "adb install -r". While this is normal for uninstall (and then afterwards install optionally to notice it), I do not understand why this is the case for reinstall (and thus for Market updates as well). I could have sworn this was not always the case.

Referring to http://developer.android.com/guide/topics/data/data-storage.html#filesExternal I am specifically using "Accessing files on external storage" on Android 2.2, but not "Saving files that should be shared" or "Saving cache files". So I am writing and reading data in "/sdcard/Android/data//files/somefolder/data". My preferences do stick.

@Commonsware: The problem is not so much with getExternalFilesDir() IMHO as I see my data is written where I expect it. It just does not stick. I am using a.o.:
public static File getDefaultDirectory(Context context, String packageName) { File dir;
if(mActivity_getExternalFilesDir!=null){//API >=8
dir = invokeGetExternalFilesDir(context, "fortune");
}else if(mEnvironment_getExternalStorageDirectory!=null){//API <=7
dir = invokeGetExternalStorageDirectory();
dir = new File(dir.getPath() + "/Android/data/" + packageName + "/files/");
}else{ //should never occur return null;
}return dir;
}

Android :: Prevent Data Deletion from SD Card on Reinstall / Update?


General :: Prevent Reinstall Of App?

Apr 5, 2012

Is it possible to prevent a user from uninstalling an app and then re-installing it?

View 2 Replies View Related

Android :: Force Deletion Of User Data On App Upgrade

Apr 13, 2010

I want to force the User Data to be deleted on Application upgrade (to delete internal database).How can I do that?

View 5 Replies View Related

2.1 Update :: Android Crash Immediately After Update / Is This Normal - Reinstall Update Again?

Nov 23, 2010

I just upgraded my xperia to android 2.1 and immediatley after that my phone keeps on restarting. is this normal? or should i reinstall the update again?

View 1 Replies View Related

APK Reinstall Won't Clear Data

Jul 3, 2013

I'm developing an app that is a shell in which a user will purchase and load business information from 29 separate, purchasable regions in the US. These regions are database driven, and I'm still modifying the database for 2014 data. This is a test environment. The problem I'm having is that once I've simulated the purchase of a region (let's say, Chicago), my device apparently caches that data, so that when I update the database, the updates don't push through. I've tried clearing the cache on the app, erasing all the app data, and disabling the Backup & Restore feature on the device, then completely uninstalling the APK. But when I reinstall a the APK from scratch, it installs with the Chicago region already showing as having been purchased, still showing the old database data.

how can I get the APK to reinstall as if for the very first time, with no previous purchases or downloads, so that it pulls fresh data from the DB?

View 2 Replies View Related

Android :: Ringtones Gone After Clearing Data / Recover Media Storage Without Factory Reinstall?

Jul 23, 2010

After "clear data" for "MEDIA STORAGE" application(i wanted to reset the library for Music)
I have now only one ringtone.
Im sure along with this, other necessary things got deleted.
Is there any way to recover all of Media Storage without doing a factory reinstall?
Motorola Milestone OS 2.1 - update1

View 2 Replies View Related

Motorola Milestone :: Remove 2.0.1 Update And Reinstall?

Feb 13, 2010

I updated my Milestone last week and all was working ok. I decided to root the phone today and ended up in some constant re-boot loop where the android logo would appear then reset. I managed to get the phone working again after several hours of worry, but there still seems to be some issues. I would like to remove the 2.0.1 update and re-install it again from frest so that i can fully remove this root access and hopefully my problems.

View 8 Replies View Related

Motorola Droid X :: Update 2.2 - Reinstall Bloatware

Aug 20, 2010

I was trying to get my phone prepared to update to 2.2 and I wanted to reinstall the bloatware. I did something stupid. I went into adb shell, went to the system/app folder and did "mv *.bak *.apk" which basically destroyed everything in that folder. At that moment, I tried to RSDLite flash my phone the SBF but it wouldn't take. Phone froze up, couldn't do anything and, of course, I get the Droid animation when booting infinitely due to nothing being in /system/app I can reboot into recovery and connect the phone to my PC, but nothing really seems to happen. I imagine I could recover the phone if someone made an update.zip which restored the default apps into the /system/app folder, but I don't have an update.zip of that nature. Even the Verizon ones I have seem to look for old versions of the files. Does anyone have or can tailor an update.zip which would restore the system/app folder for me? I think that, if you could do that, I could be saved. Otherwise, I think I am screwed, unless someone has another option for me.

View 4 Replies View Related

Android :: App To Prevent Apps From Reading Your Personal Data

Oct 13, 2010

Do you know any application to prevent other applications from reading your personal data (contact, identity, history, ...) ? That would be great to be able to use our phone without giving away to unknown company/people our very personal data.

View 2 Replies View Related

Android :: Update Delete Directory - How To Prevent This From Happening?

Aug 3, 2010

I have an app that create a directory and contact files in this. I do not want version update to delete this directory but I realize it has been deleted during the update. How do I prevent this from happening?

View 7 Replies View Related

General :: Prevent Downloading Apps On Mobile Data?

Aug 14, 2013

Today I was trying to download and update some apps via wifi but later I discovered that it was on mobile data and I received message from Operator/Carrier that I have crossed my data pack limit and using it further will be chargeable. Is there any way to stop or prevent downloading apps when phone is using Data Pack?

View 2 Replies View Related

General :: Running CM10.2 On GS3 - Prevent Data Access For App

Jan 10, 2014

Is there a way to prevent data access for individual apps? (both WiFi and 3/4G)

Essentially, I'm trying to block internet access for certain apps while the rest on the device is connected. I'm running CM10.2 on a GS3.

View 3 Replies View Related

Motorola Droid :: Will Update 2.1 Prevent Rooting Or Not?

Feb 16, 2010

Did a little searching and not sure what the final answer is about update 2.1 blocking rooting if not already rooted. Simple question about Moto Droid Update to 2.1 truly blocking rooting after this OTA update. Will this block my un-rooted Driod so that I cannot root later after I finish some learning about rooting in the next couple of weeks? If it will I would like to root before IF that is necessary.

View 17 Replies View Related

Motorola Droid X :: Any Way To Prevent Froyo Update And Reminders?

Sep 14, 2010

It may seem crazy, but I have an app that I use for business purposes (ustream). They do not support 2.2. I emailed them and they quickly responded with grim news. Basically, they don't know if/when they will support Froyo. Qik vid doesn't do what I need it to do. Also, I hear there are many other apps that won't work with froyo. As good a an improvement Froyo is, it prevents me from doing what I do. Any way to prevent update and update reminders?

View 4 Replies View Related

General :: How To Prevent Play Store From Listing Update

Dec 26, 2012

I use an app of which the new version causes a huge battery drain, so I googled for the old version and reinstalled it. Every time I open Play Store, the dreaded update shows up again for download. How can I remove it from the list? I already tried breaking the market link through Rom Toolbox (I have root) and clearing Play Store data.

View 2 Replies View Related

Android :: Sms Hiding And Deletion

Jul 8, 2010

i am currently making an application in which i require to delete an sms. How do i go about it. Also I may need to hide a sms i.e not visible in the inbox but i may choose to unhide it later.

View 2 Replies View Related

Android :: Error During Sms Deletion / Fix It

Aug 31, 2010

I have problem with deletion sms with messageId=0. I can't delete such a message. There is no problem with deletion other messages but first message taken from inbox has always message Id=0 and I can't delete it. I use code below for deletion.

Uri SMS_CONTENT_URI = Uri.parse("content://sms"); Uri deleteUri = Uri.withAppendedPath(SMS_CONTENT_URI, String.valueOf(smsList.get(currentSmsIndex).getId())); int count = context.getContentResolver().delete(deleteUri, null, null);

Do you have any idea?

View 3 Replies View Related

Android :: Alternative To Recursive File Deletion In Directories

Jul 6, 2010

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

I'm currently using the above code to create a folder which is used to temporarily store images that the app uses later. deleteDir is just a generic recursive file deletion to empty a directory. Is there a better way to do this than to delete everything? Ideally I just want a temp folder that empties when the application closes.

View 1 Replies View Related

HTC Incredible :: ClockworkMod Restore Deletion?

Aug 29, 2010

I did some searching around but couldn't find any answers; my question is how do you delete the restoration images so you can keep only two or if you find you don't need some of the older ones etc...

View 3 Replies View Related

General :: Blackberry Style Deletion?

Feb 8, 2013

The phone will likely be a RZR Maxx or D4.

One of the biggest features that I found missing in Android was the ability to delete mail on handheld only, or handheld and server on a per message basis. (For those not aware, you can set BB to do either automatically, or prompt, which is what I like.)

View 4 Replies View Related

General :: File Protection Against Deletion?

Apr 27, 2012

I want to buy a couple of android devices for use by our sales representatives. However I want to put some files (powerpoint presentation, pdf or photos) on those devices which I want to lock against deletion by a user.

Is there a software to achive it?

Protection can be secured with a password, pin or whatever.

I tried to find such a program but no luck.

View 1 Replies View Related

General :: How To Prevent Google Music From Detecting Music On SD Card

Apr 16, 2012

I use doubletwist for listening to new music that is stored on my SD card. I use Google Music for streaming my favorite tracks that I have uploaded. The problem is Google Music automatically searches my SD card and displays all the music stored on my phone along with the artists/playlists/etc. that I have stored on the cloud, which makes it confusing when browsing the library. Can I prevent Google Music from searching and displaying what's on the SD card, but still allow doubletwist to see it?

View 4 Replies View Related

HTC Incredible :: ROM Update Nuked My SD Card - Can't Even View The Card

Aug 27, 2010

So i just loaded one of the new ROMs based on todays OTA.

I did the nandroid. I did the titanium. i flashed using rom manager and selected clear cache/data.

ROM loaded perfectly.. and when i went to titanium to restore, nothing was there!

I plugged the phone into the computer, and i can't even view the card.

I can browse the phone's memory, but not the cards.

I'm hoping there's some adb command or something that'll fix this...

View 6 Replies View Related

HTC Desire :: Emails Automatic Deletion Whilst Reading These?

Oct 1, 2010

My desire is deleting my emails whilst I'm reading them! I'm having to log in to virgin to finish reading them. How do I stop it?

View 2 Replies View Related

2.1 Update :: Data Monitor Widget Missing After Update To 2.1 Xperia X8

Nov 27, 2010

data monitor widget missing after update to 2.1-xperia x8...any ideas?

View 1 Replies View Related

Motorola Droid X :: Does Installing New ROMS - THEMES Require Deletion Of Old

Nov 4, 2010

What I'm asking is if I were to install a new ROM/THEME do i need to uninstall or delete the old one? Or do I just load right over it? Also what's the best app to use to "unbloat" uninstall unwanted apps?

View 6 Replies View Related

HTC Droid Eris :: Text Message Deletion (Lock Option)

Jul 14, 2010

I have a thread with over 1200 text messages in it which I need to delete to improve the lag on my phone. However there are a few of the messages which I would like to keep. I am using the stock message app. When I long press to delete the thread there is an option you can check to delete locked messages, however no where can I find the ability to lock a message. Does anyone know how to lock a message within a thread so you can delete the thread but keep just a few of the messages?

View 3 Replies View Related

HTC EVO 4G :: Rooting - No Longer Contributing Member - Account Pending For Deletion

Jul 16, 2010

No longer a contributing member. Account pending for deletion.

View 5 Replies View Related

General :: Deletion Of Google+ Account - Picture ID Does Not Stay In Hangouts?

Apr 15, 2014

I recently completely delete my google plus account attached to my email address of course. The problem is that in my Google Hangouts when I manually attach a picture ID to my texting Google im conversation , in the picture ID does not stay so with with my picture ID .

View 3 Replies View Related

Android :: Write Data In SD Card?

Nov 1, 2010

my application is contact list and i want to store my contact data in sd card but how can i store data in sd card, or if i will use database then how i want to store it or using simple file than how i want to store it

View 2 Replies View Related







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