Thanks Matthew, we'll take a look.

Meanwhile you might want to follow this issue in Crosswalk's bug tracking 
system:

https://crosswalk-project.org/jira/browse/XWALK-924

It contains an example of an application and related extensions.

Regards,

Francesco

From: Matthew Sun [mailto:[email protected]]
Sent: Monday, February 03, 2014 4:47 PM
To: Balestrieri, Francesco
Cc: [email protected]
Subject: Re: [Crosswalk-help] Extensions

Hi Francesco

Thanks for getting back to me.

I have attached a zip file with the apk, extensions and also the samples folder.

The commands used to generate everything was:

javac *.java -classpath 
/home/matthew/Downloads/crosswalk-5.32.81.0-arm2/xwalk_app_template/libs/xwalk_app_runtime_java.jar:/home/matthew/dev/android-sdk-linux/platforms/android-17/android.jar
 -verbose

jar cvf myextension.jar MyExtension.class


python make_apk.py --package=com.test --name=test 
--app-root=/home/matthew/Downloads/crosswalk-5.32.81.0-arm2/xwalk_app_template/samples/hello_world/
 --app-local-path=index.html --mode=embedded 
--extensions="/home/matthew/Downloads/crosswalk-5.32.81.0-arm2/xwalk_app_template/extensions/myextension"

Thanks for your help.

Matthew





On Mon, Feb 3, 2014 at 12:40 PM, Balestrieri, Francesco 
<[email protected]<mailto:[email protected]>> wrote:
Hi Matthew,

we could successfully build a Java extension-enabled app using Crosswalk 5 on 
ARM, with the Crosswalk app template version you are using, by following the 
instructions on the wiki.

>From the error message, based on the information provided it would seem that 
>the class file for your extension is not in the jar file (even though the jar 
>file is there).

If you have any more details you can share to help reproduce the issue that 
would be great.

Kind regards,

Francesco


From: Crosswalk-help 
[mailto:[email protected]<mailto:[email protected]>]
 On Behalf Of Matthew Sun
Sent: Sunday, February 02, 2014 5:44 PM
To: 
[email protected]<mailto:[email protected]>
Subject: [Crosswalk-help] Extensions

Hi

I have been developing using crosswalk-5.32.81.0-arm and find it quite good. 
Except now I need to write some extensions, so I followed the instructions here 
https://crosswalk-project.org/#wiki/Writing-a-Crosswalk-Java-Extension-on-Android

I followed them exactly, and built my apk with the additional 
--extensions="/path/to/myextension/".

There was no build errors, and the xwalk-extensions folder even showed up in 
the created folder, along with the appropriate jar file inside.  Problem is, 
once running the app on a device the following error is generated by 
XWalkExtensionManager and the extension never fires "Error in calling methods 
of external extensions. java.lang.ClassNotFoundException: Didn't find class 
"com.example.extension.MyExtension" on path: DexPathList[[zip file 
"/data/app/sunnyappz.coolmathsalgebragame-1.apk"],nativeLibraryDirectories=[/data/app-lib/sunnyappz.coolmathsalgebragame-1,
 /vendor/lib, /system/lib]]"

Any guidance would be much appreciated. Does anyone else have extensions 
working using the instructions given? Is there something I need to watch out 
for.

Regards

Matthew

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki 
Business Identity Code: 0357606 - 4 
Domiciled in Helsinki 

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to