0
A
답변
0
사용 RemoteViews.setOnClickPendingIntent (R.id.view_id, 의도)하는 방법. intent 매개 변수는 매니페스트 파일의 필터와 일치하는 올바른 형식의 Intent 객체 여야합니다.
1
app-widget의 핸들 클릭 이벤트에 RemoteViews.setOnClickPendingIntent(R.id.view_id, intent) method
을 사용할 수 있습니다. (한 String.valueOf를 INT은 widgetid =있는 Integer.parseInt; 자세한 정보는 링크
0
Intent intent = new Intent(context, Activity.class);
Uri widgetId = Uri.parse("" + appWidgetId); // this line means
intent.setData(widgetId); // you can send a widget id
PendingIntent pintent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
views.setOnClickPendingIntent(R.id.clickButtoninWidget, pintent);
return views;
관련 문제
- 1. android widget unresponsive
- 2. android - widget help
- 3. android widget update problem
- 4. android seekbar widget
- 5. Android Widget 아이콘 크기 레이아웃
- 6. android show widget 프로그래밍 방식으로
- 7. Android Custom Widget Inflate Exception
- 8. Android listpreference 및 widget 배경
- 9. Android Market Question
- 10. android switchstatement question
- 11. android app memory question
- 12. android layout question
- 13. android developer question
- 14. android title question
- 15. 전화 번호 및 이메일을위한 Android Widget/EditText?
- 16. android widget update period milles가 작동하지 않습니다
- 17. Question on android : 서버에 이미지를 업로드하고 싶습니다.
- 18. Widget + TaskKiller의 PendingIntent
- 19. styling facebook comment widget
- 20. Dojo widget defaults
- 21. Blackberry web/widget (Eclipse)
- 22. wxPython StaticText Widget 글꼴
- 23. android widget, 구성 활동 후 수행 할 작업
- 24. Android-Widget : RemoteView를 사용하여 ListView 선택기 색상 변경
- 25. Iframe Question
- 26. UpdatePanel Question
- 27. Factorial Question
- 28. Regex Question
- 29. get_or_create() question
- 30. jsfiddle question
아래를 참조 할 수 있습니다 당신은 위젯 ID가이 –
열린 uriWidgetId = getIntent()있는 GetData() 좋아받을 수 있습니다. (uriWidgetId)); –