I would like to make a conditional if statement. So if textview says x then do y. Is this possible? I have been trying to use the following code
if(tvresult.getText() == ("Environment"){
testView.setText("NotAssignYet");
The tvresult textview is showing the following text
[
{"Sensor Type": "Environment",
"Sensor ID":"5a7de613e13508be088dc4a8",
"Vendor Name":"Monnit",
"Vendor ID": "5a7ddc2de13508be088dc4a7",
"Project Location Name": "862 White Street, Dubuque, IA, 52001",
"Project Location ID": "5a01c555ad63f900b5411eed",
"Gateway Name": "Gateway Test - Planning Stage",
"Gateway ID":"5b1836f3389a4eaa38ff887f",
"Vendor Sensor Type": "Temperature Test - Planning Stage",
"Vendor Sensor ID": "NotAssignedYet"}
]
Is it possible to do what I am asking?
Aucun commentaire:
Enregistrer un commentaire