Added MainActivity menu option to view log files (via web interface).
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
region of interest.
|
||||
- Fixed problem with log files not showing on web interface.
|
||||
- Added system log file to help with de-bugging start-up/shutdown issues.
|
||||
- Added main activity menu option to view log files (via web browser).
|
||||
- Added options to switch off spectrum display on watch to save battery.
|
||||
- Reduced ammount of bluetooth comms to the watch to save battery.
|
||||
- Added support for future watch app features (such as raw mode and digital
|
||||
|
||||
@@ -228,10 +228,16 @@ public class MainActivity extends Activity {
|
||||
case R.id.action_logs:
|
||||
Log.v(TAG, "action_logs");
|
||||
try {
|
||||
Intent prefsIntent = new Intent(
|
||||
MainActivity.this,
|
||||
LogManagerActivity.class);
|
||||
this.startActivity(prefsIntent);
|
||||
String url = "http://"
|
||||
+ mUtil.getLocalIpAddress()
|
||||
+ ":8080/logfiles.html";
|
||||
Intent i = new Intent(Intent.ACTION_VIEW);
|
||||
i.setData(Uri.parse(url));
|
||||
startActivity(i);
|
||||
//Intent prefsIntent = new Intent(
|
||||
// MainActivity.this,
|
||||
// LogManagerActivity.class);
|
||||
//this.startActivity(prefsIntent);
|
||||
} catch (Exception ex) {
|
||||
Log.v(TAG, "exception starting log manager activity " + ex.toString());
|
||||
}
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
android:id="@+id/action_logs"
|
||||
android:icon="@drawable/ic_action_settings"
|
||||
android:showAsAction="never|withText"
|
||||
android:title="View/Edit Log Entries"
|
||||
android:enabled="false"
|
||||
android:title="View Log Entries"
|
||||
android:enabled="true"
|
||||
/>
|
||||
|
||||
<item
|
||||
|
||||
Reference in New Issue
Block a user