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

  • Home
  • SEARCH
  • 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 6197449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:49:24+00:00 2026-05-24T03:49:24+00:00

In an android app I return from the android camera a bitmap which is

  • 0

In an android app I return from the android camera a bitmap which is set to an ImageView something like:

   bitmap = android.provider.MediaStore.Images.Media
                       .getBitmap(cr, selectedImage);
                       image.setImageBitmap(bitmap);

Further more I wanna put a TextView on this image and after that save it to a website.Someone as an answer to another question on this topic suggested to do this in my xml:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<ImageView
    android:id="@+id/imageview"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:scaleType="center"
    />
<TextView
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_marginBottom="20dip"
    android:layout_gravity="center_horizontal|bottom"
    android:padding="12dip"
    android:background="#AA000000"
    android:textColor="#ffffffff"
    android:text="Golden Gate" />

</FrameLayout>

Well the problem with this is that the textView won’t be there when I save the image and upload it to a website!!!!I assume that this is just for the phone’s screen.
Anyway, if someone could help me with this I would appreciate it.Thanks!!

  • 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-24T03:49:25+00:00Added an answer on May 24, 2026 at 3:49 am

    Since you have access to the Bitmap, you can use the Canvas with that bitmap and draw stuf directly on it:

    Canvas c = new Canvas(theBitMap);
    

    After that you can draw the text on to the bitmap with the various canvas methods.
    e.g.

    c.drawText("My Text", xCoord, yCoord, paintObj);
    

    See the Canvas API for more information.

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

Sidebar

Related Questions

I have an app in android in which I return some data from facebook
I would like to capture an image from the camera on Android, and send
I'm building an android app and I'm currently having trouble retrieving a bitmap from
I am developing an android app in which i need to display images after
I've got an Android app which has a periodic background Service. I want this
I'm writing an Android app where users can upload video to Youtube. I'd like
I want my Android app to take a picture, as part of something larger
is it possible to query a website's api from an android app? If so,
Android:How to display images from the web in a ListView?I have the following code
In my Android app, when a user tries to transition from one activity to

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.