自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

"Core Java Essentials" are something you must know, and know it well to succeed as a Java professional. Even 40% to 60% of the so called experienced professionals fail to make an impression due to their lack of understanding in one or more of the areas covered in this book. Lack of good understanding in the core essentials can be a speed breaker to your career advancement. If you have a java interview coming up in a few days or you want to impress your peers and superiors with your technical strengths during code review sessions, team meetings, and stand-ups, and concerned about how to make a good impression? You don't need to worry if you are familiar with the fundamentals. This is a Questions & Answers book with 250+ questions and answers relating to core Java with lots of code snippets (100+), examples, and diagrams. Most Java interviews and technical challenges you face at work are structured around the fundamentals and how well you communicate those fundamentals. So regularly brushing up on these fundamentals really pays off. Your analytical, problem solving, and coding skills will also be under scrutiny along with your ability to get the job done with the right tools. If your fundamentals are clear and know what tools to use, you can tackle any questions, and find solutions to any problems and challenges you face. Even if you don't have the exact answer for a problem, you will know how to go about solving them with a little research if you have a solid grounding in the fundamentals covered in this book. A little preparation can make a huge difference to your career success. Preparation can help you communicate your thoughts more clearly with examples and illustrations. Preparation can make a good and lasting impression on those who talk with you during your interviews and team meetings. This impression will be partly influenced by how prepared you are and how knowledgeable you are about your industry and the challenges it faces. It will also be influenced by your appearance, attitude, enthusiasm, and confidence. Good preparation breeds confidence and it shows in the interviews and team meetings. So prepare well in advance if you just begun to see yourself in your dream company or would like to go places in your chosen field.

2017-12-06

OpenCV By Example

About This Book, Get to grips with the basics of Computer Vision and image processingThis is a step-by-step guide to developing several real-world Computer Vision projects using OpenCV 3This book takes a special focus on working with Tesseract OCR, a free, open-source library to recognize text in images, Who This Book Is For, If you are a software developer with a basic understanding of Computer Vision and image processing and want to develop interesting Computer Vision applications with Open CV, this is the book for you. Knowledge of C++ is required., What You Will Learn, Install OpenCV 3 on your operating systemCreate the required CMake scripts to compile the C++ application and manage its dependenciesGet to grips with the Computer Vision workflows and understand the basic image matrix format and filtersUnderstand the segmentation and feature extraction techniquesRemove backgrounds from a static scene to identify moving objects for video surveillanceTrack different objects in a live video using various techniquesUse the new OpenCV functions for text detection and recognition with Tesseract, In Detail, Open CV is a cross-platform, free-for-use library that is primarily used for real-time Computer Vision and image processing. It is considered to be one of the best open source libraries that helps developers focus on constructing complete projects on image processing, motion detection, and image segmentation., Whether you are completely new to the concept of Computer Vision or have a basic understanding of it, this book will be your guide to understanding the basic OpenCV concepts and algorithms through amazing real-world examples and projects., Starting from the installation of OpenCV on your system and understanding the basics of image processing, we swiftly move on to creating optical flow video analysis or text recognition in complex scenes, and will take you through the commonly used Computer Vision techniques to build your own Open CV projects from scratch., By the end of this book, you will be familiar with the basics of Open CV such as matrix operations, filters, and histograms, as well as more advanced concepts such as segmentation, machine learning, complex video analysis, and text recognition.

2017-11-23

例子代码 android http://blog.csdn.net/qq282133/article/details/7616809

http://blog.csdn.net/qq282133/article/details/7616809

2012-05-30

libgdx-0.9.2.zip

libgdx-0.9.2.zip libgdx-0.9.2.zip libgdx-0.9.2.zip

2011-11-15

java 串口通信 包 comm.jar

java 串口通信 包 comm.jar win32com.dll javax.comm.properties

2011-10-21

贪吃蛇.jar

贪吃蛇.jar import java.io.IOException; import java.util.Hashtable; import java.util.Vector; import javax.microedition.lcdui.Font; import javax.microedition.lcdui.Graphics; public class DCSnake extends i { private h jdField_a_of_type_H; private h jdField_b_of_type_H; private h jdField_c_of_type_H; private boolean jdField_c_of_type_Boolean; private boolean d; private int jdField_a_of_type_Int; private int jdField_b_of_type_Int; private int jdField_c_of_type_Int; private boolean e; private f jdField_a_of_type_F; private f jdField_b_of_type_F; private f jdField_c_of_type_F; public final void a(int paramInt) { if (!this.jdField_c_of_type_Boolean) { paramInt = this; if (!this.d) { paramInt.jdField_a_of_type_Int = 6; paramInt.jdField_b_of_type_Int = 0; paramInt.d = true; return; } if (paramInt.jdField_b_of_type_Int &lt; paramInt.jdField_a_of_type_Int) { Object localObject1; switch (paramInt.jdField_b_of_type_Int) { case 0: a.a(); break; case 1: this = paramInt; try { localObject1 = null; localObject1 = Font.getFont(32, 0, 8); Font localFont1 = Font.getFont(32, 1, 8); Font localFont2 = Font.getFont(32, 1, 0); this.jdField_a_of_type_F = new f((Font)localObject1, 0, -1); this.jdField_b_of_type_F = new f(localFont1, 16777215, 0); this.jdField_c_of_type_F = new f(localFont2, 16776960, 32768); t.a(this.jdField_c_of_type_F, this.jdField_a_of_type_F, this.jdField_b_of_type_F); } catch (IOException localIOException) { } case 2: localObject1 = a.a(new int[] { 1245188, 1245190, 1245189 }); v[] arrayOfv = a.a(new int[] { 1245191, 1245193, 1245192 }); t.a(new c(localObject1, true), new c(arrayOfv, true)); break;

2011-09-12

仿 qq 相册

OCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery lightBox plugin</title> <link rel="stylesheet" type="text/css" href="../style-projects-jquery.css" /> <!-- Arquivos utilizados pelo jQuery lightBox plugin --> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script> <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" /> <!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin --> <!-- Ativando o jQuery lightBox plugin --> <script type="text/javascript"> $(function() { $('#gallery a').lightBox(); }); </script> <style type="text/css">

2011-08-31

jdbc 2008

jdbc2008 jdbc2008的驱动

2011-07-30

java 浏览器 源码

java 浏览器 源码 public class EditorPaneTest { public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { JFrame frame = new EditorPaneFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } }); } }-------《java核心技术》

2011-07-30

java 记事本

java记事本 点击就可运行! 需安java的 jvm!

2011-07-30

高校选课系统 源码 strcts2 spring

高校选课系统 strcts2 spring <%@ page language="java" pageEncoding="GBK"%> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%> <html> <head> <title>高校选课系统首页</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } .STYLE1 {color: #FF0000} .STYLE3 {color: #FF0000; font-size: 9pt; } .STYLE7 {font-size: 9pt} --> </style></head>

2011-07-18

java 坦克大战源码

package cn.hnist.Joshua; //download by http://www.codefans.net import java.awt.*; public class HitPoint { public static final int HITPOINTSIZE=50; //血条的长度 int topNumber; //总血量 int number; //当前血量 Tank tk; public HitPoint(int topNum,Tank tk) { if(topNum>50||topNum<=0) { this.topNumber=50; } topNumber=topNum; number=topNum; this.tk=tk; } public void draw(Graphics g) { Color c=g.getColor(); g.setColor(Color.white); g.drawRect(tk.x-25,tk.y-35,HITPOINTSIZE,5); g.setColor(Color.red); g.fillRect(tk.x-24,tk.y-34,number*HITPOINTSIZE/topNumber-1,4); g.setColor(c); } public void cutsHitPoint(int cuts) //发生碰撞时的减血 { number-=cuts; if(isEmpty()) { tk.dead(); } //若血空了,Tank死掉 } public void cutsHitPoint(int cuts,Shot s) //被子弹击中时的减血 { number-=cuts; if(tk.isLive&&tk instanceof RobotTank) { ((RobotTank) tk).avoidThrust(s); } if(isEmpty()) { tk.dead(); } //若血空了,Tank死掉 } public void raisesHitPoint(int raises) //血量增加 { number+=raises; if(number>topNumber) { number=topNumber; } } public boolean isEmpty() { if(number<=0) { return true; } else { return false; } } }

2011-04-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除