Get text values from second class

milo8

New member
Dec 28, 2013
1
0
0
Visit site
Hello everybody.. my problem is this, i have my main class and a second class that displays the values of the accelerometer on a textview.. however if i call my accelerometer class this is what happens, my application starts with no problems however no buttons work from my main class.. it seems to me that the accelerometer class runs above my main class thats why i have this problem.. what i did is i created a new activity on my manifest and called my accelerometer class from my main class using->
Intent i = new Intent(this, AccelerometerClass.class);
startActivity(i);
Am i doing something wrong?

Maybe there is a way to just take the values from the accelerometer class,wihout calling the class itself ???? what i mean is take the x,y,z(int) values from accelerometer class and set them on a text from the main class.. please help.. thnks
 

Forum statistics

Threads
943,152
Messages
6,917,541
Members
3,158,849
Latest member
19escape20