|
1 | 1 | ---
|
2 | 2 | description: "Learn more about: Cross-platform mobile development examples"
|
3 | 3 | title: "Cross-platform mobile development examples"
|
4 |
| -ms.date: "10/17/2019" |
5 |
| -ms.assetid: bc384c12-fccc-45d7-9fb9-b90d536aa663 |
| 4 | +ms.date: 03/04/2024 |
6 | 5 | ---
|
7 | 6 | # Cross-platform mobile development examples
|
8 | 7 |
|
9 |
| -Several of the templates installed by the **Mobile development with C++** workload generate complete examples that you can use to learn from. Additionally, the Windows Dev Center has several example applications that you can download and try out in Visual Studio. |
| 8 | +Several of the templates installed by the **Mobile development with C++** workload generate complete examples that you can use to learn from. Additionally, here are some example applications that you can download and try out in Visual Studio. |
10 | 9 |
|
11 |
| -- [hello-jni Android Application Sample](https://code.msdn.microsoft.com/hello-jni-Android-790ab73d) |
| 10 | +- [hello-jni Android Application Sample](https://github.com/android/ndk-samples/tree/master/hello-jni) |
12 | 11 |
|
13 | 12 | This sample is a port of the Android NDK hello-jni application. The sample demonstrates an end-to-end Java Native Interface "Hello World" app. It loads a string from a native method implemented in a shared library, and then displays it in the app.
|
14 | 13 |
|
15 |
| -- [TwoLibs Android Library Sample](https://code.msdn.microsoft.com/TwoLibs-Android-Library-6396e5c4) |
| 14 | +- [TwoLibs Android Library Sample](https://github.com/microsoftarchive/msdn-code-gallery-community-s-z/tree/master/TwoLibs%20Android%20Library%20Sample) |
16 | 15 |
|
17 |
| - This sample is a port of the Android NDK TwoLibs sample. It uses both a dynamically loaded shared library, and a static C++ Android native library, that implements a method called from a Java Native Interface app. This sample is a good starting point for developers to understand how to use static/dynamic shared libraries to build an end-to-end JNI Android application with Visual Studio. |
| 16 | + This sample is a port of the Android NDK TwoLibs sample. It uses both a dynamically loaded shared library and a static C++ Android native library that implements a method called from a Java Native Interface app. This sample is a good starting point for developers to understand how to use static/dynamic shared libraries to build an end-to-end JNI Android application with Visual Studio. |
18 | 17 |
|
19 |
| -- [test-libstdcpp Android Library Sample](https://code.msdn.microsoft.com/test-libstdcpp-Android-00b548f5) |
| 18 | +- [test-libstdcpp Android Library Sample](https://github.com/microsoftarchive/msdn-code-gallery-community-s-z/tree/master/test-libstdcpp%20Android%20Library%20Sample) |
20 | 19 |
|
21 | 20 | This sample is a port of the Android NDK test-libstdc++ sample, specifically for use with Visual Studio. This sample is a good starting point for developers to understand how to use the Standard Library.
|
22 | 21 |
|
23 | 22 | To open one of the examples in Visual Studio, download the zip file and open the **Properties** page of the downloaded file in Explorer. Choose the **Unblock** button then choose **OK**. Extract the contents of the zip file to a convenient location, then open the C++ folder in the extracted sample and open the solution file.
|
24 | 23 |
|
25 | 24 | To build the sample, press **F7**, or on the menu bar, choose **Build**, **Build Solution**.
|
| 25 | + |
| 26 | +## See also |
| 27 | + |
| 28 | +[Android NDK samples](https://github.com/android/ndk-samples/tree/master/) |
0 commit comments