1 public static boolean isBackground(Context context) { &nb…
先创建导出Excel的工具类,并带泛型,实体一定要生成属性的get方法,就是普通的Javabean,后面的就是个人发挥了,废话不多说,直接上代码: public class Exp…
后台Conroller import java.io.File; import java.io.FileInputStream; import java.io.FileOutput…
public static boolean checkChinese(String sequence) { final String format = "[\\u4E00…
PackageManager pm = getPackageManager(); for (ApplicationInfo app : pm.getInstalledApplica…
public static ArrayList<String> getActivities(Context ctx) { ArrayList<String>…
public static double getScreenPhysicalSize(Activity ctx) { DisplayMetrics dm = new Display…
public static void startApkActivity(final Context ctx, String packageName) { PackageManage…
在平时我们编程的时候,经常会用到倒计时这个功能,很多人不知道Android已经帮封装好了一个类,往往都自己写。现在发现了这个类,大家共享一下: 在一个TextView不断显示剩下的…
获取一张图片,从三个地方进行获取,首先是内存缓存,然后是文件缓存,最后才从网络中获取。 //内存缓存 public class ImageMemoryCache { /** * 从…
Http协议的重要性相信不用我多说了,HttpClient相比传统JDK自带的URLConnection,增加了易用性和灵活性(具体区别,日后我 们再讨论),它不仅是客户端发送Ht…
/** 从assets 文件夹中读取文本数据 */ public static String getTextFromAssets(final Context context, St…
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Excellent blog here Also your website loads up very fast What web host are you using Can I get your affiliate link to your host I wish my web site loaded up as quickly as yours lol