Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Mostly formatting fixes. removing ide switcher from recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
timeyoutakeit committed Mar 29, 2018
1 parent cc6defb commit 6ea1269
Show file tree
Hide file tree
Showing 26 changed files with 219 additions and 257 deletions.
Expand Up @@ -33,32 +33,32 @@ version) to create the user profile:
In Android 4.x (Ice Cream Sandwich):

- Start the **People** app.
- Tap <span class="uiitem">Create a new contact</span>.
- Tap <span class="uiitem">Keep local</span>.
- Tap **Create a new contact**.
- Tap **Keep local**.
- Enter a name for a temporary user, such as "Temp".
- Tap the check mark next to <span class="uiitem">Done</span>.
- Tap the check mark next to **Done**.
- Tap the back arrow in the upper left hand corner of the screen.
- Tap <span class="uiitem">Set up my profile</span> (under the
- Tap **Set up my profile** (under the
**ME** heading).
- Under <span class="uiitem">My local profile</span>, enter your
- Under **My local profile**, enter your
name and, optionally, a phone
number and email address.
- Tap the check mark next to <span class="uiitem">Done</span>.
- Tap the check mark next to **Done**.

In Android 5.x (Lollipop):

- Start the **Contacts** app.
- Tap <span class="uiitem">CREATE A NEW CONTACT</span>.
- Tap <span class="uiitem">KEEP LOCAL</span>.
- Tap **CREATE A NEW CONTACT**.
- Tap **KEEP LOCAL**.
- Enter a name for a temporary user, such as "Temp".
- Tap the check mark next to <span class="uiitem">Add new contact</span>.
- Tap the check mark next to **Add new contact**.
- Click the back button.
- Tap <span class="uiitem">Set up my profile</span> (next to the
- Tap **Set up my profile** (next to the
**ME** heading).
- Under <span class="uiitem">My local profile</span>, enter your
- Under **My local profile**, enter your
name and, optionally, a phone
number and email address.
- Tap the check mark next to <span class="uiitem">Add new contact</span>.
- Tap the check mark next to **Add new contact**.


To update and query the user profile, follow these steps:
Expand All @@ -70,19 +70,19 @@ To update and query the user profile, follow these steps:
(For more information about Android version settings, see
[Understanding Android API levels](https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/).)
In Visual Studio, open the project properties in
<span class="uiitem">Solution Explorer</span> and select the <span
class="uiitem">Application</span> page. In the drop-down menu under
<span class="uiitem">Minimum Android to target</span> you can
**Solution Explorer** and select the <span
class="uiitem">Application** page. In the drop-down menu under
**Minimum Android to target** you can
select the minimum Android version for your project:

![](Images/vs-minimum.png)

In Visual Studio for Mac, click the gray gear icon to the right of the
project and select <span class="uiitem">Options</span>; this opens
the <span class="uiitem">Project Options</span> dialog. Click <span
class="uiitem">Build > Android Application</span>. Using the
drop-down menu to the right of <span class="uiitem">Minimum Android
version</span>, you can set the minimum Android version for your
project and select **Options**; this opens
the **Project Options** dialog. Click <span
class="uiitem">Build > Android Application**. Using the
drop-down menu to the right of **Minimum Android
version**, you can set the minimum Android version for your
project:

![](Images/xs-minimum.png)
Expand All @@ -91,46 +91,46 @@ To update and query the user profile, follow these steps:
- Set the target framework to API level 15 or
later. In our example, we have it set to Android 5.0 (API level
21). In Visual Studio, go to the project's <span
class="uiitem">Application</span> page. Set the target framework by
class="uiitem">Application** page. Set the target framework by
selecting the API level in the drop-down menu under <span
class="uiitem">Compile using Android version</span>:
class="uiitem">Compile using Android version**:

![](Images/vs-target.png)

In Visual Studio for Mac, open the <span class="uiitem">Project
Options</span> dialog. In this dialog, click <span
class="uiitem">Build > General</span>. Set the target framework by
In Visual Studio for Mac, open the **Project
Options** dialog. In this dialog, click <span
class="uiitem">Build > General**. Set the target framework by
selecting the API level in the drop-down menu to the right of <span
class="uiitem">Target framework</span>:
class="uiitem">Target framework**:

![](Images/xs-target.png)


- Add permissions to the Android manifest that enables the app to
read and write contacts as well as read and write profile data.
In Visual Studio, open the project properties in <span
class="uiitem">Solution Explorer</span> and select the <span
class="uiitem">Android Manifest</span> page:
class="uiitem">Solution Explorer** and select the <span
class="uiitem">Android Manifest** page:

![](Images/vs-manifest.png)

Enable the following permissions under <span
class="uiitem">Required permissions</span>:
class="uiitem">Required permissions**:

- **READ_CONTACTS**
- **READ_PROFILE**
- **WRITE_CONTACTS**
- **WRITE_PROFILE**

In Visual Studio for Mac, click the gray gear icon to the right of the
project and select <span class="uiitem">Options</span>; this opens
the <span class="uiitem">Project Options</span> dialog. Click <span
class="uiitem">Build > Android Application</span>:
project and select **Options**; this opens
the **Project Options** dialog. Click <span
class="uiitem">Build > Android Application**:

![](Images/xs-manifest.png)

Enable the following permissions in the <span
class="uiitem">Required permissions</span> section:
class="uiitem">Required permissions** section:

- **ReadContacts**
- **ReadProfile**
Expand Down Expand Up @@ -244,8 +244,8 @@ button.Click += delegate {
};
```

- Build and run the app; it displays an <span class="uiitem">UPDATE
PROFILE</span> button as seen below in the screenshot on the left. When
- Build and run the app; it displays an **UPDATE
PROFILE** button as seen below in the screenshot on the left. When
we tap this button to cause the button click handler to run, the
following sequence takes place:
- The call to `NameOwner` updates the profile's display
Expand Down
Expand Up @@ -4,30 +4,27 @@ title: "Add Permissions to Android Manifest"
brief: "This recipe shows how to add permissions to the Android Manifest (Manifest.xml)."
---

<a name="Recipe" class="injected"></a>

# Recipe

To edit Android Manifest permissions for your project:
<ide name="vs">
<ol>
<li>Right-click on your android project and select <span class="UIItem">Properties</span>.</li>
<li>Select <span class="UIItem">Android Manifest</span> in the window that opens.</li>
<li>Check the permissions that you want to require in the list of permissions.</li>
</ol>
<img src="Images/vis.png" />
</ide>

<ide name="xs">
<ol>
<li>Right-click on your android project and select <span class="UIItem">Options</span>.</li>
<li>Select <span class="UIItem">Android Application</span> in the window that opens.</li>
<li>Check the permissions that you want to require in the list of permissions.</li>
</ol>
<img src="Images/xam.png" />
</ide>

<a name="Additional_Information" class="injected"></a>

## Visual Studio

1. Right-click on your android project and select <span class="UIItem">**Properties**</span>.
2. Select <span class="UIItem">**Android Manifest**</span> in the window that opens.
3. Check the permissions that you want to require in the list of permissions.

![](Images/vis.png)

## Visual Studio for Mac

1. Right-click on your android project and select <span class="UIItem">**Options**</span>.
2. Select <span class="UIItem">**Android Application**</span> in the window that opens.
3. Check the permissions that you want to require in the list of permissions.

![](Images/xam.png)



# Additional Information
Expand Down
Expand Up @@ -7,30 +7,24 @@ article:
url: https://developer.xamarin.com/guides/android/getting_started/hello,_world
---

<a name="Recipe" class="injected"></a>

# Recipe

<ide name="xs">
<ol>
<li>First, launch Visual Studio for Mac and click on <span class="UIItem">New...</span> in the top
left corner: <img src="Images/project_00.png"</li>
<li>A window will pop up with a list of options for the types of projects
available to you. To create an Android project, select the Android>App category to open up
the available sub-categories, then choose Android App: <img src="Images/android_project_01.png" /></li>
<li>Choose a sensible name for your app and choose development targets: <img src="Images/app_name.png" /></li>
<li>Choose a project name, then click <span class="UIItem">OK</span>:<br /> <img src="Images/project_name.png" /></li>
<li>Visual Studio for Mac will create and populate a new project for you: <img src="Images/android_project_02.png" /></li>
</ol>
</ide>
<ide name="vs">
<ol>
<li>First, launch Visual Studio and click on <span class="UIItem">New Project...</span> in the top
left corner: <img src="Images/project_00_vs.png"</li>
<li>A window will pop up with a list of options for the types of projects
available to you. To create an Android project, select the Android then <span class="UIItem">Blank App (Android)</span>. Enter a project name: <img src="Images/android_project_01_vs.png" /></li>
<li>Visual Studio will create and populate a new project for you: <img src="Images/android_project_02_vs.png" /></li>
</ol>
## Visual Studio for Mac

1. First, launch Visual Studio for Mac and click on <span class="UIItem">**New...**</span> in the top left corner: ![](Images/project_00.png)
2. A window will pop up with a list of options for the types of projects available to you. To create an Android project, select the Android>App category to open up the available sub-categories, then choose Android App: ![](Images/android_project_01.png)
3. Choose a sensible name for your app and choose development targets: ![](Images/app_name.png)
4. Choose a project name, then click <span class="UIItem">**OK**</span>:
![](Images/project_name.png)
5. Visual Studio for Mac will create and populate a new project for you: ![](Images/android_project_02.png)

## Visual Studio

1. First, launch Visual Studio and click on <span class="UIItem">**New Project...**</span> in the top left corner: ![](Images/project_00_vs.png)
2. A window will pop up with a list of options for the types of projects available to you. To create an Android project, select the Android then <span class="UIItem">**Blank App (Android)**</span>. Enter a project name: ![](Images/android_project_01_vs.png)
3. Visual Studio will create and populate a new project for you: ![](Images/android_project_02_vs.png)

</ide>

## Additional Information
Expand Down
Expand Up @@ -4,26 +4,20 @@ title: "Specify Default Namespace"
brief: "This recipe shows where to set the default namespace for a project."
---

<a name="Recipe" class="injected"></a>


# Recipe

<ide name="xs">
<ol>
<li>Double click on the project in the <span class="UIItem">Solution Pad</span>, or right-click on the project and select <span class="UIItem">Options</span>: <img src="Images/DefaultNamespace1.png" /></li>
<li>Choose main settings and you'll be able to edit the default namespace: <img src="Images/DefaultNamespace4.png" /></li>
<li>This value will be automatically set as the root namespace in each new code file you create in your project.</li>
</ol>
</ide>
<ide name="vs">
<ol>
<li>Open the project <span class="UIItem">Properties</span>, and then choose the <span class="UIItem">Application</span> panel: <img src="Images/DefaultNamespace3.png" /></li>
<li>This value will be automatically set as the root namespace in each new code file you create in your project.</li>
</ol>
</ide>

<a name="Additional_Information" class="injected"></a>
## Visual Studio for Mac

1. Double click on the project in the <span class="UIItem">**Solution Pad**</span>, or right-click on the project and select <span class="UIItem">**Options**</span>: ![](Images/DefaultNamespace1.png)
2. Choose main settings and you'll be able to edit the default namespace: ![](Images/DefaultNamespace4.png)
3. This value will be automatically set as the root namespace in each new code file you create in your project.

## Visual Studio

1. Open the project <span class="UIItem">**Properties**</span>, and then choose the <span class="UIItem">**Application**</span> panel: ![](Images/DefaultNamespace3.png)
2. This value will be automatically set as the root namespace in each new code file you create in your project.



# Additional Information
Expand Down
2 changes: 1 addition & 1 deletion Recipes/android/media/video/play_video/README.md
Expand Up @@ -58,7 +58,7 @@ videoView.Start ();
```

<ol start="6">
<li>Under <span class="UIItem">Project Options</span>, add an Android Manifest. Under Required permissions set the <code>INTERNET</code> permission and press <span class="UIItem">OK</span>.</li>
<li>Under **Project Options**, add an Android Manifest. Under Required permissions set the <code>INTERNET</code> permission and press **OK**.</li>
</ol>

<a name="Additional_Information" class="injected"></a>
Expand Down
2 changes: 1 addition & 1 deletion Recipes/android/other_ux/animation/README.md
Expand Up @@ -7,6 +7,6 @@ Android provides support for animating properties of any type as well as animati

[ ![](Images/screen2.png)](Images/screen2.png)

- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/frame_animation">Frame Animation</a></span>
- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/frame_animation">Frame Animation</a>**
- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/rotate_animation">Rotate Animation</a></span>
- <span class="noChildren"><a href="/Recipes/android/other_ux/animation/animate_listview_deletion">Animate ListView Deletion</a></span>
Expand Up @@ -28,7 +28,7 @@ The `GetBlurredBitmap` method will take a single `Android.Graphics.Bitmap` insta

This code is a compromise between a Gaussian blur and a Box blur. The algorithm works by creating a moving stack of colors while scanning through the image. This "tower" controls the weights of the single pixels within the convolution kernel and gives the pixel in the center the highest weight.

When the user clicks on the <span class="uiitem">Load Blurred Image</span> button the application will load a bitmap, scale it a size that is appropriate for the device, and then apply a Gaussian blur to it. Blurring the image takes a noticeable amount of time (approximately 6 seconds on a Nexus 5), so the work is performed on a background thread. After the image is blurred it is displayed to the user, as demonstrated in the following screenshots:
When the user clicks on the **Load Blurred Image** button the application will load a bitmap, scale it a size that is appropriate for the device, and then apply a Gaussian blur to it. Blurring the image takes a noticeable amount of time (approximately 6 seconds on a Nexus 5), so the work is performed on a background thread. After the image is blurred it is displayed to the user, as demonstrated in the following screenshots:

![](Images/image00.png) ![](Images/image01.png)

Expand All @@ -37,7 +37,7 @@ When the user clicks on the <span class="uiitem">Load Blurred Image</span> butto

# Recipe

The event handler for the <span class="uiitem">Load Blurred Image</span> button is shown in the following code snippet:
The event handler for the **Load Blurred Image** button is shown in the following code snippet:

```
_blurImageButton.Click += async delegate{
Expand Down
Expand Up @@ -24,7 +24,7 @@ This recipe shows one way to blur an image using an API that was introduced in A
The recipe [Blur an Image with Managed Code]() is a example of how to apply a blur effect on all Android API levels.

This application will display a picture and a [SeekBar](http://developer.android.com/reference/android/widget/SeekBar.html).
The value of the <span class="uiitem">SeekBar</span> will determine how much the image should be blurred. You can see
The value of the **SeekBar** will determine how much the image should be blurred. You can see
this application running in the following screenshots:

![](Images/image01.png) ![](Images/image03.png)
Expand Down
43 changes: 28 additions & 15 deletions Recipes/cross-platform/app-links/app-links-ios/README.md
Expand Up @@ -52,21 +52,34 @@ Rivets.AppLinks.Navigator.Navigate(&quot;http://any.old.url&quot;)
- Install the [Rivets](https://www.nuget.org/packages/Rivets/) package from
the NuGet Gallery if you have not already done so.

- <ide name="xs">Open your app&#39;s `Info.plist` file, and under the **Advanced** tab, in the **URL Types** section, add a new URL Type like:<br/> ![Image of Info.plist configuration](Images/app-links-incoming-ios-infoplist.png)</ide><ide name="vs">Manually edit your <code>Info.plist</code> file and add the following section:<br/><pre><code>
&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
&lt;array&gt;
&lt;dict&gt;
&lt;key&gt;CFBundleURLName&lt;/key&gt;
&lt;string&gt;com.example.store&lt;/string&gt;
&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
&lt;string&gt;Viewer&lt;/string&gt;
&lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
&lt;array&gt;
&lt;string&gt;example&lt;/string&gt;
&lt;/array&gt;
&lt;/dict&gt;
&lt;/array&gt;
</code></pre></ide>
- Edit the Info.plist

## Visual Studio for Mac

Open your app's **Info.plist** file, and under the **Advanced** tab, in the **URL Types** section, add a new URL Type like:
![Image of Info.plist configuration](Images/app-links-incoming-ios-infoplist.png)


## Visual Studio

Manually edit your **Info.plist** file and add the following section:

```
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.example.store</string>
<key>CFBundleURLTypes</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>example</string>
</array>
</dict>
</array>
```


- In your `AppDelegate` , setup your app to have a Navigation controller which is your window&#39;s root view controller, like this:

Expand Down
Expand Up @@ -15,11 +15,11 @@ article:
The log window is a useful debugging tool, and is simple to use.

1. First, locate the log window. You can toggle it in Visual Studio for Mac by selecting
the <span class="UIItem">Application Output</span> panel on the bottom right:
the **Application Output** panel on the bottom right:

[ ![](Images/ios_log_00.png)](Images/ios_log_00.png)

In Visual Studio, select the <span class="UIItem">Output</span> panel on the bottom left:
In Visual Studio, select the **Output** panel on the bottom left:

[ ![](Images/ios_log_00_vs.png)](Images/ios_log_00_vs.png)

Expand Down

0 comments on commit 6ea1269

Please sign in to comment.