Log in or register to post comments

Menu before Camera View Shown

March 13, 2013 - 2:20pm #1

hey guys, i need help here..

i want to make an AR application with Vuforia. In the sample, when we open the application, it will launh cameraview directly. what if i want to make a menu activities, that contain a button like: play, option, about, exit, just like another application in android.

can you guys tell me how can i do it? is i also need new activities to handle that menu?

Menu before Camera View Shown

May 19, 2015 - 8:26pm #11

Hi AlessandroB ,

So how do this in Unity ?

Menu before Camera View Shown

March 15, 2013 - 12:06pm #10

The problem is that you cannot completely avoid to have black screen (or otherwise splashscreen);

with the little tips that I provided you can reduce the time to a minimum, but you will still have to wait for a second or so before you can display the camera background image; that's because Vuforia requires a bit of time to complete initialization; during that time either you don't display anything (i.e. you get the back screen), or you can display a splashscreen like the samples do.



Menu before Camera View Shown

March 15, 2013 - 11:07am #9

hey, it still there, even if i remove all the variable that contain "splashscreen" word it still shows nothing for a seconds.., exept in these codes:

mSplashScreenHandler = new Handler();
                mSplashScreenRunnable =
                    new Runnable() {
                        public void run()
                            // Hide the splash screen
                            // Activate the renderer
                            mRenderer.mIsActive = true;
                            // Now add the GL surface view. It is important
                            // that the OpenGL ES surface view gets added
                            // BEFORE the camera is started and video
                            // background is configured.
                            addContentView(mGlView, new LayoutParams(
                            addContentView(mOverlayView, new LayoutParams(
                            // Start the camera:

i bring out mRenderer code until updateApplicationStatus to the outside of runnable, and remove the handler and the runnable.. where did i get wrong?

Menu before Camera View Shown

March 15, 2013 - 12:36am #8


that delay is due to the mSplashScreenHandler which launches a runnable with a certain delay; you should be able to get rid of it by changing the MIN_SPLASH_SCREEN_TIME variable to 0 (currently it is set to 2000)

Menu before Camera View Shown

March 14, 2013 - 9:06pm #7

thx for your reply, i have tried your post, i remove all the mSplashScreenView variable, but what happened to my app is: it still launch some kind of Splash Screen thing, it shows nothing for a seconds and then show the Camera View. well i think the Splash Screen is not fully disappear right? so what should i do next?

Menu before Camera View Shown

March 14, 2013 - 8:41am #6


in 1.5 you have a mSplashScreenView variable in ImageTargets.java, just remove any reference to it in the code and it should disappear.


Menu before Camera View Shown

March 14, 2013 - 7:53am #5

no, i mean, i didn't use vuforia 2.0, i used vuforia 1.5, and there is no ImageTargetsSplashScreen.java,

well in vuforia 1.5, the splash screen was handled by ImageTargets.java. it is different in vuforia 2.0 that has sparate class: ImageTargetsSplashScreen and ImageTargets.

i'm sorry if my post was out of topic, but i need help to remove this SplasScreen in vuforia 1.5..

Menu before Camera View Shown

March 14, 2013 - 2:50am #4

Hi, the splashscreen is defined in the ImageTargetsSplashScreen.java file;

however, the visualization of the various activities (including the splash screen one) is controlled by the AndroidManifest.xml and by the startActivity() methods.

Check the manifest and the code (note: this is about Android programming, not really about Vuforia).


Menu before Camera View Shown

March 14, 2013 - 2:10am #3

hi there, thx for your advice to see vuforia 2.0, now i can make menu in my app,

can i ask a question again? i made my app with vuforia 1.5, and from on of vuforia 2.0 project i learned how to add menu. there are Play, About, and Exit button on my menu, and when i press play, it will launch camera view like normaly, but the splash screen shown there. I know, it must be because i add Menu activities before CameraView (with the splash screen), but how can i delete this splash screen? what codes in ImageTargets.java i should delete?

Menu before Camera View Shown

March 13, 2013 - 11:17pm #2

Hi, you can create an Activity with your menu, and then for instance when you click Play, it will launch the AR activity;

have a look at the Image Targets sample in Vuforia 2.0, it contains multiple Activities.


Log in or register to post comments