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. Can an application control the open / closed state of the status bar panel?

I have an application which exhibits two different behaviors, possible
related to Android 2.2 vs. Android 2.1 update 1.

The application uses the proximity sensor to determine when the phone
is "near" the ear. If a "near" condition is detected, I get the
applications window and set the LayoutParams to FLAG_NOT_TOUCHABLE and
FLAG_FULLSCREEN. In general, this has the desired effect of preventing
accidental screen touches by the ear from causing any unwanted action.
However...

With my Android V2.2 phones: If I am in the process of sliding open
the Status Bar at the time the proximity sensor detects a "near"
condition, the Status Bar immediately closes and all is good.

With my Android V2.1 phones: If I have the Status Bar partially open,
detect a "near" condition, and then simultaneously (more or less)
revert to a "far" condition while releasing the Status Bar, the Status
Bar is left in a partially opened state. Meanwhile, part of my
application remains visible, but not touchable. I can simulate this at
will with 2.1 phones, but can not do so at all with 2.2 phones.

My questions:

1) Does anyone know why this behavior is different, and if it is
indeed related to different Android versions?

2) Is there a way that an application (such as mine!) can detect if
the Status Bar is opened, or in the process of sliding open, and tell
it to close?

Thanks for any help you can offer.

-- 

2. data upload java script

I need a javascript snippet to upload some data to a server, any
sample code ? basically what i need is a page loads and the java
script loads as part of thet page. that page also puts some data in
hidden value. (or suggest better alternative). now, as soon as the
page loads completely, the javascript uploads the data in hidden
variable to another web server.

please give me some pointers and code snippets. i need it to run in
android browser

-- 

3. InputMethodManager and it's active View

4. viewgroup and view

5. Android Revolution HD 2.0.9

6. Android saceng is back, with gps

7. Oot : adakah androiders dari solo ?