Questions tagged [android-identifiers]

70 questions
0
votes
1 answer

How to Pass a Resource Id as a Parameter; without NullPointerException

Working on an Android app where each activity has its own timer. Originally I had code like this in every class public void tTimer() { mTextField = (TextView) findViewById(R.id.countDown_timer); final CountDownTimer tCounter = new…
0
votes
1 answer

Which android unique identifiers requests do not raise privacy concerns?

I have an app in which I want to create unique identifier per device. Which properties can I access from the sdk which will not ask special permissions at install time (so it won't raise privacy concerns from users), that can help? I was thinking…
azv
  • 1,583
  • 4
  • 18
  • 25
0
votes
1 answer

"No View Found For ID" - Android Fragment

So I'm working on an app for a friend and it keeps crashing and is unable to run on my device (OnePlus One). I keep getting an error here saying "No view found for id": I have two classes; a NavigationDrawer class (which is my essentially my…
freddiev4
  • 2,501
  • 2
  • 26
  • 46
0
votes
2 answers

Is there a way to find out android device's unique id when it visits my website?

I am considering having my own website to sell my android app. After someone purchase my app I want that user's device id to be stored on my server so that when my app sends licensing data to my server, I have that device's id already store there.…
Kshitij
  • 31
  • 1
  • 7
0
votes
3 answers

Difficulty in setting linearlayout ID in android

Here is my onCreate method. I am trying to set the button to change the background of the background of the layout to be of a different color. However the findViewById is not able to pick up on the layout. I fixed it by giving it another linear…
Jayizzle
  • 532
  • 1
  • 6
  • 24
0
votes
1 answer

Android AlertDialog RadioGroup Incrementing?

I'm trying to show a radiogroup with 2 buttons in an alert dialog. I' dynamically creating the dialog & alert on a listitem click. It's working fine apart from the radio button IDs are incrementing each time the alert is shown (if I hit cancel then…
0
votes
1 answer

Increment hex value of R.id file element

i have some consecutive elements id declared inside R.java files. Now i need to fill each one by using a for cycle, so i need to increment for each iteration value of id. I've write this: int current_id = R.id.button00; for (int i = 0; i <…
giozh
  • 9,868
  • 30
  • 102
  • 183
0
votes
2 answers

Android - findViewWtihTag returns null

The findViewWithTag in this activity is returning null, but the Log in the CustomExpandableListAdapter outputs correctly. What am I doing wrong here? public class CustomExpandableListAdapter extends BaseExpandableListAdapter { //normal…
thekthuser
  • 706
  • 1
  • 12
  • 28
0
votes
1 answer

Giving unique identifiers in fragments while using ViewPager FragmentStatePagerAdapter

I want to give each of my fragment a unique tag because they don't have id's (I'm using ViewPager) How can I do that? public class MainActivity extends FragmentActivity { ViewPager vp=null; @Override protected void onCreate(Bundle…
0
votes
1 answer

Instantiation problems with id

I've followed a tutorial to realise a calculator. It seems that my buttons objects that i define, and instantiate with the ID are not instantiated because when i add a listener on them, they return a null pointer exception. here's the java…
1 2 3 4
5