I understand java, inheritance, creating classes... I am just having
trouble making it work on Android, when i add a thread or something..
it blacks out the screen...

Thank you for the help

On Apr 22, 12:02 am, TreKing <treking...@gmail.com> wrote:
> On Thu, Apr 21, 2011 at 8:47 PM, edprog <edwin...@gmail.com> wrote:
> > Basically I would like to draw from myView class and not from the
> > main Activity, right now I have the OnTouch events in the main Activity
> > as you can see, I want to move all that code (The ontiuch) to myView class.
>
> You're missing the fact that you can create *ONE* touchlistener class that
> acts on an arbitrary view, then assign a new instance to each view that
> requires it.
>
> If this does not make sense, I think you need to spend some time brushing up
> on Java.
>
> ---------------------------------------------------------------------------­----------------------
> 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

Reply via email to