Re: [android-developers] Creating Activity Helpers

2012-10-21 Thread TreKing
On Sat, Oct 20, 2012 at 4:30 PM, Mohamed Kharrat wrote: > How can I creat Android widget from non Activity classes ?? 1. Don't, if you can help it. 2. If you can't help it, pass along a Context to use where required. --

[android-developers] Creating Activity Helpers

2012-10-21 Thread Mohamed Kharrat
Hi, I created Helpers class for my app acitvitys, the probleme i found is that I not do code such " TextView eText = new TextView(this); " or even " TextView eText = new TextView(getApplicationContext()); " How can I creat Android widget from non Activity classes ?? Thinks -- You receive