-2

I almost finished my RESTful API. I created the API with PHP and using SLIM Framework.

And for the last step, I should consume the RESTful API that I've created before on Android application.

I've some question to ask.

  1. Is it possible to use the RESTful API that I made with SLIM and PHP in Android Application ?
  2. If the answer is 'YES', is there a framework or library can be used ?

Thanks before :)

Lazy Guy
  • 101
  • 2
  • 14
  • possible duplicate of [Android REST client, Sample?](http://stackoverflow.com/questions/8267928/android-rest-client-sample) – flob Nov 11 '14 at 15:41
  • I don't get it. why would it matter for your android application in what language you built your REST service? – wvdz Nov 11 '14 at 15:42
  • You might want to do a simple web search for 'Android rest client` and will find a nice [spring tutorial](http://spring.io/guides/gs/consuming-rest-android/) and at least one [good answer](http://stackoverflow.com/a/8697827/510711) – flob Nov 11 '14 at 15:43
  • flob : I just search for my answers, most of all question I read before didn't answer my question.. sorry.. but thanks :) – Lazy Guy Nov 11 '14 at 15:44
  • @popovits : haha I know, I just feel scared for the RESTful API that I created before can't be compatible with android app, sorry – Lazy Guy Nov 11 '14 at 15:46

3 Answers3

0

You might want to take one of:

(Take a look at the original answer where I took most of the list from)

Community
  • 1
  • 1
flob
  • 3,760
  • 2
  • 34
  • 57
0

Yes, is possible. RESTful API is the same regardless of the language used. Just make sure that's work correctly using HTTP methods. Check this tutorial http://spring.io/guides/gs/consuming-rest-android/

crespitowil
  • 55
  • 1
  • 5
0

I recomend use https://github.com/loopj/android-async-http For me it's best android rest client library

smail2133
  • 936
  • 2
  • 7
  • 24