Android Widget OnClick Example

Open link in browser after user do click on widget area:

private Context _context;
		public void onStart(Intent intent, int startId) {
                        _context = this;
			String definePage ="";
			 Intent defineIntent = new Intent(Intent.ACTION_VIEW,
			 PendingIntent pendingIntent = PendingIntent.getActivity(_context,
			 0 /* no requestCode */, defineIntent, 0 /* no flags */);
			 updateViews.setOnClickPendingIntent(, pendingIntent);
This entry was posted in Android Examples Code and tagged , . Bookmark the permalink.

Comments are closed.