Android Question Problem Load Activity

Discussion in 'Android Questions' started by Lowegaterecords, Jul 8, 2019.

  1. Lowegaterecords

    Lowegaterecords Member Licensed User

    I'm having problems loading the activity. I launch the ActivityMain and with a key recall the activity2 and in turn with another key recall the activity3 up to here everything appended. The problem comes when dall'activiy3 return to activity2, I press the button to reopen activity3 and the app crashes by displaying a black screen with no resulting error, if restart the app works but the bug repeats itself in the cycle. How can I solve it?
     
  2. LucaMs

    LucaMs Expert Licensed User

  3. emexes

    emexes Well-Known Member Licensed User

    Given that our crystal balls are not connected to your app, you are in a much better position to hunt down this bug rather than everybody else hypothesizing wildly ;-)

    If you can isolate the problem down the section or line of code where the wheels are falling off, then you will be 87.3% of the way to the solution already.

    What does the log say when you run it in debug mode?

    What code gets executed when you "press the button to reopen activity3"?

    Add trace Logs to the start and end of activity3's Activity_Create and Activity_Resume Subs. Do they show up in the log? If you know that the problem is occurring between points B and F in your code, then you can add further logs to divide and conquer, to narrow in on whereabouts the problem is occurring and then to determine what is causing it to occur.
     
    LucaMs likes this.
  4. LucaMs

    LucaMs Expert Licensed User

    Good idea for a new app :D
     
    jimmyF and emexes like this.
  5. DonManfred

    DonManfred Expert Licensed User

    There is no crash in android without something in the log.

    Check the unfiltered log; it may reveal more informations.
     
    emexes likes this.
  6. klaus

    klaus Expert Licensed User

    DonManfred likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice