Archives for Android - Page 15

Android

Create an Android Weather app step by step – Part 1

In this tutorial serie, you're going to learn how to create an Android Weather app step by step. You could already see the final result of the tutorial :  Current Weather Forecasts The goal is to show you the following steps for the creation of our Android Weather app : Step 1 : Design Step 2 : Architecture Step 3…
Continue Reading
Android

How to pick an image from Gallery and use it in Android ?

In Android applications, it can be useful to offer users the possibility to pick an image from their Gallery. When image is picked, you can then use it in a wallpaper for example or to work on the image depending the purpose of your application. To achieve that, you must first launch the intent ACTION_PICK to let OS prompt dialog…
Continue Reading
Android

Learn to consume a REST Web Service and parse JSON result in Android

In mobiles applications, very often you should get data from a Web Service to update content displayed to users. For example, you can imagine a weather application that needs to request weather data from a remote server. Content getted can be under different formats but JSON format is one of the most used format with REST Web Service. So, you're…
Continue Reading
Android

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…
Continue Reading
Android

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,…
Continue Reading
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

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