Removed PhoneGap.java, renaming to device and audio

This commit is contained in:
Joe Bowser
2010-06-08 16:30:20 -07:00
parent bb501de22c
commit 945c0d95e6
5 changed files with 314 additions and 257 deletions

View File

@@ -0,0 +1,46 @@
package com.phonegap;
import android.app.Activity;
import android.util.Log;
import android.webkit.WebView;
/*
* This class literally exists to protect DroidGap from Javascript directly.
*
*
*/
public class BrowserKey {
DroidGap mAction;
boolean bound;
WebView mView;
BrowserKey(WebView view, DroidGap action)
{
bound = false;
}
public void override()
{
Log.d("PhoneGap", "WARNING: Back Button Default Behaviour will be overridden. The backKeyDown event will be fired!");
bound = true;
}
public boolean isBound()
{
return bound;
}
public void reset()
{
bound = false;
}
public void exitApp()
{
mAction.finish();
}
}