while문을 돌릴때
while(location == null){ }
라고쳣을떄
로케이션이 널이라면 계속 돌잖아요
그걸 시간을 정해주는방법이있을까요 ??
로케이션이 널이면 10초에한번씩 돌게 이런식으로 가능하다면 방법좀 제시해주시해주시면 감사하겠습니다.
while(location == null){
Thread.sleep(10000);
}
로그인 유지
while(location == null){
Thread.sleep(10000);
}