Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
2
Question by PommPoirAbricot · Jun 06, 2013 at 01:11 PM · androidbrowserurlintent

Which "using directive" to use "Intent" for open url in android ?

I saw different topic about open url in web browser in foreground:

http://stackoverflow.com/questions/2201917/how-can-i-open-a-url-in-androids-web-browser-from-my-application

http://stackoverflow.com/questions/13492364/open-a-url-in-androids-web-browser-from-application?rq=1

I don't know how to use the instructions below under VS2010 :

 Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
 startActivity(browserIntent);

Someone can tell me how to use it ?

Edit: If Intent is an android function, how can i use it with Unity and c# scripting ?

Edit II: Please help me, i am newbie in Android Developpement ! What is the procedure to use Android Function and callbacks like "Intent" ?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SubatomicHero · Jun 07, 2013 at 06:56 AM

To be able to use Intent, you need to include/import depending on your IDE the correct libraries.

For example in Java you need to add:

 import android.content.Intent;

To the top of your page otherwise you cannot use the library.

Also have you downloaded/paid for the Android license within Unity? That should then open up all the libraries for use within Unity3D

Comment
Add comment · Show 3 · 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 PommPoirAbricot · Jun 07, 2013 at 08:04 AM 0
Share

Ok so if i understand well the libraries are automatically added to my IDE (VS2010) ?

Have i to use AndroidJavaClass, AndroidJavaObject, etc. ?

Are the libraries in the download of Android license ?

Yes i paid for the android license and i am able to export my project on Android platform

I also download android sdk for windows (android SD$$anonymous$$_r21.1-windows) and i am using 2.2 (froyo API) of android

avatar image SubatomicHero · Jun 07, 2013 at 08:39 AM 0
Share

I believe so but it's worth reading the android unity documentation or even contacting their customer support for more information.

avatar image PommPoirAbricot · Jun 07, 2013 at 08:52 AM 0
Share

Ok i think i begin to understand I saw there "import android.content.Intent;" in an Android Plugin for Unity http://gamedev.stackexchange.com/questions/25851/starting-a-java-activity-in-unity3d-android

Then i have to put it in my Unity Projects in Assets/Plugins/Android/

Finally i have to use AndroidJavaClass in order to exploit that package

Am I right ? Am i missing something ?

Anyway thank you SubatomicHero for your answer

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

15 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

Related Questions

Open a local html file in the Android's default browser 1 Answer

Open Android App from URL 3 Answers

cant open the google play app? 0 Answers

Android wont load AssetBundle scene - using AssetBundleManager from the tutorial (Unity 5.2.1) 2 Answers

will unity run on the android browser 2 Answers


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