Font Size: a A A

The Implementation Of Android User Data Collection System Based On Lua Script

Posted on:2015-11-07Degree:MasterType:Thesis
Country:ChinaCandidate:W LiFull Text:PDF
GTID:2348330542952451Subject:Engineering
Abstract/Summary:PDF Full Text Request
In recent years,due to the high speed increase of the rate of mobile network and the development of network technology and mobile operating system,the mobile Internet is developing rapidly.New attributes related to the mobile Internet,just like mobile payment,mobile shopping,mobile entertainment,mobile social network,change the ordinary users' life.Before the mobile Internet era,people need a PC to deal with their jobs;now rely on a portable mobile terminal,they can do any job in anywhere at any time.Android operating system is the mainly entrance to mobile Internet,therefore,for mobile Internet companies,data collection based on the Android platform,is the key to understand user attributes and providing personalized service.This paper describes an implementation of an Android platform user data collection system using Lua script.The main content as follows:First,mobile Internet profit model are discussed in this paper to make clear the importance of dynamic collection of user data.Second,use the NDK technology to transplant the Lua runtime and the LuaJava project on Android platform.Key steps to complete the transplantation of the system reflected in the following aspects:first,use Eclipse and ADT to build Android development environment;second,establish an Android workspace on Eclipse and configure the Android NDK cross-compiler environment;third,according to the makefile,use Android NDK cross-compiler to compile Lua runtime source code and LuaJava porject native code as a dynamic link library under the Android platform,import Java layer code to Android project.Third,use the LuaJava project to implement the Android platform data collection system.It consists of two parts:first,LuaJava project provide Java interface to control the Lua script execution,so that it can be used to run the script according to the server configuration;second,use Lua function provided by the LuaJava project to invoke the Java method to access Android user data dynamically.Forth,use Java language and Android platform features to implement a data collection state machine.The data collection state machine composes of six typical state,when the state transition event occurs,the state transition follows.The state machine start with system boot and long time running in the background,when the user force to kill this state machine,it still automatically resume after few time.Fifth,use the technology of encryption,Https,Node.js and Mysql to implements network server of a data collection system.I use Node.js' framework Express to build the framework,use Mysql to save the data and use Https to encryption communication process in order to ensure the safety of the user data transmission.This paper starts from the analysis of user business presentation,according to the business presentation to establish the demand model,data model,process model,and select the appropriate technology according to the demand;then transforme the model into the design of the architecture,and refine the overall architecture design to get the design of each component;then according to the component design to implementate related engineering;finally,compare functional testing and performance testing result with the demand model.According to the test results,this paper implements an Android platform user data collection system based on Lua script and it meet the user demand,the system has been online and brought a lot of user data for the company.
Keywords/Search Tags:Mobile Internet AD, Android, User Data, Lua Script
PDF Full Text Request
Related items