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]> 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]> > 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 >> [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 >> >> >
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
