Android Question Question Android 6.0

rscheel

Well-Known Member
Licensed User
Longtime User
Someone would be so kind as to tell me that returns to use this code in Android 6 upwards.
No WiFi and no data connection

B4X:
Sub Activity_Create(FirstTime As Boolean)
   Dim s As ServerSocket
   Log(s.GetMyIP)
   Log(s.GetMywifiIP)
End Sub

Thanks for your time.
 

eurojam

Well-Known Member
Licensed User
Longtime User
on my nexus 5 with android 6.0.1
LogCat connected to: 03241e1e13ad9858
--------- beginning of system
--------- beginning of main
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
fe80::8c3a:e3ff:fe97:7088%p2p0
127.0.0.1
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
Nexus 5, CyanogenMod Android 6.0.1
** Activity (main) Create, isFirst = true **
fe80::8c3a:e3ff:fe6f:6fea%p2p0
127.0.0.1
** Activity (main) Resume **
 
Upvote 0

rscheel

Well-Known Member
Licensed User
Longtime User
Are apparently different values for all, in the first log should be equal to the second 127.0.0.1.

For me it is this android 6.0 with Motorola Moto G3.

B4X:
fe80::b0cb:6dff:fe91:f8d0%dummy0
127.0.0.1

If so, you can not control if no connection or no connection, it will always be true that never come 127.0.0.1 in data connection.
 
Upvote 0
Top