Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Is there any difference between WAMP/LAMP? Or can I use the same approach?</strong></p> <p>Yes, there are differences - mostly related to networking and security. However, there's no reason the code in that tutorial wouldn't work Ubuntu. </p> <p>Firstly, are you running both the web server and database on the same Ubuntu machine? If so, you can leave the "localhost" entry - you need to specify an IP address if the web server and database are on different machines. If everything's on the same server, that just complicates matters, and breaks when your IP address changes. You should certainly not use a public IP address (like 81.<strong><em>.</em></strong>.<em>*</em>), because then your traffic from the web server may well get routed out on the internet to reach your database. </p> <p>Secondly, if PHPMyAdmin is running on the same server as your web app, there's no problem connecting from your web server to the database in principle.</p> <p>Thirdly, have you tried accessing the URLs in a browser to see if they are working? If that doesn't work, the app can't won't be able to access them either. The tutorial mentions <code>http://api.androidhive.info/android_connect/get_all_products.php</code> - presumably you've changed that to <code>http://IPAddressOfUbuntuServer/android_connect/get_all_products.php</code>. First see if you can access that URL (to get it to go, you should put your files in /var/www/android_connect) via a browser, and work out what's going on. Once that works, try accessing that in the browser on the Android device; if that works, the app should too. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload