[android-developers] Re: How does launcher get the applications' icons and corresponding text

2011-06-17 Thread Kevin TeslaCoil Software
It does.

Source for Launcher2 is available:
https://android.git.kernel.org/?p=platform/packages/apps/Launcher2.git;a=summary

On Jun 17, 10:37 am, June Hello junehelloworld.he...@gmail.com
wrote:
 Does launcher load icons by using PackageManager as well, I think I need to
 learn the source code.

 Thanks a lot for your help







 On Fri, Jun 17, 2011 at 11:22 PM, TreKing treking...@gmail.com wrote:
  On Fri, Jun 17, 2011 at 9:31 AM, June_Hello 
  junehelloworld.he...@gmail.com wrote:

  I encountered with a question. Where and how  does the launcher get
  the icon and text of the application which has

  be installed in the phone, Is this information stored in database, or
  any other way else? and how can I get another

  app's icon which is showed on launcher from another my own.

  Any time you want information about other packages installed on the device,
  first stop should be PackageManager.

  --- 
  --
  TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
  transit tracking app for Android-powered devices

   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: How does launcher get the applications' icons and corresponding text

2011-06-17 Thread Dianne Hackborn
You really don't need the source code.  There are simple APIs on
PackageManager to load icons and resources.

On Fri, Jun 17, 2011 at 10:13 AM, Kevin TeslaCoil Software 
ke...@teslacoilsw.com wrote:

 It does.

 Source for Launcher2 is available:

 https://android.git.kernel.org/?p=platform/packages/apps/Launcher2.git;a=summary

 On Jun 17, 10:37 am, June Hello junehelloworld.he...@gmail.com
 wrote:
  Does launcher load icons by using PackageManager as well, I think I need
 to
  learn the source code.
 
  Thanks a lot for your help
 
 
 
 
 
 
 
  On Fri, Jun 17, 2011 at 11:22 PM, TreKing treking...@gmail.com wrote:
   On Fri, Jun 17, 2011 at 9:31 AM, June_Hello 
   junehelloworld.he...@gmail.com wrote:
 
   I encountered with a question. Where and how  does the launcher get
   the icon and text of the application which has
 
   be installed in the phone, Is this information stored in database, or
   any other way else? and how can I get another
 
   app's icon which is showed on launcher from another my own.
 
   Any time you want information about other packages installed on the
 device,
   first stop should be PackageManager.
 
  
 ---
 --
   TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
   transit tracking app for Android-powered devices
 
--
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
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.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en