PhoneGap Network connection status checker

By | 31/10/2012

I am writing this post as part of a course called Mobiilituotekehitys (Mobile development) held by Tero Karvinen

I am using Eclipse to develop PhoneGap applications on a 64-bit Xubuntu 12.10 installed on a HP EliteBook 2560p Laptop.

Program name

Samus Connection Checker


A simple program which prints you your connection’s speed top-limit (Information on top speeds are Googled, so they might be inacurate) after checking the connection’s type.


Doesn’t work / alpha / beta / release

Tested on Android virtual device/emulator API 8



Source code

Technical information

The javascript compares the current connection with available connections using if-statements and then prints information according to the connection in use.


I have no prior experience of Javascript so I modified the full example found at to check the connection type and print a text describing the connection or if using 2gb/3g/4g the top connection speed available for the said technology.

Leave a Reply

Your email address will not be published. Required fields are marked *