esc key-mapping

by linux newbie » Mon, 18 Jan 2010 13:00:17 GMT


Sponsored Links
 Hi,

I booted Android for "generic" product.
In the system/usr/keylayout/qwerty.kl there is no mapping for Escape Key.

As our target doesn't have touch screen, we coudnt go back to previous
screen / Main window.

Can anyone let me know how to add Escape key mapping in that file?

Thanks



esc key-mapping

by Dhananjay Joshi » Mon, 18 Jan 2010 13:18:26 GMT


 add entry for escape key in your qwerty.kl file .
key no is 1.it will work.




> website: 


Sponsored Links


esc key-mapping

by linux newbie » Mon, 18 Jan 2010 13:48:08 GMT


 I tried the following before. Please let me know, if it is wrong.

key 1 ESCAPE

On Mon, Jan 18, 2010 at 4:18 PM, Dhananjay Joshi <dhananjayingr...@gmail.com




>> website: 



esc key-mapping

by Dhananjay Joshi » Mon, 18 Jan 2010 14:08:33 GMT


 add like this.

 key 1     BACK






>>> website: 



esc key-mapping

by linux newbie » Tue, 19 Jan 2010 09:55:09 GMT


 Thanks Dhananjay!!!

On Mon, Jan 18, 2010 at 5:08 PM, Dhananjay Joshi <dhananjayingr...@gmail.com






>>>> website: 



Other Threads

1. Basic Java Problem..

I know this is probably a simple question but I'm not sure why this
doesn't work.

private Bitmap mSphere;
private puzzlePiece[][] pieces = new puzzlePiece[5][7];

mSphere = BitmapFactory.decodeResource(mContext.getResources(),
R.drawable.sphere);

for(int i = 0; i < 5; i++)
{
     for(int j = 0; j < 7; j++)
     {
            pieces[i][j] = new puzzlePiece(mSphere);
     }
}


---------------------------------------------


public class puzzlePiece {
        public Bitmap mImage;
        public boolean is_selected;

        public puzzlePiece(Bitmap mImage_)
        {
                this.mImage = mImage_;
                this.is_selected = false;
        }
}



------------------------------------------------

This is where the code will break...

for(int i = 0; i < 5; i++)
{
      for(int j = 0; j < 7; j++)
      {
                canvas.drawBitmap(pieces[i][j].mImage, i*64, j*64+32, new
Paint());
      }
}



If I just draw mSphere itself, the code will work fine.. What exactly
am I doing wrong here?

- Chris

--~--~---------~--~----~------------~-------~--~----~

2. No audio picker activity?

Hello.

Did I miss something, because, when attempting to run an intent with
the action "Intent.ACTION_PICK" and the type "audio/*" (and with a SD
card present with audio files on it), I get a "ERROR/
AndroidRuntime(1016): android.content.ActivityNotFoundException: No
Activity found to handle Intent { action=android.intent.action.PICK
type=audio/* }"?

I'm very surprised that the SDK does not come with a sound selector,
because this is not the case for the image selector (with a type set
to "image/*")...

If this is the case, do you a know a library which provides such a
sound picker, please?

Thank you.
douard
--~--~---------~--~----~------------~-------~--~----~

3. Text Msg. Ring Tone

4. Fwd: Root Access??

5. Camera Hardware Interface

6. Getting information from the Internet

7. Loading a bitmap from a byte buffer