ã ãã¶å¤ãã¨ã³ããªã¼ã§ããããã¤ããä¸è©±ã«ãªã£ã¦ããadakodaããã®ãã
ä»åã¯ãã½ã¼ã¹ã³ã¼ãããã£ãã®ã§ãã¼åãããã£ãã®ã§ããããã¤ã³ãã³ãã«æ ¼ç´ããã¦ãããã¼åãåæãããã¨ãããã¨ã¯å¯è½ã§ããããï¼ï¼ï¼ã©ãªãã ãåãã§ããã°ãæãã¦ãã ããããã
[Android] Battery Info(バッテリー情報) - adakoda
ã³ã¡ã³ããæ¸ããªãã£ãã®ã§ããã£ã¡ã«æ¸ãã¦ãã©ããã¦ã¿ããã¹ã
以ä¸ã®ã³ã¼ãã§åæã§ãã¾ããï¼ãã解決æ¸ã¿ã ã¨æãã¾ãããé ã¬ã¹ãã¿ã¾ããã
@Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(Intent.ACTION_BATTERY_CHANGED)) { // ããããçç¥ Set<String> keys = intent.getExtras().keySet(); for (String key : keys) { Log.d("ACTION_BATTERY_CHANGED's key=", key); }
ãã°
D/ACTION_BATTERY_CHANGED's key=(25644): icon-small D/ACTION_BATTERY_CHANGED's key=(25644): present D/ACTION_BATTERY_CHANGED's key=(25644): scale D/ACTION_BATTERY_CHANGED's key=(25644): level D/ACTION_BATTERY_CHANGED's key=(25644): technology D/ACTION_BATTERY_CHANGED's key=(25644): status D/ACTION_BATTERY_CHANGED's key=(25644): voltage D/ACTION_BATTERY_CHANGED's key=(25644): plugged D/ACTION_BATTERY_CHANGED's key=(25644): health D/ACTION_BATTERY_CHANGED's key=(25644): temperature