Mobile app development with YourApp

Source: Internet
Author: User
Tags in degrees

First, Introduction:

The YourApp is a program and module that runs on a smart device. It encapsulates some of the underlying operations of the device into a way that can be called by the JavaScript language, while the design and development of the interface is open to the user in the form of a web. The result is a combination of the underlying data manipulation and a flexible interface design approach.

The JavaScript language is a more popular programming language. It not only supports the development of front-end programs, but also supports the development of server and client through some good architectures. However, the JavaScript language usually only supports running in a browser. You can also run out of the browser by pre-installing a set of JavaScript architecture kits (such as PHONEGAP, etc.). But there needs to be a process of using learning.

The YourApp module provides the relevant API for the application interface, referred to as Aji, which is Access JavaScript Interface. This interface provides operations that the JavaScript language does not have permission to do and access to related devices.

The YourApp module is a program and also a container. It's a browser-based set of API interfaces that open relevant permissions and programs to JavaScript developers. In the YourApp module, developers can focus on the design and development of the front-end interface and application functionality without having to focus on the underlying operations and data acquisition of the device. The user can obtain the relevant sensor data or device operation simply by invoking a simple API interface. All display and interaction of the front end is done through an embedded browser.

YourApp is primarily for mobile device support, such as smartphones, tablets, and more. The current version supports the Android system. A list of specific support system versions can be found in Appendix I to the YourApp user manual .

Direct access through YourApp includes:

    • Get sensor data.

Most sensors that support mobile smart devices call the Aji interface to get sensor data directly.

Common sensor devices are:

Temperature sensor, azimuth sensor, magnetic sensor, acceleration sensor, light sensor, etc.

The specific supported sensor types are shown in Appendix two of the YourApp user manual .

    • Get location data.

The way mobile smart devices get locations involves using network signals to obtain location data and using GPS signals to obtain location data. The location data obtained is a string representing the position of the number, need to be combined with the electronic map display is more intuitive.

In Aji, the location data is not differentiated in any way. and the format of the position data output is output in the form of latitude and longitude, in degrees.

    • Call the smart device's camera.

Call the smart device's camera app in Aji for a variety of operations.

In some models of devices Aji provides direct call to the underlying camera operation, while some models provide the option to call the native camera app to operate.

    • Invoke the vibration component of the tracker.

For smartphones (vibration components exist in most smartphones).

The call to Aji controls the vibration of the vibrating component and also controls the duration of the vibration. A variety of vibration effects can be achieved by adjusting the frequency of vibrations.

Second, how to use:

1, login website or scan QR code to download and install the YourApp program:

Website: http://www.yourtechnic.com:7080/YourAPP/download.php

2, run YourApp, and register:

After you have just installed YourApp, you can see the following prompt:

You can sign in by clicking Login or register in the interface.

Or click the Login menu in the upper-right corner of YourApp to sign in.

Click Login to register

If you have any questions, you can contact them by email [email protected] . Click About to get contact information.

3, registration complete, login YourApp management application:

If the registration is complete, the current user and program status will be displayed after login.

The user state information that is displayed after logging in. After clicking the "Refresh app List" button, the user's application information is also displayed in the YourApp program.

The user uploads the application information as a list output, representing:

Name: Application names.

Size: Application sizes.

Modified Date: The last time the application was modified.

4. Download or delete the application:

Click on the app name to enter a detailed list of each app. You can download or delete applications.

is a click into the Sensor Application management interface

Click Download, you can download the selected app, click Deletion, you can delete the selected app.

and click the link go to the current app, can not download directly into the selected app.

5, create a new application:

1) Write a new application, using a front-end programming language such as JavaScript and HTML. You can call the Aji interface to get the data during the program writing process. The program can be run in browsers of various computers, and only the correct data is obtained by calling Aji in YourApp, and the analog data is obtained on other types of platforms (such as Ie,chrome and other desktop computers).

2) Compress the application and compress the program files and related resource files into the zip file format. The entry file name of the program needs to be the same as the compressed file name. If the entry filename is called sample.html, the compressed file name should be sample.zip.

3) Login to the Yourtechnic website to upload the application.

The website address is: http://www.yourtechnic.com:7080/login.php

Sign in with your registered email address after entering. Click the Add New app in the app management screen to go to the process of adding the program.

Log in to the Admin interface using your desktop browser

In App name, fill in the newly added app names. It is important to note that the app name needs to match the application's entry file name.

App name complete, click the Create New app button to enter the upload application interface.

A simple description of the app's functionality can be made in the Upload application interface (Description). You can also upload related applications.

is to upload the sensor application

4) Upload complete. Use the YourApp program to log in to the app management interface, download the new app and run it.

After the normal download, it will automatically jump to the newly downloaded program and run.

If you need to download another app, you can download it via login again.

Figure for sensor application

Third, the use of advanced:

The use of YourApp is easy to grasp.

The next step is to write your own application code, which is called to the Aji interface in your app. All code that needs to call into the Aji interface is written in the JavaScript language. The code needs to run in the YourApp framework to get real data and operations.

For more detailed YourApp user manuals please download the following link:

YourApp User manual V1.0

For an operation call method reference manual for Aji, the following links:

http://www.yourtechnic.com:7080/YourAPP/doc/index.php

Technology (yourtechnic) Blog: http://www.yourtechnic.com:7080

Technology (Yourtechnic) Contact information:[email protected]

Mobile app development with YourApp

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.