mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Getting ready for release of Camera
This commit is contained in:
parent
df6eaf4f9d
commit
98fff2d5f2
File diff suppressed because it is too large
Load Diff
@ -63,10 +63,7 @@ public class DroidGap extends Activity {
|
|||||||
appView.setWebChromeClient(new GapClient(this));
|
appView.setWebChromeClient(new GapClient(this));
|
||||||
appView.getSettings().setJavaScriptEnabled(true);
|
appView.getSettings().setJavaScriptEnabled(true);
|
||||||
appView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
|
appView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
|
||||||
|
|
||||||
|
|
||||||
launcher = new CameraLauncher(appView, this);
|
|
||||||
|
|
||||||
/* Bind the appView object to the gap class methods */
|
/* Bind the appView object to the gap class methods */
|
||||||
bindBrowser(appView);
|
bindBrowser(appView);
|
||||||
|
|
||||||
@ -96,10 +93,10 @@ public class DroidGap extends Activity {
|
|||||||
|
|
||||||
private void bindBrowser(WebView appView)
|
private void bindBrowser(WebView appView)
|
||||||
{
|
{
|
||||||
// The PhoneGap class handles the Notification and Android Specific crap
|
|
||||||
gap = new PhoneGap(this, appView);
|
gap = new PhoneGap(this, appView);
|
||||||
geo = new GeoBroker(appView, this);
|
geo = new GeoBroker(appView, this);
|
||||||
accel = new AccelListener(this, appView);
|
accel = new AccelListener(this, appView);
|
||||||
|
launcher = new CameraLauncher(appView, this);
|
||||||
// This creates the new javascript interfaces for PhoneGap
|
// This creates the new javascript interfaces for PhoneGap
|
||||||
appView.addJavascriptInterface(gap, "Device");
|
appView.addJavascriptInterface(gap, "Device");
|
||||||
appView.addJavascriptInterface(geo, "Geo");
|
appView.addJavascriptInterface(geo, "Geo");
|
||||||
|
Loading…
Reference in New Issue
Block a user