<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
public BroadcastReceiver connectionReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
public BroadcastReceiver connectionReceiver = new BroadcastReceiver() {
@Override
public void onReceive(Context context, Intent intent) {
/** | |
* 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; |
Pagina de ejemplos de herramientas para android de codigo abierto, calendarios custos, FileManeger Custom.
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(); |
// 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>() |