Hi,
I'm noticing a strange behaviour from the following code:
Meteo is defined as
and properly initialized
If I make this code run on a LG L5 (Android 4.0.3) it works without a problem, the first try catches the exception and jumps to the catch section. When it runs on an Eeepad Transformer (TF101 Android 4.0.3) it doesn't work as it should, the try intercepts the action but it just make the code jump to End Sub instead of the Catch section. I've cleaned the project each time I've swapped the devices in the compiler.
Any suggestions?
Thank you.
Raffaele
I'm noticing a strange behaviour from the following code:
B4X:
Sub ImageView1_Click
Try
If(Meteo.FindLocation.Length>0) Then
Meteo.CityName=Meteo.AreaName
edtLoc.Text=Meteo.AreaName
MeteoUpdate
End If
Catch
If(edtLoc.Text<>"") Then
Try
Meteo.CityName=edtLoc.Text
MeteoUpdate
Catch
'località errata o non trovata
End Try
End If
'Località non trovata
End Try
End Sub
Meteo is defined as
B4X:
Dim Meteo As ICOSWorldForecast
B4X:
Meteo.Initialize("previsioni")
Meteo.ApiKey="myprivatekey ;)"
If I make this code run on a LG L5 (Android 4.0.3) it works without a problem, the first try catches the exception and jumps to the catch section. When it runs on an Eeepad Transformer (TF101 Android 4.0.3) it doesn't work as it should, the try intercepts the action but it just make the code jump to End Sub instead of the Catch section. I've cleaned the project each time I've swapped the devices in the compiler.
Any suggestions?
Thank you.
Raffaele