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
ACTION_DOWN?

--


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 ......


///////////////////.java////////////////////////
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. */
    @Override
       public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        MapView mapView =(MapView)findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);
    }
    protected boolean isRouteDisplayed(){
        return false;
    }
}
///////////////////////////main.xml////////////////////
<?xml version="1.0" encoding="utf-8"?>
<com.google.android.maps.MapView
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/mapview"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1"
                android:clickable="true"
                android:apiKey="0fyF-qSuCtdQinoUGoFbLxZoTx10Tm-YV6m6A8g"
/>
/////////////////////////////manifest
file//////////////////////////////
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.android.GoogleMaps"
          android:versionCode="1"
          android:versionName="1.0">
          <uses-permission android:name="android.permission.INTERNET"/
   <uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"/>
   <uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
    <uses-library android:name="com.google.android.maps" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <activity android:name=".HelloGoogleMaps"
              android:label="@string/app_name"
              android:theme="@android:style/Theme.NoTitleBar">
        <!--<activity android:name=".HelloGoogleMaps"
                  android:label="@string/app_name">-->
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
    <uses-sdk android:minSdkVersion="4" />
</manifest>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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