[FREE] UUID - generate /retrieve a unique id of your device

But. If I will uninstall app and install again - will the uuid replaced with new one when app started first time? Or not? Or it checks presence of file and doesn't generate the new uuid if already exists?

yes, and already explained in first post

It does not. When the user first opens and uses the application, the extension saves a random string to the database (SD card). When the user uninstalles the application, the string is still there. The next time that user installs the application, the extension automatically retrieves that string instead of creating a new one.

2 Likes

Instead of this extension we can use wifi and get the mac address . Mac address always remain the same and unique per device.

why not show us how to do that ?

A post was split to a new topic: How to make a leaderboard in MIT Inventor?

Android does not allow that. Android 6.0 Changes  |  Android Developers

1 Like

i have a question: if user deletes the app and download again uuid will be the same ?

1 Like

Did you read this topic? Your answer is there.

oh yeah, I'm sorry

1 Like

Hi, is it possible to use internal storage, because some users not using sd card

It indeed save on the internal storage. I already edited the first post.

1 Like

Is it possible to use this extension with Android 13? If so, I imagine I'm doing something wrong.

I've already changed the manual permissions within the manifest.xml, but I still get an empty return. On Android 9 it works normally.

what exactly did you change in the manifest?
Taifun

I've added and removed every Storage Permission you can imagine.
I'm not very familiar with code development, but I saw several topics. Some said to add Storage Read and Write permission. Others said it was no longer necessary. The fact is that I receive error 908 when I deal with screen errors. And I always get the empty UUID

in the end you need an extension, which works for all Android versions without modifying the manifest...
let's wait for an answer from @Kevinkun ... probably the extension needs a SDK33 update...

Taifun

1 Like

Did you set the default filescope to Legacy ?

Just tested, working OK in Companion 2.68u on Android 13

In Companion it works fine. However, when the APK is generated and installed on Android13, it does not work.
I've already tested all the modes, but currently the filescope is in legacy at the request of the extension itself.

Confirmed, generates Error 908 request for WRITEEXTERNALSTORAGE has been denied.

Alternative you should try:

1 Like