event handling

by dmtrl...@gmail.com » Sat, 27 Feb 2010 05:29:17 GMT

Sponsored Links
 Hello all.

I have one question about event handling in View. If my onTouchEvent
method will return false when ACTION_DOWN appears - I can't get
ACTION_UP for my view ?


event handling

by dmtrl...@gmail.com » Sat, 27 Feb 2010 16:46:17 GMT

 In documentation I see -
        "So, if you return false when the down action event is
received, you indicate that you have not consumed the event and are
also not interested in subsequent actions from this event.Thus, you
will not be called for any other actions within the event, such as a
finger gesture, or the eventual up action event" .
  This means that I will not receive any motion events until the next


Sponsored Links

Other Threads

1. converting short array to byte array help

Hello all , I am trying to make an application that would be able to
send the user's voice over the network using RTP. I am using the
ported stack from hsc (JLIBRTP) and I am able to record user's voice
in a saperate thread. the problem is that jlibrtp uses has a class
named RTPSession that is responsible for the session and has the
sendData method that takes a byte [] as argument and the AudioFormat
class I am using to record user's voice is in
AudioFormat.ENCODING_PCM_16BIT wich is short. I have tried using 8bit
audioformat but I get an illigalargument exception in my htc magic and
in my emulator. So is there any way I can convert the short [] to byte
[] ? would that be acceptable in order of voice quality?, is the above
error a known bug for htc magic or the platform doesn't support 8bit
audio format?
thanks in advanced and sorry for my bad english maxsap.


2. Problem with my first very basic Google map application

Hello everyone!
I am new at Android.I have been trying from many days to make very
basic google map application but unable to complete it yet...:(
there are no errors in code,emmulator running fine from terminal,Map
key also fine ....but still i am unable to see the map.When i run my
app only grid appears and map is not displayed.Here is the code,can
any body please help me ......

package com.android.GoogleMaps;

import android.os.Bundle;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;

public class HelloGoogleMaps extends MapActivity {
    /** Called when the activity is first created. */
       public void onCreate(Bundle savedInstanceState)
        MapView mapView =(MapView)findViewById(R.id.mapview);
    protected boolean isRouteDisplayed(){
        return false;
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          <uses-permission android:name="android.permission.INTERNET"/
    <application android:icon="@drawable/icon" android:label="@string/
    <uses-library android:name="com.google.android.maps" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <activity android:name=".HelloGoogleMaps"
        <!--<activity android:name=".HelloGoogleMaps"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />

    <uses-sdk android:minSdkVersion="4" />
don't know where is anything wrong.I am using eclipse and android
1.6.Anybody please helpme


3. exporting widgets in jar file without /res/values/attrs.XML and R.styleable ???

4. Internet only via WLAN, no 3g

5. Bring Activity to front

6. can't seem to stop my media player in a service..

7. TabHost issue in 1.5