Android的 - 的OAuth应用与popupWindow [英] Android - OAuth app with popupWindow
问题描述
我试图让一个应用程序与我的网站登录。服务器端登录的东西做,所以现在我只是为它创造的应用程序。
该计划是有一个登录按钮。当登录按钮是pressed,一个 popupWindow
被调用,布局设置为 web视图
指向我的网址。我有这部分工作。在 popupWindow
出现,我可以看到我的登录框,所以连接是存在的。
I'm trying to make an app with a login for my site. The server side login stuff is done, so now I'm just creating the app for it.
The plan is to have a login button. When the login button is pressed, a popupWindow
is invoked and the layout is set to a webView
pointing to my URL. I have this part working. The popupWindow
appears, and I can see my login box, so the connection is there.
但是,屏幕变得无法响应。如果我上的用户名外地单击尝试一些文字录入,没有任何反应。背面按钮也行不通。我不得不preSS home键得到它。
However, the screen becomes unresponsive. If I click on the username field to try some text entry, nothing happens. The back button also doesnt work. I have to press the home button to get out of it.
另外,我有code其中加载内置的浏览器,而且很明显,我可以登录和完美的作品,但它永远不会回到我的应用程序,因此为什么我选择了 popupWindow
。
Also, I have code where it loads the built in browser, and obviously I can login and that works perfect, but it never returns to my app, hence why I've opted for the popupWindow
.
有人可以分享如何做到这一点正确,或链接我一些样本code一些建议吗?基本上任何code以 popupWindow
被用来登录到网站将是完美的!
Can someone share some tips for how to do this properly, or link me to some sample code? Basically any code with a popupWindow
being used to login to a website would be perfect!
感谢。
推荐答案
的的OAuth和休息的Android ,漂亮的指南与意图创建OAuth的请求。
OAuth and REST in Android, nice guide for creating OAuth requests with intents.
这篇关于Android的 - 的OAuth应用与popupWindow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!