Android应用程序中有最大活动吗?我想知道,因为我正在考虑创建具有铃声功能的声音应用程序.它将有大约40个活动.但只有1个将持续运行.太多了吗?我应该找另一种方式吗?
解释为什么我需要40个活动我有30个声音,我想将它们设置为铃声.1个正常活动,按钮可播放Mp和其他内容,还有35个其他活动,每个文件1个.我想要的是长按开始活动与布局,我会尝试使用上下文菜单,但它看起来不太好.
为什么我收到此错误?令牌"/"上的语法错误,此令牌后预期的表达式.
InputStream in = getResources().openRawResource(R.raw.msgn);
FileOutputStream out = new FileOutputStream(media/audio/notifications/); // Error is in this line
byte[] buff = new byte[1024];
int read = 0;
try {
while ((read = in.read(buff)) > 0) {
out.write(buff, 0, read);
}
} finally {
in.close();
out.close();
Run Code Online (Sandbox Code Playgroud)