getTime return 0 immediately after set
Posted: 21 Aug 2012 09:02
If I get the time immediately after set,but most of time the result is 0,how can I work around this?
lastTime = preferences.getLong(PreferencesActivity.LAST_TIME, 0);
mLibVLC.setTime(lastTime);
long newtime=mLibVLC.getTime();
Here,I need to get the new time for future using,lastTime is not suitable.
lastTime = preferences.getLong(PreferencesActivity.LAST_TIME, 0);
mLibVLC.setTime(lastTime);
long newtime=mLibVLC.getTime();
Here,I need to get the new time for future using,lastTime is not suitable.