diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient.rar b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient.rar new file mode 100644 index 0000000..68ddb30 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient.rar differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/.classpath b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/.classpath new file mode 100644 index 0000000..a4f1e40 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/.project b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/.project new file mode 100644 index 0000000..ccee9ea --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/.project @@ -0,0 +1,33 @@ + + + SocketAutoConnectClient + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/AndroidManifest.xml b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/AndroidManifest.xml new file mode 100644 index 0000000..4b3022c --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/AndroidManifest.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/SocketAutoConnectClient.apk b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/SocketAutoConnectClient.apk new file mode 100644 index 0000000..9d6a930 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/SocketAutoConnectClient.apk differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes.dex b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes.dex new file mode 100644 index 0000000..afaa4b0 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes.dex differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$attr.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$attr.class new file mode 100644 index 0000000..74e075b Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$attr.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$drawable.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$drawable.class new file mode 100644 index 0000000..31c8a8c Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$drawable.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$id.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$id.class new file mode 100644 index 0000000..7680b79 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$id.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$layout.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$layout.class new file mode 100644 index 0000000..2b1849b Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$layout.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$string.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$string.class new file mode 100644 index 0000000..6c9d78c Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R$string.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R.class new file mode 100644 index 0000000..5f08417 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/R.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/SocketAutoConnectClient$1.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/SocketAutoConnectClient$1.class new file mode 100644 index 0000000..314566b Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/SocketAutoConnectClient$1.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/SocketAutoConnectClient.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/SocketAutoConnectClient.class new file mode 100644 index 0000000..40d7091 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/classes/com/socketautoconnect/client/SocketAutoConnectClient.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-hdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..882eb14 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-hdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-ldpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..18689f6 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-ldpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-mdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..02e96b9 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/res/drawable-mdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/resources.ap_ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/resources.ap_ new file mode 100644 index 0000000..b76bfa4 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/bin/resources.ap_ differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/gen/com/socketautoconnect/client/R.java b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/gen/com/socketautoconnect/client/R.java new file mode 100644 index 0000000..b77487c --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/gen/com/socketautoconnect/client/R.java @@ -0,0 +1,26 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * aapt tool from the resource data it found. It + * should not be modified by hand. + */ + +package com.socketautoconnect.client; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int ic_launcher=0x7f020000; + } + public static final class id { + public static final int ip_info=0x7f050000; + } + public static final class layout { + public static final int main=0x7f030000; + } + public static final class string { + public static final int app_name=0x7f040001; + public static final int hello=0x7f040000; + } +} diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/proguard.cfg b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/proguard.cfg new file mode 100644 index 0000000..b1cdf17 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/proguard.cfg @@ -0,0 +1,40 @@ +-optimizationpasses 5 +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses +-dontpreverify +-verbose +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* + +-keep public class * extends android.app.Activity +-keep public class * extends android.app.Application +-keep public class * extends android.app.Service +-keep public class * extends android.content.BroadcastReceiver +-keep public class * extends android.content.ContentProvider +-keep public class * extends android.app.backup.BackupAgentHelper +-keep public class * extends android.preference.Preference +-keep public class com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/project.properties b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/project.properties new file mode 100644 index 0000000..5a70945 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/project.properties @@ -0,0 +1,11 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "ant.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-7 diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-hdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..8074c4c Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-hdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-ldpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..1095584 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-ldpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-mdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..a07c69f Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/drawable-mdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/layout/main.xml b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/layout/main.xml new file mode 100644 index 0000000..8b93c43 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/layout/main.xml @@ -0,0 +1,19 @@ + + + + + + + + \ No newline at end of file diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/values/strings.xml b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/values/strings.xml new file mode 100644 index 0000000..6c32d32 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/res/values/strings.xml @@ -0,0 +1,7 @@ + + + + Hello World, SocketAutoConnectClient! + UDP Client + + \ No newline at end of file diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/src/com/socketautoconnect/client/SocketAutoConnectClient.java b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/src/com/socketautoconnect/client/SocketAutoConnectClient.java new file mode 100644 index 0000000..591b49a --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectClient/SocketAutoConnectClient/src/com/socketautoconnect/client/SocketAutoConnectClient.java @@ -0,0 +1,98 @@ +package com.socketautoconnect.client; + +import android.app.Activity; +import android.os.Bundle; +import java.net.DatagramPacket; +import java.net.InetAddress; +import java.net.MulticastSocket; +import android.app.Activity; +import android.os.Bundle; +import android.os.Handler; +import android.os.Message; +import android.widget.TextView; +import android.widget.Toast; + +public class SocketAutoConnectClient extends Activity implements Runnable +{ + private MulticastSocket multicastSocket=null; + private static int BROADCAST_PORT=9898; + private static String BROADCAST_IP="224.0.0.1"; + InetAddress inetAddress=null; + Thread thread=null; + TextView ipInfo; + private static String ip; + Handler myHandler=new Handler() + { + @Override + public void handleMessage(Message msg) + { + super.handleMessage(msg); + if(msg.what==1) + { + ipInfo.append(msg.obj.toString()); + } + } + }; + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + ipInfo=(TextView) findViewById(R.id.ip_info); + thread=new Thread(this); + try + { + multicastSocket = new MulticastSocket(BROADCAST_PORT); + inetAddress=InetAddress.getByName(BROADCAST_IP); + multicastSocket.joinGroup(inetAddress); + thread.start(); + + } catch (Exception e1) + { + e1.printStackTrace(); + } + + } + + @Override + public void run( ) + { + // TODO Auto-generated method stub + Message msg=new Message(); + msg.what=1; + byte buf[] = new byte[1024]; + DatagramPacket dp =null; + dp=new DatagramPacket(buf,buf.length,inetAddress,BROADCAST_PORT); + + while (true) + { + try + { + multicastSocket.receive(dp); + Thread.sleep(3000); + ip=new String(buf, 0, dp.getLength()); + msg.obj=ip; + myHandler.sendMessage(msg); + System.out.println("⵽IP : "+ip); + // Toast.makeText(this, new String(buf, 0, dp.getLength()), Toast.LENGTH_SHORT); + } catch (Exception e) + { + e.printStackTrace(); + } + } + } + + @Override + protected void onDestroy() + { + super.onDestroy(); + multicastSocket.close(); + System.out.println("UDP Client˳,صsocket,ֹͣ㲥"); + finish(); + } + + + + +} \ No newline at end of file diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer.rar b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer.rar new file mode 100644 index 0000000..14584aa Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer.rar differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/.classpath b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/.classpath new file mode 100644 index 0000000..a4f1e40 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/.classpath @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/.project b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/.project new file mode 100644 index 0000000..676392e --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/.project @@ -0,0 +1,33 @@ + + + SocketAutoConnectServer + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/AndroidManifest.xml b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/AndroidManifest.xml new file mode 100644 index 0000000..ecc5db3 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/AndroidManifest.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/SocketAutoConnectServer.apk b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/SocketAutoConnectServer.apk new file mode 100644 index 0000000..5251022 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/SocketAutoConnectServer.apk differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes.dex b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes.dex new file mode 100644 index 0000000..39913cc Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes.dex differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$attr.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$attr.class new file mode 100644 index 0000000..5fed874 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$attr.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$drawable.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$drawable.class new file mode 100644 index 0000000..f6eeaa4 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$drawable.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$id.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$id.class new file mode 100644 index 0000000..d2fda3e Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$id.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$layout.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$layout.class new file mode 100644 index 0000000..bd8cc1e Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$layout.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$string.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$string.class new file mode 100644 index 0000000..9f07b0c Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R$string.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R.class new file mode 100644 index 0000000..e9cdaec Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/R.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/SocketAutoConnectServer$SendUDPBrocastListener.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/SocketAutoConnectServer$SendUDPBrocastListener.class new file mode 100644 index 0000000..ba19d2d Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/SocketAutoConnectServer$SendUDPBrocastListener.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/SocketAutoConnectServer.class b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/SocketAutoConnectServer.class new file mode 100644 index 0000000..948fc46 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/classes/com/socketautoconnect/server/SocketAutoConnectServer.class differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-hdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..882eb14 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-hdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-ldpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..18689f6 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-ldpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-mdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..02e96b9 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/res/drawable-mdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/resources.ap_ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/resources.ap_ new file mode 100644 index 0000000..0697432 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/bin/resources.ap_ differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/gen/com/socketautoconnect/server/R.java b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/gen/com/socketautoconnect/server/R.java new file mode 100644 index 0000000..8ad9cfa --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/gen/com/socketautoconnect/server/R.java @@ -0,0 +1,27 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * aapt tool from the resource data it found. It + * should not be modified by hand. + */ + +package com.socketautoconnect.server; + +public final class R { + public static final class attr { + } + public static final class drawable { + public static final int ic_launcher=0x7f020000; + } + public static final class id { + public static final int ip_info=0x7f050001; + public static final int sendUDPBrocast=0x7f050000; + } + public static final class layout { + public static final int main=0x7f030000; + } + public static final class string { + public static final int app_name=0x7f040001; + public static final int hello=0x7f040000; + } +} diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/proguard.cfg b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/proguard.cfg new file mode 100644 index 0000000..b1cdf17 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/proguard.cfg @@ -0,0 +1,40 @@ +-optimizationpasses 5 +-dontusemixedcaseclassnames +-dontskipnonpubliclibraryclasses +-dontpreverify +-verbose +-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* + +-keep public class * extends android.app.Activity +-keep public class * extends android.app.Application +-keep public class * extends android.app.Service +-keep public class * extends android.content.BroadcastReceiver +-keep public class * extends android.content.ContentProvider +-keep public class * extends android.app.backup.BackupAgentHelper +-keep public class * extends android.preference.Preference +-keep public class com.android.vending.licensing.ILicensingService + +-keepclasseswithmembernames class * { + native ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet, int); +} + +-keepclassmembers class * extends android.app.Activity { + public void *(android.view.View); +} + +-keepclassmembers enum * { + public static **[] values(); + public static ** valueOf(java.lang.String); +} + +-keep class * implements android.os.Parcelable { + public static final android.os.Parcelable$Creator *; +} diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/project.properties b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/project.properties new file mode 100644 index 0000000..5a70945 --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/project.properties @@ -0,0 +1,11 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system use, +# "ant.properties", and override values to adapt the script to your +# project structure. + +# Project target. +target=android-7 diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-hdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..8074c4c Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-hdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-ldpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..1095584 Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-ldpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-mdpi/ic_launcher.png b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..a07c69f Binary files /dev/null and b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/drawable-mdpi/ic_launcher.png differ diff --git a/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/layout/main.xml b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/layout/main.xml new file mode 100644 index 0000000..cbebf1b --- /dev/null +++ b/1_6.h12_dev/broadcast_mpd/SocketAutoConnectServer/SocketAutoConnectServer/res/layout/main.xml @@ -0,0 +1,27 @@ + + + + + +