android no such file or directorypublic void onClickShowMap(View view) {\x05\x05Intent intent = new Intent(\x05\x05\x05\x05android.content.Intent.ACTION_VIEW,\x05\x05\x05\x05Uri.parse("geo:0,q=1600+Amphitheatre+Parkway,+Mountain+View,+California

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 16:51:23

android no such file or directorypublic void onClickShowMap(View view) {\x05\x05Intent intent = new Intent(\x05\x05\x05\x05android.content.Intent.ACTION_VIEW,\x05\x05\x05\x05Uri.parse("geo:0,q=1600+Amphitheatre+Parkway,+Mountain+View,+California
android no such file or directory
public void onClickShowMap(View view) {
\x05\x05Intent intent = new Intent(
\x05\x05\x05\x05android.content.Intent.ACTION_VIEW,
\x05\x05\x05\x05Uri.parse("geo:0,q=1600+Amphitheatre+Parkway,+Mountain+View,+California"));
\x05\x05startActivity(intent);
\x05}
想调用安卓的地图,照着教程上输入这段代码结果报错,错误如下
[2014-02-27 00:28:56 - Intents] ActivityManager:Starting:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=net.learn2develop.intents/.IntentsActivity }
[2014-02-27 00:28:56 - Intents] ActivityManager:Error type 3
[2014-02-27 00:28:56 - Intents] ActivityManager:Error:Activity class {net.learn2develop.intents/net.learn2develop.intents.IntentsActivity} does not exist.
在logcat上有这段东西


/>

android no such file or directorypublic void onClickShowMap(View view) {\x05\x05Intent intent = new Intent(\x05\x05\x05\x05android.content.Intent.ACTION_VIEW,\x05\x05\x05\x05Uri.parse("geo:0,q=1600+Amphitheatre+Parkway,+Mountain+View,+California
看到这个error ,我觉得你应该很明显了,因为你反问的文件不存在,请确认你访问的路径对不对,或者你有没有将对应的文件放进去.