Hi Xing, I get this error when using the commandline:
07-16 13:45:42.102 system_server 467 1187 W ActivityManager Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.chromium.base.CommandLine.appendSwitch(java.lang.String)' on a null object reference My code looks like this: ` org.chromium.base.CommandLine.getInstance().appendSwitch( "--disable-pull-to-refresh-effect"); webView = new XWalkView(getActivity(), getActivity()); ` Any ideas on how to fix this? Best Regards, On Thu, Jun 11, 2015 at 10:36 PM, Aram Azhari <[email protected]> wrote: > Thanks. > > I'll try it and let you know. > > Best regards, > Aram > On 11 Jun 2015 22:31, "Xu, Xing" <[email protected]> wrote: > >> In java side, before new XWalkView, you can: >> >> >> CommandLine.getInstance().appendSwitch("--disable-pull-to-refresh-effect"); >> >> >> >> *From:* Aram Azhari [mailto:[email protected]] >> *Sent:* Friday, June 12, 2015 9:42 AM >> *To:* Xu, Xing >> *Cc:* [email protected] >> *Subject:* RE: [Crosswalk-help] Disabling pull down refresh in crosswalk >> >> >> >> How about doing the file copying within an activity before running >> crosswalk? I assume writing to that folder shouldn't require any root acess. >> >> On 11 Jun 2015 21:19, "Xu, Xing" <[email protected]> wrote: >> >> Yes. You can create a file xwview-shell-command-line, add the following >> line into it: >> >> Xwalk --disable-pull-to-refresh-effect >> >> Then >> >> adb push xwview-shell-command-line >> /data/local/tmp/xwview-shell-command-line >> >> >> >> And relaunch your app. >> >> >> >> *From:* Aram Azhari [mailto:[email protected]] >> *Sent:* Friday, June 12, 2015 9:11 AM >> *To:* Xu, Xing >> *Cc:* [email protected] >> *Subject:* RE: [Crosswalk-help] Disabling pull down refresh in crosswalk >> >> >> >> Is that a folder on the android device? >> >> On 11 Jun 2015 20:38, "Xu, Xing" <[email protected]> wrote: >> >> Hi, Aram >> >> I tried it on Android, it works. >> >> >> >> Xing >> >> >> >> *From:* Aram Azhari [mailto:[email protected]] >> *Sent:* Friday, June 12, 2015 8:34 AM >> *To:* Xu, Xing >> *Cc:* [email protected] >> *Subject:* RE: [Crosswalk-help] Disabling pull down refresh in crosswalk >> >> >> >> Hi Xu, >> >> Thank you for your help. I forgot to mention that it is an Android. >> >> Would this still apply? >> >> Best regards, >> >> On 11 Jun 2015 20:26, "Xu, Xing" <[email protected]> wrote: >> >> Hi, Aram, you can add the following line into >> /data/local/tmp/xwview-shell-command-line if you are using embedding API. >> >> Xwalk --disable-pull-to-refresh-effect >> >> >> >> Also, in >> http://stackoverflow.com/questions/29008194/disabling-androids-chrome-pull-down-to-refresh-feature, >> there is some other way to do this(I didn’t try it). >> >> Any feedback will be welcome! >> >> >> >> Xing >> >> *From:* Crosswalk-help [mailto: >> [email protected]] *On Behalf Of *Aram >> Azhari >> *Sent:* Friday, June 12, 2015 2:02 AM >> *To:* [email protected] >> *Subject:* [Crosswalk-help] Disabling pull down refresh in crosswalk >> >> >> >> Hi, >> >> Is it possible to disable pull down refresh functionality in crosswalk >> embedded? >> >> Note that we're using crosswalk, not cordova. >> >> Thanks. >> Aram >> >> -- Best Regards Aram Azhari
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
