Re: [android-developers] Programming a target in an Android Application

2010-08-03 Thread Frank Weiss
Should we assume you know how to hit test for a circle and you want to know
if the SDK can do it for you instead?

On Aug 2, 2010 6:33 PM, kingh32 horaceb1...@gmail.com wrote:

Hello

I'm currently trying to program a target as part of an Android
Application.
I want the user to be able to touch a particular band within the
target with the app being able to acknowledge the area selected i.e.
coordinates and put that data into a database.

Does anyone have any suggestions as to how I can make an image of a
target function in this way?

The target is made up of 6-9 bands, each being the same width.

Thanks

Kingh32

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Programming a target in an Android Application

2010-08-03 Thread Horace Bell-Gam
No, so far all I've been able to do is overlay an image of the target and
make the entire object respond to a click.

On 3 Aug 2010 07:05, Frank Weiss fewe...@gmail.com wrote:

Should we assume you know how to hit test for a circle and you want to know
if the SDK can do it for you instead?



 On Aug 2, 2010 6:33 PM, kingh32 horaceb1...@gmail.com wrote:

 Hello

 I'm currently tr...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Programming a target in an Android Application

2010-08-03 Thread TreKing
On Tue, Aug 3, 2010 at 4:05 AM, Horace Bell-Gam horaceb1...@gmail.comwrote:

 No, so far all I've been able to do is overlay an image of the target and
 make the entire object respond to a click.


You know:
- The center of the image
- The length of each band
- Where the user clicks on the image (via onTouchEvents, me thinks)
- Simple algebra to calculate the distance of a point from the center of the
image (I hope)

That's all you should need to figure out which band the user has touched.

What have you tried thus far? Where are you stuck?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Programming a target in an Android Application

2010-08-02 Thread kingh32
Hello

I'm currently trying to program a target as part of an Android
Application.
I want the user to be able to touch a particular band within the
target with the app being able to acknowledge the area selected i.e.
coordinates and put that data into a database.

Does anyone have any suggestions as to how I can make an image of a
target function in this way?

The target is made up of 6-9 bands, each being the same width.

Thanks

Kingh32

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en