일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 로그캣 색상변경
- aab파일apk변환
- Android10
- BottomNavigation
- 로띠애니메이션
- retrieveExplicitStyle
- Android OS 10
- bottomNavigation animation
- svn체크아웃
- 로그캣 색상지정
- 안드로이드
- Opacity Hex
- 안드로이드aab변환
- 투명도 hex값
- Bluetooth 스캔
- Android Bluetooth
- 디바이스ID
- 고유식별자
- Android
- 안드로이드apk변환
- 바텀네비
- targetSDK29
- 앱강종현상
- 앱강종
- 바텀네비게이션
- lottieAnimation
- 안드로이드 디버깅툴
- 안드로이드 로그캣
- apk변환
- target29
- Today
- Total
목록Android (14)
공부하는 다락방
webview.addJavascriptInterface(new MyJavaScriptObject(), "JSObject" );안드로이드에서는 addJavascriptInterface를 이용하여 더욱 편하게 데이터를 주고 받을 수 있다.addJavascriptInterface 클래스 MyJavaScriptObject()를 만든다. 만들 때 주의할 점은 안드로이드 4.3.X 젤리빈 이상부터 "@JavascriptInterface" annotation을 붙이지 않을 경우해당 메소드는 동작하지 않기 때문에 반드시 붙여줘야한다. 아래는 예제소스private class MyJavaScriptObject{ @JavascriptInterface public void loadComplete(){ } }
안드로이드 6.0에서는 디바이스의 맥어드레스를 가져오지 못합니다. 그러나 다른방법으로 가져오는 방법은 있습니다. 안드로이드의 /sys/class/net/wlan0/address에 Wifi에 대한 mac address의 값을 저장하고 있습니다. public static String getMACAddress(String interfaceName) { try { List interfaces = Collections.list(NetworkInterface.getNetworkInterfaces()); for (NetworkInterface intf : interfaces) { if (interfaceName != null) { if (!intf.getName().equalsIgnoreCase(interfaceNa..
mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); mBluetoothAdapter = mBluetoothManager.getAdapter(); // 리플랙션 try { Method method = mBluetoothAdapter.getClass().getMethod("enableBLE"); boolean result = (Boolean) method.invoke(mBluetoothAdapter); Log.d(TAG, ">> " +result); } catch (Exception e){ Log.e(TAG, e.getMessage()); } // 스캔 mBluetoothAdapter.startLeScan(nu..
1) 이클립스를 먼저 실행시켜 줍니다. 2) Help->Install New Software 메뉴 버튼을 클릭합니다. 3) Add버튼을 클릭 한 후 Name: 임의로 설정 Location: http://dl-ssl.google.com/android/eclipse/ 로 설정하시구 OK버튼을 클릭합니다. 4) 설치해야할 파일이 2가지가 보입니다. 모두 체크하신 후 Next 합니다. 5) 이런 것들이 설치된다고 보여줍니다. 그냥 쿨하게 Next 합니다. 6) I accept 동의 한다는 버튼 클릭후 Finish 합니다. 7) 쭉쭉 설치가 진행되다가 이런 경고창이 뜹니다. 쿨하게 OK 눌러주시면 됩니다. 8) 설치가 다 진행되면 이클립스를 재실행시켜 줍니다. Yes 버튼을 클릭합니다. 9) 이클립스가 재실행되면..