>
> Thanks Justin Anderson,
> but when in our class which does not extend any activity thenh we can
> write any control like
>
> ((Activity) context).findviewbyid(R.id.
> button1);
>
Ok... but that has nothing to do with preferences.

Thats way i want to write this addprefernce.. line.
>
You can't do that.  You would have to write your own XML layout and
manually tie it to the same preferences... meaning you would use the same
key that your preference xml does.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Mar 27, 2012 at 10:46 PM, jagruti sangani <[email protected]>wrote:

> Thanks Justin Anderson,
> but when in our class which does not extend any activity thenh we can
> write any control like
>
> ((Activity) context).findviewbyid(R.id.button1);
> Thats way i want to write this addprefernce.. line.

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

Reply via email to