Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
ShuDaoPathWeb
Commits
d982a8d3
Commit
d982a8d3
authored
Jun 06, 2025
by
p x
Browse files
好
parent
5e1b379f
Changes
1
Show whitespace changes
Inline
Side-by-side
app/src/main/java/com/sd/shupathwebview/MainActivity.kt
View file @
d982a8d3
...
@@ -53,9 +53,9 @@ class MainActivity : AppCompatActivity() {
...
@@ -53,9 +53,9 @@ class MainActivity : AppCompatActivity() {
super
.
onCreate
(
savedInstanceState
)
super
.
onCreate
(
savedInstanceState
)
// enableEdgeToEdge()
// enableEdgeToEdge()
binding
=
ActivityMainBinding
.
inflate
(
layoutInflater
)
binding
=
ActivityMainBinding
.
inflate
(
layoutInflater
)
//
AMapLocationClient.updatePrivacyShow(this,true,true)
AMapLocationClient
.
updatePrivacyShow
(
this
,
true
,
true
)
//
AMapLocationClient.updatePrivacyAgree(this,true)
AMapLocationClient
.
updatePrivacyAgree
(
this
,
true
)
//
aMapLoc.initLocation()
aMapLoc
.
initLocation
()
CustomLog
.
clearLog
()
CustomLog
.
clearLog
()
setContentView
(
binding
.
root
)
setContentView
(
binding
.
root
)
requestPers
()
requestPers
()
...
@@ -168,8 +168,8 @@ class MainActivity : AppCompatActivity() {
...
@@ -168,8 +168,8 @@ class MainActivity : AppCompatActivity() {
// val url = "file:///android_asset/dist/index.html"
// val url = "file:///android_asset/dist/index.html"
// val url = "www.baidu.com"
// val url = "www.baidu.com"
// val url = "http://82.156.182.48:8088/3dmap/"
// val url = "http://82.156.182.48:8088/3dmap/"
//
val url = "https://10.149.230.104:19443/shudao-navigation3d-app/index"
val
url
=
"https://10.149.230.104:19443/shudao-navigation3d-app/index"
val
url
=
"https://172.29.128.38:13443/shudao-navigation3d-app/index"
//
val url = "https://172.29.128.38:13443/shudao-navigation3d-app/index"
binding
.
dwebview
.
loadUrl
(
url
)
binding
.
dwebview
.
loadUrl
(
url
)
binding
.
dwebview
.
webViewClient
=
object
:
WebViewClient
()
{
binding
.
dwebview
.
webViewClient
=
object
:
WebViewClient
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment