Log in or register to post comments

Black screen when accessing Android camera.

August 27, 2014 - 2:13pm #1

When I load scene with the game object “AR Camera”, my screen goes black. All the UI elements appear normally. I use NGUI to create my GUI elements. My game runs fine on iOS (I tested run it on my iPod Touch). I disable both “Use 32-bit display buffer” and “Use 24-bit Depth Buffer” in the “Players Setting” but this doesn’t fix the issue.

I test run my game on the “HTC One” and “Nexus 5”. Both devices experience this problem.


Black screen when accessing Android camera.

September 5, 2016 - 8:25am #10

HI :) : i want to share my case LOOK:

I got the black screen, some post say you should delete the vuforia.jar and the vuforiaUnityPlayer.jar on Plugins/Android (because the android SDK JAR crash)..... DONT DO THAT your androids will be copiled but when you start the app it will go to black.



Download a new oracle JAVA SDK 8 for windows 86 bit (32 BITS) change the java sdk on your unity 5 file for the new one

IT WORKS FOR ME.... hope this can be usseful for some one else :)


daniel guevara

Black screen when accessing Android camera.

November 5, 2015 - 5:07am #9

Thanks @scott5678,

I had the same issue with the black screen on an App currently in development.

In the Unity editor I've got the Camera (child of ARCamera) deactivated. When I start the Camera via camera.setActive(true) the screen on a Samsung Galaxy S6 is black. When I rotate the device the camera image is shown!

Now I implemented your solution like this when I start the AR content/camera:

Somewhere in my script:

// Show ar camera

And here's the coroutine:

IEnumerator DelayedAndroidScreenFixWhenCameraActivated() {
	yield return new WaitForSeconds(0.1f);
	SurfaceUtilities.OnSurfaceChanged(Screen.width, Screen.height);

I'm trying to get the time (0.1f) as small as possible. But I'm not sure how low I can go to have it executed correctly. If I have it to low, the screen stays black.

Any news on this from the devs?

Black screen when accessing Android camera.

April 22, 2015 - 5:19am #8

I do not know if it is related or not but i have a black screen problem with vuforia and solved it with disabling the antialiasing:)http://forum.unity3d.com/styles/default/xenforo/xenforo-smilies-sprite.png); background-attachment: initial; background-size: initial; background-origin: initial; background-clip: initial; background-position: 0px 0px; background-repeat: no-repeat;" title="Smile :)" />

Antialiasing changes my screen to black if i set it in script
QualitySettings.antiAliasing = 2; //etc. //do not use anti aliasing in android if you have Unity 4.x

I hope it solves your problem too.

Black screen when accessing Android camera.

February 16, 2015 - 1:16pm #7

Mine wasn't showing because of the lights, I removed them all but one and now it works.

Black screen when accessing Android camera.

December 19, 2014 - 9:43am #6

I had the same problem, but redoing the migration steps didn't fix it for me. I found that rotating the screen caused the camera to turn on again.

So I added some code to run 1s after my app launches that calls the same code called when the orientation changes.


        void Start() {

	IEnumerator DelayedAndroidScreenFix() {
		yield return new WaitForSeconds(1.0f);
		Debug.Log ("DelayedAndroidScreenFix");
		SurfaceUtilities.OnSurfaceChanged(Screen.width, Screen.height);


Problem originally found on Nexus 4, 5, 10, LG G3, Note 4. Vuforia 3.0.9, Unity 4.5.5f1

Black screen when accessing Android camera.

August 30, 2014 - 8:05am #5

Black screen when accessing Android camera.

August 29, 2014 - 5:38pm #4

I created a panel and attach label with the sprite that cover whole screen. When the user click on the label, it will dissapear. However, the screen is still black. Please see the attached image for details.

Did you check the "Use 32-bit Display Buffer" box and "Use 24-bit Depth Buffer" box in the "Player Settings"?

If you can, please post an image of your  scene so I can see how you set up your 2 panels. 



Black screen when accessing Android camera.

August 29, 2014 - 8:46am #3

How do you create a second panel that show a full-screen help page? Do you use NGUI? If you use NGUI, do you use the "Label" element?

Black screen when accessing Android camera.

August 29, 2014 - 1:21am #2

I was having the same issue with my project. When the scene loads I have a second panel active showing a full screen help page that the user could then disable. I found turning that off by default (the user can tap the ? icon to open it later) stopped the issue of the Background Camera not rendering. I'm not sure if it was because the texture was fullscreen, or if it was because there was a second panel (more draw calls).

Log in or register to post comments