03 2013 档案
摘要:1.public 使用对象:类、接口、成员 介绍:无论它所处在的包定义在哪,该类(接口、成员)都是可访问的 2.private 使用对象:成员 介绍:成员只可以在定义它的类中被访问 3.static 使用对象:类、方法、字段、初始化函数 介绍:成名为static的内部类是一个顶级类,它和包含类的成员是不相关的。静态方法是类方法, 是被指向到所属的类而不是类的实例。静态字段是类字段,无论该字段所在的类创建了多少实例,该字 段只存在一个实例被指向到所属的类而不是类的实例。初始化函数是在装载类时执行的,而不是在创建 实例时执行的。 4.final 使用对象:类、方法、...
阅读全文
摘要:DHCP原理详解http://www.linklogger.com/UDP67_68.htmUDP Ports 67 and 68Common UsePort 67 BootpsPort 68 BootpcInbound ScanTypically this traffic is related to normal DHCP operation and is not an attack on your network. DHCP (Dynamic Host Configuration Protocol) is how your computer gets its unique IP addre
阅读全文
摘要:http://androidstudy.iteye.com/blog/785676http://www.cnblogs.com/allin/archive/2010/05/19/1738800.html近来找了一些关于android线程间通信的资料,整理学习了一下,并制作了一个简单的例子。 andriod提供了 Handler 和 Looper 来满足线程间的通信。例如一个子线程从网络上下载了一副图片,当它下载完成后会发送消息给主线程,这个消息是通过绑定在主线程的Handler来传递的。在Android,这里的线程分为有消息循环的线程和没有消息循环的线程,有消息循环的线程一般都会有一个Loop
阅读全文
摘要:android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访问”properties”表在checkin数据库中,改值可以修改上传( Allows read/write access to the “properties” table in the checkin database, to change values that get uploaded)android.permission.ACCESS_COARSE_LOCATION允许一个程序访问CellID或WiFi热点来获取粗略的位置(Allows an application to access
阅读全文
摘要:/* SD卡的寄存器 RCA,16bits,相关卡地址,卡的本地地址,在主机初始化的时候被动态分配 CID,128bits,生产id,oem id,产品名,产品版本,序列号,生产时间 CSD,128bits,关于卡工作条件的专用信息,主要是数据操作方面的 OCR,32bits,工作条件寄存器,主要是电源电压情况寄存器 SCR,64bits,SD配置寄存器,关于卡的特殊性能的寄存器 SD总线协议 通信是通过一个 start位=0 开始,一个 stop位=1 结束 command,开始一个操作。主机发出一个或多个。 一个是address command,多个是broadcast...
阅读全文
摘要:/** * http://code.google.com/p/p1r4t3b0x/ * * This is a file from P1R4T3B0X, a program that lets you share files with * everyone. * Copyright (C) 2012 by Aylatan * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published
阅读全文
摘要:http://www.java2s.com/Open-Source/Android/Network/smartphone-networks/softaptest/mobed/yonsei/Main.java.htmsmartphone networks » softaptest » mobed » yonsei » Main.javapackage softaptest.mobed.yonsei;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.IOExc
阅读全文
摘要:http://stackoverflow.com/questions/8324215/ip-address-of-device-using-phone-as-access-pointThe following code will give you the ip adrress & other details of the wifi enabled devices connected to the the android hotspot deviceMain.javaimport java.util.ArrayList;import android.app.Activity;import
阅读全文
摘要:http://www.whitebyte.info/android/android-wifi-hotspot-manager-classpackage com.whitebyte.wifihotspotutils; import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;import java.lang.reflect.Method;import java.net.InetAddress;import java.util.ArrayList; import android.conten
阅读全文
摘要:http://www.360doc.com/content/06/0929/11/7469_219457.shtmlJava提供了一套机制来动态执行方法和构造方法,以及数组操作等,这套机制就叫——反射。反射机制是如今很多流行框架的实现基础,其中包括Spring、Hibernate等。原理性的问题不是本文的重点,接下来让我们在实例中学习这套精彩的机制。1. 得到某个对象的属性1publicObjectgetProperty(Objectowner,StringfieldName)throwsException{2ClassownerClass=owner.getClass();34Fieldfi
阅读全文
摘要:http://www.dewen.org/q/5419public void setHTCSSID(WifiConfiguration config, String ssid){ Field localField1; try { localField1 = WifiConfiguration.class.getDeclaredField("mWifiApProfile"); localField1.setAccessible(true); Object localObject2 = localFiel...
阅读全文