i have a question. i did all things for design and coding a widget before. now i have a button and a textview in my widget. i want when i click on my button my text entered in textview puted as extra for an intent and then start that intent. i can do this with following code in :
@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
int[] appWidgetIds) {
super.onUpdate(context, appWidgetManager, appWidgetIds);
for (int i=0;i<appWidgetIds.length;i++){
int awID=appWidgetIds[i];
RemoteViews v=new RemoteViews(context.getPackageName(),R.layout.widgetshow);
.
.
.
Intent in = new Intent("my.app.NOTEEDITOR");
Bundle basket = new Bundle();
*/100*/ basket.putString("textViewText", "test");
in.putExtras(basket);
PendingIntent pi = PendingIntent.getActivity(context, 0, in, 0);
v.setOnClickPendingIntent(R.id.button, pi);
appWidgetManager.updateAppWidget(awID, v);
.
.
.
}
}
but in line marked /100/ i want put my textviews' text as extra. i want when i click on my button in the widget that start a activity with an extra contained text of textview placed on widget that i clicked on it's button.
sorry guys for my terrible english speaking