Android :: Deleting All Files
Jan 20, 2010
I have a game the allows the user to save the game in a file. I have a new update coming out the will make the previous saved games not work. Is the any way to delete all the files that my program created?
I have been serializing the games and saving them like this:
ObjectOutputStream os = new ObjectOutputStream(openFileOutput(gameName + ".sav", 0)); os.writeObject(gameObject);
I know I can go through the list of games and do something like this
for(GameName name : gameList) { deleteFile(name + ".sav");
View 5 Replies
Mar 19, 2009
I wrote an app that downloads web sites and all their assets (images/stylesheets) to "disk" and therefore stores lots of small files on the SD card.
Sometimes it fails to delete large amounts of files and afterward the file system is r/o. To analyze that behavior I tried to do the removal of the files by hand and then go from there. But that already failed.
localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8 0 0 --> R/W
Last login: Wed Mar 18 19:41:49 on ttys005 localhost:~ mkamp$ adb -d shell rm /sdcard/newsrob/a* [.. minutes of silent deletes ..] rm failed for /sdcard/newsrob/a2aade03616c28b30_113.png, Read-only file system localhost:~ mkamp$
localhost:~ mkamp$ adb -d shell mount [.. some mounts ..] /dev/block/mmcblk0p1 /sdcard vfat ro,dirsync,nosuid,nodev,noexec,uid=1000,gid=1000,fmask=0711,dmask=0700,codepage=cp437,iocharset=iso8859-1,utf8 0 0 --> R/O now
The log contained nothing but the usual gc output and random WiFi status changed mumbo jumbo.
Anybody else seeing this behavior?
There were 6.500 files in that directory. Might that be the problem? I don't access the files with queries, I always have the exact name.
View 5 Replies
View Related
May 7, 2010
How do you go about checking what is stored on your phones memory and deleting content? For example I used dropbox and downloaded a 7mb photo onto my phone. Can't find it in the photos app or anywhere else. Going into SD & phone storage under settings doesn't do anything. It says I have 70mb available space under phone storage but you can't click on that to get any further info. Same goes for the SD card options.
View 1 Replies
View Related
Jul 20, 2010
I'm developing for the Android platform.
My app creates a temp file with a simple call to:
FileOutputStream fos = openFileOutput("MY_TEMP.TXT",Mode);
It works fine because I can write to it and read it normally.
The problem is that when I exit from the app I want to delete this file. I used:
File f = new File(System.getProperty("user.dir"),"MY_TEMP.TXT");
f.delete()
But it always returns false and the file is not deleted.
I have tried
File f = new File("MY_TEMP.TXT");
f.delete();
And it does not work either.
View 4 Replies
View Related
Jul 2, 2010
i've downloaded some pdf files to my storage card. can't seem to find a way to delete them.
View 3 Replies
View Related
Oct 14, 2010
Can't delete a jpg file which is showing in mediascape under recently viewed - my photos
View 5 Replies
View Related
Oct 15, 2010
I want to delete all the files on the internal sd card so that my phone will be like straight from the factory. Are the system files on my phone (GT-I9000) protected from deletion even though it is rooted and would my my phone still boot up?
View 2 Replies
View Related
Mar 23, 2010
I read my manual regarding deleting files from the sd card. I am not sure if i understand it though. Can i safely delete files through my pc's file manager (while tethered) rather than through the phone it self, files such as pictures and music? And what about the folders left behind from downloaded apps? Can i simply delete those while tethered?
View 6 Replies
View Related
Dec 10, 2009
Currently I am having an issue with my SD card storage.
It started when iMusic told me i was out of space, on a 4gig SD card when i had mayb 5 songs on the phone!
So i went to my astro manager file manager to delete some files just to see. i keep getting "error deleting files" on anything i try to delte, ive taken the card out rebooted etc etc.
It makes me think the card may be locked? as its not even letting me save anything to it now.
Should i just root the dang thing to avoid problems like this?
I can delete files by going into the generic "music" app and long touching the song and selecting delete.
View 2 Replies
View Related
May 22, 2010
Anyone notice this or figure out why? I am trying to delete PDF files off the SD card and Astro just says "error deleting file."
View 5 Replies
View Related
Jul 25, 2010
I have an unrooted Evo and I'm really low on internal space and don't want to root...if I could delete the system update files like "com.htc 2.1-update 1" and "Android System 2.1-update1", that would help to free up about 23mb of space...can I uninstall them or would that revert the system to the pre-updated state?
View 2 Replies
View Related
Feb 4, 2014
How can you delete files from Quickoffice? No options at all. Using DROID Maxx
View 10 Replies
View Related
Aug 3, 2013
I wanted to show a picture to a friend of mine. Opened my gallery > ehm, what is going on here? > there were no photos images anymore.
First I thought that the gallery app got some problemes, rebooted my phone, still the same. Looked up the folders with Solid Explorer, well ... all files got definitely deleted.
I searched for this here on xda and google. Well, all I found out was that it could be ROM related, or that it could have something to do with RomManager (haven't installed it though). The curious thing is that the *.jpg and *.mp4 files got deleted from all folders and subfolders, not only from DCIM and even from the sd card.I'm not here for any recovery attempts, have done this already
Well this is not all. I've got some *.avi files on my phone (internal and external storage). Theses files were deleted too. BUT not at the same day as the other media files (*.jpg and *.mp4).
So this is the pre story. Now I wanted to know what can I do to discover what is causing this problem, because what's next? Is my phone deleting all my files in a few days?For me it seems like a script that is searching the whole device for media files and deleting them. (malicious?)My thoughts were:to smali all applications and try to find out if a app is causing this to analyze logcats.Well, These options seems to be very long-lasting,
I haven't isntalled any apps or updates the last two weeks so I think there are no problems with apps and therefore will not list them. phone is deleting media files two days ago it deleted *jpg and *.mp4 files from internal and external storage and from all folders (not only DCIM) today it deleted *.avi files from internal and external storage could it be a malicious script that is crawling my phone for those files?
View 1 Replies
View Related
Sep 4, 2010
Some time ago...I estimate a week at most, I received an error when simply saving a file from my Browser, stating there was not enough space to do so. Knowing my phone had mre than adequate space, I presumed it was just an error with my browser.
Trying again with a different internet browser, I was met again with the same dilema. To make matters worse, I cannot permanently delete picture files from the default viewer on my phone. Queerily, I can delete them, only to have the pictures return hours later. To make my situation more unusual; Upon viewing the SD card mounted on my laptop, I can move, add & delete any form of files with ease. Even saving/deleting other files using different apps (Videobox, for example) gives me no hassle whatsoever.
One solution I'm willing, but at the same time reluctant to try is to reset my phone entirely to it's factory default setting (prior to backing up all of my SD card's data, of course)
View 1 Replies
View Related
Feb 13, 2012
I deleted system files etc... while attempting to revert back to stock ROM. I cannot boot into TWRP nor communicate over USB.
View 1 Replies
View Related
Aug 18, 2010
I have a desire and have just rooted and am now trying to install the new 2.2 update that i have downloaded of the web (i am locked to t-mobile so am going to create a gold card) i did a nandroid backup but i have done 2 by mistake. Is there anyway to delete one or both once i have finished doing my best to brick my phone lol. i don't relay want them floating around forever on my phone if i don't need them. also one other quick question if i unlock my phone and install standard htc os (as apose to t-mobile os) can i unroot my phone and still be on the new htc os so i can get all the updates with no mither.
View 2 Replies
View Related
Nov 11, 2010
I published an application that stores data in a local database.
Now I have to publish an update to this application to fix some little bugs, but I am afraid that downloading and installing the update will delate the local database associated with the previous version.
I would like to know how the update system works. Will installing an update completely delete all the apk, files, databases associeted with the previous version?
If so, how can I avoid this in my code?
View 2 Replies
View Related
Sep 19, 2010
I recently synced my Facebook contact to my phone so that I could have their Facebook pic as the pic on my phone. I do not want to have all my Facebook contacts in my Phone. I tried deleting them from my phone but it says that I have to delete them from Facebook in order to do so.
View 7 Replies
View Related
Apr 24, 2009
Can anybody advice what is the recommended directory to store files generated by your application: audio files, video files or some images.
If the phone contains SD card, it is clear that files should be saved there, but if there is no any external storage. where would you recommend to save to?
View 2 Replies
View Related
Nov 4, 2010
I am working on an android app. Where i need to parse some plist files from assets folder. I do understand how to use assets in android but now problem is that file sizes are more than 1MB and so android gives error Data Exceeds UNCOMPRESS_DATA_MAX (2183588 vs 1048576). how to access such larger files from assets? Also I cant reduce a file into small buffers because i am just sending it to "DocumentBuilder.parse(in)" as a whole so can not use buffer. The error is on line: Document doc = db.parse(in).
View 1 Replies
View Related
Jun 11, 2010
I am trying to overlay route data in KML files on a MapView.
The following code works great:
CODE:................
The only problem I have with this is that I don't need to re download these KML files every time. I have about 10-15 KML files that will rarely change. Also since it has to connect, download, and parse these each time there is a delay in opening the maps.
It would make a lot more since for me to save these as a local resource and have the URI reference it there. Is there a way to construct a URI using the geo: scheme and have it point towards a local resource?
It looks like file:///sdcard support was included in 2.1. The only reference I could find to it was at the end of this bug report thread. I am currently at work and don't have time to play with this yet but I would like to figure it out later. I feel like there are a lot of people on stackoverflow and elsewhere who would really appreciate a reasonable way to do this.
View 1 Replies
View Related
Jul 29, 2009
To android working on eclipse with android 1.5 r2 version when i am running a basic program its showing a error .apk file not found.
View 2 Replies
View Related
May 11, 2010
I want to know how to get the ringtone,audio files in the device and I want set them as alarm. I am working in the code to set the alarm and I want to know how to retreive audio or ringtones from the device.
View 1 Replies
View Related
Sep 2, 2009
From the Android documentation:
"You can store files directly on the mobile device or on a removable storage medium. By default, other applications cannot access these files. "
I could write to the sdcard (/sdcard/file.tmp) and other apps could access these files, right?
I would like some local storage that I can write files to (and read from later) that are not accessible to other applications, and I will always have access to. The problem with the sdcard is that if someone plugs in a USB cable and turns on MSC, my application (and all applications on the phone) will lose (both read and write) access to the /sdcard directory. So I need something more reliable.
View 8 Replies
View Related
Feb 14, 2009
I have an SMSReceiver that I built to intercept a particular type of SMS that would run a service. That is all working great, however, I would like for this SMS to not show up in the user's inbox. So ideally i would like to delete the SMS on the time of Interception. I have gone through a ton of threads and having seen anyone accomplish this yet. Am I missing something or is this even possible? I would think there would be some _id on the incoming SMS that i could use to run the delete against the SMS store. I am looking for any solution, and I hope someone out there has accomplished this.
View 8 Replies
View Related
Feb 7, 2010
I am seriously considering deleting the Facebook (FB) App from my Android handset. First off, I have a quick question:
I'm using the Sprint HTC Hero (CDMA) which has still not upgraded to Android 2.0, 2.1, or whatever the lastest update is. I'm assuming we're all using the latest FB App, correct?
Android is great, and far superior to the iPhone / iPod Touch in my opinion when it comes to the operating system and multitasking. However, with one exception:.................
View 16 Replies
View Related
Apr 29, 2009
This question has been left w/o an answer before. My case: the new version has it's package name changed (domain name switch) so I obviously can't upgrade. Created a new app under the same name and uploaded the new version under it. Published it. Now, how do I delete the obsolete one? Should I file a support request somewhere?
View 4 Replies
View Related
Feb 18, 2009
I can easily delete the whole call log with following code
CODE:............
I can query a particular call log with following code
CODE:..................
But i always get unsupported function error when i try to delete a single call log
CODE:................
View 5 Replies
View Related
Nov 26, 2009
I currently have the HTC Tattoo and have recently downloaded a 3rd-party widget from the Android Market which i've added on one of my home screens. i didn't like the widget which i then deleted. when i got back on my home screen it says "problem loading the widget". how can i permanently delete widgets and gadgets easily without having to resort to resetting the whole device?
View 3 Replies
View Related
Nov 24, 2009
I require to delete an incoming SMS based on certain parameters that I define. Is it possible to do this? I have tinkered around with onReceive() events but I cannot get the incoming message to get deleted. The best I could do was to delete all the existing messages in the Inbox.Can someone help?
View 2 Replies
View Related