open popup window with widget

News, information, contests and special event announcements from members of the anddev.org community.

open popup window with widget

Postby dgnakouri » Mon May 25, 2009 1:36 pm

Hi excuse my english i am french
I want to open popupwindow when we click on my widget
my source
RemoteViews updateViews = null;
updateViews = new RemoteViews(context.getPackageName(), R.layout.widget_word);
updateViews.setTextViewText(R.id.word_title, aTableauresult[0]);
// updateViews.setTextViewText(R.id.definition, aTableauresult[1]);
updateViews.setTextViewText(R.id.word_title2,aTableauresult[2]);

updateViews.setTextViewText(R.id.word_title3,aTableauresult[4]);
//lien http a ouvrir dans le line
String definePage = "http://android-france.fr";
Intent defineIntent = new Intent(context,Popupnews.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context,
0 /* no requestCode */, defineIntent, 0 /* no flags */);

updateViews.setOnClickPendingIntent(R.id.widget, pendingIntent);



but nothing happen
thx
dgnakouri
Freshman
Freshman
 
Posts: 4
Joined: Mon May 25, 2009 11:11 am

Top

Return to Open News

Who is online

Users browsing this forum: No registered users and 2 guests