Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get GUID in android?

Tags:

android

we are developing the application using the .Net webservice(soap protocal) for that i need Pass GUID from android class.

in .Net we have statement like below Guid myGuid1 = new Guid();

i need the similar functionality in Android , is there any way to make this kind of functionality in android code?

Regards, Jeyavel N

like image 665
Jeyavel Avatar asked Feb 08 '10 12:02

Jeyavel


People also ask

What is an android UUID?

A class that represents an immutable universally unique identifier (UUID). A UUID represents a 128-bit value. There exist different variants of these global identifiers.

How do I find my Android UUID?

Originally Answered: How can I know the uuid of my device? 1- Enter *#*#8255#*#* in your phone dialer, you'll be shown your device ID (as 'aid') in GTalk Service Monitor. m. 2- Another way to find the ID is by going to the Menu >Settings > About Phone > Status.

What is GUID generator?

A GUID (globally unique identifier) is a 128-bit text string that represents an identification (ID). Organizations generate GUIDs when a unique reference number is needed to identify information on a computer or network. A GUID can be used to ID hardware, software, accounts, documents and other items.


Video Answer


1 Answers

Yes you should use UUID like the following code:

String  uniqueID = UUID.randomUUID().toString();  
like image 150
Behnam Bagheri Avatar answered Sep 28 '22 03:09

Behnam Bagheri