Start a new topic

Trouble using Target API in Android

Trouble using Target API in Android

Hi all,

I have a trouble with the Target API.

I have created an Android application which implements the sample Java code from Git Hub, using an Async Task to get the .wtc. I?m trying to  get the .wtc file for the image URLs that you have inserted into the String array called ?IMAGE_URLS?. In your sample code you have:

String IMAGE_URLS = {


"" };

But when I try to run my application, it doesn't work.

The application show the following error:


W/System.err? at

W/System.err? at com.david.pruebaapi.sAPI.sendRequest(

W/System.err? at com.david.pruebaapi.sAPI.convert(

W/System.err? at com.david.pruebaapi.GetWTCfromURL.doInBackground(

W/System.err? at com.david.pruebaapi.GetWTCfromURL.doInBackground(

W/System.err? at android.os.AsyncTask$

W/System.err? at

W/System.err? at android.os.AsyncTask$SerialExecutor$

W/System.err? at java.util.concurrent.ThreadPoolExecutor.runWorker(

W/System.err? at java.util.concurrent.ThreadPoolExecutor$

W/System.err? at

(GetWTCfromURL is the class which execute the Async Task )


But It works if I put only one URL like:

String IMAGE_URLS = {

"" };


I don?t understand why it happens. 

This is the last thing I need to finalize my project.

Can you help me with this? 

Do you have an Android application where Target API works with multiple URLs and runs without errors?


Thank you for your time.




Hi David,

Thanks to trying out our Targets API.

I guess you own a Targets API TRIAL account: it has the limitation of 1 target per call.

Another tip: the URL of the Targets API endpoint is 

I hope it helped!

Have a nice day,

Login or Signup to post a comment