Android 小部件在三星Galaxy S3上松开了onclickpendingent

Android 小部件在三星Galaxy S3上松开了onclickpendingent,android,widget,samsung-mobile,Android,Widget,Samsung Mobile,我使用常规例程使小部件上的视图可单击: Intent intent = new Intent(context, OnOff_screen.class); intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); // Identifies the particular widget... intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)

我使用常规例程使小部件上的视图可单击:

        Intent intent = new Intent(context, OnOff_screen.class);
        intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); // Identifies the particular widget...
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        // Make the pending intent unique...
        Uri data = Uri.withAppendedPath(
            Uri.parse(Intent.URI_INTENT_SCHEME + "://widget/id/"),
            String.valueOf(widgetId));
        intent.setData(data);

        PendingIntent pendIntent = PendingIntent.getActivity(context, 0,
            intent, PendingIntent.FLAG_UPDATE_CURRENT);

        //start the activity when clicking on the view
        views.setOnClickPendingIntent(R.id.tc_logo, pendIntent);
虽然这适用于所有手机,但只有在三星Galaxy S3上,该小部件在大约20分钟后不会对任何点击做出反应

小部件安装完成后,S3上的一切正常

但是只要等待大约20分钟左右,点击视图就不会再触发,就好像视图刚刚松开了SetOnClickPending帐篷一样

一旦小部件再次安装,一切都会再次工作-但在大约20分钟后再次失去可点击性

这仅适用于三星Galaxy S3-所有其他设备都正常

ps我还发现其他一些小部件,比如三星的时钟,只是停止了,不再更新

S3有什么特别之处破坏了小部件的功能


非常感谢

…最后,我们发现这个问题的原因是三星的Android版本在使用中出现了故障。多亏了三星惊人的支持,我们可以确认这个问题,三星承诺在下一次更新中解决这个问题

…最后,我们发现这个问题的原因是三星的安卓系统所用版本的错误。多亏了三星惊人的支持,我们可以确认这个问题,三星承诺在下一次更新中解决这个问题