It runs normally on the Android emulator, but not on the actual device.

Asked 2 years ago, Updated 2 years ago, 118 views

We are currently making a weather application after receiving JSON from the openweathermap site.

In the emulator, the weather data values are parsed normally

On the actual terminal, only the drawble or icon indicating the temperature appears, and the weather data value does not appear.

Usually, the actual terminal cannot parse JSON or XML files?

1. This is the permission of the current app

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

There is nothing wrong with them or manifest, so I wonder if you missed anything.

android parse weather

2022-09-22 13:32

1 Answers

Take a log and check it out.

I don't know if I'm good at parsing when I get paid Or you don't even get paid.

If you ask me like this, I don't know.


2022-09-22 13:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.