Soumettre la recherche
Mettre en ligne
3
•
Télécharger en tant que TXT, PDF
•
0 j'aime
•
38 vues
Puneet Kumar
Suivre
Signaler
Partager
Signaler
Partager
1 sur 2
Télécharger maintenant
Recommandé
Android databases
Android databases
Rafael Vázquez Sánchez
Functional es6
Functional es6
Natalia Zaslavskaya
Lodash js
Lodash js
LearningTech
Store and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and Cassandra
Deependra Ariyadewa
Python 3.x Dictionaries and Sets Cheatsheet
Python 3.x Dictionaries and Sets Cheatsheet
Isham Rashik
Into Clojure
Into Clojure
Alf Kristian Støyle
Scala introduction
Scala introduction
Alf Kristian Støyle
Lab1-DB-Cassandra
Lab1-DB-Cassandra
Lilia Sfaxi
Recommandé
Android databases
Android databases
Rafael Vázquez Sánchez
Functional es6
Functional es6
Natalia Zaslavskaya
Lodash js
Lodash js
LearningTech
Store and Process Big Data with Hadoop and Cassandra
Store and Process Big Data with Hadoop and Cassandra
Deependra Ariyadewa
Python 3.x Dictionaries and Sets Cheatsheet
Python 3.x Dictionaries and Sets Cheatsheet
Isham Rashik
Into Clojure
Into Clojure
Alf Kristian Støyle
Scala introduction
Scala introduction
Alf Kristian Støyle
Lab1-DB-Cassandra
Lab1-DB-Cassandra
Lilia Sfaxi
Python Spell Checker
Python Spell Checker
Amr Alarabi
16 ruby hashes
16 ruby hashes
Walker Maidana
Google's Guava
Google's Guava
Robert Bachmann
TDD in the wild
TDD in the wild
Brainhub
Python my SQL - create table
Python my SQL - create table
Learnbay Datascience
React Spotlight 2018
React Spotlight 2018
Phong Huynh
Cassandra
Cassandra
Bang Tsui Liou
Python my sql database connection
Python my sql database connection
Learnbay Datascience
37c
37c
Sireesh K
Uni2
Uni2
miriamfacio
Password broker
Password broker
Samartha Sinha
Android Testing
Android Testing
Evan Lin
Apache Cassandra Lesson: Data Modelling and CQL3
Apache Cassandra Lesson: Data Modelling and CQL3
Markus Klems
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Tamir Dresher
Sistema de ventas
Sistema de ventas
DAYANA RETO
Ensayo Convergencia Informatica
Ensayo Convergencia Informatica
miguel camelo
Lab2-DB-Mongodb
Lab2-DB-Mongodb
Lilia Sfaxi
Java script
Java script
Shagufta shaheen
ABAP 7.x New Features and Commands
ABAP 7.x New Features and Commands
Dr. Kerem Koseoglu
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
Heiko Behrens
greenDAO
greenDAO
Mu Chun Wang
C# Starter L04-Collections
C# Starter L04-Collections
Mohammad Shaker
Contenu connexe
Tendances
Python Spell Checker
Python Spell Checker
Amr Alarabi
16 ruby hashes
16 ruby hashes
Walker Maidana
Google's Guava
Google's Guava
Robert Bachmann
TDD in the wild
TDD in the wild
Brainhub
Python my SQL - create table
Python my SQL - create table
Learnbay Datascience
React Spotlight 2018
React Spotlight 2018
Phong Huynh
Cassandra
Cassandra
Bang Tsui Liou
Python my sql database connection
Python my sql database connection
Learnbay Datascience
37c
37c
Sireesh K
Uni2
Uni2
miriamfacio
Password broker
Password broker
Samartha Sinha
Android Testing
Android Testing
Evan Lin
Apache Cassandra Lesson: Data Modelling and CQL3
Apache Cassandra Lesson: Data Modelling and CQL3
Markus Klems
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Tamir Dresher
Sistema de ventas
Sistema de ventas
DAYANA RETO
Ensayo Convergencia Informatica
Ensayo Convergencia Informatica
miguel camelo
Lab2-DB-Mongodb
Lab2-DB-Mongodb
Lilia Sfaxi
Java script
Java script
Shagufta shaheen
ABAP 7.x New Features and Commands
ABAP 7.x New Features and Commands
Dr. Kerem Koseoglu
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
Heiko Behrens
Tendances
(20)
Python Spell Checker
Python Spell Checker
16 ruby hashes
16 ruby hashes
Google's Guava
Google's Guava
TDD in the wild
TDD in the wild
Python my SQL - create table
Python my SQL - create table
React Spotlight 2018
React Spotlight 2018
Cassandra
Cassandra
Python my sql database connection
Python my sql database connection
37c
37c
Uni2
Uni2
Password broker
Password broker
Android Testing
Android Testing
Apache Cassandra Lesson: Data Modelling and CQL3
Apache Cassandra Lesson: Data Modelling and CQL3
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Rx 101 Codemotion Milan 2015 - Tamir Dresher
Sistema de ventas
Sistema de ventas
Ensayo Convergencia Informatica
Ensayo Convergencia Informatica
Lab2-DB-Mongodb
Lab2-DB-Mongodb
Java script
Java script
ABAP 7.x New Features and Commands
ABAP 7.x New Features and Commands
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
beyond tellerrand: Mobile Apps with JavaScript – There's More Than Web
Similaire à 3
greenDAO
greenDAO
Mu Chun Wang
C# Starter L04-Collections
C# Starter L04-Collections
Mohammad Shaker
XTW_Import
XTW_Import
Luther Quinn
Sql queries - Basics
Sql queries - Basics
Purvik Rana
package edu-ser222-m03_02- --- - A binary search tree based impleme.docx
package edu-ser222-m03_02- --- - A binary search tree based impleme.docx
farrahkur54
Android Architecure Components - introduction
Android Architecure Components - introduction
Paulina Szklarska
package singlylinkedlist; public class Node { public String valu.pdf
package singlylinkedlist; public class Node { public String valu.pdf
amazing2001
Kamil Chmielewski, Jacek Juraszek - "Hadoop. W poszukiwaniu złotego młotka."
Kamil Chmielewski, Jacek Juraszek - "Hadoop. W poszukiwaniu złotego młotka."
sjabs
Scala in practice
Scala in practice
patforna
FakeArrayList first - new FakeArrayl_ist(3)- first-set(2- 7-1)- first-.docx
FakeArrayList first - new FakeArrayl_ist(3)- first-set(2- 7-1)- first-.docx
jkristen1
Java 8 - Nuts and Bold - SFEIR Benelux
Java 8 - Nuts and Bold - SFEIR Benelux
yohanbeschi
Modul Praktek Java OOP
Modul Praktek Java OOP
Zaenal Arifin
6. Generics. Collections. Streams
6. Generics. Collections. Streams
DEVTYPE
Scala in practice
Scala in practice
andyrobinson8
Quanlycanbo
Quanlycanbo
PHUONGVINH
Week 12 code
Week 12 code
abhi7692271
Mobile Database Persistence
Mobile Database Persistence
Eric Maxwell
Exemple de création de base
Exemple de création de base
Saber LAJILI
C# Generics
C# Generics
Rohit Vipin Mathews
Accessing data with android cursors
Accessing data with android cursors
info_zybotech
Similaire à 3
(20)
greenDAO
greenDAO
C# Starter L04-Collections
C# Starter L04-Collections
XTW_Import
XTW_Import
Sql queries - Basics
Sql queries - Basics
package edu-ser222-m03_02- --- - A binary search tree based impleme.docx
package edu-ser222-m03_02- --- - A binary search tree based impleme.docx
Android Architecure Components - introduction
Android Architecure Components - introduction
package singlylinkedlist; public class Node { public String valu.pdf
package singlylinkedlist; public class Node { public String valu.pdf
Kamil Chmielewski, Jacek Juraszek - "Hadoop. W poszukiwaniu złotego młotka."
Kamil Chmielewski, Jacek Juraszek - "Hadoop. W poszukiwaniu złotego młotka."
Scala in practice
Scala in practice
FakeArrayList first - new FakeArrayl_ist(3)- first-set(2- 7-1)- first-.docx
FakeArrayList first - new FakeArrayl_ist(3)- first-set(2- 7-1)- first-.docx
Java 8 - Nuts and Bold - SFEIR Benelux
Java 8 - Nuts and Bold - SFEIR Benelux
Modul Praktek Java OOP
Modul Praktek Java OOP
6. Generics. Collections. Streams
6. Generics. Collections. Streams
Scala in practice
Scala in practice
Quanlycanbo
Quanlycanbo
Week 12 code
Week 12 code
Mobile Database Persistence
Mobile Database Persistence
Exemple de création de base
Exemple de création de base
C# Generics
C# Generics
Accessing data with android cursors
Accessing data with android cursors
3
1.
package com.ale.data; import android.content.ContentValues; import
android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class LocationDbAdapter { static final String KEY_ITEMS="items"; static final String KEY_ID="_id"; static final String KEY_NAME="name"; static final String KEY_FIXEDADDRESS="fixedaddress"; static final String KEY_BRANCH_ID="branch_id"; static final String KEY_ADDRESS1="address1"; static final String KEY_ADDRESS2="address2"; static final String KEY_ADDRESS3="address3"; static final String KEY_CONTACT="contact"; static final String KEY_TELEPHONE="telephone"; static final String KEY_FAX="fax"; static final String KEY_EMAIL="email"; static final String KEY_ACTIVE="active"; private DatabaseHelper mDBHelper; private static SQLiteDatabase searchcars; private static final String DATABASE_NAME = "searchcars"; private static final String SQLITE_TABLE = "locations"; private static final int DATABASE_VERSION = 1; private static final Context context=null; private static final String DATABASE_CREATE ="CREATE TABLE if not exists " + SQLITE_TABLE + "("+ KEY_ID + " integer PRIMARY KEY autoincrement," + KEY_NAME + "," + KEY_FIXEDADDRESS + "," + KEY_BRANCH_ID + "," + KEY_ADDRESS1 + "," + KEY_ADDRESS2 + "," + KEY_ADDRESS3 + "," + KEY_CONTACT + "," + KEY_TELEPHONE + "," + KEY_FAX+ "," + KEY_EMAIL + "," +KEY_ACTIVE+";"; private static class DatabaseHelper extends SQLiteOpenHelper { private static final String TAG = null; DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase searchcars) { Log.w(TAG, DATABASE_CREATE); searchcars.execSQL(DATABASE_CREATE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO Auto-generated method stub db.execSQL("DROP TABLE IF EXISTS " +SQLITE_TABLE ); // Create tables again onCreate(db); } } public long createTable(String id, String name,String fixedaddress, String branch_id,String address1,String address2,String address3,
2.
String contact,String telephone,String
fax,String email,String active) { ContentValues initialValues = new ContentValues(); initialValues.put(KEY_ID, id); initialValues.put(KEY_NAME, name); initialValues.put(KEY_FIXEDADDRESS,fixedaddress); initialValues.put(KEY_BRANCH_ID,branch_id); initialValues.put(KEY_ADDRESS1,address1); initialValues.put(KEY_ADDRESS2,address2); initialValues.put(KEY_ADDRESS3,address3); initialValues.put(KEY_CONTACT,contact); initialValues.put(KEY_FAX, fax); initialValues.put(KEY_EMAIL,email); initialValues.put(KEY_ACTIVE,active); return searchcars.insert(SQLITE_TABLE, null, initialValues); } public Cursor fetchAllLocations() { Cursor mCursor = searchcars.query(SQLITE_TABLE, new String[] { KEY_ID,KEY_NAME, KEY_FIXEDADDRESS, KEY_BRANCH_ID, KEY_ADDRESS1,KEY_ADDRESS2,KEY_ADDRESS3, KEY_CONTACT,KEY_FAX,KEY_EMAIL,KEY_ACTIVE}, null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; } public static String getKeyItems() { return KEY_ITEMS; } }
Télécharger maintenant