Tag archives for Android - Page 19

Android

How to send and receive a SMS in Android ?

With all the features supported by smartphones, sometimes we forget the presence of the word phone in smartphone. Thus, it could be important sometimes to use SMS feature of Android devices. Android SDK provides a very good support for SMS and globally for telephony. In that tutorial, you will learn to send and receive SMS in Android. 1. Send SMS…
Continue Reading
News

Discover Best Apps and Games from Android in 2014

Like previous years, 2014 has been a great year for Android and its ecosystem. Market share has grown to reach new record, Smartphones' sales have continued to increase, Apps and Games available on Google Play Store have also increased. Developers are always more to wish a big success. Now, 2014 is almost ended, so let's see the best Apps and…
Continue Reading

How to close and hide the Android software keyboard ?

In an application, when you wait for users input you must use EditText wigdets. When users end their inputs and click OK button, you would like close the Android software keyboard. It's better than asking to users to close software keyboard themselves. Use that snippet code : EditText myEditText = (EditText) findViewById(); InputMethodManager imm = (InputMethodManager) getSystemService(); ((), 0);  …
Continue Reading

How to record your screen on Android ?

Android KitKat has introduced the possibility to record the screen of your device but not programmatically. The ability to record the screen of your device comes with an external tool added in ADB (Android Debug Bridge). The ADB is a tool used by developers along with the Android SDK to communictate with a device at the command line level. Record…
Continue Reading
Articles

Discover Jack and Jill for Android !

Last week, Google announced the first version of a new experimental toolchain for Android. This new toolchain is designed to improve build times and simplify development by reducing dependencies on others tools. This new toolchain is named Jack (Java Android Compiler Kit) and Jill (Jack Intermediate Library Linker). These two tools are at the core of the build process. How…
Continue Reading

How to programmatically take a screenshot in Android ?

Today, a snippet to present you how to programmatically take a screenshot in Android. You can take screenshot of a particular View and its children but in our case, we would like to take a screenshot of the entire window. So, we must to get the root view of the window thanks to following calls in an Activity : View v…
Continue Reading
Android

How to implement a Splash Screen in Android ?

Implementing a splash screen in Android is a redundant question among beginners. With that tutorial, we’re going to see that it’s very easy to implement a splash screen with just some lines of code. Before to continue, it’s important to understand that splash screen is not a recommended design pattern in Android. However, you can implement if you want and…
Continue Reading

How to use Shared Preferences in Android ?

Android provides several options for developers to save persistent application data. The solution you choose must depend on your specific needs. In this article, we are interested in Shared Preferences that let you to store private primitive data in key-value pairs. Entry Point of this solution is SharedPreferences class. It provides a general framework that allows you to save and…
Continue Reading
Articles

What are differences between px, dp and sp in Android ?

Today, a brief reminder about Android dimensions. When you create the UI layouts of your application, you're used to define dimensions with units like dp (density-independent pixels), dip or sp (scale-independent pixels). Other units supported are pt (points), px (pixels), mm (millimeters) and in (inches) where as this second kind of units is not recommended because not independent from devices…
Continue Reading