|
|
|
@ -102,6 +102,13 @@ public class AppMaster {
|
|
|
|
|
public void run() {
|
|
|
|
|
|
|
|
|
|
// mMasterUrl = "http://192.168.50.100/mntn/";
|
|
|
|
|
final Context context = mService.getApplicationContext();
|
|
|
|
|
String appPath = MicroPhotoContext.buildAppDir(context);
|
|
|
|
|
File mpappDb = new File(appPath + "data/App.db");
|
|
|
|
|
if (System.currentTimeMillis() - mpappDb.lastModified() > 1800000) // greater than 30m{
|
|
|
|
|
|
|
|
|
|
MicroPhotoContext.restartMpApp(context);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String masterUrl = mMasterUrl;
|
|
|
|
|
|
|
|
|
|