我正在尝试显示来自net..and的图像,我正在使用RemoteImageView的点火库。这是代码..
public class images extends Activity{
public String a,b,c,d;
public java.lang.String url;
RemoteImageView iv;
Bitmap bitmap;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
a= getIntent().getExtras().getString("s1");
b = getIntent().getExtras().getString("s2");
c = getIntent().getExtras().getString("s3");
d = getIntent().getExtras().getString("s4");
setContentView(R.layout.ignition);
iv=(RemoteImageView)findViewById(R.id.image1);
}
public void p(View v) throws MalformedURLException{
String u="http://www.infrabazaar.com/"+a;//<--------(1)
iv.setImageUrl(u);
iv.loadImage();
}}图像应该基于从上一个类发送的信息来显示...如果我给出一个完整的图像链接,如"http://www.infrabazaar.com/machinary-client-images/1315201358_0.JPG"..。我能够在屏幕上显示该图像..但是当我像第(1)行那样传递链接时,它显示出厂返回null message...can任何人告诉我什么可以解决这个问题?“
发布于 2012-02-10 12:37:59
这个RemoteImageView解决了很多“工厂返回null”的问题……现在我很少遇到这样的错误...但是,一旦我加载了其他图像,然后尝试重新加载我得到错误的图像,它将正确加载。
https://stackoverflow.com/questions/9188002
复制相似问题