Android Application Development Tutorial - 69 - Locking and Unlocking a Canvas

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Travis you are really getting your groove in the later tutorials like this one. Great stuff

strited
Автор

In your GFXSurface class, make sure you have the setContentView(ourSurface) method. This worked for me

Harith
Автор

You need to make sure that the isRunning value is set to true at some point, otherwise the while loop will never run and you'll just get a blank screen

jazzninja
Автор

in GFXSurface class, add as the last line in your onCreate method. Yeah, I had the same problem and only solved this by checking out the next tutorial. =.=

cellfreezer
Автор

Anyone please help...!!!
When I run my app it starts perfectly but it wont draw anything on the canvas rather it would give me a black screen.I have written the same code bt dont know whats wrong with it.

aditheunbeatable
Автор

m not gettin the blue screen..insted m gettin a black one..why is it so??

vimek
Автор

! = Exclamation mark....like in "What's up

In Java it's called the "Not" operator, or at least that''s what Bucky sez!

david
Автор

I got the same error and this was because I forgot the "this" in the ourThread = new Thread(this);

skrutten
Автор

Maybe you forgot "OnPause" and "OnResume" methods!

PaZaDrawing
Автор

Dude, they're both drawRGB.. Which one do we need to use? drawRGB, right?

CrazyByDefault
Автор

Writing would've been better. I'm not so sure about putting all of that in the loop, but that I don't know so much about, and that's why I'm here!

dunngh
Автор

What is the frame rate of canvas.drawRGB?

kigesui
Автор

Sir I am not able to run this code GFsurface

shreyawadhwa
Автор

i sortd ot the prob...i didnt initialize isRunning with TRUE :)

vimek
Автор

What is: Explanation mark! **100 points**

chadbingham
Автор

thanks jazzninja77        make sure that the isRunning value is set to true

boolean isRunning = true;

chadcory
Автор

if " ! " means not then i !hate u travis xD

partizan
Автор

Anyone else having the app shut down when pressing back after being done with the GFXSurface activity?

khdalamoudi
Автор

i think i know what you did wrong ... in method you typed methosd "canvas.drawRGB" instead of "canvas.drawRGB"l and so you by acccident set transparency to "02", so you cant see it ... i hope it will work ~~

spili
Автор

at 5:45 "you have to defined this on the manifest" xD in this second you have to listen very strong that you get the message why your programm is still crashing down -.- ;-)

THX Travis!

debegr