Código TM

Description

Note on Código TM, created by Pedro Alejandro Núñez castañeda on 23/05/2019.
Pedro Alejandro Núñez castañeda
Note by Pedro Alejandro Núñez castañeda, updated more than 1 year ago
Pedro Alejandro Núñez castañeda
Created by Pedro Alejandro Núñez castañeda over 5 years ago
1
0

Resource summary

Page 1

Preferencias

PreferenceActivity (Interfaz de preferencias) addPreferenceFromResource(R.xml.arch) //Agregar XML con preferencias android:key//en pref.xml atributo para guardar prefs getSharedPreferences() //Obtener prefs. compartidas mode_private //Solo puede abrirlo la aplicación que lo creó appPrefs.getString() //Obtener preferencias guardadas appPrefs.edit() //Editor de preferencias prefEditor.putString() //Cambiar valor pref prefEditor.ommit() //Guardar cambios

Persistencia

java.io //paquete para trabajar con archivos FileInputStream //Bytes de entrada archivo nputStreamReader //puente de flujos de bytes a caracteres FileOutputStream //Flujo de salida para escribir datos OutputStreamWriter //ecuencia caracteres a bytes openFileOutput //Abrir archivo File //Clase para trabajar con url Enviroment //Acceso a variables del entorno getExternalStorageDirectory() //Obtener url de directorio externo getAbsolutePath //obtener dirección principal uses-Permission name="...WRITE_EXTERNAL_STORAGE"> Permiso para trabajar con archivos

BD

SQLiteDatabase //clase para trabajar con la base de datos local .insert(), ..update(), .delete(), .execSQL(("sql") //Ejecutar sentencia ContentValues /contenedor de valores campo valor Insert(Str Table, Str nullColHack, ContentVal) Update(Str Table, Str nullColHack, null) //devuelve # de registros modificados Delete(Str table, Str cond, null) FirebaseDatabase.getInstance() //Instanciar base de datos DatabaseReference

Mensajería

smsm = SmsManager.getDefault() smsm.sendTextMessage(Str phone, null, Str message, pndI sentI, pndI delivery) sendEmail(Str[] to, Str[] cc, Str subj, Str message)

Show full summary Hide full summary

Similar

Rounding to decimal places
Ellen Billingham
Maths C4 Trig formulae (OCR MEI)
Zacchaeus Snape
Business Studies Unit 1
kathrynchristie
TOEFL English Vocab (A - M)
Ali Kane
Cell Organelles and Functions
Melinda Colby
Of Mice and Men Characters - Key essay points
Lilac Potato
AQA Biology 12.1 cellular organisation
Charlotte Hewson
Unit 1 flashcards
C R
Teaching students to be digitally literate
Micheal Heffernan
Language Techniques
Anna Wolski
Cell Physiology and General Physiology of Excitable Tissues- Physiology PMU 2nd Year
Med Student