[android-developers] Re: How to use D-Pad control in Android

2010-09-05 Thread ko5tik
On Sep 3, 3:34 pm, Dhrumil Shah dhrumilsh...@gmail.com wrote: Hey Avigadl, If I change the values of the each direction like DIRECTION_TOP = 0, DIRECTION_DOWN = 1, DIRECTION_RIGHT = 2, DIRECTION_LEFT = 3; it is working? I changed that but unfortunetly its not working. Any other Solution?

Re: [android-developers] Re: How to use D-Pad control in Android

2010-09-05 Thread Dhrumil Shah
Hello ko5tik, Ok, then here is my code which is animates my ball. package padd.testing; import android.app.Activity; import android.os.Bundle; import android.view.*; //import android.view.View.OnClickListener; import android.graphics.*; import android.content.*; //import android.widget.Button;

[android-developers] Re: How to use D-Pad control in Android

2010-09-03 Thread avigadl
Several suggestions: 1. Note that all the directions has value 0, this might be a poblem wen you want to distinguish between directions. You have to set a unique value to eac direction. 2. We suggest to use switch case statement instead of if else if. Hope this helps. On Sep 3, 12:35 pm,

Re: [android-developers] Re: How to use D-Pad control in Android

2010-09-03 Thread Dhrumil Shah
Hey Avigadl, If I change the values of the each direction like DIRECTION_TOP = 0, DIRECTION_DOWN = 1, DIRECTION_RIGHT = 2, DIRECTION_LEFT = 3; it is working? I changed that but unfortunetly its not working. Any other Solution? On Fri, Sep 3, 2010 at 5:26 PM, avigadl avig...@gmail.com wrote: