Android Question Stopping the app effectively.

Juzer Hussain

Active Member
Licensed User
Longtime User
Hi,
In my app in Main form I am downloading a small string to check internet connection.
In next screen I am connecting to my site using login details.In both the forms thru HtpUtils2 module.Upon successful login a 3rd activity is called.I am closing the app thru close button in main form where process global ForceClose is set to true
ForceClose=True
StopService(Me)
Activity.Finish
In other activity resume i have written
If Main.ForceClose =True Then
StopService(Me)
Activity.Finish
ExitApplication
End If
still the app doesnt close it keeps opening last activity indefinetly.
Can anyone Pls suggest how to do this.

Juzer
 
Top