Hi,

I created an application that uses the TabHost to show 3 tabs, the tabs showing 
an AnalogClock (widget) and ListView are working, but the tab that should show 
the MapView returns an 'java.lang.VerifyError'  when it is selected.  The Api 
key provided is correct, it is based on the debug.keystore and works in other 
applications.

Can anyone give a hint on what I am doing wrong?

Cheers,
Friso

My code is as follows:
      public void onCreate(Bundle icicle) {
            super.onCreate(icicle);
            setContentView(R.layout.main);

            final TabHost tabs=(TabHost)findViewById(R.id.tabhost);

            tabs.setup();

            TabHost.TabSpec mapSpec=tabs.newTabSpec("tag1");
            mapSpec.setContent(new TabHost.TabContentFactory() {
                  public View createTabContent(String tag) {
                        return(new MapView(Pidget.this, "ABCDEF............"));
                  }
            });
            mapSpec.setIndicator("Map");
            tabs.addTab(mapSpec);


            TabHost.TabSpec infoSpec=tabs.newTabSpec("tag1");
            infoSpec.setContent(new TabHost.TabContentFactory() {
                  public View createTabContent(String tag) {
                        return(new AnalogClock(Pidget.this));
                  }
            });
            infoSpec.setIndicator("Info");
            tabs.addTab(infoSpec);

            TabHost.TabSpec helpSpec=tabs.newTabSpec("tag1");
            helpSpec.setContent(new TabHost.TabContentFactory() {
                  public View createTabContent(String tag) {
                        return(new ListView(Pidget.this));
                  }
            });
            helpSpec.setIndicator("Help");
            tabs.addTab(helpSpec);
      }
}




Friso Kluit | Academic Staff
School of Information & Communications Technology
Republic Polytechnic
t: 3100 1797 | f: 6415 1310

P Do you really need to print this e-mail?


________________________________

Republic Polytechnic, 9 Woodlands Avenue 9, Singapore 738964 (Near Woodlands 
MRT/Interchange).
www.rp.sg<http://www.rp.sg> . Fax: +65 6415-1310 .

Republic Polytechnic, the first Institute of Higher Learning to fully adopt the 
Problem-Based Learning approach in Singapore, continues to strive towards best 
practices and maintain excellence in service standards with the following 
certifications: Singapore Innovation Class (SIC), Singapore Quality Class 
(SQC), People Developer Standards and QEHS (ISO 9001, 14001 and OHSAS 18001)
--------------------------------------------------------------------------------
CONFIDENTIALITY CAUTION: This message is intended only for the use of the 
individual or entity to whom it is addressed and contains information that is 
privileged and confidential. If you, the reader of this message, are not the 
intended recipient, you should not disseminate, distribute or copy this 
communication. If you have received this communication in error, please notify 
us immediately by return email and delete the original message. Thank you.




Friso Kluit | Academic Staff
School of Information & Communications Technology
Republic Polytechnic
t: 3100 1797 | f: 6415 1310

P Do you really need to print this e-mail?


________________________________

Republic Polytechnic, 9 Woodlands Avenue 9, Singapore 738964 (Near Woodlands 
MRT/Interchange).
www.rp.sg . Fax: +65 6415-1310 .

Republic Polytechnic, the first Institute of Higher Learning to fully adopt the 
Problem-Based Learning approach in Singapore, continues to strive towards best 
practices and maintain excellence in service standards with the following 
certifications: Singapore Innovation Class (SIC), Singapore Quality Class 
(SQC), People Developer Standards and QEHS (ISO 9001, 14001 and OHSAS 18001)
--------------------------------------------------------------------------------
CONFIDENTIALITY CAUTION: This message is intended only for the use of the 
individual or entity to whom it is addressed and contains information that is 
privileged and confidential. If you, the reader of this message, are not the 
intended recipient, you should not disseminate, distribute or copy this 
communication. If you have received this communication in error, please notify 
us immediately by return email and delete the original message. Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to