我找到了xiaomi,honor和letv的代码,但我想为联想做同样的事情
if(Build.BRAND.equalsIgnoreCase("xiaomi") ){
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity"));
startActivity(intent);
}else if(Build.BRAND.equalsIgnoreCase("Letv")){
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.letv.android.letvsafe", "com.letv.android.letvsafe.AutobootManageActivity"));
startActivity(intent);
}
else if(Build.BRAND.equalsIgnoreCase("Honor")){
Intent intent = new Intent();
intent.setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.process.ProtectActivity"));
startActivity(intent);
}
Run Code Online (Sandbox Code Playgroud) 我玩视频从URL
上Exoplayer
,它伸展在调整视频/使用resize_mode
,因为我已经在布局文件中使用此提到的我不能够保持视频的纵横比.
我想像CENTER_CROP
我们TextureSurface
在image2中提到的那样进行缩放类型,但我得到输出为image1
我试过以下例子
我的输出(图1)和预期输出(图2)
exoplayer布局代码
<com.google.android.exoplayer2.ui.SimpleExoPlayerView
android:id="@+id/player_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:resize_mode="fill" />
Run Code Online (Sandbox Code Playgroud)
使用这条线,app:resize_mode="fill"
它可以在屏幕上显示视频但是垂直拉伸,那么我该如何解决这个问题.
我已react-native-fingerprint-scanner
在我的应用程序中实现的正常工作Touch Id
。
现在,我想为两个平台的Touch ID,Face ID和密码进行身份验证
是否可以检查您的设备是否分别要求支持lock pattern
?
我也尝试过使用react-native-touch-id
但它对我不起作用Face Id
有什么方法可以在两个平台(iOS / android)上实现这一目标吗?
参考:链接
如何打开设备email
以发送email
关于 android 的新更新?它显示了支持text/message/html/plain
以下代码的应用程序列表?
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_EMAIL, new String[]{context.getString("email_to")});
intent.putExtra(Intent.EXTRA_SUBJECT, context.getString("email_subject"));
context.startActivity(Intent.createChooser(intent, context.getString("email_body")));
Run Code Online (Sandbox Code Playgroud) android ×2
aspect-ratio ×1
autostart ×1
email ×1
exoplayer ×1
face-id ×1
passcode ×1
react-native ×1
touch-id ×1