Initial start of Android support

This commit is contained in:
Sebastián Katzer 2013-08-20 18:27:33 +02:00
parent d9cb5091df
commit 370fb17e53
2 changed files with 40 additions and 0 deletions

View File

@ -35,4 +35,16 @@
</platform>
<!-- android -->
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Printer">
<param name="android-package" value="de.appplant.cordova.plugin.Printer"/>
</feature>
</config-file>
<source-file src="src/android/Printer.java" target-dir="src/de/appplant/cordova/plugin" />
</platform>
</plugin>

28
src/android/Printer.java Normal file
View File

@ -0,0 +1,28 @@
/**
* Printer.java
* Cordova Printing Plugin
*
* Created by Sebastian Katzer (github.com/katzer) on 20/08/2013.
* Copyright 2013 Sebastian Katzer. All rights reserved.
* GPL v2 licensed
*/
package de.appplant.cordova.plugin;
import java.io.File;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.Intent;
import android.net.Uri;
import android.text.Html;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
public class Printer extends CordovaPlugin {
}