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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:04:40+00:00 2026-05-27T21:04:40+00:00

I have an invisible image in an android app. It’s used for an image

  • 0

I have an invisible image in an android app. It’s used for an image map.

The problem is, that the image is compressed while compiling, so that the image in the bin folder or in the apk is not the same than the image in the res folder. Now when you click on the image the function that detects the color of the pixel returns the wrong color.
If I copy the original image into the bin folder by hand erverything works fine.

Is there a trick to get Eclipse not to compress images while compiling?

  • 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-27T21:04:41+00:00Added an answer on May 27, 2026 at 9:04 pm

    You can put your bitmap in the res/raw folder.
    From the developer docs:

    Note: Image resources placed in res/drawable/ may be automatically
    optimized with lossless image compression by the aapt tool during the
    build process. For example, a true-color PNG that does not require
    more than 256 colors may be converted to an 8-bit PNG with a color
    palette. This will result in an image of equal quality but which
    requires less memory. So be aware that the image binaries placed in
    this directory can change during the build. If you plan on reading an
    image as a bit stream in order to convert it to a bitmap, put your
    images in the res/raw/ folder instead, where they will not be
    optimized.

    You can also apparently rename your image *.jet to prevent compression.

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

Sidebar

Related Questions

I have written a small Android project that shows some (image)buttons. It works fine
We've upgraded yesterday our App (easy.go) on the Android Market and after that we
I have an Image button. I made it invisible. But the onClick event is
I have a custom wpf control to do an arbitrary reverse image warp, that
I have a searchable pdf aka 'image files with invisible but selectable text'. (When
I have a world map image (png image), now I am planning to add
I would like to make my user control have invisible areas like the areas
I have implemented an application with multiple check boxes with multiple layouts.I am invisible
Have a SomeLib.pro file that contains: CONFIG += debug TEMPLATE = lib TARGET =
Have a matrix report now that has Position, Hours and Wages for a location

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.