Friday 15 May 2015

java - ParseImageView on Android not displaying image -



java - ParseImageView on Android not displaying image -

i having unusual problem parseimageview. have parseimageview defined in layout:

<com.parse.parseimageview android:id="@+id/view1_imageview" android:layout_width="match_parent" android:layout_height="match_parent" />

and calling method:

imageview = (parseimageview) rootview.findviewbyid(r.id.view1_imageview);

to initialize imageview.

but when call:

pff = (parsefile) object.get("favimg"); log.d("parsefile",pff.tostring()); imageview.setparsefile(pff);

the image view not set. have confirmed parsefile pff set. pointers appreciated. thanks!

you need utilize loadinbackground() fetch file:

imageview.loadinbackground(new getdatacallback() { @override public void done(byte[] data, parseexception e) { // nil if (e != null) e.printstacktrace(); } });

java android web-services parse.com imageview

No comments:

Post a Comment