Hi...
I want to know how an application is updated in Android. Is there a specific
code for that??


In my application I have used the feature
public void setApplicationEnabledSetting
(String<http://developer.android.com/reference/java/lang/String.html>packageName,
int newState, int flags)
and using this I disabled my application (by passing
COMPONENT_ENABLED_STATE_DISABLED<http://developer.android.com/reference/android/content/pm/PackageManager.html#COMPONENT_ENABLED_STATE_DISABLED>
 for int newState ), without deleting its apk.

Now, can the updated version of the apk be installed? and secondly, if the
updated version do gets installed, will it enable the application again? (by
changing int newState from
COMPONENT_ENABLED_STATE_DISABLED<http://developer.android.com/reference/android/content/pm/PackageManager.html#COMPONENT_ENABLED_STATE_DISABLED>
 to 
COMPONENT_ENABLED_STATE_ENABLED<http://developer.android.com/reference/android/content/pm/PackageManager.html#COMPONENT_ENABLED_STATE_ENABLED>,
 or 
COMPONENT_ENABLED_STATE_DEFAULT<http://developer.android.com/reference/android/content/pm/PackageManager.html#COMPONENT_ENABLED_STATE_DEFAULT>
)

Thanks & Regards
Aviral

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to