WWW UnknownHostException

alt text

You are trying to load data from a www stream which has the following error when downloading.
java.net.UnknownHostException: Host is unresolved: www.j3gaming.com:80
UnityEngine.WWW:get_assestBundle()

This code works on the editor, but will not work when built to Android. I have a feeling I need to give the android app permissions so the app can access the internet. (android.permission.INTERNET), how can I do that from within unity?]

WWW www = new WWW("http://www.j3gaming.com/Downloads/" + objectname + ".unity3d");
yield return www;
currentObject = (GameObject)Instantiate(www.assetBundle.mainAsset);

haha, fixed my own problem:

  1. Make sure the android phone has wifi turned on (lol)
  2. Assets/Plugins/Android/AndroidManifest.xml is used exactly the same way as a Java/Eclipse project.

Handle this exception for if the user has wifi turned off or your host server is down.

http://answers.unity3d.com/questions/23006/crossdomainxml-policy-file.html