打开我的应用内网站时出现问题。

huangapple go评论57阅读模式
英文:

Problem with opening a website inside my app

问题

在过去的几周里,我一直在使用Android Studio开发一款适用于我的大学的应用程序。在这个应用程序中,我将我的大学需要的所有网站都整合在一个应用中,这样我就不必在浏览器中单独搜索每个网站了。

经过一些测试,我得出结论,最好的解决方案是在我的应用程序内部打开/使用网站,而不是打开浏览器来查看我的电子邮件,例如。

我找到了一种方法来在我的应用程序内部打开这些网站,但是当涉及到“登录”时,它最终会使用浏览器。

我对这个程序或Java不是很熟悉,所以我想在这里开一个帖子,以防有人能帮助我解决我的问题。

我目前正在使用的打开网站的函数是:

WebView webview = new WebView(this);
setContentView(webview);
webview.loadUrl(eclassURL);

PS1:这是我的第一个帖子,如果需要其他任何信息,请随时评论提问。
PS2:英语不是我的母语,所以请原谅我的错误。 打开我的应用内网站时出现问题。

英文:

<br/>
The last weeks I've been using Android Studio to develop an app for my Uni, in which I have all the websites that my Uni requires together in an app and i don't have to search every single one on a browser.<br/>
After a few tests, I came to the conclusion that the best solution is to open/use the website inside my app, instead of opening a browser to check my e-mails for example.<br/>
I found a way to open the websites inside my app but when it comes to "signing in" it finally uses a browser.<br/>
I am not that familiar with the program or Java so I thought of opening a thread in case anyone of you can help me solve my problem.<br/>

The function that I am curently using to open the website is :

    WebView webview = new WebView(this);
    setContentView(webview);
    webview.loadUrl(eclassURL);

FYI: eclassURL is the URL I am trying to open at case eclass.

PS1: This is my first thread, if anything else is needed, please don't hesitate to comment for more.<br/>
PS2: English is not my native language, so excuse my mistakes. 打开我的应用内网站时出现问题。

int main(void) {
printf(&quot;Thank you for your help!\n&quot;);
return 0;
}

答案1

得分: 0

使用Chrome自定义选项卡进行此操作。您可以在此链接中找到详细信息。

英文:

Use Chrome Custom Tabs for this. You can find details about in this link.

huangapple
  • 本文由 发表于 2020年8月7日 23:47:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/63305166.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定