Something like

MyCustomVIew customView =
(MyCustomVIew)myActivity.findViewById(R.id.MyCustomViewId);
customView.passMyValues(myValue1, myValue2);

Artak

On Sat, Nov 20, 2010 at 5:06 PM, Mark Murphy <mmur...@commonsware.com> wrote:
> Either your "another file which extends View class" is a widget in
> your activity that has "some co-ordinate values", or it is not.
>
> If it is, have the activity call a method on that View to pass the values.
>
> If the View is a widget in some other activity, then you have some
> fundamental architectural problems, IMHO.
>
> On Sat, Nov 20, 2010 at 7:46 PM, hari <hari.zla...@gmail.com> wrote:
>> Hi guys,
>>
>> I have a need where i must pass some values from an Activity to
>> another file which extends View class (instead of Activity) .... Its
>> not the normal passing of values from one activity to another...
>>
>> In my Activity,i will pass some co-ordinate values to the class that
>> extends View... In this class,i will draw an image and place points
>> over the image on the required co-ordinates... But , the problem is ,i
>> cant send values using Intent ...
>>
>> Is there any way to do this?? Pls reply ASAP....
>>
>> Thanks
>>
>> --
>> 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
>>
>
>
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.2 Available!
>
> --
> 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

-- 
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