Use o ADB para isso: ./adb shell dumpsys activity activities | grep PACKAGE_DO_PROJETO | grep Hist
Android – Como interceptar o botão de ação do fone de ouvido (Like listening to the button action of the headset)
Like listening to the button action of the headset.
Android – Evite a utilização de ENUM e use as anotações Typedef
Android – AudioManager – Controle de volume com UI nativa do sistema
/** FLAG_SHOW_UI Show a toast containing the current volume. See also: adjustStreamVolume(int, int, int) adjustVolume(int, int) setStreamVolume(int, int, int) setRingerMode(int) */ https://developer.android.com/reference/android/media/AudioManager.html#FLAG_SHOW_UI
Android – Como controlar o brilho do sistema programaticamente (Changing screen brightness programmatically)
Android – Como saber se o GPS está em alta precisão, desabilitado ou economia de energia (how to know if device in high accuracy mode)
Android – Como verificar se o dispositivo esta com o modo avião habilitado
Android – Como saber se os dados móveis está ativo nas configurações (How to tell if ‘Mobile Network Data’ is enabled or disabled)
Android – Abrir tela de configurações para habilitar/desabilitar dados móveis (launch mobile network settings screen)
val intent = Intent() intent.component = ComponentName(“com.android.settings”, “com.android.settings.Settings\$DataUsageSummaryActivity”) startActivity(intent)
Android – DialogFragment setStyle
//1 -> style = DialogFragment.STYLE_NO_TITLE //2 -> style = DialogFragment.STYLE_NO_FRAME //3 -> style = DialogFragment.STYLE_NO_INPUT //4 -> style = DialogFragment.STYLE_NORMAL // — //4 -> theme = android.R.style.Theme_Holo //5 -> theme = android.R.style.Theme_Holo_Light_Dialog //6 -> theme = android.R.style.Theme_Holo_Light //7 -> theme = android.R.style.Theme_Holo_Light_Panel setStyle(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Holo_Light_Dialog)