打开另一个包中的Activity

 ComponentName componentName=new   ComponentName("xx.yy.zz","xx.yy.zz.xxActivity");   
                Intent intent=new Intent();   
                intent.setComponent(componentName);   
                intent.setAction(Intent.ACTION_VIEW);   
                startActivity(intent); 

猜你喜欢

转载自free0coding.iteye.com/blog/1687665