做web开发的过程中估计会有80%-90%是和数据库打交道的,因此Dao层起了关键的作用。而每个实体类对应一个dao太麻烦,不能快速的开发。本文 的基本DAO是于hibernate…
public class BitmapUtils { /** * 图像背景圆角处理 * bitmap要处理的图片 roundPx 图片弯角的圆度一般是5到10之间 */ publi…
侧滑菜单控件DrawerLayout是Support Library包中实现了侧滑菜单效果的控件,也许是因为第三方控件如MenuDrawer等的出现之后,Google借鉴而出现的产…
从手机中选择照片这是几乎所有应用的功能之一,主要考虑到一点的就是如果图片太大了,可能会OOM,简单的处理就是对图片进行压缩! <LinearLayout xml…
方法是写在APP进入页面Activity中的,才能调用下面的getFilesDir()方法: protected boolean firstsInstall() { File fi…
package k.barcode; import java.awt.image.BufferedImage; import java.io.File; import java.i…
//复杂的可以使用dbutils的,这就来个仿dbutils的简化版的吧 public class DAOHelper { public static final MapRowPr…
public static int getTotalOfFiles(String path) { int total = 0; int sum=0; File tmpF = new…
package com.bdvcd.utils; import java.text.ParseException; import java.text.SimpleDateForma…
package com.test; import java.util.Random; public class GenerateRandomNumber { public stat…
package com.topsoft.websites.utils; import java.io.*; import java.util.logging.Logger; imp…
//假设这里建立的数据库位use,而建立的表位luser import java.io.*; import java.sql.*; public class DBB{ privat…
获取android手机中已安装应用信息以及应用安装和卸载代码集合
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