I'm trying to launch from my app (app1) another app created with Titanium (app2) and installed on the device. Unfortunately I just can see only the splash screen of app2, but app1 still remain on the screen. This is my code:
try { var intent = Ti.Android.createIntent({ action: Ti.Android.ACTION_MAIN, className: 'it.alessandrolarocca.app2.App2Activity', packageName: 'it.alessandrolarocca.app2' }); intent.addCategory(Ti.Android.CATEGORY_LAUNCHER); Ti.Android.currentActivity.startActivity(intent); } catch (error) { alert(error.message); }It works with:
className: 'com.android.calculator2.Calculator', packageName: 'com.android.calculator2'Where do I wrong?