Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ボタンとして使用される appwidget があります。アプリケーションの重要なアクティビティを起動するので、徹底的にテストしたいと思います。どうすればそうすることができますか?
袖口を離れて、 を使用するだけRemoteViewsで、 とは独立して呼び出すことができる別のメソッドでを作成するスマートを分離します。次に、生成された RemoteView を.AppWidgetProviderContextAndroidTestCase
RemoteViews
AppWidgetProvider
Context
AndroidTestCase