AlertDialogSamples: digit input dialog instead of text entry dialog.

by daum3...@yahoo.com » Sat, 25 Jul 2009 02:27:49 GMT


Sponsored Links
 Hello all,

Can I make a pop-up alert dialog for digit input along with up-down
button instead of text entry dialog?

Could you please let me know if you know how to do it?


Have a great day.

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



AlertDialogSamples: digit input dialog instead of text entry dialog.

by Daum » Mon, 27 Jul 2009 06:45:51 GMT


 Hello all,

Can I make a pop-up alert dialog for digit input along with up-down
button instead of text entry dialog?


Could you please let me know if you know how to do it?

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


Sponsored Links


Other Threads

1. Draw event not moving bitmap

hey guys--

I am just getting started with some game development here and was
messing around with some examples i found and some of the lunar lander
stuff.  but I am having trouble on updating the location of the bitmap
(lander).  its actually working but on my action move event after i
update the x and y for the lander i have to call invalidate(); to
force the refresh and i am curious why i have to do that?  i thought
when you created a surfaceview with a holder call back that it always
called ondraw durring the running state..  here is the motion and draw
code... the lander is in its own class and like i said this does work
but i am just trying to figure it out...

public boolean onTouchEvent(MotionEvent event)
        {
                //Log.d("Panel","Surface touched");
                if (event.getAction() == MotionEvent.ACTION_DOWN)
                {
                        // delegating event handling to the lander
                        Log.d("Action Event","ACTION DOWN");
                        lander.handleActionDown((int)event.getX(), 
(int)event.getY());

                        // check if in the lower part of the screen we exit
                        //if (event.getY() > getHeight() - 50)
                        //{
                        //      thread.setRunning(false);
                        //      ((Activity)getContext()).finish();
                        //}
                        //else
                        //{
                        //}
                }
                if (event.getAction() == MotionEvent.ACTION_MOVE)
                {
                        // the gestures
                        Log.d("Action Event","ACTION MOVE");
                        if (lander.isTouched())
                        {
                                Log.d("Action Event","ACTION MOVE is Touched");
                                // the lander was picked up and is being dragged
                                lander.setX((int)event.getX());
                                lander.setY((int)event.getY());
                                invalidate(); //THIS WORKS
                        }
                }
                if (event.getAction() == MotionEvent.ACTION_UP)
                {
                        // touch was released
                        if (lander.isTouched())
                        {
                                lander.setTouched(false);
                        }
                }
                return true;
                //return super.onTouchEvent(event);
        }

        @Override
        protected void onDraw(Canvas canvas)
        {
                lander.draw(canvas);

        }

here is my run loop

public void run() {
                        Canvas canvas;
                        long tickcount = 0L;
                        Log.d(TAG, "Starting game loop");
                        while (running)
                        {
                                tickcount++;
                                canvas = null;
                                // try locking the canvas for exclusive pixel 
editing on the
surface
                                try
                                {
                                        canvas = 
this.surfaceHolder.lockCanvas();
                                        synchronized (surfaceHolder)
                                        {
                                                // update game state

                                                // draws the canvas on the panel
                                                this.gamePanel.onDraw(canvas);
                                        }
                                }
                                finally
                                {
                                        // in case of an exception the surface 
is not left in
                                        // an inconsistent state
                                        if (canvas != null)
                                        {
                                                
surfaceHolder.unlockCanvasAndPost(canvas);
                                        }
                                }       // end finally
                        }
                        Log.d(TAG, "Game loop executed " + tickcount + " 
times");
                }

thank you all for the info... so far so good and getting a handle on
it...

-- 

2. How implement live wallpaper?

the live wallpaper in the desktop is an activity or a picture?

If it is a activity, how can i set the activity on the desktop?

else if it is a picture, how can i let the picture with animation?

-- 

3. parsing only one tag from an XML file at a time

4. encryption and decryption DES

5. Mapview not touchable

6. Failed to rename directory

7. sublist