Please enable JavaScript.
Coggle requires JavaScript to display documents.
PRM2 - Coggle Diagram
PRM2
Access Android Hardware
Sensor
- To find every Sensor available on the host platform or a particular type, use getSensorListon the Sensor Manager, passing in Sensor.TYPE_<Type>
- To find the default Sensor implementation for a given type, the
Sensor Manager’s getDefaultSensor method is used
Accelerometer: Is defined as the rate of change of velocity; that means accelerometers measure
how quickly the speed of the device is changing in a given direction
Gyroscope: Is used to measure angular speed around a given axis in radians per second,
using the same coordinate system as described for the acceleration sensor
Environmental sensors: Những yếu tố của môi trường anh hưởng đến hành vi của thiết bị(ví dụ như ánh sáng môi trường ảnh hưởng đến độ sáng của màn hình đt)
-
Bluetooth
- Is a communications protocol designed for short-range, low bandwidth peer-to-peer communications
- The Bluetooth APIs supports to search for, and connect to, other Bluetooth devices within range
Camera
- To take a picture from within the application is to fire an Intent using the MediaStore.ACTION_IMAGE_CAPTURE action:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
- Once users are satisfied with the image, the result is returned to your application within the Intent received by the onActivityResult handler
-
-
Sencha Touch
Anatomy of an app:
- Models: represent a type of data object in your app - for example an e-commerce app might have models for User, Product, and Order
- Views: are responsible for displaying data to your users and for leveraging the built-in components in Sencha Touch
- Controllers: handle interaction with your application, by listening for user interactions, such as taps and swipes, and taking action accordingly
- Stores: are responsible for loading data into your app and for powering components such as Lists and DataViews
- Profiles: enable you to easily customize your app’s UI for tablets and phones, while sharing as much code as possible
Sencha Touch
Basic syntax:
Ext.define(className, members, onClassCreated)
- className is the class name
- members is an object that represents a collection of class
members in key-value pairs
- onClassCreated is an optional function callback to be invoked
when all dependencies of this class are ready, and when the class itself is fully created
Ext.create('Ext.Panel',{
html: 'This is my panel'})
- Create component
- ext.Panel is to create a panel
- html: 'This is my panel' is to configure a panel(show content)
To show this panel on the screen now we can simply add it to the global Viewport:
Ext.Viewport.add(panel)
-
-
-