Re: [android-developers] Stop the launcher activity from starting the application

2010-09-15 Thread Mark Murphy
On Wed, Sep 15, 2010 at 12:41 AM, Nithin M Warrier
nithin.war...@gmail.com wrote:
 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.

Mr. Stratton's solution is your only choice. While you could disable
the activity via PackageManager, that removes the icon from the
launcher. If the icon is in the launcher, by definition it can be
started.

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

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


[android-developers] Stop the launcher activity from starting the application

2010-09-14 Thread Nithin M Warrier
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