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 7798371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:59:03+00:00 2026-06-01T23:59:03+00:00

i saw some info regarding this question in several threads but non suited my

  • 0

i saw some info regarding this question in several threads but non suited my condition.
I have an android application which i now need to customized some resources and code.
For the time being i have some problems using android library so i have an ant build that copies base resources and Assets plus specific ones to my android project and than changes the package name in the manifest as needed. All my activity have constant path and non relative to the package name so that’s not an issue.
The problem is with the R object in the gen folder that is generated in the aapt. aapt does have a parameter to not use the android manifest package but another one, but it’s available only if i use the ant build file, the parameters for the ADT are hard coded in the plugin.

has anyone found solution to this ? i mean i can always use ant task to change all R references (imports) but it looks to me error prone. Any way except wrapper script that wont do it on windows to customize aapt ?

  • 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-06-01T23:59:05+00:00Added an answer on June 1, 2026 at 11:59 pm

    again… no answer for my question, i’ll start thinking you guys got something against me.
    in short, i see there’s no solution, the things i can do:

    1. use ant task that regexps all the import com….R; to the new package – disadvantage: even the smallest issue with the regexp i may mess something up in the code that will show only in runtime.
    2. use wrapper script around aapt.exe or aapt binary that adds –custom-package my.package.name that even if i change the manifest package will keep the original R files, for both ant and eclipse – disadvantage, some: 1. on windows this needs to be an exec file as eclipse looks for one it took me a while to build one properly in C, on linux\mac this could be a script of any kind so we need 2 versions of it\ 2. every update to the SDK we need to install the wrapper all over again.
    3. edit the ant tasks jar code to allow –custom-package and edit the adt source code to enable in the menu custom parameters – this is great feature that should be included! but the disadvantage is until the code is accepted (if it is accepted) and added to the SDK itself , i’ll needs to merge my changes every new SDK emerges, unlike #2 this is a lot harder.

    I chose option #2, for now i have executable for windows, and i’ll check options for Linux and mac (probably simple bash script) once i’m there, and i’ll create a python installation script and save it all in the svn along with my build project.

    Good luck to everyone….

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

Sidebar

Related Questions

I saw some code on an unrelated question but it got me curious as
Just now,I saw some code like this: if(condition){ var xx='sss'; } //do something if(condition){
I saw some code in TCL like this: namespace eval ::info { set count
just to save some time, probably anybody tried this or saw somewhere related info.
I saw this question and it really shedded some light. Despite this, I can't
I saw some code when studying the open source project: here . But I
I saw some code like this: try { db.store(mydata); } finally { db.cleanup(); }
I saw some C code like this: // A: typedef uint32_t in_addr_t; struct in_addr
I saw some code, html form code which looks like this: <form name=form1 method=post
I was looking through some code and i saw this: <xsl:variable name=newlist select=concat(normalize-space($list), '

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.