Changing application description shown in option list when multiple apps can do same job

by Kacee » Fri, 13 May 2011 19:38:27 GMT


Sponsored Links
 Hello there,

I have a viewer app. There are other apps installed on my device as
well doing same job. So when i open a document, android as usual shows
a list of apps that can do that job (which is file open here).

In my app, along with App name, just beneath it, package name gets
displayed. I want to set App description instead of package name. I
tried with
 <application android:description="@string/app_description">

its not working. Where to set this custom string ?

-- 



Re: Changing application description shown in option list when multiple apps can do same job

by Justin Anderson » Fri, 13 May 2011 23:29:43 GMT


 AFAIK you can't...

Thanks,
Justin Anderson
MagouyaWare Developer
 http://sites.google.com/site/magouyaware 






-- 


Sponsored Links


Re: Changing application description shown in option list when multiple apps can do same job

by Dianne Hackborn » Sat, 14 May 2011 00:31:44 GMT


 Yes you can't, this is a security feature to help the user if apps are
trying to spoof other apps.  You should give the activity that is handling
this Intent a more descriptive label so the user better knows what it does.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 



Re: Changing application description shown in option list when multiple apps can do same job

by Kacee » Fri, 20 May 2011 15:20:56 GMT


 Ok..
But I have seen applications that do not appear with their package
name in the list created by intent (dont know what to call this dialog
box )
That means there is a way to atleast hide package name. Package name
looks bit ugly, I only want to show a meaningful string (eg. app
name ) that makes sense even to a layman.

Is there a way just to show app name or a single string text ?







-- 



Other Threads

1. Activity with launchMode = singleTop is created again

Hello,

I have an application with a single activity, whose launchMode is set
to "singleTop". My application is an image viewer/editor & hence a
user can go to the gallery, choose an image & select my application
from the share menu to launch my application.

Now, I am performing the following steps-

1) Launch my application using the launcher icon.
2) Press home.
3) Go to gallery & choose an image to share using my application.

After step 3, my application's onCreate() method hits again. As far as
I understand, the activity being the only activity in the stack, was
at the top, and should not have been created again. Observing the
gallery intent's flags, I see that the flag is set to 1 (perhaps
FLAG_GRANT_READ_URI_PERMISSION).

Is the declaration singleTop not sufficient to ensure a single
instance in this scenario?

Any help will be appreciated.

Thanks,
Akshay

-- 

2. Invoking the APK from another apk

HI,

I have two apk in /data/app which are a.apk and b.apk, and I want to
invoke b.apk from a.apk... May, i know code for  invoke b.apk from
a.apk

thanks
C.Rajesh



-- 

3. Tabs inside a fragment

4. Cookies

5. Help needed on porting Flixel Framework to Android. Current issue: switch from canvas draw to opengl es

6. Not able to write a file completely with fileinputstream and fileoutputstream?

7. Starting An Android App From An Url