- Jun 6, 2020
- 11,559
- 4,422
Hi all,
I've been trying for days now and can't get any further.
Since the forced update to Android Target API 31 in the Playstore, I get the following error message on devices with Android >= 12 when adding or remove the widget to/from the homescreen :
After the error comes, the app takes about 2 minutes when you want to open it again. Sometimes Crash Window from Android also comes. The error is reproducible.
This also applies to Erel's example, which should serve as a guide to creating a widget.
[H3]
Basic4android v1.6 adds support for home screen widgets. This tutorial will explain how to implement your own home screen widgets (also named App Widgets). It is important to understand that the widgets are created and managed in another process, different than the process that your application...
Spoiler: Example Screen
I did not...
I've been trying for days now and can't get any further.
Since the forced update to Android Target API 31 in the Playstore, I get the following error message on devices with Android >= 12 when adding or remove the widget to/from the homescreen :
Spoiler: Screenshotjava.lang.RuntimeException: Unable to start receiver anywheresoftware.b4a.samples.homewidgets.widgetservice$widgetservice_BR: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service anywheresoftware.b4a.samples.homewidgets/.widgetservice
Click to expand...
برای دیدن تصاویر باید ثبت نام کنید
After the error comes, the app takes about 2 minutes when you want to open it again. Sometimes Crash Window from Android also comes. The error is reproducible.
This also applies to Erel's example, which should serve as a guide to creating a widget.
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Basic4android v1.6 adds support for home screen widgets. This tutorial will explain how to implement your own home screen widgets (also named App Widgets). It is important to understand that the widgets are created and managed in another process, different than the process that your application...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
Spoiler: Example Screen
برای دیدن تصاویر باید ثبت نام کنید
I did not...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید