Recent content by gordon13

  1. G

    Accessing data from other class

    Im using Eclipse with the ADT plugin. It all came in a single package from the Android website so I assume its all standard stuff. I havent added anything myself
  2. G

    Accessing data from other class

    I looked around and found a different way of doing this but I have a feeling its doing the same thing Im doing but in a different way. The app still crashes with same error. What do you mean by object? The accelerometer? public class Main extends Activity{ Accelerometer acc; @Override...
  3. G

    Accessing data from other class

    Ive tried checking for exceptions where the acc.create() method is called and now the app doesn't crash but I still get the errors. 12-24 10:08:27.820: W/System.err(23020): java.lang.NullPointerException 12-24 10:08:27.870: W/System.err(23020): at...
  4. G

    Accessing data from other class

    thanks for the reply. The code still crashes: 12-24 09:51:08.920: D/ActivityThread(22606): <<< done: 110 12-24 09:51:08.920: E/ActivityThread(22606): >>> handling: 100 12-24 09:51:08.980: D/AndroidRuntime(22606): Shutting down VM 12-24 09:51:08.980: W/dalvikvm(22606): threadid=1: thread exiting...
  5. G

    Accessing data from other class

    Hello I am having trouble accessing the acceleration data from an accelerometer class I made. Here is the code I am using. i have an accelerometer class in a seperate file which does all the accelerometer stuff and I have another class that uses the acceleration data. There are no errors. the...