通过增加扩展字段,修改环信头像和昵称
zcbin88 / huanxindemo Goto Github PK
View Code? Open in Web Editor NEW通过增加扩展字段,修改环信头像和昵称。召唤小伙伴一起维护这个demo,麻烦有意愿的小伙伴联系我Q1246513315
通过增加扩展字段,修改环信头像和昵称。召唤小伙伴一起维护这个demo,麻烦有意愿的小伙伴联系我Q1246513315
我使用这个Demo 能够实现头像和昵称 但是才会话记录列表出现一个问题 就是 当APP重新启动后 会话记录列表获取的头像和昵称就只有第一个人的了,后面的人的头像和昵称都没办法显示。但是如果一直不退出APP的话 又能显示正常 希望您指点一下 我对数据库不熟悉。我也是第一次接触环信 很多还不熟悉
FATAL EXCEPTION: main
Process: com.art.activity:mult, PID: 22083
java.lang.RuntimeException: Unable to create application com.art.application.MainApplication: java.lang.NullPointerException: Attempt to invoke interface method 'void java.util.concurrent.ExecutorService.execute(java.lang.Runnable)' on a null object reference
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5092)
at android.app.ActivityThread.access$1600(ActivityThread.java:186)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:200)
at android.app.ActivityThread.main(ActivityThread.java:5877)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:987)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void java.util.concurrent.ExecutorService.execute(java.lang.Runnable)' on a null object reference
at com.hyphenate.chat.EMClient.execute(Unknown Source)
at com.hyphenate.chat.EMClient.addConnectionListener(Unknown Source)
at com.art.application.MainApplication.setGlobalListeners(MainApplication.java:231)
at com.art.application.MainApplication.initHuanXin(MainApplication.java:174)
at com.art.application.MainApplication.onCreate(MainApplication.java:167)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5084)
at android.app.ActivityThread.access$1600(ActivityThread.java:186)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1644)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:200)
at android.app.ActivityThread.main(ActivityThread.java:5877)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:987)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
application 里注册连接监听时一直报空指针异常,application 代码完全拷贝你项目里的代码,不知道什么原因
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.