/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{ NSDictionary rootDict = getNSDFromPath(context, mapPinPath); int len = rootDict.count(), i; for(i=1; i<=len; i++) { NSDictionary NSItem = (NSDictionary) rootDict.objectForKey("Item"+i); NSDictionary NSMap = (NSDictionary) NSItem.objectForKey("Real"); NSObject NSMapX = NSMap.objectForKey("x"); NSObject NSMapY = NSMap.objectForKey("y"); NSDictionary NSReal = (NSDictionary) NSItem.objectForKey("Map"); NSObject NSRealX = NSReal.objectForKey("x"); NSObject NSRealY = NSReal.objectForKey("y"); //Log.d("NSObject","NSO: " + NSItem); } } try { return (NSDictionary) PropertyListParser.parse(context.getAssets().open(path)); // TODO Auto-generated catch block e.printStackTrace(); } return null; }