- 浏览: 315962 次
- 性别:
- 来自: 成都
最新评论
-
a455642158:
xiajy 写道他妈的都该名字了,更可恶的金山手机助手是:sj ...
解决ADB server didn't ACK问题 -
wwt455653509:
关闭tadb.exe,重启eclipse搞定
解决ADB server didn't ACK问题 -
Frederic:
感谢,真是帮了大忙!腾讯
解决ADB server didn't ACK问题 -
xiajy:
他妈的都该名字了,更可恶的金山手机助手是:sjk_daemon ...
解决ADB server didn't ACK问题 -
xiaofeilv321:
赞同
解决ADB server didn't ACK问题
文章列表
public static byte[] encrypt() throws Exception {
String seed = "SuperSecretPassword";
String plaintext = "This is insecure data!";
//API for generating symmetric cryptographic keys
KeyGenerator keygen = KeyGenerator.getInstance("AES" ...
解决listView挡住button的问题
- 博客分类:
- android
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:layout_width="fi ...
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<B ...
Android 重用Layout
- 博客分类:
- android
<include> tag basically means ‘take that file and paste it’s contents here’
<merge > The layout which we have to use must be enclosed under merge tag, so that we can include layouts from other xmls.
[u][/u]<merge xmlns:android="http://schemas.android.com/apk/res/android"> ...
link NFC Google API:http://developer.android.com/resources/samples/NFCDemo/index.html
link NFC Open API: http://www.open-nfc.org/opennfc_library/overview-summary.html
At the moment (Android 2.3.4), the Android platform does not integrate the Open NFC stack. This stack has several advantages: not lim ...
enable or disable NFC
- 博客分类:
- nfc
This code works on API 15, haven't checked it against other verions yet
public boolean changeNfcEnabled(Context context, boolean enabled) {
// Turn NFC on/off
final boolean desiredState = enabled;
mNfcAdapter = NfcAdapter.getDefaultAdapter(context);
if (mNfcAdapter == null) {
...
在Android emulator上测试NFC
- 博客分类:
- nfc
here's a summary of what to do to set up the OpenNFC stack with the NFC controller (NFCC) simulator.
--The stack (with NFCC simulator) is supported on Windows host only, since both the Connection Center and the NFCC simulator are Windows apps.
--Need to download all 3 packages:
OpenNFC Android SDK ...
There are 4 standard NFC tag types: Type 1, Type 2, Type 3, Type 4 They differ in how you access data on them, and on the communication frame work you use to talk to them. (This gets into the mechanics of how data is exchanged) Mifare is a proprietary standard made by NXP Mifare Ultralite is a type 2 ...
废话少说,直接贴代码,希望对大家有帮助。
public class DrawView extends View{
private Canvas pcanvas;
private Paint paint;
private Path path;
private Bitmap originBitmap;
private Bitmap pureBitmp;
private Bitmap bitmapBuff;
private float scaleWidth;
private float scaleHeight;
private float downx ...
有些太大了,没法传,只能传些小的了。
废话不多说了,直接贴代码
/**
* // camera target:We are looking toward the distance
* @param tx, the camera target x
* @param ty, the camera target y
* @param tz, the camera target z
* // Set our up vector. This is where our head would be pointing were we holding the camera.for example, (0,1,0),we' ...
Upon installation, the Android SDK generates a "debug" signing certificate for you in a keystore called debug.keystore. The Eclipse plug-in uses this certificate to sign each application build that is generated.
Unfortunately a debug certificate is only valid for 365 days. To generate a ne ...
在网上找到的,在此共享出来。介绍怎么学习OPENGLES20的tutorialhttp://www.learnopengles.com/android-lesson-two-ambient-and-diffuse-lighting/