Android Question Not connecting to local machine using webview

warayTek

Member
Licensed User
I'm trying to connect with this ip address "192.168.1.7:1880/ui" with this code
wv1.LoadUrl("192.168.1.7:1880/ui")
But does not work for me. When using google chrome works fine.
 

warayTek

Member
Licensed User
Thank you for the quick reply..but another problem I'm facing.
B4X:
** Activity (main) Resume **
PackageAdded: package:b4a.example
** Activity (main) Pause, UserClosed = false **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Url
You are using the ngTouch module.
AngularJS Material already has mobile click, tap, and swipe support...
ngTouch is not supported with AngularJS Material! in http://192.168.1.7:1880/ui/js/app.min.js (Line: 148)
Rendered http://192.168.1.7:1880/ui/css/app.min.less successfully. in http://192.168.1.7:1880/ui/js/app.min.js (Line: 532)
CSS for http://192.168.1.7:1880/ui/css/app.min.less generated in 2911ms in http://192.168.1.7:1880/ui/js/app.min.js (Line: 532)
Less has finished. CSS generated in 2912ms in http://192.168.1.7:1880/ui/js/app.min.js (Line: 532)
SideNav 'left' is not available! Did you use md-component-id='left'? in http://192.168.1.7:1880/ui/js/app.min.js (Line: 148)
SideNav 'left' is not available! Did you use md-component-id='left'? in http://192.168.1.7:1880/ui/js/app.min.js (Line: 148)
TypeError: Cannot call method 'getItem' of null in http://192.168.1.7:1880/ui/js/app.min.js (Line: 148)
TypeError: Cannot call method 'getItem' of null in http://192.168.1.7:1880/ui/js/app.min.js (Line: 148)
Rendered http://192.168.1.7:1880/ui/css/app.min.less successfully. in http://192.168.1.7:1880/ui/js/app.min.js (Line: 532)
CSS for http://192.168.1.7:1880/ui/css/app.min.less generated in 686ms in http://192.168.1.7:1880/ui/js/app.min.js (Line: 532)
Less has finished. CSS generated in 687ms in http://192.168.1.7:1880/ui/js/app.min.js (Line: 532)
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
Try adding the chrome client to webview as described in tip #1 in my below signature.
 
Upvote 0
Top