Android Question [Closed] How to handle Object context is paused. Ignoring CallSubDelayed?

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I have an activity (Activity A), that Initialize /called a class. This class is collecting data from user's input. Class has panel, edittext and button.

The class called another Activity (Activity B) with command CallSubDelayed2, Activity B wait for user to choose a data from a list.
When user already choose a data, activity B call the sub in the class via command CallSubDelayed2, but that sub never executed.

I understand that the activity that Initialize /called the class - Activity A, was in paused state, so the sub in that class never executed.

Is there anyway to handle this?
 
Last edited:

incendio

Well-Known Member
Licensed User
Longtime User
Can't use B4XDialog or B4XListTemplate cause my app has a custom style with is very both of these.
 
Upvote 0

incendio

Well-Known Member
Licensed User
Longtime User
This is my class Dialog
Dialog.jpg


Active edittext has a red border, inactive edittext has black border.

Can B4XDialog to be customized like this?
 
Upvote 0

incendio

Well-Known Member
Licensed User
Longtime User
When I tried B4XPreferencesDialog from this thread


got an error
Unknown member: borderwidth
Unknown member: bordercornersradius

Beside the layout, can I define my own views event in B4XPreferencesDialog ?
On my class Dialog, here what will happen on the event
  1. User click edittext (the one with hint Click to choose), it will retrieved data via jRDC2 and displayed it in Activity B
  2. User click OK button, it will insert all value input by user in that class into sqlite table
  3. User click - (minus) button, it will delete record in sqlite table
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
ot an error
Unknown member: borderwidth
Unknown member: bordercornersradius
It will not work unless you read the instructions.

Beside the layout, can I define my own views event in B4XPreferencesDialog ?
The only event that is raised while the form is open is the IsValid event.
 
Upvote 0

incendio

Well-Known Member
Licensed User
Longtime User
Since I can't make my own events, I can't use B4XDialog, thanks anyway.

Btw, what's the instructions?
I downloaded the example & compiled, got those errors. My B4A is ver 9.8, it is meet the requirements, right?
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Since I can't make my own events, I can't use B4XDialog, thanks anyway.
I cannot help you like this. You must be more accurate.
You can add any event you like to B4XDialog.

You asked about events in B4XPreferencesDialog. This has nothing to do with B4XDialog.

I downloaded the example & compiled, got those errors. My B4A is ver 9.8, it is meet the requirements, right?
The minimum versions are explained in the tutorial: https://www.b4x.com/android/forum/t...esdialog-cross-platform-forms.103842/#content

Last answer here...
 
Upvote 0
Top