Android : How to load preview image in AppWidgetProviderInfo

on Monday, November 3, 2014


I googled but can not solve my problem, i think you guys can help me..


So.. I need load the preview image of AppWidgetProviderInfo class.


I see in oficial documentation here, has a method to load it, but only API level 21+, and i need this for older version.


Some code here to help..



AppWidgetProviderInfo widgetProviderInfo
...
widgetProviderInfo.previewImage; // It's return an int(id from the resource i think).


I've tried several ways, but nothing work..


Any ideas how i can load this resource?


Thanks!


0 comments:

Post a Comment