To make an apk, in your menu bar: Project >> Export Release Build.
All you have to do is move the PHP file from your local development computer to your webserver. Then it is ready for production, that is all you have to do. If you plug in your phone and Project >> Export Release Build, it will run exactly the same (if you are connected to your wifi) as it does in the video.
I understand, but what about the client-server communication? The tablet makes requests to the Apache web server? I have not found where to configure it ...
@gabrielgpp I'm sry but I don't understand the question. Tablet's communicate just like phones or even laptops and computers. As far as Apache, you do have to have an *AMP stack running. ie Apache, mySQL, and PHP. The communication is done with PHP in this example. All this example does it takes a url to a php page. ie the URLRequest in views.MainLoginView.mxml is where you put a url to your server.
Great tutorial....is there anyway you can continue by doing the successview showing information being retrieved from a different table of same database? e.g. showing first name, middle, last, etc.
@crosbymichaela okay, I see that you sell tutorials. If it will help, if you could create a tutorial on what i asked for, i wouldnt mind paying for it. I also may need to see examples on how to insert and update to if you decide to do it. Keep up the good work
@batista603 So I think I will do a check in app for the tutorial. It' would have a signup, you could check in your GPS location, add friends and view their location and information. Remove friends(all this data is stored in mySQL). So that would cover more views, adding, updating, deleting data from mySQL. And interacting with all the views. I will charge some money for it because this is alot of code I have to write, but it will be close to an hour video and you get all php and mobilecode
Okay, cool. One more thing, for some reason, when I try to access the database, I'm getting denied. I have been up and down this php code the whole time and I think I changed everything. I'm using xampp to do this.
okay, so lets say I created multiple tables in a database that has a relationship to the username and password that displays for example his location like city,state, etc., do I have to create another select.php like you created.
@batista603 Not sure I understand what you want. After a successful login, you just push to another view, your home view, and get user data from the database and have PHP echo it out.
the video is not clear.. please put up a clear video
shabkct 2 weeks ago
To make an apk, in your menu bar: Project >> Export Release Build.
All you have to do is move the PHP file from your local development computer to your webserver. Then it is ready for production, that is all you have to do. If you plug in your phone and Project >> Export Release Build, it will run exactly the same (if you are connected to your wifi) as it does in the video.
crosbymichaela 7 months ago
I was talking about generating an Android application (. Apk) with PHP backend, but so far not seen any video or tutorial showing it.
gabrielgpp 7 months ago
I understand, but what about the client-server communication? The tablet makes requests to the Apache web server? I have not found where to configure it ...
gabrielgpp 7 months ago
@gabrielgpp I'm sry but I don't understand the question. Tablet's communicate just like phones or even laptops and computers. As far as Apache, you do have to have an *AMP stack running. ie Apache, mySQL, and PHP. The communication is done with PHP in this example. All this example does it takes a url to a php page. ie the URLRequest in views.MainLoginView.mxml is where you put a url to your server.
crosbymichaela 7 months ago
If you want more info, I have an hour long tutorial for $7. I posted the link in the video description, I can't post links in youtube comments.
crosbymichaela 7 months ago
Thank you @ crosbymichaela.
This tutorial helped me a lot, good job. People like you make a smarter world.
thanks
Pedro
pedroalexm1979 7 months ago
Great tutorial....is there anyway you can continue by doing the successview showing information being retrieved from a different table of same database? e.g. showing first name, middle, last, etc.
batista603 7 months ago
@batista603 If I have time....
crosbymichaela 7 months ago
@crosbymichaela okay, I see that you sell tutorials. If it will help, if you could create a tutorial on what i asked for, i wouldnt mind paying for it. I also may need to see examples on how to insert and update to if you decide to do it. Keep up the good work
batista603 7 months ago
@batista603 So I think I will do a check in app for the tutorial. It' would have a signup, you could check in your GPS location, add friends and view their location and information. Remove friends(all this data is stored in mySQL). So that would cover more views, adding, updating, deleting data from mySQL. And interacting with all the views. I will charge some money for it because this is alot of code I have to write, but it will be close to an hour video and you get all php and mobilecode
crosbymichaela 7 months ago
@crosbymichaela Sounds good, just let me know when its posted.
batista603 7 months ago
@crosbymichaela hows the app coming along?
batista603 7 months ago
hello, this application could run on a tablet true? What are the changes to be made?
gabrielgpp 7 months ago
@gabrielgpp It can run on a tablet as is. But you should do UI changes for tablets. All underlying code stays the same.
crosbymichaela 7 months ago
if ( !mysql_select_db("$dbname")) die("Could Not Open Database");
batista603 7 months ago
I wouldnt let me send the rest
batista603 7 months ago
Okay, cool. One more thing, for some reason, when I try to access the database, I'm getting denied. I have been up and down this php code the whole time and I think I changed everything. I'm using xampp to do this.
batista603 7 months ago
@batista603 i don't know xampp. If you are on windows try:
wampserver . com
Linux:
install tasksel
then lamp
crosbymichaela 7 months ago
@crosbymichaela I still can't connect using your code, but I can connect with this code:
<?php
$dbuser = 'root';
$dbhost = 'localhost';
$dbpass = 'ats603';
$dbname = 'usalogin';
$dbtble = 'credentials';
if ( !($mssql_link = mysql_connect("$dbhost","$dbuser","$dbpass"))) die("Could Not Connect to Database");
batista603 7 months ago
okay, so lets say I created multiple tables in a database that has a relationship to the username and password that displays for example his location like city,state, etc., do I have to create another select.php like you created.
batista603 7 months ago
@batista603 Ya, you just make another select statement and echo out the results.
crosbymichaela 7 months ago
Great tutorial. I have a question, if I wanted to have a home screen that will provide information based on login, how would I go about doing that?
batista603 7 months ago
@batista603 Not sure I understand what you want. After a successful login, you just push to another view, your home view, and get user data from the database and have PHP echo it out.
crosbymichaela 7 months ago
Brilliant thanks just what I needed thanks so much :)
fizzy6868 8 months ago