Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
mWebview=(WebView)findViewById(R.id.activity_main_webview);
        WebSettings webSettings=mWebview.getSettings();
        webSettings.setJavaScriptEnabled(true);
        mWebview.loadUrl("http://192.168.56.1.5555/Data/content_main.xml/");
        if(Build.VERSION.SDK_INT>=19)
        {
            mWebview.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
        }



In the above code ,inside url what should my port number, actually am only using android studio ,can i do the connection?

What I have tried:

connection with my mobile using portable hotspot , i want to be my cell as emulator
Posted
Comments
Richard MacCutchan 22-Feb-16 4:35am    
You cannot; Android Studio needs the device connected directly to the PC.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900