Skip to Content
Building Mobile Applications with Java
book

Building Mobile Applications with Java

by Joshua Marinacci
March 2012
Intermediate to advanced
82 pages
2h 4m
English
O'Reilly Media, Inc.
Content preview from Building Mobile Applications with Java

Chapter 5. Building a Pure Mobile App with GWT Mobile UI

So far we have used GWT to build a standard desktop web app then optimized it for mobile using CSS tricks. This approach will work for many projects, especially if you are repurposing existing content. However, if you want to make an app that really feels native then you need something more.

Native mobile apps typically have touch centric controls like scrolling lists, large buttons, navigation tabs, and animated screen to screen transitions. We could build these from scratch in GWT by using a lot of hand written CSS and Java code, but why do that when there are already great libraries out there which will do the job for us. For the next project we will use one such library: GWT Mobile UI.

GWT Mobile UI is an open source collection of GWT widgets specifically designed for mobile devices. It has input widgets (buttons and sliders) as well as different panels for mobile style layouts. It also has a nice framework for animated transitions from one screen to the next. With this framework in our toolkit we can create a mobile app that feels completely native without having to reinvent the wheel.

For this project I’m going to build an app I’ve always wanted: a wine journal. My wife and I love to try different wines but I always forget which ones we liked and where we drank them. I own a paper wine journal but I always forget to bring it with me when we go out to eat. Sounds like a job for a mobile app.

Designing the Wine Journal

Before ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Learn Java for Android Development: Migrating Java SE Programming Skills to Mobile Development

Learn Java for Android Development: Migrating Java SE Programming Skills to Mobile Development

Peter Späth, Jeff Friesen

Publisher Resources

ISBN: 9781449312718Errata Page