Skip to content

Instantly share code, notes, and snippets.

View samigehi's full-sized avatar
🎯
Focusing

Sumeet Kumar samigehi

🎯
Focusing
View GitHub Profile
@samigehi
samigehi / GifDecoder.java
Created February 10, 2016 04:53 — forked from devunwired/GifDecoder.java
An optimized implementation of GifDecoder for Android devices.
/**
* Copyright (c) 2013 Xcellent Creations, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
@samigehi
samigehi / CheckForUpadate.java
Last active February 4, 2016 07:51
Simple class that check for update available or not on Play Store
package com.sumeet;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import android.content.Context;
@samigehi
samigehi / NetworkTask.java
Created December 31, 2015 10:46
Network helper class simply pass url and get json response
package com.sumeet;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;