Archive for 十一月, 2013

C++ 函数指针 函数名作为参数

函数指针声明例子 函数名作为参数

Android 高仿 IOS7 IPhone 解锁 Slide To Unlock 附源码

1.使用Android shader中的LinearGradient
2.Android 中的动画 ValueAnimator
3.得到用户滑动的速率 VelocityTracker
4.Android中的自定义控件

Cocos2d-x 酷跑游戏例子

cocos2d-x 中菜单的使用
创建水平移动效果(Parallax)
如何随机?
碰撞检测

高仿 IOS7 Android 日历 年列表 – ListFragment demo

1.效果图
2.整体框架
3.具体每一年的绘制 – Android View的使用
4.谈谈ListFragment
5.其他的简单东西
6.代码下载

Permission Denial requires the provider be exported, or grantUriPermission

今天尝试往系统中另外一个应用的ContentProvider中写入数据,没想到报错了。 java.lang.SecurityException: Permission Denial: writing com.mediatek.todos.provider.TodoProvider uri content://com.mediatek.todos/todos from pid=8753, uid=1000 requires the provider be exported, or grantUriPermission() 网上查了下,加上android:exported=”true”就行了。 <provider android:name=”.provider.TodoProvider” android:authorities=&#8221 […]