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

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 - How to handle canvas..?

How to handle canvas..?

Put your problem here if it does not fit any of the other categories.

How to handle canvas..?

Postby saif_pucit » Tue Jun 22, 2010 6:49 am

1
im new to andorid i want to put the button on canvas which i have displayed...?
2..
I also want to manage the D-pad button for my canvas.
i have implement the keyListner interface and its onKey method but when the canvas is displayed the it does not work.However it works in the activity class but not in the view class having the onDraw() method..
Can any body help me...?
i would be very thankful for him/her...
saif_pucit
Freshman
Freshman
 
Posts: 2
Joined: Tue May 18, 2010 8:40 am

Top

Re: How to handle canvas..?

Postby nicholas.hauschild » Wed Jun 23, 2010 1:58 am

It sounds like you are trying to use a KeyPressListener, and it is working in the activity, but not in the view, correct?

Well, this is expected behavior, you will have KeyPresses register to your Activity, and you can then act on your View from there (because it should be a member of your Activity).

Good Luck!
-Nick
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 14 guests