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 Usuario { | |
private int idusuario; | |
private String usuario; | |
private String contrasenia; | |
private String estado; | |
public Usuario() { | |
super(); | |
} |
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 Persona { | |
private int idpersona; | |
private String nombre; | |
private String apellidos; | |
private String fechanacimiento; | |
private String sexo; | |
private String estado; | |
public Persona() { | |
super(); |
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 Constant { | |
public static String DBname = "ExampleSQLite.db"; | |
public static int DBversion = 1; | |
// Tables | |
public static String TBusuario = "TBusuario"; | |
public static String TBpersona = "TBpersona"; | |
// Columns | |
public static String Cidusuario = "idusuario"; | |
public static String Cusuario = "usuario"; | |
public static String Ccontrasenia = "contrasenia"; |
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 ManageOpenHelper extends SQLiteOpenHelper { | |
public ManageOpenHelper(Context context) { | |
super(context, Constant.DBname, null, Constant.DBversion); | |
// TODO Auto-generated constructor stub | |
} | |
@Override | |
public void onCreate(SQLiteDatabase db) { | |
// TODO Auto-generated method stub |
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.johannfjs.location; | |
import android.Manifest; | |
import android.app.Activity; | |
import android.app.Service; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.content.pm.PackageManager; | |
import android.location.Location; |