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. Android 1.5-r3 TLS on OMAP3

The latest chips (like OMAP3) have thread-local storage implemented in
hardware. Unfortunately, Android hasn't had this support since its
release - IMO, it's long overdue. I did find some older patches I
could work with, but before I spend time on this, I'm wondering if
anyone has a patch for cupcake (r3 preferred)?

Also, I'd rather use the hardware TLS to avoid the performance hit.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Directory naming convention for application data in SDCARD ?

Hi,

I have seen some apps store data in:
     /sdcard/<package-name>
 and others in:
    /sdcard/data/<package-name>

 Is there a recommended standard for this ?

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

3. Why is it Giving Out Put Twice

4. Problem with TranslateAnimation

5. Eclipse 3.3, Android SDK 1.5, adb 1.0.18 running, 1.0.20 needed

6. Service lifecycle and persistent objects

7. OutofMemory Excpetion in built in ZoomControls of mapView