PhoneGap Network connection status checker

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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s