This example will show you how to create a download manager to download files from a url in the android application. It uses android’s activity, foreground service, AsyncTask, and notification, etc.
This example will show you how to implement force logout when same user account login in another instance of same android app. It will use both android activity, service and broadcast receiver components to implement.
This example shows you how to implement a simple news app use RecyclerView, Fragment, Qualifier, PercentRelativeLayout etc. If you do not know how to use those android widget, you can read previous articles about them. I will list all the related article at the end of this example.
This article will show you how to use RecyclerView to implement an android chat application. You can read article Android RecyclerView Example to learn more about RecyclerView. You should read Android Nine Patch Image Example to learn how to make the chat bubble images stretch correctly.
This article will show you three best practice when use android activity class. These best practice can make your java source code simple and clear.
android.util.Log is the log class that provides the log function. It provides the below methods to log data into the LogCat console.