[android-developers] Spinning Wheel of Fortune Custom View and Animation

2011-08-28 Thread Rohit Ghatol
Hi All, We plan to create an application which has a view, where we have a Spinning Wheel of Fortune. Now there are many ways to do so 1. Use Android Animation 2. Use Canvas 3. User SurfaceView My requirements are as follows 1. The wheel starts spinning slowly 2. Spins for say 10-20 times 3.

[android-developers] Re: Accessing Objects created in Service from Activity

2011-03-16 Thread Rohit Ghatol
, 2011 at 5:28 PM, Rohit Ghatol rohitsgha...@gmail.com wrote: We are developing an Android Product, where we have Queues which are created by Services and accessed by Activities. In general, I know that objects (irrespective of where they are created ) in Android will live in the same JVM

[android-developers] Accessing Objects created in Service from Activity

2011-03-15 Thread Rohit Ghatol
Hi All, We are developing an Android Product, where we have Queues which are created by Services and accessed by Activities. In general, I know that objects (irrespective of where they are created ) in Android will live in the same JVM and are accessing by any other object on the same JVM. The

[android-developers] Is there any way to detect hdmi plugged in and show different UI on phone and different on HDMI TV

2011-03-04 Thread Rohit Ghatol
Like we have seen Powerpoint having two views 1. Presentation View - Full Screen Presentation on Projector 2. Host View - on Laptop Is there any way in android we detect multiple display (say we had phone to hdmi tv, now there are two displays)? If yes, is there any way to direct one

[android-developers] Using AspectJ with Android - Pune GTUG blog

2010-11-11 Thread Rohit Ghatol
Hi All, I have created a project (guess first of its kind) which uses AspectJ with Android for method tracing. Read more here - http://blog.punegtug.org/2010/11/adding-aspect-to-android.html I have uploaded the project source at http://code.google.com/p/android-aspectj/ Please feel free to go

[android-developers] How to detect triple tap on View?

2010-07-20 Thread Rohit Ghatol
Hi All, I haven't spend much time on Gesture Detector or anything of that sort. My requirement is very simple, Given a View (any view), how do I detect triple tap on that? Of course a timer and a counter can help me, but I am looking for something more sophisticated that that. For people, you

[android-developers] Re: How to detect triple tap on View?

2010-07-20 Thread Rohit Ghatol
to set your own Touch Listener. Take a look at the Handling UI events:http://www.google.co.uk/url?sa=tsource=webcd=1ved=0CBUQFjAAurl=ht... and the View.onTouchListenerhttp://developer.android.com/reference/android/view/View.OnTouchListe... On Jul 20, 7:21 pm, Rohit Ghatol rohitsgha

[android-developers] How do I use arcTo right after moveTo?

2009-10-11 Thread Rohit Ghatol
Hi Everyone, I am trying to draw shapes. What I must do is as follows 1. moveTo () a point say 1000,1000 2. then I want to draw an arc whose height width is 400, 400 path.moveTo(1000,1000); path.arcTo(rectF,270,90); However the catch in this is the RectF I pass to above, I have to specify

[android-developers] Re: How do I use arcTo right after moveTo?

2009-10-11 Thread Rohit Ghatol
Basically I want an api as follows path.moveTo(1000,1000); path.arcTo(400 /* width of arc*/, 400 /* height of the arc */,270 /* start angle*/,90/*sweep angle*/); On Oct 11, 4:17 pm, Rohit Ghatol rohitsgha...@gmail.com wrote: Hi Everyone, I am trying to draw shapes. What I must do

[android-developers] As I am adding moveTo,lineTo,arcTo,curveTo to the Path, how do i get my current position

2009-10-11 Thread Rohit Ghatol
Hi All, How can I get current position from a Path? I reason I need is because methods like moveTo, lineTo, cubicbezierCurve, quadbeizer curve work in conjunction with last point. However, arcTo needs an explicit bound mentioned. Hence to use arcTo after all the above calls I need to get the

[android-developers] Re: Rotate MapView

2009-01-07 Thread Rohit Ghatol
towards north, the movement, I turn it to south, left move become right move. Infact the main issue is we wanted to rotate on the map and not the overlay like zoom controls or touch behavior. Thanks, Rohit On Jan 2, 3:49 pm, Rohit Ghatol rohitsgha...@gmail.com wrote: I tried this, but it did not work

[android-developers] Re: Rotate MapView

2009-01-02 Thread Rohit Ghatol
I tried this, but it did not work Here is my code, can some one help me with this package com.rohit.test; import android.content.Context; import android.graphics.Canvas; import android.hardware.SensorListener; import android.hardware.SensorManager; import android.os.Bundle; import