Android Unique Identification Number


How to get android unique id number?

Purpose
Some times, when we are integrate our android application with server, its requirement of server that it can identify every android device uniquely. So to do that, we will learn how to get android id from device.

Android IdA 64-bit number (as a hex string) that is randomly generated on the device's first boot and should remain constant for the lifetime of the device. (The value may change if a factory reset is performed on the device.)

Code
package com.did;

import android.app.Activity;
import android.os.Bundle;
import android.provider.Settings.Secure;
import android.util.Log;

public class DevideIdActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
       
        String android_id = Secure.getString(this.getContentResolver(),
                Secure.ANDROID_ID);
       
        Log.d("Android","Android ID : "+android_id);
    }
}


 Output

download.jpg

The 11 patents that are getting Android partners in trouble


The Android platform is under attack from a number of companies — not just Apple.

 The Android platform is under attack from a number of companies — not just Apple.

Microsoft, for example, has forced several Android partners into licensing agreements due to patent infringements.
And between these settlements, and Apple's recent legal hot streak against Samsung, there's no denying that Google is guilty of illegally copying something from somewhere. But the question is, what?
  • Patent EP2059868 – covers “a portable electronic device for photo management.” Basically it's the photo gallery page-flipping feature in iOS.
Patent EP2059868 on a "portable electronic device for photo management"
  • U.S. Patent No. 7,469,381 – covers “list scrolling and document translation, scaling, and rotation on a touch-screen display.” This is what gives scrolling in iOS that rubberband-like bounce.
U.S. Patent No. 7,469,381 on "list scrolling and document translation, scaling, and rotation on a touch-screen display"
  • U.S. Design Patent No. D618,677 – this is an iPhone design-related patent.
U.S. Design Patent No. D618,677 on an "electronic device"
  • U.S. Patent No. 5,946,647 – involves “a system and method for performing an action on a structure in computer-generated data.” This covers the ability in iOS to open the Mail or Phone app by tapping an email address or phone number.

  • EP1964022 – “unlocking a device by performing gestures on an unlock image.” One of Apple's slide-to-unlock patents.
EP1964022 on "unlocking a device by performing gestures on an unlock image"

  • U.S. Patent No. 6,370, 566 – “generating meeting requests and group scheduling from a mobile device.” Microsoft.
U.S. Patent No. 6,370,566 on "generating meeting requests and group scheduling from a mobile device"

  • EP1304891 – “communicating multi-part messages between cellular devices using a standardized interface.” Microsoft.
EP1304891 on "communicating multi-part messages between cellular devices using a standardized interface"
  • U.S. Design Patent No. D504,889 – an iPad-related patent
U.S. Design Patent No. D504,889 on an "electronic device"
  • U.S. Patent No. 8,086, 604 – covers a “universal interface for retrieval of information in a computer system.” Essentially, this covers Siri and other unified searches.
  • U.S. Patent No. 8,046,721 – “unlocking a device by performing gestures on an unlock image.” Another slide-to-unlock patent.
U.S. Patent No. 8,046,721 on "unlocking a device by performing gestures on an unlock image"
  • U.S. patent No. 8,074,172 – “a method, system, and graphical user interface for providing word recommendations.” Otherwise known as autocorrect.
U.S. Patent No. 8,074,172 on a "method, system, and graphical user interface for providing word recommendations"