android - Converting pedometer Activity to work in Fragment -
i working off of this github project , trying convert pedometer code run in fragment instead of activity.
here main activity code i'm trying convert running inside fragment.
i've made minor changes have run in fragment, such moving instantiation of layout objects such textviews oncreateview(), using context reference activity service, etc. small changes leaving main code same.
the code compiles , runs no errors textviews don't show anything, i'm not sure if it's counting steps.
i think maybe problem service, i'm new services i'm not sure what's wrong, since there no errors/crashes. i'd appreciate advice on how convert run in fragment. thanks!
i"m new android, have checked variables make sure updating correctly in fragment? or textviews blank?
Comments
Post a Comment