I have activity which can show overlay. This overlay have markers which gets from web.
How can I implements lazy loading from URL for this markers?
Thx, Igor
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you need to do is get create an AsyncTask to retrieve your data. Once the async task executes and you have the data the UI thread will call onPostExecute(). In your onPostExecute() method you will add your data to your map view the same you would in the example android code.
Here’s the a mostly complete example. You should be able to fill in the holes with this.