please help me in this as I am new to android. while parsing the json, I am retreiving the values of paricular Json Object when selected a partcular Json object.
Asked
Active
Viewed 170 times
1 Answers
1
android.os.NetworkOnMainThreadException
This error shows you are using json parsing in the main thread.
You need to use AsynkTask
.
Basically this error tells us doing to much of work on the onCreate method. So you must use asynkTask for avoiding this.

Amsheer
- 7,046
- 8
- 47
- 81