title: map an object android
body: <p>Hi im trying to create an array of the keys/values in a Object from a map. i have a function in a global actions class that formulates a url by passing in Objects with values in breaking them up to form a string to add to my url. does anyone know how to map an object and extract all the keys/values to a string?</p>
  
  <p>heres what i have so far   </p>
  
  <pre><code>public final static void startAPICallRequest(Context activityContext, String request, String apiLocation, Object postVarsObj, JSONObject getVarsObj){
  
              long unixTimeStamp = System.currentTimeMillis() / 1000L;
  
              Log.v("globals", "getVarsObj: " + getVarsObj);
  
  
  
  
                  if(getVarsObj != null){
  
               Map map = (Map) getVarsObj;
               for (Object key : map.keySet()) {
                   ((Object) getVarsObj).toString();
  
              }
  
               Log.v("globals","map=" + map);
  
          }
  
          }
  </code></pre>