- 博客(26)
- 资源 (6)
- 收藏
- 关注
原创 关于greenDao 使用时,导出签名的apk报错的问题
-keepclassmembers class * extends de.greenrobot.dao.AbstractDao { public static java.lang.String TABLENAME;}-keep class **$Properties
2014-04-16 17:46:01 1207 1
转载 greenDao
http://www.it165.net/pro/html/201401/9026.htmlgendaoGreenDao就是实现Java对象和SQLite Datebase的一个媒介人,简化了SQLite的操作。如果学过ssh的人都知道类似Hibernia。GreenDao官方网站http://greendao-orm.com/大家也可以先参考下:
2014-04-11 11:08:53 1325
原创 android popupwindow 触摸外部消失
windowView.setOnTouchListener(new OnTouchListener() {@Overridepublic boolean onTouch(View v, MotionEvent event) {final int x = (int) event.getX();final int y = (int) event.getY();if
2013-06-13 14:42:34 1961
转载 消息推送【Android】Parse Push快速入门指南
详情请看:http://www.cnblogs.com/over140/archive/2013/03/19/2968560.html
2013-03-21 16:13:42 830
转载 Android之解决scrollview总是优先滑动,导致在scrollview内的控件不滑动问题
sv01 = (ScrollView) findViewById(R.id.popup_sf_event_scroll_01); sv02 = (ScrollView) findViewById(R.id.popup_sf_event_scroll_02); sv02.setOnTouchListener(new OnTouchListener() { @
2013-01-06 17:44:19 903
转载 android MediaPlayer error code
MEDIA_ERROR_BASE = -1000, ERROR_ALREADY_CONNECTED = MEDIA_ERROR_BASE, // -1000 ERROR_NOT_CONNECTED = MEDIA_ERROR_BASE - 1, // -1001 ERROR_UNKNOWN_HOST = MEDIA_ERROR_
2012-07-18 11:45:18 2347
转载 android 模拟器快捷键
F1/PgUp Menu key 菜单键 F2/PgDown Star key 星号键 F3 Call key 发送拨号键 F4 End Call key 结束通话或者说红键 Home Home key Home键 ESC Back Key 后退键 F7
2012-07-12 13:51:23 766
原创 抓包、
准备的工具:1、wireshark:下载地址 : http://www.wireshark.org/download.html2、tcpdump TCPDUMP for Android(抓TCP数据包工具): 地址是 http://www.strazzere.com/android/tcpdump,不知道具体版本。详细使用请参考http://www.tcpdump.org/里面的文
2012-06-14 10:30:58 1073
转载 设置系统时间
Calendar c = Calendar.getInstance(); c.set(Calendar.HOUR_OF_DAY, hourOfDay); c.set(Calendar.MINUTE, minute); long when = c.getTimeInMillis(
2012-06-13 18:04:54 526
转载 Wifi adb connect 连接手机
原文出自http://www.cnblogs.com/error404/archive/2012/05/03/2481936.html
2012-06-01 15:54:38 717
转载 android UI 库
一、UI组件库 1. GreenDroid 该项目可以实现下列的UI设计: 动作栏(Action Bar) 快捷动作(Quick Action) 工作区(Workspace) 动态列表(Dynamic List) 以及许多更有用的组件。 项目网站 / 示例 2. ActionBarSherlock 在Google针对手机的动作条API推出
2012-05-08 14:37:12 682
转载 android EditText 屏蔽软键盘
方法一: 在AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为adjustUnspecified|stateHidden 例如:<activity android:name=".Main" android:label="@string/app_name"
2012-04-23 13:55:08 1707
转载 android 全屏设置
1、在AndroidManifest.xml的配置文件里面的<activity里面加入:android:theme="@android:style/Theme.NoTitleBar.Fullscreen"//去掉状态栏及标题栏2、在setContentView(R.layout.**)前面加入:this.requestWindowFeature(Window.FEATURE_NO_TITL
2012-04-13 18:28:30 519
原创 屏幕控制--UDP
public class ScreenControlActivity extends Activity {/** Called when the activity is first created. */TextView mIp;Button searchBtn,clearBtn;ListView lv;ProgressBar progress;LayoutInflater
2012-03-19 10:21:49 794
原创 从外部导入sqliteDatabase
public class DbManager {private final static int BUFFER_SIZE = 400000;public static final String DB_NAME = "weather_rushfunsion.db"; // 保存的数据库文件名public static final String PACKAGE_NAME = "co
2012-03-19 10:17:53 880
原创 HttpUtil--Json发送
public class HttpUtil {/*** 检查网络连接是否可用* @param context* @return*/public static boolean checkNetworking(Context context) {ConnectivityManager cm = (ConnectivityManager) context.getSys
2012-03-19 10:14:14 1434
原创 android 锁屏
View lockView;........WindowManager.LayoutParams params = new WindowManager.LayoutParams();params.width=-1;params.height=-1;params.flags = 1280;params.type = 2002;windowManager.addVi
2012-03-19 10:09:34 653
原创 获取本地IP
public String getLocalIpAddress() {try {for (Enumeration en = NetworkInterface.getNetworkInterfaces();en.hasMoreElements();) {NetworkInterface intf = en.nextElement();for(Enumeration enumIpA
2012-03-19 10:06:54 524
原创 Dom2Map--Util
public class Dom2Map {public static final String VERSION = "0.2.2";final static int OTHERH_NODE = 0;final static int ELEMENT_NODE = Node.ELEMENT_NODE;final static int TEXT_NODE = Node.
2012-03-19 10:03:34 769
原创 网络检测--跳转--设置
public boolean checkNetworking(Context context) {ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);NetworkInfo nwi = cm.getActiveNetworkInfo()
2012-03-19 09:56:10 740
原创 sdCard 检测
/** * 检查sdcard是否可用 * @return */ private boolean checkSDCardEnabled(){ Log.d("AutoPlayer", "SD卡检测中,当前状态.."+isSDEnable); boolean available = false;boolean writable = f
2012-03-19 09:54:33 737
原创 iDemo_app_puzzle_runnable
public class ChooseImages implements Runnable {private static final String LOG_TAG = "KeyCode";int[] resIds = { R.drawable.pintu, R.drawable.a, R.drawable.b,R.drawable.c, R.drawable.d, R.drawabl
2012-03-19 09:51:47 603
原创 Image_utils
public class ImageUtil {// 放大缩小图片public static Bitmap zoomBitmap(Bitmap bitmap, int w, int h) {int width = bitmap.getWidth();int height = bitmap.getHeight();Matrix matrix = new Matrix();
2012-03-19 09:49:39 928
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人