Finger swipe in Android API level 3 (OS 1.5) ?

by Chris Ross » Tue, 25 May 2010 22:27:45 GMT


Sponsored Links
 hanks much.  I had found something similar elsewhere in my searching, and as 
you ended up making a subclass of SimpleOnGestureListener. As it happens, I
made that class inside of my primary Activity class, so I didn't have to pass
the object into the instantiator like you did, but the same "have to work back
into the main object" effectively applies, and I see your point.

If I get to a point where I'm willing to ignore the 1.5 OS revision, I'll see
what else can be done with the new gestures support added in API level 4...

- Chris

On May 25, 2010, at 3:50 AM, Justin Anderson wrote:

>



Other Threads

1. Dalvik VM init failed (check log file)

Hi All,

I'm trying to port dalvik VM onto PPC.
I could able to build 'dalvikvm' binary and the respective 'jar' files
that are needed for the execution of 'dalvikvm'('core.jar' ,
'ext.jar','framework.jar',android.policy.jar' and 'services.jar')

To test dalvikvm i followed the following steps:-

1:
 export LD_LIBRARY_PATH=/home/cupcake/out/debug/target/product/eee_701/
system/lib
2:
 export ANDROID_ROOT=/home/cupcake/out/debug/target/product/eee_701/
system
3:
 export BOOTCLASSPATH=/home/cupcake/out/debug/target/product/eee_701/
systemframework/core.jar:/home/cupcake/out/debug/target/product/
eee_701/system/framework/ext.jar:/home/cupcake/out/debug/target/
product/eee_701/system/framework/framework.jar
4:
 export ANDROID_DATA=/tmp/dalvik_$USER
 mkdir -p $ANDROID_DATA/dalvik-cache
5:
  $cat Foo.java
 public class Foo {
 public static void main(String[] args) {
 System.out.println("Hello, world");
 }
 }

 $javac Foo.java
 $dx --dex --output=foo.jar Foo.class
6:
 $./dalvikvm -cp foo.jar Foo


For the first execution of 'dalvikvm' I got segmentation fault.
On debugging in gdb I found where it was crashing.
To fix it I made modification in the following file
'dalvik/vm/mterp/common/asm-constants.h'
Line No :186

ORIGINAL->  MTERP_OFFSET(offArrayObject_contents,   ArrayObject,
contents, 12)
MODIFIED->  MTERP_OFFSET(offArrayObject_contents,   ArrayObject,
contents, 16)

Reason:-
'contents' member in ArrayObject structure is a 64-bit entity and
there are three 32-bit entities above it.
For satisfying 64-bit alignment 'contents' member should start at 16
byte offset rather than 12 byte.

After making the above change, I followed the same steps to execute
dalvikvm,
but this time i didnt get the seg fault but one message came up saying
"Dalvik VM init failed (check log file)".

On debugging in gdb I found the error line to be at
system/core/libcutils/ashmem-dev.c:60    ret = ioctl(fd,
ASHMEM_SET_SIZE, size)
; -- with errno set to -ENOTTY.

I really need help on this to go ahead

Thanks in advance
Anand






--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. How to get source code of default Messaging application in Android?

In GitWeb (http://android.git.kernel.org/) I can't see source of
"Messaging" application. Where do I get this source? Plz help me.
Thanks a lot !
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Finger gestures with current MBP

4. API Demos APK not running in Zoom Board

5. Gridview Control Paging in andriod application

6. RC33 Network Problem

7. Changing the outgoing call number