Java Code Examples for android.content.Intent.ACTION_POWER_USAGE_SUMMARY

The following are Jave code examples for showing how to use ACTION_POWER_USAGE_SUMMARY of the android.content.Intent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: SystemUITuner2   File: BatteryTileService.java   View Source Code Vote up 6 votes
@Override
public void onClick() {
    Intent intentBatteryUsage = new Intent(Intent.ACTION_POWER_USAGE_SUMMARY);
    startActivity(intentBatteryUsage);

    Intent it = new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
    sendBroadcast(it);
}