TWI460661B - System for closing programs executing on mobile and method thereof - Google Patents

System for closing programs executing on mobile and method thereof Download PDF

Info

Publication number
TWI460661B
TWI460661B TW101136460A TW101136460A TWI460661B TW I460661 B TWI460661 B TW I460661B TW 101136460 A TW101136460 A TW 101136460A TW 101136460 A TW101136460 A TW 101136460A TW I460661 B TWI460661 B TW I460661B
Authority
TW
Taiwan
Prior art keywords
user interface
program
interface program
target object
ending
Prior art date
Application number
TW101136460A
Other languages
Chinese (zh)
Other versions
TW201415372A (en
Inventor
Hui Wang
Ke Ding
Original Assignee
Inventec Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to TW101136460A priority Critical patent/TWI460661B/en
Publication of TW201415372A publication Critical patent/TW201415372A/en
Application granted granted Critical
Publication of TWI460661B publication Critical patent/TWI460661B/en

Links

Description

移動終端中結束程式之系統及其方法System and method for ending program in mobile terminal

一種程式行程控制系統及其方法,特別係指一種移動終端中結束程式之系統及其方法。A program stroke control system and method thereof, in particular, a system and method for ending a program in a mobile terminal.

使用者介面(User Interface,UI),是電腦軟硬體與使用者之間進行資訊交換的媒介,凡參與人類與機械的資訊交流的領域都存在著使用者介面。使用者介面使得使用者能夠方便有效率地去操作電腦軟硬體以達成雙向之互動,完成所希望藉助電腦完成之工作。使用者和電腦軟硬體之間一般用受限制的自然語言進行互動,但隨著視窗作業系統的普及,目前的使用者介面大多是以圖形使用者介面(Graphics User Interface,GUI)的方式呈現。The user interface (UI) is a medium for information exchange between computer hardware and software and users. There is a user interface in the field of information exchange between humans and machinery. The user interface enables the user to conveniently and efficiently operate the computer software and hardware to achieve two-way interaction and accomplish the work that is desired to be done by the computer. The user and the computer software and hardware generally interact with the restricted natural language. However, with the popularity of the Windows operating system, the current user interface is mostly presented by the Graphic User Interface (GUI). .

圖形使用者介面使用圖形的方式,幫助使用者方便地向電腦發出指令,啟動操作,並將運行的結果以圖形方式顯示給用戶。圖形用戶介面操作簡單,省去了使用字元使用者介面之使用者必須記憶各種命令的麻煩。The graphical user interface uses graphics to help the user easily issue commands to the computer, initiate operations, and graphically display the results to the user. The graphical user interface is simple to operate, eliminating the need for users who use the character user interface to remember various commands.

目前數位電子產品的作業系統通常以視窗化的介面呈現,每一個應用程式在執行後可以顯示一個主視窗,使用者可以在主視窗中操作以開啟子視窗,在需要時,子視窗還可以開啟子視窗,以此類推。At present, the operating system of digital electronic products is usually presented in a windowed interface. Each application can display a main window after execution. The user can operate in the main window to open the sub-window. When needed, the sub-window can also be opened. Child window, and so on.

目前,在開啟多層子視窗後,若是直接操作最先開啟的主視窗關閉應用程式或關閉所有開啟的子視窗,往往會造成後續開啟的部分子視窗沒有結束而占用系統資源(resource),因此,若要確實的關閉應用程式或關閉所有開啟的子視窗,往往需要依序從 最後打開的子視窗開始逐一關閉所有的子視窗,例如,在部分的作業系統中,需多次按下倒退(back)鍵,造成使用者的不便。At present, after opening the multi-layer sub-window, if the main window that is opened first directly closes the application or closes all open sub-windows, it will often cause some sub-windows that are subsequently opened to end without occupying system resources (resource). To actually close the application or close all open child windows, you often need to The last opened child window starts to close all the child windows one by one. For example, in some operating systems, the back button needs to be pressed multiple times, causing inconvenience to the user.

綜上所述,可知先前技術中長期以來一直存在無法便捷的透過子視窗確實關閉應用程式的所有子視窗而造成資源佔用的問題,因此有必要提出改進的技術手段,來解決此一問題。In summary, it can be seen that in the prior art, there has been a long-standing problem that resources cannot be conveniently used to completely close all sub-windows of an application through a sub-window. Therefore, it is necessary to propose an improved technical means to solve this problem.

有鑒於先前技術存在無法透過子視窗確實關閉應用程式的所有子視窗的問題,本發明遂揭露一種移動終端中結束程式之系統及其方法,其中:本發明所揭露之移動終端中結束程式之系統,應用於應用程式中,至少包含:目標物件;第一使用者介面程式(User Interface Program),用以於第一使用者介面程式結束時,設定(get)目標物件;第二使用者介面程式,用以顯示功能介面,功能介面包含觸發第一使用者介面程式開始執行之特定事件,使第二使用者介面程式與第一使用者介面程式同時被執行,及用以判斷目標物件被設定時,結束第二使用者介面程式。In view of the prior art, there is a problem that all sub-windows of an application cannot be closed through a sub-window, and the present invention discloses a system for ending a program in a mobile terminal and a method thereof, wherein: a system for ending a program in a mobile terminal disclosed in the present invention And applied to the application, at least: the target object; the first user interface program (User Interface Program), used to set (get) the target object when the first user interface program ends; the second user interface program For displaying a function interface, the function interface includes a specific event that triggers the first user interface program to start execution, and the second user interface program is executed simultaneously with the first user interface program, and is used to determine when the target object is set. End the second user interface program.

本發明所揭露之移動終端中結束程式之方法,應用於應用程式中,應用程式同時運行有第一使用者介面程式及第二使用者介面程式,第一使用者介面程式是在第二使用者介面程式所顯示之功能介面中之特定事件被觸發後開始執行,其步驟至少包括:於應用程式中提供目標物件;第一使用者介面程式顯示功能介面;當第一使用者介面程式結束時,設定目標物件;第二使用者介面程式判斷目標物件被設定時,結束第二使用者介面程式。The method for ending a program in the mobile terminal disclosed in the present invention is applied to an application, wherein the application runs a first user interface program and a second user interface program, and the first user interface program is in the second user. After the specific event in the function interface displayed by the interface program is triggered, the step of at least: providing the target object in the application; the first user interface program displaying the function interface; when the first user interface program ends, The target object is set; when the second user interface program determines that the target object is set, the second user interface program is ended.

本發明所揭露之系統與方法如上,與先前技術之間的差異在 於本發明透過應用程式中的第一使用者介面程式結束時,設定(set)目標物件,當應用程式中之第二使用者介面程式判斷目標物件被設定時,結束第二使用者介面程式,藉以解決先前技術所存在的問題,並可以達成減少資源佔用的技術功效。The system and method disclosed by the present invention are as above, and the difference between the prior art and the prior art is When the first user interface program in the application ends, the target object is set, and when the second user interface program in the application determines that the target object is set, the second user interface program is ended. In order to solve the problems existing in the prior art, and to achieve the technical effect of reducing resource occupation.

以下將配合圖式及實施例來詳細說明本發明之特徵與實施方式,內容足以使任何熟習相關技藝者能夠輕易地充分理解本發明解決技術問題所應用的技術手段並據以實施,藉此實現本發明可達成的功效。The features and embodiments of the present invention will be described in detail below with reference to the drawings and embodiments, which are sufficient to enable those skilled in the art to fully understand the technical means to which the present invention solves the technical problems, and The achievable effects of the present invention.

本發明應用在執行於可攜裝置的應用程式中,當應用程式同時執行多個使用者介面程式(User Interface Program)時,若應用程式中的某個使用者介面程式被結束,則被結束的使用者介面程式會主動或被動的通知其他使用者介面程式,使得其他需要結束的使用者介面程式也一併結束,避免有使用者介面程式應該結束卻未結束而佔用資源。The present invention is applied to an application executed in a portable device. When the application simultaneously executes a plurality of user interface programs, if a user interface program in the application is ended, the application is ended. The user interface program will actively or passively notify other user interface programs, so that other user interface programs that need to be completed will also end, avoiding the user interface program should end but not end and occupy resources.

本發明所提到的使用者介面程式(包含第一使用者介面程式與第二使用者介面程式)可以提供與使用者互動的功能介面,例如,某些程式語言中的「Activity」物件等。The user interface program (including the first user interface program and the second user interface program) mentioned in the present invention can provide a function interface for interacting with the user, for example, an "Activity" object in some programming languages.

以下先以「第1A圖」本發明所提之移動終端中結束程式之系統架構圖來說明本發明的系統運作。如「第1A圖」所示,本發明之系統含有目標物件110、第一使用者介面程式120、以及第二使用者介面程式130。Hereinafter, the system operation of the present invention will be described with reference to the system architecture diagram of the end program in the mobile terminal proposed by the present invention in "FIG. 1A". As shown in FIG. 1A, the system of the present invention includes a target object 110, a first user interface program 120, and a second user interface program 130.

目標物件110負責記錄是否結束與第一使用者介面程式120相關的所有第二使用者介面程式130,若是,則目標物件110會被 設定(set),若否,則目標物件110沒有被設定。The target object 110 is responsible for recording whether to end all the second user interface programs 130 associated with the first user interface program 120, and if so, the target object 110 will be Set, if not, the target object 110 is not set.

在部分的實施例中,目標物件110可以是應用程式100中的全域變數(global variable),當目標物件110被設定時,表示目標物件110不為0(通常為1),當目標物件110沒有被設定時,目標物件110通常為0,但本發明並不以此為限。In some embodiments, the target object 110 may be a global variable in the application 100. When the target object 110 is set, it indicates that the target object 110 is not 0 (usually 1), when the target object 110 does not. When set, the target object 110 is usually 0, but the invention is not limited thereto.

另外,同樣在部分的實施例中,應用程式100的所有使用者介面程式都與其他的使用者介面程式相關,但本發明並不以此為限。In addition, in some embodiments, all user interface programs of the application 100 are related to other user interface programs, but the invention is not limited thereto.

第一使用者介面程式120負責顯示功能介面,第一使用者介面程式120所顯示的功能介面至少包含結束應用程式100的第一按鈕(button)。在部分的實施例中,第一使用者介面程式120所顯示的功能介面還可以包含結束第一使用者介面程式120的第二按鈕,但本發明並不以此為限。The first user interface program 120 is responsible for displaying the function interface. The function interface displayed by the first user interface program 120 includes at least a first button for ending the application 100. In some embodiments, the function interface displayed by the first user interface program 120 may further include a second button for ending the first user interface program 120, but the invention is not limited thereto.

第一使用者介面程式120在結束時,也就是第一使用者介面程式120會在應用程式100將要結束,或是在需要結束所有相關的第二使用者介面程式130時,設定目標物件110。At the end of the first user interface program 120, that is, the first user interface program 120 will end the application 100, or set the target object 110 when it is necessary to end all of the associated second user interface programs 130.

第二使用者介面程式130同樣負責顯示功能介面,第二使用者介面程式130所顯示的功能介面至少包含觸發第一使用者介面程式120開始執行的特定事件,例如,功能介面中之按鈕或核取方塊(checkbox)等物件的點擊事件等。The second user interface program 130 is also responsible for displaying the function interface. The function interface displayed by the second user interface program 130 includes at least a specific event that triggers the first user interface program 120 to start executing, for example, a button or a core in the function interface. Take click events such as checkboxes.

一般而言,第一使用者介面程式120所顯示的功能介面位於第二使用者介面程式130所顯示之功能介面的上層,也就是說,當第一使用者介面程式120開始執行而顯示功能介面時,第一使用者介面程式120所顯示的功能介面會取得焦點(focus)。In general, the function interface displayed by the first user interface program 120 is located on the upper layer of the function interface displayed by the second user interface program 130, that is, when the first user interface program 120 starts executing, the function interface is displayed. At the same time, the function interface displayed by the first user interface program 120 will achieve focus.

第二使用者介面程式130負責在判斷出目標物件110被設定時,結束第二使用者介面程式130。在部分的實施例中,第二使用者介面程式130是在「onStart」方法中讀取目標物件110的值,藉以判斷目標物件110是否被設定。The second user interface program 130 is responsible for terminating the second user interface program 130 when it is determined that the target object 110 is set. In some embodiments, the second user interface program 130 reads the value of the target object 110 in the "onStart" method to determine whether the target object 110 is set.

接著以第一實施例來解說本發明的運作系統與方法,並請參照「第2A圖」本發明所提之移動終端中結束程式之方法流程圖。Next, the operation system and method of the present invention will be explained in the first embodiment, and the flow chart of the method for ending the program in the mobile terminal according to the present invention will be described with reference to "2A".

在本實施例中,假設執行於可攜裝置上的應用程式100中有三個使用者介面程式同時被執行,在三個使用者介面程式中,有一個使用者介面程式所顯示的功能介面包含結束應用程式100的第一按鈕。在本實施例中,假設會顯示結束應用程式100的第一按鈕的使用者介面程式為本發明所提之第一使用者介面程式,另外兩個使用者介面程式則為本發明所提之第二使用者介面程式,且第一使用者介面程式會在第二使用者介面程式所顯示之功能介面中的特定事件被觸發(trigger)時開始執行,另外,也假設第一使用者介面程式所顯示的功能介面在另外兩個第二使用者介面程式所顯示之功能介面的上層,使得使用者只能操作第一使用者介面程式所顯示的功能介面,直到使用者關閉第一使用者介面程式所顯示的功能介面,也就是結束第一使用者介面程式為止。In this embodiment, it is assumed that three user interface programs are executed at the same time in the application 100 executed on the portable device. In the three user interface programs, a function interface displayed by the user interface program includes the end. The first button of the application 100. In this embodiment, it is assumed that the user interface program for ending the first button of the application 100 is the first user interface program proposed by the present invention, and the other two user interface programs are the first a user interface program, and the first user interface program is executed when a specific event in the function interface displayed by the second user interface program is triggered, and the first user interface program is also assumed The function interface of the display is on the upper layer of the function interface displayed by the other two second user interface programs, so that the user can only operate the function interface displayed by the first user interface program until the user closes the first user interface program. The function interface displayed, that is, the end of the first user interface program.

第一使用者介面程式所顯示的功能介面除了包含結束應用程式100的第一按鈕之外,還可以包含結束第一使用者介面程式的第二按鈕。使用者如需結束應用程式100及應用程式100所包含的所有使用者介面程式時,可以點擊第一按鈕;若使用者只需關閉當前最上層顯示的功能介面,則可以點擊第二按鈕,如此,僅有第一使用者介面程式會結束,使得最上層顯示的功能介面也被 關閉,但應用程式100及應用程式100所包含的另外兩個第二使用者介面程式仍然會保持正常運行。The function interface displayed by the first user interface program may include a second button for ending the first user interface program in addition to the first button of the end application 100. If the user needs to end all the user interface programs included in the application 100 and the application 100, the first button can be clicked; if the user only needs to close the function interface of the current uppermost display, the second button can be clicked. Only the first user interface program will end, so that the function interface of the top display layer is also Closed, but the other two second user interface programs included in the application 100 and the application 100 will still be in normal operation.

首先,應用程式100可以提供一個目標物件110(步驟201)。在本實施例中,假設目標物件110為一個預先配置在應用程式100中,資料型態為布林(Boolean)值的全域變數。First, the application 100 can provide a target object 110 (step 201). In this embodiment, it is assumed that the target object 110 is a global variable that is pre-configured in the application 100 and whose data type is a Boolean value.

而後,當應用程式100中之第一使用者介面程式120被觸發而開始執行時,可以在最上層顯示提供與使用者互動的功能介面(步驟210),若第一使用者介面程式120所顯示的第一按鈕被點擊時,第一使用者介面程式120會執行結束的「onDestroy」方法,在第一使用者介面程式120的「onDestroy」方法中,會設定目標物件110為「true」(步驟220)。Then, when the first user interface program 120 in the application 100 is triggered to start execution, the function interface for providing interaction with the user may be displayed on the uppermost layer (step 210), if the first user interface program 120 is displayed. When the first button is clicked, the first user interface program 120 executes the "onDestroy" method, and in the "onDestroy" method of the first user interface program 120, the target object 110 is set to "true" (step 220).

在第一使用者介面程式120結束後,其中一個第二使用者介面程式130會被回復(restart),因此,如「第2B圖」所示,該第二使用者介面程式130會執行顯示功能介面中之內容的「onStart」方法,在第二使用者介面程式130的「onStart」方法中,會讀取目標物件110,也就是讀取預先配置於應用程式100中的全域變數(步驟230),並判斷目標物件110是否被設定(步驟240)。若否,則第二使用者介面程式130會正常執行(步驟290),也就是會執行「onResume」方法。After the first user interface program 120 ends, one of the second user interface programs 130 will be restarted. Therefore, as shown in FIG. 2B, the second user interface program 130 performs the display function. The "onStart" method of the content in the interface reads the target object 110 in the "onStart" method of the second user interface program 130, that is, reads the global variable pre-configured in the application 100 (step 230). And determining whether the target object 110 is set (step 240). If not, the second user interface program 130 will execute normally (step 290), that is, the "onResume" method will be executed.

在本實施例中,由於目標物件110已被設定為「true」,第二使用者介面程式130會判斷目標物件110被設定,因此,第二使用者介面程式130會執行結束的「onDestroy」方法,藉以結束第二使用者介面程式130(步驟250)。In this embodiment, since the target object 110 has been set to "true", the second user interface program 130 determines that the target object 110 is set. Therefore, the second user interface program 130 executes the "onDestroy" method that ends. The second user interface program 130 is terminated (step 250).

在本實施例中,不論第二使用者介面程式130的「onDestroy」 方法是否有設定目標物件110為「true」,由於目標物件110已被第一使用者介面程式設定為「true」,因此,另一個第二使用者介面程式130在被回復時,也會如上述的過程結束執行。如此,透過本發明,在應用程式100結束前,應用程式100的所有使用者介面程式都會確實結束,避免資源的浪費。In this embodiment, regardless of the "onDestroy" of the second user interface program 130 The method is to set the target object 110 to "true". Since the target object 110 has been set to "true" by the first user interface program, the other second user interface program 130 will also be as described above when it is replied. The process ends. Thus, with the present invention, all user interface programs of the application 100 are surely terminated before the end of the application 100, thereby avoiding waste of resources.

以下再以「第1B圖」本發明所提之另一種移動終端中結束程式之系統架構圖來說明本發明的系統運作。如「第1B圖」所示,本發明之系統同樣含有目標物件110、第一使用者介面程式120、以及第二使用者介面程式130,且第一使用者介面程式120以及第二使用者介面程式130同樣都會顯示功能介面。與「第1A圖」不同的是,在「第1B圖」中,目標物件110不只一個,而是每一個第二使用者介面程式130中都有一個,但本發明不對第一使用者介面程式120是否包含目標物件110作特別的限制。Hereinafter, the system operation of the present invention will be described with reference to the system architecture diagram of the end program in another mobile terminal proposed by the present invention. As shown in FIG. 1B, the system of the present invention also includes a target object 110, a first user interface program 120, and a second user interface program 130, and the first user interface program 120 and the second user interface. The program 130 also displays the function interface. Different from "FIG. 1A", in "Block 1B", there is more than one target object 110, but one for each second user interface program 130, but the present invention does not have a first user interface program. Whether or not the target object 110 is included is specifically limited.

目標物件110負責記錄是否結束與第一使用者介面程式120相關的所有第二使用者介面程式。在部分的實施例中,目標物件110可以是在各個使用者介面程式中註冊的廣播物件,但本發明並不以此為限。The target object 110 is responsible for recording whether or not to terminate all of the second user interface programs associated with the first user interface program 120. In some embodiments, the target object 110 may be a broadcast object registered in each user interface program, but the invention is not limited thereto.

第一使用者介面程式120同樣會在結束時,設定目標物件110。在部分的實施例中,第一使用者介面程式120會在執行結束的「onDestory」方法中,以發出廣播的方式設定目標物件110,但本發明並不以此為限。The first user interface program 120 will also set the target object 110 at the end. In some embodiments, the first user interface program 120 sets the target object 110 in a broadcast manner in the "onDestory" method in which the execution ends, but the invention is not limited thereto.

一般而言,第一使用者介面程式120會在需要結束所有相關的第二使用者介面程式130時,設定目標物件110。在部分的實施例中,與第一使用者介面程式120相關的第二使用者介面程式130 為開啟該第一使用者介面程式120的第二使用者介面程式130,因此,第一使用者介面程式120位於第二使用者介面程式130上層,也就是說,第一使用者介面程式120取得焦點(focus),但本發明並不以此為限。In general, the first user interface program 120 sets the target object 110 when it is necessary to end all of the associated second user interface programs 130. In some embodiments, the second user interface program 130 associated with the first user interface program 120 To open the second user interface program 130 of the first user interface program 120, the first user interface program 120 is located above the second user interface program 130, that is, the first user interface program 120 is obtained. Focus, but the invention is not limited thereto.

第二使用者介面程式130負責在判斷出目標物件110被設定時,結束第二使用者介面程式130。在部分的實施例中,第二使用者介面程式130是在接收訊息的「onReceiver」方法中接收到第一使用者介面程式120所發出之設定目標物件110的廣播時,判斷目標物件110被設定。另外,第二使用者介面程式130還可以在判斷目標物件110被設定時,也就是結束第二使用者介面程式130前,將已經註冊的目標物件110反註冊(unregister)。The second user interface program 130 is responsible for terminating the second user interface program 130 when it is determined that the target object 110 is set. In some embodiments, the second user interface program 130 determines that the target object 110 is set when receiving the broadcast of the setting target object 110 issued by the first user interface program 120 in the "onReceiver" method of receiving the message. . In addition, the second user interface program 130 may also unregister the registered target object 110 before determining that the target object 110 is set, that is, before ending the second user interface program 130.

接著以第二實施例來解說本發明的運作系統與方法,同樣請參照「第2A圖」本發明所提之移動終端中結束程式之方法流程圖。Next, the operation system and method of the present invention will be explained in the second embodiment. Please refer to the "2A" diagram of the method for ending the program in the mobile terminal according to the present invention.

在本實施例中,若執行於可攜裝置上的應用程式100包含五個使用者介面程式,且該五個使用者介面程式中,每一個使用者介面程式是在另一個使用者介面程式所顯示之功能介面中的特定事件被觸發後開始執行,如此,五個使用者介面程式將同時被執行。假設會最後被執行的使用者介面程式為本發明所提之第一使用者介面程式,另外的四個使用者介面程式則為本發明所提之第二使用者介面程式。In this embodiment, if the application 100 executed on the portable device includes five user interface programs, and each of the five user interface programs is in another user interface program, The specific event in the displayed function interface is triggered and executed, so that the five user interface programs will be executed at the same time. It is assumed that the user interface program to be executed last is the first user interface program proposed by the present invention, and the other four user interface programs are the second user interface program proposed by the present invention.

首先,應用程式100中的每一個第二使用者介面程式130在執行資源配置的「onCreate」方法時,預先註冊(register)目標物件110,藉以讓應用程式100提供目標物件110(步驟201)。在本實施例中,假設目標物件110為廣播物件。First, each of the second user interface programs 130 in the application 100 registers the target object 110 in advance when the "onCreate" method of the resource configuration is executed, so that the application 100 provides the target object 110 (step 201). In the present embodiment, it is assumed that the target object 110 is a broadcast object.

若應用程式100中之第二使用者介面程式130所顯示之功能介面中的特定事件被觸發,使得應用程式100中的第一使用者介面程式120開始執行時,第一使用者介面程式120可以在最上層顯示功能介面(步驟210)。If a specific event in the function interface displayed by the second user interface program 130 in the application 100 is triggered, so that the first user interface program 120 in the application 100 starts executing, the first user interface program 120 can The function interface is displayed at the top level (step 210).

而後,在應用程式100中的第一使用者介面程式120結束時,第一使用者介面程式120會執行結束的「onDestroy」方法,在第一使用者介面程式120的「onDestroy」方法中,會傳送設定廣播物件(目標物件110)的廣播給所有的第二使用者介面程式130,藉以設定目標物件110(步驟220)。Then, when the first user interface program 120 in the application 100 ends, the first user interface program 120 executes the "onDestroy" method, and in the "onDestroy" method of the first user interface program 120, The broadcast of the set broadcast object (target object 110) is transmitted to all of the second user interface programs 130 to set the target object 110 (step 220).

當應用程式100中的第二使用者介面程式130接收到第一使用者介面程式120所傳送之設定目標物件110的廣播時,第二使用者介面程式130會判斷目標物件110被設定,因此,可以結束第二使用者介面程式130(步驟250),其中,第二使用者介面程式130更可以在結束前反註冊目標物件110。如此,透過本發明,與應用程式100中之第一使用者介面程式120相關的所有第二使用者介面程式130都會因為接收到第一使用者介面程式120在結束時所傳送的廣播,進而結束,使得應用程式100中與第一使用者介面程式120相關的所有第二使用者介面程式130都會確實結束,避免資源的浪費。When the second user interface program 130 in the application 100 receives the broadcast of the setting target object 110 transmitted by the first user interface program 120, the second user interface program 130 determines that the target object 110 is set, therefore, The second user interface program 130 can be ended (step 250), wherein the second user interface program 130 can further register the target object 110 before ending. Thus, through the present invention, all of the second user interface programs 130 associated with the first user interface program 120 in the application 100 are terminated by receiving the broadcast transmitted by the first user interface program 120 at the end. All second user interface programs 130 associated with the first user interface program 120 in the application 100 are indeed terminated, avoiding waste of resources.

綜上所述,可知本發明與先前技術之間的差異在於具有透過應用程式中的第一使用者介面程式結束時,設定目標物件,當應用程式中之第二使用者介面程式判斷目標物件被設定時,結束第二使用者介面程式之技術手段,藉由此一技術手段可以解決先前技術所存在無法透過子視窗確實關閉應用程式的所有子視窗的問 題,進而達成減少資源被應該結束之程式佔用的技術功效。In summary, it can be seen that the difference between the present invention and the prior art is that when the first user interface program in the application ends, the target object is set, and when the second user interface program in the application determines that the target object is When setting, the technical means of ending the second user interface program can solve the problem of the prior art that all sub-windows of the application cannot be closed through the sub-window. The problem, in turn, achieves the technical effect of reducing the amount of resources that should be used by the program that should end.

再者,本發明之移動終端中結束程式之方法,可實現於硬體、軟體或硬體與軟體之組合中,亦可在電腦系統中以集中方式實現或以不同元件散佈於若干互連之電腦系統的分散方式實現。Furthermore, the method for ending the program in the mobile terminal of the present invention can be implemented in hardware, software or a combination of hardware and software, or can be implemented in a centralized manner in a computer system or spread over several interconnections with different components. The decentralized way of implementing computer systems.

雖然本發明所揭露之實施方式如上,惟所述之內容並非用以直接限定本發明之專利保護範圍。任何本發明所屬技術領域中具有通常知識者,在不脫離本發明所揭露之精神和範圍的前提下,對本發明之實施的形式上及細節上作些許之更動潤飾,均屬於本發明之專利保護範圍。本發明之專利保護範圍,仍須以所附之申請專利範圍所界定者為準。While the embodiments of the present invention have been described above, the above description is not intended to limit the scope of the invention. Any modification of the form and details of the practice of the present invention, which is a matter of ordinary skill in the art to which the present invention pertains, is a patent protection of the present invention. range. The scope of the invention is to be determined by the scope of the appended claims.

100‧‧‧應用程式100‧‧‧Application

110‧‧‧目標物件110‧‧‧ Target objects

120‧‧‧第一使用者介面程式120‧‧‧First User Interface Program

130‧‧‧第二使用者介面程式130‧‧‧Second user interface program

步驟201‧‧‧於應用程式中提供目標物件Step 201‧‧‧ Provide the target object in the application

步驟210‧‧‧第一使用者介面程式顯示功能介面Step 210‧‧‧ first user interface program display function interface

步驟220‧‧‧當第一使用者介面程式結束時,設定目標物件Step 220‧‧‧ When the first user interface program ends, set the target object

步驟230‧‧‧第二使用者介面程式於顯示內容時,讀取目標物件Step 230‧‧‧ The second user interface program reads the target object when displaying the content

步驟240‧‧‧第二使用者介面程式判斷目標物件是否被設定Step 240‧‧‧ The second user interface program determines whether the target object is set

步驟250‧‧‧第二使用者介面程式判斷目標物件被設定時,結束第二使用者介面程式Step 250‧‧‧ When the second user interface program determines that the target object is set, the second user interface program is ended.

步驟290‧‧‧第二使用者介面程式正常執行Step 290‧‧‧The second user interface program is executed normally

第1A圖為本發明所提之移動終端中結束程式之系統架構圖。FIG. 1A is a system architecture diagram of an end program in a mobile terminal according to the present invention.

第1B圖為本發明所提之另一種移動終端中結束程式之系統架構圖。FIG. 1B is a system architecture diagram of an end program in another mobile terminal according to the present invention.

第2A圖為本發明所提之移動終端中結束程式之方法流程圖。FIG. 2A is a flow chart of a method for ending a program in a mobile terminal according to the present invention.

第2B圖為本發明所提之讀取目標物件之附加方法流程圖。FIG. 2B is a flow chart of an additional method for reading a target object according to the present invention.

步驟201‧‧‧於應用程式中提供目標物件Step 201‧‧‧ Provide the target object in the application

步驟210‧‧‧第一使用者介面程式顯示功能介面Step 210‧‧‧ first user interface program display function interface

步驟220‧‧‧當第一使用者介面程式結束時,設定目標物件Step 220‧‧‧ When the first user interface program ends, set the target object

步驟250‧‧‧第二使用者介面程式判斷目標物件被設定時,結束第二使用者介面程式Step 250‧‧‧ When the second user interface program determines that the target object is set, the second user interface program is ended.

Claims (10)

一種移動終端中結束程式之方法,係應用於一應用程式中,該應用程式同時運行有一第一使用者介面程式(User Interface Program)及至少一第二使用者介面程式,該第一使用者介面程式是在該第二使用者介面程式所顯示之功能介面中之一特定事件被觸發後開始執行,該方法至少包含下列步驟:於該應用程式中提供一目標物件;該第一使用者介面程式顯示功能介面;當該第一使用者介面程式結束時,設定(set)該目標物件;及該第二使用者介面程式判斷該目標物件被設定時,結束該第二使用者介面程式。A method for ending a program in a mobile terminal is applied to an application that simultaneously runs a first user interface program (User Interface Program) and at least a second user interface program, the first user interface The program is executed after one of the function interfaces displayed by the second user interface program is triggered, and the method includes at least the following steps: providing a target object in the application; the first user interface program Displaying a function interface; setting the target object when the first user interface program ends; and when the second user interface program determines that the target object is set, ending the second user interface program. 如申請專利範圍第1項所述之移動終端中結束程式之方法,其中該應用程式中之該第二使用者介面程式判斷該目標物件被設定之步驟更包含該第二使用者介面程式於回復顯示功能介面時,讀取(get)預先配置之一全域變數(global variable),藉以判斷該目標物件是否被設定之步驟。The method for ending a program in a mobile terminal according to the first aspect of the invention, wherein the second user interface program in the application determines that the target object is set to include the second user interface program in response When the function interface is displayed, one of the pre-configured global variables is used to determine whether the target object is set. 如申請專利範圍第1項所述之移動終端中結束程式之方法,其中該應用程式中之該第二使用者介面程式判斷該目標物件被設定之步驟是該第二使用者介面程式依據是否接收到設定預先註冊(register)之一廣播物件之廣播訊息判斷該目標物件是否被設定,若是,則該第二使用者介面程式判斷該目標物件被設定。The method for ending a program in a mobile terminal according to the first aspect of the invention, wherein the second user interface program in the application determines that the target object is set according to whether the second user interface program is received according to whether The broadcast message of the broadcast object is set to a pre-registration (register) to determine whether the target object is set, and if so, the second user interface program determines that the target object is set. 如申請專利範圍第1項所述之移動終端中結束程式之方法, 其中該第一使用者介面程式顯示功能介面之步驟包含顯示結束該應用程式、該第一使用者介面程式及該些第二使用者介面程式之第一按鈕,及顯示結束該第一使用者介面程式之第二按鈕。For example, in the method of terminating the program in the mobile terminal described in claim 1, The step of displaying the function interface of the first user interface program includes displaying a first button for ending the application, the first user interface program and the second user interface programs, and displaying the end of the first user interface The second button of the program. 如申請專利範圍第1項所述之移動終端中結束程式之方法,其中該方法於該第二使用者介面程式判斷該目標物件被設定之步驟時,更包含該第二使用者介面程式反註冊(unregister)該目標物件之步驟。The method for ending a program in a mobile terminal according to the first aspect of the invention, wherein the method further comprises the second user interface program unregistering when the second user interface program determines that the target object is set (unregister) the steps of the target object. 一種移動終端中結束程式之系統,係應用於一應用程式中,該系統至少包含:一目標物件;一第一使用者介面程式,用以於該第一使用者介面程式結束時,設定該目標物件;及至少一第二使用者介面程式,用以顯示一功能介面,該功能介面包含觸發該第一使用者介面程式開始執行之一特定事件,使該第二使用者介面程式與該第一使用者介面程式同時被執行,及用以判斷該目標物件被設定時,結束該第二使用者介面程式。A system for ending a program in a mobile terminal is applied to an application, the system includes at least: a target object; and a first user interface program for setting the target at the end of the first user interface program And the at least one second user interface program for displaying a function interface, the function interface includes triggering the first user interface program to start performing a specific event, and the second user interface program and the first The user interface program is executed at the same time, and when it is determined that the target object is set, the second user interface program is ended. 如申請專利範圍第6項所述之移動終端中結束程式之系統,其中該目標物件為預先配置之一全域變數,該第二使用者介面程式更用以於顯示內容時,讀取該全域變數,藉以判斷該目標物件是否被設定。The system for ending a program in a mobile terminal according to claim 6, wherein the target object is a pre-configured global variable, and the second user interface program is further configured to read the global variable when the content is displayed. To determine if the target object is set. 如申請專利範圍第6項所述之移動終端中結束程式之系統,其中該目標物件為預先註冊之一廣播物件,該第二使用者介 面程式是於接收到設定該廣播物件之廣播訊息時,判斷該目標物件被設定。The system for ending a program in a mobile terminal according to claim 6, wherein the target object is a pre-registered one of the broadcast objects, and the second user interface The face program determines that the target object is set when receiving the broadcast message setting the broadcast object. 如申請專利範圍第6項所述之移動終端中結束程式之系統,其中該第一使用者介面程式更用以顯示另一功能介面,該第一使用者介面程式所顯示之功能介面包含結束該應用程式、該第一使用者介面程式及該些第二使用者介面程式之第一按鈕,及結束該第一使用者介面程式之第二按鈕。The system for ending the program in the mobile terminal of claim 6, wherein the first user interface program is further configured to display another function interface, and the function interface displayed by the first user interface program includes ending The first button of the application, the first user interface program and the second user interface programs, and the second button for ending the first user interface program. 如申請專利範圍第6項所述之移動終端中結束程式之系統,其中該第二使用者介面程式更用以於結束前反註冊該目標物件。The system for ending a program in a mobile terminal according to claim 6, wherein the second user interface program is further used to deregister the target object before the end.
TW101136460A 2012-10-03 2012-10-03 System for closing programs executing on mobile and method thereof TWI460661B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101136460A TWI460661B (en) 2012-10-03 2012-10-03 System for closing programs executing on mobile and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101136460A TWI460661B (en) 2012-10-03 2012-10-03 System for closing programs executing on mobile and method thereof

Publications (2)

Publication Number Publication Date
TW201415372A TW201415372A (en) 2014-04-16
TWI460661B true TWI460661B (en) 2014-11-11

Family

ID=52388380

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101136460A TWI460661B (en) 2012-10-03 2012-10-03 System for closing programs executing on mobile and method thereof

Country Status (1)

Country Link
TW (1) TWI460661B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040025042A1 (en) * 2001-08-01 2004-02-05 Networks Associates Technology, Inc. Malware scanning user interface for wireless devices
US20120151553A1 (en) * 2005-11-16 2012-06-14 Azos Ai, Llc System, method, and apparatus for data cognition incorporating autonomous security protection

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040025042A1 (en) * 2001-08-01 2004-02-05 Networks Associates Technology, Inc. Malware scanning user interface for wireless devices
US20120151553A1 (en) * 2005-11-16 2012-06-14 Azos Ai, Llc System, method, and apparatus for data cognition incorporating autonomous security protection

Also Published As

Publication number Publication date
TW201415372A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
US10714090B2 (en) Virtual reality speech control method and apparatus
KR102076892B1 (en) Method and apparatus for managing background application
WO2019174546A1 (en) User interface display method and device, apparatus, and storage medium
TWI515655B (en) Method, system, and computer-readable memory for switching threads within routines
WO2020088167A1 (en) Application activation method, device, terminal and storage medium
WO2018127063A1 (en) Application data processing method and apparatus, and storage medium
WO2016034023A1 (en) Terminal triggering method and relevant device
KR20180125498A (en) Android-based pop-up prompt methods and devices
US10885695B2 (en) Configurable stylized transitions between user interface element states
TW201826109A (en) Method and apparatus for page presentation
US20150227269A1 (en) Fast response graphical user interface
WO2019047226A1 (en) Touch operation response method and device
TWI517020B (en) Method for determining status of control item
CN111176869B (en) Timeout detection method, device, equipment and storage medium
TWI460661B (en) System for closing programs executing on mobile and method thereof
CN109558187A (en) A kind of user interface rendering method and device
WO2023173726A1 (en) Interaction method and apparatus, and storage medium
EP3014426B1 (en) Self-revealing symbolic gestures
CN108681471A (en) Application control method, device, electronic equipment and readable storage medium storing program for executing
CN107168600B (en) Push message checking method and device
CN104837064B (en) The control method and media player of the media player of open operating system
US20130067474A1 (en) Language independent application object
US20120253765A1 (en) Method and system for designing, analysing and specifying a human-machine interface
WO2019047112A1 (en) Multi-system control method and control device, and mobile terminal
JP6528400B2 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING SYSTEM, CONTROL METHOD OF INFORMATION PROCESSING APPARATUS, AND PROGRAM

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees