cancel
Showing results for 
Search instead for 
Did you mean: 

Original topic:

Widget Preview not work on One UI 6

(Topic created on: 12-03-2023 07:52 AM)
272 Views
driod_dev
Beginner Level 2
Options
Discussions

I found the flag  AppWidgetManager#EXTRA_APPWIDGET_PREVIEW  not working with One UI 6 when developing a widget app.

https://developer.android.com/reference/android/appwidget/AppWidgetManager#EXTRA_APPWIDGET_PREVIEW 

demo code

Bundle b = new Bundle();

RemoteViews remoteViews = new RemoteViews(getPackageName(), R.layout.widget_layout);

b.putParcelable(AppWidgetManager.EXTRA_APPWIDGET_PREVIEW, remoteViews);

mAppWidgetManager.requestPinAppWidget(myProvider, b, null);

 

 

 

0 Likes
1 Comment
IndiaBetaTeam
Moderator
Moderator
Options
Discussions

Dear Samsung Member,

Greetings from Samsung Customer Support!

As per your query, we request you kindly share the log file. Without a log file we cannot analyze this issue, Also share video clips and images for better understanding and report this issue with the log file. This will help us to further investigate and resolve this issue.

To attach the log file: Samsung member > Click on beta banner > Switch to beta mode > Beta feedback > Send feedback > Error report.

Note: To ensure relevant log information is included in the error report, submit the report within 3 minutes of encountering the bug or error, and do not terminate (swipe away) the Samsung Members application until you are notified that the report has been sent. This can take up to 5 minutes.

Warm Regards,
India Beta Team

0 Likes