This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Remove Android logging code | |
-assumenosideeffects class android.util.Log { | |
public static boolean isLoggable(java.lang.String, int); | |
public static int v(...); | |
public static int i(...); | |
public static int w(...); | |
public static int d(...); | |
public static int e(...); | |
public static java.lang.String getStackTraceString(java.lang.Throwable); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyXofYPagerAdapter extends FragmentPagerAdapter { | |
private final ArrayList<RssItem> items; | |
public MyXofYPagerAdapter(FragmentManager fm, | |
ArrayList<RssItem> items) { | |
super(fm); | |
this.items = items; | |
} | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* simple util to build the static google map url for the lat/long | |
* @param latitude | |
* @param longitude | |
* @return static google map url | |
*/ | |
public static Uri buildStaticGoogleMapUrlForAddress(String latitude, String longitude){ | |
Builder builder = Uri.parse("http://maps.google.com/maps/api/staticmap").buildUpon(); | |
builder.appendQueryParameter("center", latitude+","+longitude); |
NewerOlder