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
//funcion en load_info | |
fun showMessageOKCancel_one( | |
ctx: Context, | |
title: String, | |
message: String, | |
okListener: Function1<MaterialDialog, Unit> | |
): MaterialDialog { | |
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
loadInfo.showMessageOKCancel_one_try_again( | |
context, "Error al cargar información", ---> titulo | |
"Ocurrio un problema ", ---> descripción | |
new Function1<MaterialDialog, Unit>() { --> aqui incorporo el listener | |
@Override | |
public Unit invoke(MaterialDialog materialDialog) { | |
AccesoRemoto_Informacion acceso_trasabilidad= new AccesoRemoto_Informacion(AddDataActivity.this); | |
acceso_trasabilidad.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); |
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
{"token":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhdXRvbWF0b25AY2FyZXlvdS5jbCIsInNjb3BlcyI6WyJURU5BTlRfQURNSU4iXSwidXNlcklkIjoiODVkNzhkOTAtN2YzMi0xMWVhLTlmZWYtZDE5OTJiZjg4YTFhIiwiZmlyc3ROYW1lIjoiQVVUT01BVE9OIiwibGFzdE5hbWUiOiJVU0VSIiwiZW5hYmxlZCI6dHJ1ZSwiaXNQdWJsaWMiOmZhbHNlLCJ0ZW5hbnRJZCI6IjFmZGVkNmIwLTYxNWEtMTFlYS1iOWM3LTA5ZmJhOTI5Y2E0YyIsImN1c3RvbWVySWQiOiIxMzgxNDAwMC0xZGQyLTExYjItODA4MC04MDgwODA4MDgwODAiLCJpc3MiOiJ0aGluZ3Nib2FyZC5pbyIsImlhdCI6MTU4NzUxNDk2MSwiZXhwIjoxNTg3NTIzOTYxfQ.gK6LGLRlHeeHfxnKWuT56ty5-knPADSNGgss9lYBp-yLQyjhnzxCZ8MqnvFE98z-F5LYWlwPId-hxbCa_kEfOA","refreshToken":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhdXRvbWF0b25AY2FyZXlvdS5jbCIsInNjb3BlcyI6WyJSRUZSRVNIX1RPS0VOIl0sInVzZXJJZCI6Ijg1ZDc4ZDkwLTdmMzItMTFlYS05ZmVmLWQxOTkyYmY4OGExYSIsImlzUHVibGljIjpmYWxzZSwiaXNzIjoidGhpbmdzYm9hcmQuaW8iLCJqdGkiOiJmY2FlODU4NC0yN2IzLTRlZTgtYjM2Mi1lY2UyNWI3M2Q1ODQiLCJpYXQiOjE1ODc1MTQ5NjEsImV4cCI6MTU4ODExOTc2MX0.YKWmSBjjwMTLgPuI_Kq3J5dUXYO2Id2WUBWpKf4mZOZtkqaBNmdfXr7LA488NFWENv4tg-AU0r34GDH9gOHPBw","responseCode":"200","message |
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
//// enla linea 95 aparece esta funcion | |
fun get_access_token_instance(): String { | |
Log.d("access_token",access_token); | |
if(access_token.length==0){ | |
try { | |
this.access_token = a_user_seleted.accessToken | |
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
private class AccesoRemoto extends AsyncTask<Void, Void, String> { | |
private MaterialDialog a; | |
private Context context; | |
private static final String SINGULARITY_HOST = "https://cloud.careyou.cl/api/"; | |
private RequestFuture<JSONObject> futureRequest = RequestFuture.newFuture(); | |
public AccesoRemoto(Context context) { | |
this.context = context; | |
} |
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
private class AccesoRemoto extends AsyncTask<Void, Void, String> { | |
private MaterialDialog a; | |
private Context context; | |
private static final String SINGULARITY_HOST = "https://cloud.careyou.cl/api/"; | |
private RequestFuture<JSONObject> futureRequest = RequestFuture.newFuture(); | |
public AccesoRemoto(Context context) { | |
this.context = context; | |
} |
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
// USAGE ------ | |
// ============ | |
var shell = require('./shellHelper'); | |
// execute a single shell command | |
shell.exec('npm test --coverage', function(err){ | |
console.log('executed test'); | |
}}); |
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 java.util.* | |
import java.util.concurrent.TimeUnit | |
fun main() { | |
println("Hello, world!!!") | |
compareDateTime() | |
} |
NewerOlder