CN106843937A - A kind of tune for notifying corresponding A pp plays method and device - Google Patents
A kind of tune for notifying corresponding A pp plays method and device Download PDFInfo
- Publication number
- CN106843937A CN106843937A CN201611250173.4A CN201611250173A CN106843937A CN 106843937 A CN106843937 A CN 106843937A CN 201611250173 A CN201611250173 A CN 201611250173A CN 106843937 A CN106843937 A CN 106843937A
- Authority
- CN
- China
- Prior art keywords
- activity
- components
- app
- intent
- service
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Method and device is played the present invention relates to a kind of tune for notifying corresponding A pp, wherein methods described comprises the following steps:(1) request of call notification corresponding A pp is received;(2) determine whether that authority calls the Activity components of the App, if then directly invoking the Activity components, otherwise into step (3);(3) Broadcast Receiver components are called by Intent;(4) Broadcast Receiver component calls Shell orders;(5) the Activity components of App described in Shell command calls, so as to adjust the App.The present invention can overcome the situation that can not have directly adjusted in the message informing in clicking directly on message informing column, so that user can rapidly open the message informing for wanting to understand, obtain good Consumer's Experience and also save user operation time simultaneously.
Description
Technical field
The present invention relates to intelligent terminal field, specifically, the present invention relates to a kind of tune for notifying corresponding A pp rise method and
Device.
Background technology
Message informing column is provided with the mobile terminals such as current mobile phone, news, renewal prompting that each App is notified can be shown
Etc..At present because the species of App is various, the message in informing seems cumbersome mixed and disorderly.
For example, the Chinese invention patent application of Application No. 201410738416.3, is related to a kind of notification message display side
Method and device, for terminal device, method therein includes:Receive notification message;According to default classifying rules to the notice
Message is classified;The notification message is shown according to described being sorted in informing.In the disclosed embodiments, when
After the terminal devices such as mobile phone receive the notification message of system or each APP, can be according to default classifying rules to the notification message
Classified, for example, same source is divided into a class, be then sorted in informing to the notification message according still further to described
Shown.Informing simple interface is so allowed for without mixed and disorderly, user can quickly find the message of concern, improve use
The reading rate at family, improves the operating efficiency of terminal device, also optimizes Consumer's Experience.
But in the mobile phone of many models, it is that cannot directly adjust this to click directly on a certain message informing in informing
App's where message informing, so as to also cannot directly adjust the details of the message informing, it is necessary to come back to mobile phone table
Face is gone to click on corresponding App and could adjust the App and check message.So so that the experience of cellphone subscriber is poor,
User's valuable time can be expended.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
The tune for stating the notice corresponding A pp of problem plays method and device.
According to one aspect of the present invention, there is provided a kind of tune of notice corresponding A pp plays method, comprises the following steps:
(1) request of call notification corresponding A pp is received;
(2) determine whether that authority calls the Activity components of the App, it is described if then directly invoking
Activity components, otherwise into step (3);
(3) Broadcast Receiver components are called by Intent;
(4) Broadcast Receiver component calls Shell orders;
(5) the Activity components of App described in Shell command calls, so as to adjust the App.
Preferably, the tune for notifying corresponding A pp as described above plays method, calls the BroadcastReceiver components
Order be stored in advance in Intent.
Preferably, the tune for notifying corresponding A pp as described above plays method, and Broadcast Receiver components are by performing
Function call Shell orders.
Preferably, the tune for notifying corresponding A pp as described above plays method, and Shell orders are directly adjusted by executable program
With the Activity components of the App.
It is furthermore preferred that notifying that the tune of corresponding A pp plays method as described above, the executable program is am start
activity。
According to another aspect of the present invention, additionally provide a kind of tune for notifying corresponding A pp and play method, including following step
Suddenly:
(1) request of call notification corresponding A pp is received;
(2) determine whether that authority calls the Activity components of the App, it is described if then directly invoking
Activity components, otherwise into step (3);
(3) Service components are called by Intent;
(4) Service component calls Shell orders;
(5) the Activity components of App described in Shell command calls, so as to adjust the App.
Preferably, the tune for notifying corresponding A pp as described above plays method, calls the order of the Service components advance
Storage is in Intent.
Preferably, the tune for notifying corresponding A pp as described above plays method, and Service components are by performing function call
Shell orders.
Preferably, the tune for notifying corresponding A pp as described above plays method, and Shell orders are directly adjusted by executable program
With the Activity components of the App.
Preferably, the tune for notifying corresponding A pp as described above plays method, and the executable program is am start
activity。
According to a further aspect of the invention, a kind of tune lifting device of notice corresponding A pp is additionally provided, described device includes
Such as lower module:
Receiver module, the request for receiving call notification corresponding A pp;
Judge module, for determining whether that authority calls the Activity components of the App, if then directly invoking
The Activity components;
Broadcast calling module, for calling Broadcast Receiver components by Intent;
Shell calling module, for by Broadcast Receiver component call Shell orders;
Application program has adjusted module, for the Activity components by App described in Shell command calls, so as to adjust
The App.
Preferably, the tune lifting device of notice corresponding A pp as described above, calls the BroadcastReceiver components
Order be stored in advance in Intent.
Preferably, the tune lifting device of notice corresponding A pp as described above, Broadcast Receiver components are by performing
Function call Shell orders.
Preferably, the tune lifting device of notice corresponding A pp as described above, Shell orders are directly adjusted by executable program
With the Activity components of the App.
It is furthermore preferred that notifying the tune lifting device of corresponding A pp as described above, the executable program is am start
activity。
According to another aspect of the present invention, a kind of tune lifting device of notice corresponding A pp is additionally provided, described device includes
Such as lower module:
Receiver module, the request for receiving call notification corresponding A pp;
Judge module, for determining whether that authority calls the Activity components of the App, if then directly invoking
The Activity components;
Service calling module, for calling Service components by Intent;
Shell calling module, for by Service component call Shell orders;
Application program has adjusted module, for the Activity components by App described in Shell command calls, so as to adjust
The App.
Preferably, the tune lifting device of notice corresponding A pp as described above, calls the order of the Service components advance
Storage is in Intent.
Preferably, the tune lifting device of notice corresponding A pp as described above, Service components are by performing function call
Shell orders.
Preferably, the tune lifting device of notice corresponding A pp as described above, Shell orders are directly adjusted by executable program
With the Activity components of the App.
It is furthermore preferred that notifying the tune lifting device of corresponding A pp as described above, the executable program is am start
activity。
Beneficial effects of the present invention are as follows:The present invention can in the message informing in clicking directly on message informing column, gram
The situation that clothes can not have been adjusted directly, so that user can rapidly open the message informing for wanting to understand, obtains good user's body
Test while also saving user operation time.
Described above is only the general introduction of technical solution of the present invention, in order to better understand technological means of the invention,
And can be practiced according to the content of specification, and in order to allow the above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of schematic flow sheet for having adjusted method of notice corresponding A pp according to an embodiment of the invention;
Fig. 2 shows that another flow for having adjusted method for notifying corresponding A pp according to an embodiment of the invention is illustrated
Figure;
Fig. 3 shows a kind of structural representation of the device adjusted of notice corresponding A pp according to an embodiment of the invention
Figure;
Fig. 4 shows that the structure of the device adjusted of another notice corresponding A pp according to an embodiment of the invention is shown
It is intended to.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.Conversely, there is provided these embodiments are able to be best understood from the disclosure, and can be by the scope of the present disclosure
Complete conveys to those skilled in the art.
The work original of the communication mechanism between the Android component and its component arrived used in the present invention is introduced first below
Reason:
The big component of Android four is respectively activity, service, content provider, broadcast
receiver。
First, the big components of android tetra-:
1、activity
(1) Activity is exactly generally a single screen (window).
(2) communicated by Intent between Activity.
(3) each Activity is had in AndroidManifest.xml configuration files in android applications
Statement, otherwise nonrecognition is not performed the Activity by system yet.
The content that Activity shows can be divided into two kinds of statement modes, and the first is stated by xml configuration files,
Second is by a certain object for being inherited from view classes.
(1) stated by xml configuration files
The configuration file of Activity is located in res/layout files, and a configuration file holds equivalent to a view
Device, wherein the built-in view of Android platform such as TextView, ImageView etc. can be added, it is also possible to which addition is inherited from
The subclass object of view classes.
(2) stated by view subclasses
Different view is integrated together easily by xml document, but the independence for leaving developer for is inadequate.
In this case oneself desired interface can be developed by extending view subclasses.
For example interface is stated to a certain activity:
MyViewmyView=newMyView (this);
setContentView(myView);
2、service
(1) service is used to complete the operation that user specifies on backstage.Service is divided to for two kinds:
(a) started (startup):When application component (such as activity) calls startService () method to start
During service, service is in started states.
(b) bound (binding):When application component calls bindService () method to be tied to service, service center
In bound states.
(2) startService () and bindService () is distinguished:
A () started service (starting service) are to call startService () method to start by other assemblies,
This causes onStartCommand () method of service to be called.When service is started states, its life cycle with open
The component for moving it is unrelated, and can be run in backstage indefinite duration, even if the component for starting service is destroyed.Therefore, take
Business needs to call stopSelf () method to stop after completion task, or calls stopService () method by other assemblies
Stop.
B () enables service using bindService () method, together with, caller is once for caller and service binding
Exit, service also just terminates.
(3) developer's needs state whole service in application profiles, use<service></
service>Label.
(4) Service is usually located at running background, and it is not needed typically and user mutual, therefore Service components do not have
Graphic user interface.Service components need to inherit Service base class.Service components are generally used for being provided for other assemblies
The running status of background service or monitoring other assemblies.
Different from activity, service components do not provide the interface with user mutual, and service is after operating in
A kind of android components of platform, when application program needs to carry out certain does not need the calculating or data processing that foreground shows,
A service can just be started.
Service is typically started by activity or other context objects.After service is started, even if
Start its component lifecycle to be over, but the service still may proceed to operation, until the life cycle knot of oneself
Beam.
Each service should state that the Starting mode of service has two kinds in AndroidMainFest.xml,
Correspondence life cycle also has difference.
(1) started by startService modes, when system calls startService methods, if should
Service is also not actuated, then call its onCreate method and onStart methods successively.When other context object references
StopService methods or service can just stop when calling stopSelf the or stopService methods of itself.
2) started by bindService methods, when system calls bindService methods, if the service is also
It is not actuated, then its onCreate method can be called, then the Service and context objects (such as actitity) can be carried out
Binding, when the context objects of binding are destroyed, the service for binding therewith is also out of service.
No matter it should be noted that start in which way, can be by itself and context object bindings.
3rd, content provider (content provider)
(1) Android platform is supplied to the specified data set of an application program there is provided Content Provider
Other application programs.Other application can obtain from the content provider by ContentResolver classes or be stored in data.
(2) it is only in need just to need content provider in multiple application program data sharings.For example, address book data
Used by multiple application programs, and must be stored in a content provider.Its benefit is universal data access mode.
(3) ContentProvider realizes data sharing.ContentProvider is used to preserve and obtain data, and makes
It is visible to all application programs.This is the mode of different traditional application program data sharings.
(4) developer will not directly using the object of ContentProvider classes, and most of is to pass through
Operation of the ContentResolver object implementatio8s to ContentProvider.
(5) ContentProvider carrys out unique mark its data set using URI, and URI here is with content:// conduct
Prefix, represents the data by ContentProvider to manage.
4th, broadcast receiver (radio receiver)
(1) application can be filtered using it to external event, only to external event interested (as worked as phone incoming call
When, or data network it is available when) received and responded.Radio receiver does not have user interface.However, they can be with
Start an activity or service to respond the information that they are received, or notified with NotificationManager
User.Notice can attract the notice of user with a variety of modes, for example, flash back of the body lamp, vibrations, play sound etc..Typically
For be that a lasting icon is put on status bar, user can open it and simultaneously obtain message.
(2) broadcast recipients register with two methods, are respectively program dynamic registration and AndroidManifest files
In carry out static registration.
(3) dynamic registration radio receiver feature is that after turning off for the Activity that registers, broadcast is also just failed.
Static registration need not worry whether radio receiver is closed, as long as equipment is opening, radio receiver is also open
's.That is, as long as broadcast component is not disabled, even app is not actuated in itself, the broadcast that the app is subscribed to also can in triggering
It is worked.
Broadcast Receiver components provide the alternation of bed with user as Service components, not.It is a kind of
It is responsible for the component for receiving broadcast message and being made a response to message.There are many broadcast, such as not enough power supply in Android system
Deng.
Application program is if necessary to corresponding a certain broadcast message, it should register corresponding broadcastReceiver objects,
The object is inherited from BroadCastReceiver classes.When system or other application send specific broadcast, the program will connect
By and make a response, such as start activity.
(1) broadcastReciever issues a broadcast
An Intent object is created in the place for needing, is got up by the content of information and for the Information encapsulation of filtering,
By calling context.sendBroadcast methods that the Intent object broadcasts are gone out or
Context.sendStickBroadcast methods go out the Intent object broadcasts.
(2) BroadCastReceiver receives a broadcast
The broadcast entity of issue is Intent, then need to be carried out by intentFilter objects when reception
Filter.The life cycle of Broadcast Receiver is fairly simple, and only one of which callback method, onReceive, the method is connecing
Called when receiving broadcast.
Register the mode of BroadcastReceiver
(1) in androidMainfest.xml.Log-on message is included in<receiver></receiver>In, and
<intent-filter>Middle setting filtering rule.
(2) created in code and IntentFilter objects are set, the IntentFilter objects are contained to broadcast
Filtering rule, then need place call Context.registerReceiver methods to be registered and cancelled note
Volume, this mode braodcast after context destructions does not just exist yet.
2nd, the big feature of the module of android tetra-:
The registration of (1) 4 big component
4 big basic modules are required for the registration could to use, each Activity, service, Content Provider
Needs are configured in AndroidManifest files.Stated in AndroidManifest files
Activity, service and content provider will not be system finding, so that also just unavailable.And broadcast receiver
The registration point static registration (being configured in AndroidManifest files) of broadcast recipients and by code dynamic creation
And to call Context.registerReceiver () in the way of be registered to system.It should be noted that
The broadcast recipients configured in AndroidManifest files can be constantly in active state with the startup of system, only
Receiving broadcast interested will trigger (even if program off-duty).
The activation of (2) 4 big components
The activation of content provider:After the request that ContentResolver sends is received, content provider is swashed
It is living.And other three kinds of component activity, service and radio receiver are activated by a kind of asynchronous message for being called intent.
The closing of (3) 4 big components
Content provider is only responding activation when ContentResolver files a request.And a radio receiver
Only activated when broadcast message is responded.So, it is not necessary that remove explicit closing these components.Activity is closed:Can
An activity is closed with by calling its finish () method.Service is closed:For by startService ()
The service that method starts will call Context.stopService () method to close service, use bindService () method
The service of startup will call Context.unbindService () method to close service.
(4) task (activity stacks) in android
A () task is exactly in fact the stack of activity, it is made up of one or more Activity, and common completion one is complete
Whole Consumer's Experience.Stack bottom is the Activity for starting whole task, and stack top is that the current user for running can interact
Activity, when an activity starts another, new activity is just pressed into stack, and as current fortune
Capable activity.And previous activity is remained among stack.When user presses BACK keys, currently
Activity pops, and the previous activity for reverting to current operation.What is preserved in stack is in fact object, in stack
Activity never resets, and only can be pressed into or eject.
B all activity in () task are moved as an entirety.Whole task (i.e. activity
Stack) foreground can be moved on to, or retreat to backstage.
C () android system is an operating system for multitask (Multi-Task), can listen music with mobile phone
Meanwhile, also perform other multiple programs.Per an application program is performed, some Installed System Memories will be expended more more, be held when simultaneously
Capable program is excessive, or the program closed does not discharge internal memory correctly, and system will feel increasingly slower or even unstable
It is fixed.In order to solve this problem, Android introduces a new mechanism, i.e. life cycle (LifeCycle).
Three .Intent mechanism
The Chinese of Intent means " being intended to, purpose ", and Intent mechanism is provided in Android come between assisting to apply
Interaction and communication, Intent is responsible for being related to data, additional data to be described the action of once-through operation in application, action,
Android is responsible for finding corresponding component then according to the description of this Intent, and Intent is passed to the component for calling, and complete
Into calling for component.Intent cannot be only used between application program, it can also be used to the Activity/ inside application program
Interaction between Service.Therefore, it can specially provide component by " medium " that Intent is interpreted as being communicated between different components
The relevant information called mutually.
The method that four .Intent start component
One Activity can be started by Intent, it is also possible to start a Service, one can also be initiated extensively
Broadcast Broadcasts.Specific method is as follows:
The attribute of five .Intent
Intent has following attribute:
Action (Action), data (Data), classification (Category), type (Type), component (Compent) and expansion
Exhibition letter (Extra).Most common of which is Action attributes and Data attributes.
In communication between these components, mainly assist what is completed by Intent.Intent is responsible in application one
The action of secondary operation, action are related to data, additional data to be described, and Android is responsible for looking for then according to the description of this Intent
To corresponding component, Intent is passed to the component for calling, and complete calling for component.Therefore, Intent is played herein
One effect of media mediation, it is special that the relevant information that component is called mutually is provided, realize between caller and callee
Decoupling.
For example, in the application that a contact person safeguards, when us in a contacts list screen (assuming that corresponding
Activity is listActivity) on, after clicking on certain contact person, it is desirable to be able to jump out the detailed information screen of this contact person
(assuming that corresponding Activity is detailActivity).In order to realize this purpose, listActivity needs construction one
Individual Intent, this Intent are used to tell system that we will to do " checking " action, and this action is corresponding to be checked pair as if " certain
Contact person ", then calls startActivity (Intentintent), and the Intent that will be constructed is incoming, and system can be according to this
Description in Intent, the Activity for meeting this Intent requirements is found in ManiFest, and system can be called and found
Activity, as detailActivity, final incoming Intent, detailActivity then can be according in this Intent
Description, performs corresponding operation.
Embodiment
Fig. 1 shows a kind of schematic flow sheet for having adjusted method of notice corresponding A pp according to an embodiment of the invention;
As shown in figure 1, according to one aspect of the present invention, there is provided a kind of tune of notice corresponding A pp plays method, comprises the following steps:
S110, the request for receiving call notification corresponding A pp.The step is often the icon in user clicks on informing
Shi Shixian's.When user click on informing in certain message informing when, equivalent to have issued the corresponding App of call notification please
Ask.
S120, determine whether that authority calls the Activity components of the App, it is described if then directly invoking
Activity components, otherwise into step S130;This calling is also to be realized by Intent.So how to start one
ActivityThis process includes three steps:
1. generate one and be intended to object (namely Intent);
2. the SetClass methods of Intent objects are called;
3. the method for calling the startActivity in current Activity derived class.
Activity is the component for most directly being contacted with user during Android is applied, and it is responsible for loading View components, makes
It is presented to user, and keeps being interacted with user.All of Activity components are required to inherit Activity classes, and this is one
The indirect subclass of individual Content, has packed the fundamental characteristics of some Activity.
View components are all UI components, the base class of container assemblies, that is to say, that it can be a layout container,
Can be the basic UI components in a layout container.View components are typically defined by XML layout resource file, while
Android system also realizes class to these View components there is provided corresponding.If necessary by certain Activity specified
View components show that call setContentView () method of Activity, it has multiple heavy duty sides
Method, can transmit an XML resource ID or View objects.
Activity is that Android is applied there is provided a user interface, and after an Activity is unlocked, it has
There is the life cycle of oneself.Activity classes also provide corresponding method to these life cycles, if necessary to right
Activity each different life cycle is responded, and can rewrite the realization of these life cycle methodologies.For most of business
Multiple Activity are contained for industry application, in whole system, progressively navigation is redirected and opens these Activity in the application
Afterwards, the rollback stack of Activity can be formed, Activity that is currently displaying and obtaining focus is located at the stack top of this rollback stack.
S130, Broadcast Receiver components are called by Intent;Call the BroadcastReceiver groups
The order of part is stored in advance in Intent.Intent calls the process of Broadcast Receiver components as follows:
1) Intent for needing to start BroadcastReceiver is created.
2) call the sendBroadcast () or sendOrderedBroadcast () method of Context specified to start
BroadcastReceiver.What wherein sendBroadcast sent is common broadcast, sendOrderedBroadcast hairs
That send is ordered into broadcast.
The component that the Intent is matched after application sends a Broadcast Intent may all be activated.
S140, Broadcast Receiver component call Shell orders;Broadcast Receiver components are by holding
Line function calls Shell orders.
For example, send broadcast by adb shell am broadcast in order line notifying.
Parameter behind adb shell am broadcast has:
[-a<ACTION>]
[-d<DATA_URI>]
[-t<MIME_TYPE>]
[-c<CATEGORY>[-c<CATEGORY>]...]
[-e|--es<EXTRA_KEY><EXTRA_STRING_VALUE>...]
[--ez<EXTRA_KEY><EXTRA_BOOLEAN_VALUE>...]
[-e|--ei<EXTRA_KEY><EXTRA_INT_VALUE>...]
[-n<COMPONENT>]
[-f<FLAGS>][<URI>]
The Activity components of App described in S150, Shell command calls, so as to adjust the App.Shell orders pass through
Executable program directly invokes the Activity components of the App.The executable program is amstart activity.
The method of startup is:
adb shell
#am start-n { bag (package) name }/{ bag name } { movable (activity) title }
Obtained in the file of the AndroidManifest.xml that the entrance class of program can be applied from each, with calculator
(calculator) as a example by, it
<manifest
xmlns:Android=" http://schemas.android.com/apk/res/android"…
Package=" com.android.calculator2 " ...>…
Thus the startup method of calculator (calculator) is:#am start -n
com.android.calculator2/com.android.calculator2.Calculator.It is further noted that
If Android versions be 4.2 (or more), Starting mode herein needs to do a little small variation, increases wherein -- user0
Parameter, i.e.,:#am start--user 0-n com.android.calculator2/
com.android.calculator2.Calculator。
Ordinary circumstance wishes that an Android is using one engineering of correspondence.It is worth noting that, there is some engineerings to have
Multiple activities (activity), and there are some applications to use an engineering.For example:In Android interface, Music and Video
It is two applications, but it is all this engineering of packages/apps/Music that they use.And in this engineering
In AndroidManifest.xml files, have and contain different activities (activity).
Fig. 2 shows that another flow for having adjusted method for notifying corresponding A pp according to an embodiment of the invention is illustrated
Figure;As shown in Fig. 2 a kind of tune for notifying corresponding A pp plays method, comprise the following steps:
S210, the request for receiving call notification corresponding A pp;The step is often the icon in user clicks on informing
Shi Shixian's.When user click on informing in certain message informing when, equivalent to have issued the corresponding App of call notification please
Ask.
S220, determine whether that authority calls the Activity components of the App, it is described if then directly invoking
Activity components, otherwise into step (3);This calling is also to be realized by Intent.So how to start one
ActivityThis process includes three steps:
1. generate one and be intended to object (namely Intent);
2. the SetClass methods of Intent objects are called;
3. the method for calling the startActivity in current Activity derived class.
Activity is the component for most directly being contacted with user during Android is applied, and it is responsible for loading View components, makes
It is presented to user, and keeps being interacted with user.All of Activity components are required to inherit Activity classes, and this is one
The indirect subclass of individual Context, has packed the fundamental characteristics of some Activity.
View components are all UI components, the base class of container assemblies, that is to say, that it can be a layout container,
Can be the basic UI components in a layout container.View components are typically defined by XML layout resource file, while
Android system also realizes class to these View components there is provided corresponding.If necessary by certain Activity specified
View components show that call setContentView () method of Activity, it has multiple heavy duty sides
Method, can transmit an XML resource ID or View objects.
Activity is that Android is applied there is provided a user interface, and after an Activity is unlocked, it has
There is the life cycle of oneself.Activity classes also provide corresponding method to these life cycles, if necessary to right
Activity each different life cycle is responded, and can rewrite the realization of these life cycle methodologies.For most of business
Multiple Activity are contained for industry application, in whole system, progressively navigation is redirected and opens these Activity in the application
Afterwards, the rollback stack of Activity can be formed, Activity that is currently displaying and obtaining focus is located at the stack top of this rollback stack.
S230, Service components are called by Intent.Specific method is as follows:
By transmit an Intent object to Context.startService () will start a Service (or to
The service being currently running is given with a new instruction).Android calls the onStart () method of service and by Intent objects
Pass to it.
It is similar, Intent can be called component passes to Context.bindService () to obtain one
The connection of the individual destination service being currently running.This service can call acquisition this Intent pairs via onBind () method
As (if service not yet starts, bindService () can first start it).Such as, before an activity can be connected to
The music playback service stated, and it is supplied to user one exercisable (user interface) to be controlled with to playback.This
Activity can call bindService () to set up connection, then call the object defined in service to influence playback.
S240, Service component call Shell orders;Service components are by performing function call Shell orders.
Detailed process is as follows:
Adb shell am startservice-n { bag (package) name }/{ bag name } { service (service) title }
Such as start a service in oneself application:
adb shell am startservice
–ncom.android.traffic/com.android.traffic.maniservice。
The Activity components of App described in S250, Shell command calls, so as to adjust the App.Shell orders pass through
Executable program directly invokes the Activity components of the App.The executable program is am start activity.
The method of startup is:
adb shell
#am start-n { bag (package) name }/{ bag name } { movable (activity) title }
Obtained in the file of the AndroidManifest.xml that the entrance class of program can be applied from each, with calculator
(calculator) as a example by, it
<manifest
xmlns:Android=" http://schemas.android.com/apk/res/android"…
Package=" com.android.calculator2 " ...>…
Thus the startup method of calculator (calculator) is:#am start -n
com.android.calculator2/com.android.calculator2.Calculator
Ordinary circumstance wishes that an Android is using one engineering of correspondence.It is worth noting that, there is some engineerings to have
Multiple activities (activity), and there are some applications to use an engineering.For example:In Android interface, Music and Video
It is two applications, but it is all this engineering of packages/apps/Music that they use.And in this engineering
In AndroidManifest.xml files, have and contain different activities (activity).
Fig. 3 shows a kind of structural representation of the device adjusted of notice corresponding A pp according to an embodiment of the invention
Figure.As shown in figure 3, a kind of device 300 adjusted of notice corresponding A pp, described device is including such as lower module:
Receiver module 310, the request for receiving call notification corresponding A pp;This request is often clicked on logical in user
Know what is realized during the icon in column.When user clicks on certain message informing in informing, equivalent to have issued call notification
The request of corresponding App.
Judge module 320, for determining whether that authority calls the Activity components of the App, if then direct
Call the Activity components;This calling is also to be realized by Intent.So how to start an Activity
This process includes three steps:
1. generate one and be intended to object (namely Intent);
2. the SetClass methods of Intent objects are called;
3. the method for calling the startActivity in current Activity derived class.
Activity is the component for most directly being contacted with user during Android is applied, and it is responsible for loading View components, makes
It is presented to user, and keeps being interacted with user.All of Activity components are required to inherit Activity classes, and this is one
The indirect subclass of individual Content, has packed the fundamental characteristics of some Activity.
View components are all UI components, the base class of container assemblies, that is to say, that it can be a layout container,
Can be the basic UI components in a layout container.View components are typically defined by XML layout resource file, while
Android system also realizes class to these View components there is provided corresponding.If necessary by certain Activity specified
View components show that call setContentView () method of Activity, it has multiple heavy duty sides
Method, can transmit an XML resource ID or View objects.
Activity is that Android is applied there is provided a user interface, and after an Activity is unlocked, it has
There is the life cycle of oneself.Activity classes also provide corresponding method to these life cycles, if necessary to right
Activity each different life cycle is responded, and can rewrite the realization of these life cycle methodologies.For most of business
Multiple Activity are contained for industry application, in whole system, progressively navigation is redirected and opens these Activity in the application
Afterwards, the rollback stack of Activity can be formed, Activity that is currently displaying and obtaining focus is located at the stack top of this rollback stack.
Broadcast calling module 330, for calling Broadcast Receiver components by Intent;Call described
The order of BroadcastReceiver components is stored in advance in Intent.Intent calls Broadcast Receiver groups
The process of part is as follows:
1) Intent for needing to start BroadcastReceiver is created.
2) call the sendBroadcast () or sendOrderedBroadcast () method of Context specified to start
BroadcastReceiver.What wherein sendBroadcast sent is common broadcast, sendOrderedBroadcast hairs
That send is ordered into broadcast.
The component that the Intent is matched after application sends a Broadcast Intent may all be activated.
Shell calling module 340, for by Broadcast Receiver component call Shell orders;Broadcast
Receiver components are by performing function call Shell orders.
For example, send broadcast by adb shell am broadcast in order line notifying.
Parameter behind adb shell am broadcast has:
[-a<ACTION>]
[-d<DATA_URI>]
[-t<MIME_TYPE>]
[-c<CATEGORY>[-c<CATEGORY>]...]
[-e|--es<EXTRA_KEY><EXTRA_STRING_VALUE>...]
[--ez<EXTRA_KEY><EXTRA_BOOLEAN_VALUE>...]
[-e|--ei<EXTRA_KEY><EXTRA_INT_VALUE>...]
[-n<COMPONENT>]
[-f<FLAGS>][<URI>]
Application program has adjusted module 350, for the Activity components by App described in Shell command calls, so as to adjust
Play the App.Shell orders directly invoke the Activity components of the App by executable program.The executable program
It is am start activity.
The method of startup is:
adb shell
#am start-n { bag (package) name }/{ bag name } { movable (activity) title }
Obtained in the file of the AndroidManifest.xml that the entrance class of program can be applied from each, with calculator
(calculator) as a example by, it
<manifest
xmlns:Android=" http://schemas.android.com/apk/res/android"…
Package=" com.android.calculator2 " ...>…
Thus the startup method of calculator (calculator) is:#am start-n
com.android.calculator2/com.android.calculator2.Calculator
Ordinary circumstance wishes that an Android is using one engineering of correspondence.It is worth noting that, there is some engineerings to have
Multiple activities (activity), and there are some applications to use an engineering.For example:In Android interface, Music and Video
It is two applications, but it is all this engineering of packages/apps/Music that they use.And in this engineering
In AndroidManifest.xml files, have and contain different activities (activity).
Fig. 4 shows that the structure of the device adjusted of another notice corresponding A pp according to an embodiment of the invention is shown
It is intended to;As shown in figure 4, a kind of device 400 adjusted of notice corresponding A pp, described device is including such as lower module:
Receiver module 410, the request for receiving call notification corresponding A pp;This request is often clicked on logical in user
Know what is realized during the icon in column.When user clicks on certain message informing in informing, equivalent to have issued call notification
The request of corresponding App.
Judge module 420, for determining whether that authority calls the Activity components of the App, if then direct
Call the Activity components;This calling is also to be realized by Intent.
So how to start an ActivityThis process includes three steps:
1. generate one and be intended to object (namely Intent);
2. the SetClass methods of Intent objects are called;
3. the method for calling the startActivity in current Activity derived class.
Activity is the component for most directly being contacted with user during Android is applied, and it is responsible for loading View components, makes
It is presented to user, and keeps being interacted with user.All of Activity components are required to inherit Activity classes, and this is one
The indirect subclass of individual Context, has packed the fundamental characteristics of some Activity.
View components are all UI components, the base class of container assemblies, that is to say, that it can be a layout container,
Can be the basic UI components in a layout container.View components are typically defined by XML layout resource file, while
Android system also realizes class to these View components there is provided corresponding.If necessary by certain Activity specified
View components show that call setContentView () method of Activity, it has multiple heavy duty sides
Method, can transmit an XML resource ID or View objects.
Activity is that Android is applied there is provided a user interface, and after an Activity is unlocked, it has
There is the life cycle of oneself.Activity classes also provide corresponding method to these life cycles, if necessary to right
Activity each different life cycle is responded, and can rewrite the realization of these life cycle methodologies.For most of business
Multiple Activity are contained for industry application, in whole system, progressively navigation is redirected and opens these Activity in the application
Afterwards, the rollback stack of Activity can be formed, Activity that is currently displaying and obtaining focus is located at the stack top of this rollback stack.
Service calling module 430, for calling Service components by Intent;Specific method is as follows:
By transmit an Intent object to Context.startService () will start a Service (or to
The service being currently running is given with a new instruction).Android calls the onStart () method of service and by Intent objects
Pass to it.
It is similar, Intent can be called component passes to Context.bindService () to obtain one
The connection of the individual destination service being currently running.This service can call acquisition this Intent pairs via onBind () method
As (if service not yet starts, bindService () can first start it).Such as, before an activity can be connected to
The music playback service stated, and it is supplied to user one exercisable (user interface) to be controlled with to playback.This
Activity can call bindService () to set up connection, then call the object defined in service to influence playback.
Shell calling module 440, for by Service component call Shell orders;Service components are by performing letter
Number calls Shell orders.
Detailed process is as follows:
Adb shell am startservice-n { bag (package) name }/{ bag name } { service (service) title }
Such as start a service in oneself application:
adb shell am startservice
–ncom.android.traffic/com.android.traffic.maniservice。
Application program has adjusted module 450, for the Activity components by App described in Shell command calls, so as to adjust
Play the App.Shell orders directly invoke the Activity components of the App by executable program.The executable program
It is am start activity.
The method of startup is:
adb shell
#am start-n { bag (package) name }/{ bag name } { movable (activity) title }
Obtained in the file of the AndroidManifest.xml that the entrance class of program can be applied from each, with calculator
(calculator) as a example by, it
<manifest
xmlns:Android=" http://schemas.android.com/apk/res/android"…
Package=" com.android.calculator2 " ...>…
Thus the startup method of calculator (calculator) is:#am start-n
com.android.calculator2/com.android.calculator2.Calculator。
Ordinary circumstance wishes that an Android is using one engineering of correspondence.It is worth noting that, there is some engineerings to have
Multiple activities (activity), and there are some applications to use an engineering.For example:In Android interface, Music and Video
It is two applications, but it is all this engineering of packages/apps/Music that they use.And in this engineering
In AndroidManifest.xml files, have and contain different activities (activity).
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment provided herein.
Various fexible units can also be used together with based on teaching in this.As described above, construct required by this kind of device
Structure be obvious.Additionally, the present invention is not also directed to any certain programmed language.It is understood that, it is possible to use it is various
Programming language realizes the content of invention described herein, and the description done to language-specific above is to disclose this hair
Bright preferred forms.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be put into practice in the case of without these details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify one or more that the disclosure and helping understands in each inventive aspect, exist
Above to the description of exemplary embodiment of the invention in, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.More precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, and wherein each claim is in itself
All as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Unit or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, can use any
Combine to all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power
Profit is required, summary and accompanying drawing) disclosed in each feature can the alternative features of or similar purpose identical, equivalent by offer carry out generation
Replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment required for protection is appointed
One of meaning mode can be used in any combination.
All parts embodiment of the invention can be realized with hardware, or be run with one or more processor
Software module realize, or with combinations thereof realize.It will be understood by those of skill in the art that can use in practice
Microprocessor or digital signal processor (DSP) are come in the creating device for realizing virtual machine according to embodiments of the present invention
The some or all functions of a little or whole parts.The present invention is also implemented as performing method as described herein
Some or all equipment or program of device (for example, computer program and computer program product).Such realization
Program of the invention can be stored on a computer-readable medium, or can have the form of one or more signal.This
The signal of sample can be downloaded from internet website and obtained, or be provided on carrier signal, or be carried in any other form
For.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol being located between bracket should not be configured to limitations on claims.Word "comprising" is not excluded the presence of not
Element listed in the claims or step.Word "a" or "an" before element is not excluded the presence of as multiple
Element.The present invention can come real by means of the hardware for including some different elements and by means of properly programmed computer
It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Embodiment of the invention discloses that A1, a kind of tune of notice corresponding A pp play method, comprise the following steps:
(1) request of call notification corresponding A pp is received;
(2) determine whether that authority calls the Activity components of the App, it is described if then directly invoking
Activity components, otherwise into step (3);
(3) Broadcast Receiver components are called by Intent;
(4) Broadcast Receiver component calls Shell orders;
(5) the Activity components of App described in Shell command calls, so as to adjust the App.
A2, the tune of notice corresponding A pp as described in A1 play method, call the life of the BroadcastReceiver components
Order is stored in advance in Intent.
A3, the tune of notice corresponding A pp as described in A1 play method, and Broadcast Receiver components are by performing function
Call Shell orders.
A4, the tune of notice corresponding A pp as described in A1 play method, and Shell orders directly invoke institute by executable program
State the Activity components of App.
A5, the tune of notice corresponding A pp as described in A4 play method, and the executable program is amstart activity.
A6, a kind of tune of notice corresponding A pp play method, comprise the following steps:
(1) request of call notification corresponding A pp is received;
(2) determine whether that authority calls the Activity components of the App, it is described if then directly invoking
Activity components, otherwise into step (3);
(3) Service components are called by Intent;
(4) Service component calls Shell orders;
(5) the Activity components of App described in Shell command calls, so as to adjust the App.
A7, the tune of notice corresponding A pp as described in A6 play method, call the order of the Service components to prestore
In Intent.
A8, the tune of notice corresponding A pp as described in A6 play method, and Service components are ordered by performing function call Shell
Order.
A9, the tune of notice corresponding A pp as described in A6 play method, and Shell orders directly invoke institute by executable program
State the Activity components of App.
A10, the tune of notice corresponding A pp as described in A9 play method, and the executable program is amstart activity.
A11, a kind of tune lifting device of notice corresponding A pp, described device include such as lower module:
Receiver module, the request for receiving call notification corresponding A pp;
Judge module, for determining whether that authority calls the Activity components of the App, if then directly invoking
The Activity components;
Broadcast calling module, for calling BroadcastReceiver components by Intent;
Shell calling module, for by BroadcastReceiver component call Shell orders;
Application program has adjusted module, for the Activity components by App described in Shell command calls, so as to adjust
The App.
The tune lifting device of A12, notice corresponding A pp as described in A11, calls the BroadcastReceiver components
Order is stored in advance in Intent.
The tune lifting device of A13, notice corresponding A pp as described in A11, Broadcast Receiver components are by performing letter
Number calls Shell orders.
The tune lifting device of A14, notice corresponding A pp as described in A11, Shell orders are directly invoked by executable program
The Activity components of the App.
The tune lifting device of A15, notice corresponding A pp as described in A11, the executable program is amstart
activity。
A16, a kind of tune lifting device of notice corresponding A pp, described device include such as lower module:
Receiver module, the request for receiving call notification corresponding A pp;
Judge module, for determining whether that authority calls the Activity components of the App, if then directly invoking
The Activity components;
Service calling module, for calling Service components by Intent;
Shell calling module, for by Service component call Shell orders;
Application program has adjusted module, for the Activity components by App described in Shell command calls, so as to adjust
The App.
The tune lifting device of A17, notice corresponding A pp as described in A16, calls the order of the Service components to deposit in advance
Storage is in Intent.
The tune lifting device of A18, notice corresponding A pp as described in A16, Service components are by performing function call Shell
Order.
The tune lifting device of A19, notice corresponding A pp as described in A16, Shell orders are directly invoked by executable program
The Activity components of the App.
The tune lifting device of A20, notice corresponding A pp as described in A19, the executable program is amstart
activity。
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention
God and scope.So, if these modifications of the invention and modification are belonged to the model of the claims in the present invention and its equivalent technology
Within enclosing, then the present invention is also intended to comprising these changes and modification.
Claims (10)
1. a kind of tune for notifying corresponding A pp plays method, it is characterised in that comprise the following steps:
(1) request of call notification corresponding A pp is received;
(2) determine whether that authority calls the Activity components of the App, if then directly invoking the Activity groups
Part, otherwise into step (3);
(3) Broadcast Receiver components are called by Intent;
(4) Broadcast Receiver component calls Shell orders;
(5) the Activity components of App described in Shell command calls, so as to adjust the App.
2. the tune for notifying corresponding A pp as claimed in claim 1 plays method, it is characterised in that:
The order of the BroadcastReceiver components is called to be stored in advance in Intent.
3. the tune for notifying corresponding A pp as claimed in claim 1 plays method, it is characterised in that:
Broadcast Receiver components are by performing function call Shell orders.
4. the tune for notifying corresponding A pp as claimed in claim 1 plays method, it is characterised in that:
Shell orders directly invoke the Activity components of the App by executable program.
5. the tune for notifying corresponding A pp as claimed in claim 4 plays method, it is characterised in that:
The executable program is am start activity.
6. a kind of tune for notifying corresponding A pp plays method, it is characterised in that comprise the following steps:
(1) request of call notification corresponding A pp is received;
(2) determine whether that authority calls the Activity components of the App, if then directly invoking the Activity groups
Part, otherwise into step (3);
(3) Service components are called by Intent;
(4) Service component calls Shell orders;
(5) the Activity components of App described in Shell command calls, so as to adjust the App.
7. a kind of tune lifting device for notifying corresponding A pp, it is characterised in that described device includes such as lower module:
Receiver module, the request for receiving call notification corresponding A pp;
Judge module, it is described if then directly invoking for determining whether that authority calls the Activity components of the App
Activity components;
Broadcast calling module, for calling Broadcast Receiver components by Intent;
Shell calling module, for by Broadcast Receiver component call Shell orders;
Application program has adjusted module, for the Activity components by App described in Shell command calls, so as to adjust described
App。
8. the tune lifting device of corresponding A pp is notified as claimed in claim 7, it is characterised in that:
The order of the BroadcastReceiver components is called to be stored in advance in Intent.
9. a kind of tune lifting device for notifying corresponding A pp, it is characterised in that described device includes such as lower module:
Receiver module, the request for receiving call notification corresponding A pp;
Judge module, it is described if then directly invoking for determining whether that authority calls the Activity components of the App
Activity components;
Service calling module, for calling Service components by Intent;
Shell calling module, for by Service component call Shell orders;
Application program has adjusted module, for the Activity components by App described in Shell command calls, so as to adjust described
App。
10. the tune lifting device of corresponding A pp is notified as claimed in claim 9, it is characterised in that:
The order of the Service components is called to be stored in advance in Intent.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611250173.4A CN106843937B (en) | 2016-12-29 | 2016-12-29 | Method and device for notifying corresponding App to be called up |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611250173.4A CN106843937B (en) | 2016-12-29 | 2016-12-29 | Method and device for notifying corresponding App to be called up |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106843937A true CN106843937A (en) | 2017-06-13 |
CN106843937B CN106843937B (en) | 2020-08-28 |
Family
ID=59115296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611250173.4A Active CN106843937B (en) | 2016-12-29 | 2016-12-29 | Method and device for notifying corresponding App to be called up |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106843937B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108132803A (en) * | 2018-01-17 | 2018-06-08 | 吉浦斯信息咨询(深圳)有限公司 | Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal |
CN108304227A (en) * | 2018-01-17 | 2018-07-20 | 吉浦斯信息咨询(深圳)有限公司 | A kind of online wake-up system, method, terminal and medium |
CN109800566A (en) * | 2017-11-16 | 2019-05-24 | 中移(杭州)信息技术有限公司 | A kind of management-control method of application program, device and equipment |
CN109814798A (en) * | 2019-01-17 | 2019-05-28 | Oppo广东移动通信有限公司 | Ear returns function control method, device and mobile terminal |
WO2019136848A1 (en) * | 2018-01-11 | 2019-07-18 | 武汉斗鱼网络科技有限公司 | Method for preventing broadcast unregistration anomaly, storage medium, device, and system |
CN110795074A (en) * | 2018-08-01 | 2020-02-14 | 腾讯科技(深圳)有限公司 | Application data processing method and device, computer equipment and storage medium |
CN111198723A (en) * | 2018-11-19 | 2020-05-26 | 深圳市优必选科技有限公司 | Process injection method, terminal equipment and computer readable storage medium |
CN111984340A (en) * | 2020-08-20 | 2020-11-24 | 北京像素软件科技股份有限公司 | Application program starting method and device, readable storage medium and electronic equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130000561A (en) * | 2011-06-23 | 2013-01-03 | 에스케이텔레콤 주식회사 | Method for reliable operating of application in the event of broadcast in android environment |
CN104375861A (en) * | 2014-11-04 | 2015-02-25 | 北京奇虎科技有限公司 | Installation-free operation method and device for application programs based on Android platform and terminal |
CN104423934A (en) * | 2013-08-25 | 2015-03-18 | 上海莞东拿信息科技有限公司 | Android platform system based journey flight dynamic notification system and method |
CN104462980A (en) * | 2014-12-30 | 2015-03-25 | 北京奇虎科技有限公司 | Authority management method, device and system of application programs and mobile terminal |
CN105094908A (en) * | 2015-07-24 | 2015-11-25 | 北京金山安全软件有限公司 | Application program starting method and device and mobile device |
US20160042191A1 (en) * | 2014-08-11 | 2016-02-11 | North Carolina State University | Programmable interface for extending security of application-based operating system, such as android |
CN105912223A (en) * | 2015-12-12 | 2016-08-31 | 乐视移动智能信息技术(北京)有限公司 | Method and device for notifying application message of mobile terminal |
CN106126232A (en) * | 2016-06-22 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of interface starts method and device |
-
2016
- 2016-12-29 CN CN201611250173.4A patent/CN106843937B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130000561A (en) * | 2011-06-23 | 2013-01-03 | 에스케이텔레콤 주식회사 | Method for reliable operating of application in the event of broadcast in android environment |
CN104423934A (en) * | 2013-08-25 | 2015-03-18 | 上海莞东拿信息科技有限公司 | Android platform system based journey flight dynamic notification system and method |
US20160042191A1 (en) * | 2014-08-11 | 2016-02-11 | North Carolina State University | Programmable interface for extending security of application-based operating system, such as android |
CN104375861A (en) * | 2014-11-04 | 2015-02-25 | 北京奇虎科技有限公司 | Installation-free operation method and device for application programs based on Android platform and terminal |
CN104462980A (en) * | 2014-12-30 | 2015-03-25 | 北京奇虎科技有限公司 | Authority management method, device and system of application programs and mobile terminal |
CN105094908A (en) * | 2015-07-24 | 2015-11-25 | 北京金山安全软件有限公司 | Application program starting method and device and mobile device |
CN105912223A (en) * | 2015-12-12 | 2016-08-31 | 乐视移动智能信息技术(北京)有限公司 | Method and device for notifying application message of mobile terminal |
CN106126232A (en) * | 2016-06-22 | 2016-11-16 | 广东欧珀移动通信有限公司 | A kind of interface starts method and device |
Non-Patent Citations (1)
Title |
---|
WEIXIN_34055787: "BroadcastReceiver应用详解以及Android实现点击通知栏后,先启动应用再打开目标Activity", 《HTTPS://BLOG.CSDN.NET/WEIXIN_34055787/ARTICLE/DETAILS/92346984》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109800566A (en) * | 2017-11-16 | 2019-05-24 | 中移(杭州)信息技术有限公司 | A kind of management-control method of application program, device and equipment |
WO2019136848A1 (en) * | 2018-01-11 | 2019-07-18 | 武汉斗鱼网络科技有限公司 | Method for preventing broadcast unregistration anomaly, storage medium, device, and system |
CN108132803A (en) * | 2018-01-17 | 2018-06-08 | 吉浦斯信息咨询(深圳)有限公司 | Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal |
CN108304227A (en) * | 2018-01-17 | 2018-07-20 | 吉浦斯信息咨询(深圳)有限公司 | A kind of online wake-up system, method, terminal and medium |
CN108132803B (en) * | 2018-01-17 | 2021-02-12 | 吉浦斯信息咨询(深圳)有限公司 | Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal |
CN110795074A (en) * | 2018-08-01 | 2020-02-14 | 腾讯科技(深圳)有限公司 | Application data processing method and device, computer equipment and storage medium |
CN110795074B (en) * | 2018-08-01 | 2022-03-01 | 腾讯科技(深圳)有限公司 | Application data processing method and device, computer equipment and storage medium |
CN111198723A (en) * | 2018-11-19 | 2020-05-26 | 深圳市优必选科技有限公司 | Process injection method, terminal equipment and computer readable storage medium |
CN111198723B (en) * | 2018-11-19 | 2023-03-07 | 深圳市优必选科技有限公司 | Process injection method, terminal equipment and computer readable storage medium |
CN109814798A (en) * | 2019-01-17 | 2019-05-28 | Oppo广东移动通信有限公司 | Ear returns function control method, device and mobile terminal |
CN111984340A (en) * | 2020-08-20 | 2020-11-24 | 北京像素软件科技股份有限公司 | Application program starting method and device, readable storage medium and electronic equipment |
CN111984340B (en) * | 2020-08-20 | 2024-05-14 | 北京像素软件科技股份有限公司 | Application program starting method and device, readable storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106843937B (en) | 2020-08-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106843937A (en) | A kind of tune for notifying corresponding A pp plays method and device | |
US9038082B2 (en) | Resource abstraction via enabler and metadata | |
CN106293696B (en) | Method for displaying downloading and installing state of application program and corresponding device thereof | |
CN107203419A (en) | Intermodule call method, apparatus and system in application program | |
WO2012022835A2 (en) | Method and apparatus for managing application resources via policy rules | |
CN110933075B (en) | Service calling method and device, electronic equipment and storage medium | |
CN108089873A (en) | A kind of method and terminal of application component immediate updating | |
US9628939B2 (en) | Data calling method and device | |
CN109901881A (en) | Plug-in loading method, device, computer equipment and the storage medium of application program | |
CN111221630A (en) | Business process processing method, device, equipment, readable storage medium and system | |
CN108845800B (en) | Method, device, equipment and storage medium for realizing component extension function | |
CN106775952A (en) | A kind of process management method and device of Android application | |
CN111225018A (en) | Request message processing method and device and electronic equipment | |
CN104375831B (en) | Realize the methods, devices and systems of the webpage and inter-application communication on terminal device | |
CN108920211A (en) | The starting method and device of Launcher application program, electronic equipment, storage medium | |
CN109753201A (en) | A kind of method and device of the application display icon of customized vehicle-mounted desktop | |
JP6685313B2 (en) | Multi-account login and communication method, device, and mobile terminal | |
CN106528206A (en) | Application starting control method and apparatus, and application installation package reinforcement apparatus | |
CN110083355B (en) | APP page processing method and device | |
WO2023051466A1 (en) | Communication method, apparatus and system | |
CN116795673A (en) | System testing method and device, electronic equipment and storage medium | |
KR20130000561A (en) | Method for reliable operating of application in the event of broadcast in android environment | |
EP3848800B1 (en) | Method and apparatus for displaying message box, terminal and storage medium | |
CN107688475B (en) | Method for quoting Swift language class library based on IOS system software development kit | |
CN111221651A (en) | Load balancing configuration method and device, server and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |