- 博客(32)
- 资源 (14)
- 收藏
- 关注
原创 android自定义控件 ( TypedArray 、declare-styleable)
本文将简单介绍自定义控件、其中将会详细介绍关于自定义在layout中xml布局的属性如下: <com.edu.testview.MyView android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/s" app:
2012-05-30 16:40:48 4198
转载 Andriod中绘(画)图----Canvas的使用详解
转载请注明出处:http://blog.csdn.net/qinjuning 由于在网络上找到关于Canvas的使用都比较抽象,也许是我的逻辑思维不太好吧,总是感觉理解起来比较困难, 尤其是对save()和restore()方法的使用。本篇文章的内容就是对Canvas的使用进行一下总结,包括它的两种不同的使用
2012-05-30 16:24:03 837
翻译 android.view.View---中文
android.view.View这个类是描绘块状视图的基类。View会绘制一个包含Drawing是event事件的方形块View是所有与用户交互的组件的Widgets的基类(Buttons,textField等),View的子类ViewGroup是layouts类的基类,layouts类可以包含其他的View/ViewGroup组件并且定义展示的属性。Using ViewsVie
2012-05-30 11:35:56 1080
转载 Android 编码规范
Android 编码规范:(六)消除过期的对象引用尽管Java不像C/C++那样需要手工管理内存资源,而是通过更为方便、更为智能的垃圾回收机制来帮助开发者清理过期的资源。即便如此,内存泄露问题仍然会发生在你的程序中,只是和C/C++相比,Java中内存泄露更加隐匿,更加难以发现,见如下代码: [java] view plaincopy // Can you spot the "memo
2012-05-30 10:17:38 641
原创 获取本机上已安装程序的信息
public class AppInfoActivity extends Activity { /** Called when the activity is first created. */ TextView textView; @Override public void onCreate(Bundle savedInstanceState) { su
2012-05-29 18:54:56 1041
原创 android Theme的使用
1、android setTheme调用在代码中无效的解决问题的现象:在代码中直接调用setTheme(R.style.them1);之类的没有任何效果例如:public class Activity2 extends Activity{ @Override protected void onCreate(Bundle savedInstanceState)
2012-05-29 16:44:35 2447 1
原创 android android:taskAffinity 详解
android:taskAffinityAn affinity name that applies to all activities within the application, except for those that set a different affinity with their own taskAffinity attributes. See that attribut
2012-05-29 11:15:01 2339 1
转载 Android Application Task Activities的关系
什么是Android Application?简单来说,一个apk文件就是一个Application。任何一个Android Application基本上是由一些Activities组成,当用户与应用程序交互时其所包含的部分Activities具有紧密的逻辑关系,或者各自独立处理不同的响应。这些Activities捆绑在一起成为了一个处理特定需求的Application, 并且以“.
2012-05-29 10:55:47 782
原创 android网络连接(一)官方文档
本节,介绍关于网络连接的官方文档推荐的操作This lesson teaches you toChoose an HTTP ClientCheck the Network Connection(检查网络连接)Perform Network Operations on a Separate Thread(执行网络操作在一个线程中)Connect and Download
2012-05-27 12:01:03 808
原创 Socket 服务器短标示特定的客服
1、java Socket客服 服务器代码。 该Demo 代码不多规范,仅供参考:服务器段codeimport java.io.BufferedReader;import java.io.BufferedWriter;import java.io.IOException;import java.io.InputStreamReader;import java.io.Ou
2012-05-25 15:35:57 857
原创 NAT
通过路由器上网的困惑: NAT介绍网络地址转换(NAT,Network Address Translation)属接入广域网(WAN)技术,是一种将私有(保留)地址转化为合法IP地址的转换技术,它被广泛应用于各种类型Internet接入方式和各种类型的网络中。原因很简单,NAT不仅完美地解决了lP地址不足的问题,而且还能够有效地避免来自网络外部的攻击,隐藏并保护网络内部的计算机
2012-05-25 15:12:43 695
原创 javascript的console.log()用法
1、javascript的console.log()用法2、源码: Insert title here //变量 var i = 'I am a string'; console.log('变量:', i);
2012-05-21 21:12:53 9294
原创 jettry 使用案例
1、介绍jettry。 2、一个案例。 (1)导入所有的包。 (2)代码: // server.setHandler(new TestMain()); Server server = new Server(); Connector connector = new SelectChannelConnector(); connector.setPort(8
2012-05-21 18:41:10 1574
原创 document.form.submit()的使用
1、example: submit参考:http://zhidao.baidu.com/question/96051969.html2、。。Html From 提交关于Html form表单的提交,很容易。。。但如果不仔细还是能有很多错误http://www.iteye.com/topic/311433
2012-05-21 16:39:46 18715
原创 jetty网页资料整理
快速入门http://blog.chenlb.com/2009/01/quick-start-jetty-and-embed-in-project.htmljetty初体验下载地址 http://dist.codehaus.org/jetty/jetty-hightide-8.1.3所有,资源下载的地址!http://dist.codehaus.org/jetty
2012-05-21 15:29:03 748
转载 Tomcat 系统架构与设计模式,第 2 部分: 设计模式分析
感谢:http://www.ibm.com/developerworks/cn/java/j-lo-tomcat2/index.html门面设计模式门面设计模式在 Tomcat 中有多处使用,在 Request 和 Response 对象封装中、Standard Wrapper 到 ServletConfig 封装中、ApplicationContext 到 ServletCo
2012-05-20 21:52:30 507
转载 Android四种Activity的加载模式
感谢:http://kb.cnblogs.com/page/99664/ 建议首先阅读下面两篇文章,这样才可以更好的理解Activity的加载模式: Android的进程,线程模型: http://www.cnblogs.com/ghj1976/archive/2011/04/28/2031586.html 其中对“Android的单线程模型”的描述,明白Act
2012-05-20 16:41:27 550
转载 关于做Android+J2ee系统集成开发的一点心得
感谢:http://kb.cnblogs.com/page/103584/前言: 很早以前,就听人说过android以后会火起来,作为一个前瞻性,对它有所了解会是一个转型的好机会。javaweb太成熟饱和了,现在市面上各种android手机层出不穷,网上各种android视频连续剧一样跟进,安卓一下子成为了热门话题,刚开始也是出于个人兴趣学的很hi感觉挺容易上手的样子,后来工作中才发现
2012-05-20 16:38:31 705
转载 APK安装过程及原理详解
感谢:http://hi.baidu.com/android168/blog/item/06142a1ba1122774f624e4ed.html来自华为内部资料 PackageInstaller 原理简述 应用安装是智能机的主要特点,即用户可以把各种应用(如游戏等)安装到手机上,并可以对其进行卸载等管理操作。APK是Android Package的缩写,即Android安
2012-05-14 20:14:03 779
原创 android 系统飞行模式开启
1、介绍Settings.Systempublic static final classSettings.Systemextends Settings.NameValueTablejava.lang.Object ↳android.provider.Settings.NameValueTable
2012-05-14 17:43:27 2407
原创 PreferenceActivity preference使用详解
1、一个简单的例子: <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <PreferenceCategory android:title="@string/inline_preferences">
2012-05-14 16:48:45 1064
原创 错误整理!
1、不能在Activity中添加构造器如下: public Setting(int position) {this.position = position;}
2012-05-14 15:46:53 422
原创 AlerDilog
1、自定义AlertDialog(来自http://luren85.iteye.com/blog/975053)有时候我们在实际应用中,往往android平台提供的样式很难满足我们真正的需求,这个时候就需要一些个性化的元素出来来弥补这些问题。下面示例一个自定义AlertDialog~~~先上一段代码:Java代码 /***
2012-05-11 15:47:22 802
原创 SQLite使用
1、创建import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpenHelper;public class DB extends SQLiteOpenHelper{ static String DB_Name
2012-05-10 20:55:34 425
原创 android:layout_weight padding margin 的使用
1、layout_weight 的妙用。<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orien
2012-05-10 18:52:24 1100
转载 xml一些属性
感谢http://hi.baidu.com/455611934/blog/item/8fcc9100f09793171c95836c.htmlXML属性属性名称 描述 android:background 设置背景色/背景图片。可以通过以下两种方法设置背景为透明:”@android:color/transparent”和”@null”。注意 TextVie
2012-05-06 18:08:32 579
原创 android Environment
System.out.println(Environment.getExternalStorageState()); System.out.println(Environment.getDataDirectory().toString()); System.out.println(Environment.getDownloadCacheDirectory());
2012-05-06 17:37:50 1483
转载 HashMap的使用
最近再写一段很恶心的系统代码,上网搜索资料时,偶然见看到这篇文章不错,给了我很多的启发。先收藏一下,作为以后开发备用资料。希望看到的朋友也能多多学习学习!发现HashMap 用到下面的格式 ,直接循环遍历整个hashMap hashTable返回的 set 中的每个元素都是一个 Map.Entry 类型。private Hashtable emails = new Has
2012-05-04 20:06:24 519
原创 android 判断网络连接
ConnectivityManager connectivityManager=(ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);NetworkInfo networkInfo=connectivityManager.getActiveNetworkInfo();//获取当前活跃的网络 wifi 3g
2012-05-04 09:27:15 1158
转载 android 模拟器不能上网的问题解决方法。
特别感谢:http://www.blogjava.net/cdz/archive/2011/11/21/364427.html由于最近的学习还没接触到网络,所以一直没有关于模拟器上网问题。昨天同学叫我解决一个关于远程下载桌面背景图片的问题,才接触到网络。惊讶我的模拟器居然上不了网,于是就到网上查了,网上资料很多,大同小异就是说的那四种方法,我只试了一种自认为最简单的方法,而且成功了,其
2012-05-03 23:04:19 1106
原创 jsp生成java文件后的位置 和jsp静态页面
jsp生成java文件后的位置Workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\project1\org\apache\jsp或者 \work\Catalina\localhost\hfExam_1\org\apache\jsp中 ;jsp页面<%
2012-05-02 11:35:23 944
转载 Android界面基本属性
感谢http://www.cnblogs.com/awenhome/archive/2011/12/29/2305813.html布局: 在 android 中我们常用的布局方式有这么几种:1.LinearLayout ( 线性布局 ) :(里面只可以有一个控件,并且不能设计这个控件的位置,控件会放到左上角)
2012-05-02 10:49:57 537
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关注的人