wifi connected but internet not working on Android Phone

1.

Tried

TRY
call *#0011# (Takes phone into service menu)
press menu key and select wifi
Disable wifi powersaving mode

You may need to repeat this upon phone restarts but it may well sort out your problem

2.
http://www.droidforums.net/forum/galaxy-s3-help/251468-another-wifi-issue-two-galaxy-s3-old-works-fine-new-doesn-t-via-wifi.html

Found a solution. Here is a cut & paste for the solution I found that worked for me.

1. From your telephone dialer enter: “*#0011#” without quotes to enter service mode.
2. Press settings button
3. Select WIFI
4. Turn off Wifi Power save mode.
5. Exit Service mode
6. Select Settings
7. Wifi
8. Advanced settings
9. Keep wifi on during sleep
10. Always

3.

1. Opening the phone dialer.

2. Pressing ##72786#

3. Allowing the phone to reboot and reprovision.

Thanks again!

4.
https://help.ting.com/entries/23856497-Galaxy-S3-Data-Not-Working-When-Leaving-Wifi

You may have to do a profile update after the Android update. Turn WiFi off and 3G on, and go to Settings > About Phone/System Updates > Update Profile. Please also try updating your PRL at this time: Settings > About Phone/System Updates > Update PRL

Finally it started working on the next day after these changes

Advertisements

Downloading Youtube videos on Android phone

 

Here is the comparison of the top free apps that do this: http://tubemate-youtube-downloader.en.softonic.com/android/compare/tubex,droid-youtube-downloader.

TubeMate looks like the best one here as it allows selecting the Quality of the Video downloaded.

But in case you are interested in downloading video as mp3, droid-youtube-downloader is the answer.

PortFrowarding in Chrome…answer to connecting device browser to machine’s server + Inspecting WebView

This is what i was looking for, but sadly wasn’t available till now :
Came across it while looking thru the Google IO videos : http://www.youtube.com/watch?v=2OgAetgR_ok
Time : 3.25.
Looks straightforward…will try it out soon and update here….
Other Tools (mentioned in the video) :
responsive inspector extension
Inspecting WebView
jsconsole.com
Basically see :  cloud based testing
And Automated Testing : http://goo.gl/5WsMy
Google Analytics Live Feed….for ur app upto the level of Device Breakpoints and Page Load Speeds.

Testing Android apps from Eclipse on the Device

After 1 hr of headbanging, i finally got this working :

Steps :

0. Make sure u connect device with usb debugging on and also in MTP mode
1. connect ur phone via usb to the dextop
2. my comp -> manage -> devices -> shows nexus 4 as a device
install its driver from : C:\MSDE\khematar\DropBox\Bin\android-sdk-windows\extras\google\usb_driver using http://visualgdb.com/tutorials/android/usbdebug/

open cmd and cd : C:\MSDE\khematar\DropBox\Bin\android-sdk-windows\platform-tools
>adb devices
will list devices : List of devices attached

in case u see this 
>adb kill-server
adb start-server

then again do 
>adb devices


List of devices attached
01c1b9bcb4b58691        offline

offline is coz u'll have a popup on the device that u have to say yes to

then 

>adb install "C:\MSDE\khematar\Eclipse Workspaces\android\HelloWorld\bin\HelloWorld.apk"

will install app


RUNNING app straight from eclipse :

go to run config and select : always ask in "Target"

Then run and it'll prompt u with the connected device's name

Android WebView

WebView (inApp and Chrome both) Using Native Android Code and Phonegap

TO OPEN URL IN APP ITSELF :

package com.mkyong.android;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings.PluginState;
import android.webkit.WebView;

public class WebViewActivity extends Activity {

private WebView webView;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.webview);

String url =”http://www.google.com”;
WebView wv=(WebView) findViewById(R.id.webView1);
wv.getSettings().setJavaScriptEnabled(true);
   wv.getSettings().setPluginState(PluginState.ON);
   wv.getSettings().setAllowFileAccess(true);
wv.loadUrl(url);

//String customHtml = “<html><body><h1>Hello, WebView</h1><body><script>var ref = window.open(‘http://www.google.com&#8217;, ‘_system’, ‘location=yes’);</script></body></html>”;
//webView.loadData(customHtml, “text/html”, “UTF-8”);

}

}

FANCY WAY

public class WebViewActivity extends Activity {

private WebView webView;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.webview);

WebSettings mWebSettings;

        WebView mWebView = (WebView)findViewById(R.id.webView1);
        mWebView.getSettings().setBuiltInZoomControls(true);
        mWebView.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR);
        mWebView.setBackgroundColor(Color.TRANSPARENT);
        mWebView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_INSET);

        mWebView.loadUrl(“https://www.google.co.in/&#8221;);
        mWebView.setWebViewClient(new MyWebViewClient());
}


}

package com.mkyong.android;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class MyWebViewClient extends WebViewClient { 
    @Override 
    //show the web page in webview but not in web browser
    public boolean shouldOverrideUrlLoading(WebView view, String url) { 
        view.loadUrl (url); 
        return true;
    } 
}

TO OPEN URL IN BROWSER : 

package com.mkyong.android;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings.PluginState;
import android.webkit.WebView;

public class WebViewActivity extends Activity {

private WebView webView;

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.webview);

webView = (WebView) findViewById(R.id.webView1);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(“http://www.google.com&#8221;);

//String customHtml = “<html><body><h1>Hello, WebView</h1><body><script>var ref = window.open(‘http://www.google.com&#8217;, ‘_system’, ‘location=yes’);</script></body></html>”;
//webView.loadData(customHtml, “text/html”, “UTF-8”);

}

}

FINALLY GOT THE PHONEGAP THING WORK TOO …THE ISSUE WA THAT I WAS ONLY RUNNING THE PHONEGAP ANDROID EXAMPLE  FROM  : …\phonegap-2.7.0\phonegap-2.7.0\lib\android\example

BUT ACTUALLY  I ALSO HAD TO REPLACE THE INDEX.HTML CODE WITH FULL EG. CODE FROM http://docs.phonegap.com/en/2.7.0/cordova_inappbrowser_inappbrowser.md.html#InAppBrowser.
But SADLY that also opens inAppBrowser….
OPEN FILE SYSTEM HTML

webView.loadUrl(“file:///android_asset/www/index.html”);

In both cases this is always opening in the App, but i need it to open in Browser…

Resources :

http://developer.android.com/guide/webapps/webview.html#AddingWebView

NEXT STEP :

1. how to load html from file system in browser using android code
2. how to package web apps into android

ANOTHER IDEAL WAY OF DOING THIS IN THIS CIRCUMSTANCE IS TO DEVELOP A HMTL5 WEB APP THAT USES OFFLINE STORAGE..NOW WHEN THE APP IS LAUNCHED, THE APP WILL TRY TO HIT THE URL AND IF IT IS OFFLINE, IT WILL LOAD THE LOCAL HTML FILE (STORED IN THE BROWSER LOCAL STORAGE)……

THAT REMINDS ME THAT I ALREADY HAVE A HOSTED APP FOR USERMEDIA : http://tkhemani.github.io/getusermedia_tk (IF THIS HAS ANY ISSUES USE  http://simpl.info/getusermedia/ )

WELL, ALL I HAD TO DO WAS OPEN IT USING ABOVE CODE :)))))))

FINAL STEP WOULD BE TO CACHE THIS PAGE LOCALLY AND I’M DONE….



Looked into the local storage feature and tried to see some egs.

Next step : understand and use   http://appcache-demo.s3-website-us-east-1.amazonaws.com/localstorage-cache/