Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - help,i have a problem in my code

help,i have a problem in my code

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

help,i have a problem in my code

Postby Arnold » Fri Mar 13, 2009 10:29 am

i want to display a Bitmap object in the screen ,and change its position per 1000ms. .i use a thread to do it,but it doesnt work....
here is a part of my code, HELP ME :)
i have do the changing position in onDraw().

public class MainActivity extends Activity implements OnTouchListener{
public MainView GameView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mGameView=new MainView(this);//MainView is my class extends View
setContentView(mGameView);
new Thread(){
public void run(){
try{
while(true){
mGameView.invalidate();//i think use this function can do onDraw(),and chang the postion
sleep(1000);
}
}
catch(Exception e){
e.printStackTrace();
}
}
}.start();
}
Arnold
Freshman
Freshman
 
Posts: 3
Joined: Fri Mar 13, 2009 10:11 am

Top

Postby MrSnowflake » Fri Mar 13, 2009 10:31 am

Uhm yeah, where is it that you actually change the coordinates of the bitmap?
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests