Initial start of Android support
This commit is contained in:
parent
d9cb5091df
commit
370fb17e53
12
plugin.xml
12
plugin.xml
@ -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
28
src/android/Printer.java
Normal 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 {
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user