最近开始学习android开发,看高焕堂的《应用框架原理与程序设计36技巧》一书,在4.12 节中一个Activity 启动另一个Activity的例子中,代码跑不过去,调试了一下,出现这样的错误:
The emulator gave the generic "the application has stopped unexpectedly" error, but using the debugger, it showed a "android.content.ActivityNotFoundException: Unable to find explicit activity class {class name} have you declared this activity in your AndroidManifest.xml
打开android sdk开发文档,发现还需要一个步骤,需要在androidmanifest.xml中 将rgActivity作为一个application的节点添加上去。
在此写下,为看高焕堂《应用框架原理与程序设计36技巧》一书的朋友提个醒。