Onscreen Numeric Keypad

by Siva » Fri, 14 Nov 2008 23:31:10 GMT

Sponsored Links

Is there a sample code for onscreen numeric keypad I can find
somewhere? Please let me know.

Or I appreciate any idea to help me how to accomplish this.


Onscreen Numeric Keypad

by Nathan Maves » Sat, 15 Nov 2008 03:27:51 GMT

 I wrote one last night and it took me only a few hours...   It was
based off the one in the "Hello, Android" book.  So far I would
recommend this book to people just starting out.


Sponsored Links

Onscreen Numeric Keypad

by Siva » Sat, 15 Nov 2008 12:32:06 GMT

 Is the book "Hello, Android" released already> Amazon asks for a pre-


Onscreen Numeric Keypad

by Mark Murphy » Sat, 15 Nov 2008 20:10:18 GMT


At the risk of helping a competing author ;-), the final(?) beta edition 
is available directly from the Pragmatic Programmers Web site 
( http://www.pragprog.com ) as a PDF.

I think the print edition is a few weeks away.

Mark Murphy (a Commons Guy)

Android Training on the Ranch! -- Mar 16-20, 2009


Onscreen Numeric Keypad

by brs » Sun, 16 Nov 2008 00:57:30 GMT

 A very basic example using buttons in a table layout:

Or a more fancy version from the official Android platform calculator:
 http://android.git.kernel.org/?p=platform/packages/apps/Calculator.git ;a=tree;hb=HEAD



Onscreen Numeric Keypad

by Siva » Sun, 16 Nov 2008 02:08:39 GMT

Thanks for this!

Siva G


Other Threads

1. J'ai pas trouv茅 le chemin syst em/lib


Je suis dbutant dans ce monde d'android.J'ai trouv dans plusieurs
tuto des chemins system/lib ou system/fonts mais j'ai pas trouv ces
chemins l sur mon windows 7.
De l'aide svp


2. SoundPool and LOADing from a resource

The code:
//this is all contained in my MainActivity.

 private SoundPool soundPool;
    private HashMap<Integer, Integer> soundPoolMap;
    public static final int SOUND_CANNON = 1;
    public static final int SOUND_HIT = 2;
    public static final int SOUND_MISS = 3;
    public static final int SOUND_WOUND = 4;
    public static final int SOUND_TAUNT = 5;

    private void initSounds() {

        soundPool = new SoundPool(5, AudioManager.STREAM_MUSIC, 100);
        soundPoolMap = new HashMap<Integer, Integer>();
        try {
        soundPoolMap.put(SOUND_CANNON, soundPool.load(this,
R.raw.cannon, 1) );
        } catch(Exception e) {
            String s = new String(e.getMessage());


        soundPoolMap.put(SOUND_HIT, soundPool.load(this, R.raw.hit,
        soundPoolMap.put(SOUND_MISS, soundPool.load(this, R.raw.miss,
        soundPoolMap.put(SOUND_WOUND, soundPool.load(this,
R.raw.wound, 1));
        soundPoolMap.put(SOUND_TAUNT, soundPool.load(this,
R.raw.taunt, 1));


The Problem:

soundPool.load fails indicating that the RESOURCE CANNOT BE FOUND.

The oog files cannon, hit, miss, wound, and taunt are in my res/raw
folder (I am using NetBeans with the Android 2.x Emulator, BTW)
As an experiment I have added a line to try to open the same resource
(i.e. via the R.raw.xxx  ID) as an InputStream and that succeeds. So I
am stumped as to why won't load as a soundPool resource.


3. ListView not refreshing on back button when cursor is changed

4. Android APIs

5. How to make a imageview at right of linearlayout

6. Putting a service into a .jar?

7. Add link to my activity in Contact's Phone Number Context Menu