我正在尝试加载存储在分析中的图像;使用本教程中的代码:在我的布局从分析/ Android中获取图像
mProfileImage = mCurrentUser.getParseFile("ProfilePhoto");
mProfilePhoto = (ParseImageView) findViewById(R.id.meal_preview_image);
mProfilePhoto.setParseFile(mProfileImage);
mProfilePhoto.loadInBackground(new GetDataCallback() {
@Override
public void done(byte[] data, ParseException e) {
mProfilePhoto.setVisibility(View.VISIBLE);
}
});
我有这样的:https://parse.com/tutorials/mealspotting我写了这个代码
<com.parse.ParseImageView
android:id="@+id/meal_preview_image"
android:layout_width="wrap_content"
android:layout_height="200dp" />
我用这protected ParseImageView mProfilePhoto;
,一个ParseImageView。当我运行应用程序时,图像不会出现。
检查,如果这是在AndroidMenifest加入<使用的许可机器人:名称= “android.permission.INTERNET对”/> <使用的许可机器人:名称= “android.permission.ACCESS_NETWORK_STATE”/> –