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. Sehebat apakah milestone?

As subject
Minta pencerahan nya dong
Kalo harga siy sdh dapat bisikan
Utk perbandingan sekarang saya pake Hero

-- 
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. coule you tell me in android2.0.1 the package of Calendar?

my sdk2.0.1 when i use the following code:

 ComponentName componentName =new ComponentName
("com.android.calendar", "com.android.calendar.LaunchActivity");
  if(componentName!=null) { Intent intent = new Intent
(android.content.Intent.ACTION_VIEW);
     intent.setFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK);

        intent.setComponent(componentName);
          startActivity (intent);            }
           else
           Log.i("","98979");
            }

            in Logcat: 12-22 01:21:19.253: ERROR/AndroidRuntime(601):
             Caused by: android.content.ActivityNotFoundException:
             Unable to find explicit activity class
{com.android.calendar/com.android.calendar.LaunchActivity};
             have you declared this activity in your
AndroidManifest.xml?

              can you tell me the new calendar address or package? i
think this problem is that Calendar package is change.

-- 

3. Xl unlimited masih error?

4. Restarting an application programatically

5. <WTA> cara matiin dictionary di keyboard

6. streaming issue with mediaplayer on android 2.0

7. Minta foto htc magic