This is a continuation of my previous project
https://www.b4x.com/android/forum/t...y-using-input-from-multiple-activities.56724/
Same app - nearly finished
Now the client wants to take a photo of the person filling the forms and store it in the database also - or maybe just the filepath to the photo
I want to name the photo with the firstname middlename & lastname
So far I can get this to work only from the main activity and only when I press the back button as the middlename & last name are on the next activity
The photo activity is after all of the forms are filled out
I assumed I could pass the text data to the photo activity just as I pass it to main - but it doesn't work
I cant use subdelayed as the app does not return to main after taking the photo
Why is the data not being passed to the photo activity?
How can I create the string for use in the photo activity?
On main I have this code:
Sub Activity_Pause (UserClosed As Boolean)
Log(txtFirstName.Text & MiddleName & LastName &".jpg")
If UserClosed Then
SQL1.Close 'if the user closes the program we close the database
End If
End Sub
txt.FirstName is entered on the Mains associated GUI interface
MiddleName & LastName are passed from the next activity
This creates the desired petersimonsmith.jpg in the log
The following lines in activity two pass the text values into activity main
Sub Activity_Pause (UserClosed As Boolean)
Main.MiddleName = txtMidName.Text
Main.LastName = txtLastName.Text
That all works fine & its also the method I use for creating the database query
OK so why does the exact same technique not work at all on the final photo panel?
I tried putting
PanelPhoto.MiddleName = txtMidName.Text
etc on panel two
and
Log(FirstName & MiddleName & LastName &".jpg")
on PanelPhoto but all it shows is .jpg
What is wrong?