cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel Nennker <>
Subject Re: cordova support for multiple activities
Date Wed, 23 Jul 2014 16:08:55 GMT
Maybe in your case A and B should not inherit from CordovaActivity.
Put A in one plugin and B in another.
Use each plugin.xml to specify the intent-filter suitable for each activity.
Set the activities flags to nohistory etc.
If the intent-filter matches then the respective activity is started and
handles it's intent and launches your one main CordovaActivity and finishes

 Am 23.07.2014 14:39 schrieb "Wang, Walton" <>:

> Hi,  friends:
> I have a use case scenario that need to involve several activities.
> For example:
> 1.        there're 2 activities Activity A and Activity B.
> 2.       Both Activity A and Activity B are inherit from CordovaActivity
> 3.       Activity A and Activity B load different urls
> 4.       In such case, there will be 2 set cordova plugin systems.
> I want to know whether cordova support such kind of usage.
> Currently, I think the framework is not supposed to support, because
> there's only one config.xml, and some plugins use static variables.
> BTW: this is my first time to ask question about cordova, I don't know
> whether it's suitable to send mail here or I should raise a question on
> stackoverflow.
> If this mail bothers you, I feel sorry to bring you the noisy, :)
> Best Regards,
> Walton Wang

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message