to implement the cross-platform UI for Android/iPhone, write with J2SE+CSS as here.
- please read and agree the license file "bcl.txt", "hc_license.txt" and "mpl_license.txt".
- download mobile client from https://github.com/javalovercn/client
- click "Demo" button in login form. (or input account : 012345,password : 012345)
- scan QRcode from mobile and download/load HAR (home archive) project on server, plug and play.
- the component HTMLMlet (codes above) will be translated to HTML5+JavaScript+CSS for Android/iPhone client on air, user inputs will be translated to J2SE Event and dispatch to their listeners.
- focus business/UI with J2SE/JavaScript+CSS technology.
- ScriptPanel is used to load and execute JavaScript on mobile client.
- code editor supports Java 8 API, Ruby 2.2.0 and CSS 2.2 (part) documents, hint of code and resource file(in user jar) will be auto completion.
- built-in Lucene, Quartz and HSQLDB, see API for more.
- mobile voice command API (let Android/iPhone recognize your voice) drives IoT and your business.
- family members or work group not only share the same service account, but also differentiate services based on the member ID.
- stratify IoT, Robot+Converter+Device(device is required to open source or provide API), provides powerful device adaptability and data format conversion.
- HAR project is self-signed and be upgraded automatically if the newer on web.
- a powerful tool for building your voice, mobility, automation, intelligence life.
- exception is automatically reported to Email or website if end user enable reporting exception.
- build-in SecurityManager limits project running in an optional, security computing and networking environment.
- because of "J2SE for Android", HAR can also run on Android server (code editor is not built in), and dex jar automatically.
- if unfamiliar with CSS or debug JavaScript, edit it by text editor you like and test with web browser first, no code editor of Server.
- the added jar library, must be full tested in Eclipse or Java IDE. (the jar libraries are isolated if in difference projects, and never conflict; if in same project, be careful with conflict of class name)
- to debug JRuby scripts and HAR, please with desktop server, not Android server. (Even if the target environment is Android server)
- if the target environment is Android server, it is required to test UI and listeners of HTMLMlet. (J2SE Swing is not full supported by Android server), edit in code editor of desktop server, and one-click to hot deploy to Android server if in local net. (code instantly, deploy instantly, test instantly)
- there are two servers at same time on above step, be careful, please use difference account when register; if conflict with account, please change it or verify account in error message dialog.
- to print logs, please use "ProjectContext.log()" and "ProjectContext.error()", the message will be added prefix "[YourProjectID]". For Android server, the log will be print to LogCat (the filter is regex, please add prefix "\" before chars "[]") , enable [option/developer/LogCat] on Android server is required.
- to see log in console of Eclipse, create Java project in Eclipse, add starter.jar from binary distribution, set Main class "starter.Starter", set VM arguments : "-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8", and disable [option/developer/Logger] of server.
- source files are HomeCenter application server, NOT client for mobile.
- JRE/JDK 7 or above is required.
- main class : hc.App
- VM arguments for main class : -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
- if fail on building, set [Compiler compliance level] of Eclipse to 1.7, NOT 1.8 or above.
- properties are encoded by UTF-8.
- keep the source codes for the newest, otherwise it may causes abnormal connection with mobile.
- the demo project (NOT "MyFirst") in designer, covers 80% of JRuby syntax and 90% of functions of HomeCenter server.
- for binary distribution.
- to host server on non-UI server.
- welcome any questions, open issues https://github.com/javalovercn/homecenter/issues or Email : help at homecenter.mobi