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 - AlertDialog in SDK 0.9

AlertDialog in SDK 0.9

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

AlertDialog in SDK 0.9

Postby sm » Sat Sep 13, 2008 1:36 am

I get the error:

Description Resource Path Location Type
The method showAlert(String, String, String, boolean) is undefined for the type new View.OnClickListener(){} Abc.java Abc/src/com/android/abc line 52 Java Problem


Pls help!

Rest all is fine
sm
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Sep 05, 2008 2:54 am

Top

Postby plusminus » Sat Sep 13, 2008 2:51 pm

Hello sm,

use code similar to this:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. new AlertDialog.Builder(MyActivity.this)
  2.  
  3.         .setTitle(aTitle)
  4.  
  5.         .setMessage(aMessage)
  6.  
  7.         .setIcon(aDrawable)
  8.  
  9.         .setPositiveButton(aOkButtonText)
  10.  
  11.         .create().show();
Parsed in 0.010 seconds, using GeSHi 1.0.8.4


Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests