Log in or register to post comments

open a url in the unity

October 29, 2013 - 1:44am #1

I want to open a web page in the AR, I hope that the web is opened in the program, rather than using the browser if use “Application.OpenURL("")”, how can I do

open a url in the unity

October 31, 2013 - 3:18am #7

yes,I have got it ,thanks for your help.

open a url in the unity

October 30, 2013 - 5:25am #6

In your Android code, you can just add a Button and set a click listener on it; then, in the OnClickListener, you can start your activity using an Intent.

I suggest to search the details of how to implement Buttons and Intent in the Android developer guide:

http://developer.android.com/training/basics/firstapp/starting-activity.html

 

open a url in the unity

October 30, 2013 - 1:04am #5

yes,I have successfully implemented the tutorial "extending-unity-android-activity-and-adding-custom-views-eclipse",but When I do to“scan the view hierarchy recursively (starting from the root view of your main activity) and find the view whose class is QCARUnityPlayer;” I don't know how to continue, forgive me I don't know much about the android architecture, Can you tell me some way if I want to open a web page by a button

open a url in the unity

October 30, 2013 - 12:35am #4

If you have successfully implemented the tutorial "extending-unity-android-activity-and-adding-custom-views-eclipse", then it should only be a matter of creating and starting an Intent to start your WebViewActivity on top of the Unity one, and simply adding the WebViewActivity in your AndroidManifest.xml.

 

open a url in the unity

October 29, 2013 - 7:10pm #3

In fact, it is relevant, I am trying to open a web use a Android activity, but its AndroidManifest.xml has the same name with vuforia‘s AndroidManifest.xml  , it's conflicting, and I also tried to see the tutorial in  https://developer.vuforia production .com / resources / dev-guide / extending-unity-android-activity-and-adding-custom-views-eclipse, but I still do not know how to handle my custom WebViewActivity, please help me

open a url in the unity

October 29, 2013 - 4:26am #2

Try the Unity site for answers, as this is nothing to do with Vuforia.

N

Log in or register to post comments