Hi,
I am writing a program to read barcode.
I use ABZxing Library for this.
I attached a sample program here.
Here I have a screen 1.
There is two Buttons
1) Scan Barcode
2) Exit Button.
When I click on "Scan Barcode Button"
I will reach to another screen , Screen 2 where I have
1 ) a Text Field
2) a Scan button
3) a Back button.
My Aim is that When I click on Scan button, The scanned data will come to the text field and I can save the data to my database.
please see Sub Activity_Pause.
If I add 'Activity.Finish line
In this case after scan I saw I am in the first screen, SCREEN 1
I tried again
If I comment the line "Activity.Finish" inside "Sub Activity_Pause"
Then when I exit application in the first screen (SCREEN 1), I can see Screen 2.
So How I can manage BARCODE reading with out affecting SCREEN 2 ?
In main I called ExitApplication
But it don't help me.
I attached the sample program here; Please see it
Please help me:sign0085:
I am writing a program to read barcode.
I use ABZxing Library for this.
I attached a sample program here.
Here I have a screen 1.
There is two Buttons
1) Scan Barcode
2) Exit Button.
When I click on "Scan Barcode Button"
I will reach to another screen , Screen 2 where I have
1 ) a Text Field
2) a Scan button
3) a Back button.
My Aim is that When I click on Scan button, The scanned data will come to the text field and I can save the data to my database.
please see Sub Activity_Pause.
If I add 'Activity.Finish line
B4X:
Sub Activity_Pause (UserClosed As Boolean)
Activity.Finish
End Sub
In this case after scan I saw I am in the first screen, SCREEN 1
I tried again
If I comment the line "Activity.Finish" inside "Sub Activity_Pause"
B4X:
Sub Activity_Pause (UserClosed As Boolean)
'Activity.Finish
End Sub
Then when I exit application in the first screen (SCREEN 1), I can see Screen 2.
So How I can manage BARCODE reading with out affecting SCREEN 2 ?
In main I called ExitApplication
B4X:
Sub close_Click
ExitApplication
End Sub
But it don't help me.
I attached the sample program here; Please see it
Please help me:sign0085:
Last edited: