2016-07-11 4 views
-1
arbeiten

Dies ist mein CodeAndroid picasso nicht

Picasso.with(getActivity()) 
        .load("https://dev.tfic.aviation.go.th/timthumb/?src=%2Fcontents%2Ftravel%2Fkrabi%2F190556-travel-02-03-mayha.jpg&w=684&h=342") 
        .placeholder(R.mipmap.placeholder) 
        .error(R.mipmap.placeholder)      
        .into(img); 
+0

haben Sie die Internet-Erlaubnis im Manifest hinzufügen? – Blackbelt

+0

überprüfen Sie Ihre Internet-Erlaubnis in manifest.xml –

+0

sind Ihre gründliche kommerzielle WIFI verbunden? –

Antwort

0

prüfen diese.

AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET"/> 

in Java,

Picasso.with(this) 
.load("YOUR IMAGE URL HERE") 
.placeholder(Your Drawable Resource) //this is optional the image to display while the url image is downloading 
.error(Your Drawable Resource)   //this is also optional if some error has occurred in downloading the image this image would be displayed 
.into(imageView); 

Dies kann helfen Sie