I don't know if you can make it not launch, but you could check a flag
in all of your onCreate onStart etc methods and just call finish()
without doing anything...
except maybe saying "disabled".

Nithin M Warrier wrote:
> Hi,
>
> I have a enable and disable button. When this button is enable, user can
> launch my application normally. But when the button is in disable state, I
> don't want to start the application, that is the launcher activity should
> not start, but the icon for application will be there.
>
> When we click on the icon for application to launch it should not start. Any
> Idea please.
>
> --
> Thanks
> Nithin M Warrier
> http://smartandroidians.blogspot.com
> <http://completeclouding.blogspot.com>
>
> Dream Big and Work Smart To Make It a Reality !!!

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