SlideShare uma empresa Scribd logo
1 de 12
Android
mobilių programėlių kūrimo įvadas
Storage Options
Android provides several options for you to save
persistent application data.

Shared Preferences - Store private primitive
data in key-value pairs.

Internal Storage - Store private data on the
device memory.

External Storage - Store public data on the
shared external storage.

SQLite Databases - Store structured data in a
private database.
SharedPreferences   - getSharedPreferences() - Use this if you need
                    multiple preferences files identified by name,
                    which you specify with the first parameter.

                    - getPreferences() - Use this if you need only
                    one preferences file for your Activity.

                    To read values, use SharedPreferences
                    methods such as getBoolean() and getString().

                    To write values:
                    1. Call edit() to get a SharedPreferences.Editor.
                    2. Add values with methods such as putString().
                    3. Commit the new values with commit()
Internal Storage   To create and write a private file to the internal
                   storage:

                   1. Call openFileOutput() with the name of the file
                   and the operating mode. This returns a
                   FileOutputStream.

                   2. Write to the file with write().

                   3. Close the stream with close().
External Storage   If you're using API Level 7 or lower, use
                   getExternalStorageDirectory() to open a File that represents the
                   root of the external storage, then save your shared files in one of
                   the following directories:

                   Music/ - Media scanner classifies all media found here as user
                   music.
                   Podcasts/ - Media scanner classifies all media found here as a
                   podcast.
                   Ringtones/ - Media scanner classifies all media found here as a
                   ringtone.
                   Alarms/ - Media scanner classifies all media found here as an
                   alarm sound.
                   Notifications/ - Media scanner classifies all media found here as
                   a notification sound.
                   Pictures/ - All photos (excluding those taken with the camera).
                   Movies/ - All movies (excluding those taken with the camcorder).
                   Download/ - Miscellaneous downloads.
Databases   Android provides full support for SQLite
            databases. Any databases you create will be
            accessible by name to any class in the
            application, but not outside the application.

            The recommended method to create a new
            SQLite database is to create a subclass of
            SQLiteOpenHelper and override the onCreate()
            method, in which you can execute a SQLite
            command to create tables in the database.
Databases   You can then get an instance of your
            SQLiteOpenHelper implementation using the
            constructor you've defined. To write to and
            read from the database, call
            getWritableDatabase() and
            getReadableDatabase(), respectively.

            These both return a SQLiteDatabase object
            that represents the database and provides
            methods for SQLite operations.
GPS   GPS_PROVIDER
      This provider determines location using satellites.
      Depending on conditions, this provider may take
      a while to return a location fix.

      NETWORK_PROVIDER
      This provider determines location based on
      availability of cell tower and WiFi access points.
      Results are retrieved by means of a network
      lookup.

      PASSIVE_PROVIDER
      A special location provider for receiving locations
      without actually initiating a location fix.
Google Maps

              The Google Maps Android API v2 uses a new
              system of managing keys. Existing keys from a
              Google Maps Android v1 application, commonly
              known as MapView, will not work with the v2 API.

              To access the Google Maps servers with the
              Maps API, you have to add a Maps API key to
              your application. The key is free, you can use it
              with any of your applications that call the Maps
              API, and it supports an unlimited number of
              users.
Google Maps
              An Android application that uses the Google
              Maps Android API needs to specify the
              following settings in its manifest file,
              AndroidManifest.xml:

              Permissions that give the application access
              to Android system features and to the
              Google Maps servers.

              Notification that the application requires
              OpenGL ES version 2.

              The Maps API key for the application. The
              key confirms that you've registered with the
              Google Maps service via the Google APIs
              Console.
Camera
Q&A
v.valkaitis@appcamp.lt

Mais conteúdo relacionado

Destaque

Latihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji naganLatihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji naganBambang Nagan
 
2 sist. pencernaan biologi
2 sist. pencernaan biologi2 sist. pencernaan biologi
2 sist. pencernaan biologiBambang Nagan
 
Philadelphia
PhiladelphiaPhiladelphia
Philadelphiajordmac
 
The Globalist (Special Issue)
The Globalist (Special Issue)The Globalist (Special Issue)
The Globalist (Special Issue)Rosemarie Antonio
 
GML January - June 2013 (Governor's Monthly Letter)
GML January - June 2013 (Governor's Monthly Letter)GML January - June 2013 (Governor's Monthly Letter)
GML January - June 2013 (Governor's Monthly Letter)Rosemarie Antonio
 
Presentation1
Presentation1Presentation1
Presentation1jordmac
 
"Android" mobilių programėlių kūrimo įvadas
"Android" mobilių programėlių kūrimo įvadas"Android" mobilių programėlių kūrimo įvadas
"Android" mobilių programėlių kūrimo įvadasTadas Jurelevičius
 
Latihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji naganLatihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji naganBambang Nagan
 
All about dinosaurs 1
All about dinosaurs 1All about dinosaurs 1
All about dinosaurs 1jordmac
 
John adams quincy
John adams quincyJohn adams quincy
John adams quincyjordmac
 
INGLÊS 10º ANO: STUDYING ABROAD
INGLÊS 10º ANO: STUDYING ABROADINGLÊS 10º ANO: STUDYING ABROAD
INGLÊS 10º ANO: STUDYING ABROADDaniel Sousa
 

Destaque (16)

Latihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji naganLatihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji nagan
 
027665
027665027665
027665
 
Glándulas sudoríparas
Glándulas sudoríparasGlándulas sudoríparas
Glándulas sudoríparas
 
2 sist. pencernaan biologi
2 sist. pencernaan biologi2 sist. pencernaan biologi
2 sist. pencernaan biologi
 
App Camp 2014 Final Pitches
App Camp 2014 Final PitchesApp Camp 2014 Final Pitches
App Camp 2014 Final Pitches
 
Philadelphia
PhiladelphiaPhiladelphia
Philadelphia
 
The Globalist (Special Issue)
The Globalist (Special Issue)The Globalist (Special Issue)
The Globalist (Special Issue)
 
GML January - June 2013 (Governor's Monthly Letter)
GML January - June 2013 (Governor's Monthly Letter)GML January - June 2013 (Governor's Monthly Letter)
GML January - June 2013 (Governor's Monthly Letter)
 
Fusao nuclearpt
Fusao nuclearptFusao nuclearpt
Fusao nuclearpt
 
Presentation1
Presentation1Presentation1
Presentation1
 
"Android" mobilių programėlių kūrimo įvadas
"Android" mobilių programėlių kūrimo įvadas"Android" mobilių programėlių kūrimo įvadas
"Android" mobilių programėlių kūrimo įvadas
 
Latihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji naganLatihan powerpoint1 bambang aji nagan
Latihan powerpoint1 bambang aji nagan
 
All about dinosaurs 1
All about dinosaurs 1All about dinosaurs 1
All about dinosaurs 1
 
John adams quincy
John adams quincyJohn adams quincy
John adams quincy
 
INGLÊS 10º ANO: STUDYING ABROAD
INGLÊS 10º ANO: STUDYING ABROADINGLÊS 10º ANO: STUDYING ABROAD
INGLÊS 10º ANO: STUDYING ABROAD
 
Daño axonal difuso
Daño axonal difusoDaño axonal difuso
Daño axonal difuso
 

Semelhante a "Android" mobilių programėlių kūrimo įvadas #3

Android booting sequece and setup and debugging
Android booting sequece and setup and debuggingAndroid booting sequece and setup and debugging
Android booting sequece and setup and debuggingUtkarsh Mankad
 
Android session 4-behestee
Android session 4-behesteeAndroid session 4-behestee
Android session 4-behesteeHussain Behestee
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A NutshellTed Chien
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App DevelopmentMike Kvintus
 
Mobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdfMobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdfAbdullahMunir32
 
Android programming
Android programmingAndroid programming
Android programmingvijay_uttam
 
2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptx2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptxNizarnizarsurche
 
Accessing Hardware on Android
Accessing Hardware on AndroidAccessing Hardware on Android
Accessing Hardware on AndroidGary Bisson
 
12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptx12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptxFaezNasir
 
Synapseindia android application development tutorial
Synapseindia android application development tutorialSynapseindia android application development tutorial
Synapseindia android application development tutorialSynapseindiappsdevelopment
 
Synapseindia android apps development tutorial
Synapseindia android apps  development tutorialSynapseindia android apps  development tutorial
Synapseindia android apps development tutorialSynapseindiappsdevelopment
 
Data Storage In Android
Data Storage In Android Data Storage In Android
Data Storage In Android Aakash Ugale
 
Android development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx AcademyAndroid development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx AcademyBig Boxx Animation Academy
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorialilias ahmed
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paperSravan Reddy
 

Semelhante a "Android" mobilių programėlių kūrimo įvadas #3 (20)

Android booting sequece and setup and debugging
Android booting sequece and setup and debuggingAndroid booting sequece and setup and debugging
Android booting sequece and setup and debugging
 
Android session 4-behestee
Android session 4-behesteeAndroid session 4-behestee
Android session 4-behestee
 
Android-data storage in android-chapter21
Android-data storage in android-chapter21Android-data storage in android-chapter21
Android-data storage in android-chapter21
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
Mobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdfMobile Application Development-Lecture 13 & 14.pdf
Mobile Application Development-Lecture 13 & 14.pdf
 
Android programming
Android programmingAndroid programming
Android programming
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
 
Android cours
Android coursAndroid cours
Android cours
 
2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptx2.Android Platform_Theory.pptx
2.Android Platform_Theory.pptx
 
Accessing Hardware on Android
Accessing Hardware on AndroidAccessing Hardware on Android
Accessing Hardware on Android
 
Cognos Software Development Kit
Cognos Software Development KitCognos Software Development Kit
Cognos Software Development Kit
 
12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptx12_Data_Storage_Part_2.pptx
12_Data_Storage_Part_2.pptx
 
Aptech Apps
Aptech Apps Aptech Apps
Aptech Apps
 
Synapseindia android application development tutorial
Synapseindia android application development tutorialSynapseindia android application development tutorial
Synapseindia android application development tutorial
 
Synapseindia android apps development tutorial
Synapseindia android apps  development tutorialSynapseindia android apps  development tutorial
Synapseindia android apps development tutorial
 
Data Storage In Android
Data Storage In Android Data Storage In Android
Data Storage In Android
 
Android development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx AcademyAndroid development classes in chandigarh : Big Boxx Academy
Android development classes in chandigarh : Big Boxx Academy
 
Android development-tutorial
Android development-tutorialAndroid development-tutorial
Android development-tutorial
 
Google android white paper
Google android white paperGoogle android white paper
Google android white paper
 

Último

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 

Último (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 

"Android" mobilių programėlių kūrimo įvadas #3

  • 2. Storage Options Android provides several options for you to save persistent application data. Shared Preferences - Store private primitive data in key-value pairs. Internal Storage - Store private data on the device memory. External Storage - Store public data on the shared external storage. SQLite Databases - Store structured data in a private database.
  • 3. SharedPreferences - getSharedPreferences() - Use this if you need multiple preferences files identified by name, which you specify with the first parameter. - getPreferences() - Use this if you need only one preferences file for your Activity. To read values, use SharedPreferences methods such as getBoolean() and getString(). To write values: 1. Call edit() to get a SharedPreferences.Editor. 2. Add values with methods such as putString(). 3. Commit the new values with commit()
  • 4. Internal Storage To create and write a private file to the internal storage: 1. Call openFileOutput() with the name of the file and the operating mode. This returns a FileOutputStream. 2. Write to the file with write(). 3. Close the stream with close().
  • 5. External Storage If you're using API Level 7 or lower, use getExternalStorageDirectory() to open a File that represents the root of the external storage, then save your shared files in one of the following directories: Music/ - Media scanner classifies all media found here as user music. Podcasts/ - Media scanner classifies all media found here as a podcast. Ringtones/ - Media scanner classifies all media found here as a ringtone. Alarms/ - Media scanner classifies all media found here as an alarm sound. Notifications/ - Media scanner classifies all media found here as a notification sound. Pictures/ - All photos (excluding those taken with the camera). Movies/ - All movies (excluding those taken with the camcorder). Download/ - Miscellaneous downloads.
  • 6. Databases Android provides full support for SQLite databases. Any databases you create will be accessible by name to any class in the application, but not outside the application. The recommended method to create a new SQLite database is to create a subclass of SQLiteOpenHelper and override the onCreate() method, in which you can execute a SQLite command to create tables in the database.
  • 7. Databases You can then get an instance of your SQLiteOpenHelper implementation using the constructor you've defined. To write to and read from the database, call getWritableDatabase() and getReadableDatabase(), respectively. These both return a SQLiteDatabase object that represents the database and provides methods for SQLite operations.
  • 8. GPS GPS_PROVIDER This provider determines location using satellites. Depending on conditions, this provider may take a while to return a location fix. NETWORK_PROVIDER This provider determines location based on availability of cell tower and WiFi access points. Results are retrieved by means of a network lookup. PASSIVE_PROVIDER A special location provider for receiving locations without actually initiating a location fix.
  • 9. Google Maps The Google Maps Android API v2 uses a new system of managing keys. Existing keys from a Google Maps Android v1 application, commonly known as MapView, will not work with the v2 API. To access the Google Maps servers with the Maps API, you have to add a Maps API key to your application. The key is free, you can use it with any of your applications that call the Maps API, and it supports an unlimited number of users.
  • 10. Google Maps An Android application that uses the Google Maps Android API needs to specify the following settings in its manifest file, AndroidManifest.xml: Permissions that give the application access to Android system features and to the Google Maps servers. Notification that the application requires OpenGL ES version 2. The Maps API key for the application. The key confirms that you've registered with the Google Maps service via the Google APIs Console.