我是黑莓新手。我想如何在浏览器字段中进行身份验证
BrowserField web;
String Usname="yahoo@yahoo.com";
String password="123456788";
setTitle("sample");
String Welcome ="example@example.com/isloginmethod.aspx";
String logindata ="LoginID="+Usname+"&Password="+password;
byte[] encodeLogin =Base64OutputStream.encode(logindata.getBytes(),0,logindata.length(), false, false);
BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();
myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER);
web = new BrowserField(myBrowserFieldConfig);
add(web);
web.requestContent(Welcome,encodeLogin,null);