GraphicsLayer  getGraphicIDs    Error

3519
11
06-16-2013 06:24 PM
yongbolee
New Contributor
Running time Eviroument is : Arcgis SDK for android 2.0

  problem description:
        when i calling   GraphicsLayer's getGraphicIDs method will get a Error like-[ATTACH=CONFIG]25297[/ATTACH]
        this mapView will black screen at the same time.
 
   i want to know if this problem is a bug for 2.0 SDK?

  who can help me ??

  i have not occur it if user Arcgis SDK for android 1.0.
0 Kudos
11 Replies
Yunus_SupriadiWijaya
New Contributor III
Problem solved,

Android SDK only work on device but not on emulator
0 Kudos
Sharadarya
New Contributor
I am not sure that this issue will be resolved in Android SDK 10.1.1 update 1 but I resolved this issue from SelectFeatures method of the featurelayer and get the callback. like this way...
                                        ArrayList<Graphic> lstGraphics = new ArrayList<Graphic>();                                      
                                        featureLayer.selectFeatures(query, SELECTION_METHOD.NEW, new CallbackListener<FeatureSet>() {

      @Override
      public void onCallback(FeatureSet fs) {
       // TODO Auto-generated method stub
      
       Graphic[] features =  fs.getGraphics();
       for (Graphic feature : features)
       {
        if (feature == null)
         continue;
        lstGraphics.add(feature);
       }
      
          Graphic[] graphics= lstGraphics.toArray(new Graphic[0]);
      
      
      }
                                       }

Happy Coding.......
Sharad Arya
0 Kudos