passing touch events from one Gallery widget to another widget

by TreKing » Thu, 18 Feb 2010 23:29:13 GMT


Sponsored Links
 




I have not used Galley widgets, but instead of passing the scroll event,
could you instead just set the scroll position of the bottom widget to match
that of the top widget when the top one scrolls?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--



passing touch events from one Gallery widget to another widget

by social hub » Thu, 18 Feb 2010 23:51:39 GMT


 I wish I could do that that would make my life easier :)

However it has to scroll if top one scrolls as per design so I am stuck with
it.

I got it moving with dispatchtouchevent (interecept and pass). as mentioned
if there is urllink in the edittext then it gets these touch events and
things mess up, it will just stay wont move.

Thanks for your reply.






>


Sponsored Links


Other Threads

1. Boot Struck at I/installd( 25): new connection

Hi,

I am trying to port Android Cupcake on to a board which has 48MB RAM.
After writing a FB, UART & MMC driver for the board, I tried to start
android from a SD card. I made the changes to init.rc for commenting
the mounts.

But, I see that boot process is struck at I/installd(   25): new
connection. I don't see any messages after this and nothing on the
screen. Has anyone faced such a problem? Pasted the logs below.

Narayanan


EXT3 FS on mmcblk0p1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 92K
Warning: unable to open an initial console.
init: cannot open '/initlogo.rle'
init: cannot find '/system/bin/playmp3', disabling 'bootsound'
# warning: `rild' uses 32-bit capabilities (legacy support in use)
# logcat
I/DEBUG   (   20): de{*filter*}d: Apr 14 2011 04:43:19
I/vold    (   19): Android Volume Daemon version 2.0
E/flash_image(   26): error scanning partitions: No such file or
directory
E/vold    (   19): Unable to chdir to /sys/class/mmc_host/mmc0/stat
(m)
E/vold    (   19): Error bootstrapping card '/sys/class/mmc_host/mmc0/
stat' (m)
I/vold    (   19): New MMC card '00000' (serial 532915339) added @ /
class/mmc_ho
st/mmc0/mmc0:0002
E/vold    (   19): Unable to open '/sys/class/switch' (m)
D/vold    (   19): Bootstrapping complete
D/AndroidRuntime(   22):
D/AndroidRuntime(   22): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime(   22): CheckJNI is ON
I/        (   23): ServiceManager: 0xac38
W/AudioHardwareInterface(   23): Using stubbed audio hardware. No
sound will be
produced.
I/AudioFlinger(   23): AudioFlinger's thread ready to run for output 0
I/CameraService(   23): CameraService started: pid=23
D/AndroidRuntime(   22): --- registering native functions ---
I/Zygote  (   22): Preloading classes...
D/dalvikvm(   22): GC freed 764 objects / 42216 bytes in 0ms
D/dalvikvm(   22): GC freed 278 objects / 17160 bytes in 0ms
D/dalvikvm(   22): GC freed 208 objects / 12696 bytes in -140462611
sec
D/dalvikvm(   22): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(   22): Added shared lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(   22): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(   22): Shared lib '/system/lib/libmedia_jni.so' already
loaded in sa
me CL 0x0
D/dalvikvm(   22): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(   22): Shared lib '/system/lib/libmedia_jni.so' already
loaded in sa
me CL 0x0
D/dalvikvm(   22): Trying to load lib /system/lib/libmedia_jni.so 0x0
D/dalvikvm(   22): Shared lib '/system/lib/libmedia_jni.so' already
loaded in sa
me CL 0x0
D/dalvikvm(   22): GC freed 462 objects / 29144 bytes in 0ms
D/dalvikvm(   22): GC freed 3598 objects / 172872 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 11345 objects / 400520 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 10458 objects / 438192 bytes in 0ms
D/dalvikvm(   22): GC freed 10959 objects / 459248 bytes in 0ms
D/dalvikvm(   22): GC freed 14372 objects / 506808 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 11314 objects / 481480 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 5928 objects / 248640 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 349 objects / 37064 bytes in 0ms
D/dalvikvm(   22): GC freed 778 objects / 48392 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 321 objects / 37312 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 477 objects / 29520 bytes in -140462611
sec
D/dalvikvm(   22): Trying to load lib /system/lib/libwebcore.so 0x0
D/dalvikvm(   22): Added shared lib /system/lib/libwebcore.so 0x0
D/dalvikvm(   22): GC freed 441 objects / 26208 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 506 objects / 41432 bytes in 0ms
D/dalvikvm(   22): GC freed 537 objects / 38760 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 342 objects / 22520 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 338 objects / 18720 bytes in 0ms
D/dalvikvm(   22): GC freed 629 objects / 32200 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 14258 objects / 497280 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 11171 objects / 469536 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 7126 objects / 310800 bytes in 0ms
D/dalvikvm(   22): GC freed 752 objects / 43256 bytes in -140462611
sec
D/dalvikvm(   22): GC freed 598 objects / 31536 bytes in 0ms
D/dalvikvm(   22): GC freed 413 objects / 26480 bytes in 0ms
I/Zygote  (   22): ...preloaded 1166 classes in 1ms.
D/dalvikvm(   22): GC freed 312 objects / 19808 bytes in 0ms
I/Zygote  (   22): Preloading resources...
D/dalvikvm(   22): GC freed 54 objects / 11248 bytes in -140462611 sec
D/dalvikvm(   22): GC freed 337 objects / 15008 bytes in 0ms
D/dalvikvm(   22): GC freed 280 objects / 11696 bytes in -140462611
sec
I/Zygote  (   22): ...preloaded 48 resources in 0ms.
I/Zygote  (   22): ...preloaded 15 resources in 0ms.
D/dalvikvm(   22): GC freed 112 objects / 8168 bytes in -140462611 sec
D/dalvikvm(   22): GC freed 205 objects / 8128 bytes in 0ms
D/dalvikvm(   22): GC freed 36 objects / 1400 bytes in -140462611 sec
I/dalvikvm(   22): Splitting out new zygote heap
I/dalvikvm(   22): System server process 36 has been created
I/Zygote  (   22): Accepting command socket connections
D/dalvikvm(   36): Trying to load lib /system/lib/
libandroid_servers.so 0x0
D/dalvikvm(   36): Added shared lib /system/lib/libandroid_servers.so
0x0
I/sysproc (   36): Entered system_init()
I/sysproc (   36): ServiceManager: 0x1550d0
I/SurfaceFlinger(   36): SurfaceFlinger is starting
I/SurfaceFlinger(   36): SurfaceFlinger's main thread ready to run.
Initializing
 graphics H/W...
E/MemoryHeapBase(   36): error opening /dev/pmem: No such file or
directory
E/GLLogger(   36): couldn't load <libhgl.so> library (Cannot find
library)
I/SurfaceFlinger(   36): EGL informations:
I/SurfaceFlinger(   36): # of configs : 6
I/SurfaceFlinger(   36): vendor    : Android
I/SurfaceFlinger(   36): version   : 1.31 Android META-EGL
I/SurfaceFlinger(   36): extensions:
I/SurfaceFlinger(   36): Client API: OpenGL ES

In Function: ste4910_openI/EGLDisplaySurface(   36): using (fd=21)
I/EGLDisplaySurface(   36): id           = abc5123fb
I/EGLDisplaySurface(   36): xres         = 240 px
I/EGLDisplaySurface(   36): yres         = 320 px
I/EGLDisplaySurface(   36): xres_virtual = 240 px
I/EGLDisplaySurface(   36): yres_virtual = 640 px
I/EGLDisplaySurface(   36): bpp          = 16
I/EGLDisplaySurface(   36): r            = 11:5
I/EGLDisplaySurface(   36): g            =  5:6
I/EGLDisplaySurface(   36): b            =  0:5
I/EGLDisplaySurface(   36): width        = 38 mm (160.421051 dpi)
I/EGLDisplaySurface(   36): height       = 51 mm (159.372543 dpi)
I/EGLDisplaySurface(   36): refresh rate = 1627.60 Hz
W/HAL     (   36): load: module=/system/lib/hw/copybit.arm-
versatile.so error=Ca
nnot find library
W/HAL     (   36): load: module=/system/lib/hw/copybit.default.so
error=Cannot f
ind library
W/SurfaceFlinger(   36): ro.sf.lcd_density not defined, using 160 dpi
by default
.
I/SurfaceFlinger(   36): OpenGL informations:
I/SurfaceFlinger(   36): vendor    : Android
I/SurfaceFlinger(   36): renderer  : Android PixelFlinger 1.0
I/SurfaceFlinger(   36): version   : OpenGL ES-CM 1.0
I/SurfaceFlinger(   36): extensions: GL_OES_byte_coordinates
GL_OES_fixed_point
GL_OES_single_precision GL_OES_read_format
GL_OES_compressed_paletted_texture GL
_OES_draw_texture GL_OES_matrix_get GL_OES_query_matrix
GL_ARB_texture_compressi
on GL_ARB_texture_non_power_of_two GL_ANDROID_direct_texture
GL_ANDROID_user_cli
p_plane GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
W/HAL     (   36): load: module=/system/lib/hw/copybit.arm-
versatile.so error=Ca
nnot find library
W/HAL     (   36): load: module=/system/lib/hw/copybit.default.so
error=Cannot f
ind library
W/HAL     (   36): load: module=/system/lib/hw/overlay.arm-
versatile.so error=Ca
nnot find library
W/HAL     (   36): load: module=/system/lib/hw/overlay.default.so
error=Cannot f
ind library
I/sysproc (   36): System server: starting Android runtime.
I/sysproc (   36): System server: starting Android services.
I/SystemServer(   36): Entered the Android system server!
I/sysproc (   36): System server: entering thread pool.
E/GLLogger(   36): couldn't load <libhgl.so> library (Cannot find
library)
I/ARMAssembler(   36): generated
scanline__00000077:03545404_00000A01_00000000 [
 30 ipp] (51 ins) at [0x18f718:0x18f7e4] in 0 ns
I/SystemServer(   36): Starting Power Manager.
I/SystemServer(   36): Starting Activity Manager.
I/SystemServer(   36): Starting telephony registry
I/SystemServer(   36): Starting Package Manager.
I/Installer(   36): connecting...
I/installd(   25): new connection

.... Just stops here and ARM is in idle.

-- 

2. validating the CDD section 5.3 requirements

Is there a standardized/preferred method for validating the section
5.3 Audio Latency requirements? It's not clear to me if CTS covers
audio latency testing.

Thanks,
David

-- 

3. MapActivity( 424): Couldn't get connection factory client

4. Capturing screens and sending it across from a device to another

5. "Unable to get system library for project"

6. [WTS] Motorola Droid X

7. Native PDF Viewer