Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pasting text on new Android emulator

I am using the emulator that comes with Android Studio and need to past text between my OSX Yosemite machine and an app in the emulator.

I started my emulator with emulator -avd Nexus_6_API_23

I tried long click Command-V it does not paste

I see How can I copy/pate multibyte characters on Android Emulator? and a few others like Paste text on Android Emulator but they seem related to adb and not the new emulator.

Any ideas pls?

like image 481
aginsburg Avatar asked May 04 '16 23:05

aginsburg


People also ask

How do you paste on emulator?

Just copy from wherever, click and hold on the emulator phone's edit text where you want the text to go (kind of like you would press and hold to paste on an actual phone), the PASTE option will appear, then PASTE.

How do you paste in NOX player?

If we copy text (after long tap) from the EditText , it will appear in the Clipboard, but only inside Nox emulator. We can use the text in Chrome browser, for instance. Command + C doesn't work, while Command + V works (pastes text).


1 Answers

Follow these steps for write copied text:

  1. Open Terminal

  2. Write command: adb devices (it will list the device currently connected)

  3. Select Textbox where you want to write text

  4. Write command: adb shell input text 'Yourtext' (make sure only one device is connected to run this command and that you can also use Single Quotes)

  5. Done!

like image 168
Parth Avatar answered Sep 29 '22 08:09

Parth