Skip to content

Commit 74bc2e3

Browse files
authored
Merge pull request #95250 from hamiltonha/patch-1
update Android quickstart for portal
2 parents bc92a2c + cb1500f commit 74bc2e3

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

articles/active-directory/develop/quickstart-v2-android.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Applications must be represented by an app object in Azure Active Directory so t
4646
> > ![Already configured](media/quickstart-v2-android/green-check.png) Your application is configured with these attributes
4747
>
4848
> ### Step 2: Download the project
49-
> * [Download the code sample](https://github.com/Azure-Samples/ms-identity-android-java)
49+
> * [Download the code sample](https://github.com/Azure-Samples/ms-identity-android-java/archive/master.zip)
5050
>
5151
> ### Step 3: Configure your project
5252
> 1. Extract and open the Project in Android Studio.
53-
> 2. Inside app > src > main > res > raw, open auth_config_multiple_account.json and replace it with the following code:
53+
> 2. Inside **app** > **src** > **main** > **res** > **raw**, open **auth_config_multiple_account.json** and replace it with the following code:
5454
> ```javascript
5555
> {
5656
> "client_id" : "Enter_the_Application_Id_Here",
@@ -71,7 +71,7 @@ Applications must be represented by an app object in Azure Active Directory so t
7171
> ```
7272
7373
> [!div class="sxs-lookup" renderon="portal"]
74-
> 3. Inside app > src > main > res > raw, open auth_config_single_account.json and replace it with the following code:
74+
> 3. Inside **app** > **src** > **main** > **res** > **raw**, open **auth_config_single_account.json** and replace it with the following code:
7575
> ```javascript
7676
> {
7777
> "client_id" : "Enter_the_Application_Id_Here",
@@ -95,22 +95,22 @@ Applications must be represented by an app object in Azure Active Directory so t
9595
> 4. Inside **app** > **src** > **main**, open **AndroidManifest.xml**.
9696
> 5. In the **manifest\application** node, replace the **<activity android:name="com.microsoft.identity.client.BrowserTabActivity">** node with the following:
9797
> ```xml
98-
> <!--Intent filter to catch Microsoft's callback after Sign In-->
99-
> <activity android:name="com.microsoft.identity.client.BrowserTabActivity">
100-
> <intent-filter>
101-
> <action android:name="android.intent.action.VIEW" />
102-
> <category android:name="android.intent.category.DEFAULT" />
103-
> <category android:name="android.intent.category.BROWSABLE" />
104-
> <!--
98+
> &lt;!--Intent filter to catch Microsoft's callback after Sign In--&gt;
99+
> &lt;activity android:name=&quot;com.microsoft.identity.client.BrowserTabActivity&quot;&gt;
100+
> &lt;intent-filter&gt;
101+
> &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;
102+
> &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;
103+
> &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;
104+
> &lt;!--
105105
> Add in your scheme/host from registered redirect URI
106-
> note that the leading "/" is required for android:path
107-
> -->
108-
> <data android:scheme="msauth"
109-
> android:host="Enter_the_Package_Name_here"
110-
> android:path="Enter_the_Signature_Hash_here"
111-
> android:scheme = "msauth" />
112-
> </intent-filter>
113-
> </activity>
106+
> note that the leading &quot;/&quot; is required for android:path
107+
> --&gt;
108+
> &lt;data android:scheme=&quot;msauth&quot;
109+
> android:host=&quot;Enter_the_Package_Name_Here&quot;
110+
> android:path=&quot;Enter_the_Signature_Hash_Here&quot;
111+
> android:scheme = &quot;msauth&quot; /&gt;
112+
> &lt;/intent-filter&gt;
113+
> &lt;/activity&gt;
114114
> ```
115115
> 6. Run the app!
116116
> The sample app starts on the **Single Account Mode** screen. A default scope, **user.read**, is provided by default, which is used when reading your own profile data during the Microsoft Graph API call. The URL for the Microsoft Graph API call is provided by default. You can change both of these if you wish.
@@ -133,7 +133,7 @@ Applications must be represented by an app object in Azure Active Directory so t
133133
> [!div renderon="docs"]
134134
> ## Step 1: Get the sample app
135135
>
136-
> [Clone the code](https://github.com/Azure-Samples/ms-identity-android-java.git).
136+
> [Download the code](https://github.com/Azure-Samples/ms-identity-android-java/archive/master.zip).
137137
>
138138
> ## Step 2: Run the sample app
139139
>

0 commit comments

Comments
 (0)