Using Play framework as the backend for an Android application

674 views
Skip to first unread message

n17...@gmail.com

unread,
Sep 9, 2014, 12:25:11 PM9/9/14
to play-fr...@googlegroups.com
Hi,

I am new to Play framework. I am trying to use it as the backend for my Android application. Can you please tell me if there is an example with an Android application?

I check with https://www.playframework.com/documentation/2.0/Samples, but I only find an example iOS example.

Thank you.

stefaan luckermans

unread,
Sep 9, 2014, 2:08:46 PM9/9/14
to play-fr...@googlegroups.com
Why not use bootstrap with a responsive theme. That will work on tablets and smartphones, android or iOS …

We are using Bootstrap 3 and AngularJs and Play Java

Works like a charm


Thaste IT
Stefaan Luckermans
Gasthuisvest 30
2500 Lier

tel: 03 283 83 53
fax: 03 283 83 54
cell phone: 0472 103 204

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

n17...@gmail.com

unread,
Sep 9, 2014, 6:28:04 PM9/9/14
to play-fr...@googlegroups.com
Thanks. I looked into Bootstrap and Angular JS. Both of them are Javascript library.

I am looking for a java backend to work with my native Android client. I don't use web browser on android to display information to user. I am working on an native Android application.

sachin walia

unread,
Sep 9, 2014, 8:28:57 PM9/9/14
to play-fr...@googlegroups.com
I believe you'll be using REST webservice for your Android app to communicate with backend. That should be fairly straightforward. Download the latest activator and you can probably start with the following template:


All you need to do is create controllers that'll handle your REST endpoints.

Matt Daniels

unread,
Sep 10, 2014, 1:01:48 AM9/10/14
to play-fr...@googlegroups.com
Hi

The sample to which you are referring is not a specific iOS example, it's showing an image of the Play app running on an iPhone to indicate that the app renders views which work a mobile. It's not a native iOSapp.

As above, the best way to implement it is to write a RESTful API in Play which your native Android app calls by means of HTTP requests.  I am writing such an app at the moment - I can recommend James Smith's Async HTTP Library for Android for the Android side of the comms.

Myrosia Dzikovska

unread,
Sep 10, 2014, 3:23:23 PM9/10/14
to play-fr...@googlegroups.com
We are working on something similar right now. We need an app that will have a web version and an installable android version. We decided to try Bootstrap for layout and GUI, and just show the generated pages in WebView. In the first instance, it worked out fine, though we are in early stages - investigating how to make native Android logins and menus.

Myrosia
Reply all
Reply to author
Forward
0 new messages