0

를이 이미지 경로와 관련이있다 느낌이 표시되지 않습니다. 나는 블랙 베리 개발이 처음이다.블랙 베리 앱 - 비트 맵 이미지가 나는 이미지를 감지 밤은 것으로,

응용 프로그램이 실행되지만 이미지 나던 쇼. 어쩌면 이미지가 정확하게 위치하지 않습니까? 이미지가 고해상도 폴더에있는 경우

public final class Welcome extends MainScreen 
{ 
    /** 
    * Creates a new Welcome object 
    */ 
    public Welcome() 
    {   
     // Set the displayed title of the screen  
     setTitle("Select a brand"); 

     Bitmap bitmapImage = Bitmap.getBitmapResource("/BrowserBlackberry/res/img/Celsian.jpg"); 
     BitmapField fieldDemo = new BitmapField(bitmapImage);  
     fieldDemo.setBorder(150,getBorder(20)); 
     fieldDemo.getBackground(Background.POSITION_X_CENTER); 

     add(fieldDemo); 
    } 
} 
+0

을 시도; – Signare

+0

고마워요. – user2708073

답변

2

("Celsian.jpg")를 다음 -bitmap bitmapImage = Bitmap.getBitmapResource로 이미지를 추가,이

public Welcome() 
{   
    // Set the displayed title of the screen  
    setTitle("Select a brand"); 

    Bitmap bitmapImage = Bitmap.getBitmapResource("Celsian.jpg"); 
    BitmapField fieldDemo = new BitmapField(bitmapImage);  
    add(fieldDemo); 

}