> > No it should not be the case because when you buy a new android phone > Google Google Setup Wizard package runs which has a Home category > activity(com.google.android. > setupwizard/.SetupWizardActivity having > higher priority than home screen) which activates the phone, ask for > setting up google account and then disables the Home category > activity(com.google.android.setupwizard/.SetupWizardActivity) and > actual Home screen comes. For this case manifest doesnt have any > explicit state enabled/disabled. The default value android:enabled is > true if not stated. Disabling of SetupWizardActivity in this case > happens at run time only. > > Now if you upgrade the phone to a higher android version and phone > reboots, SetupWizardActivity should start again but that is not the > case and Home intent is recieved by HomeScreen. It means in upgrade > the activity which is disabled will remain disabled. >
Many times comparing the behavior of apps that come installed with a device and those that get installed later is like comparing apples and oranges. Many apps that come pre-installed on a device have System permissions which allow them to do things normal apps cannot. So i am wondering if I am disabling correctly or not ? But as per API > I am disabling it correctly because until upgrade happens my activity > is disabled. > As for whether you are setting it correctly or not, you don't have many options... You have the API available to you, and that's it... So I would guess that you are calling it correctly. I think somebody from google android framework team should comment. > Perhaps Dianne or Romain will, if they happen across this thread and feel our comments don't adequately answer the question... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:14 PM, Sudeep Sharma <sudeep.andr...@gmail.com>wrote: > No it should not be the case because when you buy a new android phone > Google Google Setup Wizard package runs which has a Home category > activity(com.google.android.setupwizard/.SetupWizardActivity having > higher priority than home screen) which activates the phone, ask for > setting up google account and then disables the Home category > activity(com.google.android.setupwizard/.SetupWizardActivity) and > actual Home screen comes. For this case manifest doesnt have any > explicit state enabled/disabled. The default value android:enabled is > true if not stated. Disabling of SetupWizardActivity in this case > happens at run time only. > > Now if you upgrade the phone to a higher android version and phone > reboots, SetupWizardActivity should start again but that is not the > case and Home intent is recieved by HomeScreen. It means in upgrade > the activity which is disabled will remain disabled. > > So i am wondering if I am disabling correctly or not ? But as per API > I am disabling it correctly because until upgrade happens my activity > is disabled. > > pm.setComponentEnabledSetting(name, > PackageManager.COMPONENT_ENABLED_STATE_DISABLED, > PackageManager.DONT_KILL_APP); > > I think somebody from google android framework team should comment. > > Thanks , > Sudeep > > On 6/26/12, jc <jroma...@gmail.com> wrote: > > On Tuesday, June 26, 2012 10:40:28 AM UTC-5, MagouyaWare wrote: > >> > >> > >>> There is no state mentioned in manifest for the upgraded component, it > >>> should be in Disabled state until user enables it or Factory reset of > >>> phone is done. > >>> > >> Why? I didn't read it that way. I agree that it is not well-defined, > but > >> > >> the docs do not say that this should be the case. > >> > > > > I would suspect that upgrading doesn't retain your runtime setting > because > > it resets back to the manifest value, or in your case the DEFAULT value > > since you don't have it defined in your manifest. > > > > > http://developer.android.com/guide/topics/manifest/application-element.html > > > > http://developer.android.com/guide/topics/manifest/activity-element.html > > > > > > > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en