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. Copy Protection ON and phones compatibility.

Hi,
can you tell me please why if I set the Copy Protection ON from my
developer console,
my apps isn't available on many phones like Sony Ericsson X8 Q1.6 ?

-- 

2. (WTA) tanya seputar sensor handset Android

Meneruskan penasaran..

Sensor apa yg dipakai oleh ghost radar?

Kenapa harus repot2 masang sensor elektromagnet di sebuah handset?


*penasaran*

Jadi sapa yg mau ngikut gw hunting hantu di jeruk purut pake ghost radar kamis 
depan?



Sent from my Android

-- 
===============
"

3. streaming performance issue in froyo

4. Problem with list

5. Application Icon Badge

6. touch zoom for image

7. application in Long press Home button(Recent task info)