Close splash screen in Hololens 2 with unity - c#

I am a new in Hololens 2 and I build some Unity sample on it.
When start application, it would placed a white box like that.
When stop application, the white box still on here and I need to click X to close it.
I have searched about that, it seem like about uwp application lifecycle?
Is there any method to close it with C# when I quit my application.
Thanks in advance for any suggestions.

It is by design and can only be closed manually, every app starts in mixed reality by placing an app tile in the Windows Mixed Reality home and these tiles persist and stay at their placed location. For more information please see:App model
In addition to this, you can add a custom holographic splash screen for the app, please refer to this link:Holographic splash screen

Related

How to add appstore view in my Unity iOS app?

I have seen some games having store page opens in-game as a native window without quitting the game at all.
I have search around and couldn't find anything related to it.
Is there a specific plugin to achieve that or how it can be exactly done? If not how can I add a store view in my Unity iOS game
Example from a random game on app store:
The screen above is inside a game, pressed "Download now" and it showed the other game store page as shown above without leaving the game itself. Pressing "Done" minimizes the popup and let you continue playing normally.

Prolonging Unity Splash screen (Android)

I'm making a little game in Unity 5.3 and i want the splash screen to last longer. Is there a way to do this without adding a second scene with the splash screen image?
I dont think it is possible to customize the length of the splash screen display, but some options exist for it. Take a look at these links and you can see what is possible to customize.
http://docs.unity3d.com/Manual/class-PlayerSettingsAndroid.html
http://docs.unity3d.com/Manual/MobileCustomizeSplashScreen.html

How to navigate to Windows Phone 8 start screen using C#

I have built a very basic sound board app by following video tutorial series on channel 9 [http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners]. Each page in the app displays a list of sound tiles, which on tap plays associated sound. I have extended the app to allow user to tile the individual sound to phone's start screen. Everything works fine upto this point.
Now whenever user taps the sound from start screen, I want app tile to just play the sound, however its navigating into the application at the moment. I have raised similar question on channel 9 and the video series author suggested me that its possible by calling NavigationService.GoBack method on OnNavigatedTo event. I tried that, however I am getting exception with message 'Cannot go back when CanGoBack is false'. Here is the channel 9 thread - http://channel9.msdn.com/Series/Windows-Phone-8-Development-for-Absolute-Beginners/Part-23-Testing-and-Submitting-to-the-Store
Appreciate if someone helps me to resolve the issue.
Entire source code of my app is available on GitHub at https://github.com/PrasadHonrao/WindowsPhone8/tree/master/SoundJabber
Thanks.
To programmatically exit an application, you can call:
Application.Current.Terminate();
Unfortunately, it will work only on Windows Phone 8, this method isn't available on Windows Phone 7.
You can't use navigationService.GoBack when you don't have navigation history.
When you are in your main page and you want to exit your application you can use NavigationService.RemoveBackEntry() for remove navigation history.
If you want play sound for a specifique user.Create Model ou uri sound as parameter.
For information:
when you use Application.Current.Terminate();.You don't pass in your app.cs.
the simplest you can do is Application.Current.Terminate();

Orientation issue in windows8 metro app.

I am currently working on widows8 metro app tablet version.In My package.appmanifest file I have choose supported rotation as landscape.but when iam launching the applicaiton by holding the device in portrait mode.For fraction of seconds splash screen is coming in portrait mode and then it changed to landscape.
can anyone know how to solve this problem. because of this issue i am facing other issues.
You can add your custom splash screen. If your application only supports landscape, you could make your splash screen appear in landscape by manually adjusting the image to load.
Another option could be to make an extended splash screen. This way, you can programatically make your splash screen appear for say, a second or so.
Check this article from Microsoft, Creating a fast and fluid app launch experience, which has examples and information about extended splash screens.

Windows Phone turn flash on in background

I am working on a tools app and I need a way to turn on the camera flash when I click a tile, then keep it on in the background and turn it off once I click the tile again.
I don't need any help with the tile yet all I want to know is what I can do to turn on the flash and then keep it on. All the examples I have seen thus far simply pretend to be a camera and then turn the flash on.
Do you know of anything?
PS. I am planning on making this for WP 7 and 8 but if you know of a way that will on work on WP 8 that will also help me a lot.
The simple answer is no.
While the app is running, you can control the camera and turn on the flash. But as soon as you exit the app (Back button) or the app is suspended (due to a phone call or by pressing the Start button), the use of the camera is suspended.
Windows Phone does have Background Agents but these are very limited and do not allow access to the camera API at all (and many other APIs).

Categories

Resources