Parse json to JSONObject example
How to parse a json string to a JSONObject with the Android SDK.
View ArticleHow to start a phone call with the Android SDK
How to start a phone call with the Android SDK using the ACTION_CALL intent and a "tel:" parsable uri.
View ArticleBlock incoming and outgoing phone calls programmatically.
This is how to programmatically block incoming and outgoing phone calls registering a broadcast receiver and a phone state listener.
View ArticleProgrammatically install an APK to the user device
Programmatically installing an Android APK to the user device could be a useful trick to auto update your application, or installing dependencies to make it correctly work. The following snippet will...
View ArticleHow create a Splash Screen
Wait 3 seconds before it goes to next activity. You can insert other programming features in run() (onCreate) and then removing the time in "nextScreen()", so the time of Splash Screen is determined by...
View ArticleHow to prevent finishing the Activity from Back button
Understand how to avoid the end of the activity through the back button using a alert dialog.
View ArticleHow to use Animations to animate a custom View
This is how to use Animations to animate a custom View. The following example uses the class TranslateAnimation which is the most basic one.
View ArticleHow to record a phone call on Android
This is how to use the MediaRecorder SDK class to record phone calls happening on the device, be aware that MediaRecorder.AudioSource.VOICE_CALL is not always supported by vendor since recording phone...
View ArticleTurn off screen orientation sensor
A simple trick to avoid user change screen orientation in certain activities.
View ArticleBlock incoming and outgoing phone calls programmatically
Block incoming and outgoing phone calls programmatically
View Article