一:先新建一个包 右键src,新建包; 二:包中新建类 右建包,新建类,将超类改为andorid.app.Activity 转载于:https://www.cnblogs.com/freesblog/p/4204315.html