728x90 안드로이드152 안드로이드 Secret Code (android_secret_code) 안드로이드에서는 특정한 Secret Code 를 지원하는 기능이 있습니다.요걸 어떻게 실행하냐?*#*#[Code]#*#* 을 기본 다이얼 어플에서 누르면 숨겨진 메뉴가 실행되는 것을 이야기 합니다. *#*#225#*#* : Calendar Info각 계정별로 존재하는 Event의 수를 보여 줍니다.*#*#4636#*#* : Testing기본적인 Testing을 진행 할 수 있는 어플로, Phone / Battery / Usage / Wifi Information을 보여줍니다. 2014. 6. 17. 이클립스에서 안드로이드 시스템 앱 빌드하기 (How to build Android system app?) 1. 이클립스 앱 로딩 및 User Libraries 추가하기 직접 포스팅 할까 하다가 잘 정리 된 사이트가 있어 링크 겁니다. 아래 가셔서 그대로 따라하고 나서 다시 돌아오세요~ㅋ http://androidhuman.tistory.com/517 2. eclipse 에서 참고 가능한 파일 생성 build/target/product/security A. pk8 을 pem 파일로 변환 openssl pkcs8 -inform DER -nocrypt -in platform.pk8 -out platform.pem B. pem/x509 파일을 p12 파일로 변환 openssl pkcs12 -export -in platform.x509.pem -inkey platform.pem -out platform.p12 -pa.. 2014. 6. 17. 안드로이드 CPU Core 갯수 가져오기 (How to get the number of CPU cores) /** * Gets the number of cores available in this device, across all processors. * Requires: Ability to peruse the filesystem at "/sys/devices/system/cpu" * @return The number of cores, or 1 if failed to get result */ private int getNumCores() { //Private Class to display only CPU devices in the directory listing class CpuFilter implements FileFilter { @Override public boolean accept(File pathnam.. 2014. 6. 16. 안드로이드 CPU 정보 가져오기 (Android getting CPU information) public class CpuinfoActivity extends Activity { private TextView textInfo; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); textInfo = (TextView) findViewById(R.id.cpu_info_display); textInfo.setText(getInfo()); } private String getInfo() { StringBuffer sb = new StringBuffer(); sb.append("abi: ").append(Build.CPU_ABI)... 2014. 6. 16. 안드로이드 총 RAM Size 구하기 (Android Total RAM size) String[] arrayOfString = null; try { arrayOfString = new java.io.RandomAccessFile("/proc/meminfo", "r").readLine().split(" kB")[0].split(" "); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } int m = Integer.parseInt(arrayOfString[(-1 + arrayOfString.length)]); int nTota.. 2014. 6. 16. 안드로이드 IP 주소 가져오기 (Android IP Address) // Permission 추가 // IP Address 가져오는 코드 public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); checkAvailableConnection(); } void checkAvailableConnection() { ConnectivityManager connMgr = (ConnectivityManager) this .getSystemService(Context.CONNECTIVITY_SERVICE); final android.net.. 2014. 6. 16. Android MAC Address (안드로이드 맥 주소 가져오기) MAC Address는 와이파이 하드웨어의 MAC Address이므로 와이파이의 상태에 접근할 수 있는 퍼미션을 부여해야 합니다. Manifest 파일에 퍼미션을 추가 그리고 코드에서 아래 코드를 삽입하면 가져오는게 가능합니다. WifiManager mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo mWifiInfo = mWifiManager.getConnectionInfo(); String mac = mWifiInfo.getMacAddress(); 2014. 6. 16. [안드로이드] 지원 센서 확인 (Checking supported sensors in Android - SensorManager) 지원 센서 (Supported Sensor) /** * A constant describing an accelerometer sensor type. See * {@link android.hardware.SensorEvent#values SensorEvent.values} for more * details. */ public static final int TYPE_ACCELEROMETER = 1; /** * A constant describing a magnetic field sensor type. See * {@link android.hardware.SensorEvent#values SensorEvent.values} for more * details. */ public static final int T.. 2014. 6. 12. [안드로이드] sendStickyBroadcast() / sendBroadcast() sendBroadcast( Intent intent )일반적인 broadcast 는 sendBroadcast() 로 전달되는 순간에 등록된 receiver 들의 onReceive() 만을 호출하는 구조로 되어 있습니다.이 Receiver에 등록이 되지 않는다면 해당 Message를 받을 수 없는 상태가 되어 버리는 것이지요.요게 일반적인 어플에서는 문제가 되지 않으나, 네트워크 관련 정보를 업데이트 하는 경우에는 문제의 소지가 있습니다. sendStickyBroadcast( Intent intent )이로 인해서 나온게 바로 sendStickyBroadcast()입니다.해당 API로 보낸 broadcast 는 system 에 남아있다가, 새롭게 해당 broadcast 를 받을 수 있는 receiver 가.. 2014. 6. 12. 구글 안드로이드 TV (Google Android TV) 우리 생활의 일부를 야금 야금 먹어 들어오는 구글의 행보가 가속화되어가고 있습니다.핸드폰을 시작으로, 시계, 무인 자동차, TV가 발표되었고, 오픈 소스 전략을 내세워서 전구 및 생활 가전(냉장고, 침대)등이 안드로이드를 통해 제어가 되는 세상이 되어가고 있습니다.구글 마켓이 구글 플레이로 이름을 변경하던 당시,모든 사람들이 하나같이 입을 모아서 이야기 했던게 바로 현실로 다가오고 있는 것 입니다. 점차 구글이 그리는 세상이 눈앞에 오기 시작했습니다. 2014. 6. 2. error: No resource identifier found for attribute 'widgetCategory' in package 'android' Project Build Target을 Android 4.2.2 이상으로 설정해 주시고 나서 Clean을 해주시면 끝납니다. 1. Project 속성 > Android > Change the Project Build Target to upper Android 4.2.2 2. Project > Clean... > OK 2014. 5. 27. 블루투스 UUID란? (What is the bluetooth UUID?) 블루투스의 UUID란? 범용 고유 번호(Universally Unique Identifiers)라고 불리며 128비트의 숫자들을 조합한다. 말 그대로 범용적으로 사용할 수 있는 고유의 ID를 사용하기 위하여 생성되며, 그렇기 때문에 128비트의 Hex조합은 Unique하여야 한다. Bluetooth에서는 device에서 제공하는 service를 검색하여 각 service마다 UUID를 부여하는 등 많은 부분에서 사용된다. UUID의 구성요소UUID = (time_low) - (time_mid) - (time_high_and_version) - (clock_seq_hi_and_reserved) - (clock_seq_low - node) // Unique UUID for this application pr.. 2014. 5. 26. 이전 1 ··· 5 6 7 8 9 10 11 ··· 13 다음 728x90