摘要: Viber应用目前官网支持 iPhone 与 Android 手机 (貌似在iPod Touch或iPad上也可以),Viber 需要使用你的手机号进行注册 (注册完全免费),然后它会读取你手机上原本的通讯录列表,如果发现你通讯录上的朋友已经有注册过Viber的话,它就会自动地识别出来并标识出来,这时你就能免费通过网络直接拨打或发短信给它了。也就是说你不需像 QQ 那样一个一个地添加好友,再等待对方允许,Viber 整合了你本机的通讯录,事实上,你的通讯录,本来就是一个好友列表,Viber 所做的,是告诉你这个列表中,你已经可以和哪些人通过 Viber 免费通话了(即对方也安装了Viber)。 阅读全文
posted @ 2012-12-09 19:42 water0504 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 方法一:使用MyEclipse进行Java开发,用SVN进行版本控制。Update,提示如下类似的错误: org.tigris subversion javahl.ClientException: Working copy not locked;this is probably a bug,please reportsvn:Working copy 'D:\temp\workspace\BOBO365\WebRoot\WEB-INF\classes\com' is missing or not locked在网上查找是eclipse把src文件夹中的.svn文件夹也" 阅读全文
posted @ 2012-12-09 19:38 water0504 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如 Button、TextView等)。具体作用:1、对于一个没有被载入或者想要动态载入的界面,都需要使用LayoutInflater.inflate()来载入;2、对于一个已经载入的界面,就可以使用Activiyt.findViewById()方法来获得其中的界面元素。LayoutInflater 是一个抽象类,在文档 阅读全文
posted @ 2012-12-09 19:36 water0504 阅读(224) 评论(0) 推荐(0) 编辑
摘要: This answer has 2 parts 1) its not how much images the screen has, but being carefull on cleaning everything up when finishing the activity 2) Android dev site (http://developer.android.com/resources/articles/future-proofing.html) Technique to Avoid, #3: Going Overboard with Layouts Due to changes i 阅读全文
posted @ 2012-12-09 19:32 water0504 阅读(258) 评论(0) 推荐(0) 编辑
摘要: package eoe.demo; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.text.InputType; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.WindowManager.LayoutParams; import androi 阅读全文
posted @ 2012-12-09 19:28 water0504 阅读(318) 评论(0) 推荐(1) 编辑
摘要: import java.util.Timer; import java.util.TimerTask; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.. 阅读全文
posted @ 2012-12-09 19:27 water0504 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1、通过创建临时表可以把数据先导入到一个临时表中,然后删除原表的数据,再把数据导回原表,SQL语句如下: creat table tbl_tmp (select distinct* from tbl); truncate table tbl;//清空表记录 insert into tbl select * from tbl_tmp; //将临时表中的数据插回来。这种方法可以实现需求,但是很明显,对于一个千万级记录的表,这种方法很慢,在生产系统中,这会给系统带来很大的开销,不可行。2、利用rowid在oracle中,每一条记录都有一个rowid,rowid在整个数据库中是唯一的,rowid确定了 阅读全文
posted @ 2012-12-09 15:37 water0504 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: 通常,我们都提供一个名为 log4j.properties的文件,在第一次调用到Log4J时,Log4J会在类路径(../web-inf/class/当然也可以放到其它任何目录,只要该目录被包含到类路径中即可)中定位这个文件,并读入这个文件完成的配置。这个配置文件告 诉Log4J以什么样的格式、把什么样的信息、输出到什么地方。 Log4j有三个主要的组件:Loggers(记录器),Appenders(输出源)和Layouts(布局),这里可简单理解为日志类别,日志要输出的地方和日志以何种形式输出。综合使用这三个组件可以轻松的记录信息的类型和级别,并可以在运行时控制日志输出的样式和位置。下面对. 阅读全文
posted @ 2012-12-09 15:17 water0504 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 在开发android的应用中,有时候需要限制横竖屏切换。只需要在AndroidManifest.xml文件中加入android:screenOrientation属性限制。 1 android:screenOrientation="landscape"是限制此页面横屏显示, 2 android:screenOrientation="portrait"是限制此页面数竖屏显示。 android:screenOrientation设定该活动的方向, 该值可以是任何一个下面的字符串: "unspecified" - 默认值. 由系统选择显示方 阅读全文
posted @ 2012-12-09 15:02 water0504 阅读(434) 评论(0) 推荐(0) 编辑