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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:32:38+00:00 2026-06-07T14:32:38+00:00

so I am trying to create an app where the user can press a

  • 0

so I am trying to create an app where the user can press a button to take an image with the phone’s camera, and then press another button to set that image as the phone’s wallpaper.

I started the camera intent with this: (this is in an onClick method)

Intent i;

i = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
            startActivityForResult(i, cameraResults);

Then I implemented this method to receive the image from the camera:

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    super.onActivityResult(requestCode, resultCode, data);
    if(resultCode == RESULT_OK){
        Bundle extras = data.getExtras();
        bmp = (Bitmap) extras.get("data");
        imageView.setImageBitmap(bmp);
    }
}

Then, in the onClick method of the button that sets the wallpaper as the bmp, i used:

getApplicationContext().setWallpaper(bmp);

When I run this app, everything seems to work perfectly! The picture is taken, I set an imageView as the picture, and then when i press the button to set the image as my wallpaper, my wallpaper changes.

HOWEVER, the problem is that the image from the camera doesn’t correctly set as the wallpaper. For some reason, the picture decreases in size, so that only the middle of the wallpaper is that image. Most of the screen is black. The image was scaled down for some reason. I want the picture to be full screen, but right now, it is minimized, and the background is black.

Does anyone have any idea why this is? I am following a tutorial video, and the person in the tutorial gets it working perfectly (the image is set as the wallpaper full screen).

I appreciate all help, thank you very much!

Anyone else know how I can scale it so that I set the wallpaper fullscreen?

  • 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-07T14:32:39+00:00Added an answer on June 7, 2026 at 2:32 pm

    The bitmap that you are extracting is a thumbnail of your image.
    Try
    this Android official tutorial on using native camera app and image scaling.

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

Sidebar

Related Questions

I am trying to create an app that saves the user's media selections from
I'm trying to create an app that allows the user to open the android
I'm trying to create an app that offers the user 3 different kinds of
i'm trying to create an app that would present a form to the user
I'm trying to create a Django app where the user can make a list
I am trying to create an app that allows the user to draw a
I'm trying to create an app in Visual Basic that will allow a user
I'm trying to create an interface for a launcher app that can be traversed
I am trying to create and Android app that requires the user to be
I'm trying to create an app (my first) that generates invoices for me. Originally

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.