[android-developers] Re: Start an activity and return back to original activity

2009-01-27 Thread kaushik sur
yes instead of making new activity to go back to the main activity u can use a flag here screen1 is suppose to be the old activity /* Intent newIntent=new Intent("*android*.intent.action.SCREEN1"); newIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(newIntent); */ if i

[android-developers] Re: Not a big problem.

2009-01-14 Thread kaushik sur
hi ipeg i didnt get ur question clearly. whatevr if you are working in java there is no such concept of global variable , because here object are initiated from heap space. but you can make a globally accessible varible inside a class this way :- public class myClass{ public static x = 0; ... } th

[android-developers] Re: DRAG AND DROP

2009-01-11 Thread kaushik sur
yes dianne and peli , both of u r right. and so i am digging into the launcher code and getting good result out of that. regards kaushik On Sun, Jan 11, 2009 at 8:04 AM, Dianne Hackborn wrote: > Fwiw, changing layout parameters is a really inefficient way to do > animations on the screen. I wou

[android-developers] Re: DRAG AND DROP

2009-01-10 Thread kaushik sur
t after you placed the object > to a new position, you have to remember the new coordinates (instead > of (10,10) where you started originally). > > ACTION_DOWN is called when you click the mouse button, ACTION_MOVE is > called while you click and drag, and ACTION_UP is called when y

[android-developers] Re: DRAG AND DROP

2009-01-09 Thread kaushik sur
nce (difference) between those coordinates and the > original coordinates of your image (call that offsetX and offsetY), > and subsequently in ACTION_MOVE always add those offset values. > > Peli > > On Jan 9, 11:36 am, "kaushik sur" wrote: > > Hi Peli > > > &

[android-developers] Re: DRAG AND DROP

2009-01-09 Thread kaushik sur
Hi Peli here i attach my code, to be added , i have ressolved the issue of double image by getting rawX() value of the event , and setting my absolute layout according to that. but here i get a unique problem, whenever i click the button and try to drag it, the mouse tip comes to a certain pixels

[android-developers] Re: DRAG AND DROP

2009-01-08 Thread kaushik sur
give the illusion of dragging. > > > In ACTION_UP you check whether the finger position is close to the > > > target. > > > in ACTION_DOWN you can remember the initial finger coordinates so that > > > you can grab your icon everywhere correctly. > > > >

[android-developers] Re: DRAG AND DROP

2009-01-08 Thread kaushik sur
hi DIanne thanks for ur suggestion. but suppose i want to do it on the same widnow,then what will be the procedure. trully speaking i am not getting any clue of that. i need prior info to atleast check this feature on a single window regards kaushik On Thu, Jan 8, 2009 at 11:53 PM, Dianne Hackbo

[android-developers] Re: DRAG AND DROP

2009-01-08 Thread kaushik sur
hi i got a suggestion here. but i really doubt whether it will work or not. http://groups.google.com/group/android-beginners/browse_thread/thread/fd9f7b241d4c160e/02d2798f5d949b2b please give me a valid reasoning or example. regards Kaushik On Thu, Jan 8, 2009 at 9:43 PM, kaushik.siso wrote:

[android-developers] Re: Bluetooth in Cupcake - please help

2009-01-08 Thread kaushik sur
Hi i also require have the quiry, please anyone come forward and let us know the organisation of the code. regards kaushik On Thu, Jan 8, 2009 at 7:19 PM, Manohar Mahapatra wrote: > Hi > > I needed some info regarding the Bluetooth module in the cupcake release. I > wanted to know how BT is str

[android-developers] Re: Using G1 as modem

2009-01-08 Thread kaushik sur
Hi Tee are you talking about DUN-dial up network profile for G1? if yes, i dont think the G1 supports DNP. if i am wrong,please correct me. Regards Kaushik On Thu, Jan 8, 2009 at 5:45 PM, Tee wrote: > > Hi Marco, or anyone that has successfully used g1 as modem give me a > shout and help me ge