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. Wrapping onCreateInputConnection for 1.1 safety

Hey guys,

Recently was updating a game implementing SurfaceView to handle input
from the soft-keyboard.  One of the first things we noticed was that
the enter/return key is handled by the IME and not passed to our app
(we do our own handling of all keypresses).

I've wrapped the classes necessary for normal function to be 1.1 safe
(like InputMethodManager) behind static checks... And they all work on
1.1... However, to get the IME to pass enter/return, we add the
IME_ACTION_NONE in the onCreateInputConnection callback..

As soon as that code is defined (regardless of getting called), we get
insta-VerifyExceptions (makes sense).  My question is, is there any
way to wrap this callback to be 1.1 safe, or is there any way to
specify the IME_ACTION_NONE ahead of time for SurfaceView's that
explicitly call InputMethodManager.showSoftInput(<MySurfaceView>,
InputMethodManager.SHOW_FORCED)


This is the code we need run:
        public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
                outAttrs.imeOptions |= EditorInfo.IME_ACTION_NONE;
                return null;
        }


Right now we're stuck having to decide to support softkeyboards, and
drop support entirely for 1.1, or drop support for softkeyboards
entirely to support 1.1 (only because of a single line)...

Any help would be greatly appreciated... :)

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

2. Android port for OMAP3 with GStreamer integration

Hi All 

We are pleased to announce the release of Android build integrated with
GStreamer for OMAP3 platforms (BeagleBoard & OMAP3EVM). Current Embinux
kernel for this Android port is derived from linux-omap-2.6.29.
Source code can be found at
http://labs.embinux.org/git/

Current release of Android port for OMAP3 has following features/support
   * Support for BeagleBoard
   * Support for OMAP3EVM platform
   * Android Toolchain's replacement with Embinux Toolchain (GCC-4.4.0,
Binutils-2.19.1, Cortex-A8)
   * GStreamer (0.10) integration 

The release notes, download and build instructions are available from 
http://labs.embinux.org/index.php/Android_For_OMAP3_with_Gstreamer_Integration

--      
Thanks
Embinux Team



--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. How to Access PreferenceGroup from the code?

4. OpenGLES sw writes in the wrong framebuffer page

5. browser URL string concatenated with "null"

6. how to add new product AOSP?

7. Could not load 'clearsilver-jni': make: *** [out/target/common/docs/offline-sdk-timestamp] Error 45