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