here is a couple links to the code I have for the test program..
public class MainActivity extends XWalkActivity {
CustomWV mXWalkView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mXWalkView = new CustomWV(this);
LinearLayout Ll = (LinearLayout)findViewById(R.id.activity_main);
Ll.addView(mXWalkView);
// mXWalkView= (XWalkView)findViewById(R.id.xwalk);
mXWalkView.setUIClient(new XWalkUIClient(mXWalkView));
mXWalkView.setResourceClient(new XWalkResourceClient(mXWalkView));
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}
@Override
protected void onXWalkReady() {
mXWalkView.load("http://boole.cs.atu.edu/~jgray38/", null);
}
public class CustomWV extends XWalkView {
public int a;
public int b;
public CustomWV(Context context ){
super(context, (Activity)context);
}
}
The test program I made to mimic how the actual project is structured to get a
general idea of how well XWalk will integrate. The previous code will run but
does not automaticallly install the crosswalk runtime.
Thanks,
Jonathon
________________________________
From: Crosswalk-help <[email protected]> on
behalf of Jonathon Gray <[email protected]>
Sent: Tuesday, November 3, 2015 1:43 AM
To: Zhang, Belem; [email protected]
Subject: Re: [Crosswalk-help] Crosswalk Project Runtime Not Found - Embedded API
I downloaded the WebView file from here
https://download.01.org/crosswalk/releases/crosswalk-lite/android/canary/15.44.394.7/x86/
Should I only be using version 10 found here?
https://download.01.org/crosswalk/releases/crosswalk-lite/android/canary/10.39.232.1/x86/
I am using the correct architecture with the right device. Thank you for such
a quick response!
Best,
Jonathon
________________________________
From: Zhang, Belem <[email protected]>
Sent: Tuesday, November 3, 2015 1:34 AM
To: Jonathon Gray; [email protected]
Subject: RE: Crosswalk Project Runtime Not Found - Embedded API
Hi Jonathon,
Thank you for using Crosswalk!
In theory installing “Crosswalk Project Runtime” from
https://play.google.com/store/apps/details?id=org.xwalk.core only happens when
you run the Crosswalk app packaged with “Shared Mode”, if the app you packed
with embedded mode, it will not require to install Runtime from app store.
Crosswalk Project Runtime - Android Apps on Google Play
Keep it up Great tool, would like to see a more user friendly popup from apps
asking to download this runtime tho, that black box looks scary to users and ...
Read more...<https://play.google.com/store/apps/details?id=org.xwalk.core>
"Shared mode" allows multiple Crosswalk applications to share one Crosswalk
runtime. If the runtime is not already installed in the device, it will be
downloaded either from the Google Play Store, or from a download location
specified by the developer.
Crosswalk Project Lite Branch 10 Release
https://crosswalk-project.org/blog/crosswalk-lite-10.html
Using the Crosswalk Project Runtime in Shared Mode
https://crosswalk-project.org/documentation/shared_mode.html
Are you sure you are using Crosswalk Lite build then it requires to install
Crosswalk Runtime? Could you please indicate where the build/version did you
get? The Crosswalk Lite is another story for binary size optimization in
embedded mode.
BR
Belem
From: Crosswalk-help
[mailto:[email protected]] On Behalf Of
Jonathon Gray
Sent: Tuesday, November 3, 2015 3:17 PM
To: [email protected]
Subject: [Crosswalk-help] Crosswalk Project Runtime Not Found - Embedded API
Hello All,
I am an intern working at a medium sized company and I am currently assigned to
convert the working WebView's in our Android app to CrossWalk Lite's XWalkView.
I have added the module and replaced all the methods with the corresponding
XWalk methods. The issue is that after running the app for the first time I am
required to install the Runtime from the app store. My impression was that
while using the embedded API the runtime is installed automatically on first
use. Am I wrong and if not, is there something I could be doing wrong? ( even
with a test program that is very basic this is occuring )
Thanks,
Jonathon
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help