I am designing an app which requires to get the activities using activity recognition.But i am new to android.And now i can implement and get results of activities but i have some questions here.I have completed the code.if any one answers these questions it will be very useful to me.
- Is there any time interval(to get updates) which is accurate and enough (not to drain the battery and getting good results).
- how to get previous activity (here i want to compare the current activity with previous activity).