When developing a web application that’s designed specifically for the WebView in your Android application, you can create interfaces between your JavaScript code and client-side Android code. For example, your JavaScript code can call a method in your Android code to display a Dialog, instead of using JavaScript’s alert() function. …
Read More »Custom Font in android
In this post, we’ll look at a generalized approach, which is more complex, but also more suitable for a repeated use of custom fonts. Extending TextView We’ll create a new Java class, which extends TextView. This allows us to use that class in all XML views. It inherits all functionality …
Read More »Music library for android
This is the music library for android. You can use this library by just download and import in your android project. In this library we provide you detailed list of song which is stored in your phone. Some methods are defined to get details of songs. Follow these steps to …
Read More »Login With Facebook Android Studio using Facebook SDK 4
Hello friends, welcome to our new tutorial. In this tutorial we will create a login with facebook android app using android studio and facebook sdk 4.0. So lets begin. Creating Android Project Open Android Studio and Click on File-> New ->New Project Give your application a name (in my case …
Read More »How to get contact details in Android phone
In this tutorial I am going to share code for getting phone contact detail from your android phone. It will pick all the phone number, email and profile picture also.
Read More »How to get screen width and height of device ?
If you want to get screen width and height of device in java file you can use DisplayMetrics class . This is a very simple way to get screen size. By using this code you can get size in pixels.
Read More »How to Get List of Installed Apps in Android
Android PackageManager class is used to retrieve information on the application packages that are currently installed on the device. You can get an instance of PackageManager class by calling getPackageManager(). PackageManager provides methods for querying and manipulating installed packages and related permissions, etc. In this Android example, we we get …
Read More »How to clear cache data in your Android application Programmatically ?
To do it programmatically you need to remove user data from application dir. You have to create a class “MyApplication” which extends with “Application” class. In this class by using this code you can remove user data from application dir. 1). Declare MyApplication class in manifest file as shown below: …
Read More »Android SQLite Database Tutorial
SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite is a very light weight database. In this tutorial I’ll be discussing how to write classes to handle all SQLite operations. In this tutorial …
Read More »Email crash report using ACRA
It would be great to get a detailed report every time your app crashes. And that’s exactly what we’re gonna do in this post. I’l be using ACRA, a wonderfully simple crash reporting library.Its also well documented. A brief intro into ACRA : 1. It is capable of creating detailed …
Read More »