onTap pops-up dialog...

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

onTap pops-up dialog...

Postby atrus123 » Sat Oct 11, 2008 10:45 pm

Anyone have any experience creating a new Dialog from the onTap function through the maps api?

Here's a barebone snippet of what I've tried:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public boolean onTap(Context i){
  2.  
  3.      Dialog popUp = new Dialog(PName.this);
  4.  
  5.      popUp.setTitle("Title");
  6.  
  7.      popUp.setContentView(R.layout.popup);
  8.  
  9.      popUp.show();
  10.  
  11.      return true;                      
  12.  
  13. }
  14.  
  15.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4

But nothing happens.

Edit: figured it out. For some reason I typed (Context i) rather than (int i). Damn my little mistakes.
atrus123
Developer
Developer
 
Posts: 26
Joined: Thu Oct 09, 2008 2:16 am
Location: Annapolis, MD

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 17 guests