how select contact detail with widget
<p>i need to select and give detail of contact with this but i don't know how can get detail back (how find result of intent)</p>

<pre><code>public class MainActivity extends AppWidgetProvider {
Context context;
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
    int[] appWidgetIds) {
super.onUpdate(context, appWidgetManager, appWidgetIds);
this.context = context;
for (int i = 0; i &lt; appWidgetIds.length; i++) {
    int appWidgetId = appWidgetIds[i];
    Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
    intent.setType(ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE);
    PendingIntent pending = PendingIntent.getActivity(context, 0, intent, 1);
    RemoteViews views = new RemoteViews(context.getPackageName(),
            R.layout.activity_main);
    views.setOnClickPendingIntent(R.id.imageButton1, pending);
    appWidgetManager.updateAppWidget(appWidgetId, views);
}
}
</code></pre>
