|
@@ -185,7 +185,7 @@ public class MainActivity extends Activity {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Called when User presses on/off button
|
|
|
+ * Called when User presses on/off button.
|
|
|
* @param view
|
|
|
*/
|
|
|
public void buttonOnOffClick(View view) {
|
|
@@ -203,7 +203,7 @@ public class MainActivity extends Activity {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Starts the ViewLog activity, when the Button is pressed
|
|
|
+ * Starts the ViewLog activity, when the Button is pressed.
|
|
|
* @see ViewLog
|
|
|
* @param view View elements which triggers the method call.
|
|
|
*/
|
|
@@ -301,8 +301,7 @@ public class MainActivity extends Activity {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Initializes the ListView. Creating its contents dynamic from protocol protocols.xml
|
|
|
- * @see /res/values/protocols.xml
|
|
|
+ * Initializes the ListView. Creating its contents dynamic from protocol res/values/protocols.xml
|
|
|
*/
|
|
|
private void initListView() {
|
|
|
ArrayList<HashMap<String, String>> data = new ArrayList<HashMap<String, String>>();
|
|
@@ -345,9 +344,8 @@ public class MainActivity extends Activity {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Checks if a HoneService instance is running.
|
|
|
- * @return True if HonerService is running, else false.
|
|
|
- * @see HonerService
|
|
|
+ * Checks if a {@link HoneyService} instance is running.
|
|
|
+ * @return True if {@link HoneyService} is running, else false.
|
|
|
*/
|
|
|
private boolean isServiceRunning() {
|
|
|
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
|
|
@@ -369,7 +367,7 @@ public class MainActivity extends Activity {
|
|
|
|
|
|
/**
|
|
|
* Register broadcast receiver for custom broadcast.
|
|
|
- * @see MainActivity#BROADCAST
|
|
|
+ * @see #BROADCAST
|
|
|
*/
|
|
|
private void registerReceiver() {
|
|
|
LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver,
|
|
@@ -378,7 +376,7 @@ public class MainActivity extends Activity {
|
|
|
|
|
|
/**
|
|
|
* Unregisters broadcast receiver for custom broadcast.
|
|
|
- * @see MainActivity#BROADCAST
|
|
|
+ * @see #BROADCAST
|
|
|
*/
|
|
|
private void unregisterReceiver() {
|
|
|
LocalBroadcastManager.getInstance(this).unregisterReceiver(mReceiver);
|
|
@@ -386,7 +384,7 @@ public class MainActivity extends Activity {
|
|
|
|
|
|
/**
|
|
|
* Receiver for custom broadcast.
|
|
|
- * @see MainActivity#BROADCAST
|
|
|
+ * @see #BROADCAST
|
|
|
*/
|
|
|
private BroadcastReceiver mReceiver = new BroadcastReceiver() {
|
|
|
@Override
|
|
@@ -489,10 +487,10 @@ public class MainActivity extends Activity {
|
|
|
/**
|
|
|
* Sets the big light indicator.
|
|
|
* @param light Integer code to set the light color.
|
|
|
- * @see MainActivity#LIGHT_GREY
|
|
|
- * @see MainActivity#LIGHT_GREEN
|
|
|
- * @see MainActivity#LIGHT_RED
|
|
|
- * @see MainActivity#LIGHT_YELLOW
|
|
|
+ * @see #LIGHT_GREY
|
|
|
+ * @see #LIGHT_GREEN
|
|
|
+ * @see #LIGHT_RED
|
|
|
+ * @see #LIGHT_YELLOW
|
|
|
*/
|
|
|
private void updateStatusLight(int light) {
|
|
|
switch (light) {
|