lacas
lacas

Reputation: 14066

android get screen width from an appwidget

how can i do that? is there a way to do it without a context: (getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getWidth())

Upvotes: 1

Views: 629

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006574

App widgets have access to a Context -- it is passed into the AppWidgetProvider.

Upvotes: 1

Related Questions