Created
November 12, 2013 07:43
-
-
Save pedrogk/7427085 to your computer and use it in GitHub Desktop.
versión ajustada de CPUIdApp.java con código JNI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.cpuid; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.TextView; | |
public class CPUIdApp extends Activity | |
{ | |
/** Called when the activity is first created. */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) | |
{ | |
super.onCreate(savedInstanceState); | |
TextView tv = new TextView(this); | |
tv.setText(cpuid_get()); | |
setContentView(tv); | |
} | |
private static native String cpuid_get(); | |
static { System.loadLibrary("cpuid"); } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment