CN106230696A - Based on android system shaking robs visitor's method - Google Patents
Based on android system shaking robs visitor's method Download PDFInfo
- Publication number
- CN106230696A CN106230696A CN201610625762.XA CN201610625762A CN106230696A CN 106230696 A CN106230696 A CN 106230696A CN 201610625762 A CN201610625762 A CN 201610625762A CN 106230696 A CN106230696 A CN 106230696A
- Authority
- CN
- China
- Prior art keywords
- visitor
- android
- robs
- customer data
- sensor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present invention discloses a kind of based on android system shaking and robs visitor's method, including: in the inventory configuration file AndroidManifest.xml of android system, apply for gravity sensor authority;Obtain acceleration sensor AcelerateSensor;Registration acceleration sensor audiomonitor;Call and shake call back function;Android device sends to background server and robs visitor's request;Customer data is pushed to Android device by background server.By detecting the state of mobile phone, when mobile phone shakes, to the purchase of property, consultant distributes common customer, purchase of property consultant is by using mobile phone to shake and can start to rob visitor, and it is the most novel to rob visitor's mode, only need to shake, purchase of property consultant can be shaken by mobile phone and i.e. can reach the purpose robbing visitor, and success rate is greatly improved, save time and human cost, improve purchase of property consultant and rob the experience of visitor.
Description
Technical field
The invention belongs to the technical field of mobile communication, particularly relate to a kind of based on android system shake
Rob visitor's method.
Background technology
In the past, the purchase of property consultant of property developer found the mode of client and distributed leaflets, and phone is invited, these modes
Not only take time and effort, and success rate is extremely low, also have some by directly registration, or the method for registration finds visitor on platform
Source, equally exists time-consuming long, inefficient problem.
There is the method that common customer resource is distributed on some backstages automatically on market, but there is distribution inequality, duplicate allocation
Technical problem, and distribution method is single, the most dull, does not also have what new meaning for purchase of property consultant, easily occurs being sick of
Emotion.
Summary of the invention
For solving above-mentioned technical problem, the present invention provides a kind of based on android system shaking to rob visitor's method.In order to
Some aspects of the embodiment disclosed there are is a basic understanding, shown below is simple summary.This summarized section is not
Extensive overview, is not key/critical component to be determined or the protection domain describing these embodiments.Its sole purpose is
Some concepts are presented, in this, as the preamble of following detailed description by simple form.
The present invention adopts the following technical scheme that
In some optional embodiments, it is provided that based on android system shaking robs visitor's method, including:
Gravity sensor authority is applied in the inventory configuration file AndroidManifest.xml of android system;
Obtain the sensor manager SensorManager of android system;
Acceleration sensor AcelerateSensor is obtained by described sensor manager SensorManager;
Registration acceleration sensor audiomonitor, in real time monitoring Android device internal sensor, by the described acceleration sensing arranged
Device audiomonitor transmits the value that changes of described Android device internal sensor, described in the value that changes refer to described
The value of the XYZ axle of Android device internal sensor;
Obtain the value of XYZ axle and calculate and shake threshold value, if described in shake threshold value more than 2000, then call and shake back
Letter of transfer number;
Android device jingle bell also shakes, and robs visitor's request by HTTP to background server transmission simultaneously;
Described background server receive described Android device send rob visitor request after, from common customer resource obtain
Customer data, and described customer data is pushed to described Android device.
In some optional embodiments, described based on android system shaking robs visitor's method, also includes: institute
State Android device receive described customer data and carry out data parsing, the customer data being parsed is passed to data mould
Type, completes the loading of customer data, is shown by customer data.
In some optional embodiments, described customer data includes: head portrait, and the pet name is with, sex and contact method.
The beneficial effect that the present invention is brought: by detecting the state of mobile phone, when mobile phone shakes, distributes to purchase of property consultant
Common customer, purchase of property consultant is by using mobile phone to shake and can start to rob visitor, and it is the most novel to rob visitor's mode, only need to shake i.e.
Can, purchase of property consultant can be shaken by mobile phone and i.e. can reach the purpose robbing visitor, and success rate is greatly improved, during saving
Between and human cost, improve purchase of property consultant rob visitor experience.
For above-mentioned and relevant purpose, one or more embodiments include will be explained in below and in claim
In the feature that particularly points out.Description below and accompanying drawing describe some illustrative aspects in detail, and its instruction is only
Some modes in the utilizable various modes of principle of each embodiment.Other benefit and novel features will along with under
The detailed description in face is considered in conjunction with the accompanying and becomes obvious, the disclosed embodiments be intended to include all these aspect and they
Equivalent.
Accompanying drawing explanation
Fig. 1 be the present invention a kind of based on android system shake rob visitor method schematic flow sheet.
Detailed description of the invention
The following description and drawings illustrate specific embodiments of the present invention fully, to enable those skilled in the art to
Put into practice them.Other embodiments can include structure, logic, electric, process and other change.Embodiment
Only represent possible change.Unless explicitly requested, otherwise individually components and functionality is optional, and the order operated is permissible
Change.The part of some embodiments and feature can be included in or replace part and the feature of other embodiments.This
The scope of bright embodiment includes the gamut of claims, and all obtainable equivalent of claims
Thing.
As it is shown in figure 1, in some illustrative embodiments, it is provided that a kind of based on android system shaking robs visitor
Method, including:
101: in the inventory configuration file AndroidManifest.xml of android system, apply for gravity sensor authority.
102: obtain the sensor manager SensorManager of android system.
103: obtain acceleration sensor AcelerateSensor by described sensor manager SensorManager.
104: registration acceleration sensor audiomonitor, in real time monitoring Android device internal sensor, described in arranging
Acceleration sensor audiomonitor transmits the value that changes of described Android device internal sensor, described in the value that changes be
Refer to the value of the XYZ axle of described Android device internal sensor.
When so mobile phone hardware detects and is moved or rotates, it is possible to by the acceleration sensor audiomonitor arranged
The value that transmission changes, in order to next step operation.
105: obtain the value of XYZ axle and calculate and shake threshold value, if described in shake threshold value more than 2000, then call
Shake call back function.
This shakes the commonsense method that call back function is oneself definition, as follows:
int sensorType = event.sensor.getType();
//values [0]: X-axis, values [1]: Y-axis, values [2]: Z axis
float[] values = event.values;
float x = values[0];
float y = values[1];
float z = values[2];
if(sensorType == Sensor.TYPE_ACCELEROMETER){
int value = 15;// shaking threshold values, the maximum that different mobile phones can reach is different, as certain brand mobile phone can only reach
To 20
if(x >= value || x <= -value || y >= value || y <= -value || z >= value |
| z <= -value){
Log.i (TAG, " shake being detected ");
// trigger and shake method
}
}。
106:Android equipment jingle bell also shakes, and robs visitor's request by HTTP to background server transmission simultaneously;
107: described background server receive described Android device send rob visitor request after, from common customer resource
Obtain customer data, and described customer data is pushed to described Android device.
108: described Android device receives described customer data and carries out data parsing, the client's number that will be parsed
According to passing to data model, complete the loading of customer data, customer data is shown.
So this shakes and robs passenger flow journey and terminate, and just may be used after having the countdown of 10 minutes, 10 minutes on interface simultaneously
Passenger flow journey is robbed to start to shake next time.
In some illustrative embodiments, described customer data includes: head portrait, and the pet name is with, sex and contact method.
Compared with prior art, the technical scheme proposed by the application embodiment of the present invention is to realize based on software
, there is substantial amounts of customer data on backstage, and purchase of property consultant can be shaken by mobile phone and i.e. can reach the purpose robbing visitor, and becomes
Power is greatly improved, and the object of robbing improving Vocational Counselor is tested.
When user enters and robs visitor interface, detection " shaking " gesture is opened, and as its first respondent, in order to
When user uses " shaking ", this is robbed visitor's function and produces response immediately, if robbing visitor's requirement when user meets, shakes end
Rear background server returns customer data.
It should also be appreciated by one skilled in the art that various illustrative box, the mould combining the embodiments herein and describing
Block, circuit and algorithm steps all can be implemented as electronic hardware, computer software or a combination thereof.In order to clearly demonstrate hardware and
Interchangeability between software, is all carried out around its function various illustrative parts, frame, module, circuit and step above
It is generally described.It is implemented as hardware as this function and is also implemented as software, depend on specifically applying and to whole
The design constraint that system is applied.Those skilled in the art can realize in the way of flexible for each application-specific
Described function, but, this realize decision-making and should not be construed as the protection domain deviating from the disclosure.
Claims (3)
1. based on android system shaking robs visitor's method, it is characterised in that including:
Gravity sensor authority is applied in the inventory configuration file AndroidManifest.xml of android system;
Obtain the sensor manager SensorManager of android system;
Acceleration sensor AcelerateSensor is obtained by described sensor manager SensorManager;
Registration acceleration sensor audiomonitor, in real time monitoring Android device internal sensor, by the described acceleration sensing arranged
Device audiomonitor transmits the value that changes of described Android device internal sensor, described in the value that changes refer to described
The value of the XYZ axle of Android device internal sensor;
Obtain the value of XYZ axle and calculate and shake threshold value, if described in shake threshold value more than 2000, then call and shake back
Letter of transfer number;
Android device jingle bell also shakes, and robs visitor's request by HTTP to background server transmission simultaneously;
Described background server receive described Android device send rob visitor request after, from common customer resource obtain
Customer data, and described customer data is pushed to described Android device.
Based on android system shaking the most according to claim 1 robs visitor's method, it is characterised in that also include:
Described Android device receives described customer data and carries out data parsing, is passed to by the customer data being parsed
Data model, completes the loading of customer data, is shown by customer data.
Based on android system shaking the most according to claim 1 robs visitor's method, it is characterised in that described client
Data include: head portrait, the pet name, sex and contact method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610625762.XA CN106230696A (en) | 2016-08-03 | 2016-08-03 | Based on android system shaking robs visitor's method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610625762.XA CN106230696A (en) | 2016-08-03 | 2016-08-03 | Based on android system shaking robs visitor's method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106230696A true CN106230696A (en) | 2016-12-14 |
Family
ID=57535226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610625762.XA Pending CN106230696A (en) | 2016-08-03 | 2016-08-03 | Based on android system shaking robs visitor's method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106230696A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902472A (en) * | 2012-05-07 | 2013-01-30 | 腾讯科技(深圳)有限公司 | Method and system for triggering commands and method and system for recommending users |
CN103517229A (en) * | 2013-09-24 | 2014-01-15 | 小米科技有限责任公司 | Method and device for obtaining user information, mobile terminal and sever |
CN105163314A (en) * | 2015-09-29 | 2015-12-16 | 杭州讯久科技有限公司 | Mobile terminal wireless network authentication method based on page simulation shake mechanism |
CN105573630A (en) * | 2015-12-14 | 2016-05-11 | 北京奇虎科技有限公司 | Method and device for detecting shaking event of terminal device and terminal device |
-
2016
- 2016-08-03 CN CN201610625762.XA patent/CN106230696A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902472A (en) * | 2012-05-07 | 2013-01-30 | 腾讯科技(深圳)有限公司 | Method and system for triggering commands and method and system for recommending users |
CN103517229A (en) * | 2013-09-24 | 2014-01-15 | 小米科技有限责任公司 | Method and device for obtaining user information, mobile terminal and sever |
CN105163314A (en) * | 2015-09-29 | 2015-12-16 | 杭州讯久科技有限公司 | Mobile terminal wireless network authentication method based on page simulation shake mechanism |
CN105573630A (en) * | 2015-12-14 | 2016-05-11 | 北京奇虎科技有限公司 | Method and device for detecting shaking event of terminal device and terminal device |
Non-Patent Citations (2)
Title |
---|
费佳: "基于Android的票务平台推荐及评论模块的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑(2016)》 * |
黄俊: "基于Android系统的远程监控与控制系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑(2015)》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104850434B (en) | Multimedia resource method for down loading and device | |
CN105144102B (en) | Self-adapting data is synchronous | |
CN107704356A (en) | Exception stack information acquisition method, device and computer-readable recording medium | |
CN102404127A (en) | Method and device both for reminding of new message | |
CN108616360A (en) | User identity verification, register method and device | |
CN105631361B (en) | A kind of application program channel source identification method and device | |
CN106598678A (en) | Method and device for supplying application installation packages to terminal equipment | |
CN107329781A (en) | The hot restorative procedure of software, terminal, system and computer-readable recording medium | |
CN108595203A (en) | Application function executes method, mobile terminal and computer readable storage medium | |
CN107301091A (en) | Resource allocation methods and device | |
CN109144661A (en) | A kind of deep learning management method based on docker | |
CN109922078A (en) | Upgrade control method, mobile terminal and computer readable storage medium | |
CN106211074A (en) | The distribution method of e-sourcing and distributor | |
CN110290223A (en) | Active upgrade method and system | |
CN106066807A (en) | Method for updating OS and operating system towards intelligent robot | |
EP1562323A3 (en) | Communication control apparatus and network management system using the same | |
CN107220050A (en) | Adaptive display method, terminal and computer-readable recording medium | |
CN109688183A (en) | Group control device recognition methods, device, equipment and computer readable storage medium | |
CN110457908A (en) | A kind of firmware upgrade method of smart machine, device, equipment and storage medium | |
CN108639012A (en) | Power supply system based on Internet of Things starts method, apparatus and computer storage media | |
CN107181822A (en) | The control method of communication system and its communication means and device, terminal and terminal | |
US20190324513A1 (en) | System and Method for Energy Profiling Asynchronous API Calls | |
CN104363257B (en) | A kind of user interface data method for refreshing and equipment | |
CN103823750A (en) | Cloud-based software test service method | |
CN109525552A (en) | Dynamic code synchronized process expansion method, dynamic code generator and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161214 |