Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5936431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:23:51+00:00 2026-05-22T15:23:51+00:00

I have PhoneGap-Android application and I want to check network connection type (No connection,

  • 0

I have PhoneGap-Android application and I want to check network connection type (No connection, WIFI, GSM) by using PhoneGap API as described in http://docs.phonegap.com/phonegap_network_network.md.html

However, I don’t need to check if specific hostname is reachable. The only thing I need to know is the connection type, so no ping to internet will occur.

I’ve tried variants such as these, but with no luck:

navigator.network.isReachable(null, reachableCallback);
navigator.network.isReachable(false, reachableCallback);
navigator.network.isReachable('', reachableCallback);

Is there a way how to get network connection type without actually accessing the internet in PhoneGap Android app ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:23:52+00:00Added an answer on May 22, 2026 at 3:23 pm

    at the moment there is no way to do this.

    you can always write a plugin for phonegap to achieve what you want in native code. Here is a good entry on how to write a plugin: http://wiki.phonegap.com/w/page/36752779/PhoneGap-Plugins

    I am sorry but I have no good suggeestion how to write that functionality in Java for Android.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been playing around with my phonegap app in eclipse using android sdk
I'm building an Android application that's based around an enhanced WebView (based on PhoneGap).
I have a PhoneGap app that I'm testing on webOS, Android, and iPhone. I'm
I want to be able to make an iphone and android app using php.
Can we have multiple HTML files in Phonegap application?
Can I get a phonegap application running on iOS 4 to have a background
i am designing a project in phonegap with android. i want to make a
I have a mobile web application built using the following versions :- JQuery Mobile
Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.