I have an appwidget that launches a video. It works on all my older devices and even my 4.1 emulator, but does not work on my target device with is the Nexus 7. On the older devices, including an S2, when you tap the widget the video plays. On the Nexus 7 the widget gets highlighted but then nothing triggers.
The code within the configuration activity that creates the intent is pretty simple:
Intent videoIntent = new Intent(Intent.ACTION_VIEW);
videoIntent.setDataAndType(Uri.parse(selectedPath), "video/*");
PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), 0, videoIntent, PendingIntent.FLAG_UPDATE_CURRENT);
RemoteViews views = new RemoteViews(getBaseContext().getPackageName(), R.layout.widgetlayout);
views.setImageViewBitmap(R.id.widgetButton, thumbnail);
views.setOnClickPendingIntent(R.id.widgetButton, pendingIntent);
I can't seem to find any more device-agnostic method for starting the video than Intent.ACTION_VIEW.
Any ideas?