¡@

Home 

2014/10/16 ¤W¤È 08:11:01

android Programming Glossary: calllist

How to implement a ContentObserver for call logs

http://stackoverflow.com/questions/4422410/how-to-implement-a-contentobserver-for-call-logs

dt.getHours int minutes dt.getMinutes int seconds dt.getSeconds String currTime hours minutes seconds ArrayList String callList new ArrayList String if cursor.moveToFirst do String contactNumber cursor.getString numberColumnId String contactName.. 1 this.db.insert CallDataHelper.TABLE_NAME null values Toast.makeText getBaseContext Inserted Toast.LENGTH_LONG callList.add Contact Number contactNumber nContact Name contactName nDuration duration nDate callDate while cursor.moveToNext.. duration nDate callDate while cursor.moveToNext setListAdapter new ArrayAdapter String this R.layout.listitem callList ListView lv getListView lv.setTextFilterEnabled true lv.setOnItemClickListener new android.widget.AdapterView.OnItemClickListener..

Android error - close() was never explicitly called on database

http://stackoverflow.com/questions/4464892/android-error-close-was-never-explicitly-called-on-database

hours minutes seconds SimpleDateFormat dateFormat new SimpleDateFormat MM dd yyyy Date date new Date ArrayList String callList new ArrayList String cursor.moveToFirst String contactNumber cursor.getString numberColumnId String contactName cursor.getString.. handler db.insert CallDataHelper.TABLE_NAME null values Toast.makeText getBaseContext Inserted Toast.LENGTH_LONG callList.add Contact Number contactNumber nContact Name contactName nDuration duration nDate dateFormat.format date setListAdapter.. nDuration duration nDate dateFormat.format date setListAdapter new ArrayAdapter String this R.layout.listitem callList ListView lv getListView lv.setTextFilterEnabled true lv.setOnItemClickListener new android.widget.AdapterView.OnItemClickListener..