Back to project page epgreader-android.
The source code is released under:
Apache License
If you think the Android project epgreader-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jeffpalm.android.epg.app; /*w w w.j av a 2 s .c om*/ import android.content.Context; import com.example.android.imagedownloader.ImageDownloader; import com.jeffpalm.android.util.urls.URLCache; public final class EPGReaderUtil { private EPGReaderUtil() { } /** * Returns the mobile version of the link. * * @param link TMZ link * @return mobile version of the link. */ public static String getMobileLink(String link) { link = link.replace("www.", "m."); return link; } public static ImageDownloader newImageDownloader() { ImageDownloader imageDownloader = new ImageDownloader(); imageDownloader.setMode(ImageDownloader.Mode.CORRECT); return imageDownloader; } /** @return a new URLCache for the app. */ public static URLCache getURLCache(Context context) { return new URLCache(context, EPGReaderConstants.URL_CACHE_LIFE_MILLIS); } }