Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7614065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:18:30+00:00 2026-05-31T02:18:30+00:00

For my personal purposes I’d like to parse comments in Android Manifest file. In

  • 0

For my personal purposes I’d like to parse comments in Android Manifest file. In these comments there can be tags with attributes and values that I want to extract. It is similar to tag in html files that is usually commented because some browsers does not support this tag. So I want to implement similar things in android manifest.

I know that in Android manifest file is parsed using SAXParser. Moreover, I think I should use LexicalHandler for this purposes but I’ve never faced before with this functionality and I want to know how to do this. Code snippets and any help will be highly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:18:31+00:00Added an answer on May 31, 2026 at 2:18 am

    I’m entirely sure that you cannot parse the raw XML Manifest, because like everything that is in the res folder (except res/raw), the manifest is compiled and stored in a binary format, so the comments are removed.

    Maybe you can play with xmlns and capture the manifest parsing… But I doubt it, the Manifest is interpreted by the package manager, and I don’t think that you can have access to it.

    The solution (from your feedbacks):
    The requested feature is impossible, because during the compilation all comments from AndroidManifest file are removed.

    You can check this in the following way:

    1. Create a simple app project (Hello World) and add comments in your AndroidManifest file.
    2. Compile project and export an .apk file (signed or unsigned).
    3. Using tools like apktool or similar extract your apk file.
    4. Check the result in AndroidManifest.xml – there are no comments.

    You should try to find other way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing a personal organizer for learning purposes, and i've never worked with XML
Personal preferences aside, is there an optimal tab size (2 spaces? 3 spaces? 8
our site is giving out 'badges' to our authors. they can post these on
I would like to have a go at making some simple games for personal/learning
For my own personal purposes, I have about ~300 authors (full name) of various
The goal: For a personal project, I'd like to simulate an old-fashioned computer interface
I'm working on adding user submitted comments to a personal project. Comments have a
My personal experience is that regexs solve problems that can't be efficiently solved any
My personal preference is the separation of code execution from interface objects. For example,
Any personal experience in overcoming web application performance hurdles? Any recommended strategies for improving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.