Comments (2)
是权限问题,自行修改吧;作者太懒,被项目弄的头大了; 体验Demo可用低版本手机
from animricheditor.
我加上了授权的方法 不过还得特意谢谢楼主的项目很实用
// android 6.0 以上版本,监听SDK权限请求,弹出对应请求框。
if (Build.VERSION.SDK_INT >= 23) {
RongIM.getInstance().setRequestPermissionListener(new RongIM.RequestPermissionsListener() {
@Override
public void onPermissionRequest(String[] permissions, final int requestCode) {
for (final String permission : permissions) {
if (shouldShowRequestPermissionRationale(permission)) {
requestPermissions(new String[] {permission}, requestCode);
} else {
int isPermissionGranted = checkSelfPermission(permission);
if (isPermissionGranted != PackageManager.PERMISSION_GRANTED) {
new AlertDialog.Builder(ConversationActivity.this)
.setMessage("你需要在设置里打开以下权限:" + permission)
.setPositiveButton("确认", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
requestPermissions(new String[] {permission}, requestCode);
}
})
.setNegativeButton("取消", null)
.create().show();
}
return;
}
}
}
});
}
from animricheditor.
Related Issues (14)
- 怎么生成可提交的字符啊 HOT 1
- Open Image after inserting it HOT 1
- 大神,必须最低版本安卓5.0 么 HOT 1
- How to upload data to server? HOT 1
- Can't import
- Publish the demo APK on Google Play HOT 2
- Licence is missing HOT 1
- OutOfMemoryError HOT 5
- 怎么样把服务器拿下来的数据显示到editor里面? HOT 2
- add video? HOT 2
- 请问保存后怎么编辑呢? HOT 2
- how to export html HOT 1
- 怎样才能得到输入的所有内容并转化为html类型的文本 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animricheditor.