Hi Haris, From your previous mail, it seems that you are still using old style and some deprecated classes of shared mode. Please refer to https://crosswalk-project.org/documentation/shared_mode.html for latest guideline of shared mode.
About XWalkCookieManager, we’ve already integrated it to the latest version, but we have to evaluate it before publishing on the play store. You won’t have long to wait. Thanks, Lin From: Crosswalk-help [mailto:[email protected]] On Behalf Of Haris Zaman Sent: Tuesday, July 28, 2015 19:21 To: Julian Dropmann Cc: [email protected] Subject: Re: [Crosswalk-help] Crosswalk shared mode Integration problem Hi Again, Thanks for you suggestions and it worked. But I have some problems in shared mode I cannot XWalkCookieManager I have to use it for managing cookies between native android side and html side. Is there any class in shared mode which I can use for cookie handling on cross walk? BR, Haris On Mon, Jul 27, 2015 at 1:27 PM, Haris Zaman <[email protected]<mailto:[email protected]>> wrote: Hi, Thanks much for your reply, yes I know that it is only used in shared mode. Actually I switched to share mode because the other did not work for me. I already have my application apk size 23 MB so If I include the crosswalk into it, the size will e 63MB and google play store do not accept anything more than 50MB. I also tried the lite version but it had some compilation error. So this apk size was the main reason I switched to shared mode otherwise the integration normal mode was successful. But anyways I will try you suggestions. BR, Haris On Mon, Jul 27, 2015 at 12:41 PM, Julian Dropmann <[email protected]<mailto:[email protected]>> wrote: Hello, are you aware, that you only need to extend XWalkApplication and XWalkActivity, if you want to use Crosswalk in shared mode? You could just embed the full library as described here: https://crosswalk-project.org/documentation/embedding_crosswalk/crosswalk_aar.html I am also pretty sure that you do not need to extend RoboApplication, if you are using RoboGuice 2.0+. You only have to get the Injector using RoboGuice.setBaseApplicationInjector and inject the members using Injector.injectMembers in your Application's onCreate method, if nessesary. And for the Activity you could write your own XWalkRoboActivity. Simply copy the source of roboguice.activity.RoboActivity to your own implementation which extends XWalkActivity (or reverse). Regards, Julian On 7/27/2015 10:43 AM, Haris Zaman wrote: Hi, I have an android application that already extends from Roboguice library, but in the Crosswalk docs and sample app it is said that Application should extends from XWalkApplication to overcome this problem I did change like following public class MyApplication extends RoboguiceInjectableApplication{ private XWalkApplication xwalkApp=new XWalkApplication(); @Override public void onCreate(){ super.onCreate(); xwalkApp.onCreate() } } and then In my activity to avoid the same problem that MyActivity already extends from some activity but the docs are saying to extend from XwalkActivity, I am doing like this to avoid it public class MyActivity extends RoboActivity{ private XWalkActivity xwalkactivity=new XWalkActivity() { @Override protected void onXWalkReady() { // TODO Auto-generated method stub Log.d(TAG, "xwalk ready"); xwalkview=(XWalkView)findViewById(R.id.webview_test); xwalkview.load("http://www.google.com", null); } }; @Overrride public onCreate(Bundle saveInstance){ super.onCreate(); xwalkActivity.onCreate(); } } But I am getting exception while launching MyActivity. Any help would be appreciated. BR, Haris _______________________________________________ Crosswalk-help mailing list [email protected]<mailto:[email protected]> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help _______________________________________________ Crosswalk-help mailing list [email protected]<mailto:[email protected]> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
