类android.widget.RemoteViewsService.RemoteViewsFactory源码实例Demo

下面列出了怎么用android.widget.RemoteViewsService.RemoteViewsFactory的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: codeexamples-android   文件: WidgetServiceTest.java
public void testStartService() throws Exception {
	Intent i = new Intent(getContext(), RssfeedWidgetService.class);
	startService(i);
	RssfeedWidgetService service = getService();
	RemoteViewsFactory onGetViewFactory = service.onGetViewFactory(i);
	assertNotNull(onGetViewFactory);
}
 
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {
	return new RssfeedWidgetViewsFactory(getApplicationContext(), intent);
}
 
 类所在包
 类方法
 同包方法