Android Parse Xml Use XmlPullParser Example
This example show you how to use XmlPullParserFactory and XmlPullParser to parse xml file and show the parsed out data in text view.
Android Parse Xml Use XmlPullParser Example Read More »
This example show you how to use XmlPullParserFactory and XmlPullParser to parse xml file and show the parsed out data in text view.
Android Parse Xml Use XmlPullParser Example Read More »
This article will tell you how to use OkHttp3 to upload or download json string or file between web server and android application. You can read Android OkHttp3 Http Get Post Request Example to learn OkHttp for basic operation.
Use OkHttp3 To Upload And Download Json File Example Read More »
This example will show you how to use OkHttp3 to send get or post HTTP request to a web server and how to parse and display response text in an Android TextView.
Android OkHttp3 Http Get Post Request Example Read More »
This article will tell you how to use java.net.HttpURLConnection class to send an http request and get an http server response in the android application.
Android HttpURLConnection Example Read More »
In the previous article we have introduced how to use the android VideoView widget to play, pause, continue, stop and replay video files in android. But when you use VideoView‘s method seekto to make the video play from a particular position, you will find the video playing is inconsistent. Sometimes it starts from the beginning.
How To Make Android VideoView Seekto Method Consistent Read More »
To start an android background service when the device boots, you should create a broadcast receiver, and make it listen to android.intent.action.BOOT_COMPLETED action. Then in the custom broadcast receiver’s onReceive method, you can start the background service.
How To Start Android Service Automatically At Boot Time Read More »
The android alarm is an OS built-in service. It provides timer liked functions. With the android alarm manager, you can create one-time alarms, repeated alarms, and so on. This article will tell you how to use it with examples.
Android One Time / Repeat Alarm Example Read More »
This article will show you how to communicate between activity and background service in android. It will play, pause and stop a web audio file in the android background service in this example. It will also update the activity progress bar from the background service to display the audio playing process.
Android Play Audio File In Background Service Example Read More »
In some android app, button will be enabled only when user input enough characters in EditText, for example user account register app. There are two methods to archive this. Use android.text.TextWatcher or listen android.view.KeyEvent event. This example will tell you how to implement this.
Android Enable / Disable Button By EditText Text Length Read More »
This article will show you how to play audio files from local files or web URL files in android programmatically. It also shows how to display audio playing progress in a progress bar.
Android Play Local / URL Audio With ProgressBar Example Read More »