摘要:
再次踩bug:遍历删除list(java.util.ConcurrentModificationException)使用List list = new ArrayList();for(Long l : list){ if(l == 5){ list.remove(l); }} for(int i=0; i list = new ArrayList();Iterator it = list.iterator();while(it.hasNext){ if(it.next() == 5){ it.remove();//注意此处不能用list.re... 阅读全文
摘要:
1.Activity介绍An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface. (说白了Activity就是一个和用户交互的界面) The wi 阅读全文
摘要:
1.实现SQLiteHelper来在android中使用SQLite.代码如下,来自android官网。public class FeedReaderDbHelper extends SQLiteOpenHelper { // If you change the database schema... 阅读全文