• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Using AppEngine for Mobile Apps
 

Using AppEngine for Mobile Apps

on

  • 6,723 views

This presentation slides is for SG GTUG 4th meetup on 17 April 2010....

This presentation slides is for SG GTUG 4th meetup on 17 April 2010.

In this presentation, I shared my personal experience in using AppEngine (Java) for my mobile application developments. I used SG 4D, one of my most popular Singapore app, as an example.

Topics covered including datamining, cron jobs, JDO, Restlet and Gson.

Statistics

Views

Total Views
6,723
Views on SlideShare
6,645
Embed Views
78

Actions

Likes
5
Downloads
0
Comments
2

5 Embeds 78

http://www.just2me.com 50
http://www.slideshare.net 22
http://ad-seo.appspot.com 4
http://www.linkedin.com 1
https://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

12 of 2 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Super-fast real-time parser for real-world HTML

Using AppEngine for Mobile Apps Using AppEngine for Mobile Apps Presentation Transcript

  • GAE for Mobile Apps
    How i use Google’s App Engine for my mobile apps
  • About Myself
    Name: Junda (JD)
    Blog: Just2me.com
    twitter: @samwize
    Mobile lead, Hoiio
    Bio: Codes for iPhone, Android, BlackBerry & J2ME
  • Hoiio, a smarter app to call & SMS
  • My hobby apps..
    SG Toto
    SG 4D
    SG Pools
    How iuse App Enginefor my mobile apps
    SG Blood
    txeet
    SG Wireless
    Flowers
  • Overview of Topics
    What I want to develop?
    What backend server to use?
    How to datamine?
    How to store & retrieve?
    How to create API?
    How to use the API?
  • 1. What I want to develop?
  • Features
    Get latest results
    Get past results
    Analyze numbers
    A server-client application
  • 2. What backend server to use?
  • Things I have tried..
    ✘ Run little server in school
    ✘ Get a shared webhost
    ✘ Get a VPS account
  • Google App Engine
    ✔ App Engine for Java was launched in April 2009
    ✔ Scalable
    ✔ Multiple versions
    ✔ Easy to deploy
    ✔ FREE
  • 3. How to datamine?
  • 3. How to datamine?
    HTML Parser
    Setup Cron job
  • Code > HTML Parser
  • Code > Setup cron.xml
  • 4. How to store and retrieve?
  • 4. How to store & retrieve?
    Java Data Objects (JDO)
    Or Java Persistence API (JPA)
    A collection of real-world examples
  • Code > Memcache, JDO Query
  • Pitfalls of Datastore
    pm.close() – changes are only saved when PersistenceManager is closed!
    You cannot use inequality filters on more than 1 property! Eg. (x > 0 ANDy > 0) is illegal
    If you use an inequality filter, then that property MUST be sorted before others!
    Restrictions on queries and unsupported features of JDO and more..
  • 5. How to create API?
  • 5. How to create API?
    Restlet for GAE
    Download GAE version
    Setup Restlet in web.xml
    Attach the route eg. /4d
    Create ServerResource, implement @Get represent() and return JSON string
  • Code > Setup Restlet in web.xml
  • Code > Setup Restlet routes
  • Code > Implement a Restlet resource
  • 5. How to create API?
    API to return JSON format
    Gson – Converts Java Objects to JSON string, and vice versa
  • Code > Gson
  • 6. How to use the API?
  • 6. How to use the API?
    HTTP GET from the service URL
    Use Gson, or other JSON library
    Display on the client!
  • This is the last slide!