Author Archives: s.saurel - Page 23
First steps with Android Wear
Announced during Google I/O 2014, Android Wear is the Android platform for wearable devices. It extends the Android platform to a new generation of devices with a user experience targeting wearables' specifities. Actually only Smart Watches are supported by Android Wear but trust that Google will extend the platform into other forms of wearables in the near future. Actually, Android Wear…
First steps with Android Studio IDE
Like you must know, Google officially announced the first release of Android Studio recently. So, Android Studio is the official Android Studio IDE ! Time is come to migrate from Eclipse with ADT (Android Development Tools) to Android Studio IDE. 1. Installation Go on the following URL : and start to download the Android Studio IDE for your OS. Once…
How to send an email with JavaMail API in Android ?
As an Android developer, you're used to send email thanks to Android standard API provided in standard SDK. To achieve that, you use and call startActivity method to delegate to OS the sending email process. Perhaps, you would like to manage the entire process in your application when you send an email in Android. If you want to make this,…
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…
How to save Activity state in Android ?
In an application, it is essential to be able to save user context between pauses. By pause, I mean when a user change his current application for example when he receives a call. After this pause, he will want to return to the previous application and it will be logical for him that the application be in the same state…
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…
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); …
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…
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…
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…