error nachricht erstellt
This commit is contained in:
parent
1630c2fe89
commit
fba2cac39f
@ -1,6 +1,7 @@
|
|||||||
package com.example.aped.ui.visualization;
|
package com.example.aped.ui.visualization;
|
||||||
|
|
||||||
import android.text.Html;
|
import android.text.Html;
|
||||||
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
@ -84,7 +85,9 @@ public class PinView {
|
|||||||
jsonObject, response -> displayLamp(response,
|
jsonObject, response -> displayLamp(response,
|
||||||
view1, i));
|
view1, i));
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
e.printStackTrace(); // dd
|
Log.e("PinView",
|
||||||
|
"Error while generating JSON object: "
|
||||||
|
+ e.getMessage());
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "PWM":
|
case "PWM":
|
||||||
@ -116,7 +119,9 @@ public class PinView {
|
|||||||
+ "%) </b>"));
|
+ "%) </b>"));
|
||||||
});
|
});
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
e.printStackTrace(); // aaaaa
|
Log.e("PinView",
|
||||||
|
"Error while generating JSON object: "
|
||||||
|
+ e.getMessage());
|
||||||
}
|
}
|
||||||
dialog.cancel();
|
dialog.cancel();
|
||||||
});
|
});
|
||||||
@ -170,8 +175,8 @@ public class PinView {
|
|||||||
}
|
}
|
||||||
imageView.setImageResource(image);
|
imageView.setImageResource(image);
|
||||||
} catch (JSONException e) {
|
} catch (JSONException e) {
|
||||||
// Richtigen log erstellen
|
Log.e("PinView", "Error while generating JSON object: "
|
||||||
e.printStackTrace();
|
+ e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user