摘要: /** * 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 阅读全文
posted @ 2013-03-22 12:52 IAmAProgrammer 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-03-22 08:37 IAmAProgrammer 阅读(1560) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-03-22 08:22 IAmAProgrammer 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2013-03-22 08:14 IAmAProgrammer 阅读(1949) 评论(0) 推荐(0) 编辑
摘要: http://www.360doc.com/content/06/0929/11/7469_219457.shtmlJava提供了一套机制来动态执行方法和构造方法,以及数组操作等,这套机制就叫——反射。反射机制是如今很多流行框架的实现基础,其中包括Spring、Hibernate等。原理性的问题不是本文的重点,接下来让我们在实例中学习这套精彩的机制。1. 得到某个对象的属性1publicObjectgetProperty(Objectowner,StringfieldName)throwsException{2ClassownerClass=owner.getClass();34Fieldfi 阅读全文
posted @ 2013-03-22 07:27 IAmAProgrammer 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2013-03-22 07:25 IAmAProgrammer 阅读(1278) 评论(0) 推荐(0) 编辑