上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 今天在eclipse里报这个错误:Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead.Please fix project properties1.项目右键 ->android tools->Fix Project2.如果不可以,检查Project->Properties->Java Compiler 确认JDK compliance被设置为1.6,并且enable specific seetings. 阅读全文
posted @ 2011-08-25 01:02 水向东流 阅读(20392) 评论(0) 推荐(0) 编辑
摘要: 有几种风格 总是忘记现在记录下来:The four attributes that you mention can be applied to aProgressBar's style like so:style="?android:attr/progressBarStyleHorizontal"The style constantandroid:progressBarStyleHorizontalis your typical incremental progress bar:While the other three are varying sizes of t 阅读全文
posted @ 2011-08-24 23:17 水向东流 阅读(404) 评论(0) 推荐(0) 编辑
摘要: Eclipse选中变量名,相同变量都变色显示 的设置:java文件的设置"Window"-"preferences"-"Java"-"Editor"-"Mark Occurrences"复选框勾选 js文件的设 置"Window"-"preferences"-"web"-"javascript"-"Mark Occurrences"复选框勾选 。 其实Eclipse中有很多方便我们编程的一些东西, 阅读全文
posted @ 2011-08-20 11:00 水向东流 阅读(4618) 评论(0) 推荐(1) 编辑
摘要: 转载 :Android中ImageButton自定义按钮的按下效果的代码实现方法,附网上2种经典解决方法。首先看看网上的2种方法:【以下为引用网络,来源:http://www.eoeandroid.com/thread-7931-1-1.html】使用Button时为了让用户有“按下”的效果,有两种实现方式:1.在代码里面。view plainimageButton.setOnTouchListener(newOnTouchListener(){@OverridepublicbooleanonTouch(Viewv,MotionEventevent){if(event.getAction()= 阅读全文
posted @ 2011-08-17 10:59 水向东流 阅读(1125) 评论(0) 推荐(0) 编辑
摘要: 访问登记属性android.permission.ACCESS_CHECKIN_PROPERTIES ,读取或写入登记check-in数据库属性表的权限获取错略位置android.permission.ACCESS_COARSE_LOCATION,通过WiFi或移动基站的方式获取用户错略的经纬度信息,定位精度大概误差在30~1500米获取精确位置android.permission.ACCESS_FINE_LOCATION,通过GPS芯片接收卫星的定位信息,定位精度达10米以内访问定位额外命令android.permission.ACCESS_LOCATION_EXTRA_COMMANDS,允 阅读全文
posted @ 2011-08-17 10:47 水向东流 阅读(659) 评论(0) 推荐(0) 编辑
摘要: import android.app.Activity;import android.app.PendingIntent;import android.content.ContentUris;import android.content.Intent;import android.database.Cursor;import android.database.CursorWrapper;import android.graphics.Color;import android.net.Uri;import android.os.Bundle;import android.provider.Con 阅读全文
posted @ 2011-08-17 10:42 水向东流 阅读(3259) 评论(1) 推荐(0) 编辑
摘要: MainActivity里面的代码:public void onConfigurationChanged(Configuration newConfig) { try { super.onConfigurationChanged(newConfig); if (this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { Log.v("Himi", "onConfigurationChanged_ORIENTATION_LANDSCAPE&q 阅读全文
posted @ 2011-08-17 09:51 水向东流 阅读(13370) 评论(1) 推荐(0) 编辑
摘要: 这是一片转载文章详细的讲述了monkey的操作 : Monkey 压力测试Monkey测试的一个实例通过这个实例,我们能理解Monkey测试的步骤以及如何知道哪些应用程序能够用Monkey进行测试。Windows下(注:2—4步是为了查看我们可以测试哪些应用程序包,可省略):1、 通过eclipse启动一个Android的emulator2、 在命令行中输入:adb devices查看设备连接情况C:\Documents and Settings\Administrator>adb devices//操作List of devices attachedemulator-5554 devi 阅读全文
posted @ 2011-08-16 15:04 水向东流 阅读(4787) 评论(0) 推荐(1) 编辑
摘要: 个人认为BaseAdapter实在是太主要了,也是用处太广了,自己设立一个算是专题吧,主攻BaseAdapter,争取在自己的努力下,把所有的关于baseadapter的问题都给解决了。这样以后再遇到这样的问题就可以迎刃而解了。import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.Context; import android.graphics.Color; import android.os.Bundle; import android.vi 阅读全文
posted @ 2011-08-15 16:57 水向东流 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、TextView等)。具体作用:1、对于一个没有被载入或者想要动态载入的界面,都需要使用LayoutInflater.inflate()来载入;2、对于一个已经载入的界面,就可以使用Activiyt.findViewById()方法来获得其中的界面元素。LayoutInflater 是一个抽象类,在文档中 阅读全文
posted @ 2011-08-15 14:39 水向东流 阅读(2932) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页