Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by peppas · Nov 06, 2015 at 07:13 AM · scripting problemguibuttonurl

how can I open url link in Unity/Vuforia android app

Hello, I have made a Vuforia app for android and everything works perfect, except from a GUI button. I want it to link to my site (I'm using Application.OpenURL), it opens correctly in my browser, but when I go back to my app it automatically restarts... How can I avoid this? Is thre any other C# method to do this? I'm new to scripting, any help would be very much appreciated!

Thank you very much.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by HenryStrattonFW · Nov 06, 2015 at 11:00 AM

This is typically because when your device switches to the web-app it decides for whatever reason that it needs to free up some memory, its common policy on android and iOS that when the devices wants more memory, it will simply terminate some apps running in the background in order to get what it needs. The best way to avoid this is to try and reduce the amount of memory your app takes to run, but beyond that, at the end of the day, this will still occur sometimes on some devices and there isn't really anything you can do to stop it entirely, you can only try to reduce it. If you ensure that all other apps on your device are closed, and only your app is running you may notice it does not occur.

Of course there is also the possibility that your application has a bug when the on resume methods are called that then causes it to crash, but checking the logs through LogCat would be a quick way of checking and or eliminating this possibility.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by peppas · Nov 06, 2015 at 12:03 PM

Thank you Harry for your answer. So, if that's a memory problem I suppose there is nothing else to try - or maybe not? Any other methods for calling a URL through my app?

Thank you very much

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HenryStrattonFW · Nov 06, 2015 at 05:41 PM 0
Share

If it is what I suggested it could be, then all you can do is try to optimize your app as best you can to reduce its memory foot print, but there is no 100% way to stop it from happening if it is that, as its down to the OS at the end of the day. No OpenURL is about as basic as it gets for opening a url link.

Also try to post things like this as replies ins$$anonymous$$d of an answer :) just keeps things organized on the answers pages.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

45 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Trouble with GUI Button Level switching. 0 Answers

How to create GUI BUTTON from this 1 Answer

Mouse click not registered correctly using CRT shader 0 Answers

Trying to change text of button using script 1 Answer

GUI button not working? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges