[FREE] Network Extension! ๐ŸŒ

Introduction

A non-visible extension that retrieves the internet connection status of the device. Helps you to check if the device is using WiFi connection, roaming, mobile or VPN, and checks access to the Ethernet.

Other users have already made an extension using IsVPNConnected block. I don't know if you can use ActivityStarter or Web to check if the device is using roaming or connected to Wi-Fi.

For now, the extension does not support Android versions > 8 (API > 27). I'll find solutions that work.

:bulb: Current Version: 6

:file_folder: File Size 6.91 KB

:package: com.gordonlu.network.Network

:date: Created On 2021-12-28

Blocks

IsEthernetConnected

MethodBlock1

Tests if device is connected to the Ethernet.

Returns: boolean

IsMobileConnected

MethodBlock2

Tests if device is using mobile connection.

Returns: boolean

IsRoaming

MethodBlock3

Tests if device is using roaming.

Returns: boolean

Supports Android > 8.

IsVPNConnected

MethodBlock4

Tests if device is using a VPN (virtual private network).

Returns: boolean

IsWiFiConnected

MethodBlock5

Tests if device is connected to WiFi.

Returns: boolean

Supports Android > 8.

Downloads

AIX: com.gordonlu.network.aix (7.6 KB)

TXT: (not available yet)

Docs generated with https://cttricks.com/aix-docs/.

Rate my extension!

  • Good extension!
  • Bad extension.
0 voters

Made with Niotron IDE.

Kindly :email: PM me if you have any questions! Also, if you like my extension, please :heart: like it! It takes some effort for me to make it...

Added to my website on 12-30-2021.

https://sites.google.com/view/appinventor-aicode/extensions/my-extensions/network


Gordon Lu

:speech_balloon: Message :earth_africa: Website :e-mail: E-mail

14 Likes

Version 2 Updated!

New features:

No no features yet.

Bug fixes:

  1. Fixed a bug in IsInternetConnected in Companion app.
3 Likes

Nice work ! :slightly_smiling_face:

1 Like

Great Extension @gordonlu310

1 Like

Thank you @Aquib_Khan and @SRIKAR_B.S.S!

4 Likes

I have built a poll, if you have time please poll it!

2 Likes

Version 3 updated (I have made a mistake in the blocks, the Internet block should be Wi-Fi).

1 Like

Version 4 updated!

New features:

  1. Added IsMobileConnected.

Bug fixes

Fixed a bug for the return value of IsWiFiConnected.

1 Like

@gordonlu310 ti faccio i miei complimenti per la tua estensione, sei davvero in gamba.
Saluti
Nicola

1 Like

@gordonlu310 la cosa strana รจ che se provo la tua estensione attraverso un If annidato..il responso รจ sempre "Roaming attivo"; mentre utilizzando un if singolo, allora riconosce la connessione WiFi. :pensiero:

1 Like

I'm trying to figure out the problem...

Can you show your different blocks? I want to put them against my code to see.

1 Like

.isMobileConnected returns only true if there is no WiFi connection.

grafik

What Android device are you using?

1 Like

I tested it on a Galaxy Note8 (Android 9).

This block does not work on devices > = Android 9. Google deprecated the method. I'll try to find other solutions to it that work on Android > = 9.

1 Like

As I said, I tested it on Android 9 (API 28):

grafik

1 Like

Sorry, my bad, I meant devices > = 28.

https://developer.android.com/reference/android/net/ConnectivityManager#TYPE_MOBILE

1 Like

But without WiFi connection:

grafik

Exactly what I said before:

That's strange.

I published a new version, does that work for you?

If it still doesn't work for you, I'm going to PM you the code.

1 Like