- Jun 6, 2020
- 11,576
- 4,480
I'm opening this thread to collect tricks and caveats I'm coming across while converting my projects to B4XPages
CallSub from Service
Looks like a service that is started at boot may execute before the Main activity is created.
This was not a problem with CallSub, since it just won't be executed
B4X:
Using B4XPages, a direct call to the MainPage sub will result in an exception.
I added some check before actually calling it
B4X:
Activity Attributes in the Manifest file
Since there's only one Activity in the B4XPages framework, and I was using the B4XPreferences dialog in a secondary activity, I had to change manifest from
B4X:
to
B4X:
CallSub from Service
Looks like a service that is started at boot may execute before the Main activity is created.
This was not a problem with CallSub, since it just won't be executed
B4X:
CallSub(Main, "PopulateCLV")Using B4XPages, a direct call to the MainPage sub will result in an exception.
I added some check before actually calling it
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
Since there's only one Activity in the B4XPages framework, and I was using the B4XPreferences dialog in a secondary activity, I had to change manifest from
B4X:
SetActivityAttribute(Dash, android:windowSoftInputMode, adjustResize|stateHidden)to
B4X:
SetActivityAttribute(Main...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید