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 »

Android ActionBar SearchView Autocomplete Example

This example will show you how to use android.support.v7.widget.SearchView class to add a search box and implement autocomplete function for the search box. It also demos how to use android.support.v7.widget.ShareActionProvider to open the share application list for your android application. You can see the example demo video at the end of this article.

Android ActionBar SearchView Autocomplete Example Read More »