Tag Archives: widget

3,411 views

Android Widget OnClick Example

Open link in browser after user do click on widget area: private Context _context; @Override public void onStart(Intent intent, int startId) { _context = this; String definePage ="http://old.chmi.cz/meteo/rad/rad_data.php"; Intent defineIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(definePage)); PendingIntent pendingIntent = PendingIntent.getActivity(_context, 0 /* … Continue reading

Posted in Android Examples Code | Tagged , | Comments Off on Android Widget OnClick Example