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.
私はAndroidでウィジェットを作成しています。AppWidgetProviderクラスのインテントを介してアクティビティを呼び出します。しかし、AppWidgetProviderクラス内でフラグメントを呼び出す方法は何ですか?
しかし、AppWidgetProvider クラス内で Fragments を呼び出す方法は何ですか?
フラグメントは、アプリ ウィジェットではなく、アクティビティで使用するためのものです。
以下のコードを使用して JSON データを解析しようとしています。Web サイトには API キーが必要です。これは今のところ、strings.xml に文字列として保存されています。
public class JSONParser { static InputStream is = null; static JSONArray jarray = null; stat