Skip to content

Commit 0947524

Browse files
authored
Update chat-android.md with latest steps
1 parent 52c2096 commit 0947524

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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)