Note that there are some explanatory texts on larger screens.

plurals
  1. USDarius
    primarykey
    data
    text
    plurals
    1. COOK just to update you I have it compiling without those nasty errors. You're quite right when you say the activity has to be put in the Android Manifest, however it didnt like the fact it was an inner-activity, so I literally built a whole new file and transported my class to that new file, updated the manifest and intent and now it works. However the GestureOverlayView is obstructing the program at the moment by displaying over the top whilst nothing carries on but I think this is to do with where I've started it from within the main thread so the main thread just hangs behind it.
      singulars
    2. COThere is a DistractionsView class that creates a DistractionsThread to run all the physics and drawing to the canvas, but in the DistractionsThread doStart() method I put those 2 lines you mentioned as I dont know where else to create and start the GestureActivity. I have defined the class GestureActivity as an inner class in the DistractionsThread class to avoid access issues to private variables. could this be the reason for the error? I also want to thank you for spending this time helping an android newbie!
      singulars
    3. COThanks, so if I change it to: public void onCreate(Bundle savedInstanceState){ setContentView(R.layout.main); How would I go about attaching the listener which I previously did using this code: GestureOverlayView gestures = (GestureOverlayView) findViewById(R.id.gestures); gestures.addOnGesturePerformedListener(this);
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload