[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; ... }

[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 hack...@android.comwrote: Fwiw, changing layout parameters is a really inefficient way to do animations on

[android-developers] Re: DRAG AND DROP

2009-01-10 Thread kaushik sur
button, ACTION_MOVE is called while you click and drag, and ACTION_UP is called when you release the mouse button. Replace mouse by finger on the actual device :-) I hope this is what you meant. Peli www.openintents.org On Jan 9, 2:46 pm, kaushik sur kaushik@gmail.com wrote: hi Can

[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-09 Thread kaushik sur
the distance (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 kaushik@gmail.com wrote: Hi Peli here i attach my code

[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 gurt...@gmail.com wrote: Hi Marco, or anyone that has successfully used g1 as modem give me a shout

[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 androidu...@gmail.comwrote: Hi I needed some info regarding the Bluetooth module in the cupcake release. I wanted to

[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

[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

[android-developers] Re: DRAG AND DROP

2009-01-08 Thread kaushik sur
to the target. in ACTION_DOWN you can remember the initial finger coordinates so that you can grab your icon everywhere correctly. Basically you have to code everything by yourself, but it should not be very difficult. Peli www.openintents.org On Jan 8, 7:06 pm, kaushik sur