android.widget.RemoteViewsService.RemoteViewsFactory Java Examples

The following examples show how to use android.widget.RemoteViewsService.RemoteViewsFactory. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WidgetServiceTest.java    From codeexamples-android with Eclipse Public License 1.0 5 votes vote down vote up
public void testStartService() throws Exception {
	Intent i = new Intent(getContext(), RssfeedWidgetService.class);
	startService(i);
	RssfeedWidgetService service = getService();
	RemoteViewsFactory onGetViewFactory = service.onGetViewFactory(i);
	assertNotNull(onGetViewFactory);
}
 
Example #2
Source File: RssfeedWidgetService.java    From codeexamples-android with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {
	return new RssfeedWidgetViewsFactory(getApplicationContext(), intent);
}