Quantcast
Browsing all 110 articles
Browse latest View live

Parse json to JSONObject example

How to parse a json string to a JSONObject with the Android SDK.

View Article


How 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 Article


Block 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 Article

Programmatically 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 Article

How 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 Article


How 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 Article

How 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 Article

How 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 Article


Turn off screen orientation sensor

A simple trick to avoid user change screen orientation in certain activities.

View Article


Block incoming and outgoing phone calls programmatically

Block incoming and outgoing phone calls programmatically

View Article
Browsing all 110 articles
Browse latest View live