error nachricht erstellt

This commit is contained in:
m_broelemann 2021-01-07 17:34:26 +01:00
parent 1630c2fe89
commit fba2cac39f

View File

@ -1,6 +1,7 @@
package com.example.aped.ui.visualization;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
@ -84,7 +85,9 @@ public class PinView {
jsonObject, response -> displayLamp(response,
view1, i));
} catch (JSONException e) {
e.printStackTrace(); // dd
Log.e("PinView",
"Error while generating JSON object: "
+ e.getMessage());
}
break;
case "PWM":
@ -116,7 +119,9 @@ public class PinView {
+ "%) </b>"));
});
} catch (JSONException e) {
e.printStackTrace(); // aaaaa
Log.e("PinView",
"Error while generating JSON object: "
+ e.getMessage());
}
dialog.cancel();
});
@ -170,8 +175,8 @@ public class PinView {
}
imageView.setImageResource(image);
} catch (JSONException e) {
// Richtigen log erstellen
e.printStackTrace();
Log.e("PinView", "Error while generating JSON object: "
+ e.getMessage());
}
}
}