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 /
This question was closed Dec 23, 2016 at 07:36 PM by Bunny83 for the following reason:

Problem is not reproducible or outdated

avatar image
0
Question by pippo19 · Sep 28, 2014 at 03:49 AM · androiddatabaseonlinemysqlphp

Android Mysql Database online

Hi all, i make a connection from Unity project and Database in Altervista, in pc, inside a Unity or pc application it work, but if i build apk and run it on my device, it can't connect to the server.

I use WWW form and PHP command.

I have include System.Data and MySql.Data.MySqlClient libraries.

what i do wrong?

Comment
Add comment · Show 1
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 pippo19 · Sep 29, 2014 at 07:04 PM 0
Share

I also have this:

3 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by MakeCodeNow · Sep 28, 2014 at 04:40 AM

You probably need to enable network permissions for your android apk. Android apps require that the app request and that the user grant permission for each device feature like network access, sd card access, camera access, etc.

Comment
Add comment · Show 9 · 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 pippo19 · Sep 28, 2014 at 08:21 AM 0
Share

alt text

do you mean this?

i set it on Require

senza nome2.png (29.4 kB)
avatar image MakeCodeNow · Sep 28, 2014 at 04:48 PM 0
Share

Ok. That looks good. Do you have a custom manifest.xml file? If so it overwrites those settings. Also, do you added any debug logging or looked at the included logs? That's the next step to figure out why it's not connecting. Learn how to use LogCat in the Android Dev Env if you haven't already.

avatar image pippo19 · Sep 29, 2014 at 12:20 PM 0
Share

in androidmanifest i have this permission:

 <uses-permission android:name="android.permission.ACCESS_NETWOR$$anonymous$$_STATE"/>
 <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
avatar image pippo19 · Sep 29, 2014 at 12:22 PM 0
Share

in my mobile, the WWW returns this error:

java.net.malformedurlexception protocol not found

avatar image MakeCodeNow · Sep 30, 2014 at 03:14 AM 0
Share

What is the URL that you are using? $$anonymous$$aybe you have a malformed URL that somehow works on PC but not on device.

Show more comments
avatar image
0

Answer by stultitia1 · Jan 26, 2016 at 12:25 PM

Hi, I have the same problem. I have a database in digital ocean and I can insert or read the data. If I press play the scene run perfectly. But when I swhitch platform to Android, show me in all my scripts the error: BCE0005: Unknown Identifier: 'variable_name'. Please, can you help me?

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 PaLmCivetMenace · Dec 23, 2016 at 04:30 PM

Dude see if you have the full address with such as with "https://" in the beginning Although it works on pc without the full address it doesnt work so on mobile. I had the same problem.But with the full address it worked on android too. Hopefully you found an answer here

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

Follow this Question

Answers Answers and Comments

7 People are following this question.

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

Related Questions

How can i connect my unity app made for android to connect with mysql database?,How do i able to make my android app made from Unity connect to Mysql database 0 Answers

Saving Database from server to local and read from there (android) 0 Answers

Unity to PHP/MySQL: password and username security 1 Answer

Javascript with php 1 Answer

Saving a leaderboard using PHP and C#. 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