我想整合TwitterAPIME到我的Blackberry项目中.我有3个Jar文件TwitterAPIME.我不知道如何将这3个Jar文件链接到我的项目.
我的基本疑虑是
什么是外部罐子?什么是图书馆?
添加jar,添加外部jar或添加库有什么区别?
我不理解final变量的概念.在一个for循环中,我有动态变量i,这对我来说引用数组至关重要.一旦我使用i它,它会引发一个错误,说它应该是final.
到底是final什么?你能帮忙摆脱那个错误吗?
我的代码在这里:
for( int i = 0; i <4; i++)
{
Bitmap celeb1=Bitmap.getBitmapResource(fimagearray[i]);
Bitmap celeb1_focus=Bitmap.getBitmapResource(fimagearray[i]);
ImageButton celebbutton = new ImageButton(celeb1, celeb1_focus);
celebbutton.setChangeListener(new FieldChangeListener() {
public void fieldChanged(Field field, int context)
{
UiApplication.getUiApplication().pushScreen(new FetchTweets(fusernamearray[i]));
}
});
femaleSec.add(celebbutton);
}
Run Code Online (Sandbox Code Playgroud)