Android :: App Update Could Lead To Losing Data From Old App Version?
Nov 3, 2010
I'm writing a game for Android. When the user completes a level, they can restart from the next level if they lose (i.e. I need to store an integer to remember which level they got to). If the app is interrupted during play, I save the world state to disk (this is complex state storing a map and game entities).I'd like to keep my options open in the future for changing my game code and the way the world state is saved/stored. However, I must consider the scenario when a user has an old version of the world state on their phone because they were in the middle of a game, they upgrade the app and now the app cannot load the world state. Having to write code to migrate the old version of the data to the new version of the data would be a pain if there's some way I can avoid this. It would be nice if I could somehow ask the user to finish their current game in progress before updating. Can this be done? Are there any other options?
I don't intend to do this often. I'd like to iteratively develop my game while getting some early feedback, but this is difficult if I must fix how the world state is saved and restored now.I hope this doesn't seem a silly question, but on a PC or a console it's perfectly OK to have games that you cannot save during a game or you can only save between levels. I'm just finding Android a bit of a pain here as you must have a save game strategy for all games.
After updating to 2.1, I lose my data connection about once or twice a day. No visible notification but the EV symbol at the top of the screen will always be "lit up" w/ the upload/download arrows showing no activity. I always have to switch the airplane mode on for a second and turn it back off. I have bluetooth automatically connect to my car when I'm in it and don't know if that's what is causing it? Anyone else having this issue and finding a cure? I updated PRL as well as firmware, but no luck.
How to upgrade Android app without losing data ? e.g. I have a game which is using some preferences or sqlite data. which is associated with the android app. If app is already installed on device, it is not allowing the same app to install again. and one need to uninstall then reinstall app again.
so, if one wants to upgrade app with the older data then how will he be able to do it ?
Have anyone notice yesterday anything strange in the downloads/active install data from your apps? My app lost more than 100 downloads(which should be impossible) from which most of them were active installs, so now my apps is 15 places down and my percentage of active installs badly affected. Has anyone else been affected?
I have an application made up of an ExpandableList, whose children are data collection widgets like CheckBoxes and EditText. Once data is entered, it is immediately lost when the list is scrolled. What may be the problem or solution?
I have had an app on the market for few months now. Today one of my users called with a very strange problem. The app worked fine for a few days. Then today they are unable to run it. The colors of the icon changed. The name of the app chnaged from the usual display name to the package name.and it FCs immediately upon startup. This is an app with thousands of installations. Has anyone experienced this situation before?
I am guessing corruption on the device and would like to suggest a re- install. However, how does one do a re-install without losing the data.
WIth my iPhone, I have my iTunes full backup. If I upgrade my phone to a new one, I just connect my old phone to the Macbook, do a full backup, connect the new phone, do a full restore, and my new phone has everything there.
My contacts, SMS messages, Settings, Pictures, Camera Roll, Apps, App data like save games and progress on games, you get it.
How is it on android? Suppose I have a Galaxy S4 I have been using for a few months. I have it set up, I have SMS messages on it, data, emails, I have 80% of angry birds complete, I have 2000 pictures on my camera roll, i have some MP3 music...
Then I upgrade to a Note 3. Is there a way to transfer all my data to the new android without losing it? Like I can on Apple?
Unbranded, fully updated (2.1-update1), Desire. Three months old. No task killers installed. Just this past couple of days I've noticed it has not been showing the data connection symbol in the top bar, next to the signal strength bars. Try and connect to the internet or the market and get a 'failed' pop up window asking to either retry of cancel. Retry never works.
I go into settings > Wireless & Networks and disable Mobile Network, then enable it again and it flickers on then goes off again. Repeat this and it stays on for a while but always goes off again after about 20 minutes even though the Mobile Network is ticked green. Why is this happening? I'm missing emails because of this and it's a bit of a pain.
Moment keeps losing evdo. Then the browser will timeout on all web pages. Email will not send or receive. Sometimes when this happens, I cannot text, or make a call. When it happens you can only see the up arrow on the left. Sprint store swapped it out for another Moment, and it did it in their parking lot. A few times after this happens I have to do a hard reset to get my email working again. Typing is slowing down on here as well.
seemingly for no reason. running fresh 2.3.3, and whatever stock kernels/overclockers or whatever, come with it) i've searched on here but havent really found the answer.it seems about 50% of the time when i go to either the browser or maps (or something that uses GPS), i'll find no connection. toggling airplane mode seems to remedy data connection, but i usu have to reboot to bring GPS back up. anyone else having these issues?
Is there any way to unroot my phone without losing data? i know exactly how to root and get it back to stock, but i realize this deletes all my apps. i know i can just redownload them from the market, but i dont want to go through all the trouble of setting all mynotification settings for like handcent, and locale, and stuff like that. is there update.zip that allows me to go back to nonroote 2.0.1 and have it appear just the way it was before i rooted? (with my apps and all my stuff still on it?)
It appears as unformatted BUT, I know that the data is still there because the CWM manages to browse files if I get into the menu "install zip from /sdcard1", but it can't see anything if I try a "restore from sdcard1"...
So I have an ubuntu build and I'd like to try to repair the "masterboot" .
I never did this before so I don't really know what I need, SDCard is 32 GB class 10.
When I plug my phone from CWM and enable the mount the SDcard on usb I got this error message : Error mounting: mount: /dev/sdb1: can't read superblock
Here is the result of the "fdisk -l" command :
Code: Disk /dev/sdb: 32.0 GB, 32018268160 bytes 32 heads, 63 sectors/track, 31019 cylinders, total 62535680 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x4d544f4f
Device Boot Start End Blocks Id System /dev/sdb1 2048 62535679 31266816 b W95 FAT32
Which actually looks weird, I thought that my sdcard were ext4 formated, well but I am not 100% sure about that...
Here the result of the command "fsck -y /dev/sdb1"
Code: fsck from util-linux 2.20.1 dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN / Contains a free cluster (2). Assuming EOF. FAT32 root dir starts with a bad cluster!
So I have juicedefender and I enable that at work to shut off my data for 50 minutes out of every hour. I disable the app when I return home so I can always be receiving data.
With that said, I will be texting my girlfriend, shut my screen off and the notification sound does not ring when she sends me a text. The only reason I know she sends me a text is because I will go to Gv on my laptop and see she sent me a msg.
I looked into my battery mode settings and it is setup to shut off data after 15 minutes of inactivity during non peak hours (midnight to 8am) and set to 60 mins or never for peak hours, however my phone was never inactive for that time period.
My question is, what else could be shutting my data on/off if juicedefender is disabled and my battery profile is set up correctly ( i even changed it to performance and i didnt hear the notification, yes the notification vol. is up)
Does anyone use Juice defender? I downloaded it the other day and first thought it was great, certainly improved my battery life, but after a while i noticed that i kept losing my data connection even with the screen switched on, and also as soon as i finish a phone call, i loose my data connection and it takes ages for it to reconnect! anyone else had experience of this, or does anyone know of a similar app i could try?
I first noticed this maybe late last week where my phone would appear to have data (bars and the 3g/4g symbol) but not actually being able to connect to things. I'd enable and disable airplane mode to reset things and it would work for awhile.
Yesterday, I contacted Sprint about this because it is fairly annoying. While paying closer attention, I started noticing that my data worked with 4G but would not with 3G. In Settings -> More Networks -> Mobile Networks - > Network Mode: I changed it from LTE/CDMA to CDMA. When the phone rebooted, I was on 3G and the data worked. When I changed it back to LTE/CDMA 4G would work but 3G would not. I've also tried Automatic and 4G works but 3G does not. Needless to say, I spent an hour with customer support and their best solution was to just leave it in CDMA mode. When I complained that I'd lose my 4G service, the tech asked for my zip code and after a moment told me 4G was unavailable in my area. I've been using it for more than 6 months, was using it today, and have seen the sensorly maps showing 4G availability......
It definitely seems like a phone issue over a network issue because the 3G network is clearly working if I can use it when I've disabled LTE. The most annoying/frustrating issue is that the phone claims to have 3G but nothing works.
I was talking with a friend and he was saying that if I change to this rom ((wild for the night from Dastin) is likely to lose the 3G data connection and he said yes, but there is a script that is used to re-take, looking for script that really wanted to have this rom but I dont want lose my 3G DATA conection.
any way to install this rom (wild for the night from Dastin) without losing my 3g data.
My cellphone is the model samsung galaxy s2 epic 4g touch or SPH-D710,
Most of the time the data connection works fine. But if I go into an area with no cell phone reception for a little while, once I come out into a full-bars area where data normally works, my data connection never resumes. Once that happens, I can make calls just fine, but can't use the internet/market/etc. The only thing that solves this problem is to go to network settings, enable 2G networks only, then turn that setting off. That is a huge pain, obviously. Has anyone else had this problem? This was happening with my old SIM, so I had T-mobile give me a brand new one, but it is still happening.
I rooted my phone for the first time yesterday. I have not yet flashed any ROM's, all I have done so far is remove some of the stock apps. I have lost my data connection a couple times today, usually a reboot will solve it, however it hasn't on one or two occasions. It seems to have started happening after changing my boot animation to something closer to the 1.5 boot animation. Is it possible that this new boot animation is causing my data connection problems.
I got a new Droid (new verizon customer) last Friday. Twice now I have lost 3G downsignal only (which effectively means no data connection). To be clear, I still have the 3G signal icon on my phone, and all my apps are uploading data (according to the icon) however no data is being sent back down. I've tried waiting 10 minutes and tried going in and out of airplane mode (3G icon does come back after leaving airplane mode) however I still don't have downstream connection, only upstream.
The only way I have fixed this is to reboot the phone, which sucks. Has anyone had this issue? I'm not sure i'll be able to get a replacement (even with insurance) unless I can reproduce it in front of Verizon reps, so I'm not sure what I should do about it.
I have a free app in the market and use the data directory of the app to store some files. Now I think about offering a paid (donate) version of the app, so that people who want to pay a few pennys will be able to do so. But AFAIK the new (paid) app needs a new name, so I won't be able to use the stored data of the free version. That means, that existing users would have to re-enter a lot of personal settings - which probably would be a no-no for a lot of users. So my question: Is there a smart way to have a free and a paid version in the market, where the later installed payed version can use the data of the free version? I thought about using the SD-card for data storage, but there might be devices without any SD-card...
I am new to Android development. I am using a x-platform development tool which builds and signs the APK for me. This tool has a bug and it does not generate APK's with the version code I specify, all APK's generated are version 1.0.
I would like to unpack the APK, edit the version code, and then resign and repackage it. It was signed using my keystore originally, so I have the keys needed to sign it again. How can this be done?