How to record Android screen device?

Sometime you may need to demonstate a function, feature…. on your phone. something like:


And how to do that?

For Android 5.0 (Lollipop) and later: Use this:


For Android 4.4 (Kitkat) and later: You can use ADB to do this.

  1. Connect your device to computer via cable/miniUSB in debugging mode.
  2. Open CMD and type:
  3. You can begin your demonstration on your phone. Press CTRL + C when done. YOURFILENAME.mp4 will be saved in the root folder of SDcard.



For older Android version: It’s not difficult but your phone need to be rooted. So i don’t talk about this.

Handle “Enter” key in SoftKeyboard

[code lang=java]
YourEditText.setOnKeyListener(new OnKeyListener()
public boolean onKey(View v, int keyCode, KeyEvent event)
if (event.getAction() == KeyEvent.ACTION_DOWN)
switch (keyCode)
case KeyEvent.KEYCODE_ENTER:
return true;
return false;

read more: