Log in or register to post comments

Android Unity Black Screen

January 26, 2012 - 11:22am #1

Hi,

I see a few other threads with this same scenario, I have not been able to use them to solve this issue.

This same behavior is displayed on a Motorola Droid 2 Global and a Samsung Galaxy Tab 8.9.

From Unity I hit Build and Run, there is a legit bundle identifier, progress bars show progress, it launches, shows the default splash screen and then black...

On the Galaxy tab, the app can be quit and used normally, on the motorola the battery has to be removed to get the phone working again.

I had the image targets sample running on the motorola, but that was built running ndk.

There are no problems on IOS, any ideas? thanks!

UPDATE:
Trying to narrow the variables. Got it Working starting over from scratch.

Created a new project and checked on the "Qualcomm AR-Image Targets.unitypackage" to be imported.

deleted the reg cam, put in an ARCamera and a directional light. Dragged an ImageTarget prefab to the stage, dragged a TrackableEventHandler to the ImageTarget selected 'chips' as the image target behaviour. popped over to build settings hit "add current" button for "Scenes in Build", opened player settings, set up landscape left orientation, changed the bundle ID, min API is eclair. Hit build and run, and it works. great!

Tried to get it going on IOS, crashes at splash screen. Telling me
"Unable to resolve pinvoke method 'TrackerBehaviour:qcarSetHint (int,int)' Re-run with MONO_LOG_LEVEL=debug for more information."

Is this because of the Qualcomm AR-Image Targets.unitypackage being imported and not the Qualcomm AR-Image Target-IOS.unitypackage?

Thanks

Re: Android Unity Black Screen

February 1, 2012 - 7:46am #5
ksiva wrote:

Yes, although I have found that when I switch the Build Settings from iOS to Android it sometimes has a hard time deploying the app to a device. Restarting Unity can fix that issue.

- Kim

That's a great tip, I'll make sure to use it.

Thanks again!

Re: Android Unity Black Screen

January 30, 2012 - 7:05pm #4

Yes, although I have found that when I switch the Build Settings from iOS to Android it sometimes has a hard time deploying the app to a device. Restarting Unity can fix that issue.

- Kim

Re: Android Unity Black Screen

January 30, 2012 - 8:18am #3

Thanks Kim,

So in doing that, I should be able to deploy to both Android and IOS from one project?

t.o.

Re: Android Unity Black Screen

January 26, 2012 - 9:37pm #2

Try importing the qcar-unity-ios-1-0-0.unitypackage on top of your existing Android project. That's safer than importing the iOS ImageTargets package.

- Kim

Log in or register to post comments