我使用这个代码已经有几年了,它工作得很好: final Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);sharingIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
sharingIntent.setType("audio/mpeg"声音可以直接在WhatsApp中播放(而不是通用文件),并使用I
我很难说服新的Android构建系统运行测试。当运行测试时,它给出了Unable to resolve activity for: Intent错误,这在其他问题中已经讨论过了,但是没有任何东西可以修复我的问题。我的测试活动:import android.os.Bundle;
at android.test.AndroidTestRunner.runTe