PDA

View Full Version : PhoneGap + SenchaTouch + StatusBarNotification



FeLDMaRShaL
10 May 2012, 7:11 PM
Hello!
I use PhoneGap 1.7.0, SenchaTouch 2.0.1 and plugin for PhoneGap (https://github.com/phonegap/phonegap-plugins/tree/master/Android/StatusBarNotification). When I create Notification and click on the icon in the tray, then the application tries to open 2 times.
Without Sencha everything works fine, but my project uses sencha and because of this application does not want to open, the application runs 2 times and it is not good. Has anyone encountered a similar problem that occurs?
I was able to establish that the application is opened 2 times due to the fact that the android finds that the application of fuzzy panel application and the application of fuzzy icons in the trays is a different application.
I would be glad of any help from you.

FeLDMaRShaL
13 May 2012, 6:18 PM
Up!

jochenp
13 May 2012, 10:51 PM
This is actually an android issue, an has nothing to do with ST2.

For your info, please look at:

http://developer.android.com/guide/topics/manifest/activity-element.html#lmode

And find the best launch mode for your app.

FeLDMaRShaL
15 May 2012, 2:00 AM
Thanks!
I add:
android:launchMode="singleTop"
and it work!