Hello all.

I want to be able to show the Battery Info activity in my app, which
shows things such as the exact level, battery health, etc..  This is
an activity nested in the Settings of Android; the code is here:

http://git.source.android.com/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/BatteryInfo.java;h=ef60fc35b1f0f80f9bb88cc9d4fc5eaf55e9ef4b;hb=de2d9f5f109265873196f1615e1f3546b114aaa7

I'm not sure how I can get it, though a few applications such as Power
Manager, Any Cut, etc. show this screen as well.  I found in the
source code of Settings this intent in a file called
testing_settings.xml:

    <PreferenceScreen
            android:title="@string/testing_battery_info">
        <intent android:action="android.intent.action.MAIN"
                android:targetPackage="com.android.settings"
 
android:targetClass="com.android.settings.BatteryInfo" />
    </PreferenceScreen>

But I don't know how to use it.  I would guess from the fact that Any
Cut has a list of activities, that a list of said activities exists
somewhere, and therefore an easy way to access them exists, but I
haven't found it.

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

Reply via email to