コード例 #1
0
 protected void deinitializeDataFactory() {
   String s;
   try {
     feedsDbConn.cleanEventsTable();
     feedsDbConn.close();
     EPSDKPrefs.clearConfigData();
     EPSDKPrefs.clearStartSessionData();
     return;
   } catch (Exception exception) {
     if ((new StringBuilder("Error deintializing data factory: "))
             .append(exception.getMessage())
             .toString()
         != null) {
       s = exception.getMessage();
     } else {
       s = "";
     }
   }
   Utils.sdkLog(s, 5, null);
 }
コード例 #2
0
 protected void initializeDataFactory(Context context) {
   try {
     mCtx = context;
     if (feedsDbConn == null) {
       feedsDbConn = new FeedsDB(context);
     }
     (new FeedsManagerAPI()).getConfigFeed();
     return;
   }
   // Misplaced declaration of an exception variable
   catch (Context context) {
   }
   if ((new StringBuilder("Error intializing data factory: "))
           .append(context.getMessage())
           .toString()
       != null) {
     context = context.getMessage();
   } else {
     context = "";
   }
   Utils.sdkLog(context, 5, null);
 }