1
我想更新我的小部件,以便與Android 2.3.3(API 10)兼容。Android小部件,如何在Android API中使用notifyAppWidgetViewDataChanged <11
我在我的代碼中有一些問題。
以下方法不用的minSdkVersion承認= 10
我怎麼能代替他們在我的AppWidgetProvider類,爲了用我的小部件採用Android 2.3.3,3.0 .... 4.0?
rv.setRemoteAdapter(appWidgetIds[i], R.id.stack_view, intent);
rv.setEmptyView(R.id.stack_view, R.id.empty_view);
rv.setPendingIntentTemplate(R.id.stack_view, toastPendingIntent);
appWidgetManager.notifyAppWidgetViewDataChanged(i, R.id.stack_view);