package and class

This is a discussion on package and class within the Beginning Developers forums, part of the Android Development category; how do you find the package name and class name of an app? any help would be great thanks...

Results 1 to 3 of 3

Thread: package and class

  1. #1
    Super Moderator probbiethe1's Avatar
    Join Date
    Jan 2011
    Posts
    132
    Thanked
    7 times

    package and class

    how do you find the package name and class name of an app? any help would be great thanks

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    App Developer alostpacket's Avatar
    Join Date
    Jan 2011
    Location
    NY
    Posts
    240
    Thanked
    32 times
    Twitter
    alostpacket
    Code:
    PackageManager pkgMgr = getPackageManager();
                    
    List< ApplicationInfo > list = pkgMgr.getInstalledApplications(0);
                    
    int len = list.size(); 
                    
    for (int index=0; index < len; index++) 
    {
                        
          ApplicationInfo content = list.get( index );
                        
          String pName = content.packageName;
          String appLabel = pkgMgr.getApplicationLabel( content );
          Drawable icon = pkgMgr.getApplicationIcon( content );
    }

  4. #3
    Super Moderator probbiethe1's Avatar
    Join Date
    Jan 2011
    Posts
    132
    Thanked
    7 times
    thanks for the reply

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. Upgraded to 16GB Class 4
    By Fury in forum Android Forum
    Replies: 1
    Last Post: 03-01-2011, 01:10 AM
  2. Replies: 0
    Last Post: 02-28-2011, 06:06 PM

Search tags for this page

android app find package and class name
,
android class name
,
android class name for facebook
,
android class package
,
android find a package name
,
android find package name
,

android get class name

,
android get package and class name
,

android package class

,
android package name class name
,

content

,
facebook android class name
,
facebook android class name:
,
get class name android
,
get class names from a package android
Click on a term to search our sites for related topics.
Android Forum