how to transfer an action(ex:key press) from an Activity to other Activities

by Dianne Hackborn » Fri, 13 Mar 2009 03:02:29 GMT

Sponsored Links
 No you can't send events to other applications, sorry.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


Other Threads

1. Building kernel for ADP1

Hello group moderator,

I apologize in advance if my question is without merit.  I am trying
to rebuild the kernel for an ADP1. I want to port a touchscreen

I am cross developing on a linux-x86 platform running Ubuntu.

I downloaded and built the latest android platform using the
instructions at and
documentation/building-for-dream using the latest instructions for

I have searched the web and sent a direct question to HTC, for concise
instructions for building a new kernel for the ADP1.

I have purchased and received an ADP1 just last week (Oct 09)

I have downloaded the htc phone kernel source from <

I have downloaded the .config file from the phone.

I have noticed in the phone .config, that it used kernel version -.25
vs. -.27 in the msm_defconfig in the kernel source.

I placed the htc kernel source tree into ~/mydroid.  I copied the
phone .config to the kernel root.

I added the toolchain path "home/tes/myfroid/prebuilt/linux-x86/
toolchain/arm-eabi-4.4.0/bin" to my .bashrc and rebooted. After
reboot, echo $PATH shows the toolchain in the PATH.

I then ran the sequence:

The make failed trying to compile board-trout.c:
  CC      arch/arm/mach-msm/board-trout.o
arch/arm/mach-msm/board-trout.c:391: error: 'H2W_UART3' undeclared
here (not in a function)
arch/arm/mach-msm/board-trout.c: In function 'configure_cpld':
arch/arm/mach-msm/board-trout.c:395: error: 'H2W_UART1' undeclared
(first use in this function)
arch/arm/mach-msm/board-trout.c:395: error: (Each undeclared
identifier is reported only once
arch/arm/mach-msm/board-trout.c:395: error: for each function it
appears in.)
arch/arm/mach-msm/board-trout.c:406: error: 'H2W_BT' undeclared (first
use in this function)
arch/arm/mach-msm/board-trout.c:424: error: 'H2W_GPIO' undeclared
(first use in this function)
arch/arm/mach-msm/board-trout.c:513: error: unknown field 'get_clk'
specified in initializer
arch/arm/mach-msm/board-trout.c:513: warning: excess elements in
struct initializer
arch/arm/mach-msm/board-trout.c:513: warning: (near initialization for
make[1]: *** [arch/arm/mach-msm/board-trout.o] Error 1
make: *** [arch/arm/mach-msm] Error 2

Did I miss some steps?

Thanks and best regards.



2. gdbserver android patch

I might have posted this to a wrong group. Posting to the kernel
group. With some hacking, I could able to get the gdbserver to the
link with bionic libraries and run on my target (armv7) platform. But,
I see that the gdbserver can only trace ARM code not thumb code.  Then
I looked at the ptrace code in kernel and saw that it doesn't support
using breakpoints for the thumb code.

See arch/arm/kernel/ptrace.c
printk(KERN_WARNING "ptrace: can't handle thumb mode\n");

Question: Did anyone used gdbserver to single step thumb/thumb2 code?


3. :Training on Advance C and Linux System Programming from Expert

4. What does the "Home" button do?

5. security enforcemen

6. Problem with Wi-Fi connectivity with Android 1.6

7. App name/icon problems on Hero after reboot