- https://github.com/SimpleMobileTools
Pagina de ejemplos de herramientas para android de codigo abierto, calendarios custos, FileManeger Custom.
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
// https://medium.com/swlh/kotlin-sealed-class-for-success-and-error-handling-d3054bef0d4e | |
// https://medium.com/androiddevelopers/sealed-with-a-class-a906f28ab7b5 | |
sealed class ResultOf<out T: Any> { | |
data class Success<out T: Any>(val value: T): ResultOf<T>() | |
data class Error( | |
val message: String?, | |
val throwable: Throwable? | |
): ResultOf<Nothing>() | |
object InProgress : ResultOf<Nothing>() |
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
apply plugin: 'com.android.application' | |
apply plugin: 'io.fabric' | |
import groovy.swing.SwingBuilder | |
def keyPropertiesFile = rootProject.file("key.properties"); | |
if (keyPropertiesFile == null || !keyPropertiesFile.exists()) { | |
throw new GradleException("key.properties file is missing that contains Pilgrim Keys."); | |
} | |
def keyProperties = new Properties(); |
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
/** | |
* Clase para cargar los iconos de FontAwesome v4.7.0 | |
* Usar {@link FontAwesomeIcon#setCodeText(String)} para hacer el set del texto en el codigo | |
* @author oscarcid | |
*/ | |
public class FontAwesomeIcon extends AppCompatTextView { | |
int c1,c2,c3; | |
Shader shader; |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
public BroadcastReceiver connectionReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {