This file contains 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
/** | |
* Minerva Aplicativos™. | |
* Classe criada por Guilherme Ramos em 2018 | |
* Contato: +55 (16) 98134-5755 | |
* www.aplicativosminerva.com | |
*/ | |
public abstract class ApiRestBase { | |
static final String ERROR_401 = "Usuário não autorizado. Faça o login novamente"; |
This file contains 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 2018, Guilherme Henrique Ramos da Silva | |
** | |
** 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 | |
** distributed under the License is distributed on an "AS IS" BASIS, |
This file contains 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 2018, Guilherme Henrique Ramos da Silva | |
** | |
** 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 | |
** distributed under the License is distributed on an "AS IS" BASIS, |
This file contains 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 BitmapUtils extends AsyncTask<Uri, Void, Bitmap>{ | |
private final Context mContext; | |
private BuildBitmapCallback mCallback; | |
private boolean isFinished = false; | |
private boolean needShownMessage = true; | |
public BitmapUtils(final Context context, final BuildBitmapCallback callback) { | |
mContext = context; | |
mCallback = callback; |
This file contains 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.widget.CompoundButton; | |
import android.widget.RadioButton; | |
import android.widget.RadioGroup; | |
/** | |
* Classe criada por Guilherme Ramos em 2018 | |
*/ | |
public final class RadioGroupSimulateUtils { | |
/** |
This file contains 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
mport android.content.Context; | |
import java.io.IOException; | |
import java.io.InputStream; | |
/** | |
* Classe criada por Guilherme Ramos em 2018 | |
*/ | |
public class JsonReaderUtil { |
This file contains 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.support.annotation.LayoutRes; | |
import android.view.View; | |
/** | |
* Classe criada por Guilherme Ramos em 2018 | |
*/ | |
public interface ProgressHelper { | |
void showProgress(); |
This file contains 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.support.annotation.LayoutRes; | |
import android.view.View; | |
/** | |
* Classe criada por Guilherme Ramos em 2018 | |
*/ | |
public interface ProgressHelper { | |
void showProgress(); |
This file contains 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 2018, Guilherme Henrique Ramos da Silva | |
** | |
** 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 | |
** distributed under the License is distributed on an "AS IS" BASIS, |
This file contains 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
class MainClass { | |
public static void main(final String... args) { | |
// Se uma classe implementa uma interface, | |
// então a classe É a interface | |
MyInterface myInterface = new MyConcreteClass(); | |
myInterface.doSomething(); | |
} | |
} | |
// Interface utilizada | |
interface MyInterface { |
OlderNewer