2012-06-14 80 views

回答

0

你需要下載圖片。

創建一個將檢索位圖的函數。

此如下所示:Click here

0

我也是新的android開發,但我這樣做,我的學習應用程序之一。如果它的網址,然後您執行以下操作:

   Drawable picture; 
         try { 
        URL picurl = new URL("some URL"); 
        InputStream content = (InputStream)picurl.getContent(); 
        picture = Drawable.createFromStream(content , "src"); 
       } 
       catch(Exception e){ 
          //handle the Exception 
         } 
相關問題