mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
console.log for api level 7
(cherry picked from commit a2b08f305b33de38c1ffa93f2a13ed4636482bc1)
This commit is contained in:
parent
a179fbd095
commit
dfe0b6ff27
@ -304,6 +304,12 @@ public class DroidGap extends Activity {
|
|||||||
{
|
{
|
||||||
Log.d(TAG, sourceID + ": Line " + Integer.toString(lineNumber) + " : " + message);
|
Log.d(TAG, sourceID + ": Line " + Integer.toString(lineNumber) + " : " + message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// console.log in api level 7: http://developer.android.com/guide/developing/debug-tasks.html
|
||||||
|
public void onConsoleMessage(String message, int lineNumber, String sourceID)
|
||||||
|
{
|
||||||
|
Log.d(TAG, sourceID + ": Line " + Integer.toString(lineNumber) + " : " + message);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user