Java Code Examples for com.avos.avoscloud.AVFile#getUrl()
The following examples show how to use
com.avos.avoscloud.AVFile#getUrl() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HomeActivity.java From PlayTogether with Apache License 2.0 | 5 votes |
private void loadData() { AVFile avatar = AVUser.getCurrentUser(User.class).getAvatar(); if (avatar != null) { avatar.getThumbnailUrl(false, 100, 100); String url = avatar.getUrl(); PicassoUtils.displayFitImage(this, Uri.parse(url), mIvAvatar, null); } mSwipeRefreshLayout.setRefreshing(true); List<Invitation> datas = new ArrayList<>(); mRvInvitation.setAdapter(mRvInvitationAdapter = new HomeInvitationItemAdapter(this, datas)); mController.getNewlyInvitationDatas(); }
Example 2
Source File: QiniuUtil.java From mr-mantou-android with GNU General Public License v3.0 | 5 votes |
public static String getUrl(AVFile file, int width) { if (AVOSCloud.getStorageType() == AVOSCloud.StorageType.StorageTypeQiniu) { return getUrl(file.getUrl(), width); } else { return file.getUrl(); } }
Example 3
Source File: MySpaceFragment.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }
Example 4
Source File: MeetActivityAdapter.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }
Example 5
Source File: ChatMsgAdapter.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }
Example 6
Source File: NewFriendAdapter.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }
Example 7
Source File: MeetAdapter.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }
Example 8
Source File: UserFriendAdapter.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }
Example 9
Source File: MsgBuilder.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public void upload() throws IOException, AVException { if (msg.getType() != Msg.Type.Audio && msg.getType() != Msg.Type.Image) { return; } String objectId = msg.getObjectId(); if (objectId == null) { throw new NullPointerException("objectId mustn't be null"); } String filePath = PathUtils.getChatFilePath(objectId); AVFile file = AVFile.withAbsoluteLocalPath(objectId, filePath); file.save(); String url = file.getUrl(); msg.setContent(url); }
Example 10
Source File: PersonInfoActivity.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }
Example 11
Source File: MeetActivity.java From LoveTalkClient with Apache License 2.0 | 5 votes |
public String getAvatarUrl(AVUser user) { AVFile avatar = user.getAVFile("avatar"); if (avatar != null) { return avatar.getUrl(); } else { return null; } }