
sobre uso ContentProvider consultas
Publicado por German (5 intervenciones) el 17/07/2015 18:46:54
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//URI DE CONTENIDO PRINCIPAL
public final static Uri CONTENT_URI = Uri.parse(“content://” + AUTHORITY + “/” + tablaProductos);
public final static Uri CONTENT_URI2 = Uri.parse(“content://” + AUTHORITY + “/” + tablaCategoria);
public static class ColumnasProductos implements BaseColumns{
private Columnas(){ }
public static final String NOMBREPRODUCTO= “nombreproducto”;
public static final String ID_CATEGORIA = “id_categoria”;
}
public static class ColumnasCategoria implements BaseColumns{
private Columnas(){ }
public static final String NOMBRECATEGORIA= “nombrecategoria”;
}
como hago para consultar la tablaProductos y traer el nombrecategoria ?? si tengo dos URI , como se hacen las consultas con ContentResolver.query(…) en ese caso
Muchas Gracias.
Valora esta pregunta


0