How to get GUID in android?

前端 未结 4 553
余生分开走
余生分开走 2021-02-06 19:58

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

相关标签:
4条回答
  • 2021-02-06 20:46

    Yes you should use UUID like the following code:

    String  uniqueID = UUID.randomUUID().toString(); 
    
    0 讨论(0)
  • 2021-02-06 20:48

    You can use the java.util.UUID class.

    0 讨论(0)
  • 2021-02-06 20:52

    We can use

    String uniqueID = UUID.randomUUID().toString();
    

    An Instance ID or a GUID is scoped to the app that creates it, which prevents it from being used to track users across apps.For more information and significance please refer this link here

    0 讨论(0)
  • 2021-02-06 20:52

    You will get UUID in Android,

    UUID uuid = UUID.randomUUID();
    String uuidInString = uuid.toString();
    
    0 讨论(0)
提交回复
热议问题