android show an activity for every 24 hrs
<p>in my app next to the splash screen i need to show an activity called Tips Page. This activity to be shown once in a day. When the user opens the app again within 24 hrs it should not be shown.</p>

<p>First i tried to show based on the current date, when the first the activity shown i will <code>store the current date in shared preference</code> and next time when the app gets opened i will <code>check</code> whether the <code>current date and date in shared preference are equal or not</code>. If equal i will not show the activity if not i will show the activity.</p>

<p>But here there is a logic mistake, if the user opens the app first in midnight of 11 PM in a date, and again opens the app after t hour the Tips activity will be shown, but i need to show it after 24 hrs, how can it be done. pls help me in this ligic</p>
