BREAKING:

Android – Get Brand name and Device name

Here I am going to show how to fetch some device values: 1. Brand name of Android device (SDK Says:  The Brand the software is customized, if any) => Build.BRAND 2. Model number of Android device (SDK Says: Device name of Industrial Design) => Build.DEVICE For exaple: TextView txtView = (TextView) findViewById(R.id.textView1); txtView.setText("n Brand => "+Build.BRAND); txtView.append("n […]

Read More

Android – Retrieve phone number

Hi, How do we fetch phone number to use inside our application? By using below code we can retrieve the phone number: TelephonyManager mTelephonyMgr; mTelephonyMgr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String mblNumber = mTelephonyMgr.getLine1Number(); Note: Dont forget to add READ_PHONE_STATE permission to be added inside the AndroidManifest.xml file: <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission> FYI, i have tested this in my […]

Read More

Android – Retrieve Device’s SDK version and API level

Ques:How do i fetch device’s SDK version and API level number? Ans: Build.VERSION.SDK_INT => To know API Level number i.e. 7,8,9 Build.VERSION.RELEASE => To know version code i.e. 2.1, 2.2, 2.3, 3.0 For your info, // SDK_INT is only available in 1.6 and in newer // REALEASE works on every version released so far. For […]

Read More

Android – Sending SMS from android application – Method 1

Today I am going to discuss about to send SMS from your android application. Basically there are 2 ways by which we can send sms: Open native SMS composer write your message and send from your android application So here I am going to write about the 1st method i.e. Open native SMS Composer. (For […]

Read More

Android – Sending SMS from android application – Method 2

Hi, Here i am going to discuss about to send SMS from your android application. Basically there are 2 ways by which we can send sms: Open native SMS composer write your message and send from your android application

Read More

Mobile Trick – Disable Data connection

Hi, Did you ever suffer from unwanted charges charged for unwanted data connection, then here is  solution for you to “Disable data connection” from your mobile phone. Just follow the below steps: 1. Type *#*#4636*#*# 2. Now you have a list of options available in your screen regarding : phone information, battery information, battery history, […]

Read More

Android – Send object from one activity to another Activity using Intent

Here is a simple example about how to pass custom class object from one activity to another activity. To pass an object, your custom class object must be serialized, to do so just implement the Serializable interface. For example: Now To pass the object of Student class From Activity ‘A’ to activity ‘B’: To retrieve […]

Read More