Use new log system

This commit is contained in:
fkloft
2014-01-05 19:16:46 +01:00
parent b31d973cff
commit 5d674eee40
15 changed files with 84 additions and 50 deletions

View File

@ -4,6 +4,8 @@ import android.app.Activity;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import com.cradle.iitc_mobile.Log;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
@ -106,15 +108,15 @@ public class IntentComparator implements Comparator<ResolveInfo> {
} catch (FileNotFoundException e) {
// Do nothing
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
} catch (ClassNotFoundException e) {
e.printStackTrace();
Log.w(e);
} finally {
if (objectIn != null) {
try {
objectIn.close();
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
}
}
}
@ -173,13 +175,13 @@ public class IntentComparator implements Comparator<ResolveInfo> {
objectOut.writeObject(mIntentMap);
fileOut.getFD().sync();
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
} finally {
if (objectOut != null) {
try {
objectOut.close();
} catch (IOException e) {
e.printStackTrace();
Log.w(e);
}
}
}

View File

@ -12,6 +12,7 @@ import android.support.v4.app.NavUtils;
import android.support.v4.view.ViewPager;
import android.view.MenuItem;
import com.cradle.iitc_mobile.Log;
import com.cradle.iitc_mobile.R;
import java.io.UnsupportedEncodingException;
@ -74,7 +75,7 @@ public class ShareActivity extends FragmentActivity implements ActionBar.TabList
+ "%20(" + URLEncoder.encode(mTitle, "UTF-8") + ")&z=" + mZoom;
} catch (UnsupportedEncodingException e) {
gMapsUri = "http://maps.google.com/?ll=" + mLl + "&z=" + mZoom;
e.printStackTrace();
Log.w(e);
}
Intent gMapsIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(gMapsUri));
intents.add(gMapsIntent);