Use new log system
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user