Onscreen Numeric Keypad

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


Sponsored Links
 Hi,

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.

Thanks,
Siva
--~--~---------~--~----~------------~-------~--~----~



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-
order!




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



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)
 http://commonsware.com 

Android Training on the Ranch! -- Mar 16-20, 2009
 http://www.bignerdranch.com/schedule.shtml 

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



Onscreen Numeric Keypad

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


 A very basic example using buttons in a table layout:
 http://code.google.com/p/android-labs/source/browse/trunk/BistroMath/src/com/google/android/bistromath/BistroMath.java 

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

Bernhard




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



Onscreen Numeric Keypad

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


 Bernhard,
Thanks for this!

Siva G




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



Other Threads

1. Developer with 26 apps gone from the market

There was a developer named Innksoft that had 26 apps on the market.
Some of them with over 50,000 downloads. Now there are zero apps on
the market for this developer.

http://www.cyrket.com/search?q=innksoft

Does anyone have a clue what happened to this dev?

I think they went missing sometime after 9/7/10.

-John Coryat

-- 

2. Simple Context Menus

Hi,

I am attempting to create a simple context menu that will show another
screen and have some functionality.  What is happening is that if I
select menu, I get the items (context menu) then when I select one of
them, it does nothing.  What am I missing here?   Once you click on
the item, should it not execute the class that you have indicated?

Here's my code:

This is in the main application:
package com.calculator;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class Calculator extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

... code of the project ....

    // context menu
    public boolean onCreateOptionsMenu(android.view.Menu menu) {
        super.onCreateOptionsMenu(menu);
        menu.add("Setup")
                .setIcon(android.R.drawable.ic_menu_preferences)
                .setIntent(new Intent(this, setup.class));
        menu.add("About")
                .setIcon(android.R.drawable.ic_menu_info_details)
                .setIntent(new Intent(this, about.class));
        return true;
    }
}

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

Here's the code for the "setup.java" class.  I have created a layout
page called "setup.xml".
All this should do is show me.


package com.calculator;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class setup extends Activity {

         @Override
            public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                        setContentView(R.layout.setup);
         }

}

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

I have placed the setContentView(R.layout.setup); in the main and used
different coding for context menus and it did show me the other
screen, but if I select menu, it gives me the same context menu.  I
figure that the above code would direct me to the individual class
where you can code it specifically and show what you want.   Any ideas
on what I am missing here?   Please forgive me as I am new to this.
Any complete code would be appreciated.

-- 

3. Needs confirmation on screen orientation on Android 2.1

4. Not all Locales available in the emulator but I can find the language files.

5. Issue 6721

6. java.net.SocketException: Address family not supported by protocol

7. Gmail Public Intent