[Q] Saving Data State - Java for Android App Development

I have a question... I think this is the place and I have not seen any other place with an answer.
I have an android app and I need to test a certain test.
The app has an ingredient list and there were issues where if I had over 100 ingredients it would FC.
So whenever I update my app, I have to test this for regression. But it just sucks because I have to make the list of ingredients again.
Is there a way to save a state of the app and whenever I do an update I can restore the data on it and do the test instead of manually adding data?
Any suggestion is really appreciated and would love to hear the options. Also the device has to be not rooted if possible.
Thanks in advance!

Nothing anyone can help me on?

sixk said:
I have a question... I think this is the place and I have not seen any other place with an answer.
I have an android app and I need to test a certain test.
The app has an ingredient list and there were issues where if I had over 100 ingredients it would FC.
So whenever I update my app, I have to test this for regression. But it just sucks because I have to make the list of ingredients again.
Is there a way to save a state of the app and whenever I do an update I can restore the data on it and do the test instead of manually adding data?
Any suggestion is really appreciated and would love to hear the options. Also the device has to be not rooted if possible.
Thanks in advance!
Click to expand...
Click to collapse
With root, there is Titanium Backup, but without it, I don't know any way, sorry... The emulator has the snapshot option on starting, but I guess if you update the app it's not going to work.
What you can do is this, add an option to the App to backup the data to let's say a csv file, and then later restore that...

sixk said:
I have a question... I think this is the place and I have not seen any other place with an answer.
I have an android app and I need to test a certain test.
The app has an ingredient list and there were issues where if I had over 100 ingredients it would FC.
So whenever I update my app, I have to test this for regression. But it just sucks because I have to make the list of ingredients again.
Is there a way to save a state of the app and whenever I do an update I can restore the data on it and do the test instead of manually adding data?
Any suggestion is really appreciated and would love to hear the options. Also the device has to be not rooted if possible.
Thanks in advance!
Click to expand...
Click to collapse
Presumably your users wouldn't want to start again when they update ? Or is it a game or something where you do start from nothing each time ?
I would say, save state to either external storage or a database, then it will be preserved across updates (implement a 'save game' if necessary)

Related

Best way to Remove the Bloatware???

Hi guys,
I've read the answer to this somewhere on the MT4G thread here but can't find it anymore for some reason.
I've rooted with the S off and all that good stuff and I do remember someone saying Titanium Backup would be a good way to remove all the T-Mobile stuff but....
1-I don't remember what is safe to remove
2-How exactly can I remove the stuff with Titanium Backup?
I'd appreciate if someone can direct me to the right thread or just help me out.
P.S: On a separate question, when I try to write someone's name on Handcent SMS into the TO part, contacts are showing in doubles. One without a dash between the numbers and one with a dash between the numbers in the format of 555-444-3333(the american way) It also happens on an app I use called Fast Dialer. I checked my contacts/view and I only have one selected which is PHONE.
Thanks again.
http://forum.xda-developers.com/showthread.php?t=869719
http://forum.xda-developers.com/showthread.php?t=851912
http://forum.xda-developers.com/showthread.php?t=825062
http://forum.xda-developers.com/showthread.php?t=839195
Not sure what you want to know that's not described in these 4 threads already.
thanks mate.
I know this might sound stupid but I get this screen below on the backup/restore section of TB and I can't seem to figure out how to freeze apps through this section.
Dodolom said:
I know this might sound stupid but I get this screen below on the backup/restore section of TB and I can't seem to figure out how to freeze apps through this section.
Click to expand...
Click to collapse
click on "problems?" and it'll download the busy box, titanium backup will restart and you'll see the apps installed.
great. thanks a million. they are all in there now.
I used Root Explorer. I just selected the apps I wanted out, cut them and made a folder in my SD card. I pasted them there just in case I need to put them back. As soon as I did that, they were gone from my app drawer.
"Freeze" them in Titanium. It will remove them from your drawer listing but keeps all files on the phone in the event they are needed for future upgrades. You'll forget they ever existed; and you can "unfreeze" them later to put them back in the app drawer if you ever want to use them again.
Genocaust said:
"Freeze" them in Titanium. It will remove them from your drawer listing but keeps all files on the phone in the event they are needed for future upgrades. You'll forget they ever existed; and you can "unfreeze" them later to put them back in the app drawer if you ever want to use them again.
Click to expand...
Click to collapse
or... MAKE A NANDRID... then uninstall them and free up the space on your phone... you can make backups first and restore them in the future if necessary or you can skip the backup crap and use the nandroid to restore in the future...
thanks for all the responses guys.

[Q] `com.android.htcprofile` and `recovery` in Titanium Backup

At the bottom of my Titanium Backup application list I see two entries: `com.android.htcprofile` and `recovery`. Both are crossed out, as if they stand for uninstalled applications. They are not backed up, so there's no reason for them to appear in the list. Refreshing the list does not make these entries to go away.
What are these entries? What is the importance of having them in the list? Why does Titanium Backup display these entries in the list, even though Titanium Backup itself seems to understand that they are "uninstalled" and not backed up?
BUMP
I was wondering the same thing, I don't see Recovery anywhere in my list but I do see com.android.htcprofile
I'm having problems with my widgets disappearing on the stock Rom. Only on the stock homescreen not ADW. Was thinking this could be the cause possibly?
Mrdaviso said:
BUMP
I was wondering the same thing, I don't see Recovery anywhere in my list but I do see com.android.htcprofile
I'm having problems with my widgets disappearing on the stock Rom. Only on the stock homescreen not ADW. Was thinking this could be the cause possibly?
Click to expand...
Click to collapse
If it was i am thinking it is.
HTC profile is a stock application much like blackberry has different applications. Same basic idea. When you are are home, and you have the "home profile" active it will not pull your work emails. If you are at work it pulls everything but lowers the volume not to disturb people around you.
and i do not have "recovery" on mine so i do not know what it does.
google doesn't even know the answer to your question, therefore, it must not have an answer.
option94 said:
google doesn't even know the answer to your question, therefore, it must not have an answer.
Click to expand...
Click to collapse
stumpped the google? the world must be ending shortly.
Lol that's why I posted and my profiles/modes work just fine.
option94 said:
google doesn't even know the answer to your question, therefore, it must not have an answer.
Click to expand...
Click to collapse
Sent from my HTC Glacier using XDA App
Mrdaviso said:
Lol that's why I posted and my profiles/modes work just fine.
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
Im just glad that you searched first. lol.
neidlinger said:
If it was i am thinking it is.
HTC profile is a stock application much like blackberry has different applications. Same basic idea. When you are are home, and you have the "home profile" active it will not pull your work emails. If you are at work it pulls everything but lowers the volume not to disturb people around you.
Click to expand...
Click to collapse
Well, what I'd like to know is not what "HTC profile" does. The main question here is really about Titanium Backup: what exactly does that mean when Titanium Backup shows in its list an application that is crossed-out?
Normally, Titanium Backup shows a crossed-out application when you uninstall something. An uninstalled app is shown crossed-out until you refresh the list. After refresh it disappears. Sometimes, an uninstalled application might remain in the list if you previously backed it up. So, a persistent crossed-out entry normally means "it is uninstalled, but you still have a backup for it".
In my case I see `com.android.htcprofile` and `recovery` crossed-out in the list, but I have no backup for these applications. So, the question is why Titanium Backup keeps showing them in the list? What is Titanium Backup trying to tell me by keeping these crossed-out entries in its list?
Same here. DAMN, and I just did a system wipe, thinking I unistalled something by mistaki
I ended up at this thread when I Googled after encountering the same thing. I came across it because I was trying to free up some space. It is associated with a 4 MB+ text file which Titanium can't delete. I think the text file is the reason it's showing up.

[Q] Hard Reset missing from menu after update

Hi i hope you can help.
My mother has an xperia x10 which she recently updated from 2.1 to what is now 2.1 update 1.
A huge mistake, she now has a bunch of apps 'some charge for use' that she did not want. whats worse is they are all looked into the system and can not be removed, to top it all the 'restore to factory settings' option has also been removed from the android menu, presumably this was done during the so called update to stop you from removing the unwanted apps and who knows what els from the phone.
She and i are quite annoyed about this and there very behavior in that.
Is there another way to reset the phone back to how it was? we have tried the hold power button + left and right keys with no joy at all.
It has to be said this is the last Sony ericsson we and anyone we know will own.
please help, thank you
Root the phone and uninstall the annoying apps.
Thanks i will look into how to do that
Les1976 said:
Thanks i will look into how to do that
Click to expand...
Click to collapse
The easiest way to root your phone is using Superoneclick. I used it several times, and no problems so far. Just posted this here so you don't have to search the forums.
Thank you, i have the phone rooted now how do i remove those apps?
Install the app 'Titanium Backup' from the market and use it to uninstall them by clicking the app in the list and press 'uninstall'
Sent From My *Super Fly X10*
If I (or anyone for that matter!) help you, dont be afraid to press THANKS!
Also, be careful what you remove! Some system apps are needed for your phone to function.
rogem_kk said:
Also, be careful what you remove! Some system apps are needed for your phone to function.
Click to expand...
Click to collapse
Rule of thumb: only uninstall items that appear in the app drawer and if your not sure make a backup of the app first. If the app is a system app you'll get a warning before it deletes.
Sent From My *Super Fly X10*
If I (or anyone for that matter!) help you, dont be afraid to press THANKS!
It worked, those silly apps are gone.
Thanks for all your help guys. very kind or you. and yes its easy to forget about the thanks button i will use them.

Google Dialer - On LG G3

Greetings XDA Members,
I've searched for quite some time, with limited success on keeping a stock rom along with Google Dialer. The best of both worlds if you will, that would allow great features without the loss of another. It was always a debate between using a AOSP rom at the loss of the camera, or sticking to stock and working with xposed to change settings to an agreeable state. With endless google searches, forums read, and opinions given by others; they all seemed to end with "Not Possible". Well, with some trial and error I have found a workable solution that will allow the Google Dialer to replace the stock dialer, and also allow for "In-callui" to replace the stock one.
It also needs to be mentioned, that I cannot guarantee this will work with your variant, custom rom, or other items not factored into the equation. Though this has worked for me without fail on the ATT Model D850 on Cloudy 2.5 but there are a few details to note. The "In-callUI" will show for both Incoming & Outgoing calls, but you will first see your stock one come up for a brief second or so and switch over. For me, this isn't an issue as I don't immediately answer or hang up when a call completes. Some of the items recommended in the prerequisite are optional and provide other ways to find/adjust permissions, or freeze/delete applications (Stock dialer). I'm not personally an avid developer, but if you have any questions I've been able to gain a great deal of knowledge over the years with hands on experience with the Android operating system. Feel free to ask any questions that may come up, and I'll be happy to assist if possible.
Pre-requisites;
LG G3 - Rooted
Custom Recovery with knowledge on Flashing ZIP files.
Root Explorer / File Manager
Nova Launcher / App to launch an activity.
Titanium Backup (recommended to backup Dialer and other applications in case of damage)
Included in the attachments is the file GoogleStockDialerAndMms. This file is a flashable zip that will automatically adjust the permissions necessary to make calls. It's highly recommended that you make a backup of your current rom with TWRP/CWM in case any issues arise. As this adds two files to your system directory, there is always a chance that an error can occur.
If you choose the route of Nova, you can create a shortcut to an activity. Below I've included a screenshot of which activity needs to be chosen in order to use Google Dialer.
Within Nova Launcher, long-press on the home screen.
Choose "Shortcuts"
Select "Activities"
Find "Google Dialer" in the list, then tap to open it up, and select "Phone" (use the first one in the list)
Can I disable my default dialer?
The short answer is no. As a general rule, you will need to keep your present dialer enabled in order to receive calls. The long answer is that on some phones you might be able to disable your stock dialer, but on others you definitely cannot. Feel free to try it on your own device and let us know what your results are. If you choose to do attempt this, I highly recommend against uninstalling and instead move to FREEZING the phone applications with Titanium Backup or similar root enabled application.
747 views, and 44 downloads. Hopefully everything has been smooth for everyone attempted. Please leave feedback if you have any issues.
Good to see it's over 1200 views and counting. If anyone has any issues, feel free to reply so they can be addressed.
hi @Eruvion, just wanted to check if we get the search feature with your google dialer? or does this depend on the country you live in? thanks.
resitm said:
hi @Eruvion, just wanted to check if we get the search feature with your google dialer? or does this depend on the country you live in? thanks.
Click to expand...
Click to collapse
@resitm As far as I have heard and seen so far, it will work locally depending on the information generated from your local area by google. Please let me know if you attempt it and it doesn't work.
Eruvion said:
@resitm As far as I have heard and seen so far, it will work locally depending on the information generated from your local area by google. Please let me know if you attempt it and it doesn't work.
Click to expand...
Click to collapse
thanks, i will try it once im back home.
yesterday i installed the apk from apkmirror and created a shortcut for google dialer. everything worked as should other that the tab in the most left, i think thats the call history. the dialer FC anytime that icon was touched.
Good job on this even if Im already running an AOSP based ROM, I dont need this.
But you took time writing and explaining everything so thanked all your posts,
Have a nice day
Eruvion said:
@resitm As far as I have heard and seen so far, it will work locally depending on the information generated from your local area by google. Please let me know if you attempt it and it doesn't work.
Click to expand...
Click to collapse
i flashed the zip and everything seems to be working fine. i am also able to search close by businesses, i typed pizza and it showed me the closest pizza places.
the only FC i am getting is in settings when i tap call settings-voicemail, call waiting. i don't use that so its ok for me. thanks again.
also i did not have to create a shortcut, the app icon was there after restart.
resitm said:
i flashed the zip and everything seems to be working fine. i am also able to search close by businesses, i typed pizza and it showed me the closest pizza places.
the only FC i am getting is in settings when i tap call settings-voicemail, call waiting. i don't use that so its ok for me. thanks again.
also i did not have to create a shortcut, the app icon was there after restart.
Click to expand...
Click to collapse
@resitm I'm glad everything worked for you! Thanks for letting me know
@Paradoxxx Thank you for your kind words, I'm just glad I was able to give a small contribution to the wonderful community I've used for years!
Good job on your work! I also like Google dialer. Many thanks
This does work on VS985 5.0.1. The settings does crash if you click whatever the second option was (Went back to stock for my own reasons).
SyCoREAPER said:
This does work on VS985 5.0.1. The settings does crash if you click whatever the second option was (Went back to stock for my own reasons).
Click to expand...
Click to collapse
@SyCoREAPER thank you for the update!
Doesn't work here....either when triggered from a Nova Settings widget or from the icon in the launcher. Instant force close. I can try to grab a log if you think it'll help?
D852, running Dene_Bluesman's rom (basically stock LG 5.0.1)
Edit - wonder if its because the rom version i'm using is odexed? Going to try the deodexed version and report back....
Edit 2 - nope still crashes instantly. Super frustrating! Please let me know if a log will help! @Eruvion
I want to try this on my lg G2, is there any reason you think it might not work? Anything that would make this zip specific to the G3?
+1 on this. would like to see if we can get this to work on Cloudy for G2.
Hi
This thread seem's a bit dead. Anyway i have flashed this file and it works. I am on N&N 1.3 rom. It's a stock mm based rom.

Moto G5 plus app hibernation

Hey guys.
I just started using the Moto G5 Plus and have a hard time understanding one of its features. It seems when I switch to another app and wait a minute or two before switching back to the original app, the app is "reloaded", as if it's state was stored in hibernation to save memory?
The problem is that some apps don't do so well with this, and I might lose what I was doing. One example is taking a picture with snap, switching to Messenger to text someone, and back in Snapchat the app reloads and I lose the picture I was about to send. Another example is Chrome incognito tabs, they seem to lose their session after the app "reloads". There are other situations where it have been a problem, but generally the wait time is annoying as well.
I have searched everywhere in settings and the web trying to identify this functionality and possibly tweak it or turn it off. Can any of you enlighten me, or could this be bug? Do I need root to change it? The device should have enough memory to keep a few apps open, no?
I have the American model and have made sure to update it fully.
Thanks and good day to you all.
ZoonAndroid said:
Hey guys.
I just started using the Moto G5 Plus and have a hard time understanding one of its features. It seems when I switch to another app and wait a minute or two before switching back to the original app, the app is "reloaded", as if it's state was stored in hibernation to save memory?
The problem is that some apps don't do so well with this, and I might lose what I was doing. One example is taking a picture with snap, switching to Messenger to text someone, and back in Snapchat the app reloads and I lose the picture I was about to send. Another example is Chrome incognito tabs, they seem to lose their session after the app "reloads". There are other situations where it have been a problem, but generally the wait time is annoying as well.
I have searched everywhere in settings and the web trying to identify this functionality and possibly tweak it or turn it off. Can any of you enlighten me, or could this be bug? Do I need root to change it? The device should have enough memory to keep a few apps open, no?
I have the American model and have made sure to update it fully.
Thanks and good day to you all.
Click to expand...
Click to collapse
I guess most of the apps are made background-free now to optimize. I think this is the mistake of app itself, I observed this when i was using Greenify app as it marked few apps are Background-free in the list. I am waiting also for others inputs
ZoonAndroid said:
.
Thanks and good day to you all.
Click to expand...
Click to collapse
Try the optimize apps option in battery options
I do not optimize youtubeOG and Showbox.
You could freeze other apps to see if it helps.
How much ram do you have?
PiKa01 said:
How much ram do you have?
Click to expand...
Click to collapse
2gb version
jasons1004 said:
2gb version
Click to expand...
Click to collapse
In that case, I think you know the real answer. You can try messing with minfree values, but be careful because that could cause lags and force closes.

Categories

Resources