Revision: 58593
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 23, 2012 18:44 by l01241
Initial Code
{ 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); } } private NSDictionary getNSDFromPath(Context context, String path) { try { return (NSDictionary) PropertyListParser.parse(context.getAssets().open(path)); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
Initial URL
Initial Description
Initial Title
Android plist Parser using dd-plist
Initial Tags
android
Initial Language
Java