Sunday, July 8, 2012

mgwt - Going mobile with GWT & Phonegap

This post is part of a series of blogposts that show the usage of  some mgwt / gwt-phonegap components.

mgwt is a library for developing mobile apps and mobile websites with GWT from one code base. mgwt provides native looking widgets for many platforms, animations and many other things that are needed for writing mobile apps. gwt-phonegap enables GWT apps to use Phonegap. With Phonegap HTML5 apps can access the same device features that native apps can use from Javascript, such as the file system or contacts.
With mgwt and gwt-phonegap you can deploy your GWT apps into any app store or let your users use them as a website.
Both projects are available under apache 2.0 license from maven central.


Features
mgwt provides mobile widgets that are compatible with UIBinder and the Editor Framework. mgwt integrates touch events and animation events with its own DOM implementation and provides gesture recognizers on top of that.
There are themes for iPhone, iPad, android phones, android tablets and blackberry. For going offline there is an automatically generated HTML5 offline manifest.
In dev mode gwt-phonegap can emulate the Phonegap API so that developing of Phonegap apps can happen inside GWT dev mode. gwt-phonegap also provides utilities to make GWT RPC work in a Phonegap environment.

Performance
mgwt uses GWT core concepts like Client Bundles, deferred binding, GWT MVP and many more. mgwt tries to leverage GWT features as much as possible, enabling the GWT Compiler to do optimizations.
Mobile devices do have much slower CPUs, less bandwidth and are running on battery. Building inefficient apps means draining the users battery. Since GWT is very good at optimizing Javascript apps it is a natural fit for writing cross platform mobile apps.

mgwt leverages the GWT Compiler and HTML5 to get really good performance on mobile. Here are a few examples:

No Graphics
Most of the styling can be done only by using CSS3. This reduces apps size significantly. The following screenshots do not contain any images

.
[Image1 - Slider on iPhone]    [Image2 - Slider on Android]



Theming with Client Bundles
mgwt uses GWT Client Bundles for styling to ensure that unused CSS can be removed by the GWT Compiler.  This means e.g. if an app is not using the slider widget the CSS won`t be inside that app.

Going offline aka no download
Mobile devices are not always connected to the internet. Therefore mobile web apps need to be able to start while being offline. This can be achieved with the HTML5 offline manifest. The GWT compiler sees all artifacts during compilation. This is why mgwt can generate the manifest files for different permutations at compile time. This means that an android device will only download and store the necessary android files, while an iPhone sees a different manifest.

Minimal markup
Keeping your DOM minimal makes your apps run fast. mgwt tries to use as few DOM elements as possible, while doing styling in CSS.

Layout with the flexible box model
If layout feels fast the application feels fast. Therefore layout should not be done in Javascript,  CSS should be used instead. The browser can calculate and apply the layout in its native code which is going to be much faster than doing calculations in Javascript.
With HTML5 there is the flexible box model which is supported by all important mobile devices and can be used to achieve any layout that you need for mobile. mgwt uses the flexible box model heavily to build its layouts.

Animations with CSS3
For mobile applications it is quite common to have animations. If Javascript would be used for animating, the browser has no change to optimize. If you want fast animations you need to give the browser the knowledge of the whole animation, so that it can figure out a fast way to execute it. This can be done with CSS3 animations.
mgwt uses different kinds of CSS animations depending on the platform so that animations always feel fast.

Want to learn more? Checkout the mgwt homepage and the blog. There is also a 90 minutes talk on mgwt from the dutch GTUG.

52 comments:

  1. hi daniel kurka i need help ;i want to build a mapping client on android,so i will used mgwt and gwtphonegap,but i have no idea how to build a mapping client on mgwt ???? plzzzzzzzzzzzz i neeeeeeeeeeeeeed heeeeeeeeeeeeeelp

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. I am really impressed with the features and performance of mgwt. I have read this post in detail and get some points for assignment help. The description of animations with CSS3 is quite conveyed the brilliantly.

    ReplyDelete
  4. Take the time to evaluate the applications and plugins to determine what will best help you meet your needs. jimrohal.com

    ReplyDelete
  5. Those guidelines additionally worked to become a good way to
    recognize that other people online have the identical fervor like mine
    to grasp great deal more around this condition.

    Mobile Website Builder

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. The internet is a unique example it is constantly changing just like the big players, Twitter and Facebook are ever evolving, so too are websites, how they are delivered and how we access and interact with them. Web designers

    ReplyDelete
  8. The writer has written this blog in a very idiomatic manner.
    software development company in delhi

    ReplyDelete
  9. Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website the details so much information about different artists.
    visit here:- assignment help australia

    ReplyDelete
  10. I am really impressed with the features and performance of mgwt.
    assignment writing service

    ReplyDelete
  11. My Assignment Services is a well-established and prominent name in providing high-quality assignment help online to students since almost a decade. You can trust our academic ghostwriters completely to get best quality write-ups including case studies, research proposals, dissertations and theses, and more. It is the best Australian assignment Help.Students should always keep themselves ready to meet the university requirements in order to achieve good grades, moreover, they prefer attending lengthy classes instead of writing assignments. Students who are not comfortable with writing assignments can avail university do my assignment help at My Assignment Services comparatively low prices.

    ReplyDelete
  12. An unmatched and nonpareil post i have ever seen. The content is so appealing that it has created an impulse to avail Assignment Help Singapore services.

    ReplyDelete
  13. Hey, I am Olivia Crew as an “Academic Writer” in Livewebtutors. The above post has given reliable and genuine information about Assignment Help Australia. Looking forward to avail their eminent services.
    visit now:- my assignment help

    ReplyDelete
  14. Thanks for sharing such a nice piece of information to us. This is very knowledgeable for me. I am John and i am offering Assignment Help to students of Australia and all over the world.

    ReplyDelete
  15. Hey, I am olivia crew as an “Academic Writer” in Livewebtutors. The above post has given reliable and genuine information about Assignment Help Australia. Looking forward to avail their eminent services.
    visit now:- assignment help australia

    ReplyDelete
  16. I loved the article, keep updating interesting articles. I will be a regular reader… I am offering assignment help to students over the globe at a low price.
    I loved the article, keep updating interesting articles. I will be a regular reader… I am offering assignment help to students over the globe at a low price.

    ReplyDelete
  17. I found this one pretty fascinating and it should go into my collection. Very good work! I am Impressed. We appreciate that please keep going to write
    more content. We are the assignment helper, we provide services all over the globe. We are best in these services:-

    "Essay writing
    "
    "Essay Writer
    "
    "Article rewriter
    "
    "Essay writing service
    "
    "Essay writing help
    "
    "Write My Essay
    "
    "Write My Article
    "
    "Essay Helps
    "
    "Write my essay cheap
    "
    "Do my essay cheap
    "

    ReplyDelete
  18. I loved the article, keep updating interesting articles. I will be a regular reader… I am offering assignment help to students over the globe at a low price.
    "Assignment Help
    "
    "Assignment Helper
    "
    "Essay writing
    "
    "Essay writing service
    "
    "Dissertation help
    "
    "Thesis writing help
    "
    "Write My Essay
    "
    "Computer Science Assignment Help
    "
    "Assignment Help Soth Africa
    "
    "Assignment Writing Service
    "

    ReplyDelete
  19. Many of the people are depressed about the problems of essay writing. Well, don’t worry about that because we are providing this service at a very reasonable price.
    "Assignment help NZ
    "
    "Assignment help NZ
    "
    "Assignment help UK
    "
    "Assignment help US
    "
    "Assignment help Australia
    "
    "Assignment help Canada
    "
    "Assignment helper
    "
    "Assignment help
    "
    "Writing Assignment Help
    "
    "Help For Assignment
    "
    "Write my assignment help
    "

    ReplyDelete

  20. I loved the article, keep updating interesting articles. I will be a regular reader… I am offering assignment help to students over the globe at a low price.

    "Assignment Help
    "
    "Assignment Helper
    "
    "Essay writing
    "
    "Essay writing service
    "
    "Dissertation help
    "
    "Thesis writing help
    "
    "Write My Essay
    "
    "Do My Essay
    "
    "Hire Cheap Essay Writer
    "
    "College Essay Help
    "

    ReplyDelete
  21. Thank you for sharing the review! I'm looking for it! tik tok video

    ReplyDelete
  22. Thanks for this informative content. It’s really good. Actually, I want to share some thoughts and reviews about an assignment help Australia company in Australia and the brand name is SAMPLE ASSIGNMENT. Here, I am working as an Academic Expert. To look at our online academic assistants who provide reference assignment including Accounting, Management, Finance, IT, Economics, Computer Science, Nursing, Marketing; all Academic subjects to University Students all over the Australia or even worldwide, Here is a big online assignment help providers who help students to get HD grades according to assessment guidelines and instructions. Those who are searching for assignment help Melbourne, Perth, Brisbane, Adelaide etc. get a touch with Sample Assignment - the No.1 Assignment provider. Any student really wants to buy an assignment at the cheapest price goes to our branded website and has a look and opts our amazing and informative services, you can avail of our convenient online assignment help and samples available on our website for free. You can download it if you want. Are you ready to get 100 out of 100 in your university assessment? We assign the best writer according to the subject for your academic problems and provide support in assignment writing services. Our Customer Care Executives are available 24*7 hours to assist you in the best possible manner. Phone calls and emails are the best methods used by online assignment maker.

    ReplyDelete
  23. EssayCorp provide quality Assignment Writing Help. Our expert writers deliver quality assignments at an affordable price. We are available 24*7. For more details email us at contact@essaycorp.com
    Assignment help in Australia
    Management Assignment Help
    Dissertation Writing Services
    Thesis Writing Help
    Assignment Help in Australia

    ReplyDelete
  24. I loved the article, keep updating interesting articles. I will be a regular reader I am offering assignment help to students over the globe at a low price.
    Assignment help
    Assignment help
    Assignment help
    Python Programming Assignment
    Programming Assignment Experts
    Assignment help tutors
    Assignment help

    ReplyDelete
  25. Thanks for sharing this information. I have shared this link with other keep posting such information to provide best in class law assignment help online at very affordable prices.
    Assignment help
    Assignment help
    Assignment help
    Python Programming Assignment
    Programming Assignment Experts
    Assignment help tutors
    Assignment help

    ReplyDelete
  26. Some students have time lack. they have not able to complete the assignment. Then we have essay writing service assignment. we have provide affordable cost essay writing Just send an email info@uaeassignmenthelp.com

    ReplyDelete
  27. This post is a pool of information. The readers are quite impressed after reading this impressive post.
    This impressive post certainly encourages to choose Assignment Help Australia Services.
    You can email us at cs@Myassignmenthelpau.Com or Phone Number: +61-2-8005-8227

    ReplyDelete
  28. There are so many Online Assignment Help website to help you. It is important to choose the best one among the many. Before choosing the one go for that website reviews first and then check the website like their services, prices, discounts, website interface, and everything. Go through their samples that how they write so, you can understand the level of their experts.
    Programming Help

    ReplyDelete
  29. Get timely online assignments help from students assignment help. We provide full security of your data and plagiarism free services. You can hire our experts at lower then other agencies price.

    ReplyDelete
  30. We are proud of our best Australia Assignment Help by experts because of their dedication towards providing continuous support to students by helping them meet deadlines and scoring better grades. Hiring an expert to write your work is easy but hiring the RIGHT expert to get it done is a challenge. This is because there are a multitude of online Assignment Help services and picking the best is always going to be a trial and error method. In case of engineering and pure sciences, the data analysis’ initial three/four steps remain the same. We have some of the best singapore assignment help who have intensive knowledge of wide range of topics as discussed above and beyond. They feel completely pressurized. He starts disliking his school or college. But may come, he has to submit his assignment before the deadline, therefore he chooses to buy assignment services available to him. To help students complete their assignments Gotoassignmenthelp is here to serve them with the best assignment help.

    ReplyDelete

  31. We offer the best essay help and academic writing service in AUS, UK & USA. Hire native experts now & get FLAT 20% OFF on your first order.

    Writing academic documents is a task most students prefer to leave up to the subject matter experts. This is because most of them are complex and comprehensive, the research for which consumes a large portion of their valuable time. During higher studies in colleges, students often have to prepare multiple documents, quizzes and surprise tests. This is the main reason why most students search for essay help over the internet and choose only the most proficient and trusted academic writing experts.

    The increasing importance of writing essays has prompted students to take a helping hand from cheap essay writing service. During higher studies in colleges, students often have to prepare multiple documents, quizzes and surprise tests. This is the main reason why most students search for essay help Australia over the internet and choose only the most proficient and trusted academic writing experts.

    ReplyDelete
  32. This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here! Webdesign

    ReplyDelete
  33. This is my first visit in your blog,so i see in your blog post all information is very useful so thanks a lot for sharing this post. research paper writing help

    ReplyDelete
  34. Good work…unique site and interesting too… keep it up…looking forward for more updates.Good luck to all of you and thanks so much for your hard-work.Dissertation writing services

    ReplyDelete
  35. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Webdesign bureau

    ReplyDelete
  36. Universities all around the United States assign CPM homework to students, who lack the basic mathematical skills in elementary colleges. Get CPM Homework Help integrated 1 from Myassignmenthelp, in case you find any problem while solving the mathematical problems.

    ReplyDelete
  37. Nice article.keep it up. If you want any help related to assignment help.Online Assignment Help

    ReplyDelete
  38. Gotoassignmenthelp Service strives to meet the higher education standards of the university through the best quality assignments when you require Assignment Help. Assignments are written logically and all errors are corrected for a flawless finish in our assignment help service online. When you choose our Australian assignment help service, you need to think about the quality and your grades as well. On taking Gotoassignmenthelp service online from worldwide, We guarantee the original content and flawless work.. Professors of the reputed universities consider assignments to be the most efficient method to assess a students’ writing caliber along with their understanding of the course. Gotoassignmenthelp is the best marketing assignment help service provider in worldwide. Therefore, Gotoassignmenthelp provides online services like project management assignment, do my project management assignment, supply;chain management assignment help for students pursuing Bachelors’, Masters’, and Ph.D. Level studies in Australia, United States, United Kingdom, UAE, Singapore and worldwide.

    ReplyDelete
  39. Getting approval on Ignou Project is not an easy task for the students, specially those who are working. They don't get time to write their project. We help them as we have number of experienced specialist who help students in writing their project. We offer all course project and its solved assignment.

    ReplyDelete
  40. Want to give your business a kick-start? Wonder mouse technologies, India’s fastest growing website designing company in noida platform brings you unparalleled web development company in delhi, mobile app development, android app development services, that too in an affordable price quote. A group of young enthusiasts are here to cater for your success by providing all round business development help. Hundreds for well-tested strategies are implemented after measuring the current market for significant future growth.

    ReplyDelete
  41. Gotoessayhelp is a round the clock essay help service which caters solutions request to various subjects’ tools & methodology in a multi environment learning concept for the subjects like essay help online. We are a renowned service provider of essay assignment help and have been receiving an overwhelmed response globally.
    We offer plagiarism free, original content to our clients and facilitated are clients to grow their career by using the services of our proven Ph.D. experts, as we understand how important grades for students within their academic purview. u will experience a hassle-free service and top-class quality.

    ReplyDelete
  42. Impressive content. Looking for online assignment help at reasonable price? No worries! Student Assignment Help has some of the finest writers, who has years of expertise in writing assignment for university.

    ReplyDelete
  43. Do you need assignment helper in New Zealand? Students assignment help is offering the world's best assignment helpers on NZ assignment maker that will give you help in your assignment writing at your place with affordable price and unlimited free revisions.

    ReplyDelete