How to add system property in Android (안드로이드에서 시스템 프로퍼티 추가 방법)
안드로이드 자바 단에서 System Property 값을 추가하여 Test를 진행하여야 하는 경우가 있습니다.이럴땐, 1번과 2번 같이 사용하시면 됩니다.적용 여부는 3번을 이용하여 확인이 가능합니다. 1. Native int property_get(const char *key, char *value, const char *default_value); int property_set(const char *key, const char *value); 예제, char atci_usermode[PROPERTY_VALUE_MAX]; int usermode = 0; property_set(ATCI_IN_USERMODE_PROP,"1"); property_get(ATCI_IN_USERMODE_PROP, atci_us..
2014. 4. 15. 16:21