Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

alloy undefined when starting main activity from android service

$
0
0

Im starting my main activity on android from a background service which is handling the receipt of a push notification. When my main activity loads it says alloy undefined. Even if I require alloy everywhere I get the problem in my tss which has alloy.cfg. variables in it, any ideas?

var mainActivityIntent = Ti.Android.createIntent({ // 'mainActivityClassName' is another module property with name of our app launcher activity className: gcm.mainActivityClassName, packageName: Ti.App.id, flags : Ti.Android.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED | Ti.Android.FLAG_ACTIVITY_SINGLE_TOP }); mainActivityIntent.addCategory(Ti.Android.CATEGORY_LAUNCHER); activity.startActivity(mainActivityIntent);


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>