- 博客(19)
- 资源 (14)
- 收藏
- 关注
原创 自定义LinearLayout
<cn.edu.widget.WidgetQuestion android:id="@id/widgetQuestion" android:layout_width="fill_parent" android:layout_height="fill_parent" />
2012-06-27 16:42:04 1314
原创 Wifi获取ip地址 (详解)
WifiManager wifiManager = (WifiManager) this .getSystemService(Context.WIFI_SERVICE); if (wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED) { int ip = wifiManager.getConnectionInf
2012-06-25 19:08:20 3325
转载 intent.setFlags方法中的参数值含义
一. intent.setFlags()方法中的参数值含义:1.FLAG_ACTIVITY_CLEAR_TOP:例如现在的栈情况为:A B C D 。D此时通过intent跳转到B,如果这个intent添加FLAG_ACTIVITY_CLEAR_TOP标记,则栈情况变为:A B。如果没有添加这个标记,则栈情况将会变成:A B C D B。也就是说,如果添加了FLAG_ACTIVITY_CL
2012-06-22 09:26:22 1090
转载 Activity的LaunchMode和taskAffinity(经典)
打开多个Activity,返回到第一个Activity的问题前言 Android项目中一旦涉及到登录就基本会遇到这个问题:打开多个Activity之后再登录超时的情况下如何才能跳转到登录界面,参见帖子这里。暂时没有完美解决方案,本文是对该帖子的补充说明: 声明 欢迎转载,但请保留文章原始出处:) 博客园:http://www
2012-06-21 20:07:15 1693
转载 Activity栈(收藏)
主要的行为标志为是:FLAG_ACTIVITY_NEW_TASK FLAG_ACTIVITY_CLEAR_TOP FLAG_ACTIVITY_RESET_TASK_IF_NEEDED FLAG_ACTIVITY_SINGLE_TOP主要的 属性是:taskAffinity launchMode allowTaskReparenting clearTaskOn
2012-06-21 16:17:45 915
原创 一些ubuntu 出现错误后的解决方案
1、E: 无法识别在安装源列表 /etc/apt/sources.list 里,第 64 行中的软件包 最开始的时候我也不知道就出现了这种情况,“检查已安装的和可用的应用程序失败这是你软件管理系统的重大错误. 请用新利得检查破损的软件包, 检查文件 '/etc/apt/sources.list'的权限和正确性,并用命令: 'sudo apt-getupdate' 和 's
2012-06-21 11:32:13 2438
转载 55套精美的 PSD 用户界面素材和设计模板资源
对于网页设计师来说,有预先设计好的和可编辑的UI元素是组织和优化设计流程的关键。这些设计好的界面元素可以让你快速制作出风格统一的界面原型。今天,本文与大家分享55套精美的 PSD 资源,这些高质量的网站 PSD 素材可以让您的工作得心应手,帮助您节省大量的时间和精力。记得分享和推荐一下哦 :).............................http://www.cnb
2012-06-18 19:43:40 1456 1
转载 网络字节序
不同的CPU有不同的字节序类型 这些字节序是指整数在内存中保存的顺序 这个叫做主机序 最常见的有两种1. Little endian:将低序字节存储在起始地址2. Big endian:将高序字节存储在起始地址LE little-endian 最符合人的思维的字节序 地址低位存储值的低位 地址高位存储值的高位 怎么讲是最符合人的思维的字节序,是因为从人的第一观感
2012-06-16 21:58:46 514
转载 71道经典Android面试题和答案--重要知识点都涉及到了
面试题1. 下列哪些语句关于内存回收的说明是正确的? (b ) A、 程序员必须创建一个线程来释放内存 B、内存回收程序负责释放无用内存 C、内存回收程序允许程序员直接释放内存 D、内存回收程序可以在指定的时间释放内存对象 2. 下面异常是属于Runtime Exception 的是(abcd)(多选) A、ArithmeticE
2012-06-16 21:30:09 1506
转载 可以移动的悬浮框
工作中遇到一些项目需要把窗体显示在最上层,像来电弹窗显示电话号码等信息或拦截短信信息显示给用户,我们想这些数据放在最上层,activity就满足不了我们的需求了,有些开发者使用了循环显示Toast的方式,toast是不能获得焦点的,这种方法是不可取的。这个时候,我们如何处理呢?原来,整个Android的窗口机制是基于一个叫做 WindowManager,这个接口可以添加view到屏幕,也可以从
2012-06-12 17:56:03 945
转载 Android版块开发资源大汇总
✿应用开发资料、源码实例分享史上最全!最经典!最无私的Android资料(书籍+代码)分享-不要积分Android 贪吃蛇、俄罗斯方块、中国象棋等100多个应用功能实例源码android开发资料大集合Android开发资料分享- 免积分(升级版)Android 近百个项目的源代码,覆盖Android开发的每个领域android新手入门资料无私奉献(无需积分下载)
2012-06-11 16:45:44 857
原创 一个困惑 关于调用的问题
case 1: Intent intent1=new Intent(MainActiviy.this, ChapterPracticeActivity.class); startActivityForResult(intent1, 1); case 10: Intent intent10=new Intent(MainActiviy.this, WebDoc
2012-06-08 17:40:45 191
转载 【Android基础】Activity的启动模式(android:launchMode)
在android里,有4种activity的启动模式,分别为:“standard” (默认)“singleTop”“singleTask”“singleInstance” 它们主要有如下不同: 1. 如何决定所属task“standard”和”singleTop”的activity的目标task,和收到的Intent的发送者在
2012-06-08 17:29:50 749
原创 startActivityForResult 使用详解
Starting Activities and Getting Results如果,要想达到这个效果,你需要调用startActivityForResult(Intent, int) (这个method的第二个参数描定义了这个回调)。当返回的时候,这个activity将要调用onActivityResult(int, int, Intent) 。如果这个activity存在,它能够
2012-06-08 10:30:34 9965
转载 每天工作4小时的程序员
每个人都熟悉这种作息规律:早上9点去上班,坐在电脑前面,编一天的程序,下午5点下班回家。如今,非常感谢蒂莫西·费里斯 (Timothy Ferriss)的《每周工作4小时》,我开始重新思考应该如何工作,如何让自己变成更有效率的程序员。最近,我把我的从周一到周五的作息规律做了一次较大的调整。很长时间以来,我一直像所有其他程序员那样工作、休息。但就在2011年的下半年,我开 始了一项试验,想看
2012-06-06 19:07:46 936
原创 setTheme问题2
在xml 设置的效果和setTheme的效果不一样android:windowBackground没有效果????????代码如下: super.onCreate(savedInstanceState); setTheme(R.style.blueSummerTheme); setContentView(R.layout.main);
2012-06-03 20:33:34 1264
翻译 使用android的主题在应用中
感谢:http://www.androidengineer.com/2010/06/using-themes-in-android-applications.htmlUsing Themes in Android ApplicationsAs a developer, I understand how developers think when going about creating a
2012-06-03 16:35:01 760
翻译 Access resource defined in theme and attrs.xml android
转载于:http://stackoverflow.com/questions/8793183/access-resource-defined-in-theme-and-attrs-xml-androidI have a scenario in which I want to set a Drawable depending upon the theme defined.To e
2012-06-02 20:42:09 695
转载 自定义Activity标题栏(Title bar)和窗体显示状态操作(requestWindowFeature()的应用)
1. 标题栏显示图标public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_LEFT_ICON); setContentView(R.
2012-06-01 20:14:49 704
core_java_career_essentials.pdf
2017-12-06
OpenCV By Example
2017-11-23
例子代码 android http://blog.csdn.net/qq282133/article/details/7616809
2012-05-30
贪吃蛇.jar
2011-09-12
仿 qq 相册
2011-08-31
java 浏览器 源码
2011-07-30
高校选课系统 源码 strcts2 spring
2011-07-18
java 坦克大战源码
2011-04-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人