emulation - Pasting text into Android emulator clipboard using adb shell -


I need to paste text in Android emulator clipboard using ADB open. I tried it on Android 1.6 and 2.3.1 < / p>

I tried to use the adb shell command: clipboard: [android.text.iclipboard]

"service call clipboard" where service codes 1, 2, and 3, getClipboardText For, set clipboard text, and hasClipboardText respectively.

  Service call clipboard 2 s16 thisisinsertedtext   

does not appear when working

  service call clipboard 1   

Shows the content of the clipboard:

  service call clipboard 1 result: parcel (0x00000000: 00000000 00000001 00000001 00000004 '........... ..... '0x00000010: 00650074 00740078 00000000' text .... ')   

How to set the value for the emulator clipboard!

Use the command given below.

service calls clipboard 2 i32 1 i32 18 s16 Isisinstedtekst

So I think first how many elements in one, "i32 1" clipboard, just The length of a second string is the command written above the show ...

Result: Parcel (00000000 '....') This means OK, no error.

, my question is, is there any way to copy Unicode string? I mean, a Korean-like mutite-byte character set, I tried in many ways, but it failed.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

memcached - Django cache performance -

java : convert string value to int -