Skip to content
Browse files

Repaired to use backwards-compatible edition of ClipboardManager

  • Loading branch information...
1 parent 9bcb76a commit 02a0ed68f3e4a9a3cb20491dbab3137df5fabf10 Mark Murphy committed Jan 26, 2012
View
8 SystemServices/ClipIP/.classpath
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="output" path="bin/classes"/>
+</classpath>
View
33 SystemServices/ClipIP/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>IPClipper</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
View
2 SystemServices/ClipIP/AndroidManifest.xml
@@ -5,7 +5,7 @@
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
- <uses-sdk android:minSdkVersion="11"
+ <uses-sdk android:minSdkVersion="7"
android:targetSdkVersion="11" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
View
2 SystemServices/ClipIP/project.properties
@@ -8,4 +8,4 @@
# project structure.
# Project target.
-target=android-11
+target=android-7
View
6 SystemServices/ClipIP/res/layout/main.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
>
<EditText
- android:layout_width="match_parent"
+ android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="Long-tap me to paste!"
/>
View
10 SystemServices/ClipIP/src/com/commonsware/android/clipip/IPClipper.java
@@ -14,15 +14,15 @@
package com.commonsware.android.clipip;
-import android.app.Activity;
-import android.content.ClipboardManager;
-import android.os.Bundle;
-import android.util.Log;
-import android.widget.Toast;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
+import android.app.Activity;
+import android.os.Bundle;
+import android.text.ClipboardManager;
+import android.util.Log;
+import android.widget.Toast;
public class IPClipper extends Activity {
@Override

0 comments on commit 02a0ed6

Please sign in to comment.
Something went wrong with that request. Please try again.