Kenyth
V2EX  ›  Android

Android 下的 webapp 想要开机系统设置中的 GPS 功能,是否能够 pop up 对话框把用户直接引导到 GPS 相关的设置界面,像很多本地 app 做的那样?

  •  
  •   Kenyth · Apr 16, 2011 · 17547 views
    This topic created in 5679 days ago, the information mentioned may be changed or developed.
    8 replies  •  1970-01-01 08:00:00 +08:00
    shellex
    shellex
    Apr 16, 2011
    1
    WebApp? 哪个框架?不大清楚呢
    Kenyth
    Kenyth
    OP
    Apr 16, 2011
    2
    跟哪个框架没有关系啊。

    就是跑在自带的支持 HTML5 的浏览器中的一般 web 应用。
    sospartan
    sospartan
    Apr 16, 2011
    3
    app可以 webapp这么做倒是没听说过
    shellex
    shellex
    Apr 16, 2011
    4
    @Kenyth o .. 我以为妳指是PhoneGap这种东西..
    fengqve
    fengqve
    Apr 16, 2011
    5
    只要有Native的部分应该就可以做到。
    Kenyth
    Kenyth
    OP
    Apr 17, 2011
    6
    恩。所以,总结答案就是纯 webapp 是做不到的。
    peizh2006
    peizh2006
    Apr 22, 2011
    7
    用phonegap之类的包装成一个应用得了
    findheart
    findheart
    Apr 26, 2011
    8
    用webview做的话,可以通过addJavascriptInterface把本地Java函数作为JavaScript对象传给HTML。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5480 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 01:54 · PVG 09:54 · LAX 17:54 · JFK 20:54
    ♥ Do have faith in what you're doing.