티스토리 뷰
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 = jsonObject;
JSONArray modelList = LoginInfo.getJSONArray("ModelData");
for(int index1=0; index1<modelList.length(); index1++){
JSONObject model0 = modelList.getJSONObject(0);
ModelList.add(model0);
ModelNameList.add(model0.getString("ModelName"));
}
JSONObject userInfo = LoginInfo.getJSONObject("UserInfo");
String eDate = userInfo.getString("E_Date");
if(!CheckExpireDate(eDate)){
openSimpleAlertDialogOnUiThread("[Notice]", "Subscription Expired");
//IsExpired = true;
return;
}
반응형
'SWDesk > App' 카테고리의 다른 글
Testing WebAccess (0) | 2021.11.16 |
---|---|
RecyclerVieiwTest02 (0) | 2021.11.06 |
[Android] Spinner Example (0) | 2021.08.29 |
[Android] HTTP POST Request (0) | 2021.08.22 |
[Android] Displaying AlertDialog (0) | 2021.08.14 |
반응형
250x250
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 전압
- 심심풀이치매방지기
- 아두이노
- 오블완
- 빌리언트
- 절연형
- 치매방지
- Innovation&Hurdles
- bilient
- 허들
- image
- Innovations
- 배프
- Video
- Innovations&Hurdles
- 치매
- 전압전류모니터링
- Hurdles
- 둎
- 전류
- arduino
- 혁신
- DYOV
- BSC
- 혁신과허들
- ServantClock
- badp
- 티스토리챌린지
- Decorator
- 심심풀이
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함