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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:48:19+00:00 2026-06-16T16:48:19+00:00

I am having Boot Completed Receiver in my application and after Reboot completed, inside

  • 0

I am having Boot Completed Receiver in my application and after Reboot completed, inside my Boot Receiver I am starting an Activity. In that I am getting ResourceNotFoundException on setting layout.

setContentView(R.layout.activity_home);//getting error of resource not found on this line

I don’t know the reason but its but obviously because it is not able to find the layout or R in my app.
Anyone has any idea about this? Please kindly guide me to resolve this issue.

EDIT – I found that if I unlock the screen before my app try to load then it will not having any problem. Problem is only occurred when the emulator screen is locked and I unlock it after my app starts. So what happens it shows me the message the your app is unfortunately crashed.

  • 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-16T16:48:20+00:00Added an answer on June 16, 2026 at 4:48 pm

    Resolved this issue. Its because in my case I am using only landscape layout in my application and I have defined all the layouts in layout-land folder. So because of that its not able to find the layout. Transferred all the layouts inside layout folder and its working now. Thank you all for your kind support.

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

Sidebar

Related Questions

So I'm having an application with one Activity that does nothing and two Classes
I am having trouble keeping the Percona build of MySQL from starting on boot.
I am having server issues with getting rabbit to cluster. I boot up two
I am having a Simple AutoStart Application with TimerTask implementation, that works fine in
Having just added a new button in my web application, I get an error
I'm building a boot loader that boots the content that is located at the
I'm having a problem with Android's MediaPlayer in that it is too slow when
I'm trying to create a reminder application that pops up a reminder in the
I need a service to start at boot that periodically checks some database for
I am having trouble figuring one of several error messages that seem to have

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.