@@ -0,0 +1,578 @@
+package com.bignerdranch.criminalintent;%0A%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Apublic class Photo %7B%0A%09private static final String JSON_FILENAME = %22filename%22;%0A%09private String mFilename;%0A%09%0A%09public Photo(String filename) %7B%0A%09%09mFilename = filename;%0A%09%7D%0A%09%0A%09public Photo(JSONObject json) throws JSONException %7B%0A%09%09mFilename = json.getString(JSON_FILENAME);%0A%09%7D%0A%09%0A%09public JSONObject toJson() throws JSONException %7B%0A%09%09JSONObject json = new JSONObject();%0A%09%09json.put(JSON_FILENAME, mFilename);%0A%09%09return json;%0A%09%7D%0A%09%0A%09public String getFilename() %7B%0A%09%09return mFilename;%0A%09%7D%0A%7D%0A

test activity