Abstract
In the last years the number of platforms has increased dramatically – especially in the mobile sector. Developing a native mobile application for each platform is costly. There are common approaches to develop within one code base for many platforms. So-called cross-platform-tools can help developers to decrease the effort of making platform specific versions. However, most of these tools are dealing with JavaScript and therefore an existing native application, which is written in Java, C# or Objective-C can hardly be reused. This paper shows an automated conversion of platform specific Android applications to platform independent Web applications by using the Google Web Toolkit (GWT). This converter provides code reusability of existing Android applications and platform independence. The converter uses the Eclipse Java Development Tools (JDT) for processing the source code. On the one hand, Android wrapper classes provide the API calls, which access internally GWT code or directly HTML5 features. On the other hand, source code, which does not fulfill the GWT’s requirements, is converted. A case study confirms that this converter can be easily applied to a range of Android applications for converting them to platform independent Web applications.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Android, http://www.android.com
Burnette, E.: Google Web Toolkit - Taking the pain out of Ajax. The Pragmatic Bookshelf, Dallas (2007)
Chaganti, P.: Google Web Toolkit. Packt, Birmingham (2007)
Corona, http://www.coronalabs.com
Dewsbury, R.: Google Web Toolkit Applications. Prentice Hall, Upper Saddle River (2007)
Dietrich P.: Cross-Application-Development (HTML5). Master thesis (2011)
Dwyer, J.: Pro Web 2.0 Application Development with GWT. Apress, New York (2008)
Emscripten, http://www.emscripten.org
Eranea, http://www.eranea.com
Geary, D., Gordon, R.: Google Web Toolkit Solutions - More Cool & Useful Stuff. Prentice Hall, Upper Saddle River (2007)
Gupta, V.: Accelerated GWT. Apress, New York (2008)
HTML5: Reference & Specification, http://www.html5rocks.com
IDC: Press Release (February 2013), www.idc.com
Java Development Tools: Reference & Specification, www.eclipse.org/jdt
Java2Script, j2s.sourceforge.net
JDT, www.eclipse.org/jdt/
J2ObjC, code.google.com/p/j2objc
Laemmel, R., Pek, E., Starek, J.: Large-scale, AST-based API-usage analysis of open-source Java projects. SAC (2011)
Lee R., Harikumar A., Chiang C., Yang H., Kim H., Kang B.: A framework for dynamically converting components to Web services. In: SERA (2005)
Li, X., Zhong, X.: The Source Code Plagiarism Detection using AST. In: IPTC (2010)
MoSync, http://www.mosync.com
Ohrt, J., Turau, V.: Cross-Platform Development Tools for Smartphone Applications. Computer (2012)
Pham, T., Truong, N., Nguyen, V.: Analyzing RBAC Security Policy of Implementation Using AST. In: KSE (2009)
PhoneGap, http://www.phonegap.com
Puder, A.: Extending desktop applications to the web. In: ISICT (2004)
RhoMobile, docs.rhomobile.com
Schneider, S.: Web-Apps als Zukunft der mobilen Anwendungsentwicklung. In: IFF (2011)
Sencha, http://www.sencha.com
Smutny, P.: Mobile development tools and cross-platform solutions. In: ICCC (2012)
Wang, X., Yuan, X.: Towards an AST-based Approach to Reverse Engineering. In: CCECE (2006)
Wimberger, C.: Source to Source Translator from C to Java and ActionScript. Master thesis (2012)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Klima, P., Selinger, S. (2013). Towards Platform Independence of Mobile Applications. In: Moreno-Díaz, R., Pichler, F., Quesada-Arencibia, A. (eds) Computer Aided Systems Theory - EUROCAST 2013. EUROCAST 2013. Lecture Notes in Computer Science, vol 8112. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-53862-9_56
Download citation
DOI: https://doi.org/10.1007/978-3-642-53862-9_56
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-53861-2
Online ISBN: 978-3-642-53862-9
eBook Packages: Computer ScienceComputer Science (R0)