Android Open Source - savemypics C Utils From Project Back to project page savemypics .
License The source code is released under:
Copyright (c) 2014, KB Sriram
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. R...
If you think the Android project savemypics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package org.savemypics.android.util;
/ / w w w . j a v a 2 s . c o m
// Mock class - the real implementation is over
// under android.
import java.io.Closeable;
public class CUtils
{
public final static String toHex(byte [] bytes)
{
StringBuilder sb = new StringBuilder();
for (int i=0; i<bytes.length; i++) {
int unsignedb = (bytes[i] & 0xff);
sb.append(TOHEX[(unsignedb>>4)&0xf]);
sb.append(TOHEX[unsignedb&0xf]);
}
return sb.toString();
}
public final static void quietlyClose(Closeable c)
{
if (c != null) {
try { c.close(); }
catch (Throwable ign) {}
}
}
public static String makeLogTag(Class cls)
{ return cls.getSimpleName(); }
public static void LOGD(final String tag, String message)
{ System.err.println(tag+": " +message); }
public static void LOGD(final String tag, String message, Throwable cause)
{
System.err.println(tag+": " +message);
cause.printStackTrace();
}
public static void LOGW(final String tag, String message)
{ LOGD(tag, message); }
public static void LOGW(final String tag, String message, Throwable cause)
{ LOGD(tag, message, cause); }
private final static char [] TOHEX = {
'0' , '1' , '2' , '3' , '4' , '5' , '6' , '7' ,
'8' , '9' , 'a' , 'b' , 'c' , 'd' , 'e' , 'f'
};
}
Java Source Code List android.util.Base64.java org.savemypics.android.activity.AActivity.java org.savemypics.android.activity.ABaseSettingsActivity.java org.savemypics.android.activity.CAccountInfoListAdapter.java org.savemypics.android.activity.CFlickrSettingsActivity.java org.savemypics.android.activity.CSnapfishSettingsActivity.java org.savemypics.android.activity.CStartActivity.java org.savemypics.android.authenticator.AAuthenticatorActivity.java org.savemypics.android.authenticator.CAuthenticationService.java org.savemypics.android.authenticator.CAuthenticator.java org.savemypics.android.authenticator.CFlickrLoginHookActivity.java org.savemypics.android.authenticator.CFlickrWebActivity.java org.savemypics.android.authenticator.CSelectProviderActivity.java org.savemypics.android.authenticator.CSnapfishLoginActivity.java org.savemypics.android.db.CAccount.java org.savemypics.android.db.CDb.java org.savemypics.android.db.CLocalImage.java org.savemypics.android.db.CMap.java org.savemypics.android.db.CRemoteImage.java org.savemypics.android.event.AEvent.java org.savemypics.android.event.CEventBus.java org.savemypics.android.event.CExceptionEvent.java org.savemypics.android.glue.ABaseGlue.java org.savemypics.android.glue.CFlickrGlue.java org.savemypics.android.glue.CSnapfishGlue.java org.savemypics.android.receiver.CNetworkChangeReceiver.java org.savemypics.android.service.CTaskQueue.java org.savemypics.android.sync.CMediaUtils.java org.savemypics.android.sync.CSyncAdapter.java org.savemypics.android.sync.CSyncService.java org.savemypics.android.sync.CSyncUtils.java org.savemypics.android.util.CBitmapUtils.java org.savemypics.android.util.CFileCache.java org.savemypics.android.util.CLruCache.java org.savemypics.android.util.CUtils.java org.savemypics.android.util.CUtils.java org.savemypics.android.view.CMaximumWidthLayout.java org.savemypics.android.view.CModularLayout.java org.savemypics.android.view.CRefreshButton.java org.savemypics.android.view.CRoundedBitmapView.java org.savemypics.android.view.CStatusCounterView.java org.savemypics.plugin.CIOUtils.java org.savemypics.plugin.CPlugin.java org.savemypics.plugin.flickr.CFlickrAlbum.java org.savemypics.plugin.flickr.CFlickrUtils.java org.savemypics.plugin.snapfish.CSnapfishAlbum.java org.savemypics.plugin.snapfish.CSnapfishFeed.java org.savemypics.plugin.snapfish.CSnapfishUser.java org.savemypics.plugin.snapfish.CSnapfishUtils.java