Visibility

by Aviral » Wed, 09 Jun 2010 17:47:10 GMT


Sponsored Links
 I noticed that we can set a view invisible by using setvisibility()
function. Is it possible to do so for drawables also?
I want to hide an application icon which I have installed. Is it
possible??

--



Visibility

by Kostya Vasilyev » Wed, 09 Jun 2010 18:16:27 GMT


 This is controlled in the manifest file. Just remove launcher categories for
the activity.

09.06.2010 13:47  "Aviral" <aviral...@gmail.com> :

I noticed that we can set a view invisible by using setvisibility()
function. Is it possible to do so for drawables also?
I want to hide an application icon which I have installed. Is it
possible??

--


Sponsored Links


Visibility

by Aviral Shrivastava » Wed, 09 Jun 2010 19:31:22 GMT


 Hi Kostya
Thanks a lot for the info...
But is it possible to access AndroidManifest.xml from the code..
What I want to ask is...
Can I remove launcher categories for the activity(from AndroidManifest.xml)
while I am still running the application.?
the next time, it should not show the icon...

Thanks..

2010/6/9 Kostya Vasilyev <kmans...@gmail.com>

>



Visibility

by Justin Anderson » Wed, 09 Jun 2010 23:48:53 GMT


 I don't think that is possible because the manifest is part of the signed
APK.  Changing that would invalidate the signature.  Why would you want to
do that anyway?


----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


2010/6/9 Aviral Shrivastava <aviral...@gmail.com>

>>



Visibility

by Aviral Shrivastava » Thu, 10 Jun 2010 20:18:51 GMT


 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.

Thanks again

2010/6/9 Justin Anderson <janderson....@gmail.com>

>>>



Visibility

by Mark Murphy » Thu, 10 Jun 2010 20:30:08 GMT


 


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!

--



Visibility

by Aviral Shrivastava » Sat, 12 Jun 2010 11:46:04 GMT


 Hi Mark,
It worked, totally in the manner I intended it to.
Thanks a lot for your help.






>



Other Threads

1. Internet Access on ANDROID

You probably want the android-porting group, not this one.




--~--~---------~--~----~------------~-------~--~----~

2. invoke other apk file?

hi all,


I design two apk for a.apk and b.apk,
but now I want to invoke b.apk from a.apk,

to do that,I will put a Button in a.apk,
when user click the button,then goes to b.apk.

how can I do that?

thanks!
--~--~---------~--~----~------------~-------~--~----~

3. error message with MediaPlayer

4. OpenIntent Simulator - Get black screen when selecting SensorSimulator

5. How do I access a URI such as content://drm/audio/2 (which is a ringtone)

6. LCD flicker when I use the softkeyboard

7. Intercepting bluetooth device buttons