PhoneGap Network connection status checker

I am writing this post as part of a course called Mobiilituotekehitys (Mobile development) held by Tero Karvinen http://terokarvinen.com/2012/aikataulu-mobiilituotekehitys-bus4tn008-2

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

Description

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.

Status

Doesn’t work / alpha / beta / release

Tested on Android virtual device/emulator API 8

Screenshots

APK-file

http://myy.haaga-helia.fi/~a1103361/MD/oct31/Samus%20Connection%20Checker.apk

Source code

http://myy.haaga-helia.fi/~a1103361/MD/oct31/Samus%20Connection%20Checker.tar.gz

Technical information

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

Notes

I have no prior experience of Javascript so I modified the full example found at http://docs.phonegap.com/en/2.1.0/cordova_connection_connection.md.html#Connection 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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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