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.