Skip to content

Commit 2370d9c

Browse files
simonsongirangsamtstern
authored andcommitted
Updated READMEs (firebase#95)
1 parent 92979b9 commit 2370d9c

File tree

11 files changed

+96
-72
lines changed

11 files changed

+96
-72
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44

55
A collection of quickstart samples demonstrating the Firebase APIs on Android. For more information, see https://firebase.google.com.
66

7+
Samples available:
8+
9+
- [Admob](admob)
10+
- [Analytics](analytics)
11+
- [App-Indexing](app-indexing)
12+
- [Auth](auth)
13+
- [Configuration](config)
14+
- [Crash](crash)
15+
- [Database](database)
16+
- [Dynamic Links](dynamiclinks)
17+
- [Invites](invites)
18+
- [Messaging](messaging)
19+
- [Storage](storage)
20+
721
## How to make contributions?
822
Please read and follow the steps in the [CONTRIBUTING.md](CONTRIBUTING.md)
923

admob/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ AdMob by Google Quickstart
22
=======================
33

44
The AdMob by Google Android quickstart demonstrates how to display an interstitial ad and
5-
a simple banner ad. AdRequest and AdView are used to display a banner ad
5+
a banner ad. AdRequest and AdView are used to display a banner ad
66
and InterstitialAd is used to display the interstitial ad.
77

88
Introduction
@@ -17,7 +17,7 @@ Getting Started
1717
- Run the sample on your Android device or emulator.
1818
- The running sample displays a test banner ad and a test interstitial add.
1919

20-
Screenshots
20+
Result
2121
-----------
2222
<img src="app/src/screen.png" height="534" width="300"/>
2323

analytics/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ Getting Started
1212
- [Add Firebase to your Android Project](https://firebase.google.com/docs/android/setup).
1313
- Run the sample on Android device or emulator.
1414

15-
Screenshots
15+
Result
1616
-----------
1717
<img src="app/src/screen.png" height="534" width="300"/>
1818

1919
Support
2020
-------
2121

22-
https://firebase.google.com/support/
22+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-analytics)
23+
- [Firebase Support](https://firebase.google.com/support/)
2324

2425
License
2526
-------

app-indexing/README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Firebase App Indexing Quickstart
22
==============================
33

4-
The Firebase App Indexing Android quickstart demonstrates how to help get your app
5-
found in Google Search. `AppIndex.AppIndexApi.view` is used to index view events.
4+
The Firebase App Indexing Android quickstart demonstrates how to get your app to be found in Google Search.
65

76
Introduction
87
------------
@@ -14,19 +13,18 @@ Getting Started
1413

1514
- [Add Firebase to your Android Project](https://firebase.google.com/docs/android/setup).
1615
- Open the App Indexing project in Android Studio.
17-
- Run the sample on your Android device or emulator by issuing the following intent
18-
with the command line `adb` tool:
19-
adb shell am start -a android.intent.action.VIEW -d "http://www.example.com/articles/test" com.google.samples.quickstart.app_indexing
16+
- Run the sample on your Android device or emulator by issuing the following command using **adb** tool:
17+
`adb shell am start -a android.intent.action.VIEW -d "http://www.example.com/articles/test" com.google.samples.quickstart.app_indexing`
2018

21-
Screenshots
19+
Result
2220
-----------
2321
<img src="app/src/screen.png" height="534" width="300"/>
2422

2523
Support
2624
-------
2725

28-
- [Stack Overflow](http://stackoverflow.com/questions/tagged/android-app-indexing)
29-
- [Firebase Support](http://firebase.google.com/support/)
26+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/android-app-indexing)
27+
- [Firebase Support](https://firebase.google.com/support/)
3028

3129
License
3230
-------

auth/README.md

+28-24
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,29 @@ Getting Started
1717
- Go to the [Firebase Console](https://console.firebase.google.com) and navigate to your project:
1818
- Select the **Auth** panel and then click the **Sign In Method** tab.
1919
- Click **Google** and turn on the **Enable** switch, then click **Save**.
20-
- Run the app on your device or emulator.
21-
- Select `GoogleSignInActivity` from the main screen.
20+
- Run the sample app on your device or emulator.
21+
- Select **GoogleSignInActivity** from the main screen.
2222
- Click the **Sign In** button to begin.
2323

2424

2525
### Facebook Login Setup
2626

2727
- Go to the [Facebook Developers Site](https://developers.facebook.com) and follow all
28-
instructions to set up a new Android app. When asked for a package name, use
29-
`com.google.firebase.quickstart.usermanagement` and when asked for a main class name,
28+
instructions to set up a new Android app.
29+
- When asked for a package name, use
30+
`com.google.firebase.quickstart.usermanagement`.
31+
- When asked for a main class name,
3032
use `com.google.firebase.quickstart.usermanagement.FacebookLoginActivity`.
3133
- Go to the [Firebase Console](https://console.firebase.google.com) and navigate to your project:
3234
- Select the **Auth** panel and then click the **Sign In Method** tab.
3335
- Click **Facebook** and turn on the **Enable** switch, then click **Save**.
3436
- Enter your Facebook **App Id** and **App Secret** and click **Save**.
3537
- Open the file `app/src/main/res/values/ids.xml` and replace the value of the `facebook_app_id` with the ID of the Facebook app you just created.
3638
- Run the app on your device or emulator.
37-
- Select `FacebookLoginActivity` from the main screen.
39+
- Select the **FacebookLoginActivity** from the main screen.
3840
- Click the **Sign In** button to begin.
3941
- If you see text that says Facebook is disabled, make sure you are running
40-
either the `facebookDebug` or `facebookRelease` variants of this sample.
42+
either the **facebookDebug** or **facebookRelease** variants of this sample.
4143

4244

4345
### Twitter Login Setup
@@ -48,15 +50,16 @@ Getting Started
4850
- Go to the [Firebase Console](https://console.firebase.google.com) and navigate to your project:
4951
- Select the **Auth** panel and then click the **Sign In Method** tab.
5052
- Click **Twitter** and turn on the **Enable** switch, then click **Save**.
51-
- Enter your Twitter **API Key** and **API Secret** and click **Save**.
52-
- Copy the callback URL from the bottom of the panel (it should look like
53+
- Enter your Twitter **Consumer Key** and **Consumer Secret** and click **Save**.
54+
- Copy the callback URL from the bottom of the panel (Ex.
5355
`https://<your-app-id>.firebaseapp.com/__/auth/handler`).
54-
- Navigate back to your Twitter app settings on [apps.twitter.com](apps.twitter.com). Click the **Settings** tab and
56+
- Navigate back to your Twitter app settings on [Twitter Developers Site](https://apps.twitter.com).
57+
- Click the **Settings** tab and
5558
paste in the callback URL from the Firebase console.
56-
- Open the file `app/src/main/res/values/ids.xml` and replace the value of the `twitter_consumer_key`
57-
and `twitter_consumer_secret` with the key and secret you just put into the Firebase console.
59+
- Open the file `app/src/main/res/values/ids.xml` and replace the value of the **twitter_consumer_key**
60+
and **witter_consumer_secret** with the key and secret you just put into the Firebase console.
5861
- Run the app on your device or emulator.
59-
- Select `TwitterLoginActivity` from the main screen.
62+
- Select **TwitterLoginActivity** from the main screen.
6063
- Click the **Log In with Twitter** button to begin.
6164

6265
### Email/Password Setup
@@ -65,38 +68,39 @@ Getting Started
6568
- Select the **Auth** panel and then click the **Sign In Method** tab.
6669
- Click **Email/Password** and turn on the **Enable** switch, then click **Save**.
6770
- Run the app on your device or emulator.
68-
- Select `EmailPasswordActivity` from the main screen.
71+
- Select **EmailPasswordActivity** from the main screen.
6972
- Fill in your desired email and password and click **Create Account** to begin.
7073

7174

7275
### Custom Authentication Setup
7376

7477
- Go to the [Google Developers Console](https://console.developers.google.com/project) and navigate to your project:
75-
- From the left "hamburger" menu navigate to the **API Manager** tab.
76-
- Click on the **Credentials** item in the left column.
77-
- Click **New credentials** and select **Service account key**. Select **New service account**,
78-
pick any name, and select **JSON** as the key type. Then click **Create**.
78+
- Click on the **Service accounts** tab in the left.
79+
- Click on the **Create Service Account** on the top.
80+
- Enter desired service account name and click on the **Create** button.
81+
- Once the serivce account is created, click on the **Options**.
82+
- Choose **JSON** as the key type then click on the **Create** button.
7983
- You should now have a new JSON file for your service account in your Downloads directory.
80-
- Open the file `web/auth.html` in your computer's web browser.
84+
- Open the file `web/auth.html` using your web browser.
8185
- Click **Choose File** and upload the JSON file you just downloaded.
8286
- Enter any User ID and click **Generate**.
83-
- Copy the text from the **ADB Command** section, you will need this.
87+
- Copy the text from the **ADB Command** section. This will be required later on.
8488
- Run the Android application on your Android device or emulator.
85-
- Select `CustomAuthActivity` from the main screen.
86-
- Run the text you copied from the **ADB Command** section of the web page in the steps above.
87-
This should send a token to the running app and update the Custom Token field.
89+
- Select **CustomAuthActivity** from the main screen.
90+
- Run the text copied from the **ADB Command** section of the web page in the steps above. This will update the Custom Token field of the running app.
8891
- Click **Sign In** to sign in to Firebase User Management with the generated JWT. You should
8992
see the User ID you entered when generating the token.
9093

9194

92-
Screenshots
95+
Result
9396
-----------
9497
<img src="app/src/screen.png" height="534" width="300"/>
9598

9699
Support
97100
-------
98101

99-
https://firebase.google.com/support/
102+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-authentication)
103+
- [Firebase Support](https://firebase.google.com/support/)
100104

101105
License
102106
-------

config/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@ Firebase Remote Config Quickstart
44
Introduction
55
------------
66

7-
- [Read more about Firebase Remote Config](https://firebase.google.com/)
7+
- [Read more about Firebase Remote Config](https://firebase.google.com/docs/remote-config/)
88

99
Getting Started
1010
---------------
1111

1212
- [Add Firebase to your Android Project](https://firebase.google.com/docs/android/setup).
1313
- Run the sample on Android device or emulator.
1414

15-
Screenshots
15+
Result
1616
-----------
1717
<img src="app/src/screen.png" height="534" width="300"/>
1818

1919
Support
2020
-------
2121

22-
https://firebase.google.com/support/
22+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-remote-config)
23+
- [Firebase Support](https://firebase.google.com/support/)
2324

2425
License
2526
-------

crash/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Firebase Crash Quickstart
44
Introduction
55
------------
66

7-
- [Read more about Firebase Crash](https://firebase.google.com/docs/crash)
7+
- [Read more about Firebase Crash Reporting](https://firebase.google.com/docs/crash)
88

99
Getting Started
1010
---------------
@@ -19,7 +19,8 @@ Screenshots
1919
Support
2020
-------
2121

22-
https://firebase.google.com/support/
22+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-crash-reporting)
23+
- [Firebase Support](https://firebase.google.com/support/)
2324

2425
License
2526
-------

database/README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ Getting Started
1010
---------------
1111

1212
- [Add Firebase to your Android Project](https://firebase.google.com/docs/android/setup).
13-
- Go to the [Firebase Console](https://console.firebase.google.com)
14-
- In the **Auth** tab enable **Email/Password** authentication.
13+
- Log in to the [Firebase Console](https://console.firebase.google.com).
14+
- Go to **Auth** tab and enable **Email/Password** authentication.
1515
- Run the sample on Android device or emulator.
1616

17-
Screenshots
17+
Result
1818
-----------
1919
<img src="app/src/screen.png" height="534" width="300"/>
2020

2121
Support
2222
-------
2323

24-
https://firebase.google.com/support/
24+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-database)
25+
- [Firebase Support](https://firebase.google.com/support/)
26+
2527

2628
License
2729
-------

dynamiclinks/README.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,25 @@ Getting Started
1212
- [Add Firebase to your Android Project](https://firebase.google.com/docs/android/setup).
1313
- Follow the [quickstart guide](https://firebase.google.com/docs/android/setup) to set up your project.
1414
- Configure the sample:
15-
- Replace the `app_code` value in `strings.xml` with your personal app code. If you don't have an app code, email your Google contact to begin the process.
16-
- Replace the `applicationId` in `app/build.gradle` with the package name that matches your app code.
15+
- Replace the **app_code** value in `strings.xml` with your personal **app code**. If you don't have an **app code**, email your Google contact to begin the process.
16+
- Replace the **applicationId** in `app/build.gradle` with the package name that matches your app code.
1717
- Run the sample on your Android device or emulator.
1818
- Using the sample:
19-
- When the application is started a deep link is generated using your app code. Click **Share**
20-
to share this deep link to another application (like Google Keep).
21-
- When the application is started the app checks if it was launched from a deep link. If so,
22-
the link data is displayed under the **Receive** heading. Try sharing the deep link from the
23-
app and then using that link to re-launch the application.
19+
- When the application is started, a deep link will be generated using your app code.
20+
- Click **Share**
21+
to share this deep link to another application.
22+
- The application checks if it was launched from a deep link. If so, the link data will be displayed under the **Receive** heading.
23+
- Try sharing the deep link from the application and use that deep link to re-launch the application.
2424

25-
Screenshots
25+
Result
2626
-----------
2727
<img src="app/src/screen.png" height="534" width="300"/>
2828

2929
Support
3030
-------
3131

32-
https://firebase.google.com/support/
32+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-dynamic-links)
33+
- [Firebase Support](https://firebase.google.com/support/)
3334

3435
License
3536
-------

invites/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ Getting Started
1414
- [Add Firebase to your Android Project](https://firebase.google.com/docs/android/setup).
1515
- Run the sample on Android device or emulator.
1616

17-
Screenshots
17+
Result
1818
-----------
1919
<img src="app/src/screen.png" height="534" width="300"/>
2020

2121
Support
2222
-------
2323

24-
https://firebase.google.com/support/
24+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-invites)
25+
- [Firebase Support](https://firebase.google.com/support/)
2526

2627
License
2728
-------

messaging/README.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Firebase Cloud Messaging Quickstart
22
==============================
33

44
The Firebase Cloud Messaging Android Quickstart app demonstrates registering
5-
an Android app for Notifications and handling the receipt of a message.
6-
InstanceID allows easy registration while FirebaseMessagingService and FirebaseInstanceIDService
5+
an Android app for notifications and handling the receipt of a message.
6+
**InstanceID** allows easy registration while **FirebaseMessagingService** and **FirebaseInstanceIDService**
77
enable token refreshes and message handling on the client.
88

99
Introduction
@@ -24,38 +24,39 @@ Use Firebase console to send FCM messages to device or emulator.
2424

2525
## Send to a single device
2626

27-
- From Firebase console Notification section, click New Message.
27+
- From Firebase console Notification section, click **New Message**.
2828
- Enter the text of your message in the Message Text field.
29-
- Set the target to Single Device.
30-
- Check the logs for the InstanceID token, copy and paste it into the Firebase console Token field.
31-
If you cannot find the token in your logs, hit the LOG TOKEN button in the app and the token will
32-
be logged in logcat.
33-
- Click Send Message.
29+
- Set the target to **Single Device**.
30+
- Check the logs for the **InstanceID** token, copy and paste it into the Firebase console Token field.
31+
- If you cannot find the token in your logs, click on the **LOG TOKEN** button in the application and the token will
32+
be logged in **logcat**.
33+
- Click on the **Send Message** button.
3434
- If your application is in the foreground you should see the incoming
3535
message printed in the logs. If it is in the background, a system notification should be
36-
displayed, and when tapped should return to the quickstart app.
36+
displayed. When the notification is tapped, the application should return to the quickstart application.
3737

3838
## Send to a topic
3939

40-
- From Firebase console Notification section, click New Message.
40+
- From Firebase console Notification section, click **New Message**.
4141
- Enter the text of your message in the Message Text field.
42-
- Hit the SUBSCRIBE TO NEWS button to subscribe to the news topic.
43-
- Set the target to Topic.
42+
- Click on the **SUBSCRIBE TO NEWS** button to subscribe to the news topic.
43+
- Set the target to **Topic**.
4444
- Select the news topic from the list of topics. You must subscribe from the device or emulator
4545
before the topic will will be visible in the console.
46-
- Click Send Message.
46+
- Click on the **Send Message** button.
4747
- If your application is in the foreground you should see the incoming
4848
message printed in the logs. If it is in the background, a system notification should be
49-
displayed, and when tapped should return to the quickstart app.
49+
displayed. When the notification is tapped, the application should return to the quickstart application.
5050

51-
Screenshots
51+
Result
5252
-----------
5353
<img src="app/src/screen.png" height="534" width="300"/>
5454

5555
Support
5656
-------
5757

58-
https://firebase.google.com/support/
58+
- [Stack Overflow](https://stackoverflow.com/questions/tagged/firebase-cloud-messaging)
59+
- [Firebase Support](https://firebase.google.com/support/)
5960

6061
License
6162
-------

0 commit comments

Comments
 (0)