Android Application Development Tutorial - 76 - Cleaning up some Errors

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

@snag46ed Yes. Remember all this is in a while loop. so as long as the isRunning == true, the loop keeps running and re-drawing the canvas with the new positions.

strited
Автор

Tnx alot Travis for this basic intro to game

minsaramadhawa
Автор

Does android have built in animate methods?

strited
Автор

"It's not that cool...but whatever..." great last sentence to the long tutorial series haha

MatTaNg
Автор

Every time i shoot the ball it starts from top left corner and if I shoot from bottom it starts from randomly between 2 plus.

HardipPatelD
Автор

how can i stop the ball in the exact place of starting X? please give me a suggession

dhaka
Автор

my application crashes in this video and in the last video when i click on the screen, and i don't know the reason !!
any help

HeshamAAdelELdeeb
Автор

did we setup the GFXSurface to run on our AVDs yet? cuz i set it up in the menu class and tried running it and it doesnt run. and travis has bee running it for many tutorials now

HypnotizeCampPosse
Автор

exactly same code but on my screen the ball flickers !? anyone know why?

idleworkers
Автор

Hiii sir am doing my project in location tracker usinga java language .But I have an security error can u help to solve this error

govindsamy
Автор

nm got it, feel like such a java pro right now.

jellars
Автор

as a test for myself I tried to get the ball bouncing off the edges, either I'm a noob or it's impossible to do the way travis has this set up lol

jellars
Автор

oh duh.. let me check the manifest

yup. lol details details... im glad im following thru with this series. thats really what it takes

HypnotizeCampPosse
Автор

@german77GL more exactly at the 1:33 :))... good job Travis :)

TheDanielurs
Автор

@Hesham- I hope u've properly updated the manifest file and menu file..adding them below for your reference:
Manifest:<activity

Menu.Java:
String classes[] = {"MainActivity", "TextPlay", "Email", "Camera", "Data", "GFX", "GFXSurface", "Example3" };

If u still have the issue persists, drop me ur email-ID...i'll share the source
<on a side note: on clicking the screen if u r seeing the errors, pls cross check with the below lines of code>
public boolean onTouch(View v, MotionEvent event) {
x = event.getX();
y = event.getY();
switch(event.getAction()){
case MotionEvent.ACTION_DOWN:
sX = event.getX();
sY = event.getY();
dX = dY = scaledX = scaledY = aniX = aniY = fX = fY = 0;
break;
case MotionEvent.ACTION_UP:
fX = event.getX();
fY = event.getY();
dX = fX - sX;
dY = fY - sY;
scaledX = dX/30;
scaledY = dY/30;
x = y = 0;

break;
}
return true;
}

rkb
Автор

Did I hear a fart on 1:30-1:35 in the background or its just

germanGL
Автор

@MrTmzT A few minutes ago I was first on tutorial 70 or something

FrancisBehnen
Автор

yay first ! oh wait a minut what are you doin down there? that is my place go up there

raskec
Автор

Maybe you should post your error and then someone can help you. I personally haven't followed this tutorial but who knows someone has and knows your problem.

stumpandfly