Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Image not Getting displayed on emulator as well as on device

 
Rohit Gaikwad
Ranch Hand
Posts: 40
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to make a splash screen which will be displayed for 5 sec then another activity will start. i am unable to set background and also use image view to view the image on xml file.
but when i Run the apk on emulator or Android device its not displaying the image
the HomeScreen code is

public class HomeActivity extends Activity {



activity_home.xml is



AndroidManifest.xml is



the image welcombls is present in
Bluelagon\res\drawable-hdpi - Dimentions= 480X800
Bluelagon\res\drawable-ldpi-Dimentions =240X320
drawable-mdpi -Dimentions =320X480

but still its not displaying image on Emulator as well as any device ( tried it on 4.1 android version && 5.0 android version device)


Please let me whats going wrong as this never happened before

Thanks and please reply soon
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!