Search

androidsubway

android tips & tricks

Month

February 2016

GraphView Library Tutorial in Android

Let’s we  create Graph in Android with the help of GraphView .
Step 1) First we create new project in Android studio Name is ” GraphViewExample”
then, download  the androidGraphView library jar file.
 GraphView-4.0.1.jar Continue reading “GraphView Library Tutorial in Android”

Accessing Data Folder of Android Device using ADB Shell

While creating application with database and shared preferences sometimes a programmer wants to directly edit the data for testing purpose to make your testing easy. Thats why Android Studio has Android Device Monitor which opens the file system of your currently active Android Virtual Device (AVD) Continue reading “Accessing Data Folder of Android Device using ADB Shell”

Shared Preferences Tutorial In Android

Shared Preferences is one of the ways provided by Android to store data for e.g. when you want to store user/app data globally through out the application. Shared preferences stores data even though user closes the application.
Shared Preferences gives the facility to save and retrieve data in <key,value> pair.
Following example is an illustration of storing different types of data like (String, Int, float, boolean) in the SharedPreferences. To achieve this just follow the 2 simple steps

Continue reading “Shared Preferences Tutorial In Android”

Zoom Transition|Android Animation Tutorial

I want to share background animation in profile image.
Lets we start animation….Profile background animation just like a  other application. Continue reading “Zoom Transition|Android Animation Tutorial”

SMS Verification of User by OTP

SMS Verification is a great way of registering a customer as its time saving. You just have to type the phone number and a verification message with OTP (One Time Password) is sent to them which is automatically read by the application. Thats why this feature is gaining popularity and most of the application are adding it to their registration process. Continue reading “SMS Verification of User by OTP”

Sqlite Database Tutorial in Android

The following tutorial is an illustration of saving data in the SQLite database in Android which automatically comes with Android OS. In this tutorial we are inserting some details of Employees in the database. Using SQLite is very easy because you don’t need to establish any connetion like JDBC and ODBC.

Steps Involved:

1. Create a xml file to create layout: activity_main.xml
2. Create a model class of an employee: EmployeeDetails
3. Create a class to handle the database operations which will inherit ‘SQLiteOpenHelper’: DatabaseHandler.java
4. Create a main activity class to call the database operations: MainActivity.java

Continue reading “Sqlite Database Tutorial in Android”

Viewing SQLite DataBase Content | Android Studio

While creating android application you might encounter a situation where you works with the Sqlite Database for storing data in an android device. This database is very helpful in storing the data on the users mobile phone itself. But as a programmer it become difficult for you to test the database. So you can use adb shell to view the contents of table inside your database. You need to perform these steps in order to achieve that: Continue reading “Viewing SQLite DataBase Content | Android Studio”

Blog at WordPress.com.

Up ↑