안드로이드 개발 질문/답변
(글 수 45,052)
제가 만든 위젯이 처음 실행될때
위 설정으로 AppWidgetConfig 을 불러오는데요.
<activity android:name=".AppWidgetConfig">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
위 설정으로 AppWidgetConfig 을 불러오는데요.
이곳에서 설정을 하고 완료되면 설정된 값(String[])을
AppWidgetConfig 에서 [설정완료] 버튼을 누르면
Intent resultValue = new Intent();
resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId);
resultValue.putExtra("LOC_INFO", getLocationInfo);
setResult(RESULT_OK, resultValue);
finish();
이런 식으로 "LOC_INFO" 를 넘겨줬는데...
AppWidgetProvider를 상속받은 위젯에서 저 값을 받아올수 있는 방법이 없을까요?