question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Black screen when re opening app

See original GitHub issue

I just copied all the codes from the sample project that is included here.

@Override protected void onResume() { super.onResume(); qReader.initAndStart(surfaceView); }`

@Override protected void onPause() { super.onPause(); qReader.releaseAndCleanup(); }`

I think there’s something wrong about the SurfaceView, currently tested on Kitkat and Marshmallow both have the same error.

-Thanks

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
alexxgarcicommented, Jul 26, 2017

I check if the camera is running, and if it’s false, i started again. @ralphgabrielle

@Override
    protected void onResume() {
        super.onResume();

        // Init and Start with SurfaceView
        // -------------------------------
        qrEader.initAndStart(mySurfaceView);
        if (!qrEader.isCameraRunning()) {
            qrEader.start();
        }
    }
1reaction
ralphgabriellecommented, Oct 3, 2017

Glad it helped you. Cheers

On Fri, Sep 29, 2017 at 1:57 PM, datnt1987 notifications@github.com wrote:

Dear @ralphgabrielle https://github.com/ralphgabrielle , It worked, thanks so much

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nisrulz/qreader/issues/41#issuecomment-333037924, or mute the thread https://github.com/notifications/unsubscribe-auth/AG9e9JhWPSIauEUW7CdoCiU4wohYcFRVks5snIa_gaJpZM4N8FY2 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

App not responsive or returns a black screen
App not responsive or returns a black screen · 1. Check to see if there are any updates in the device app store....
Read more >
Random black screen while using apps - Microsoft Community
Random black screen while using apps · Press Windows + R key to open Run command. · Type control panel and click OK....
Read more >
Black Screen When you try to open Application for First Time
2. It happens for any app being opened or reopened from the icon (as opposed to swiping to find already open app). It...
Read more >
Mobile App Opening to a Blank Screen on Android
Open your Phone Settings. Tap Apps or Applications to get to the Application Management screen. Tap the Menu icon (3 vertically stacked dots)....
Read more >
7 steps to fix a black screen in Windows 11 | TechTarget
Applications and drivers. An outdated or malfunctioning application or driver can lead to black screen errors. Graphics drivers are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found