摘要:
Creating the databaseCreate a new class called TimeTrackerOpenHelper that extends SQLiteOpenHelper. Pass the database name and the database version to super.TimeTrackerOpenHelper(Context context)super(context, "timetracker.db", null, 1)// timetracker.db is the db name, 1 is versionpublic v 阅读全文
阅读排行榜
Head Fisrt Android Development读书笔记(6)Lists and Adapters
2012-10-16 15:39 by java20130722, 133 阅读, 收藏,
摘要:
ListView = ScrollView[ ViewGroup[A View for Each Row] ]Adapteran interface whose implementations provide data and the display of that data used by the ListView.public class TimeTrackerAdapter extends BaseAdapter {...}View getView(int index, View view, ViewGroup parent)return the view used to display 阅读全文
Silverlight中DomainDataSource的一种Debug方法
2012-11-11 23:55 by java20130722, 132 阅读, 收藏,
摘要:
当我们在使用Domain Service Class以及Entity Framework工作的时候,可能会出现因为隐藏的内部代码,而不知道错在哪里。比如,在客户端程序需要向服务器端提交一个数据项,这个数据项包含了一个时间。当我输入是: 1/1/0001 12:00:00 AM时,始终不对,百思不得其解。还以为是Entity Model的问题,这个问题困扰了我一段时间。解决办法是:在DomainDataSource中加入一个SumittedChanges的事件。如: private void LibraryDataSource_OnSubmittedChanges(object s... 阅读全文
linux 常用命令
2013-03-28 12:28 by java20130722, 128 阅读, 收藏,
摘要:
1. 复制一个文件到另外一个文件中example1 文件中内容 : test1example2 文件中内容 : test2 复制example1 的内容到example2 中 cat example1 >> example2 结果:example2文件中的内容:test1test22. 查找文件例如查找文件c.c仅仅在当前目录下查找: find c.c当前目录以及当前目录下的目录递归查找 find . -name c.c3. 切换登陆用户su - {username} 例如:su - root 切换到root用户4. 查看PATH, CLASSPATHenv $PATH ... 阅读全文
jQuery Selectors列表
2012-07-19 14:46 by java20130722, 124 阅读, 收藏,
摘要:
SelectorExampleSelects*$("*")All elements#id$("#lastname")The element with id=lastname.class$(".intro")All elements with class="intro"element$("p")All p elements.class.class$(".intro.demo")All elements with the classes "intro" and 阅读全文
浙公网安备 33010602011771号