diff --git a/pandora_agents/android/AndroidManifest.xml b/pandora_agents/android/AndroidManifest.xml
index 86e296f0e4..3c6d88cc59 100755
--- a/pandora_agents/android/AndroidManifest.xml
+++ b/pandora_agents/android/AndroidManifest.xml
@@ -66,6 +66,7 @@
+
diff --git a/pandora_agents/android/bin/AndroidManifest.xml b/pandora_agents/android/bin/AndroidManifest.xml
index c13b849c1f..3c6d88cc59 100644
--- a/pandora_agents/android/bin/AndroidManifest.xml
+++ b/pandora_agents/android/bin/AndroidManifest.xml
@@ -1,4 +1,19 @@
+
+
diff --git a/pandora_agents/android/res/layout/password_choose.xml b/pandora_agents/android/res/layout/password_choose.xml
index 998eb7207a..86394b90c2 100644
--- a/pandora_agents/android/res/layout/password_choose.xml
+++ b/pandora_agents/android/res/layout/password_choose.xml
@@ -1,7 +1,7 @@
-
-
-
+ android:inputType="textPassword" />
+
+
diff --git a/pandora_agents/android/res/layout/setup.xml b/pandora_agents/android/res/layout/setup.xml
index 40445f9080..179fce2275 100644
--- a/pandora_agents/android/res/layout/setup.xml
+++ b/pandora_agents/android/res/layout/setup.xml
@@ -1,5 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+// GNU General Public License for more details.
+-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pandora_agents/android/res/layout/setupnosim.xml b/pandora_agents/android/res/layout/setupnosim.xml
index 7a742437e4..396fc87e56 100644
--- a/pandora_agents/android/res/layout/setupnosim.xml
+++ b/pandora_agents/android/res/layout/setupnosim.xml
@@ -12,166 +12,180 @@
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
+// GNU General Public License for more details.
-->
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pandora_agents/android/res/layout/status.xml b/pandora_agents/android/res/layout/status.xml
index 655b899d35..d62acd05b9 100644
--- a/pandora_agents/android/res/layout/status.xml
+++ b/pandora_agents/android/res/layout/status.xml
@@ -468,6 +468,28 @@
android:layout_height="wrap_content"
/>
+
+
+
+
+
+
+
diff --git a/pandora_agents/android/res/values-en/strings.xml b/pandora_agents/android/res/values-en/strings.xml
index 83b5bf2c03..819c4ba53d 100755
--- a/pandora_agents/android/res/values-en/strings.xml
+++ b/pandora_agents/android/res/values-en/strings.xml
@@ -104,5 +104,10 @@
password
password must be longer than 6 characters!
Wrong password!
+ Roaming:
+
+ Report if Roaming
+ Mobile server url:
+ View Mobile site
diff --git a/pandora_agents/android/res/values-es/strings.xml b/pandora_agents/android/res/values-es/strings.xml
index 8e443724ee..a9df3e0462 100755
--- a/pandora_agents/android/res/values-es/strings.xml
+++ b/pandora_agents/android/res/values-es/strings.xml
@@ -82,7 +82,7 @@
Tipo movil:
- Potencia senyal:
+ Potencia señal:
Llamadas recibidas:
@@ -94,20 +94,20 @@
Bytes transmitidos:
- Introducir contrasenya
- Las contrasenyas son diferentes!
+ Introducir contraseña
+ Las contraseñas son diferentes!
error
- contrasenya
- La contrasenya debe contener mas de 6 caracteres!
- Contrasenya incorrecta
- Crear contrasenya
- Introducir contrasenya
- Repetir contrasenya
- Quieres poner una contrasenya?
+ contraseña
+ La contraseña debe contener mas de 6 caracteres!
+ Contraseña incorrecta
+ Crear contraseña
+ Introducir contraseña
+ Repetir contraseña
+ Quieres poner una contraseña?
No vuelkves a preguntar
- Contrasenya creada
- Sin contrasenya
- Crear/Cambiar contrasenya
+ Contraseña creada
+ Sin contraseña
+ Crear/Cambiar contraseña
Intro
Volver
@@ -119,7 +119,7 @@
Reporta operador de red
Reporta tipo de red
Reporta tipo de movil
- Reporta potencia de senyal
+ Reporta potencia de señal
Reporta numero de SMS recibido
Reporta numero de SMS enviado
Reporta numero de llamadas recibidas
@@ -127,6 +127,6 @@
Reporta numero de llamadas salientes
Reporta bytes recibidos
Reporta bytes enviados
- Reporta senyal de saludo
+ Reporta señal de saludo
diff --git a/pandora_agents/android/res/values/strings.xml b/pandora_agents/android/res/values/strings.xml
index f65879fc9e..5a584f340f 100755
--- a/pandora_agents/android/res/values/strings.xml
+++ b/pandora_agents/android/res/values/strings.xml
@@ -119,6 +119,10 @@
back
yes
no
+
+ Roaming:
+ Mobile server url:
+ View Mobile site
Report device up time
Report network operator
@@ -134,7 +138,7 @@
Report amount of sent mobile data
Report Hello Signal
Report battery level
-
+ Report if roaming
diff --git a/pandora_agents/android/src/pandroid/agent/Core.java b/pandora_agents/android/src/pandroid/agent/Core.java
index 22d3301cab..ba415ef147 100644
--- a/pandora_agents/android/src/pandroid/agent/Core.java
+++ b/pandora_agents/android/src/pandroid/agent/Core.java
@@ -46,6 +46,7 @@ public class Core {
static volatile public String defaultServerPort = "41121";
static volatile public int defaultInterval = 300;
static volatile public String defaultAgentName = "pandroid";
+ static volatile public String defaultWebName = "firefly.artica.es/pandora_console/mobile";
static volatile public String defaultGpsStatus = "enabled"; // "disabled" or "enabled"
static volatile public String defaultBatteryLevelReport = "enabled"; // "disabled" or "enabled"
static volatile public String defaultMemoryStatus = "enabled"; // "disabled" or "enabled"
@@ -65,6 +66,7 @@ public class Core {
static volatile public String defaultBytesReceivedReport = "enabled"; // "disabled" or "enabled"
static volatile public String defaultBytesSentReport = "enabled"; // "disabled" or "enabled"
static volatile public String defaultHelloSignalReport = "enabled"; // "disabled" or "enabled"
+ static volatile public String defaultRoamingReport = "enabled"; // "disabled" or "enabled"
static volatile public boolean defaultHasSim = false;
@@ -92,7 +94,7 @@ public class Core {
static volatile public long defaultReceiveBytes = 0;
static volatile public long defaultTransmitBytes = 0;
static volatile public int defaultHelloSignal = 2;
-
+ static volatile public int defaultRoaming = 0;
//Temporary
static volatile public String defaultPassword = "";
@@ -110,7 +112,8 @@ public class Core {
static volatile public String serverAddr = defaultServerAddr;
static volatile public String serverPort = defaultServerPort;
static volatile public int interval = defaultInterval;
- static volatile public String agentName = defaultAgentName;
+ static volatile public String agentName = defaultWebName;
+ static volatile public String webName = defaultAgentName;
static volatile public String gpsStatus = defaultGpsStatus;
static volatile public String memoryStatus = defaultMemoryStatus;
static volatile public String taskStatus = defaultTaskStatus;
@@ -132,6 +135,8 @@ public class Core {
static volatile public String BytesSentReport = defaultBytesSentReport;
static volatile public String HelloSignalReport = defaultHelloSignalReport;
static volatile public String BatteryLevelReport = defaultHelloSignalReport;
+ static volatile public String RoamingReport = defaultRoamingReport;
+
static volatile public boolean hasSim = defaultHasSim;
//temporary
@@ -163,6 +168,7 @@ public class Core {
static volatile public long receiveBytes = defaultReceiveBytes;
static volatile public long transmitBytes = defaultTransmitBytes;
static volatile public int helloSignal = defaultHelloSignal;
+ static volatile public int roaming = defaultRoaming;
static volatile public long lastContact = CONST_INVALID_CONTACT;
static volatile public int contactError = CONST_CONTACT_ERROR;
@@ -244,7 +250,7 @@ public class Core {
receiveBytes = agentPreferences.getLong("receiveBytes", defaultReceiveBytes);
transmitBytes = agentPreferences.getLong("transmitBytes", defaultTransmitBytes);
helloSignal = agentPreferences.getInt("helloSignal", defaultHelloSignal);
-
+ roaming = agentPreferences.getInt("roaming", defaultRoaming);
}// end loadLastValues
@@ -262,6 +268,7 @@ public class Core {
interval = agentPreferences.getInt("interval", defaultInterval);
//fix agent name to mark
agentName = agentPreferences.getString("agentName", defaultAgentName+"_"+Installation.id(context));
+ webName = agentPreferences.getString("webName", defaultWebName);
gpsStatus = agentPreferences.getString("gpsStatus", defaultGpsStatus);
memoryStatus = agentPreferences.getString("memoryStatus", defaultMemoryStatus);
taskStatus = agentPreferences.getString("taskStatus", defaultTaskStatus);
@@ -285,7 +292,7 @@ public class Core {
BytesSentReport = agentPreferences.getString("BytesSentReport", defaultBytesSentReport);
HelloSignalReport = agentPreferences.getString("HelloSignalReport", defaultHelloSignalReport);
BatteryLevelReport = agentPreferences.getString("BatteryLevelReport", defaultBatteryLevelReport);
-
+ RoamingReport = agentPreferences.getString("RoamingReport", defaultRoamingReport);
}// end loadConf
@@ -296,7 +303,8 @@ public class Core {
incomingCalls, missedCalls, outgoingCalls, receiveBytes, transmitBytes, password, helloSignal,
passwordCheck, DeviceUpTimeReport, NetworkOperatorReport, NetworkTypeReport, PhoneTypeReport,
SignalStrengthReport, ReceivedSMSReport, SentSMSReport, IncomingCallsReport, MissedCallsReport,
- OutgoingCallsReport, BytesReceivedReport, BytesSentReport, HelloSignalReport, BatteryLevelReport
+ OutgoingCallsReport, BytesReceivedReport, BytesSentReport, HelloSignalReport, BatteryLevelReport,
+ RoamingReport, roaming, webName
);
}
@@ -309,7 +317,7 @@ public class Core {
String _password, int _helloSignal, String _passwordCheck, String _DeviceUpTimeReport, String _NetworkOperatorReport,
String _NetworkTypeReport, String _PhoneTypeReport, String _SignalStrengthReport, String _ReceivedSMSReport,
String _SentSMSReport, String _IncomingCallsReport, String _MissedCallsReport, String _OutgoingCallsReport, String _BytesReceivedReport,
- String _BytesSentReport, String _HelloSignalReport, String _BatteryLevelReport) {
+ String _BytesSentReport, String _HelloSignalReport, String _BatteryLevelReport, String _RoamingReport, int _roaming, String _webName) {
if (con == null) {
con = context;
@@ -346,6 +354,7 @@ public class Core {
editor.putString("password", _password);
editor.putString("passwordCheck", _passwordCheck);
editor.putInt("helloSignal", _helloSignal);
+ editor.putInt("roaming", _roaming);
editor.putString("DeviceUpTimeReport", _DeviceUpTimeReport);
editor.putString("NetworkOperatorReport", _NetworkOperatorReport);
editor.putString("NetworkTypeReport", _NetworkTypeReport);
@@ -360,6 +369,9 @@ public class Core {
editor.putString("BytesSentReport", _BytesSentReport);
editor.putString("HelloSignalReport", _HelloSignalReport);
editor.putString("BatteryLevelReport", _BatteryLevelReport);
+ editor.putString("RoamingReport", _RoamingReport);
+ editor.putString("webName", _webName);
+
if (editor.commit()) {
return true;
}
diff --git a/pandora_agents/android/src/pandroid/agent/EventReceiver.java b/pandora_agents/android/src/pandroid/agent/EventReceiver.java
index aa0b3ee7b3..95630a39e6 100644
--- a/pandora_agents/android/src/pandroid/agent/EventReceiver.java
+++ b/pandora_agents/android/src/pandroid/agent/EventReceiver.java
@@ -17,7 +17,6 @@ package pandroid.agent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
-//import android.util.Log;
public class EventReceiver extends BroadcastReceiver {
diff --git a/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java b/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java
index b1b6c74442..420e8963fc 100644
--- a/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java
+++ b/pandora_agents/android/src/pandroid/agent/PandroidAgentListener.java
@@ -53,7 +53,6 @@ import android.os.SystemClock;
import android.telephony.PhoneStateListener;
import android.telephony.SignalStrength;
import android.telephony.TelephonyManager;
-
import android.util.Log;
public class PandroidAgentListener extends Service {
@@ -191,6 +190,8 @@ public class PandroidAgentListener extends Service {
String receiveBytes = getSharedData("PANDROID_DATA", "receiveBytes", ""+Core.defaultReceiveBytes, "long");
String transmitBytes = getSharedData("PANDROID_DATA", "transmitBytes", ""+Core.defaultTransmitBytes, "long");
String helloSignal = getSharedData("PANDROID_DATA", "helloSignal", ""+Core.defaultHelloSignal, "integer");
+ String roaming = getSharedData("PANDROID_DATA", "roaming", ""+Core.defaultRoaming, "integer");
+
String SimIDReport = getSharedData("PANDROID_DATA", "SimIDReport", Core.defaultSimIDReport, "string");
String DeviceUpTimeReport = getSharedData("PANDROID_DATA", "DeviceUpTimeReport", Core.defaultDeviceUpTimeReport, "string");
String NetworkOperatorReport = getSharedData("PANDROID_DATA", "NetworkOperatorReport", Core.defaultNetworkOperatorReport, "string");
@@ -206,6 +207,7 @@ public class PandroidAgentListener extends Service {
String BytesSentReport = getSharedData("PANDROID_DATA", "BytesSentReport", Core.defaultBytesSentReport, "string");
String HelloSignalReport = getSharedData("PANDROID_DATA", "HelloSignalReport", Core.defaultHelloSignalReport, "string");
String BatteryLevelReport = getSharedData("PANDROID_DATA", "BatteryLevelReport", Core.defaultBatteryLevelReport, "string");
+ String RoamingReport = getSharedData("PANDROID_DATA", "RoamingReport", Core.defaultRoamingReport, "string");
if (BatteryLevelReport.equals("enabled"))
buffer += buildmoduleXML("battery_level", "The current Battery level", "generic_data", batteryLevel);
@@ -267,6 +269,8 @@ public class PandroidAgentListener extends Service {
buffer += buildmoduleXML("receiveBytes","Bytes received(mobile)", "generic_data", receiveBytes);
if (BytesSentReport.equals("enabled"))
buffer += buildmoduleXML("transmitBytes","Bytes transmitted(mobile)", "generic_data", transmitBytes);
+ if (RoamingReport.equals("enabled"))
+ buffer += buildmoduleXML("roaming","Device is roaming", "generic_data", roaming);
}// end if sim card
if (HelloSignalReport.equals("enabled"))
buffer += buildmoduleXML("helloSignal","Hello Signal", "generic_data", helloSignal);
@@ -472,6 +476,7 @@ public class PandroidAgentListener extends Service {
getSignalStrength();
getCalls();
getDataBytes();
+ getRoaming();
}
}
@@ -788,6 +793,18 @@ public class PandroidAgentListener extends Service {
}
+ public void getRoaming()
+ {
+ TelephonyManager telephone = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
+ boolean roaming = telephone.isNetworkRoaming();
+
+ if(roaming)
+ putSharedData("PANDROID_DATA", "roaming", "1", "integer" );
+ else
+ putSharedData("PANDROID_DATA", "roaming", "0", "integer" );
+
+ }
+
private void putSharedData(String preferenceName, String tokenName, String data, String type) {
int mode = Activity.MODE_PRIVATE;
diff --git a/pandora_agents/android/src/pandroid/agent/SMSBroadcastReceiver.java b/pandora_agents/android/src/pandroid/agent/SMSBroadcastReceiver.java
index b068732157..8da48418db 100644
--- a/pandora_agents/android/src/pandroid/agent/SMSBroadcastReceiver.java
+++ b/pandora_agents/android/src/pandroid/agent/SMSBroadcastReceiver.java
@@ -17,7 +17,6 @@ package pandroid.agent;
import android.app.Activity;
import android.content.BroadcastReceiver;
-
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
diff --git a/pandora_agents/android/src/pandroid/agent/Setup.java b/pandora_agents/android/src/pandroid/agent/Setup.java
index 0643073f19..5706852dc2 100644
--- a/pandora_agents/android/src/pandroid/agent/Setup.java
+++ b/pandora_agents/android/src/pandroid/agent/Setup.java
@@ -25,24 +25,27 @@ import android.app.Dialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
+import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
+import android.text.TextUtils;
+import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
+import android.view.WindowManager;
+import android.view.WindowManager.LayoutParams;
+import android.view.inputmethod.InputMethodManager;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ProgressBar;
+import android.widget.RelativeLayout;
import android.widget.Spinner;
import android.widget.Toast;
-import android.view.WindowManager;
-import android.view.inputmethod.InputMethodManager;
-import android.text.TextUtils;
-import android.util.Log;
public class Setup extends Activity {
@@ -60,28 +63,47 @@ public class Setup extends Activity {
listProcesses = new HashMap();
Core.loadConf(getApplicationContext());
-
- if(Core.hasSim)
- setContentView(R.layout.setup);
- else
- setContentView(R.layout.setupnosim);
- loadViews();
- loadInBackgroundProcessInExecution();
- setButtonEvents();
+
}
public void onResume() {
super.onResume();
- Log.v(LOG_TAG,"password check resume"+Core.passwordCheck);
+
+ if(Core.hasSim)
+ setContentView(R.layout.setup);
+ else
+ setContentView(R.layout.setupnosim);
+
+
+ loadViews();
+
+ loadInBackgroundProcessInExecution();
+
+ setButtonEvents();
+
if(Core.password.equals(Core.defaultPassword))
{
if(Core.passwordCheck.equals("enabled"))
passwordChoose();
- }
- else{
+
+ }else{
+
+ LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
+ View view=inflater.inflate(R.layout.setup, null);
+ RelativeLayout setup = (RelativeLayout)view.findViewById(R.id.setup);
+ setContentView(setup);
+ setup.setVisibility(RelativeLayout.INVISIBLE);
+
enterpass();
+
+
+
}
+
+
+
+
}
//For options
@@ -146,6 +168,20 @@ public class Setup extends Activity {
}
+ });
+
+ Button webButton = (Button) findViewById(R.id.goToWebButton);
+
+ webButton.setOnClickListener(new OnClickListener() {
+ public void onClick(View view) {
+
+ Uri uri = Uri.parse(Core.webName);
+ Intent intent = new Intent(Intent.ACTION_VIEW, uri);
+ startActivity(intent);
+
+ }
+
+
});
}// end setButtonEvents
@@ -239,6 +275,9 @@ public class Setup extends Activity {
button = (Button)findViewById(R.id.set_password);
button.setEnabled(true);
+ button = (Button)findViewById(R.id.goToWebButton);
+ button.setEnabled(true);
+
}
}// end onPostExecute
@@ -262,6 +301,9 @@ public class Setup extends Activity {
editText = (EditText) findViewById(R.id.agentNameInput);
Core.agentName = editText.getText().toString();
+
+ editText = (EditText) findViewById(R.id.webNameInput);
+ Core.webName = editText.getText().toString();
checkBox = (CheckBox) findViewById(R.id.checkGpsReport);
if (checkBox.isChecked())
@@ -379,6 +421,12 @@ public class Setup extends Activity {
Core.BytesSentReport = "enabled";
else
Core.BytesSentReport = "disabled";
+
+ checkBox = (CheckBox) findViewById(R.id.checkRoamingReport);
+ if (checkBox.isChecked())
+ Core.RoamingReport = "enabled";
+ else
+ Core.RoamingReport = "disabled";
}// end if sim card
checkBox = (CheckBox) findViewById(R.id.checkHelloSignalReport);
@@ -406,6 +454,9 @@ public class Setup extends Activity {
editText = (EditText) findViewById(R.id.agentNameInput);
editText.setText(Core.agentName);
+
+ editText = (EditText) findViewById(R.id.webNameInput);
+ editText.setText(Core.webName);
checkBox = (CheckBox) findViewById(R.id.checkGpsReport);
checkBox.setChecked(Core.gpsStatus.equals("enabled"));
@@ -459,6 +510,9 @@ public class Setup extends Activity {
checkBox = (CheckBox) findViewById(R.id.checkBytesSentReport);
checkBox.setChecked(Core.BytesSentReport.equals("enabled"));
+
+ checkBox = (CheckBox) findViewById(R.id.checkRoamingReport);
+ checkBox.setChecked(Core.RoamingReport.equals("enabled"));
}//end if sim card
checkBox = (CheckBox) findViewById(R.id.checkHelloSignalReport);
@@ -617,11 +671,12 @@ public class Setup extends Activity {
public void enterpass() {
//set up dialog
- final Dialog dialog = new Dialog(this);
+ final Dialog dialog = new Dialog(this,android.R.style.Theme_Black_NoTitleBar_Fullscreen);
dialog.setContentView(R.layout.password_entry);
dialog.setTitle(getString(R.string.password_enter));
dialog.setCancelable(false);
dialog.getWindow().setSoftInputMode (WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
+ dialog.getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN);
//there are a lot of settings, for dialog, check them all out!
//set up text
@@ -645,6 +700,29 @@ public class Setup extends Activity {
InputMethodManager im = (InputMethodManager)getSystemService(getApplicationContext().INPUT_METHOD_SERVICE);
im.hideSoftInputFromWindow(text.getWindowToken(), 0);
dialog.dismiss();
+
+ if(Core.hasSim){
+ LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
+ View view=inflater.inflate(R.layout.setup, null);
+ RelativeLayout setup = (RelativeLayout)view.findViewById(R.id.setup);
+ setContentView(setup);
+ loadViews();
+ loadInBackgroundProcessInExecution();
+ setButtonEvents();
+ setup.setVisibility(RelativeLayout.VISIBLE);
+ }
+ else{
+ LayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);
+ View view=inflater.inflate(R.layout.setupnosim, null);
+ RelativeLayout setupnosim = (RelativeLayout)view.findViewById(R.id.setupnosim);
+ setContentView(setupnosim);
+ loadViews();
+ loadInBackgroundProcessInExecution();
+ setButtonEvents();
+ setupnosim.setVisibility(RelativeLayout.VISIBLE);
+ }
+
+
}
else
{
@@ -676,7 +754,7 @@ public class Setup extends Activity {
});
dialog.show();
-
+
}// end enterPass
/**
diff --git a/pandora_agents/android/src/pandroid/agent/Status.java b/pandora_agents/android/src/pandroid/agent/Status.java
index a5d892c9c4..e03a3ab256 100644
--- a/pandora_agents/android/src/pandroid/agent/Status.java
+++ b/pandora_agents/android/src/pandroid/agent/Status.java
@@ -17,7 +17,8 @@ package pandroid.agent;
import java.util.Date;
import android.app.Activity;
-import android.content.*;
+import android.content.Intent;
+import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
@@ -28,7 +29,6 @@ import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;
-import android.widget.Toast;
//import android.util.Log;
@@ -71,7 +71,7 @@ public class Status extends Activity {
h.postDelayed(this, 1000);
}
});
- //set to 1 for first contact
+
}
//For options
@@ -345,6 +345,10 @@ public class Status extends Activity {
textView = (TextView)findViewById(R.id.transmit_bytes_value);
textView.setText("");
textView.setText("" + Core.transmitBytes);
+
+ textView = (TextView)findViewById(R.id.roaming_value);
+ textView.setText("");
+ textView.setText("" + Core.roaming);
}//end simID if