Can I simulate the key event on the emulator?

by Steven Ho » Mon, 03 Nov 2008 14:20:41 GMT

Sponsored Links
 Hi all,
    I want to simulate the key press function. Is there any way to do it? the 
keys like dialing , hangup or number bottons. Hope your reply. Thanks!
Steven Ho

Other Threads

1. Context.getExternalFilesDir() folder is removed on app upgrade? Where to store data?

Greetings all,

Since API 8 (Froyo) we have a standard place to store application
files on external storage (read this article for more info:

My existing application downloads a fair chunk of data to SD card on
the user's command to save space on the internal phone storage, which
as we all know is quite limited on most devices.  Previously I was
storing the data in a folder on the external storage root but thought
the "accepted" location was a good idea, especially since 2.2+ will
delete that folder when the app is uninstalled (which of course is not
the case for the folder I'm currently using, not to mention it messies
up the user's SD card).

The problem?  The folder is deleted when the application is upgraded,
not just installed.  This really defeats the purpose, since I don't
want to require my users to re-download the data (several megabytes)
every time I issue a bug fix (or any other) release.  I can't just
rely on installing the app to SD along with all the data in the apk
since the majority of devices do not yet have 2.2, and probably won't
for a long while.

Note that I can't verify that a market upgrade leaves the folder
intact, since I don't want to publish my new version until I know that
it won't delete the folder.  Can anyone speak if market upgrades do in
fact leave the folder intact?  Reinstalling via adb sure doesn't, so I
suspect the Market upgrade behavior is the same.

If that folder cannot be used, what's a better alternative than what
I'm doing now?  Ideally I'd like a folder that gets removed on
*uninstall*, but not *upgrade*.

Thanks for any good ideas.  :-)



2. Memory Leak in Contact List

hi guys,

there are about 1000 contacts in my address book.
in my application i'm referring 3 Content providers. Phone,Photos and
one of mine.

i'm using SimpleCursorAdapter to load contacts and images. when i'm
scrolling down i'm getting a memory leak.

sometimes when i selects a contact also getting this memory leak.

don't know how to fix it??

if you have any suggestion just let me know.



3. Gtalk tidak mau sign in

4. Fasilitas Video call android

5. Barnacle Wifi Tether (buat android kita sebagai hotspot)

6. Proxy support on Froyo

7. The difference between removeViewInLayout() and removeAllViews()