1

I want to connect to oracle database from android simple login I want use only Rest web service Json . I dont want to use PHP.

How can i do that Please give more examples! Thanks

3 Answers 3

2

In android, the latest way of making a network call is by using google's own volley library. But you will have to make a web service using PHP/Java and the easiest way to make a web service is by using PHP.

In your android studio you will just use the volley library and make a call to the webservice which will intern fetch data from the database and send you the response in the form of a JSON or your custom model class.

Below are the links that might help you:

  1. Using PHP
  2. Using JAVA
Sign up to request clarification or add additional context in comments.

3 Comments

Thanks Kaveesh. I will try to implement using java
Please can you do a example
I have done it in the same way as it is shown in the "Using PHP" link of my answer. It is very simple. Try it once and tell me where you are finding it difficult to understand the code. Also, you should have some basic knowledge of xampp or wampp control and mysql db. If you do not have xampp download it from here
1

To use the database you have to use the Web service, otherwise the security of your database will be lost. Here you can learn about web services in Java

Comments

0

I you wanna use AspNet, then I suggest you use AspNet Web API (samples can be found at Asp Net WebAPI) for server-side.

Android login sample: refer my answer at How to use security (Authentication & Authorization) in ASP Web Api

Hope this help!

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.