`
jacky-zhang
  • 浏览: 310657 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
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" ...
<?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

<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"> ...

源代码比较工具

    博客分类:
  • tool
用起来还可以的源代码比较工具
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) { ...
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/
自己也在学习,分享一下。
Global site tag (gtag.js) - Google Analytics