Skip to main content

Posts

Get device name,IMEI no,screen width,height and mobile no in Android

Hi friends,Today I'm going post about how to Get device name,IMEI no,screen width,height and mobile no.Few days ago I need to use this all in my recent project but could not seen any tutorial which explains about this all.So have look on code part it's pretty easy.Android provides us API for this all. Code: public class Utility {     int sh, sw;     Context context;     DisplayMetrics metrics;     public AdParameters(Context context) {         // TODO Auto-generated constructor stub         this.context = context;         metrics = context.getResources().getDisplayMetrics();     }     public String getDeviceName() {         return android.os.Build.MODEL;     }     public String getIMEI() {     ...

Create Database in Android using SQLite

Hi all ,Its my great pleasure to write an article about Database in Android.We consider you have some knowledge of Android application development,Java like Singleton class and Database also.So first have a look on XML part : Menu.xml <?xml version= "1.0" encoding= "utf-8" ?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android"     android:layout_width= "match_parent"     android:layout_height= "match_parent"     android:orientation= "vertical" >     <LinearLayout         android:layout_width= "fill_parent"         android:layout_height= "wrap_content"         android:orientation= "horizontal"         android:weightSum= "100" >         <Button    ...