
BMS와 BDIY에서 각 노드 디바이스(Node device)의 상태를 확인하고 관리하기 위해 화면을 구성하는 방식에 대한 테스트 MainActivity MainActivity.jva activity_main.xml DeviceList cDeviceInfo.java DeviceListAdapter.java device_list.xml setOnClickListener DataList cDataInfo.java DataListAdapteer.java data_list.xml public class MainActivity extends AppCompatActivity { private ArrayList mDeviceList; private DeviceListAdapter mDeviceAdapter; priv..
if(HttpResponseString == null) return; JSONObject jsonObject = null; try { jsonObject = new JSONObject(HttpResponseString); if(jsonObject.has("Message")){ ShowResponseMessage(jsonObject.getString("Message")); return; } }catch(Exception e){ Log.d("[??? HttpResponseString]", HttpResponseString); } switch(HttpRequestType){ case REQUEST_USERINFO: HttpRequestType = REQUEST_NONE; try{ LoginInfo = json..
스피너 예제 Spinner spModelList1; protected void onCreate(Bundle savedInstanceState){ ... spModelList1 = (Spinner) findViewById(R.id.sp_modellist1); spModelList1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { @Override public void onItemSelected(AdapterView adapterView, View view, int i, long l) { ModelIndex = i; JSONObject jsonObj = ModelInfos.get(ModelIndex); try { etSNo1.setT..
보호되어 있는 글입니다.
대화창을 표시하는 소스 코드 private void openSimpleAlertDialog(String title, String message) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(title) .setMessage(message) .setPositiveButton("OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.dismiss(); } }); mAlertDialog = builder.create(); mAlertDialog.show();..
비프음(경고음) 발생 코드 SoundPool mPool; int mdDok; AudioManager mAm; @Override protected void onCreate(Bundle savedInstanceState){ ... mPool = new SoundPool(1, AudioManager.STREAM_ALARM, 0); mdDok = mPool.load(this, R.raw.zxing_beep, 1); mAm = (AudioManager)getSystemService(AUDIO_SERVICE); ... } private void DoSomeJob(){ ... mPool.play(mdDok, 1, 1, 0, beepNumber-1, 1); ... }
보호되어 있는 글입니다.
보호되어 있는 글입니다.
- Total
- Today
- Yesterday
- image
- 치매방지
- 아두이노
- DYOV
- BSC
- Innovations
- Decorator
- bilient
- Video
- 치매
- Hurdles
- 전압전류모니터링
- 허들
- ServantClock
- 티스토리챌린지
- arduino
- 절연형
- 심심풀이치매방지기
- 오블완
- 혁신
- 혁신과허들
- 둎
- Innovations&Hurdles
- 전류
- 배프
- Innovation&Hurdles
- 심심풀이
- 빌리언트
- badp
- 전압
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |