티스토리 뷰
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 (1) | 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
- Hurdles
- 오블완
- BiliChild
- 둎
- 혁신
- Innovations
- 아두이노
- 전류
- 티스토리챌린지
- 심심풀이
- 치매
- 허들
- Innovation&Hurdles
- 배프
- 빌리칠드
- 빌리언트
- 전압
- Video
- image
- bilient
- 심심풀이치매방지기
- ServantClock
- DYOV
- Decorator
- BSC
- Innovations&Hurdles
- 절연형
- 치매방지
- arduino
- 혁신과허들
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함

