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

Why is it when I follow links to web from my app and return, there is a black screen (Android)?

 
Eric Sweeten
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making a game, and it's almost done. This is the last major thing that needs to be solved before I can launch it. When an advertisement pops up and the user clicks on it and it takes them to a web page, and they back into the app, the screen is blank. I assumed I needed to do something in the onResume method but I don't think it's calling the onResume method at all because I tried to put a System.out.println there and nothing showed on console. Right now I'm dealing with the main activity, where I create an instance of GamePanel, which extends SurfaceHolder, and I set content view to the game panel.





MainThread:



And the Game class is where the main code for the Game happens. It has update and manipulates the Canvas.
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems related to the other question that you asked...
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!