B4X FEED General question restarting an B4Xpages App

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: General question restarting an B4Xpages App است. این موضوع تا کنون 18 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع General question restarting an B4Xpages App
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
18
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi, Guys

I have come across a question regarding restarting an App – in B4Xpages – which relates in both B4a and B4i.

In my App there is a settings page which allows the user to select what controls are shown on each page. In most cases these pages are setup during their “pagename_Create()” event (which maybe my first mistake).

This works great, until the user decides to change the settings. If these settings change UI pages then problems occur when the pages are re displayed. It this was Windows, I would resort to “Major changes - the Program needs to restart” tactic and simply close the program and restart it automatically.

Unless I have misunderstood something, it is not considered good practice to shut down an App in Android or iOS (not even sure it can be done in B4i) and restart it (there are some old posts which do show how to do it).

As I see it, the pages need to be somehow destroyed so when re-shown the pagename_Create() event runs.

Maybe I am missing something, but...



 

عقب
بالا