上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页
摘要: debug是一个隐藏的对象,用于进行和调试相关的工作。是系统调试文件夹,用来存放系统运行过程中调试模块的日志文件,以便管理员根据这些日志文件来发现计算机所存在的问题。其中“UserMode”文件夹下存放的是当前用户的调试日志文件 有点类似于C#中的控制台。在调试程序的时候使用Debug会很方便。比如 阅读全文
posted @ 2015-12-07 18:38 Wei_java 阅读(3243) 评论(0) 推荐(0) 编辑
摘要: textViewUserName.setCursorVisible(false);//隐藏光标 textViewUserName.setFocusable(false);//失去焦点 textViewUserName.setFocusableInTouchMode(false);//虚拟键盘隐藏 i... 阅读全文
posted @ 2015-12-06 23:12 Wei_java 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 从服务器端传递多个数据先在服务器端设置cs文件 1 using Newtonsoft.Json; 2 using Newtonsoft.Json.Linq; 3 using System; 4 using System.Collections.Generic; 5 using System.Linq... 阅读全文
posted @ 2015-12-06 18:05 Wei_java 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 在服务器端数据库新建一个表ad在DataInfo.edxm模型中点击从数据库更新模型,发布。就新建了一个实体ad然后新建cs文件 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using Syst... 阅读全文
posted @ 2015-12-05 14:14 Wei_java 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1 protected void onCreate(Bundle savedInstanceState) { 2 super.onCreate(savedInstanceState); 3 setContentView(R.layout.adshow); 4 ... 阅读全文
posted @ 2015-12-05 12:50 Wei_java 阅读(366) 评论(0) 推荐(0) 编辑
摘要: HashMap map;定义一个HashMap用来传递字符TextView textView_JobTitle=(TextView)findViewById(R.id.textView_JobTitle);定义一个文本框JobTitle=map.get("jobTitle").toString();... 阅读全文
posted @ 2015-12-04 13:58 Wei_java 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 写过Android程序的都知道Activity中有一个名称叫onCreate的方法。该方法是在Activity创建时被系统调用,是一个Activity生命周期的开始。可是有一点容易被忽视,就是onCreate方法的参数savedInstanceState。因为在一般的程序开发中,很少用到这个参数。o... 阅读全文
posted @ 2015-12-02 15:20 Wei_java 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。根据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin... 阅读全文
posted @ 2015-12-02 15:12 Wei_java 阅读(363) 评论(0) 推荐(0) 编辑
摘要: DescriptionFJ is going to do some shopping, and before that, he needs some boxes to carry the different kinds of stuff he is going to buy. Each box is... 阅读全文
posted @ 2015-12-01 19:52 Wei_java 阅读(325) 评论(0) 推荐(0) 编辑
摘要: Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每... 阅读全文
posted @ 2015-11-30 11:37 Wei_java 阅读(445) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 32 下一页