Saving Data on Android


Terminal  panel, for your project. Both of the options command   some information about your debug  keystore



Download 19,28 Mb.
Pdf ko'rish
bet214/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   210   211   212   213   214   215   216   217   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

Terminal
 panel, for your project.
Both of the options command   some information about your debug 
keystore
. You'll 
see there a line that starts with 
SHA1
.
Alias
 name: androiddebugkey 
Creation
 date: 
Oct
 
26

2018
 
Entry
 type: 
PrivateKeyEntry
 
Certificate
 chain length: 
1
 
Certificate
[
1
]: 
Owner

C
=
US

O
=
Android

CN
=
Android
 
Debug
 
Issuer

C
=
US

O
=
Android

CN
=
Android
 
Debug
 
Serial
 number: 
1
 
Valid
 from: 
Fri
 
Oct
 
26
 
13
:
29
:
17
 
CEST
 
2018
 until: 
Sun
 
Oct
 
18
 
13
:
29
:
17
 
CEST
 
2048
 
Certificate
 finger s: 
     
SHA1

A6
:
72
:
CD
:
92
:
A6
:
DD
:
84
:
31
:
FA
:
73
:
83
:
48
:
F6
:9D:
D4
:
54
:
C1
:
94
:
07
:
05
 
     
SHA256

E0
:
67
:
78
:
A8
:
38
:
18
:
41
:
35
:3B:
24
:
C3
:
87
:
01
:
73
:
29
:
BC
:
A8
:
55
:
71
:
E0
:
08
:
00
:
76
:
CF
:
4D:
C0
:
93
:
38
:
47
:
93
:
FD
:
54
 
Signature
 algorithm name: 
SHA1withRSA
 
Subject
 
Public
 
Key
 
Algorithm

1024
-bit 
RSA
 key 
Version

1
Copy the value after that. That value is just a series of hex values, which represent 
your application's debug keystore signature. Paste that value into the 
Debug signing 
certificate SHA-1
 text box in the console. Click 
Register app
 button.
Saving Data on Android
Chapter 12: Introduction to Firebase Realtime Database
raywenderlich.com
204


Downloading config file
Next, you need to download the 
google-services.json
 config file by clicking the blue 
button, and add it to your Android project. Follow the instructions in the console to 
do that, so that you paste it to the correct location. This file contains your app 
configuration. If your Firebase configuration changes later you'll need to download 
an updated config file and replace the existing one.
Saving Data on Android
Chapter 12: Introduction to Firebase Realtime Database
raywenderlich.com
205


Adding Firebase SDK
Next, you need to add the Firebase client libraries to your app. Follow the 
instructions in the console for this, as well.
First, you need to add the Google Services Gradle plugin to your build script 
configuration. This plugin reads 
google-services.json
 config file and injects some of 
its values into your build. Here, you'll also add a dependency to 
Firebase core
. Make 
sure to use the latest version. You can check the documentation — found here 
https://firebase.google.com/docs/android/setup#available-libraries
 — to find the 
latest version. Once you do that click 
Next
 button.
Saving Data on Android
Chapter 12: Introduction to Firebase Realtime Database
raywenderlich.com
206


Verifying installa/on
The last step is to verify if everything is set up correctly. For this, you only need to 
run your app on a device or an emulator. Before you do that, go to the 
LoginActivity
 class and uncomment the code. Repeat the process for the 
HomeActivity
 and 
AuthenticationManager
 classes. Run your app. If everything is 
set up correctly you'll get verification message in the console.
You can click the 
Continue to console
 button now.
Adding Real/me Database
First, you need to create your database in the console. From the menu on the left 
select 
Database
. Scroll to the Realtime Database section and click the 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   210   211   212   213   214   215   216   217   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish