This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Internet connection not detected by android, beagleboard xm, gingerbread.2.3.4.

Hi,

I got Android Gingerbread.2.3.4 up and running on the Beagleboard-xm. I also managed to setup the internet connection as follows:

netcfg usb0 dhcp
setprop net.dns1 8.8.8.8  (8.8.8.8 is the google public dns) 

When i ping e.g. google.com from the android prompt it succeeds.

When I open the browser in android it shows the message "No network connection", however, if I ignore that and try to browse to a website, this also succeeds. Surfing the web is no problem.

The problem I face is related to applications that try to access the internet. They all fail to "see" or "detect" the internet connection and then exit or abort.

One of the apps that has this problem is SlideME which can be downloaded from: http://slideme.org/sam2.apk

(SlideME is an android application marketplace)

Any ideas how to fix this? Thanks in advance..

Regards, Benjamin

  • Hi Benjamin,

    Ideally it should work if dns & proxy set properly..

    Anyhow thank you for pointing this out.. we will definately look into this..

    Could you send logs from '$ logcat' for further analysis ?

     

    -

    satish

  • 7245.logcatOutputBBXMAndroidGingerbread234_Boot.txt

    2211.logcatOutputBBXMAndroidGingerbread234_AppsStart.txt

    Hi Satish,

    thanx for your attention. I attached the logcat output which is retrieved after a boot of the board. During boot the bb-xm automatically connects to the internet using user-scripts invoked from init.rc

    Also I attached a logcat output which is retrieved after starting up various applications that try to access the internet but fail.

    What I noticed in the meantime is that during surfing, in many cases I get a security warning, displaying the message:

    "There are problems with the security certificate of this site".

    "This certificate is not from a trusted authority."

    I don't think this is related to the problem mentioned earlier, but for sure it's not convenient :)

    There are many sites that result in this warning getting displayed. Just to name two from which I noticed it:

    beagleboard.org

    e2e.ti.com

     

    Visiting these sites on a normal desktop computer with firefox installed is no problem. On current setup, it is.

    Any ideas?

  • Hi Benjamin,

    I suggest you to try the following approach

    Once you do "netcfg usb0 dhcp" and succeeds,

    Do #getprop

    You will see some <ip address> on the property

    net.usb0.dns1

    Do # setprop net.dns1 <ip address>

    and see whether slidME and other applications are able to connect to internet.

    Regards,

    Arun

    Kindly click the verify answer button on this post if it answer your question.

  • Hi Arun,

    I tried this but it doesn't seem to work. The same problem remains. Websites are reachable but applications cannot detect the internet status or something.

    I have made some progress in the meantime:

    SlideME still does not want to go to the market when I launch it directly, complaining about the internet connection. However, I noticed the following:

    From angry birds there are these advertisements in the top-right corner of the screen during playing the game. Showing the Opera web browser is available for download. When I clicked on it, the system asked me if I wanted to use SlideME as the application to download/install Opera which I accepted. To my surprise it succeeded in downloading and installing the webbrowser. Therefore I think the problem that I mentioned is related to the status of the internet connection that applications use to detect if there is a valid internet connection. And I think that the application also can access the internet but simply doesn't because the status informs the application that there is no internet connection available. Could this be right? Can I retrieve the status somehow (same way apps do) to confirm this?

    I managed to get lost of the annoying security certificate warnings. Just set the date/time correctly and these will not bother you anymore ;)

    Regards

  • Hi Benjamin,

    Sorry for dealy.. was on vacation

    1. I have gone through logs and found following things

     >> It says data has been sent to site are successful

     >> Then it tried to validate some credentials from other activity...

    Is this log for success scenario ?

    ================================================

    D/FlurryAgent( 1427): Ending session
    D/dalvikvm( 1427): GC_EXPLICIT freed 49K, 47% free 3063K/5703K, external 1138K/1646K, paused 34ms
    D/FlurryAgent( 1427): Sending report to: http://data.flurry.com/aar.do
    D/FlurryAgent( 1427): Report successful
    I/ActivityManager( 1075): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.gigamarket.sociomal6
    I/ActivityManager( 1075): Start proc com.gigamarket.sociomall for activity com.gigamarket.sociomall/.ui.activity.LoginActivity: pid=1888 uid=10037 gids={3003}
    I/ActivityThread( 1888): Pub com.gigamarket.sociomall.digitalobjects: com.gigamarket.sociomall.provider.DigitalObjectsProvider
    I/ActivityThread( 1888): Pub com.gigamarket.sociomall.credentials: com.gigamarket.sociomall.provider.CredentialsProvider
    =====================================================================

    2. Is it happening with only slideme app or any other app also ? Because I also observered the same thing what you had - while playing games or some apps like android doc - adversitement are getting displayed...

    3. One more suspect I feel is - slideme app might be checking some property for connection, which is set by telephony manager

    -

    satish

  • Hi satish,

    No problem, I have been busy myself. See my answers below.

    1. No, there is no succes scenario for applications that try to detect the status of the internet connection.

    2. Well, in the logcat I attached I also start sociomall which is another alternative market app that faces the same problem. It does not "see" the internet connection.

    3. You could be right. It must be something with a connection status. Because when it does not check but just acceses the internet it suddenly works (advertisement scenario, as I explained earlier in my previous post). Are there some properties in the system of which you think are related to internet status etc? And can we modify them to simulate a valid internet connection? That would be great!

    Thanks!

  • Hi Benjamin,

    At present I do not have any such information on this. However I will post as soon as I will find out some pointers.

    I also request you to post your inputs, if you find any.. I will add them on our wiki

    -BR,

    satish

  • I'm having the same issue on our Beagleboard.  It appears that ConnectivityManager is not being updated when the network commands are issued via the terminal.  Is there anyway to restart Andriod after establishing the connection?

     

    Jeff Smith

  • I am having the same problem, but I am unable to ping any hostnames. I am able to ping Ip addresses however. When I run the browser, it goes out to the internet and finds google but only after the connection error that was mentioned in this post occurs. I can surf the net but get crashes in the browser after hitting only a few different sites. Any help would be apprectiated. Thanks.