2013-05-16 Mark Holland <mark@mark-holland.me.uk>

* src/pandroid/agent/PandroidAgentListener.java: Fixed
	values not showing up on status view when pandroid activity
	killed. Corrected spelling mistake of receiveBytes. Removed
	last_gps_contact module, wasn't implemented.

    * Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.

git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8147 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
markholland 2013-05-16 19:36:32 +00:00
parent b6e90e5278
commit b8fa2708f9
4 changed files with 17 additions and 5 deletions

View File

@ -1,3 +1,12 @@
2013-05-16 Mark Holland <mark@mark-holland.me.uk>
* src/pandroid/agent/PandroidAgentListener.java: Fixed
values not showing up on status view when pandroid activity
killed. Corrected spelling mistake of receiveBytes. Removed
last_gps_contact module, wasn't implemented.
* Pandroid Agent v3.0_iso-8859-1.apk: Updated to latest version.
2013-05-16 Mark Holland <mark@mark-holland.me.uk> 2013-05-16 Mark Holland <mark@mark-holland.me.uk>
* res/values: Added report inventory string to all languages. * res/values: Added report inventory string to all languages.

View File

@ -183,6 +183,7 @@ public class PandroidAgentListener extends Service {
@Override @Override
protected Void doInBackground(Void... params) { protected Void doInBackground(Void... params) {
Core.loadConf(getApplicationContext()); Core.loadConf(getApplicationContext());
Core.loadLastValues(getApplicationContext());
return null; return null;
} }
@ -466,7 +467,7 @@ public class PandroidAgentListener extends Service {
buffer += buildmoduleXML("freeRamMemory", "The percentage of available ram.", "generic_data", buffer += buildmoduleXML("freeRamMemory", "The percentage of available ram.", "generic_data",
formatPercent.format(freeMemory.doubleValue())); formatPercent.format(freeMemory.doubleValue()));
} }
buffer += buildmoduleXML("last_gps_contact", "Datetime of the last geo-location contact", "generic_data", lastGpsContactDateTime); //buffer += buildmoduleXML("last_gps_contact", "Datetime of the last geo-location contact", "generic_data", lastGpsContactDateTime);
if (DeviceUpTimeReport.equals("enabled")) if (DeviceUpTimeReport.equals("enabled"))
buffer += buildmoduleXML("upTime","Total device uptime in seconds.", "generic_data", upTime); buffer += buildmoduleXML("upTime","Total device uptime in seconds.", "generic_data", upTime);
@ -485,7 +486,7 @@ public class PandroidAgentListener extends Service {
if (SignalStrengthReport.equals("enabled")) if (SignalStrengthReport.equals("enabled"))
buffer += buildmoduleXML("signalStrength","Signal strength (dB)", "generic_data_string", signalStrength); buffer += buildmoduleXML("signalStrength","Signal strength (dB)", "generic_data_string", signalStrength);
if (ReceivedSMSReport.equals("enabled")) if (ReceivedSMSReport.equals("enabled"))
buffer += buildmoduleXML("SMSRecieved","Number of SMS received", "generic_data", SMSReceived); buffer += buildmoduleXML("SMSReceived","Number of SMS received", "generic_data", SMSReceived);
if (SentSMSReport.equals("enabled")) if (SentSMSReport.equals("enabled"))
buffer += buildmoduleXML("SMSSent","Number of SMS sent", "generic_data", SMSSent); buffer += buildmoduleXML("SMSSent","Number of SMS sent", "generic_data", SMSSent);
if (IncomingCallsReport.equals("enabled")) if (IncomingCallsReport.equals("enabled"))

View File

@ -14,8 +14,6 @@
package pandroid.agent; package pandroid.agent;
import java.util.Date;
import android.app.Activity; import android.app.Activity;
import android.content.Intent; import android.content.Intent;
import android.graphics.Color; import android.graphics.Color;
@ -27,6 +25,8 @@ import android.view.MenuInflater;
import android.view.MenuItem; import android.view.MenuItem;
import android.widget.TextView; import android.widget.TextView;
import java.util.Date;
public class Status extends Activity { public class Status extends Activity {
Handler h = new Handler(); Handler h = new Handler();
@ -62,6 +62,8 @@ public class Status extends Activity {
} }
public void onStart(){ public void onStart(){
super.onStart(); super.onStart();