码迷,mamicode.com
首页 >  
搜索关键字:private/static/this    ( 3141个结果
java解析xml
public class XMLUtils {          private static SAXReader reader = new SAXReader();     private static Document dom = null;     public static Document load(String fileName) {         InputStream ...
分类:编程语言   时间:2014-08-14 20:40:19    阅读次数:231
JavaBean
条件 1.java类 2.无参构造函数 3.成员变量都是private 4.可以提供public get set ------------------------------------------ 单例: 1.private构造函数 2.private static 实例对象 3.public s...
分类:编程语言   时间:2014-08-14 20:26:29    阅读次数:227
android动态控制组件的位置、大小和新的动画
一、动态设置组件的位置 其中view是需要改变位置的控件,top是需要设制的位置; private static void setLayoutX(View view,int top)  { //克隆view的width、height、margin的值生成margin对象   MarginLayoutParams margin=new MarginLayoutParams(view.get...
分类:移动开发   时间:2014-08-14 14:14:58    阅读次数:298
Android @好友解析&&改变颜色
private static SpannableStringBuilder afterGetName(String str) { List starts = new ArrayList(); List ends = new ArrayList(); SpannableStringBuilder re...
分类:移动开发   时间:2014-08-14 10:36:08    阅读次数:181
【C#】委托
一、委托的基本的写法 internal class Program { private static void Main(string[] args) { ChainDelegate(); Console.ReadKey...
分类:其他好文   时间:2014-08-13 17:42:46    阅读次数:142
Android 通过GET和POST方式提交参数给web应用
如何把数据上传到web应用 应用界面: 视频名称:title 时长:timelength 保存,点击保存按钮提交到web应用中,web应用中开发Manageservlet来接收数据。 get方式 服务端: public class ManageServlet extends HttpServlet {   private static final long serialVersi...
分类:移动开发   时间:2014-08-13 10:40:45    阅读次数:221
仿照Android的池化技术
/** * 仿照Android池化技术 * @author fgtian * */ public class ObjectCacheTest { public static class ObjectItem { private static int sPoolSize = 0; private static final int MAX_CACHE = 10; private ...
分类:移动开发   时间:2014-08-13 01:23:14    阅读次数:247
android判断手机是否root
关于判断手机是否已经root的方法。如果app有一些特殊功能需要root权限,则需要判断是否root。比如一些市场下载完app后自动安装。 /** * @author Kevin Kowalewski * */ public class Root { private static String LOG_TAG = Root.class.getName(); publi...
分类:移动开发   时间:2014-08-12 17:30:24    阅读次数:215
MyEclipse注册机
public class tedst { private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the...
分类:系统相关   时间:2014-08-12 10:07:43    阅读次数:299
Android分享图文到朋友圈代码。
分享到微信朋友圈代码。不好用,最后选择了shareSdk。 private static void shareToTimeLine(File file) { Intent intent = new Intent(); ComponentName comp = new...
分类:移动开发   时间:2014-08-11 17:21:53    阅读次数:348
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!