Thanks, but sad :) On 16 Jun., 23:22, Dianne Hackborn <[email protected]> wrote: > See those magical string constants you have put in your code? Don't do > that. > > There is currently no API for this, sorry. > > > > > > > > > > On Thu, Jun 16, 2011 at 8:39 AM, Devomat <[email protected]> wrote: > > Hello, > > > I want to show the Battery-Chart with a button click: > > > Intent intent = new Intent(Intent.ACTION_MAIN); > > intent.addCategory(Intent.CATEGORY_LAUNCHER); > > intent.setComponent(new > > > ComponentName("com.android.settings","com.android.settings.BatteryHistory")); > > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > > PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, > > intent, 0); > > > But it doesn't work. > > > Any solutions? > > > Thanks. > > > -- > > 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 > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > 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 [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

