Skip to content

Instantly share code, notes, and snippets.

View omarmiatello's full-sized avatar

Omar Miatello omarmiatello

View GitHub Profile
@omarmiatello
omarmiatello / RssRequest.java
Last active February 27, 2016 14:00
RssRequest for Volley (Android lib)
/**
* Copyright 2013 Omar Miatello - [email protected]
*
* 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
@omarmiatello
omarmiatello / TagManagerUtils.java
Last active December 23, 2015 17:39
Simplfy TagManager with shortcut
/**
* Copyright 2013 Omar Miatello - [email protected]
*
* 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
@omarmiatello
omarmiatello / FacebookExampleActivity.java
Created September 25, 2013 14:11
Facebook 3.5 Share Dialog Example
package com.neosperience.mattel.toybox;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
public class FacebookExampleActivity extends FragmentActivity {
@Override
@omarmiatello
omarmiatello / ParcelableUtil.java
Last active September 19, 2024 21:41
Parcelable to byte array, byte array to parcelable
/**
* Copyright 2013 Omar Miatello - [email protected]
* Based on http://stackoverflow.com/a/18000094/1228545
*
* 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
*
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;
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;
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;
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.
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.
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
*