English 中文(简体)
在安伯/康乐移动应用中获取全权证书
原标题:Saving Credentials in Android / jQuery Mobile App

我们在安仁的网上浏览控制下,重新包装了一辆 j车。 j Query 移动器具有一个标识页。 我们愿让用户节省其标识。

陷阱是,客户宁愿不使用厨师这样做。

<>Solution/Problem #1:

我们设想可能建立一个称作认证服务的安乐木板,并储存一个标志。 于是,通过圆形财产的质询,将标号输入网上。 然后, j鱼移动器能够从电梯中挖出,并验证,从而可以绕过移动式扫描仪。

The problem with that, however, is... what happens when the user logs out via the jQuery mobile app? How can the mobile app tell the Android wrapper to delete the token?

Solution #2, but same problem

萨米·安德罗登屏幕,但不通过电梯灯,而是在安的一侧使用javascript,在网上浏览DOM,在 jQuery移动标识屏幕上填写用户名和密码。 如果在启用信标时在安的一侧存在这种信号,那么就绕过了安的标识,自动填写用户证书。

这一问题依然存在,但用户人工砍伐的情况也是如此。

我们是否根本不考虑这样做?

Ideas?

最佳回答

你们可以使用你们的网站。 您将不得不在网上浏览中利用网络电话:

WebSettings settings = webview.getSettings();
settings.setDomStorageEnabled(true);

现在你们应该能够进入当地。 2. 与其他支持储存的浏览器一样用javascript进行储存:

window.localStorage
// Set value
window.localStorage.setItem("username", "XXX");
// getting the value
var username = window.localStorage.getItem("username");

Alternative 2: Create a javascript interface to your applications. This will let you create and call a javascript function that triggers java code in your Android application. This topic is described here: http://developer.android.com/guide/webapps/webview.html under "Binding JavaScript code to Android code"

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签