Android Local Broadcast Manager Example

Android global broadcast makes different android apps’ communication easy and clear, but it also has below security issues. Any android apps can send the same broadcast intent action which your application broadcast receiver listens. This issue can make your app being attacked. Any android apps can listen to your app’s broadcast receiver registered action. So

Android Local Broadcast Manager Example Read More »

How To Grant Write Settings Permission In Android

When you write an android app, you sometimes may need to change system settings. For example, change the android device screen brightness. But such action needs your app to have android.permission.WRITE_SETTINGS permission, otherwise you may encounter the exception with the message java.lang.SecurityException: com.dev2qa.example was not granted this permission: android.permission.WRITE_SETTINGS.

How To Grant Write Settings Permission In Android Read More »