Questions tagged [android-identifiers]

70 questions
0
votes
2 answers

Should I use ANDROID_ID as device identification considering no factory reset?

I am developing an Android app where a single user can use the app only in one device by using the same Gmail account(for sign-in) . If the user wants to sign in the app on a different device, he won't be able to do it using the same Gmail account.…
0
votes
0 answers

Finding uses of ANDROID_ID in project

One of my apps was recently removed from Google Play because they found that I was collecting ANDROID_ID, aka the Android ID advertising identifier without a privacy policy. I was using it for something trivial, so I removed it from the code, and…
Flyview
  • 1,899
  • 1
  • 28
  • 46
0
votes
1 answer

getIdentifier() from a textView returns null

I'm trying to get different ID with for. What I have is a CardView with diferent IDs for each card and I would like to get data when clicked. I have done this: public void setToggleEvent(final GridLayout mainGrid) { for ( int i = 0; i <…
Marco
  • 33
  • 1
  • 1
  • 13
0
votes
2 answers

Get unique ANDROID_ID on flutter is it possible?

I would like to get the unique device id on android with Flutter. I've tried this plugin device_info but it doesn't return the ANDROID_ID that I get in java Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID); how can…
0
votes
1 answer

Referencing sibling layouts in Android Relative Layout (xml preview)

I'm confused about why we need the + in some sibling references but not others to make views render correctly in the android studio preview pane. (The behaviour when viewing in a running app differs, so is not in scope) From the android guide docs…
0
votes
2 answers

How do I setText of an individual instance of a fragment?

In my application, I have multiple instances of the same fragment. I want to be able to setText of a Textview within each individual fragment. However, when I try to setText of a fragment's Textview, it will change that Textview in every fragment.…
0
votes
3 answers

should every View have an id?

I was wondering of two possible ways of handling View IDs in Android: automatically assign an ID to every View you create assign IDs only when you need them I can think of some pros and cons of both approaches (more for the first option) but I…
Simon
  • 2,643
  • 3
  • 40
  • 61
0
votes
2 answers

Can I limit findViewById() to within the scope of an individual fragment?

In my application, I have multiple instances of the same fragment, Activity_Fragment, displayed in a LinearLayout. In each fragment, there is an activity_text textview and an edit_button. When the button is pressed in a fragment, it should change…
0
votes
1 answer

Android_ID alternative in Android O

With the changes in Android O, ANDROID_ID is now scoped per app signing key, as well as per user. Factory resetting the device will also generate new ANDROID_ID value. My questions is, what other alternative ID (that's more potent) does you folks…
0
votes
1 answer

Conflict between activity home button and Dialogfragment home button id's

I have an acivity with appbar and a fullsecreen dialogfragment with appbar (that dialog is called from the activity). I have set some action when the home button of the activity is pressed, and when the home button og the dialogfragment is pressed…
0
votes
1 answer

hardware_id on Branch.io for Android appears to _not_ be ADID, what is it?

On a branch.io webhook from android devices I am getting a value for hardware_id that appears to be a 64 bit number rather than a UUID format ADID as I understand they should be formatted. Documentation indicates it is Android ID…
Cadmium
  • 623
  • 3
  • 9
0
votes
1 answer

Different ANDROID_IDs for work and personal app

I am using following code to get ANDROID_ID String androidID = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID); But for work profile I am getting a different ANDROID_ID for the same app than when deployed as a…
Ameya721
  • 171
  • 1
  • 9
0
votes
0 answers

Android : How to add IDs Views to R.java dynamically with String resources?

I've created some buttons dynamically, when i start activity all is well, but when i rotate a screen or press back Button, i lose all buttons, i've googled then i've found that the views without IDs can't be saved, so i want to set IDs for them…
Abderazak Amiar
  • 776
  • 7
  • 22
0
votes
1 answer

Android change color and text of changed buttons

My app have a layout with 50 buttons that the user can touch and change text and color. The informations are stored in a database for keep the change in the future. I'm using the ID but the problem appear when the app is compiled and the R class…
Dario
  • 732
  • 7
  • 30