eclipse mobile tools for java project
DESCRIPTION
A presentation of the eclipse mobile tools for Java project. It brings mobile development into the eclipse platform.TRANSCRIPT
![Page 2: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/2.jpg)
2
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
Multi Device Support
Build Configuration
Preprocessing
Internationalization
Unit Testing
![Page 3: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/3.jpg)
3
Mobile Tools for Java Overview
![Page 4: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/4.jpg)
4
MTJ Overview Extend existing Eclipse platform to support mobile Java
application development
Integrates with most Software Development Kits (SDKs) available
MTJ does not ship any SDK, it is the device manufacturer's responsibility to distribute their SDKs
Vendor AJavaME SDK
Vendor BJavaME SDK
UEI
VendorProprietaryProtocol
SDKExtens.
MTJ
Eclipse PlatformJDT
![Page 5: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/5.jpg)
5
Mobile Tools for Java Overview
MIDlet Templates
![Page 6: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/6.jpg)
6
MIDlet Templates
Reduces the effort to create applications from scratch
Allows customizing templates without writing source code
Custom templates can be added to the environment
![Page 7: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/7.jpg)
7
MIDlet Templates
Basic Splash Screen ApplicationBasic Game Infrastructure
![Page 8: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/8.jpg)
8
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
![Page 9: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/9.jpg)
9
Application Packaging Resolves project dependencies
Packages third party libraries
![Page 10: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/10.jpg)
10
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
![Page 11: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/11.jpg)
11
Package Obfuscation
Proguard WebSite (http://proguard.sourceforge.net/)
MTJ integrates with proguard to provide obfuscation
ProGuard is an open source Java class file optimizer, obfuscator
Proguard must be downloaded separately from MTJ
![Page 12: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/12.jpg)
12
Demo Part 1 Import installed SDKs
Create a MIDlet Suite Project
Create a MIDlet from a template
Package application for deployment
Create an obfuscated package for deployment
Run/Debug Application
Part 1
![Page 13: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/13.jpg)
13
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
Multi Device Support
![Page 14: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/14.jpg)
14
Applications are developed for a wide range of devices
Device fragmentation problem affects mobile developers
MTJ allows developing applications for multiple target devices
Multi device configuration
![Page 15: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/15.jpg)
15
Multi device configuration
Every configuration has one associated device
Every configuration has it's own symbol set
Workspace level symbol sets (imported from device database)
![Page 16: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/16.jpg)
16
Multi device configuration
It is possible to package either one or all configurations
Every configuation is packaged on it's own folder under the deployed folder
![Page 17: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/17.jpg)
17
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
Multi Device Support
Build Configuration
![Page 18: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/18.jpg)
18
Build Configuration Every device configuration
requires a different set of resources
Customizing packages for different devices manually is very error prone
The build editor allows selecting which resources to package on each device configuration
![Page 19: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/19.jpg)
19
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
Multi Device Support
Build Configuration
Preprocessing
![Page 20: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/20.jpg)
20
Preprocessing Preprocessing is very usefull since mobile applications need to
target several devices
MTJ uses Antenna in order to provide preprocessing support
Antenna is another open source project. It can be dowloaded from (http://antenna.sourceforge.net/)
Antenna preprocessor defines
Preprocessor language
//#if ScreenWidth>100 && ScreenHeight>120 do something;//#else do something else;//#endif
![Page 21: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/21.jpg)
21
Preprocessing
Built in code assitant for preprocessing statements
All available statements are listed with brief descriptions
![Page 22: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/22.jpg)
22
Preprocessing
Built in code assitant for preprocessing symbols
● It is possible to define custom symbols
● Each symbol has
Name, Value, if active on active configuration
![Page 23: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/23.jpg)
23
Demo Part 2 Setup multi device
configuration
Setup build configuration
Enable preprocessing
Manage preprocessing symbol sets
Add preprocessing to our example
Build and package applications for all configurations
Part 2
![Page 24: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/24.jpg)
24
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
Multi Device Support
Build Configuration
Preprocessing
Internationalization
![Page 25: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/25.jpg)
25
Localization
Mobile applications are used all over the world
Localizing applications must not bring an overhead to the development process
![Page 26: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/26.jpg)
26
Localization Localization is
done through key/value pairs
Keys will have localized values for every locale desired
All keys defined are available to the application's code
![Page 27: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/27.jpg)
27
Localization A properties file is generated for
every locale configured
The L10nResources class is used to get the localized values
All localized keys are created within the L10nConstants class
![Page 28: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/28.jpg)
28
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
Multi Device Support
Build Configuration
Preprocessing
Internationalization
Unit Testing
![Page 29: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/29.jpg)
29
Unit Testing Every application needs to be tested in order to achieve quality
standards
The testing framework must be tightly integrated within the IDE
![Page 30: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/30.jpg)
30
Unit Testing Running/Debugging test
cases is as simple as running a MIDlet
The test results are exibited on the device's screen
It is possible to package the tests in order to run on a real device
![Page 31: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/31.jpg)
31
Demo Part 3● Setup localization
● Create localized resources
● Add localization into the application code
● Enable unit testing
● Create Unit Tests/ Suites
● Run Tests
Part 3
![Page 32: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/32.jpg)
32
Eclipse Pulsar Working Group
Mobile Tools for Java Overview
MIDlet Templates
Application Packaging
Package Obfuscation
Multi Device Support
Build Configuration
Preprocessing
Internationalization
Unit Testing
![Page 33: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/33.jpg)
33
Eclipse Pulsar Working Group Pulsar is an industry working group to promote collaboration
between mobile industry players
Pulsar early access package is available for download from eclipse website. (http://www.eclipse.org/pulsar)
First official release with Eclipse Galileo, the annual release of Eclipse projects on June 25th. (http://www.eclipse.org/galileo)
![Page 34: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/34.jpg)
34
Eclipse Pulsar Package
Tools integration platform for mobile development
Easy to install and update tools and SDKs
![Page 35: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/35.jpg)
35
Eclipse Pulsar Package
User Desktop Eclipse.org SDK Plugin Provider Server
Pulsar IDE Package
MTJ EclipseIDE
other
Download & Install
Pulsar Server
Discover SDKs Redirect toPulsar SDKPackage
![Page 36: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/36.jpg)
36
Open Source Community
Eclipse Pulsar Working Group
Mobile Tools for Java Overview
![Page 37: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/37.jpg)
37
How to participate As an open source project everyone is welcome to contribute
Send new ideas
Help with bug fixes
Propose new features
Join our test team
DSDP MTJ Web site: http://www.eclipse.org/dsdp/mtj
DSDP MTJ Wiki: http://wiki.eclipse.org/DSDP/MTJ
Newsgroup: news://news.eclipse.org/eclipse.dsdp.mtj
Developer List: http://dev.eclipse.org/mailman/listinfo/dsdpmtjdev
![Page 38: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/38.jpg)
38
Conclusions
MTJ provides several features in order to improve mobile Java development
It requires a very low learning curve since it follows Eclipse standards and everyone uses Eclipse :)
![Page 39: Eclipse Mobile Tools for Java Project](https://reader034.vdocuments.net/reader034/viewer/2022050920/54c7f1064a79592a7e8b458a/html5/thumbnails/39.jpg)
39
Questions