public Activity jsonToActivity(JSONObject jsonObject)throws JSONException
	{
		Activity activity = new Activity();
		
		if(jsonObject.has("id"))
		{
			activity.setId(jsonObject.getLong("id"));	//No I18N
		}
		if(jsonObject.has("name"))
		{
			activity.setName(jsonObject.getString("name"));
		}
		if(jsonObject.has("state"))
		{
			activity.setState(jsonObject.getString("state"));
		}
		if(jsonObject.has("activity_by"))
		{
			activity.setActivityBy(jsonObject.getString("activity_by"));
		}
		if(jsonObject.has("time_long"))
		{
			activity.setTimeLong(jsonObject.getLong("time_long"));	//No I18N
		}
		if(jsonObject.has("display_time"))
		{
			activity.setDisplayTime(jsonObject.getString("display_time"));
		}
		if(jsonObject.has("time"))
		{
			activity.setTime(jsonObject.getString("time"));
		}
		if(jsonObject.has("activity_for"))
		{
			activity.setActivityFor(jsonObject.getString("activity_for"));
		}
			
		return activity;
		
		
	}