android - Unable to start activity ComponentInfo 4 -
I get an error when using the contact code: How can I fix this?
/ ** * Created on 24/04/14 at Pool * / Public Square SurfaceViewExample Activity View Extension Expired. OnTouchListener {OurView v; Bitmap ball; Float x, y; @ Override Protected Zero (Bundle Saved InstantState) {Super. Secret (Saved Instantstate); V = new ours (this); V = setOnTouchListener (this); Ball = BitMapFrenchDecod Resource (), ArdraWebball.ball); X = y = 0; SetContentView (v); } Private OurView SetOn Touch Listener (Surface Wise device example pageview) {return tap; } @ Override Protected Zero at Pause () {Super. V.pause (); } @ Override Resume at zero () {super.onResume (); V.resume (); } @ Override Public Boolean On Touch (see We, Motion Event Me) {return false; } The public class runs ourView SurfaceView tool Runnable {thread t = zero; Ground holder holder; Boolean IITOK = is incorrect; Public OurView (Reference Reference) {Super (Reference); Holder = getHolder (); } @ Override Public Wide Run () {While (IITOK == true) {if (! Holder.GetSrace (). IsValid ()) {continue; } Canvas C = Holder.Loccanvas (); c.drawARGB (255,150,150,10); c.drawbitmap (ball, x, y, tap); Holder.unlockCanvasAndPost (c); }} Public Nullity () {isItOK = false; While (true) {try {t.join (); } Grip (Interrupted e) e.printStackTrace (); } break; } T = Null; } Public resume resume () {isItOK = true; T = new thread (this); T.start (); Setcontentview adder after }}}
Comments
Post a Comment