watermarkCamera for android which compat 6.0+
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
然后添加到你的项目依赖中
dependencies {
implementation 'com.github.jackyHuangH:WatermarkCameraLib:0.0.1'
}
Intent intent = new Intent(Activity from, WatermarkCameraActivity.class);
startActivityForResult(intent, WatermarkCameraActivity.REQUEST_WATERMARK_CAMERA);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
switch (requestCode) {
case WatermarkCameraActivity.REQUEST_WATERMARK_CAMERA:
if (null!=data) {
String data1 = data.getStringExtra(WatermarkCameraActivity.WATERMARK_CAMERA_EXTRA_RESULT);
//do something...
}
break;
}
}
}
兼容6.0+机型,欢迎star,欢迎提issue