我正在尝试使用我的应用程序通过蓝牙发送文件。我已经将 mime 类型更改为随机的 asdxasd/asdxa 并且该文件有一个我需要使用的扩展名,即 .sso
当我使用共享意图时,它只显示蓝牙和 gmail 选项,但我不能从列表中删除 gmail 选项吗?
提前非常感谢!我正在使用此代码使用意图发送它:
file = new FileSystem(this).saveTemp();
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri screenshotUri = Uri.fromFile(file);
sharingIntent.setType("test/onlineconfig");
sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);
startActivity(Intent.createChooser(sharingIntent, "Share Config Using"));