2

Ok, so I am very new to android but I have some experience with PHP. I have a website for my college festival where there is a login system and registered users can take the quiz everything.( I am using Codeigniter as my PHP framework Now I have been asked to make an android app for the festival. So , my question is , How do I connect my android application to the stuff on my website.

For example: I have a login system on my website and I want to reflect the same functionality in my android app i.e How to send the username and password to be authenticated and how the request will be processed on the server side? How do I connect my android application to my database ?

Can anyone please point me in the right direction. Thank you very much.

P.S : Yes, I get that I can very easily just make a mobile version of the website as suggested by many people. But since I want to learn Android, I think this would be a good opportunity for me to do so.

3
  • 2
    um...or just add a mobile css for the site? don't see how this applied to an application Commented Jan 12, 2012 at 17:23
  • Yes I know. I can very easily do that. But I want to learn Android, so I thought this would be a good opportunity for me to do so. Commented Jan 12, 2012 at 17:50
  • 1
    If you want to learn how to create apps for the Android platform, then here are some basic tutorils to get you started. vogella.de/android.html and vogella.de/java.html Commented Jan 12, 2012 at 18:02

1 Answer 1

1

You may write a service using PHP which takes required parameters and responds with JSON Object response. In your app you can use HTTPClient and JSonObject to parse the response and populate the app. Here is a sample on how to do Android PHP MySQL example

If you don't need native mobile APP, then as other members suggested, you may add mobile css to your existing site.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.