Skip to content

Commit bf1f2fe

Browse files
authored
Merge pull request #127386 from JoshuaLai/patch-4
Update chat-android.md with latest steps
2 parents e03b5ce + f5c6585 commit bf1f2fe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/communication-services/quickstarts/chat/includes/chat-android.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
title: include file
33
description: include file
44
services: azure-communication-services
5-
author: probableprime
5+
author: awang119
66
manager: mikben
77
ms.service: azure-communication-services
88
ms.subservice: azure-communication-services
99
ms.date: 06/30/2021
1010
ms.topic: include
1111
ms.custom: include file
12-
ms.author: rifox
12+
ms.author: anniewang
1313
---
1414

1515
## Prerequisites
@@ -30,18 +30,19 @@ ms.author: rifox
3030
### Create a new android application
3131

3232
1. Open Android Studio and select `Create a new project`.
33-
2. On the next window, select `Empty Activity` as the project template.
33+
2. On the next window, select `Empty Views Activity` as the project template.
3434
3. When choosing options, enter `ChatQuickstart` as the project name.
35-
4. Click next and choose the directory where you want the project to be created.
35+
4. This sample uses Java as language
36+
5. Click next and choose the directory where you want the project to be created.
3637

3738
### Install the libraries
3839

3940
We use Gradle to install the necessary Communication Services dependencies. From the command line, navigate inside the root directory of the `ChatQuickstart` project. Open the app's build.gradle file and add the following dependencies to the `ChatQuickstart` target:
4041

4142
```groovy
42-
implementation 'com.azure.android:azure-communication-common:' + $azureCommunicationCommonVersion
43-
implementation 'com.azure.android:azure-communication-chat:' + $azureCommunicationChatVersion
44-
implementation 'org.slf4j:slf4j-log4j12:1.7.29'
43+
implementation libs.azure.communication.common
44+
implementation libs.azure.communication.chat
45+
implementation libs.slf4j.log4j12
4546
```
4647

4748
For the latest version numbers, see https://search.maven.org/artifact/com.azure.android/azure-communication-common and https://search.maven.org/artifact/com.azure.android/azure-communication-chat.
@@ -120,7 +121,6 @@ Copy the following code into class `MainActivity` in file `MainActivity.java`:
120121
private ChatAsyncClient chatAsyncClient;
121122

122123
private void log(String msg) {
123-
Log.i(TAG, msg);
124124
Toast.makeText(this, msg, Toast.LENGTH_LONG).show();
125125
}
126126

0 commit comments

Comments
 (0)