걸음 정보를 가져오려고 하는데 아래링크의 subscribe와 readData는 구현했고
https://blog.naver.com/PostView.nhn?blogId=cloud_akashic_record&logNo=221818634311
Main Act에서 fragment로 전달하려고 합니다.
// mainact
Bundle bundle = new Bundle();
bundle.putInt("totalStep", totalStep);
MyFragment fragment = new MyFragment();
fragment.setArguments(bundle);
// fragment
MyActivity activity = (MyActivity) getActivity();
Bundle bundle = getArguments();
Integer totalStep = bundle.getSInt("totalStep");
했을 때 오류가 나는데 뭐가 문제일까요!?
그리고 서비스가 실행안되는 문제도 있구요!
V/FA: Inactivity, disconnecting from the service
https://blog.naver.com/PostView.naver?blogId=sinda72&logNo=222158733556&parentCategoryNo=&categoryNo=11&viewDate=&isShowPopularPosts=true&from=search 여기에서 참고했습니다.