diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 225a264..a3bade4 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -1,9 +1,15 @@ + package="ca.zgrs.clipper" android:versionCode="1" android:versionName="1.1" android:enabled="true"> - + + + + + + diff --git a/src/main/java/ca/zgrs/clipper/Main.java b/src/main/java/ca/zgrs/clipper/Main.java new file mode 100644 index 0000000..1465bc3 --- /dev/null +++ b/src/main/java/ca/zgrs/clipper/Main.java @@ -0,0 +1,17 @@ +package ca.zgrs.clipper; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; + + +public class Main extends Activity { + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + //start clipboard service + Intent serviceIntent = new Intent(this, ClipboardService.class); + startService(serviceIntent); + } +} \ No newline at end of file diff --git a/src/main/res/layout/main.xml b/src/main/res/layout/main.xml index 3a5f117..fbf4d36 100644 --- a/src/main/res/layout/main.xml +++ b/src/main/res/layout/main.xml @@ -3,10 +3,20 @@ android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" - > + android:weightSum="1"> + android:text="@string/started" + android:singleLine="false" + android:enabled="true" + android:textStyle="bold" + android:id="@+id/head" /> + + diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index d367f52..e86d922 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -1,5 +1,11 @@ - Hello clipboard-service! - clipboard-service + Clipper service is started! + + Usage: You can copy to or paste from clipboard from adb shell using the + following commands:\n + * am broadcast -a clipper.set -e text \'This may be pasted now\' \n + * am broadcast -a clipper.get + + Clipper