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
[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 draw Oval?

How to draw Oval?

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

How to draw Oval?

Postby edward » Sat Apr 05, 2008 10:22 am

Hello, I tried to draw a rectangle and oval, but I couldn't.
I searched some codes in this web site and I modified.
When I run this, it just shows blank screen with a black color.
And I tried to run someting else which I get this web site and related to showing some pictures,
it also didin't work.

I only succeeded to run hello world. :cry:
help me.

Thanks.

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. public class Oval extends Activity {
  3.  
  4.     /** Called when the activity is first created. */
  5.  
  6.     @Override
  7.  
  8.     public void onCreate(Bundle icicle) {
  9.  
  10.         super.onCreate(icicle);
  11.  
  12.         Paint paint;
  13.  
  14.         RectF rect;
  15.  
  16.         Canvas canvas = new Canvas();
  17.  
  18.         paint = new Paint();
  19.  
  20.         paint.setStyle(Style.FILL);
  21.  
  22.         paint.setARGB(255, 80, 150, 30);
  23.  
  24.         rect = new RectF(0,4,4,4);
  25.  
  26.         canvas.drawOval(rect, paint);
  27.  
  28.     }
  29.  
  30. }
Parsed in 0.014 seconds, using GeSHi 1.0.8.4
edward
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Apr 05, 2008 10:10 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 10 guests