摘要: #include "stdafx.h" #include #include using namespace std; string GetValue(const char* lpbMapAddress, const char* sName);int main() { HANDLE... 阅读全文
posted @ 2016-01-20 09:15 yangan 阅读(1772) 评论(0) 推荐(0)
摘要: HANDLE void* System.IntPtr 32 位 BYTE unsigned char System.Byte 8 位 SHORT short System.Int16 16 位 WORD unsigned short System.UInt16 16 位 INT int System... 阅读全文
posted @ 2015-12-14 23:10 yangan 阅读(379) 评论(0) 推荐(0)
摘要: Android Activity的onSaveInstanceState() 和 onRestoreInstanceState()方法:1.基本作用: Activity的 onSaveInstanceState() 和 onRestoreInstanceState()并不是生命周期方法,它们不同于... 阅读全文
posted @ 2015-12-03 11:10 yangan 阅读(185) 评论(0) 推荐(0)
摘要: 获取SharedPreferences的两种方式:1 调用Context对象的getSharedPreferences()方法2 调用Activity对象的getPreferences()方法两种方式的区别:调用Context对象的getSharedPreferences()方法获得的SharedP... 阅读全文
posted @ 2015-11-29 19:49 yangan 阅读(378) 评论(0) 推荐(0)
摘要: pendingIntent是一种特殊的Intent。主要的区别在于Intent的执行立刻的,而pendingIntent的执行不是立刻的。pendingIntent执行的操作实质上是参数传进来的Intent的操作,但是使用pendingIntent的目的在于它所包含的Intent的操作的执行是需要满... 阅读全文
posted @ 2015-11-26 16:35 yangan 阅读(3108) 评论(0) 推荐(0)
摘要: A PendingIntent itself is simply a reference to a token maintained by the system describing the original data used to retrieve it. This means that, ev... 阅读全文
posted @ 2015-11-26 16:10 yangan 阅读(487) 评论(0) 推荐(0)
摘要: 目录(?)[-]public static PendingIntent getActivity Context context int requestCode Intent intent int flagsParametersReturnspublic void sendNotification(C... 阅读全文
posted @ 2015-11-26 15:32 yangan 阅读(279) 评论(0) 推荐(0)
摘要: 常用Action说明:String ADD_SHORTCUT_ACTION 动作:在系统中添加一个快捷方式。. “android.intent.action.ADD_SHORTCUT”String ALL_APPS_ACTION 动作:列举所有可用的应用。 输入:无。 “android.intent... 阅读全文
posted @ 2015-11-26 11:25 yangan 阅读(1109) 评论(0) 推荐(0)
摘要: 1 Intent.ACTION_MAINString: android.intent.action.MAIN标识Activity为一个程序的开始。比较常用。Input:nothingOutput:nothing 2 Intent.Action_CALLStirng: android.inten... 阅读全文
posted @ 2015-11-26 11:20 yangan 阅读(514) 评论(0) 推荐(0)
摘要: 首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。如下所示:[html] view p... 阅读全文
posted @ 2015-11-26 09:46 yangan 阅读(193) 评论(0) 推荐(0)