Home > android > Android Cardboard Activity not rendering when launched again from MainActivity

Android Cardboard Activity not rendering when launched again from MainActivity

January 12Hits:1

I am trying to develop a cardboard app. I have created a MainActivity and a CardboardAcivity using RajawaliCardboardVR (Its an API at https://github.com/ejeinc/RajawaliCardboardExample).

MainActivity is a menu, which open same CardboardActivity (for now). Problem is when i first open the activity, it works, but when i press back (i don't exit the app) and then open activity again, it shows black screen. When app is closed and restart, it works again but only once and problem repeats. I have tried manually restarting the app when back button is pressed, but didn't work. Does anyone have any clue what am i doing wrong here?

Rajawali API basically uses OpenGL so i think problem is in OpenGL. But i cant find a way to solve it.

Related Articles

  • Android Cardboard Activity not rendering when launched again from MainActivityJanuary 12

    I am trying to develop a cardboard app. I have created a MainActivity and a CardboardAcivity using RajawaliCardboardVR (Its an API at https://github.com/ejeinc/RajawaliCardboardExample). MainActivity is a menu, which open same CardboardActivity (for

  • NullPointerException in android.app.Activity.onCreate(android/app/Activity.java:874)July 22

    I'm trying to get libGDX 1.6.1 to run on Android via Ruboto. So far, I: Generated a new libGDX app using the app generator Got the desktop app to run (Java) Got the android app to run (Java) Converted the desktop app to run with JRuby Got a basic Rub

  • Review Request - Android CountDownTimer activitySeptember 15

    I'm new to Java and Android. While I've created a project that seems to work, I'd like some opinions on how to make it better. The app is going to be used as an interval workout timer/music player for Android devices. I know there's a ton of these al

  • Simple Activity that renders video, resizing overheadSeptember 8

    This is simple Activity which renders video file from URI given in intent, it has no controls and finish work as soon as it pauses or mediaPlayer work done. But it has a little problem, when changing configuration I'm changing size of SurfaceView, ho

  • Android: finish() Activity Runtime ExceptionJanuary 21

    I am closing an activity via finish(). It works fine on several devices but on a Samsung Galaxy S3 Neo running Android 4.4 I get the following issue: java.lang.RuntimeException android.app.ActivityThread.performDestroyActivity(ActivityThread.java:370

  • Appcelerator Could not find method android.app.Activity.checkSelfPermission

    Appcelerator Could not find method android.app.Activity.checkSelfPermissionFebruary 5

    I cant seem to get geo location to work on Android just seem to get the following bug. [INFO] : dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.geolocation.GeolocationModule.hasLoca

  • Handling right swipe in android wear activityFebruary 9

    Is it possible to implement a wear activity which after launched can handle right swipe and launch other activity. More details. Lets say I have ActivityA which is the launcher of wear app. When I do a right swipe can I make the ActivityA to launch A

  • Clicking on active apps on unity launcher stopped workingJune 27

    I don't know how it suddenly became this but here's what's happening right now: e.g. I have 2 firefox windows open, so I see 2 small arrows on the left side icon of the unity launcher. Before, when I click on the firefox icon, I see 2 small windows o

  • Android Fragmnet activity from Fragment.Noe in Fragment Activity getting nullpointer exception on getActionBar() February 14

    i want to work with action bar in android. for this i use getActionBar().setHomeButtonEnabled(true); below the SetContentView . but is gives me null pointer exception. when i try only getActionBar() it works fine. please help me. --------------Soluti

  • Does Android keep activity logs or save keystrokes?August 10

    I want to know whether Android phones records activity logs of what I have done in a whole day. I've already checked that there is no Carrier IQ. Is this true that after switching off the phone all activity logs vanish? Does my Android phone keep sav

  • Android "Search" Activity and corresponding XMLAugust 27

    Below is an Android Activity and corresponding XML layout. The function of the class is to search an SQLite database to show results to the user. Can I get a review of the code quality? This is my first Android app so feedback would be greatly apprec

  • Android One Activity Transition Different Views

    Android One Activity Transition Different ViewsJanuary 16

    I was wondering if someone can advise what the best way to do the following: I'm creating an application where I'm asking the user a question and the user either answers the question or proceeds to the next question with fade in and fade out animatio

  • Android application crashes every other compilation/launchJanuary 18

    For some reason every other time I compile my app, the app crashes and I get the following error. java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.GoogleMap.clear()' on a null object reference at com.

  • How to create service android without ActivityJanuary 18

    I need to implement a service in android this: 1. Activity should not have, anything visual. 2. Once you install it, is running in the background. They recommend me to use? regards Alex

  • Android multiple activity instances in memory snapshot on screen rotation changeJanuary 19

    I created a simple Blank Activity (MainActivity class) in Android Studio and ran it on my Samsung phone. I rotated the screen several times from portrait to landscape mode. I took a memory snapshot and discovered that there were several instances of

  • Android how to check if the Launched App has been closed?January 20

    In my App. I will list all the Games installed on the device. I want to know when I launch a game, is this game has been closed. If so then Force my app to come up to foreground. This in the onClick: @Override public void onClick(View v) { AppInfo ap

  • Android Wear activity pushed to background after creationFebruary 6

    I am working on an Android Wear application that uses a background service to log certain accelerometer events. When a specific event is caught, it creates a new activity and it is started using an Intent, and is brought into view. The event triggers

  • Android: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT cat=[android.intent.category.OPENABLE] typ=image/* }February 8

    I have one ImageView in my layout file. I just want to load an image in the ImageView when I open my app. But what happens is that when I open my app it occurs an error message Caused by: android.content.ActivityNotFoundException: No Activity found t

  • Android studio activity main February 11

    When I make a new project from android studio. New blank activity has title bar and floating icon. How to get rid of it when I'm getting a new blank activity. And how i make a real blank activity. --------------Solutions------------- Use the "Empty A

  • Show only the active workspace on the launcher July 27

    I don't want to see applications that are opened on my other desktops (workspaces) in my Unity launcher (or sidebar, whatever it is called). I find it annoying and would prefer if Unity just dealt with one desktop/workspace at a time. Is there a way

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 1.177 s.