简体   繁体   English

在我的应用程序中打开网站时出现问题

[英]Problem with opening a website inside my app


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. 过去几周,我一直在使用 Android Studio 为我的 Uni 开发一个应用程序,其中我的 Uni 需要的所有网站都放在一个应用程序中,我不必在浏览器上搜索每个网站。
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. 经过几次测试,我得出结论,最好的解决方案是在我的应用程序中打开/使用网站,而不是打开浏览器来查看我的电子邮件。
I found a way to open the websites inside my app but when it comes to "signing in" it finally uses a browser. 我找到了一种在我的应用程序中打开网站的方法,但是当涉及到“登录”时,它最终使用了浏览器。
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. 我对程序或 Java 不太熟悉,所以我想打开一个线程,以防你们中的任何人可以帮助我解决我的问题。

The function that I am curently using to open the website is:我目前用来打开网站的 function 是:

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

FYI: eclassURL is the URL I am trying to open at case eclass.仅供参考:eclassURL 是 URL 我试图在案例 eclass 中打开。

PS1: This is my first thread, if anything else is needed, please don't hesitate to comment for more. PS1:这是我的第一个帖子,如果还有什么需要,请不要犹豫,评论更多。
PS2: English is not my native language, so excuse my mistakes. PS2:英语不是我的母语,请原谅我的错误。 :) :)

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

Use Chrome Custom Tabs for this.为此,请使用 Chrome 自定义标签。 You can find details about in this link .您可以在此链接中找到有关的详细信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM