Closed GoogleCodeExporter closed 8 years ago
There are some mistakes in your code.
1. call "setContentView(R.layout.test)" at the beginning of "onCreate"
2. When creating the widget, don't pass "null" as context. Use "this".
3. give your layout an id.
4. use that id in "findViewById"
Attached are corrected versions of your sample code.
Original comment by tittel@kom.e-technik.tu-darmstadt.de
on 14 Mar 2013 at 12:49
Attachments:
Thanks, it works now.
Original comment by g.barr...@gmail.com
on 14 Mar 2013 at 4:20
Original issue reported on code.google.com by
g.barr...@gmail.com
on 14 Mar 2013 at 11:08Attachments: