you have to set the parameter layers through an Array. You have to specify which layer/layers of the map service you are accessing so change or alter this line
"params.setLayers(new int[]{0});" in the curly braces change specify the layer/layer the tool has to access. for ed params.setLayers(new int[]{0,1,2,3});
Hello,
I m currently using the new ArcSDK 10.2.3. The problem is that I can not change the layer to identify. Whaterver I put, it will do the identify tasks in all the layers. Does the function setLayer function not any more?