onTouchEvent in MapActivity

by fala70 » Sun, 18 Jan 2009 01:26:43 GMT

Sponsored Links
 I am trying to catch onTouchEvent on MapActivity. I overwritten the
method but it isn't never fired. Why ?. I need to find the location
lat. and long. for show add new marker when the user tap on map.

public boolean onTouchEvent(MotionEvent event){
                if (event.getAction()==MotionEvent.ACTION_UP){
                        Projection pro = map.getProjection();
                        GeoPoint p = pro.fromPixels((int)event.getX(), 
p.getLongitudeE6(), "CIAO");
                        return true;
                        return false;

onTouchEvent in MapActivity

by MrChaz » Mon, 19 Jan 2009 23:14:52 GMT

 Is your map view both enabled and clickable?  Both these properties
seem to be false by default.

Sponsored Links

onTouchEvent in MapActivity

by 艩ikus » Wed, 04 Mar 2009 23:27:16 GMT

 I recomend use for tatching a display:

        public boolean dispatchTouchEvent(MotionEvent ev) {//dotek prstem
                if(ev.getAction() == KeyEvent.ACTION_DOWN) {
                        Log.w("Uri.onCreate", "aaaaa1");


Other Threads

1. Browser screen flickering


I am running the Android 2.2 "rowboat-Froyo" on a OMAP 3503 based board, and
have the evaluation version Adobe Flash plugin installed.

After I browse any website with flash content in it, I can see a lot of
flickering on the Browser when ever I do scrolling on the page, on any
website thereafter.

To get rid of this I have to forcefully kill the Browser from settings, and
then the flickering is gone, utill again I browse any website with flash

Has anybody else faced the same problem? Can I get some pointers, as to
which areas to look in?

1. One thing which I have confirmed is that the GC is not the culprit...

2. Another observation: I am using TV and VGA as display devices

    a. With TV resolution 720x480 flicker happens
    b. With VGA monitor resolution 1024x768 flicker does not happen, with
all other conditions remaining same.
    c. With VGA resolution 640x480 flicker happens.

thanks in advance




2. Banting harga WTS : HTC Magic 2nd

Super Nett Rp 1.999.999,-

Mau dijual HTC Magic White 32A bekas pemakaian sendiri.
Warna Putih.
Ex garansi Singapore, jadi anggap no warranty saja.
Kondisi mulus 90%, foto : http://goo.gl/3T0UE
Kelengkapan seperti awal pembelian.
Mesin berfungsi normal dan tidak pernah bongkar.
Baterai tidak kembung. Terpasang antigores anti-glare/minyak.
Sudah custom Froyo dengan radio rom terbaru.

Harga Rp 2.300.000,- saja.
Yang tidak nawar saya berikan bonus Silicon Case warna Putih.
Yang berminat please japri ke suci...@awanmega.com




3. How to make a backwards compatible aidl?

4. program push email untuk spica

5. (WTA) rekomendasi HH

6. ada yg sudah update OS 2.2.1 droid X?

7. Criteria to show up in new "Related" tab in market