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
条件 1.java类 2.无参构造函数 3.成员变量都是private 4.可以提供public get set ------------------------------------------ 单例: 1.private构造函数 2.private static 实例对象 3.public s...
分类:
编程语言 时间:
2014-08-14 20:26:29
阅读次数:
227
一、动态设置组件的位置
其中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
private static SpannableStringBuilder afterGetName(String str) { List starts = new ArrayList(); List ends = new ArrayList(); SpannableStringBuilder re...
分类:
移动开发 时间:
2014-08-14 10:36:08
阅读次数:
181
一、委托的基本的写法 internal class Program { private static void Main(string[] args) { ChainDelegate(); Console.ReadKey...
分类:
其他好文 时间:
2014-08-13 17:42:46
阅读次数:
142
如何把数据上传到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池化技术
* @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
关于判断手机是否已经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
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
分享到微信朋友圈代码。不好用,最后选择了shareSdk。 private static void shareToTimeLine(File file) { Intent intent = new Intent(); ComponentName comp = new...
分类:
移动开发 时间:
2014-08-11 17:21:53
阅读次数:
348