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
package com.example.android; | |
import android.database.Cursor; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentTransaction; | |
import android.support.v4.app.LoaderManager; | |
import android.support.v4.content.CursorLoader; | |
import android.support.v4.content.Loader; |
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
package com.neosperience.egea; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.view.GestureDetectorCompat; | |
import android.text.Html; | |
import android.util.Log; | |
import android.view.GestureDetector; | |
import android.view.LayoutInflater; | |
import android.view.MotionEvent; |
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
/* | |
* Copyright (C) 2006 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
private static String getCacheKey(String url, int maxWidth, int maxHeight) { | |
return md5(new StringBuilder(url.length() + 12).append("#W").append(maxWidth) | |
.append("#H").append(maxHeight).append(url).toString()); | |
} | |
private static final String md5(final String s) { | |
try { | |
// Create MD5 Hash | |
MessageDigest digest = java.security.MessageDigest | |
.getInstance("MD5"); |
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
package com.neosperience.egea.utils.volleytoolbox; | |
import com.android.volley.RequestQueue; | |
import com.android.volley.toolbox.Volley; | |
import android.content.Context; | |
/** | |
* Manager for the queue | |
* |
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
package com.neosperience.egea.utils.volleytoolbox; | |
import com.android.volley.toolbox.ImageLoader.ImageCache; | |
import android.graphics.Bitmap; | |
import android.support.v4.util.LruCache; | |
import android.util.Log; | |
/** | |
* Basic LRU Memory cache. |
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
package com.neosperience.egea; | |
import android.app.Application; | |
import android.graphics.Bitmap; | |
import com.neosperience.egea.utils.volleytoolbox.ImageCacheManager; | |
import com.neosperience.egea.utils.volleytoolbox.RequestManager; | |
/** | |
* Created by Omar on 03/09/13. |
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
package com.neosperience.egea.utils.volleytoolbox; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.CompressFormat; | |
import android.os.AsyncTask; | |
import com.android.volley.toolbox.ImageLoader; | |
import com.android.volley.toolbox.ImageLoader.ImageCache; | |
import com.android.volley.toolbox.ImageLoader.ImageListener; |
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
package com.neosperience.egea.utils.volleytoolbox; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.CompressFormat; | |
import android.graphics.BitmapFactory; | |
import android.util.Log; | |
import com.android.volley.toolbox.ImageLoader.ImageCache; | |
import com.jakewharton.disklrucache.DiskLruCache; |