Please define "didn't get the result". On Sun, Aug 8, 2010 at 9:57 AM, manoj <[email protected]> wrote: > Hi Mark, > > could you please alobrate it? I have used the following code. but > didn't get the result. > > Intent i = new Intent(); > i.setAction(Intent.ACTION_MAIN); > i.addCategory(Intent.CATEGORY_HOME); > PackageManager pm = this.getPackageManager(); > ResolveInfo ri = pm.resolveActivity(i, 0); > System.out.print("HOME PKG NAME + "+ri.resolvePackageName); > > Could you please tell me? > > On Aug 7, 10:22 pm, Mark Murphy <[email protected]> wrote: >> Create an Intent that brings up the HOME screen, then use >> PackageManager and resolveActivity(). >> >> >> >> >> >> On Sat, Aug 7, 2010 at 9:40 AM, manoj <[email protected]> wrote: >> > Hi all, >> >> > I have a some strange issue. I would like to get the package name of >> > the current home screen. >> >> > lets say we have two home screens : 1. default android home theme >> > 2. 3rd party >> > home theme. >> >> > Assume both are installed and current home theme is 3rd party home >> > theme. >> >> > Now I would like to get the package package name of the current home >> > theme (3rd party). Is there any api which can give the current home >> > screen package name? >> >> > I can get the package name in ddms. But I want it programmatically. >> >> > Regards, >> > Manoj. >> >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Android Developers" group. >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group at >> >http://groups.google.com/group/android-developers?hl=en >> >> -- >> Mark Murphy (a Commons >> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy >> >> _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 >> Available!- Hide quoted text - >> >> - Show quoted text - > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en >
-- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

