Aviral Shrivastava wrote:
> HI...
> Thanks for the info...
> 
> I want to remove the icon of the application that I have installed and
> want to get it back depending upon my choice. That is, the apk should
> remain in the system. But a user should not be able to access it by
> normal conventional means. Later, he should have the choice of making
> this icon visible again and then be able to use it.

You can try using PackageManager to enable or disable the activity.

http://d.android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting(android.content.ComponentName,
int, int)

(or http://bit.ly/9nmmAM if that URL is too long)

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

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.6 Available!

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