i’m beginning to learn android, i meet a problem in my project,
in my application,i create a background thread which get data from remote server by UDP,
in this thread ,i will parse the data and distribute the message to different activity to process, so i don’t know weather is there a mechanism to handle this problem.
thanks for your answer
You should take a look at this article about painless threading in android, and pick a solution that best fits for you.
If you retrieve data from the server repeatedly, maybe you should go with a
Service–Handlersolution, butAsyncTaskseams to be the easiest for me.