5
I got the following:
data = new Json().execute(URL).get();
System.out.println(data);
if (!data.isEmpty()) { //erro neste data.isEmpty
I have a mistake:
has an error: Call requires API level 9 (Current min is 8): java.lang.String#isEmpty
Android Apis below 9 have this limitation even, they do not implement the
isEmpty()
, I’m not sure why.– Piovezan
@Piovezan had not even thought it could be Android. Still it’s crazy, because it exists since the 6.
– Maniero