AnsweredAssumed Answered

How to see attributes fields associated with a layer from my published map service?

Question asked by JFA0427 on Aug 16, 2012
Latest reply on Nov 26, 2012 by JFA0427
I'm new to this...bear with me.

I'm trying to view the attributes associated with my published map service layer.
There is only one layer within my published map service.

I first call on ESRI's ArcGISTiledMapServiceLayer.
Then I call on my ArcGISDynamicMapServiceLayer.
See picture.

package com.dhec.MPOS;  import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISDynamicMapServiceLayer; import com.esri.android.map.ags.ArcGISTiledMapServiceLayer;  import android.app.Activity; import android.os.Bundle;  public class PopUp extends Activity {   MapView map = null;     /** Called when the activity is first created. */          public void onCreate(Bundle savedInstanceState) {   super.onCreate(savedInstanceState);          setContentView(R.layout.popup);    // Retrieve the map and initial extent from XML layout   map = (MapView) findViewById (R.id.popup);           //Layer 0 - Called first   map.addLayer(new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services                           World_Street_Map      /MapServer"));   //Layer 1 - Called second   map.addLayer(new ArcGISDynamicMapServiceLayer("http://TEST/ArcGIS/rest/services/Mobile/MPOS/MapServer"));             } }


The code that should come next is what's confusing me.
I know I need some sort of onSingleTapListener or something to initiate the process, then I want my fields associated with the layer to appear.

Which do I use? (I just want a default window to appear.)

1. IdentifyTask?
2. Callout?
3. PopupContainer?
ect...

Can someone post some basic code or point me in the right direction.
I feel like this is simple.

Thanks.

Attachments

Outcomes