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 - Context for displaying a message

Context for displaying a message

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Context for displaying a message

Postby trevor.vb » Tue Mar 02, 2010 9:15 pm

Hello,

I'm having a bit of trouble finding the right context for display a message after an onTap on an Overlay. I have a class seperate from my main class which is an itemized overlay. I believe that I need the main class to be the context but I'm not sure how to specify that.

AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("IT WORKS!");
builder.show();

If I just do <mainclassname>.this it tells me "No enclosing instance of the type <mainclasname> is accessible in scope", and if I create a context variable in the main class using public Context context = getApplicationContext();, it tells me "Cannot make a static reference to the non-static field <mainclassname>.context".

I'd really appreciate a hand with this.

Thanks.
trevor.vb
Once Poster
Once Poster
 
Posts: 1
Joined: Tue Mar 02, 2010 8:57 pm
Location: Canada

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests