at first: thx for your nice communication plattform about android. And now in my first topic i allready have a question. I try to change the text from a TextView if the onTap() method from the Class ItemizedOverlay is called. Unfortunately that trows out an exception. Here you got my code-snippet
Using java Syntax Highlighting
- public boolean onTap(GeoPoint p, MapView mv) {
- OverlayItem overlayitem = new OverlayItem(p, "", "");
- addOverlay(overlayitem);
- TextView tv = (TextView) mv.findViewById(R.id.tv_WhereIAm);
- CharSequence cs = (CharSequence) new String("put some text in here");
- try {
- tv.setText(cs);
- Log.i("info", "OK!");
- } catch (Exception e){
- Log.i("info", "Damn it");
- }
- return super.onTap(p, mv);
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
The rest of the programm ist nearly simular to this example http://developer.android.com/guide/tuto ... pview.html . Perhaps the class havent the right to change the TextView? (was that a stupid thought?)
Can anybody tell me what i am doing wrong? Thanks a lot for every kind of help!

sorry for badger you!