Android 70??????????????
???????????? ???????[ 2013/4/12 10:17:06 ] ????????????
????3).???????汾?仯??????diary????????′?????diary???
????publicclass DBHelper extends SQLiteOpenHelper{
????public final static String DATABASENAME ="diaryOpenHelper.db";
????public final static int DATABASEVERSION =1;
????//?????????
????public DBHelper(Context context??Stringname??CursorFactory factory??int version)
????{
????super(context?? name?? factory??version);
????}
????//???????????????
????public void onCreate(SQLiteDatabase db)
????{
????String sql ="create tablediary"+
????"("+
????"_idinteger primary key autoincrement??"+
????"topicvarchar(100)??"+
????"contentvarchar(1000)"+
????")";
????db.execSQL(sql);
????}
????//???????汾?и??£??????????
????public void onUpgrade(SQLiteDatabasedb??int oldVersion??int newVersion)
????{
????String sql = "drop table ifexists diary";
????db.execSQL(sql);
????this.onCreate(db);
????}
????}
????37. ?????????ProgressBar???progressBar????????д?????10????????????????????????(10??)??
????publicclass ProgressBarStu extends Activity {
????private ProgressBar progressBar = null;
????protected void onCreate(BundlesavedInstanceState) {
????super.onCreate(savedInstanceState);
????setContentView(R.layout.progressbar);
????//??????????
????progressBar = (ProgressBar)findViewById(R.id.progressBar);
????Thread thread = new Thread(newRunnable() {
????@Override
????public void run() {
????int progressBarMax =progressBar.getMax();
????try {
????while(progressBarMax!=progressBar.getProgress())
????{
????intstepProgress = progressBarMax/10;
????intcurrentprogress = progressBar.getProgress();
????progressBar.setProgress(currentprogress+stepProgress);
????Thread.sleep(1000);
????}
????} catch(InterruptedException e) {
????// TODO Auto-generatedcatch block
????e.printStackTrace();
????}
????}
????});
????thread.start();
????//???????
????}
????}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11