How to get the Native Activity App (Android)?

Sudhanshu Kr. Suman 25 Reputation points
2023-02-05T04:51:09.8+00:00

I wanted to create an app for android in visual studio community 2022, and all of the tutorials on youtube or internet talks about the template of native activity app or opengl-es app. Although i have installed mobile development with c++ but i cant see any of these templates in my template list. Has it been removed or i need to install something more for that?

or if there is any alternative for that.

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce (SqlWork.com) 82,146 Reputation points Volunteer Moderator
    2025-05-06T17:26:10.88+00:00

    visual studio 2022 dropped support of ant scripts (on which most of the templates were based), so only gradle based projects are left.

    https://learn.microsoft.com/en-us/cpp/overview/what-s-new-for-visual-cpp-in-visual-studio?view=msvc-170

    1 person found this answer helpful.

  2. Anna Xiu-MSFT 31,156 Reputation points Microsoft External Staff
    2023-02-06T07:33:43.31+00:00

    Hi @Sudhanshu Kr. Suman

    Welcome to Microsoft Q&A! 

    Is your VS installed on a virtual machine or native hardware? 

    From the requirements of creating an Android Native Activity App, Android emulator is required to install.

    But for Android emulator, it must be installed locally. 

    Before you create an Android Native Activity app, please make sure that you have met all installation requirements. 

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.