我从BlackBerry模拟器为9630连接到Web服务器,以获取图像并将其显示在屏幕上。从BlackBerry连接到webservice
但是,当在8520和9700模拟器中测试这个相同的应用程序时,它不起作用。我认为它没有连接到Web服务。
我需要能够从所有模拟器连接到Web服务。
String filepath="file:///store/home/user/loan1.jpg";
FileConnection fc = (FileConnection)Connector.open(filepath,Connector.READ_WRITE);
String photoXml=
"<MortgageGetPhoto><LoanOfficerID>82</LoanOfficerID></MortgageGetPhoto>";
byte[] imgArry=
Base64InputStream.decode(new DataParsingComm().ILGetImage(photoXml));
EncodedImage image = EncodedImage.createEncodedImage(imgArry,0,imgArry.length);
BitmapField bitf=new BitmapField() {
public void layout(int width, int height) {
super.layout(100, 100);
}
};
bitf.setImage(image);
HorizontalFieldManager bfm = new HorizontalFieldManager(FIELD_HCENTER);
bfm.add(bitf);
add(bfm);
你不需要用“我是黑莓新手”来开始每一个问题 – 2010-11-04 16:00:15
真的我是blackberry的新手。所以我使用新的黑莓为每个问题 – MaheshBabu 2010-11-09 11:37:36