Connection between widgetProvider and Activity

Put your problem here if it does not fit any of the other categories.

Connection between widgetProvider and Activity

Postby kanulo » Sat Jul 10, 2010 11:34 am

Hi all.

First of all i will explain the situation. I would like to make a prefs archive to edit some widget labels, for that i have a widgetProvider who calls an Activity

Code: Select all
Intent configIntent = new Intent(context, widgetActivity.class);
configIntent.setAction(appWidgetIds.toString());   
PendingIntent actionPendingIntent = PendingIntent.getActivity(context, 0, configIntent, 0);
widgetView.setOnClickPendingIntent(R.id.Button01, actionPendingIntent);


In te action I attach the widgetID to save the prefs with that name. The Activity (prefs screen) loads perfectly and the archive saves too, but i don't know how to tell de widgetProvider that the Activity has finished so it must update.


The question is if it can be done, or if you know other way to do that. Please if anyone knows an alternative feel free to say it.

Thank you very much and apologize for my english.
kanulo
Freshman
Freshman
 
Posts: 2
Joined: Fri Jan 29, 2010 1:08 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 20 guests