If you want to launch an email client (composing a new email), you can use the power of Intents to achieve that. The email client can be launched by pre filling the certain details like to address, subject, body and optional attachment. Typically this will be used in the app,…
Following steps will help you applying the material design theme to your app. 1. In Android Studio, go to File ⇒ New Project and fill all the details required to create a new project. When it prompts to select a default activity, select Blank Activity and proceed. 2. Open build.gradle…
If you are using Android Studio, adding volley support can done just by adding ‘compile com.mcxiaoke.volley:library-aar:1.0.0’ to gradle.build dependencies module. However if you want to generate the volley.jar manually, below steps will helps you in getting it done. Downloading & Making volley.jar We will start with installing tools required to…
In Eclipse, if we want to add Google Play Services to a project, we’ll simply import the play services project to workspace and add it as a library project. But in Android Studio, if you want to add play services, follow below steps. Open your project’s build.gradle file and add…
If you want to write comments for your android functions, there is an easy way to auto generate the basic comment skeleton in Android Studio. First define you function with all the necessary parameters and a return value. Then keep the cursor above the function, type /** and press Enter…
In some cases you might want to check whether you app is running in background or foreground. An example use case would be, you want to show push notification message only when the app is in background. The following method will be very useful to know app running state. First…
When you show longer text in notification message, you can notice that the text is stripped away. So if want to show the full text in multiple lines, you need to use additional setStyle() method while your building the notification builder.
If you want to capitalise the first letter of every word in a EditText, assign android:inputType=”textCapWords” to EditText. Example: The same can be done programatically also as shown below.