Questions tagged [android-identifiers]
70 questions
3
votes
0 answers
Attribute values must be constant while injecting views with RoboGuice
I have a project contains 2 applications and 1 library module.
I would like to use RoboGuice because of the view injection feature.
Currently i cannot inject views in my library module, because generated ids in the R.java file are not constants and…

Adam Varhegyi
- 11,307
- 33
- 124
- 222
3
votes
2 answers
Is there any legitimate use for @+android:id?
After I upgraded my android tools to latest version to work on API21, trying to compile my project resulted in the following error:
update_languages_button_preference_layout.xml:2: note: did you mean to use @+id instead of…

PLNech
- 3,087
- 1
- 23
- 52
2
votes
0 answers
Does ANDROID_ID comes under any privacy protection or consent rules?
https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID
Not to be confused with Android Advertising id,
Does the ANDROID_ID as mentioned in above link
comes under GDPR or similar laws as personally identifiable data?
Can…

Naruto26
- 93
- 6
2
votes
0 answers
AndroidStudio always use @+id
I saw a lot of posts about the Difference between "@id/" and "@+id/" in Android, and correct me if I'm wrong but it seems that @+id is kind of a setter and @id is kind of a getter (broad simplification).
Playing around with Android Studio, it seems…

Dan Chaltiel
- 7,811
- 5
- 47
- 92
2
votes
1 answer
Get caller identity in service's onBind() in Android
In the onBind() method of a service I'd like to check whether the caller has a particular permission. For that I need to find the identity of the caller.
I expected the following code to return the caller package name but instead I get the package…

Daniel
- 2,380
- 29
- 44
2
votes
2 answers
How do I get the String representation of a View's id
I have a view and i have it's resource id ( i.e. R.id.xxx ) and i want to extract the xxx part and convert it to a String.
Is that possible to do?
Just to be clear, I have view.getId() a resource integer, not the actual name of the id.

Pavle Pavlov
- 189
- 2
- 13
2
votes
0 answers
Resources identifiers to screen configurations
I'm developing an app and my current task is to support different screen sizes. My problem is that a lot of devices have the same identifiers.
For example, large-hdpi supports Nexus 7, Galaxy Note & Galaxy Tab. But in the Note and Tab all layout…

Marcos Vasconcelos
- 18,136
- 30
- 106
- 167
1
vote
0 answers
I got an ID error in my XML file although it is unique
My xml file was working fine until I created a new TextView and decided to give it an id which is txtVw6 that gave me an error although it is unique. when I press Alter+Enter it gives me create resource id value .
Can I Know what is wrong with this…

Fatima
- 11
- 4
1
vote
0 answers
Generate UUID in Android Studio and use the same UUID after reinstalling the App
In this project that I'm working on, I want a unique ID for a Device that is using my App. I've decided to
use UUID (Universally Unique Identifier) in my project. Basically what I want is to assign this UUID to any files generated by my App.
My…

ManuKovera
- 45
- 1
- 7
1
vote
1 answer
Android clone detection
I have created an app for surveys where only one user can register per android phone. I am using "Secure.ANDROID_ID" for identifying unique devices on server side.
Now the problem is a lot of scammers are creating many fake accounts through fake…

Salahuddin
- 144
- 1
- 7
1
vote
1 answer
Android O device ID clarification
what does it mean by 'For apps installed on a device running Android 8.0, the value of ANDROID_ID is now scoped per app signing key, as well as per user. '
https://developer.android.com/about/versions/oreo/android-8.0-changes.html.
Is that means if…

user3565768
- 43
- 9
1
vote
0 answers
Is it possible to have android ID length less than 16?
I have used Android_ID as unique ID during my app registration. Since Android ID is 64 bit hex string, I considered it's length will be 16 and validating it during registration. But few of the android devices had the length as 15. If its 64 bit hex…

karan
- 54
- 6
1
vote
1 answer
What is the format of a Windows Phone Advertising ID string? What is the typical length?
What are examples of the Device ID unique to Windows Phones?
As I do not have a Windows phone, I cannot look up any values myself.
Specifically I'm wondering about the typical length of Advertising IDs that Windows uses that are similar to…

Glenn Strycker
- 4,816
- 6
- 31
- 51
1
vote
3 answers
Android: Android ID changes on App Update. Something Unique instead?
I get android id with code below:
DeviceID = Secure.getString(this.getContentResolver(),
Secure.ANDROID_ID);
But it changes on every update. Is it wrong way to get it or is there anything different that i can use, that never…

Nikoloz14
- 247
- 5
- 13
1
vote
2 answers
How to Generate the ID of a Random Toggle Button, Then SetChecked(True) That Specific Toggle Button
I have two ToggleButtons and I want to be able to randomly select the id of one of those buttons, and set check that button to true. I tried This but is does not work as setChecked is not available for an Int or String. Any help would be much…

kh_eden147
- 43
- 2
- 9