A kind of method for using application service in off-line case
Technical field
The present invention relates to mobile Internet application domain, more particularly to a kind of offline application service Database Systems.
Background technology
With the fast development of mobile Internet and intelligent terminal, the userbase of mobile Internet is also increasing, with
And the various application programs based on internet come are also increasingly abundanter, relate to all conglomeraties, and as intelligent terminal is used
Family is increased, and it is also increasingly apparent that more demands for working and entertaining are completed on intelligent terminal.2009, carried by Apple Inc.
The concept using shop is gone out.In the end of the year 09, the concept in software application shop is fashionable rapidly, and major cell phone manufacturer starts to build oneself
Apply shop, to lift the attraction of itself mobile phone products and attraction, using the content in shop cover application program, game
With the various applications such as video.
It is by companies such as operator, operating system business, manufacturer terminals, for the application program of mobile device establishment using shop
Download service, it is allowed to which user browses from shop, downloads the application program that some are mobile terminal exploitation.By using shop,
Application program is no longer limited by manufacturer completely, and user can be installed on mobile terminal with on-line selection application program.
Substantial amounts of application and emerging application internet terminal have expedited the emergence of and have applied shop, and are also that undertaking is mobile mutual using shop
The key node of networking, provided more choices using the birth in shop for content supplier and application developer, greatly
Excite the enthusiasm of content supplier and application developer.The process that user obtains application is also shortened using shop, is also increased
User is to operator, the loyalty of manufacturer terminal, and the general layout of its Opening, serviceization will also attract more to apply business
Shop.
More famous at present includes using shop:Passenger's mobile phone applies shop(Jiker Store), apple software application
Shop(App Store), Nokia's software application shop(Ovi Store), Microsoft's software application shop(Windows
Marketplace), Google's software application shop(Android Market), LG software applications shop(LG Application
Store), blackberry, blueberry software application shop(BB App World), China Mobile's software application shop(Mobile Market)With in
UNICOM of state software application shop(Player seeks), China Telecom's software application shop(Its wing space), go through interesting mobile phone and apply shop
(LiQu)Gas station is applied with mobile little devil Android.
It is actually a kind of application on site service database system using shop, is available for user's selection, downloads and wherein deposited
The application program of storage.It is exactly to use apply selection in shop, download application program but current has a problem that using shop
Or application service must the function using shop can not just be used under off-line state under networked environment, and existing
The environment of various off-line states is often had in reality, consequently, it is possible to add inconvenience.
The content of the invention
In view of this, the invention provides a kind of offline application service Database Systems.Local hardware device is used to store
With encryption data and carry out correlation computations, can be the encryption lock of separate physical form or other hardware encryption devices, also may be used
Be in mobile phone add special encryption chip and other dedicated encrypted hardware units.Local hardware device is inserted into movement
The USB interface of device end, or embedded interior of mobile phone.Wherein encryption chip can be embedded on interior of mobile phone, such as embedded SIM card
Or other positions, or a kind of encryption device that can be connected with handset port, such as mobile phone dedicated encrypted lock.Mobile device is whole
End function is chosen using shop by local hardware device offline using these.
The count value specified and application information to local hardware are obtained by local hardware device and server sync
In electronic counting means and offline application service Database Systems in device.User can apply offline under off-line state
Application program is selected in service database system, and changes count status using electronic counting means.Pass through local hardware device
In the mode that is combined with offline application service Database Systems of electronic counting means, can effectively solve nothing under offline environment
The problem of count status that method carries out in application program changes, and improve Consumer's Experience.
A kind of offline application service Database Systems, concrete scheme include:
Client provides a kind of local hardware device, and the device includes:Electronic counting means and offline application service data
Storehouse system.
Server includes:Count value storage changing unit, application on site service database system and statistical module.
User to the count value storage changing unit of server in use, increase corresponding count value, then locally first
Client hardware device and server interaction, stored from count value and the count value specified is downloaded in changing unit to the electronics of local
In counting unit.
Various application service encryptions are downloaded from the application on site service database system on server to store to offline application
In service database system.
Under off-line state, user can be selected by local hardware device in offline application service Database Systems should
With service.
If the count value in electronic counting means is more than or equal to particular value, subtracted using electronic counting means specific
Value, user number counting value deficiency is prompted during count value deficiency, count value is further added by or deletes selected application service.
After completing count value change, selected application service is decrypted from offline application service Database Systems,
User is that selected application service function can be used after decryption.
After completing count value change, the user that offline application service Database Systems can store user selects information, when having
During network environment, local hardware device and server interaction, by user selection information upload onto the server and with server
There is synchronizing information.
Server statistics module counting user selects information and application service information.
Above-mentioned local hardware device, is specifically included:
The hardware of encryption lock, USB flash disk or other energy data storages;
Above-mentioned local electronic counting means are responsible for storing and changing count value.User is when using electronic counting means
Authentication is first passed through, certification uses local electronic counting means interactive server by user afterwards, passes through electronic counting
Unit is synchronous with the count value storage changing unit in server, so as to which specified count value is synchronized into electronic counting means
It is interior.When changing count value, count value is reduced from electronic counting means.
Above-mentioned offline application service Database Systems are similar to the shop of applying described in background technology, simply offline application
Service database system can use in off-line state.Application on site in offline application service Database Systems with server takes
Business Database Systems possess identical function, and offline application service Database Systems can be from the application on site service data of server
Application service information is downloaded in the system of storehouse, is stored after encryption into offline application service Database Systems.User can be
More application programs or corresponding application service are selected in offline application service Database Systems.
Stored as described above, downloading application service information encryption into offline application service Database Systems, described adds
Decryption method may include signature, key etc..Various symmetrically or non-symmetrically algorithms can be used, can be disclosed or privately owned encryption
Algorithm.
Above-mentioned count value storage changing unit is used in the server for user's storage, change count value, and by the user
Count value be synchronized in the electronic counting means of client.User stores changing unit by server to count value first please
Ask and change its count value, then count value storage changing unit is that user distributes separate account numbers, to the count value in user account
Information and account count value change information are stored after being encrypted.Than following synchronous count value into electronic counting means.
Lower synchronization be server end to client synchronization data, customized counting is taken out from the data storage location of server end
Value, is then written in storage location corresponding to client, and server end subtracts taking-up value, and client memory block is plus write-in
Count value.Once the lower specific count value of synchronization then will store changing unit to electronic counting means from the count value of server
In subtract corresponding count value.
Above-mentioned application on site service database system be used for store application service information, with offline application service database
During system synchronization, application service information is synchronized in offline application service Database Systems.
Above-mentioned statistical module is used for the information of the selection application service of counting user.Can be convenient by this statistical function
Know selection, the download situation of application service, but also application journey related in offline application service Database Systems can be counted
The information such as the quantity of sequence, so as under the application on site service database system in server application service corresponding to synchronization to client
In the offline application service Database Systems at end.
User selects required application server in offline application service Database Systems.Then the electronics of local is passed through
Counting unit carries out count value change.When carrying out count value change, the size of the count value in electronic counting means is first calculated.Such as
Fruit count value is less than specific threshold, then reminds user's synchronous count value under server, or prompting user to delete selected application
Program.
If count value is more than or equal to specific threshold, one is reduced from the numerical value change module of local electronic counting means
Individual special value, then the application service selected in offline application service Database Systems is decrypted, so as to supply user
Use.
After reducing by a special value success in the numerical value change module of local electronic counting means, offline application service number
The user that user can be stored according to storehouse system selects information, the content such as including application service information.When there is network environment, server
Interact, the user being locally stored selection synchronizing information is uploaded onto the server, in server with local hardware device terminal
The selected number information of statistical module counts application service.
Local electronic counting means are stored based on local hardware device, and local hardware device specifically may include two species
Type, a kind of is the hardware unit with encrypted stored data function of softdog etc, another be in mobile phone add it is hard
Part device, such as chip etc, data message are stored encrypted in chip, or the hardware unit that can be connected with mobile phone.This
Ground hardware unit can use USB encryption locks or the hardware of other forms, or can use high intensity intelligent card chip and cryptography skill
Art, there is certain computing and storage capacity, data storage is encrypted by particular encryption mode in electronic counting means,
Decrypted during use, lift security.
Brief description of the drawings
Fig. 1 is the offline application service Database Systems overall schematic of application.
Fig. 2 is the offline application service Database Systems flow chart of application.
Embodiment
For the objects, technical solutions and advantages of the present invention are more clearly understood, develop simultaneously embodiment referring to the drawings, right
The present invention is further described.
Embodiment 1
Present embodiment assumes that application program A is being used in user.Application program A is a kind of video playback application program.
Fig. 1 is the offline application service Database Systems overall schematic of application.
The count value into server stores changing unit to user(Data bank in Fig. 1)Increasing count value is
1000.According to one embodiment of present invention, the local hardware device of client has connected client, and local hardware device is hard
Part encryption lock.
User first under networking state, passes through local hardware device and server interaction when using application program A.It is logical
Cross electronic counting means(Stored value card in Fig. 1)Synchronous count value number under from the count value storage changing unit of server
According to.In the present embodiment, count value may specify.Count value in electronic counting means is defaulted as 0.According to the present embodiment, Xiang Ben
It is 500 to increase count value in ground electronic counting means.Now user account in the count value storage changing unit in server
In count value can subtract 500, therefore the count value in the user account is 500.And the counting in local electronic counting means
It is worth for 500.
Use offline application service Database Systems(Offline shop in Fig. 1)When, be first from the application on site of server
Service database system(Shop is applied in Fig. 1)In lower synchronous corresponding application service information, stored by encryption to offline
In application service Database Systems.
According to the present embodiment, in off-line state, when user needs to service number in application on site when using application program A
According to the application service B selected in the system of storehouse for application program A.Application service B is to remove to embed in application program A
The application service of Flash pop-up windows.And now due to no network environment, therefore count value can not be increased online, can not yet
Application service is selected in application on site service database system.
Now, user can select the application service B to be used in offline application service Database Systems.And use and answer
Then need to subtract count value 20 from electronic counting means with service B.Before count value 20 is subtracted, first need to verify electronic counting
Whether the count value in unit is more than or equal to required for application service B the count value subtracted.If the meter in electronic counting means
Numerical value is less than the count value subtracted required for application service B, then prompt message occurs or prohibit the use of application service B.If
Count value in electronic counting means is more than or equal to required for application service B the count value subtracted, then by local electronic counting list
Count value in member subtracts the count value subtracted required for application service B, i.e. 500-20=480.
Then, application service B can be used in offline application service Database Systems decryption application service B, user.Meanwhile
Offline application service Database Systems can record user and select information.When network environment is recovered, local hardware device and service
Device interacts, and upper synchronous user selects information to server, server statistics module(Statistical module in Fig. 1)Count application clothes
The information of business.
Embodiment 2
According to one embodiment of present invention, application program is a kind of PDF application programs, can be connected with local hardware
The mobile device of device(Including but not limited to smart mobile phone, tablet personal computer, electronic reader etc.)It is upper to create, show, editing, marking
The document of note, printing PDF format.The PDF application programs are divided into different versions, and user is typically only capable to use in the client and is somebody's turn to do
The primary trial edition of PDF application programs, the primary trial edition can only provide display function, and can not provide establishment, editor, mark
The multiple functions such as note, printing(Hereinafter referred to as Premium Features).And other versions with Premium Features are then stored in clothes respectively
It is engaged in the application on site service database system in device.Wherein, other versions can be one Premium Features of increase, or increase
A Premium Features is added, or uses whole Premium Features.
When user is carried out to primary trial edition in use, can utilizes the PDF application programs to the primary trial edition
Service condition fills in corresponding fed back statistics, and the remote server of the PDF application programs is sent in the case of online.When
So, user can not also fill in fed back statistics after using primary trial edition or not send fed back statistics.Often send once
Feedback, then increase by 10 count values in count value storage changing unit in the server.
Whenever server end receives the fed back statistics transmitted by the user, the count value in server is just stored into Request for Change
It is synchronized under count value in member in local electronic counting means.In this embodiment, the counting in local electronic counting means
It is worth for 10.
In addition, the offline application service Database Systems in local device service number from the application on site in server
According to lower synchronous other other versions with Premium Features in the system of storehouse.
But such a case being present, after user has used primary trial edition, now network environment is interrupted, Yong Huke
It can cannot fill in fed back statistics or fed back statistics cannot be sent.But at this moment user is often desirable under off-line case also make
Use Premium Features.
In order to meet that user could be used that the technical need of Premium Features in off-line case, according to the reality of the present invention
Mode is applied, following method can be used.
According to the present embodiment, in off-line state, when user needed when using the primary version of PDF application programs
An other versions are selected in line application service Database Systems, and now due to no network environment, therefore can not fill out online
Fed back statistics are write, also can not just increase count value, and corresponding to can not also being selected in application on site service database system
Other versions.
Now, user can select the other versions to be used in offline application service Database Systems.According to one
Embodiment, use other version A(This version has printing function), it is necessary to subtract count value 5 from electronic counting means, it is used
Its version B(This version has editor, mark function), then need to subtract count value 15 from electronic counting means.
When user selects other version A, then before count value 5 is subtracted, first need to verify in electronic counting means
Whether count value is more than or equal to required for other version A the count value subtracted.Because the count value in electronic counting means is 10,
More than the count value subtracted required for other version A, then the count value in local electronic counting means is subtracted into other version A institutes
Need the count value 5 subtracted, i.e. 10-5=5.
When user selects other version B, then before count value 15 is subtracted, first need to verify in electronic counting means
Whether count value is more than or equal to required for other version B the count value subtracted.Because the count value in electronic counting means is 10,
Less than the count value subtracted required for other version B, then there is prompt message or forbid other version B.
Because the count value in electronic counting means is 10, therefore user can only select other version A.Then, offline should
Other version A are decrypted with service database system, other version A can be used in user.Meanwhile offline application service data base set
System can record user and have selected other version A.When network environment is recovered, local hardware device and server interaction, upper synchronization
User has selected other version A information to server.The selected version letter crossed of statistical module counts user in server
Breath and other version A selected by the user selected number in PDF application programs.
Embodiment 3
According to one embodiment of present invention, application program is a kind of developmental game, and the developmental game need to pay under ability
Carry and use, the developmental game expense is 30 yuans, and local offline application service Database Systems exist from server end
The games have been downloaded in line application service database.Assuming that user in networking by electronic counting means from server
Count value storage changing unit under synchronous count value data 500 to the count value memory cell in local hardware device, this
Ground hardware unit has connected custom end intelligent equipment.
When in offline environment, user is in local offline application service Database Systems according to search or other approach
The game is aware of, but because network problem can not use the game by paying online.Now, according to side provided by the invention
Method, user can then subtract the cost value of the game by the electronic counting means in local hardware device, now local electricity
The value of sub-count memory cell is changed into 500-30=470, and after local electronic counting means payment expense, user can download
The game, install and use.
For a person skilled in the art, above-mentioned several embodiments can be carried out changing accordingly.Such as:Using
Program can provide more application services;Count value corresponding to various application services is different;Count value increase, the rule of reduction
It can be configured according to demand.In addition, application program can also be other application program, such as picture browsing application program,
Video playback application program, game application, office application program, system security application etc..According to the skill of the present invention
Art scheme, the change that realize these corresponding programs is easily.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent substitution and improvement for being made etc., the guarantor of the present invention should be included in
Within the scope of shield.