Android examples for User Interface:Key Event
get Char For Keycode
//package com.book2s; public class Main { public static String getCharForKeycode(int i) { switch (i) { case 0x20: return "Space"; case 0x25: return "Left"; case 0x26: return "Up"; case 0x27: return "Right"; case 0x28: return "Down"; }// w w w . jav a2s . c o m return ((char) i) + ""; } }