import com.example.testQRCode.*; //<--external project
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// create a new intent based on your library activity
Intent myIntent = new Intent(this, QRCode.class); // QRCode is a class from the external projects
startActivityForResult(myIntent, 0);
}
异常显示系统无法实例化活动。
请帮我。