Android :: Retaining Persistent Information On Different Versions Of Software.
Aug 31, 2010
I noticed that recently any photo uploads have the caption "Uploaded via Facebook Mobile" instead of "Uploaded via Facebook for Android". This changed sometime between May 10 and 15: Sometime between May 10 and 15 the Facebook Android app has c on Twitpic.Can anyone help me with this issue? and is anybody having the same problems as I'm having?
View 1 Replies
Nov 9, 2010
This usually happens when the user hits "Home", does something else, then eventually wanders back into the app - it attempts to go back to where it was before, but the application Context has mysteriously lost all its previously-saved state information (in my case, a few integers and a few Strings). I know this is a very vague question, but are there any cases (other than the user using "back" to back completely out of the application) where the application Context gets completely destroyed even though the application is not terminated? Is there a better way to maintain persistent state information?
View 1 Replies
View Related
Dec 1, 2009
I have been facing problems to manage statics variables used in my android application. If we exit the application against a particular event (touch or key event -which is must for my app), all the statics variables are retaining the values when I am launching it again. I am invoking Activity.finish() method for termination . I know there is a collection type class available called Bundle and we can use it to save the states of all the statics and get those back when again creating the same activity during relaunch, but it would be a hard task if we want to port some j2me applications to Android because of having thousands of statics variables. Is there any way to kill the application completely including all the statics variable used there?
I tried with System.exit(0) and it works well for Android G1 and G2 (tested in firmware 1.6). But in Android Robyn (prototype) the same causes a major defect ("Activity not responding" popup apears just after exit) and I came to know from android dev forum that calling System.exit(0) is not recommended for termination of an activity.
View 3 Replies
View Related
Oct 14, 2010
Phone Highlights: S-Off. Stock Froyo. Rooted. ClockworkMod installed.
================================================== ==
OK, it was my fault - I was stoopid.. I was having issues with Marketplace and then found that GTalk wasn't working and, well, one thing followed another and I blew away the GTalk APK. Stoopid I know, but it happens.
So given that finding another copy of GTalk 1.3 is proving rather hard, I think option 2 is to restore the stock Rom.
I have S-Off and Clockwork Mod and I rooted with 2.1.0 previously. I've got a recent Nanodroid backup (not recent enough to have the APK on it though - ) and continuous Titanium Backups all nestled neatly on my SD.
Now, bear in mind I've had several weeks of hell at work, my mind's not firing on all cylinders when it comes to me lil' Droid so you'll have to forgive me if this is a real silly question, but....
What steps do I need to follow to return back to my stock 2.2 rooted goodness after I've used ClockworkMod to do an image recovery? Can I assume that the recovery will just put stock Froyo back on? If so, do I need to do a Nanodroid restore afterwards and are there any steps I need to follow to become re-rooted once complete?
I should add that apart from a lack of Marketplace right now, the phone is otherwise perfectly happy and functional.
View 8 Replies
View Related
Jun 5, 2010
Any idea how to remove APP2SD and partition off my droids sd, and get back to the rooted but stock SD size?
View 2 Replies
View Related
Jul 7, 2010
I am a Mac user (photographer/ videographer). I also rely heavily on my iPod Touch when mobile (i can often find a wifi signal when i am out and about). I use iCal on the Touch and iCal on my Mac as well as the address book on both everyday and as a Mobile Me user, my two devices sync so everything is mirrored and up to date. I also HATE AT&T for their terrible signal strength and coverage and have been a loyal Verizon customer for many years and this is why I don't have an iPhone. Okay, all that being said, is there an easy way to still use everything I love and rely on with my Mac (the calender and address book, mainly) and easily sync all of my existing information and future info to an Android based device? How easy is it to use an Android device with a Mac? I don't want to have to manually re-enter my entire address book into a new device.
View 8 Replies
View Related
Oct 2, 2009
My application needs to store some application specific data on the device that persist, even when the app is uninstalled. Using files or databases is not possible as they are deleted with the app when the app is uninstalled. Storing it on an SD-card is too fragile. It is my understanding Content Providers also are deleted with their parent app?
View 7 Replies
View Related
Aug 6, 2009
I need to retain a complex object in my service, so I can reliably come back to it (it holds updates). Initially I coded it just as a class filed in my Service implementation but I'm observing that the updates object is periodically reset to null which tells me that server class itself is recreated. Can someone recommend lightweight reliable strategy to save and recreate such updates object (I can make it serializable)
View 2 Replies
View Related
May 18, 2010
Im using
CODE:.......
Now, since Cookie does not implement serializeable, I can't serialize that List.
specified my goal, not only the problem)
My goal is to use the DefaultHttpClient with persistent cookies.
View 1 Replies
View Related
Jul 21, 2010
In the class PersistentState.java the prefs variable gets the saved/typed text from prior sessions here, on line 106 into restoredText.
Where does the getString method get the saved/typed text?
CODE:............
View 1 Replies
View Related
Apr 29, 2010
First off, let me say that feel free to recommend me if long lived TCP persistent connections are the way to go or persistent HTTP connections are better.
I've also pre-read that instead of having a persistent connection, I can have a polling mechanism.
I'm just asking in the curious interest of how can I create a persistent connection from Android to a server?
View 2 Replies
View Related
Nov 23, 2010
How can I execute an action (maybe an Intent) on every specified time (e.g. Every day on 5AM)? It has to stay after device reboots, similar to how cron works.
I am not sure if I can use AlarmManager for this, or can I?
View 1 Replies
View Related
Oct 27, 2010
I'm writing a bitmap editor where I use the Command Pattern to represent actions that will transform the document. I keep all the commands executed so far in a list and, to implement undo, I restore the document to its initial state and then replay all but the last command.
I would like my undo/redo system to have the following feature: When the user closes the editor and returns, the document, including the available undo and redo commands, should be restored to the state it was in when the user left.
I'm implementing this for Android where your application can be given very little notice before it will be cleared from memory if e.g. the user gets a phone call. Also, some of my commands are e.g. a list of all the x,y co-ord the user painted on so these might take a few moments to save to disk.
My current idea is as follows:
When a new action is performed, the command object is added to a list S for commands that need to be saved to disk.
A background thread is used that will continually take commands from list S and save them to disk. The postfix of the filenames used will be numbered in sequence. For example, if the user filled the screen then drew 2 circles, the command files might be called FillCommand1.cmd, DrawCircleCommand2.cmd, DrawCircleCommand3.cmd.
Periodically, we save a "checkpoint" command whose purpose is to store the full document state so that, even if one of the .cmd files is corrupted, we can restore a recent version of the document.
When the user exits the app, the background thread attempts to finish up saving all the commands it can (but it might get killed).
On startup, we look for the most recent .cmd file that represents a checkpoint that we can load successfully. All the .cmd files we can load after this (i.e. some files might be corrupt) go in the redo command list, all the .cmd files we can load between the first checkpoint loaded and the oldest checkpoint we can load go in the undo list.
I want the undo limit to be about 20 or 30 commands back so I need extra logic for discarding commands, deleting .cmd files and I've got to worry about multi-threading behaviour. This system seems pretty complex and will need a lot of testing to make sure it doesn't go wrong.
Is there anything in Java or Android than can help make this easier? Am I reinventing the wheel anywhere? Maybe a database would be better?
View 2 Replies
View Related
Feb 19, 2010
I have an application that sets the user's background. Is it possible to remove the wallpaper if my app is uninstalled?
View 1 Replies
View Related
Oct 22, 2010
How do you stop persistent programs,
for instance:
when i goto manage applications -> running services, fring is always running even if i don't run the app.
I will force stop the app, then minutes later, it will be back there again. that's just one of them.
Amazon mp3 also does the same thing. it still comes back even if i use titanium backup to freeze the app.
View 2 Replies
View Related
Oct 22, 2013
I'm looking for an email app with really persistent notifications, that is: instead of the single tone/vibrate notification when a new email arrives, I need it to keep notifying me periodically (say, once per minute) until I open the app and read the email, or at least clear it from the notification shade.
recommend an email app that does that, or an addon/plugin/extra app that accomplishes the same thing?
View 2 Replies
View Related
Jan 10, 2014
So, we all know that some apps that are meant to always be running have this feature to place a constant notifcation in the statusbar which keeps the app from being killed off by Android... and now we got, in Jellybean, the possibility to hide notifcations from any app. If I do this with an app that has this enhanced priority notification running, will the app still remain "protected" from being killed? Or will the hiding of this notification result in the app being reduced back to its "regular" state?
View 3 Replies
View Related
Feb 14, 2013
Any mod or app that allows the notification/status bar be visible all the time throughout any app? I dont mind loosing that few bits of screen.
View 3 Replies
View Related
Mar 18, 2010
I recently converted to BH_MAN stock BH2 image + root. I'm having the following situation:After the install and performing the Master reset everything is working fine, I proceeded to download some applications and everything was operational. I rebooted my phone (for some reason I do not recall right now, happened 2 days ago) and when it came up, I had several applications corrupted: There was an icon in the same place that the original was with the same name but different icon, and if I clicked it would advise that the application was not installed. I would go to my downloads and the application management sections and see the application and it wouldn't work till I uninstalled it, then reinstalled it.Now, last night I also uninstalled the T-Mobile "My Account" software and let my battery drain out completely to have it sync correctly (that was another problem I was having, batt would say I was at 20% and I had 4 bars in the screen, fixed now) and once I let it charge completely I powered it on and some applications were uninstalled again, but the T-Mobile Account software was there again! Can anyone explain if this is a permanent problem or is there something to be done?
View 3 Replies
View Related
Feb 18, 2013
I have Cyanogenmod 10.1 (self-built) on my Samsung I9300 Int., but I assume the question applies to every android version (I'm new to android development and flashing custom firmwares to my phone, but I have thorough experience with other embedded devices and gnu/linux):
I'm currently modifying a system apk (specifically LockClock.apk), which comes with CM10.1. From time to time, I "adb push" a modified version of the apk to my /system/app. (When the app works), it works without problems until the phone is restartet. After the reboot, the application does no longer appear to be installed (though the modified apk is still present in /system/app). I have to "adb push" the apk again, to make it work again. Is there a way to make the app permanently installed after an "adb push"?
View 2 Replies
View Related
Sep 11, 2012
I am sure this has happened to many - with persistent notifications the status bar is all taken up and any new notifications do not show up without dropping the notification scroll.
Short of removing persistent notifications, I have tried No LED/ Super Notifier/ Super Status Bar/ Status Bar Pro - all have one or the other problems. For example the Super Status bar just did not work. So I am writing to ask??
Is there an elegant solution - such as maybe double wide status bar, or like windows - hiding the notifications you do not need to see but they're still there (so you can ensure the app did not go quit on ya).
I am running a Verizon Spectrum LG VS920 Stock GB ROM.
View 1 Replies
View Related
Sep 5, 2010
Okay, So I have my brightness set to max, I have power saving mode turned OFF, yet when the battery starts to die down, the phone INSISTS on automatically setting the brightness to a lower setting.Anyone else notice this, or is it just my phone? Again I have brightness set to max, power saving off yet when my battery level gets really low, the darn phone insists that the brightness should be less, and decreases it for me automatically.
View 11 Replies
View Related
Jul 15, 2010
Unless I'm mistaken, it seems the X only ringtones or vibrates one time when an SMS, MMS or GMail is received. There does not seem to be a method to allow periodic ringtones, vibrations or LED blinks -- to indicate a message was received. So the only way to see if you have a message seems to be to wake the phone up. If true -- this would be a real bummer.
View 7 Replies
View Related
Oct 3, 2009
How can I publish two versions of my app without changing the package name, so that users may upgrade to either version, one for Anroid 1.5 and one for Android 1.6 ? I want to offer new features requiring Android 1.6 as soon as possible, but not all users will have upgraded to Android 1.6.
View 2 Replies
View Related
Jan 8, 2010
The requirement is totally simple: I want to have a lite and pro version of an app. There is a little bit of difference between those two apps, but they are 99% identically. Unfortunately it seems that the best choice is to really treat this as two projects that are one and the same and copy over the source code and assets from one to the other. The Android Manifest file must be different, because the Android Market - for some reason - makes the implementation's package name the ID. Working around this ID issue the straight forward approach would be to have a third project with the common code that exports its code, libraries and in a best case scenario also the ressources to the other two objects. Unfortunately this doesn't work. Only the actual Android projects generate the R.class and so the common project would need to be dependent on it..
View 6 Replies
View Related
Jan 26, 2010
I can run my application on 1.5, 1.6 and 2.0 emulator and on a 1.5 device without any problems. But some of my users are reporting force close and strange menu entries (see the attachment) using 1.6 and higher version devices.
This screen should look like this:
http://www.taypo.com/blog/WindowsLiveWriter/TurkceKlavye0.7_6F1/settings_0.7_2.png
And the code that generates this screen is:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/general_settings">
<CheckBoxPreference android:title="@string/haptic_feedback" android:defaultValue="true"android:summary="@string/haptic_feedback_summary" android:key="vibrate"/>
<CheckBoxPreference android:title="@string/sound_feedback" android:defaultValue="false" android:summary="@string/sound_feedback_summary" android:key="sound" />
<CheckBoxPreference android:title="@string/auto_caps" android:defaultValue="true"
android:summary="@string/auto_caps_summary" android:key="auto_caps" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/layout_settings">
<ListPreference android:title="@string/keyboard_layout" android:defaultValue="TRQ" android:key="kbd_layout" android:entries="@array/layout_names" android:entryValues="@array/layout_values" />
</PreferenceCategory>
</PreferenceScreen>
View 1 Replies
View Related
Sep 3, 2009
I want to use the same eclipse project to maintain only one source code (or two projects that refer to a generic project). My problem is that the names of the package have to be different on the market (eg: my.android.app.lite and my.android.app.pro). If the package names are differents, the generated java ressource files are differents (eg: my.android.app.lite.R.java and my.android.app.pro.R.java). So, the source files must point to differents R files according to the version (pro or lite) and I have to change all the import...
View 6 Replies
View Related
Nov 17, 2009
We are upgrading our application to add 2.0 support. I have read http://developer.android.com/guide/appendix/api-levels.html and the older blog post http://android-developers.blogspot.com/2009/04/backward-compatibility.... I want to avoid using reflection if possible. I have found that if I set my minSdkVersion="3" in the application manifest but in my build path in eclipse point to the Adroid 2.0 jar file I can compile with direct calls to 2.0 code (with the relevant code to ensure they are not invoked on <2.0 devices). My question is will people with pre 2.0 devices be able to see the application in the market place in this case? What are other people using for multi-targeting different API levels with the same package.
View 7 Replies
View Related
Feb 19, 2009
I am planning to have two versions of the same app available in the market - let's say "App-Lite" and "App-Advanced". They both almost the same core functionality, but App-Advanced has a bit more specific features, than the App-Lite has. Now I am thinking what would be the strategy of deploying those two apps in the market. The simple way is to provide different name space in AndroidManifest.xml for both apps, so "App-Lite" and "App-Advanced" would show up as two completely different applications and could be installed parallel on the same device. But I'm also thinking about another way of installing the App-Advanced version - like an upgrade to the App-Lite which might be already installed. To do this, I can just set the same name space for both app in AndroidManifest.xml, so after installing one app would replace the other one - I can do this from adb command line, but I'm not sure how android market would behave in this case. Will it show them as two different apps, will it show them as two different versions of the same app with the ability to upgrade from one version to another, or it just will not allow to publish two apps with the same name space? Is this scenario doable with Android Market?
View 3 Replies
View Related
Aug 3, 2009
Whats the best way to deploy several customized versions of a Android application? Currently I have a script to exchange the resource folder for getting a customized version of my app. It works great, but all custom versions still have the same package name in the AndroidManifest.xml. Therefore it is not possible to install two customized versions of the app at the same time.
View 3 Replies
View Related