Remove code shared with limelight-common and implement Android bindings.

This commit is contained in:
Cameron Gutman
2013-12-05 12:59:36 -05:00
parent b0bb8b685c
commit 14d093cf06
35 changed files with 190 additions and 3130 deletions
+4 -11
View File
@@ -8,12 +8,11 @@ import java.net.UnknownHostException;
import org.xmlpull.v1.XmlPullParserException;
import com.limelight.binding.PlatformBinding;
import com.limelight.nvstream.NvConnection;
import com.limelight.nvstream.NvHTTP;
import com.limelight.nvstream.NvmDNS;
import com.limelight.nvstream.http.NvHTTP;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
@@ -50,13 +49,6 @@ public class Connection extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.v("NvmDNS", "onCreate");
NvmDNS dns = new NvmDNS();
dns.execute();
setContentView(R.layout.activity_connection);
this.statusButton = (Button) findViewById(R.id.statusButton);
@@ -109,7 +101,8 @@ public class Connection extends Activity {
NvHTTP httpConn;
String message;
try {
httpConn = new NvHTTP(InetAddress.getByName(hostText.getText().toString()), macAddress);
httpConn = new NvHTTP(InetAddress.getByName(hostText.getText().toString()),
macAddress, PlatformBinding.getDeviceName());
try {
if (httpConn.getPairState()) {
message = "Already paired";