What is the best way to print the int associated with each key I
pressed? I tried something like this:
public boolean onKeyDown(int keyCode, KeyEvent event)
{
super.onKeyDown(keyCode, event);
switch (keyCode)
{
default :
// Something might
This is how I ended up solving it:
currentRankText.setText(Integer.toString(keyCode));
Is that a good solution or I am opening myself to trouble?
On May 30, 4:04 pm, Mauricio raubvo...@gmail.com wrote:
What is the best way to print the int associated with each key I
pressed? I tried something
If you want to have text on the screen that can be changed by the
program, could you create a text field as a resource and then change
its content in the code?
--
You received this message because you are subscribed to the Google
Groups Android Beginners group.
NEW! Try asking and tagging your
I understand onKeyDown should give me the key that was pressed, but
how to do that? I mean, if I do something like
public boolean onKeyDown(int keyCode, KeyEvent event)
{
switch (keyCode)
{
case 97 : // Letter A
DoSomething();
break;
On Mar 18, 2:49 am, Justin Anderson janderson@gmail.com wrote:
First, this is an Android support group... Have you tried the eclipse
forums?
Second, if you were a little more specific we might be able to help you...
What supporting applications are you talking about? The only thing I
On Jun 5, 10:51 am, Balwinder Kaur (T-Mobile) balwinder.k...@t-
mobile.com wrote:
You need a project created (or imported) in your Eclipse IDE and you
need to select that project to use the Open Project menu. If not, it
will be grayed out.
I'm assuming you mean to ask how to import your
I had to reinstall my eclipse jde from scratch (long story) and was
now wondering how to read in the only android project I was messing
with. The Open Project menu is currently grayed out so I do not how
else I could read in the project. Anyone?
On Mar 17, 5:16 pm, xp_prg wghe...@gmail.com wrote:
Hi All,
I am new to android development and the g1. I have received some help
in figuring out how to use the serial interface to the g1 via
android. My notes are here:
8 matches
Mail list logo