This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.codehaus.jackson.JsonGenerationException; | |
| import org.codehaus.jackson.JsonParseException; | |
| import org.codehaus.jackson.map.JsonMappingException; | |
| import org.codehaus.jackson.map.ObjectMapper; | |
| public class User { | |
| // MEMO : Jackson用のフィールド定義 | |
| private int id; | |
| private String name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // MEMO : SQLiteOpenHelperによるSQL操作 | |
| SQLiteHelper helper = SQLiteHelper.GetInstance(this); | |
| SQLiteDatabase db = helper.getWritableDatabase(); | |
| // MEMO : データ量が多い場合はトランザクションを使用する | |
| db.beginTransaction(); | |
| try { | |
| // MEMO : レコード登録 SQL文使用、insertメソッドの2パターン | |
| Organization.insertOrganization(db, "Salon_Group"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final AsyncHttpClient client = new AsyncHttpClient(); | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_home); | |
| Button btn = (Button)findViewById(R.id.button1); | |
| btn.setOnClickListener(new View.OnClickListener() { |