Skip to content

Instantly share code, notes, and snippets.

View jingle1267's full-sized avatar
🏋️‍♀️
Focusing

Jin jingle1267

🏋️‍♀️
Focusing
View GitHub Profile
if (userList != null && userList.size() > 0) {
ConnectedSqliteHelper.instance(mContext).insertSnsUserInfos(userList);
ArrayList<PathAssignedModel> pathAssignedModels = new ArrayList<PathAssignedModel>();
PathAssignedModel model = null;
for (int q = 0; q < userList.size(); q++) {
model = new PathAssignedModel();
model.addUid(userList.get(q).userId);
pathAssignedModels.add(model);
}
// if(!TextUtils.isEmpty(msgByS.chatId)) {
session = new SessionRSModel();
session.chatId = msgByS.chatId;
session.meId = msg.meId;
session.sessionId = FunctionUtil.createSessionId(
msgByS.chatType, msg.meId, msgByS.chatId,
msg.sender);
session.sessionId = FunctionUtil.MD5(System.currentTimeMillis()+"");
session.type = msgByS.chatType;
session.stick = UtilsConstants.SESSION_N_STICK;
if ("u:1234567890".equals(msg.sender)) {
// One of the simplest ways to display an animated gif is to use a third-party library.
// https://github.com/Hipmob/gifanimateddrawable
// MainActivity.java
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Find the ImageView to display the GIF
ImageView ivGif = (ImageView) findViewById(R.id.ivGif);