You cannot force your activity to be the home screen.

You can force your activity to *not* be the home screen by calling
clearPackagePreferredActivities() on PackageManager. Then, the user
will get a chooser the next time the HOME screen is launched (e.g.,
pressing the HOME button).

On Wed, Sep 21, 2011 at 2:24 AM, vishnu raj <android.vis...@gmail.com> wrote:
>
>  hai,
>
> i have developed an android custom lock screen so that the default
> launcher is replaced with my app.
> I have done changes in android manifest file to make app as home
> screen.
> Now the problem is that i cannot control my app. That means whenever i
> click the home , my lock screen is come. i wanted to set an option to
> disable and enable  my app.
>
> So i wanted to known whether there is no option programmatically(not
> in manifest file) to make my app activity  as homescreen so that i can
> disable the app when i don't need that.
>
> --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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

Reply via email to