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
{"PKMIMG":{ "Bulbasaur":"http://img.pokemondb.net/artwork/bulbasaur.jpg","Ivysaur":"http://img.pokemondb.net/artwork/ivysaur.jpg","Venusaur":"http://img.pokemondb.net/artwork/venusaur.jpg","Charmander":"http://img.pokemondb.net/artwork/charmander.jpg","Charmeleon":"http://img.pokemondb.net/artwork/charmeleon.jpg","Charizard":"http://img.pokemondb.net/artwork/charizard.jpg","Squirtle":"http://img.pokemondb.net/artwork/squirtle.jpg","Wartortle":"http://img.pokemondb.net/artwork/wartortle.jpg","Blastoise":"http://img.pokemondb.net/artwork/blastoise.jpg","Caterpie":"http://img.pokemondb.net/artwork/caterpie.jpg","Metapod":"http://img.pokemondb.net/artwork/metapod.jpg","Butterfree":"http://img.pokemondb.net/artwork/butterfree.jpg","Weedle":"http://img.pokemondb.net/artwork/weedle.jpg","Kakuna":"http://img.pokemondb.net/artwork/kakuna.jpg","Beedrill":"http://img.pokemondb.net/artwork/beedrill.jpg","Pidgey":"http://img.pokemondb.net/artwork/pidgey.jpg","Pidgeotto":"http://img.pokemondb.net/artwork/pidgeotto.jpg","Pi |
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
[ | |
{ | |
"id": "01", | |
"name": "Bulbasaur", | |
"species": "Seed Pokémon", | |
"type": [ | |
"Grass", | |
"Poison" | |
], | |
"height": "2′4″ (0.71m)", |
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 APIHandler { | |
private static final String API_URL = "http://api2.softonic.com"; | |
private static RestAdapter restAdapter; | |
public APIHandler() {} | |
private static RestAdapter getRestAdapter(){ | |
if(restAdapter==null){ | |
restAdapter = new RestAdapter.Builder() |
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.coffeearmy.softtest.rest; | |
import retrofit.RestAdapter; | |
public class APIHandler { | |
private static final String API_URL = "http://api2.softonic.com"; | |
private static RestAdapter restAdapter; | |
public APIHandler() {} |
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
import android.app.AlertDialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
public class DialogHelper { | |
public static void showDialog2Button(Context c, final String title, | |
final String message, | |
DialogInterface.OnClickListener positiveListener, | |
DialogInterface.OnClickListener negativeListener) { |
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
import com.squareup.otto.Bus; | |
public class OttoBusHelper { | |
private static Bus _currentBus; | |
public OttoBusHelper() | |
{ | |
} |
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.lucentia.ahorrarelec.data; | |
import java.util.List; | |
import android.content.Context; | |
import android.database.sqlite.SQLiteDatabase; | |
import de.greenrobot.dao.AbstractDao; | |
import de.greenrobot.dao.Property; | |
import de.greenrobot.dao.query.WhereCondition; |
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
import java.util.ArrayList; | |
import java.util.List; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentTransaction; | |
import android.support.v4.app.LoaderManager.LoaderCallbacks; | |
import android.support.v4.content.Loader; | |
import android.view.LayoutInflater; | |
import android.view.Menu; |
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.lucentia.ahorrarelec; | |
import android.app.ActionBar; | |
import android.app.FragmentTransaction; | |
import android.os.Bundle; | |
import android.support.v4.app.FragmentActivity; | |
import android.support.v4.view.ViewPager; | |
import android.view.Menu; | |
import com.lucentia.ahorraelec.tabs.SectionsPagerAdapter; |