Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4091966B2 - Electronic device, event providing method, program, and recording medium - Google Patents
[go: Go Back, main page]

JP4091966B2 - Electronic device, event providing method, program, and recording medium - Google Patents

Electronic device, event providing method, program, and recording medium Download PDF

Info

Publication number
JP4091966B2
JP4091966B2 JP2007128656A JP2007128656A JP4091966B2 JP 4091966 B2 JP4091966 B2 JP 4091966B2 JP 2007128656 A JP2007128656 A JP 2007128656A JP 2007128656 A JP2007128656 A JP 2007128656A JP 4091966 B2 JP4091966 B2 JP 4091966B2
Authority
JP
Japan
Prior art keywords
event
operation mode
application
unit
electronic device
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.)
Expired - Lifetime
Application number
JP2007128656A
Other languages
Japanese (ja)
Other versions
JP2007257660A (en
Inventor
大 神谷
和宏 山田
隆 近藤
直樹 山根
豊 鷲見
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Docomo Inc
Original Assignee
NTT Docomo Inc
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 NTT Docomo Inc filed Critical NTT Docomo Inc
Priority to JP2007128656A priority Critical patent/JP4091966B2/en
Publication of JP2007257660A publication Critical patent/JP2007257660A/en
Application granted granted Critical
Publication of JP4091966B2 publication Critical patent/JP4091966B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明は、複数のアプリケーションプログラムを同時に実行できないオペレーティングシステム(以後、OS)を搭載した電子機器においてアプリケーションプログラムを実行することで起動される処理単位であるアプリケーションへイベントを提供する電子機器、当該電子機器におけるアプリケーションへのイベント提供方法、当該電子機器を実現するプログラム、及び当該プログラムを記録した記録媒体に関する。   The present invention relates to an electronic device that provides an event to an application that is a processing unit activated by executing an application program in an electronic device equipped with an operating system (hereinafter referred to as an OS) that cannot simultaneously execute a plurality of application programs. The present invention relates to an event providing method for an application in a device, a program for realizing the electronic device, and a recording medium on which the program is recorded.

一般に、複数のアプリケーションプログラムを同時に実行できないOSを搭載した電子機器においてユーザ操作やタイマ割り込み等のイベントが発生すると、当該イベントはOSによって取得され、起動済みのアプリケーションへ提供される。起動済みのアプリケーションが存在しない場合には、イベントはアプリケーションへ提供されないのが原則である。しかし、この原則は、ある種の電子機器にとっては操作性の悪化を招く。端的な例は携帯電話機である。   In general, when an event such as a user operation or a timer interrupt occurs in an electronic device equipped with an OS that cannot execute a plurality of application programs at the same time, the event is acquired by the OS and provided to a started application. In principle, when there is no activated application, no event is provided to the application. However, this principle causes a deterioration in operability for certain electronic devices. A simple example is a mobile phone.

携帯電話機は、携帯性を確保するために搭載可能なメモリサイズ等に厳しい制約が設けられており、この結果として、複数のアプリケーションプログラムを同時に実行できないOSを搭載している。このような携帯電話機において、上記原則に従うと、何らかのイベントを待ち受ける待ち受け状態においてユーザが音声通話を開始する場合、ユーザはまず、音声通話を開始するための所定のキーを押下し、次にダイヤルキーを押下することになる。しかし、この手順では、ダイヤルキーの入力ミス等が発生すると、手順を中断して最初からやり直す必要がある。また、本来、携帯電話機は音声通話を行うためのものであり、まず所定のキーを押下しなければダイヤル操作を行えないというのは不便である。
そこで、携帯電話機では、待ち受け状態においてダイヤルキーが押下されると、音声通話を行うためのアプリケーションを起動し、このアプリケーションへ、当該押下イベントを提供できるようにしている。すなわち、上記原則に従っていないといえる。
A mobile phone has severe restrictions on the size of a memory that can be mounted in order to ensure portability. As a result, an OS that cannot execute a plurality of application programs is mounted. In such a cellular phone, according to the above principle, when a user starts a voice call in a standby state waiting for some event, the user first presses a predetermined key for starting the voice call, and then dials a key. Will be pressed. However, in this procedure, if a dial key input error or the like occurs, it is necessary to interrupt the procedure and start again. In addition, a mobile phone is originally intended for making a voice call, and it is inconvenient that a dial operation cannot be performed unless a predetermined key is first pressed.
Therefore, in the mobile phone, when a dial key is pressed in a standby state, an application for performing a voice call is activated, and the pressing event can be provided to this application. In other words, it can be said that the above principle is not followed.

上述した携帯電話機では、OSは、発生したイベントを未起動のアプリケーションへ提供することになる。このようなことが可能なのは、未起動のアプリケーションへ提供すべきイベントが発生するのは起動済みのアプリケーションが存在しない状況下に限られるようにシステムが設計されているためである。すなわち、携帯電話機の設計の自由度を制限することで未起動のアプリケーションへのイベント提供を可能としている。   In the mobile phone described above, the OS provides an event that has occurred to an unstarted application. This is possible because the system is designed so that an event to be provided to an unstarted application occurs only in a situation where no started application exists. In other words, it is possible to provide an event to an unstarted application by limiting the degree of freedom in designing the mobile phone.

ところで、近年、移動通信網経由でダウンロードしたコンピュータプログラムを保存し、これを任意の時点で実行することができる携帯電話機が市販されており、ユーザが携帯電話機に機能を追加できるようになってきている。この種の携帯電話機であれば、ユーザの多様なニーズに対応できるという利点がある。しかし、ユーザが携帯電話機に機能を追加できるということは、携帯電話機の設計の自由度の制限が緩和されていることに他ならず、この傾向は今後も続くと予想される。つまり、起動済みのアプリケーションが存在してもしなくても未起動のアプリケーションへ提供すべきイベントが発生し得るという状況に対処できることが今後の携帯電話機に望まれる。   By the way, in recent years, mobile phones that can store a computer program downloaded via a mobile communication network and execute the computer program at an arbitrary time are commercially available, and a user can add functions to the mobile phone. Yes. This type of mobile phone has the advantage of being able to meet various user needs. However, the fact that a user can add a function to a mobile phone is nothing but a restriction on the degree of freedom in designing the mobile phone, and this trend is expected to continue. That is, it is desired for future mobile phones to be able to cope with a situation in which an event that should be provided to an unstarted application can occur regardless of whether or not a started application exists.

本発明は上述した事情に鑑みて為されたものであり、電子機器の設計の自由度を制限することなく、システムの処理単位であるアプリケーションへ適切にイベントを提供することができる電子機器、当該電子機器におけるアプリケーションへのイベント提供方法、当該電子機器を実現するプログラム、及び当該プログラムを記録した記録媒体を提供することを目的としている。   The present invention has been made in view of the circumstances described above, and an electronic device that can appropriately provide an event to an application that is a processing unit of the system without limiting the degree of freedom of design of the electronic device, It is an object to provide a method for providing an event to an application in an electronic device, a program that realizes the electronic device, and a recording medium that records the program.

本発明は、一の態様において、イベントの発生を待ち受ける待ち受け状態において実行される第1のアプリケーションまたは自機器に諸機能を実現させるための第2のアプリケーションを実行する実行手段と、1以上のアプリケーションにて使用され得るイベントを取得する取得手段と、少なくとも第1の動作モードおよび第2の動作モードの中から、一の動作モードを指定する指定手段と、前記第1のアプリケーションが実行されている場合において前記取得手段により所定のイベントが取得されると、前記指定手段にて前記第1の動作モードが指定されている場合は当該イベントを前記第1のアプリケーションに提供する一方、前記指定手段にて前記第2の動作モードが指定されている場合は当該イベントを前記第2のアプリケーションへ提供する提供手段とを具備する電子機器を提供する。 In one aspect, the present invention provides an execution means for executing a first application that is executed in a standby state waiting for the occurrence of an event or a second application for realizing various functions in the own device, and one or more applications The acquisition means for acquiring an event that can be used in the above, the specifying means for specifying one operation mode from at least the first operation mode and the second operation mode, and the first application are executed In the case where a predetermined event is acquired by the acquiring means, if the first operation mode is specified by the specifying means, the event is provided to the first application, while the specifying means If the second operation mode is designated, the event is sent to the second application. Provided is an electronic device comprising providing means for providing to.

本発明は、他の観点において、イベントの発生を待ち受ける待ち受け状態において実行される第1のアプリケーションまたは自機器に諸機能を実現させるための第2のアプリケーションを実行する実行過程と、1以上のアプリケーションにて使用され得るイベントを取得する取得過程と、少なくとも第1の動作モードおよび第2の動作モードの中から、一の動作モードを指定する指定過程と、前記第1のアプリケーションが実行されている場合において前記取得過程において所定のイベントが取得されると、前記指定過程にて前記第1の動作モードが指定されている場合は当該イベントを前記第1のアプリケーションに提供する一方、前記指定過程にて前記第2の動作モードが指定されている場合は当該イベントを前記第2のアプリケーションへ提供する提供過程とを有するイベント提供方法を提供する。 In another aspect, the present invention provides an execution process for executing a first application that is executed in a standby state waiting for the occurrence of an event or a second application for realizing various functions in the own device, and one or more applications An acquisition process for acquiring an event that can be used in the process, a designation process for designating one operation mode from at least the first operation mode and the second operation mode, and the first application are executed. In some cases, when a predetermined event is acquired in the acquisition process, if the first operation mode is specified in the designation process, the event is provided to the first application, while the designation process is performed. If the second operation mode is designated, the event is sent to the second application mode. An event providing method having a providing process to provide to an event.

本発明は、更に他の観点において、コンピュータ装置を、イベントの発生を待ち受ける待ち受け状態において実行される第1のアプリケーションまたは自機器に諸機能を実現させるための第2のアプリケーションを実行する実行手段と、1以上のアプリケーションにて使用され得るイベントを取得する取得手段と、少なくとも第1の動作モードおよび第2の動作モードの中から、一の動作モードを指定する指定手段と、前記第1のアプリケーションが実行されている場合において前記取得手段により所定のイベントが取得されると、前記指定手段にて前記第1の動作モードが指定されている場合は当該イベントを前記第1のアプリケーションに提供する一方、前記指定手段にて前記第2の動作モードが指定されている場合は当該イベントを前記第2のアプリケーションへ提供する提供手段として機能させるためのプログラムを提供する。これらの電子機器、イベント提供方法、またはプログラムによれば、所定のイベントが発生した場合に、動作モードに応じてイベントを提供すべき1つのアプリケーションが一意に特定され、該特定されたアプリケーションに当該イベントが提供される。 In yet another aspect, the present invention provides an execution means for executing a first application executed in a standby state waiting for the occurrence of an event or a second application for causing the own device to implement various functions. obtaining means for obtaining one or more events that may be used by the application, from at least a first and a second operation mode of a designation means for designating an operation mode of the first application When a predetermined event is acquired by the acquiring unit when the first operating mode is specified by the specifying unit, the event is provided to the first application. , If the second operation mode is designated by the designation means, A program for causing the second application to function as providing means is provided. According to these electronic devices, the event providing method, or the program, when a predetermined event occurs, one application that should provide the event is uniquely specified according to the operation mode, and the specified application is associated with the specified application. An event is provided.

本発明は、更に他の観点において、上記プログラムを記録した記録媒体を提供する。   In still another aspect, the present invention provides a recording medium on which the program is recorded.

以下、図面を参照して本発明に係る実施形態について説明する。ただし、本発明は係る実施形態に限定されるものではなく、特許請求の範囲に記載された範囲内の任意の態様を含む。   Embodiments according to the present invention will be described below with reference to the drawings. However, the present invention is not limited to such an embodiment, and includes any aspect within the scope described in the claims.

[第1実施形態]
まず、本発明の第1実施形態について図面を参照して説明する。
図1は本発明の第1実施形態に係る電子機器の外観を示す図である。本実施形態においては、電子機器は移動通信網に収容される携帯電話機1として実現されており、ユーザに把持される筐体10と、各種画像を表示する表示部20と、移動通信網の基地局と無線通信を行うためのアンテナ30と、音声通話のための送話口40および受話口50と、楽音やアラーム音等を出力するためのスピーカ60と、ユーザに操作される操作部113と、筐体10を振動させる振動発生器(図示略)とを備えている。表示部20は例えば液晶ディスプレイやEL(電子蛍光)ディスプレイ等の携帯用途に適した部品を用いて構成されている。また、操作部113は0〜9のダイヤルキーと切り換えボタンCBとを備えており、これらの操作子がユーザにより操作されると、操作内容に応じたイベントを発生させる。なお、切り換えボタンCBは、後述するイベント提供部122の動作モードを2つの動作モードの間で遷移させるためのボタンである。
[First Embodiment]
First, a first embodiment of the present invention will be described with reference to the drawings.
FIG. 1 is a view showing an appearance of an electronic apparatus according to the first embodiment of the present invention. In the present embodiment, the electronic device is realized as a mobile phone 1 accommodated in a mobile communication network, and includes a casing 10 held by a user, a display unit 20 that displays various images, and a base of the mobile communication network. An antenna 30 for performing wireless communication with a station, a mouthpiece 40 and a mouthpiece 50 for voice calls, a speaker 60 for outputting musical sounds, alarm sounds, and the like, and an operation unit 113 operated by a user And a vibration generator (not shown) for vibrating the casing 10. The display unit 20 is configured by using components suitable for portable use such as a liquid crystal display and an EL (electrofluorescence) display. The operation unit 113 includes dial keys 0 to 9 and a switching button CB. When these operators are operated by the user, an event corresponding to the operation content is generated. Note that the switching button CB is a button for changing an operation mode of the event providing unit 122 described later between two operation modes.

図2は携帯電話機1の内部構成を示すブロック図であり、この図に示すように、携帯電話機1はコンピュータプログラム等を記憶した不揮発性メモリ70と、不揮発性メモリ70に記憶されたコンピュータプログラムを実行するCPU(中央処理装置)80と、CPU80に使用されるRAM(Random Access Memory)等の揮発性メモリ90とを備えている。不揮発性メモリ70は記憶内容を書き換え不能なROM(Read-Only Memory)71と記憶内容を書き換え可能なEEPROM(Electrically Erasable Programmable ROM)72とを包含している。   FIG. 2 is a block diagram showing an internal configuration of the mobile phone 1. As shown in FIG. 2, the mobile phone 1 stores a non-volatile memory 70 storing a computer program and the like, and a computer program stored in the non-volatile memory 70. A CPU (Central Processing Unit) 80 to be executed and a volatile memory 90 such as a RAM (Random Access Memory) used for the CPU 80 are provided. The nonvolatile memory 70 includes a ROM (Read-Only Memory) 71 whose stored contents cannot be rewritten and an EEPROM (Electrically Erasable Programmable ROM) 72 capable of rewriting the stored contents.

ROM71には、携帯電話機1の販売前から、携帯電話機1のOS(オペレーティングシステム)ソフトウェア、音声通話等の電話機が備えている通信機能を実現するため通信AP(通信アプリケーション)プログラム、HTML(HyperTextMarkup Language)により記述されたコンテンツをHTTP(HyperText Transfer Protocol)あるいはHTTPSを用いて閲覧するためのWebブラウザプログラム、及びJava(登録商標)プログラミング言語により記述されたJava−AP(Javaアプリケーション)プログラムを実行させるためのJava実行環境ソフトウェア等のコンピュータプログラムや、後述する待ち受け状態イベントテーブル、移動通信網との通信に必要なデータ等が記憶されている。   The ROM 71 has a communication AP (communication application) program, HTML (HyperTextMarkup Language) for realizing the communication functions of the OS (operating system) software of the mobile phone 1 and the telephone such as voice call since the mobile phone 1 is sold. ) To execute a Web browser program for browsing the content described by HTTP (HyperText Transfer Protocol) or HTTPS, and a Java-AP (Java application) program described by the Java (registered trademark) programming language. A computer program such as Java execution environment software, a standby state event table described later, data necessary for communication with the mobile communication network, and the like are stored.

EEPROM72には、Java−APプログラム等の、携帯電話機1の仕様に関与しないコンピュータプログラムやデータが記憶されている。このEEPROM72は、ユーザが独自に入力したデータや、移動通信網を介してサイトからダウンロードする等して独自に取得したコンピュータプログラム等を記憶し、これらを電源のオン/オフに関らずに保持するためにも用いられる。   The EEPROM 72 stores computer programs and data that are not related to the specifications of the mobile phone 1, such as Java-AP programs. The EEPROM 72 stores data independently input by the user, a computer program uniquely acquired by downloading from a site via a mobile communication network, and the like, and holds them regardless of whether the power is on or off. It is also used to

CPU80は不揮発性メモリ70に記憶されたOSソフトウェアを実行することにより、当該OSソフトウェアに従って表示部20、不揮発性メモリ70、揮発性メモリ90、通信部111及び操作部113を制御する。なお、通信部111は移動通信網を介した通信機能を提供するものであり、アンテナ30を内包し、後述の通信APにより制御される。   The CPU 80 executes the OS software stored in the non-volatile memory 70, thereby controlling the display unit 20, the non-volatile memory 70, the volatile memory 90, the communication unit 111, and the operation unit 113 according to the OS software. Note that the communication unit 111 provides a communication function via a mobile communication network, and includes an antenna 30 and is controlled by a communication AP described later.

なお、本実施形態では、CPU80がOSソフトウェアを実行することで携帯電話機1内に実現される機能を「OS」と称し、OSが何らかのコンピュータプログラムを実行することで起動される機能単位(少なくとも一つのプロセスまたはスレッド)を当該OS上のアプリケーション(またはAP)と称する。このAPとしては、OSがJava実行環境ソフトウェアを実行することで起動される「Java実行環境」や、通信プログラムを実行することで起動される「通信AP」、Webブラウザプログラムを実行することで起動される「Webブラウザ」等がある。さらに、本実施形態では、Java実行環境が何らかのJava−APプログラムを実行することで起動される機能単位をJava実行環境上のアプリケーション(またはAP)と称する。   In the present embodiment, a function realized in the mobile phone 1 by the CPU 80 executing the OS software is referred to as “OS”, and a function unit (at least one that is started by the OS executing some computer program). One process or thread) is referred to as an application (or AP) on the OS. As this AP, the “Java execution environment” that is started when the OS executes the Java execution environment software, the “communication AP” that is started when the communication program is executed, and the Web browser program that is started “Web browser” or the like. Furthermore, in the present embodiment, a functional unit that is activated when the Java execution environment executes some Java-AP program is referred to as an application (or AP) on the Java execution environment.

上述したことから明らかなように、携帯電話機1はWebブラウザによる移動通信網を介したデータ通信が可能であり、例えば移動通信網を介してインターネットに接続された任意のサーバへアクセスし、アクセス先のサーバに格納されているHTMLコンテンツの閲覧やJava−APプログラムのダウンロードを行うことができる。   As is clear from the above description, the mobile phone 1 can perform data communication via a mobile communication network using a Web browser. For example, the mobile phone 1 accesses an arbitrary server connected to the Internet via the mobile communication network, and accesses The HTML content stored in the server can be browsed and the Java-AP program can be downloaded.

図3は携帯電話機1の機能構成例を示す概念図であり、この図において、イベント発生部110は、OS120や各種アプリケーションに提供されるべきイベントを発生する機能要素であり、通信部111、タイマ112及び操作部113を含む。なおタイマ112は所定時間間隔でイベントを発生させるものである。OS120は複数のアプリケーションプログラムを同時に実行できない(すなわち、一つのアプリケーションプログラムしか同時には実行できない)OSである。通信AP131はOS120上のアプリケーションの一例であり、通信APプログラムをOS120が実行することにより起動される。Java実行環境140はOS120上のアプリケーションの一例であり、Java実行環境ソフトウェアをOS120が実行することにより起動される。   FIG. 3 is a conceptual diagram showing an example of a functional configuration of the mobile phone 1. In this figure, an event generation unit 110 is a functional element that generates an event to be provided to the OS 120 and various applications, and includes a communication unit 111, a timer 112 and an operation unit 113. Note that the timer 112 generates events at predetermined time intervals. The OS 120 is an OS that cannot execute a plurality of application programs simultaneously (that is, only one application program can be executed simultaneously). The communication AP 131 is an example of an application on the OS 120, and is activated when the OS 120 executes the communication AP program. The Java execution environment 140 is an example of an application on the OS 120, and is activated when the OS 120 executes the Java execution environment software.

Java−AP151はJava実行環境140上のアプリケーションの一例であり、Java−AP151に対応したJava−APプログラムを携帯電話機1が実行することにより起動される。なお、本実施形態におけるJava実行環境140は複数のアプリケーションプログラムを同時に実行することはできず、一つのアプリケーションプログラムしか同時には実行できない。また、Java−AP151に対応したJava−APプログラムは待ち受け状態の携帯電話機1をアラームとして機能させるためのプログラムである。   The Java-AP 151 is an example of an application on the Java execution environment 140 and is activated when the mobile phone 1 executes a Java-AP program corresponding to the Java-AP 151. Note that the Java execution environment 140 in this embodiment cannot execute a plurality of application programs at the same time, and can execute only one application program at the same time. A Java-AP program corresponding to the Java-AP 151 is a program for causing the mobile phone 1 in a standby state to function as an alarm.

Java実行環境140において、Java−API141はJava実行環境140上のアプリケーションに対して使用が許可されたJava実行環境140の機能を当該アプリケーションが使用するためのアプリケーションインタフェースである。Java実行環境140上のアプリケーションは当該Java−API141を介してJava実行環境140の機能を使用する。   In the Java execution environment 140, the Java-API 141 is an application interface for the application to use the functions of the Java execution environment 140 that are permitted to be used for the application on the Java execution environment 140. An application on the Java execution environment 140 uses functions of the Java execution environment 140 via the Java-API 141.

OS120において、イベント取得部121およびイベント提供部122は図4に示す状態遷移を実現するためのものである。図4は携帯電話機1の状態遷移の一部を示す図であり、この図に示すように、携帯電話機1は自身の状態として待ち受け状態と実行状態ST3とを有する。待ち受け状態はイベントの発生を待ち受ける状態であり、携帯電話機1には、イベント提供部122の動作モード(動作モードA及び動作モードB)に対応して2種類の待ち受け状態ST1,ST2が存在する。各状態間の遷移に対応するイベントC1〜C4の具体的な内容については後述する。   In the OS 120, the event acquisition unit 121 and the event provision unit 122 are for realizing the state transition shown in FIG. FIG. 4 is a diagram showing a part of the state transition of the mobile phone 1, and as shown in FIG. 4, the mobile phone 1 has a standby state and an execution state ST3 as its own state. The standby state is a state of waiting for the occurrence of an event, and the mobile phone 1 has two types of standby states ST1 and ST2 corresponding to the operation modes (operation mode A and operation mode B) of the event providing unit 122. Specific contents of the events C1 to C4 corresponding to the transitions between the states will be described later.

また、図3のOS120は、携帯電話機1が待ち受け状態に遷移すると、予め設定された待ち受けアプリケーションプログラムを実行する。待ち受けアプリケーションプログラムは待ち受け状態で実行されるJava−APプログラムであり、ユーザがWebブラウザ等を使用して移動通信網経由で取得したプログラムであってもよい。   Further, the OS 120 in FIG. 3 executes a standby application program set in advance when the mobile phone 1 transitions to the standby state. The standby application program is a Java-AP program executed in a standby state, and may be a program acquired by a user via a mobile communication network using a Web browser or the like.

イベント取得部121はイベント発生部110において発生したイベントを取得し、取得したイベントがイベントの提供先を切り換えるためのイベントであるか否かを判定し、イベントの提供先を切り換えるためのイベントであればイベント提供部122の動作モードを切り換えるための切り換え指示をイベント提供部122へ供給し、イベントの提供先を切り換えるためのイベントでなければ当該イベントをそのままイベント提供部122へ供給する。上記判定は取得したイベントが操作部113に設けられた切り換えボタンCBの押下を示すイベントであるか否かを調べることにより実現される。   The event acquisition unit 121 acquires an event that has occurred in the event generation unit 110, determines whether the acquired event is an event for switching the event providing destination, and can be an event for switching the event providing destination. For example, a switching instruction for switching the operation mode of the event providing unit 122 is supplied to the event providing unit 122, and if the event is not an event for switching the event providing destination, the event is supplied to the event providing unit 122 as it is. The above determination is realized by checking whether or not the acquired event is an event indicating the pressing of the switching button CB provided on the operation unit 113.

イベント提供部122は、イベント取得部121から切り換え指示を受けると、自身の動作モードを一方の動作モードから他方の動作モードへ切り換えるとともに、切り換え後の動作モードをユーザに通知するための通知指示を動作モード通知部124へ供給する(図4のイベントC1)。また、イベント提供部122はイベント取得部121からイベントが供給されると、自身の動作モードと当該イベントと待ち受け状態イベントテーブルT1とに基づいた処理を行う。   When the event providing unit 122 receives a switching instruction from the event acquisition unit 121, the event providing unit 122 switches its own operation mode from one operation mode to the other operation mode, and also provides a notification instruction for notifying the user of the operation mode after switching. It supplies to the operation mode notification part 124 (event C1 of FIG. 4). Further, when an event is supplied from the event acquisition unit 121, the event providing unit 122 performs processing based on its own operation mode, the event, and the standby state event table T1.

図5は待ち受け状態イベントテーブルT1の構成例を示す概念図であり、この図に示す待ち受け状態イベントテーブルT1は、待ち受け状態の携帯電話機1のOS120が次にイベントを提供し得るアプリケーションと、各アプリケーションが使用し得るイベントとを対応付けている。このテーブルに登録されているアプリケーションは通信APプログラム及びJava実行環境ソフトウェアに基づいたアプリケーションである。これらのアプリケーションは携帯電話機1の仕様に関与するものであることから、待ち受け状態イベントテーブルT1では、携帯電話機1の動作(状態)が不定とならないようにアプリケーションとイベントが対応付けられている。すなわち、一つのイベントに対しては最大でも一つのアプリケーションしか対応付けられていない。実際には、各アプリケーションが使用し得るイベントは重複し得るが、待ち受け状態イベントテーブルT1ではアプリケーション間の優先順位に従って上記対応関係が実現されている。   FIG. 5 is a conceptual diagram showing a configuration example of the standby state event table T1. The standby state event table T1 shown in FIG. 5 includes an application that the OS 120 of the mobile phone 1 in the standby state can provide an event next to each application. Is associated with an event that can be used. The application registered in this table is an application based on the communication AP program and Java execution environment software. Since these applications are related to the specifications of the mobile phone 1, in the standby state event table T1, applications and events are associated with each other so that the operation (state) of the mobile phone 1 does not become indefinite. That is, at most one application is associated with one event. Actually, the events that can be used by each application may overlap, but in the standby state event table T1, the above correspondence is realized in accordance with the priority order between the applications.

待ち受け状態の携帯電話機1において、動作モードAのイベント提供部122にイベント取得部121からイベントが供給されると、イベント提供部122は当該待ち受け状態イベントテーブルT1を用いて当該イベントに対応するアプリケーションを選択し、当該アプリケーションが当該イベントを利用できるようにする。すなわち、選択されたアプリケーションがJava実行環境140でない場合には、Java実行環境140を消滅させるとともに選択されたアプリケーションを起動させることにより携帯電話機1の状態を当該イベントに応じた状態とし(イベントC2)、起動されたアプリケーション(例えば通信AP131)へ当該イベントを供給し、選択されたアプリケーションがJava実行環境140の場合には、当該アプリケーションへ当該イベントを供給する(イベントC3)。   In the standby state mobile phone 1, when an event is supplied from the event acquisition unit 121 to the event providing unit 122 in the operation mode A, the event providing unit 122 uses the standby state event table T1 to select an application corresponding to the event. Select to make the event available to the application. That is, if the selected application is not the Java execution environment 140, the Java execution environment 140 is extinguished and the selected application is activated to change the state of the mobile phone 1 to a state corresponding to the event (event C2). The event is supplied to the activated application (for example, the communication AP 131). When the selected application is the Java execution environment 140, the event is supplied to the application (event C3).

また、待ち受け状態の携帯電話機1において、動作モードBのイベント提供部122にイベント取得部121からイベントが供給されると、イベント提供部122はJava実行環境140へ当該イベントを供給する(イベントC4)。なお、イベント提供部122によるアプリケーションへのイベントの供給はネイティブAPI123を介して行われる。また、Java実行環境140はOS120から提供されたイベントをJava実行環境140上のアプリケーションへ提供する機能を有する。Java実行環境140からJava実行環境140上のアプリケーションへのイベントの提供はJava−API141を介して行われる。   In the mobile phone 1 in the standby state, when an event is supplied from the event acquisition unit 121 to the event providing unit 122 in the operation mode B, the event providing unit 122 supplies the event to the Java execution environment 140 (event C4). . The event supply unit 122 supplies an event to the application via the native API 123. In addition, the Java execution environment 140 has a function of providing an event provided from the OS 120 to an application on the Java execution environment 140. An event is provided from the Java execution environment 140 to an application on the Java execution environment 140 via the Java-API 141.

このように、イベント提供部122はイベント取得部121からイベントが供給されると、自身の動作モードと当該イベントと待ち受け状態イベントテーブルT1とに基づいたアプリケーションへ当該イベントを供給する。   As described above, when an event is supplied from the event acquisition unit 121, the event providing unit 122 supplies the event to an application based on its own operation mode, the event, and the standby state event table T1.

ネイティブAPI123はOS120上のアプリケーションに対して使用が許可されたOS120の機能を当該アプリケーションが使用するためのアプリケーションインタフェースである。OS120上のアプリケーションは当該ネイティブAPI123を介してOS120の機能を使用する。   The native API 123 is an application interface for the application to use the function of the OS 120 permitted to be used for the application on the OS 120. An application on the OS 120 uses the function of the OS 120 via the native API 123.

動作モード通知部124はイベント提供部122からの通知指示に従って、イベント提供部122の動作モードを示す画像の表示を制御する。すなわち、動作モード通知部124は、イベント提供部122から通知指示を受けると、表示部20を制御し、イベント提供部122の動作モードが動作モードBの場合にはイベント提供部122の動作モードが動作モードBであることを示す画像の表示を開始させ、イベント提供部122の動作モードが動作モードAの場合には当該画像の表示をやめさせる。なお、動作モード通知部124は携帯電話機1が待ち受け状態に遷移した時点においても上記表示制御を行う。   The operation mode notification unit 124 controls display of an image indicating the operation mode of the event providing unit 122 in accordance with a notification instruction from the event providing unit 122. In other words, when receiving the notification instruction from the event providing unit 122, the operation mode notifying unit 124 controls the display unit 20. When the operation mode of the event providing unit 122 is the operation mode B, the operation mode of the event providing unit 122 is Display of an image indicating the operation mode B is started. When the operation mode of the event providing unit 122 is the operation mode A, the display of the image is stopped. Note that the operation mode notification unit 124 performs the display control even when the mobile phone 1 transitions to the standby state.

[第1実施形態の動作例]
次に、本実施形態に係る携帯電話機1の動作例について、主に図6を参照して説明する。図6はイベント取得部121、イベント提供部122及び動作モード通知部124の動作の流れを示すフローチャートであり、携帯電話機1の状態が待ち受け状態となった時点以降の動作の流れを示している。なお、携帯電話機1には、待ち受けアプリケーションプログラムとしてJava−AP151に対応したJava−APプログラムが設定されているものとする。このJava−APプログラムは移動通信網を介してダウンロードされてきたものであり、携帯電話機1は当該Java−APプログラムが如何なるイベントを使用し得るかを把握していない。
[Operation Example of First Embodiment]
Next, an operation example of the mobile phone 1 according to the present embodiment will be described mainly with reference to FIG. FIG. 6 is a flowchart showing the flow of operations of the event acquisition unit 121, the event providing unit 122, and the operation mode notification unit 124, and shows the flow of operations after the time when the state of the mobile phone 1 becomes a standby state. It is assumed that a Java-AP program corresponding to Java-AP 151 is set in mobile phone 1 as a standby application program. The Java-AP program has been downloaded via the mobile communication network, and the mobile phone 1 does not know what events the Java-AP program can use.

ユーザ操作等により携帯電話機1が待ち受け状態に遷移すると、OS120は予め設定された待ち受けアプリケーションプログラムを実行する。したがって、待ち受け状態にある携帯電話機1においては、Java実行環境140がOS120上のアプリケーションとして起動され、このJava実行環境140上のアプリケーションとしてJava−AP151が起動される。この結果、携帯電話機1においてJava−AP151に従ったユーザインタフェースが提供される。すなわち、Java−AP151が画面表示を伴うものであれば表示部20にはJava−AP151に従った画面が表示され、音声出力を伴うものであればスピーカ60からJava−AP151に従った音が出力され、筐体10の振動を伴うものであれば筐体10がJava−AP151に従って振動する。また、待ち受け状態への遷移時のイベント提供部122の動作モードは動作モードAとなる(ステップS11)。   When the mobile phone 1 transitions to a standby state by a user operation or the like, the OS 120 executes a preset standby application program. Therefore, in the mobile phone 1 in the standby state, the Java execution environment 140 is activated as an application on the OS 120, and Java-AP 151 is activated as an application on the Java execution environment 140. As a result, the mobile phone 1 provides a user interface according to Java-AP 151. That is, if the Java-AP 151 is accompanied by a screen display, a screen according to the Java-AP 151 is displayed on the display unit 20, and if accompanied by an audio output, a sound according to the Java-AP 151 is output from the speaker 60. If the case 10 is accompanied by vibration, the case 10 vibrates according to the Java-AP 151. Further, the operation mode of the event providing unit 122 at the time of transition to the standby state is the operation mode A (step S11).

次に、動作モード通知部124は、イベント提供部122の動作モードをユーザに通知する処理を行う(ステップS12)。表示部20には動作モードが動作モードBであることを示す画像は未だ表示されておらず、動作モードは動作モードAであることから、動作モード通知部124は表示部20に対して何も行わない。この結果、ユーザは表示部20を視認することにより、現在の動作モードが動作モードAであることを把握することができる。以後、携帯電話機1はイベントの発生を待つ。   Next, the operation mode notification unit 124 performs processing for notifying the user of the operation mode of the event providing unit 122 (step S12). Since the display unit 20 has not yet displayed an image indicating that the operation mode is the operation mode B, and the operation mode is the operation mode A, the operation mode notification unit 124 does nothing for the display unit 20. Not performed. As a result, the user can grasp that the current operation mode is the operation mode A by visually recognizing the display unit 20. Thereafter, the mobile phone 1 waits for an event to occur.

イベント発生部110においてユーザ操作や着信等に起因したイベントが発生すると、発生したイベントはOS120のイベント取得部121により取得される(ステップS13)。このイベントがイベントの提供先を切り換えるためのイベントでないものとして以後の動作を説明する(ステップS14)。   When an event caused by a user operation or an incoming call occurs in the event generation unit 110, the generated event is acquired by the event acquisition unit 121 of the OS 120 (step S13). The subsequent operation will be described assuming that this event is not an event for switching the event providing destination (step S14).

イベントを取得したイベント取得部121は当該イベントをイベント提供部122へ供給する。当該イベントが供給された動作モードAのイベント提供部122は、携帯電話機1の状態を当該イベントに応じた状態とした後に、OS120上のアプリケーションへ当該イベントを供給する。例えば、当該イベントがダイヤルキーのいずれか一つのキーの押下である場合(ステップS15,S16)、待ち受け状態イベントテーブルT1において当該イベントには通信AP131が対応付けられていることから、イベント提供部122はJava実行環境140を消滅させるとともに通信AP131を起動させ、携帯電話機1の状態を待ち受け状態から通信AP131の実行状態へ遷移させる(ステップS17)。通信AP131の実行状態においてOS120上のアプリケーションは通信AP131のみであることから、当該イベントはネイティブAPI123を介して通信AP131へ提供され(ステップS18)、表示部20には例えば図7に示す画面が表示される。なお、図7は待ち受け状態かつ動作モードAにおいて0を入力するためのダイヤルキーが押下された場合に表示部20に表示される画面を例示している。以後の動作は通信AP131の実行状態において従来から行われていた動作と同一となる。   The event acquisition unit 121 that has acquired the event supplies the event to the event providing unit 122. The event providing unit 122 in the operation mode A to which the event is supplied sets the state of the mobile phone 1 according to the event, and then supplies the event to the application on the OS 120. For example, when the event is a press of any one of the dial keys (steps S15 and S16), the event providing unit 122 is associated with the communication AP 131 in the standby state event table T1. Extinguishes the Java execution environment 140 and activates the communication AP 131 to change the state of the mobile phone 1 from the standby state to the execution state of the communication AP 131 (step S17). Since the application on the OS 120 is only the communication AP 131 in the execution state of the communication AP 131, the event is provided to the communication AP 131 via the native API 123 (step S18), and the screen shown in FIG. Is done. FIG. 7 illustrates a screen displayed on the display unit 20 when the dial key for inputting 0 in the standby state and the operation mode A is pressed. Subsequent operations are the same as those conventionally performed in the execution state of the communication AP 131.

一方、当該イベントが例えばタイマ112により発生したイベントの場合(ステップS15,S16)、待ち受け状態イベントテーブルT1において当該イベントはJava実行環境140に対応付けられていることから、動作モードAのイベント提供部122は携帯電話機1の状態を待ち受け状態のまま維持し、ネイティブAPI123を介して当該イベントをJava実行環境140へ提供する(ステップS19)。Java実行環境140上のアプリケーションはJava−AP151のみであることから、当該イベントはJava−API141を介してJava−AP151に提供される。以後、携帯電話機1はイベントの発生を待つ。このように、イベント提供部122の動作モードが動作モードAであっても、待ち受け状態イベントテーブルT1においてJava実行環境140に対応付けられたイベントについては、Java−AP151へ提供される。   On the other hand, when the event is an event generated by the timer 112 (steps S15 and S16), since the event is associated with the Java execution environment 140 in the standby state event table T1, the event providing unit of the operation mode A 122 maintains the state of the mobile phone 1 in the standby state, and provides the event to the Java execution environment 140 via the native API 123 (step S19). Since the application on the Java execution environment 140 is only the Java-AP 151, the event is provided to the Java-AP 151 via the Java-API 141. Thereafter, the mobile phone 1 waits for an event to occur. As described above, even if the operation mode of the event providing unit 122 is the operation mode A, the event associated with the Java execution environment 140 in the standby state event table T1 is provided to the Java-AP 151.

次に、イベント取得部121により取得されたイベントがイベントの提供先を切り換えるためのイベントである場合の動作を説明する。
イベント取得部121により取得されたイベントがイベントの提供先を切り換えるためのイベント、すなわちユーザが切り換えボタンCBを押下することにより発生したイベントの場合(ステップS13,S14)、イベント取得部121は切り換え指示をイベント提供部122へ供給する。この指示が供給されたイベント提供部122は、自身の動作モード(動作モードA)を動作モードBへ切り換え(ステップS20)、動作モード通知部124へ通知指示を供給する。この指示を受けた動作モード通知部124は、表示部20に対して、イベント提供部122の動作モードが動作モードBであることを示す画像の表示を開始させる(ステップS12)。この結果、表示部20に表示される画面は、例えば、図8に示される画面から図9に示される画面に遷移する。この結果、ユーザは表示部20を視認することにより、現在の動作モードが動作モードAであることを把握することができる。なお、図9における「B」が動作モードBを示す画像であり、アプリケーションの描画領域外の領域に描画されている。このため、動作モードBを示す画像をユーザが確実に視認することができる。
Next, an operation when the event acquired by the event acquisition unit 121 is an event for switching the event providing destination will be described.
When the event acquired by the event acquisition unit 121 is an event for switching the event providing destination, that is, an event generated when the user presses the switching button CB (steps S13 and S14), the event acquisition unit 121 instructs the switching. Is supplied to the event providing unit 122. The event providing unit 122 supplied with this instruction switches its own operation mode (operation mode A) to the operation mode B (step S20), and supplies a notification instruction to the operation mode notification unit 124. Upon receiving this instruction, the operation mode notifying unit 124 causes the display unit 20 to start displaying an image indicating that the operation mode of the event providing unit 122 is the operation mode B (step S12). As a result, the screen displayed on the display unit 20 transitions from the screen shown in FIG. 8 to the screen shown in FIG. 9, for example. As a result, the user can grasp that the current operation mode is the operation mode A by visually recognizing the display unit 20. Note that “B” in FIG. 9 is an image indicating the operation mode B, and is drawn in an area outside the drawing area of the application. For this reason, the user can visually recognize the image indicating the operation mode B with certainty.

このような状況下でイベント発生部110においてイベントが発生すると、発生したイベントはイベント取得部121により取得される(ステップS13)。このイベントがイベントの提供先を切り換えるためのイベントでないものとして以後の動作を説明する(ステップS14)。   When an event occurs in the event generation unit 110 under such a situation, the generated event is acquired by the event acquisition unit 121 (step S13). The subsequent operation will be described assuming that this event is not an event for switching the event providing destination (step S14).

イベントを取得したイベント取得部121は当該イベントをイベント提供部122へ供給する。当該イベントが供給された動作モードBのイベント提供部122は、当該イベントをOS120上のアプリケーションへ供給する(ステップS15,S19)。例えば、当該イベントがダイヤルキーのいずれか一つのキーの押下である場合、イベント提供部122はネイティブAPI123を介してJava実行環境140へ当該イベントを提供する。当該イベントが供給されたJava実行環境140では唯一のアプリケーションであるJava−AP151に対して当該イベントが提供される。この結果、表示部20には例えば図10に示す画面が表示される。   The event acquisition unit 121 that has acquired the event supplies the event to the event providing unit 122. The event providing unit 122 in the operation mode B to which the event is supplied supplies the event to the application on the OS 120 (Steps S15 and S19). For example, when the event is a press of any one of the dial keys, the event providing unit 122 provides the event to the Java execution environment 140 via the native API 123. In the Java execution environment 140 to which the event is supplied, the event is provided to Java-AP 151 which is the only application. As a result, for example, the screen shown in FIG. 10 is displayed on the display unit 20.

図10は待ち受け状態かつ動作モードBにおいて0を入力するためのダイヤルキーが押下された場合に表示部20に表示される画面を例示している。この図に示す例において、更に、8を入力するためのダイヤルキーが押下されると、イベント提供部122の動作モードは動作モードBであることから、当該イベントはイベント取得部121、イベント提供部122、ネイティブAPI123及びJava実行環境140を介してJava−AP151へ提供され、表示部20には図11に示す画面が表示される(ステップS13〜S15,及びS19)。なお、図10及び図11に示す画面はアラーム機能を提供するJava−AP151により提供されるものであり、待ち受け状態イベントテーブルT1においてタイマ112によるイベントはJava実行環境140に対応付けられているため、最終的には当該アプリケーションへ提供される(ステップS13〜S15,S19)。したがって、当該アプリケーションが提供する画面に表示された時刻に携帯電話機1が振動したり、スピーカ60からアラーム音が出力されたり、表示部20の表示が点滅したりする。   FIG. 10 illustrates a screen displayed on the display unit 20 when the dial key for inputting 0 in the standby state and the operation mode B is pressed. In the example shown in this figure, when the dial key for inputting 8 is further pressed, since the operation mode of the event providing unit 122 is the operation mode B, the event is acquired by the event acquiring unit 121, the event providing unit. 122, the native API 123 and the Java execution environment 140 are provided to the Java-AP 151, and the screen shown in FIG. 11 is displayed on the display unit 20 (steps S13 to S15 and S19). Note that the screens shown in FIGS. 10 and 11 are provided by the Java-AP 151 that provides the alarm function, and the event by the timer 112 is associated with the Java execution environment 140 in the standby state event table T1, Finally, it is provided to the application (steps S13 to S15, S19). Accordingly, the mobile phone 1 vibrates at the time displayed on the screen provided by the application, an alarm sound is output from the speaker 60, or the display of the display unit 20 blinks.

このような状況下で、イベント発生部110においてイベントの提供先を切り換えるためのイベントが発生し、当該イベントがイベント取得部121に取得されると、イベント取得部121は切り換え指示をイベント提供部122へ供給する(ステップS13,S14)。この指示が供給されたイベント提供部122は、自身の動作モード(動作モードB)を動作モードAへ切り換え(ステップS20)、動作モード通知部124へ通知指示を供給する。この指示を受けた動作モード通知部124は、表示部20に対して、イベント提供部122の動作モードが動作モードBであることを示す画像の表示をやめさせる(ステップS12)。   Under such circumstances, when an event for switching the event providing destination occurs in the event generation unit 110 and the event acquisition unit 121 acquires the event, the event acquisition unit 121 issues a switching instruction. (Steps S13 and S14). The event providing unit 122 supplied with this instruction switches its own operation mode (operation mode B) to the operation mode A (step S20), and supplies a notification instruction to the operation mode notification unit 124. Upon receiving this instruction, the operation mode notification unit 124 causes the display unit 20 to stop displaying an image indicating that the operation mode of the event providing unit 122 is the operation mode B (step S12).

したがって、次に、ダイヤルキーの押下等の待ち受け状態イベントテーブルT1において通信AP131に対応付けられているイベントが発生すると、イベント提供部122はJava実行環境140を消滅させるとともに通信AP131を起動させ、携帯電話機1の状態を待ち受け状態から通信AP131の実行状態へ遷移させる(ステップS13〜S17)。通信AP131の実行状態においてOS120上のアプリケーションは通信AP131のみであることから、当該イベントは異ベンチ提供部122からネイティブAPI123を介して通信AP131へ提供される(ステップS18)。   Therefore, next, when an event associated with the communication AP 131 occurs in the standby state event table T1 such as pressing of a dial key, the event providing unit 122 extinguishes the Java execution environment 140 and activates the communication AP 131 to The state of the telephone 1 is changed from the standby state to the execution state of the communication AP 131 (steps S13 to S17). Since the application on the OS 120 is only the communication AP 131 in the execution state of the communication AP 131, the event is provided from the different bench providing unit 122 to the communication AP 131 via the native API 123 (step S18).

[第2実施形態]
次に、本発明の第2実施形態について図面を参照して説明する。
本実施形態に係る電子機器(以後、携帯電話機2)が第1実施形態に係る携帯電話機1と異なる点はOSの機能要素のみである。よって、この点についてのみ説明する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described with reference to the drawings.
The electronic device according to the present embodiment (hereinafter, mobile phone 2) is different from the mobile phone 1 according to the first embodiment only in the functional elements of the OS. Therefore, only this point will be described.

図12は携帯電話機2の機能構成例を示す概念図であり、この図に示すOS160が図3のOS120と異なる点は、イベント提供部122及び動作モード通知部124に代えてイベント提供部162及び動作モード通知部164を有する点である。イベント提供部162及び動作モード通知部164がイベント提供部122及び動作モード通知部124と大きく異なる点は、イベント提供部122が2種類の動作モード(動作モードA及び動作モードB)を有するのに対し、イベント提供部162はこれら2種類の動作モードに加えて動作モードCを有する点である。以後、この点に着目してイベント提供部162及び動作モード通知部164について説明する。なお、動作モードCはWebブラウザプログラムを実行することにより起動されるWebブラウザ132(OS160上のアプリケーション)へイベントを提供するモードであり、ユーザは、この動作モードCを用いることで、待ち受け状態の携帯電話機2において発生したイベントをWebブラウザ132へ提供することができる。   FIG. 12 is a conceptual diagram showing an example of the functional configuration of the mobile phone 2. The OS 160 shown in this figure is different from the OS 120 in FIG. 3 in that the event providing unit 162 and the operation mode notifying unit 124 are replaced with the event providing unit 162 and The operation mode notification unit 164 is provided. The event providing unit 162 and the operation mode notifying unit 164 are significantly different from the event providing unit 122 and the operation mode notifying unit 124 in that the event providing unit 122 has two types of operation modes (operation mode A and operation mode B). In contrast, the event providing unit 162 has an operation mode C in addition to these two types of operation modes. Hereinafter, the event providing unit 162 and the operation mode notification unit 164 will be described focusing on this point. The operation mode C is a mode for providing an event to the Web browser 132 (an application on the OS 160) that is activated by executing the Web browser program. By using the operation mode C, the user can enter the standby state. An event occurring in the mobile phone 2 can be provided to the web browser 132.

OS160において、イベント取得部121およびイベント提供部162は図13に示す状態遷移を実現する。図13は携帯電話機2の状態遷移の一部を示す図であり、図4と大きく異なる点は、待ち受け状態ST4及び実行状態ST5が存在する点である。イベント提供部162は、待ち受け状態において切り換えボタンCBが押下される度にイベント取得部121から切り換え指示を受け、自身の動作モードを動作モードA、動作モードB、動作モードCの順で巡回的に切り換え、通知指示を動作モード通知部164へ供給する。すなわち、イベント提供部162は、待ち受け状態において切り換えボタンCBが押下される度に、携帯電話機2の状態を、待ち受け状態ST1、待ち受け状態ST2、待ち受け状態ST4の順で巡回的に遷移させる(イベントC1)。   In the OS 160, the event acquisition unit 121 and the event providing unit 162 realize the state transition shown in FIG. FIG. 13 is a diagram showing a part of the state transition of the mobile phone 2, and a significant difference from FIG. 4 is that a standby state ST4 and an execution state ST5 exist. The event providing unit 162 receives a switching instruction from the event acquisition unit 121 every time the switching button CB is pressed in the standby state, and cyclically switches its operation mode in the order of operation mode A, operation mode B, and operation mode C. A switching and notification instruction is supplied to the operation mode notification unit 164. That is, every time the switching button CB is pressed in the standby state, the event providing unit 162 cyclically changes the state of the mobile phone 2 in the order of the standby state ST1, the standby state ST2, and the standby state ST4 (event C1). ).

イベント提供部162はイベント取得部121からイベントが供給されると、自身の動作モードと当該イベントと待ち受け状態イベントテーブルT1及び待ち受け状態イベントテーブルT2とに基づいた処理を行う。   When an event is supplied from the event acquisition unit 121, the event providing unit 162 performs processing based on its own operation mode, the event, the standby state event table T1, and the standby state event table T2.

図14は待ち受け状態イベントテーブルT2の構成例を示す概念図である。待ち受け状態イベントテーブルT2は、待ち受け状態の携帯電話機1のOS160が次にイベントを提供し得るアプリケーションと、各アプリケーションが使用し得るイベントとを対応付けている。このテーブルに登録されているアプリケーションはWebブラウザ及びJava実行環境であり、待ち受け状態イベントテーブルT2では、待ち受け状態イベントテーブルT1と同様に、携帯電話機2の動作(状態)が不定とならないようにアプリケーションとイベントが対応付けられている。   FIG. 14 is a conceptual diagram showing a configuration example of the standby state event table T2. The standby state event table T2 associates an application that the OS 160 of the mobile phone 1 in the standby state can provide the next event with an event that can be used by each application. The applications registered in this table are a Web browser and a Java execution environment, and in the standby state event table T2, as in the standby state event table T1, the application (state) of the mobile phone 2 is not indefinite. Events are associated.

待ち受け状態の携帯電話機2において、動作モードCのイベント提供部162にイベント取得部121からイベントが供給されると、イベント提供部162は当該待ち受け状態イベントテーブルT2を用いて当該イベントに対応するアプリケーションを選択し、当該アプリケーションが当該イベントを利用できるようにする。すなわち、選択されたアプリケーションがJava実行環境140でない場合には、Java実行環境140を消滅させるとともに選択されたアプリケーションを起動させることにより携帯電話機1の状態を当該イベントに応じた状態とし(イベントC5)、起動されたアプリケーション(例えばWebブラウザ132)へ当該イベントを供給し、選択されたアプリケーションがJava実行環境140の場合には、当該アプリケーションへ当該イベントを供給する(イベントC6)。   In the standby mobile phone 2, when an event is supplied from the event acquisition unit 121 to the event providing unit 162 in the operation mode C, the event providing unit 162 uses the standby state event table T2 to select an application corresponding to the event. Select to make the event available to the application. In other words, when the selected application is not the Java execution environment 140, the Java execution environment 140 is extinguished and the selected application is activated to change the state of the mobile phone 1 to a state corresponding to the event (event C5). The event is supplied to the activated application (for example, the Web browser 132), and when the selected application is the Java execution environment 140, the event is supplied to the application (event C6).

このように、イベント提供部162はイベント取得部121からイベントが供給されると、自身の動作モードと当該イベントと待ち受け状態イベントテーブルT1と待ち受け状態イベントテーブルT2とに基づいたアプリケーションへ当該イベントを供給する。   As described above, when an event is supplied from the event acquisition unit 121, the event providing unit 162 supplies the event to an application based on its own operation mode, the event, the standby state event table T1, and the standby state event table T2. To do.

動作モード通知部164はイベント提供部162からの通知指示に従って動作モードを示す画像の表示を制御する。すなわち、動作モード通知部164は、イベント提供部162から通知指示を受けると、イベント提供部162の動作モードを示す画像の表示を表示部20に開始させる。   The operation mode notification unit 164 controls display of an image indicating the operation mode in accordance with a notification instruction from the event providing unit 162. That is, upon receiving a notification instruction from the event providing unit 162, the operation mode notifying unit 164 causes the display unit 20 to start displaying an image indicating the operation mode of the event providing unit 162.

[第2実施形態の動作例]
次に、本実施形態に係る携帯電話機2の動作例について、主に図15を参照して説明する。図15はイベント取得部121、イベント提供部162及び動作モード通知部164の動作の流れを示すフローチャートであり、図6と共通する部分には同一の符号が付されている。同一符号が付された部分の動作については説明を省略する。また、以下に述べる動作例の前提は第1実施形態の動作例と同一であるものとする。
[Operation Example of Second Embodiment]
Next, an operation example of the mobile phone 2 according to the present embodiment will be described mainly with reference to FIG. FIG. 15 is a flowchart showing the flow of operations of the event acquisition unit 121, the event provision unit 162, and the operation mode notification unit 164, and parts that are the same as those in FIG. The description of the operation of the parts denoted by the same reference numerals is omitted. Further, the premise of the operation example described below is the same as the operation example of the first embodiment.

携帯電話機2が待ち受け状態に遷移すると、動作モード通知部164は、イベント提供部162の動作モードをユーザに通知する処理を行う(ステップS12A)。すなわち、動作モード通知部164はイベント提供部162の動作モードが動作モードAであることを示す画像を表示部20に表示させる。以後、携帯電話機1はイベントの発生を待つ。   When the mobile phone 2 transitions to the standby state, the operation mode notification unit 164 performs processing for notifying the user of the operation mode of the event providing unit 162 (step S12A). That is, the operation mode notification unit 164 causes the display unit 20 to display an image indicating that the operation mode of the event providing unit 162 is the operation mode A. Thereafter, the mobile phone 1 waits for an event to occur.

次に、イベント取得部121がイベントの提供先を切り換えるためのイベント(切り換えボタンCBの押下)を取得し、切り換え指示をイベント提供部162へ供給すると、イベント提供部162は自身の動作モードを動作モードBに切り換え、動作モード通知部164はイベント提供部162の動作モードが動作モードBであることを示す画像を表示部20に表示させる。以後、携帯電話機2はイベントの発生を待つ(ステップ13,14,20A及び12A)。   Next, when the event acquisition unit 121 acquires an event for switching the event providing destination (pressing the switching button CB) and supplies a switching instruction to the event providing unit 162, the event providing unit 162 operates in its own operation mode. Switching to mode B, the operation mode notification unit 164 causes the display unit 20 to display an image indicating that the operation mode of the event providing unit 162 is the operation mode B. Thereafter, the mobile phone 2 waits for an event to occur (steps 13, 14, 20A and 12A).

次に、イベント取得部121がイベントの提供先を切り換えるためのイベントを取得し、切り換え指示をイベント提供部162へ供給すると、イベント提供部162は自身の動作モードを動作モードCに切り換え、動作モード通知部164はイベント提供部162の動作モードが動作モードCであることを示す画像を表示部20に表示させる(ステップ13,14,20A及び12A)。以後、携帯電話機2はイベントの発生を待つ。   Next, when the event acquisition unit 121 acquires an event for switching the event providing destination and supplies a switching instruction to the event providing unit 162, the event providing unit 162 switches its own operation mode to the operation mode C, and the operation mode The notification unit 164 causes the display unit 20 to display an image indicating that the operation mode of the event providing unit 162 is the operation mode C (steps 13, 14, 20A, and 12A). Thereafter, the mobile phone 2 waits for an event to occur.

次に、イベント取得部121からイベントの供給を受けると、動作モードCのイベント提供部162は、携帯電話機2の状態を当該イベントに応じた状態とした後に、OS160上のアプリケーションへ当該イベントを供給する。例えば、当該イベントがダイヤルキーのいずれか一つのキーの押下である場合、待ち受け状態イベントテーブルT2において当該イベントにはWebブラウザ132が対応付けられていることから、イベント提供部162はJava実行環境140を消滅させるとともにWebブラウザ132を起動させ、携帯電話機2の状態を待ち受け状態からWebブラウザ132の実行状態へ遷移させる(ステップS13〜S16及びS17A)。Webブラウザ132の実行状態においてOS160上のアプリケーションはWebブラウザ132のみであることから、当該イベントはイベント提供部162からネイティブAPI123を介してWebブラウザ132へ提供される(ステップS18A)。以後の動作はWebブラウザ132の実行状態において従来から行われていた動作と同一となる。   Next, when an event is supplied from the event acquisition unit 121, the event providing unit 162 in the operation mode C sets the state of the mobile phone 2 according to the event, and then supplies the event to the application on the OS 160. To do. For example, when the event is a press of any one of the dial keys, the event providing unit 162 is associated with the Java execution environment 140 because the Web browser 132 is associated with the event in the standby state event table T2. And the web browser 132 is activated to change the state of the mobile phone 2 from the standby state to the execution state of the web browser 132 (steps S13 to S16 and S17A). Since the application on the OS 160 is only the web browser 132 in the execution state of the web browser 132, the event is provided from the event providing unit 162 to the web browser 132 via the native API 123 (step S18A). Subsequent operations are the same as those conventionally performed in the execution state of the Web browser 132.

一方、イベント取得部121から供給されたイベントが例えばタイマ112により発生したイベントの場合、待ち受け状態イベントテーブルT2において当該イベントはJava実行環境140に対応付けられていることから、動作モードCのイベント提供部162は携帯電話機2の状態を待ち受け状態のまま維持し、ネイティブAPI123を介して当該イベントをJava実行環境140へ提供する(ステップS13〜S15及びS19)。Java実行環境140上のアプリケーションはJava−AP151のみであることから、当該イベントはJava−API141を介してJava−AP151に提供される。以後、携帯電話機2はイベントの発生を待つ。   On the other hand, if the event supplied from the event acquisition unit 121 is, for example, an event generated by the timer 112, the event is associated with the Java execution environment 140 in the standby state event table T2, and therefore the event of operation mode C is provided. The unit 162 maintains the state of the mobile phone 2 in the standby state, and provides the event to the Java execution environment 140 via the native API 123 (steps S13 to S15 and S19). Since the application on the Java execution environment 140 is only the Java-AP 151, the event is provided to the Java-AP 151 via the Java-API 141. Thereafter, the mobile phone 2 waits for an event to occur.

次に、イベント取得部121がイベントの提供先を切り換えるためのイベントを取得し、切り換え指示をイベント提供部162へ供給すると、イベント提供部162は自身の動作モードを動作モードAに切り換え、動作モード通知部164はイベント提供部162の動作モードが動作モードAであることを示す画像を表示部20に表示させる(ステップS13,S14,S20A及びS12A)。   Next, when the event acquisition unit 121 acquires an event for switching the event providing destination and supplies a switching instruction to the event providing unit 162, the event providing unit 162 switches its own operation mode to the operation mode A, and the operation mode The notification unit 164 displays an image indicating that the operation mode of the event providing unit 162 is the operation mode A on the display unit 20 (steps S13, S14, S20A, and S12A).

[変形例]
上述した各実施形態においては、発生したイベントがイベントの供給先を切り換えるためのイベントか否かをイベント取得部121が判断するようにしたが、イベント取得部121が取得した全てのイベントをそのままイベント提供部122あるいはイベント提供部162へ供給し、イベント提供部122あるいはイベント提供部162において当該イベントがイベントの供給先を切り換えるためのイベントか否かを判定するようにしてもよい。
[Modification]
In each embodiment described above, the event acquisition unit 121 determines whether or not the generated event is an event for switching the event supply destination. However, all the events acquired by the event acquisition unit 121 are used as events. The event may be supplied to the providing unit 122 or the event providing unit 162, and the event providing unit 122 or the event providing unit 162 may determine whether the event is an event for switching the event supply destination.

また、上述した第1実施形態においては、イベントの提供先を動作モードと当該イベントと待ち受け状態イベントテーブルT1とに基づいて定める例を示したが、動作モードのみに基づいて定めるようにしてもよい。例えば、イベント取得部121からのイベントの供給を受けた動作モードAのイベント提供部122が待ち受け状態イベントテーブルT1を用いることなく通信AP131を起動させるようにしてもよい。この場合、動作モードが動作モードBへ切り換えられない限り、Java−AP151はイベントの提供を受けることができない。これと同様に、第2実施形態において動作モードのみに基づいてイベントの提供先を定めるよにしてもよい。この場合、動作モードAの場合のイベント提供先は通信AP131のみ、動作モードBの場合のイベント提供先はJava実行環境140のみ、動作モードCの場合のイベント提供先はWebブラウザ132のみとなる。   Further, in the first embodiment described above, the example in which the event providing destination is determined based on the operation mode, the event, and the standby state event table T1 has been described, but may be determined based only on the operation mode. . For example, the event providing unit 122 in the operation mode A that has received an event from the event acquisition unit 121 may activate the communication AP 131 without using the standby state event table T1. In this case, the Java-AP 151 cannot receive an event unless the operation mode is switched to the operation mode B. Similarly, in the second embodiment, the event providing destination may be determined based only on the operation mode. In this case, the event providing destination in the operation mode A is only the communication AP 131, the event providing destination in the operation mode B is only the Java execution environment 140, and the event providing destination in the operation mode C is only the Web browser 132.

上述した各実施形態においては、Java実行環境140とイベントとの対応関係をも待ち受け状態イベントテーブルに登録した例を示したが、これを登録せず、イベント取得部121から供給されたイベントが待ち受け状態イベントテーブルに登録されていない場合にはイベント提供部122またはイベント提供部162が当該イベントをJava実行環境140へ提供するようにしてもよい。もちろん、待ち受け状態イベントテーブルに登録しない対応関係はJava実行環境140とイベントとの対応関係に限定されるものではない。例えば、第1実施形態においてJava実行環境140に対応したイベントのみを待ち受け状態イベントテーブルT1に登録し、イベント取得部121から動作モードAのイベント提供部122に供給されたイベントが待ち受け状態イベントテーブルT1に登録されていない場合に当該イベントを通信AP131へ提供し、登録されている場合にJava実行環境140へ提供するようにしてもよい。なお、これらの場合には、待ち受け状態イベントテーブルには一つのアプリケーションに対応したイベントのみが登録されるため、各レコードのフィールドは一つだけで足りる。   In each of the above-described embodiments, the example in which the correspondence relationship between the Java execution environment 140 and the event is also registered in the standby state event table is shown. However, this is not registered, and the event supplied from the event acquisition unit 121 is in the standby state. When not registered in the state event table, the event providing unit 122 or the event providing unit 162 may provide the event to the Java execution environment 140. Of course, the correspondence not registered in the standby state event table is not limited to the correspondence between the Java execution environment 140 and the event. For example, in the first embodiment, only events corresponding to the Java execution environment 140 are registered in the standby state event table T1, and the events supplied from the event acquisition unit 121 to the event providing unit 122 in the operation mode A are in the standby state event table T1. The event may be provided to the communication AP 131 when it is not registered, and may be provided to the Java execution environment 140 when it is registered. In these cases, since only events corresponding to one application are registered in the standby state event table, only one field is required for each record.

また、上述した各実施形態ではイベント提供部122またはイベント提供部162の動作モードをユーザに通知するようにしたが、このような通知を行わないようにしてもよい。特に、第1実施形態における切り換えボタンCBを、ユーザの押下の度にユーザに与える印象が変わるボタンとすれば、上記通知を行わないようにしたとしても、切り換えボタンCBの状態がイベント提供部122動作モードを示すことになり、より簡素な構成で第1実施形態と同一の効果を得ることができる。ユーザの押下の度に印象が変わるボタンの例としては、ユーザの押下の度にユーザに与える視覚的な印象が交互に変わるトグルボタンが挙げられる。   In each embodiment described above, the user is notified of the operation mode of the event providing unit 122 or the event providing unit 162, but such notification may not be performed. In particular, if the switching button CB in the first embodiment is a button that changes the impression given to the user each time the user presses it, even if the notification is not performed, the state of the switching button CB is the event providing unit 122. The operation mode is indicated, and the same effect as that of the first embodiment can be obtained with a simpler configuration. As an example of a button whose impression changes every time the user presses, a toggle button whose visual impression given to the user alternately every time the user presses can be mentioned.

また、上述した各実施形態では、一つのボタンの押下により動作モードを切り換える例を示したが、複数の操作子の各々に各動作モードを対応付け、例えば、ある操作子が操作されたら動作モードA、他の操作子が操作されたら動作モードB、というようにしてもよい。もちろん、複数の操作を可能とする操作子の各操作に各動作モードを対応付け、例えば、当該操作子に対してある操作が行われたら動作モードA、当該操作子に他の操作が行われたら動作モードB、というようにしてもよい。   Further, in each of the above-described embodiments, an example in which the operation mode is switched by pressing one button is shown. However, each operation mode is associated with each of a plurality of operation elements, for example, an operation mode when a certain operation element is operated. A, and the operation mode B when another operation element is operated may be used. Of course, each operation mode is associated with each operation of the operation element capable of performing a plurality of operations. For example, when an operation is performed on the operation element, the operation mode A is performed, and another operation is performed on the operation element. Then, the operation mode B may be used.

また、上述した各実施形態において、イベント取得部121が取得するイベントは低レベルのイベントに限定されない。例えば、ソフトウェアボタンの押下等の高レベルのイベントであってもよい。
さらに、上述した各実施形態においては、待ち受け状態イベントテーブルをROM71に記憶させた例を示したが、EEPROM72に記憶させるようにしてもよい。
Moreover, in each embodiment mentioned above, the event which the event acquisition part 121 acquires is not limited to a low level event. For example, it may be a high-level event such as a software button press.
Further, in each of the above-described embodiments, the standby state event table is stored in the ROM 71. However, the standby state event table may be stored in the EEPROM 72.

また、上述した各実施形態では待ち受け状態においてイベント取得部の動作モードを切り換える例を示したが、待ち受け状態に入る前にイベント取得部の動作モードを切り換え可能としてもよい。この場合、待ち受け状態への遷移時のイベント取得部の動作モードは、それ以前に設定された動作モードとなる。さらに、この動作モードをEEPROM72に記憶させるようにすれば、携帯電話機の電源をオフにしても、設定された動作モードが維持される。   In each of the above-described embodiments, the operation mode of the event acquisition unit is switched in the standby state. However, the operation mode of the event acquisition unit may be switched before entering the standby state. In this case, the operation mode of the event acquisition unit at the time of transition to the standby state is the operation mode set before that. Further, if this operation mode is stored in the EEPROM 72, the set operation mode is maintained even when the power of the mobile phone is turned off.

また、上述した各実施形態では、待ち受けアプリケーションプログラムを設定した例を示したが、この設定は必須ではない。待ち受けアプリケーションプログラムを設定しない場合には、待ち受け状態で実行されるアプリケーションは存在しないことから、イベントの提供先は次に実行し得るアプリケーションの中から選択されることになる。   In each of the above-described embodiments, an example in which a standby application program is set is shown, but this setting is not essential. When the standby application program is not set, there is no application executed in the standby state, and therefore the event providing destination is selected from the applications that can be executed next.

さらに、上述した第2実施形態においてはOS120上のアプリケーションとして通信AP131、Webブラウザ132及びJava実行環境140を想定したために図13に示す状態遷移としたが、より多くのアプリケーションに対応できるように第2実施形態を変形することは容易である。   Furthermore, in the second embodiment described above, the communication AP 131, the Web browser 132, and the Java execution environment 140 are assumed as applications on the OS 120, and thus the state transition shown in FIG. 13 is used. It is easy to modify the two embodiments.

また、上述した第2実施形態においては通信AP131へのイベント提供については動作モードA、Webブラウザ132へのイベント提供については動作モードCにて実現する例を示したが、通信AP131に使用され得るイベントとWebブラウザ132に使用され得るイベントとが競合しないのであれば、動作モードAにて通信AP131へのイベント提供およびWebブラウザ132へのイベント提供を実現するように第2実施形態を変形することは容易である。この場合、動作モードCは不要となる。   In the second embodiment described above, an example is shown in which the event provision to the communication AP 131 is realized in the operation mode A and the event provision to the Web browser 132 is realized in the operation mode C. However, the second embodiment may be used for the communication AP 131. If the event and the event that can be used for the web browser 132 do not conflict, the second embodiment is modified so as to realize event provision to the communication AP 131 and event provision to the web browser 132 in the operation mode A. Is easy. In this case, the operation mode C is unnecessary.

また、上述した各実施形態では携帯電話機を例に挙げたが、本発明はコンピュータプログラムを実行可能な任意の電子機器においてイベントを提供可能なアプリケーションが複数となり得る電子機器に適用可能である。特に、本発明は、携帯性を確保するために搭載可能なメモリサイズ等に厳しい制約が設けられており、複数のアプリケーションを同時に実行できないOSを搭載せざるを得ないような電子機器に用いて好適である。   In each of the above-described embodiments, a mobile phone has been described as an example. However, the present invention is applicable to an electronic device that can provide a plurality of applications that can provide an event in any electronic device that can execute a computer program. In particular, the present invention is used in an electronic device in which a severe limitation is imposed on a memory size that can be mounted in order to ensure portability, and an OS that cannot execute a plurality of applications simultaneously has to be mounted. Is preferred.

さらに、上述した各実施形態では、Javaアプリケーションを待ち受けアプリケーションとする例を示したが、これに限定されるものではないことは言うまでもない。これと逆に、OS120上のアプリケーションを全てJavaアプリケーションとしてもよい。すなわち、通信AP131やWebブラウザ132をJavaアプリケーションとしてもよい。なお、Javaアプリケーションを待ち受けアプリケーションとしたためにJava実行環境を実装する例を示したが、待ち受けアプリケーションがJavaアプリケーションでなければ、Java実行環境の実装は不要である。さらに、Java実行環境とOSとの間に他の実行環境を介挿した構成としてもよいことはいうまでもない。   Furthermore, in each of the above-described embodiments, an example in which a Java application is a standby application has been described, but it is needless to say that the present invention is not limited to this. Conversely, all applications on the OS 120 may be Java applications. That is, the communication AP 131 and the web browser 132 may be a Java application. Although an example in which the Java execution environment is implemented because the Java application is a standby application is shown, if the standby application is not a Java application, it is not necessary to implement the Java execution environment. Furthermore, it goes without saying that another execution environment may be interposed between the Java execution environment and the OS.

また、上述した各実施形態では、OSソフトウェアおよびJava実行環境ソフトウェアをROM71に記録した例を示したが、携帯電話機に、半導体メモリや光ディスク、光磁気ディスク、磁気ディスク等の記録媒体から直接あるいは間接的に記録データを読み出せる機能を持たせ、当該電子機器の製造者や通信事業者等が当該記録媒体にOSソフトウェア及びJava実行環境ソフトウェア(あるいはOSソフトウェアのみ)を記録して携帯電話機の使用者へ渡すようにしてもよい。もちろん、これらのソフトウェアを、記録媒体経由ではなく、通信網経由で携帯電話機にダウンロードできるようにしてもよい。さらに、不揮発性メモリ70に上記ソフトウェアの大部分を格納し、残りの一部を上記方法により使用者へ渡し、使用者側で上記ソフトウェアを構成するようにしてもよい。   In each of the above-described embodiments, the OS software and the Java execution environment software are recorded in the ROM 71. However, the cellular phone is directly or indirectly from a recording medium such as a semiconductor memory, an optical disk, a magneto-optical disk, or a magnetic disk. The function of reading recorded data is provided, and the manufacturer of the electronic device or the communication carrier records the OS software and Java execution environment software (or only the OS software) on the recording medium. You may make it pass to. Of course, these software may be downloaded to the mobile phone via a communication network, not via a recording medium. Further, most of the software may be stored in the non-volatile memory 70, and the remaining part may be transferred to the user by the method described above, and the software may be configured on the user side.

以上説明したように、本発明によれば、複数のアプリケーションプログラムを同時に実行できないオペレーティングシステムを搭載しているにも関らず、指示あるいは指示に従って切り換えられる動作モードに基づいたアプリケーションへ、イベントが提供される。したがって、起動済みのアプリケーションが存在してもしなくても未起動のアプリケーションへ提供すべきイベントが発生し得るという状況に対処できる。よって、電子機器の設計の自由度を制限することなく、複数のアプリケーションプログラムを同時に実行できないオペレーティングシステム上においても、アプリケーションへ適切にイベントを提供することができる。   As described above, according to the present invention, an event is provided to an application based on an instruction or an operation mode switched according to the instruction, even though an operating system that can not execute a plurality of application programs is installed. Is done. Therefore, it is possible to cope with a situation in which an event to be provided to an unstarted application can occur regardless of whether or not there is a started application. Therefore, an event can be appropriately provided to an application even on an operating system in which a plurality of application programs cannot be executed at the same time without limiting the degree of freedom of design of the electronic device.

本発明の第1実施形態に係る電子機器(携帯電話機1)の外観を示す図である。It is a figure which shows the external appearance of the electronic device (cellular phone 1) which concerns on 1st Embodiment of this invention. 同携帯電話機1の内部構成を示すブロック図である。3 is a block diagram showing an internal configuration of the mobile phone 1. FIG. 同携帯電話機1の機能構成例を示す概念図である。3 is a conceptual diagram showing a functional configuration example of the mobile phone 1. FIG. 同携帯電話機1の状態遷移の一部を示す図である。4 is a diagram showing a part of state transition of the mobile phone 1; FIG. 同携帯電話機1が有する待ち受け状態イベントテーブルT1の構成例を示す概念図である。4 is a conceptual diagram showing a configuration example of a standby state event table T1 included in the mobile phone 1. FIG. 同携帯電話機1のイベント取得部121、イベント提供部122及び動作モード通知部124の動作の流れを示すフローチャートである。4 is a flowchart showing an operation flow of an event acquisition unit 121, an event provision unit 122, and an operation mode notification unit 124 of the mobile phone 1. 同携帯電話機1の表示部20の表示画面例を示す図である。FIG. 4 is a diagram showing an example of a display screen on the display unit 20 of the mobile phone 1. 同表示部20の表示画面例を示す図である。4 is a diagram showing an example of a display screen of the display unit 20. FIG. 同表示部20の表示画面例を示す図である。4 is a diagram showing an example of a display screen of the display unit 20. FIG. 同表示部20の表示画面例を示す図である。4 is a diagram showing an example of a display screen of the display unit 20. FIG. 同表示部20の表示画面例を示す図である。4 is a diagram showing an example of a display screen of the display unit 20. FIG. 本発明の第1実施形態に係る電子機器(携帯電話機2)の機能構成例を示す概念図である。It is a conceptual diagram which shows the function structural example of the electronic device (mobile telephone 2) which concerns on 1st Embodiment of this invention. 同携帯電話機2の状態遷移の一部を示す図である。4 is a diagram showing a part of state transition of the mobile phone 2. FIG. 同携帯電話機2が有する待ち受け状態イベントテーブルT2の構成例を示す概念図である。4 is a conceptual diagram showing a configuration example of a standby state event table T2 included in the mobile phone 2. FIG. 同携帯電話機2のイベント取得部121、イベント提供部162及び動作モード通知部164の動作の流れを示すフローチャートである。4 is a flowchart showing a flow of operations of an event acquisition unit 121, an event provision unit 162, and an operation mode notification unit 164 of the mobile phone 2.

符号の説明Explanation of symbols

1,2 携帯電話機(電子機器)
110 イベント発生部
120,160 オペレーティングシステム
121 イベント取得部
122,162 イベント提供部
124,164 動作モード通知部
131 通信AP
140 Java実行環境
151 Java−AP
1, 2 Mobile phones (electronic devices)
DESCRIPTION OF SYMBOLS 110 Event generation part 120,160 Operating system 121 Event acquisition part 122,162 Event provision part 124,164 Operation mode notification part 131 Communication AP
140 Java Runtime Environment 151 Java-AP

Claims (11)

イベントの発生を待ち受ける待ち受け状態において実行される第1のアプリケーションまたは自機器に諸機能を実現するための第2のアプリケーションを実行する実行手段と、
1以上のアプリケーションにて使用され得るイベントを取得する取得手段と、
少なくとも第1の動作モードおよび第2の動作モードの中から、一の動作モードを指定する指定手段と、
前記第1のアプリケーションが実行されている場合において前記取得手段により所定のイベントが取得されると、前記指定手段にて前記第1の動作モードが指定されている場合は当該イベントを前記第1のアプリケーションに提供する一方、前記指定手段にて前記第2の動作モードが指定されている場合は当該イベントを前記第2のアプリケーションへ提供する提供手段と
を具備する電子機器。
Execution means for executing a first application that is executed in a standby state for waiting for the occurrence of an event or a second application for realizing various functions in the device;
An acquisition means for acquiring an event that can be used in one or more applications;
Designation means for designating one operation mode from at least the first operation mode and the second operation mode;
When a predetermined event is acquired by the acquisition unit when the first application is being executed, if the first operation mode is specified by the specifying unit, the event is designated as the first event. An electronic device comprising provision means for providing an event to the second application when the second operation mode is designated by the designation means .
通信網を介して通信するための通信部と、A communication unit for communicating via a communication network;
情報の入力を受け付けるための操作部とAn operation unit for accepting input of information
を更に備え、Further comprising
前記所定のイベントは前記操作部の操作情報であり、The predetermined event is operation information of the operation unit,
前記第2のアプリケーションは前記電子機器に通信機能を実現させるための通信アプリケーションであるThe second application is a communication application for causing the electronic device to realize a communication function.
ことを特徴とする請求項1に記載の電子機器。The electronic device according to claim 1.
前記実行手段、前記取得手段および前記提供手段の機能を提供するオペレーティングシステムと、An operating system that provides the functions of the execution means, the acquisition means, and the providing means;
前記オペレーティングシステム上で実行されるソフトウェア実行環境とA software execution environment running on the operating system;
を備え、With
前記第1のアプリケーションは前記ソフトウェア実行環境上で動作し、The first application runs on the software execution environment;
前記第2のアプリケーションは前記オペレーティングシステム上で動作するThe second application runs on the operating system
ことを特徴とする請求項2に記載の電子機器。The electronic device according to claim 2.
前記提供手段は、前記第2の動作モードが指定されている場合において前記イベントの取得時に前記第2のアプリケーションが起動されていないときは、当該第2のアプリケーションを起動させた後、当該イベントの提供を行うIn the case where the second operation mode is designated and the second application is not activated when the event is acquired, the providing means activates the second application, and then Do offer
ことを特徴とする請求項2に記載の電子機器。The electronic device according to claim 2.
指定されている前記動作モードを通知するための通知手段を更に具備するA notification means for notifying the designated operation mode;
ことを特徴とする請求項2に記載の電子機器。The electronic device according to claim 2.
アプリケーションが画像を表示することができる領域と他の領域とからなる表示領域に画像を表示する表示手段を更に具備し、A display means for displaying an image in a display area composed of an area where the application can display an image and another area;
前記通知手段は前記現在の動作モードを示す画像を前記他の領域に表示させるThe notification means displays an image indicating the current operation mode in the other area.
ことを特徴とする請求項5に記載の電子機器。The electronic device according to claim 5, wherein:
イベントと当該イベントを使用し得るアプリケーションとの対応関係を示す情報を記憶した記憶手段を更に具備し、And further comprising storage means for storing information indicating a correspondence relationship between the event and an application that can use the event,
前記提供手段は、前記取得手段により取得されたイベントの提供先を特定するに際し前記対応関係を参照するThe providing means refers to the correspondence relationship when specifying the destination of the event acquired by the acquiring means.
ことを特徴とする請求項2に記載の電子機器。The electronic device according to claim 2.
前記操作部は操作の度に印象を変える操作子を有するThe operation unit has an operation element that changes an impression at each operation.
ことを特徴とする請求項2に記載の電子機器。The electronic device according to claim 2.
前記通信部を用いてコンピュータプログラムを取得し前記記憶手段に記憶するプログラム取得手段を更に具備するProgram acquisition means for acquiring a computer program using the communication unit and storing it in the storage means is further provided.
ことを特徴とする請求項2に記載の電子機器。The electronic device according to claim 2.
イベントの発生を待ち受ける待ち受け状態において実行される第1のアプリケーションまたは自機器に諸機能を実現するための第2のアプリケーションを実行する実行過程と、An execution process for executing a first application that is executed in a standby state for waiting for the occurrence of an event or a second application for realizing various functions in the device;
1以上のアプリケーションにて使用され得るイベントを取得する取得過程と、  An acquisition process for acquiring events that can be used in one or more applications;
少なくとも第1の動作モードおよび第2の動作モードの中から、一の動作モードを指定する指定過程と、A designation process for designating one operation mode from at least the first operation mode and the second operation mode;
前記第1のアプリケーションが実行されている場合において前記取得過程において所定のイベントが取得されると、前記指定過程にて前記第1の動作モードが指定されている場合は当該イベントを前記第1のアプリケーションに提供する一方、前記指定過程にて前記第2の動作モードが指定されている場合は当該イベントを前記第2のアプリケーションへ提供する提供過程とWhen a predetermined event is acquired in the acquisition process when the first application is being executed, if the first operation mode is specified in the specification process, the event is designated as the first event. While providing to the application, and providing the event to the second application when the second operation mode is designated in the designation process;
を有するイベント提供方法。An event providing method comprising:
コンピュータ装置を、Computer equipment,
イベントの発生を待ち受ける待ち受け状態において実行される第1のアプリケーションまたは自機器に諸機能を実現させるための第2のアプリケーションを実行する実行手段と、Execution means for executing a first application that is executed in a standby state for waiting for the occurrence of an event or a second application for realizing various functions in the device;
1以上のアプリケーションにて使用され得るイベントを取得する取得手段と、An acquisition means for acquiring an event that can be used in one or more applications;
少なくとも第1の動作モードおよび第2の動作モードの中から、一の動作モードを指定する指定手段と、Designating means for designating one operation mode from at least the first operation mode and the second operation mode;
前記第1のアプリケーションが実行されている場合において前記取得手段により所定のイベントが取得されると、前記指定手段にて前記第1の動作モードが指定されている場合は当該イベントを前記第1のアプリケーションに提供する一方、前記指定手段にて前記第2の動作モードが指定されている場合は当該イベントを前記第2のアプリケーションへ提供する提供手段とWhen a predetermined event is acquired by the acquisition unit when the first application is being executed, if the first operation mode is specified by the specifying unit, the event is designated as the first event. Providing means for providing the event to the second application when the second operation mode is specified by the specifying means;
して機能させるためのプログラム。Program to make it function.
JP2007128656A 2007-05-14 2007-05-14 Electronic device, event providing method, program, and recording medium Expired - Lifetime JP4091966B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007128656A JP4091966B2 (en) 2007-05-14 2007-05-14 Electronic device, event providing method, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007128656A JP4091966B2 (en) 2007-05-14 2007-05-14 Electronic device, event providing method, program, and recording medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002143607A Division JP4091792B2 (en) 2002-05-17 2002-05-17 Electronic device, event providing method, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2007257660A JP2007257660A (en) 2007-10-04
JP4091966B2 true JP4091966B2 (en) 2008-05-28

Family

ID=38631767

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007128656A Expired - Lifetime JP4091966B2 (en) 2007-05-14 2007-05-14 Electronic device, event providing method, program, and recording medium

Country Status (1)

Country Link
JP (1) JP4091966B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0635262U (en) * 1992-10-19 1994-05-10 日本電信電話株式会社 Assembled cable drum

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0635262U (en) * 1992-10-19 1994-05-10 日本電信電話株式会社 Assembled cable drum

Also Published As

Publication number Publication date
JP2007257660A (en) 2007-10-04

Similar Documents

Publication Publication Date Title
JP4091792B2 (en) Electronic device, event providing method, program, and recording medium
JP2011254510A (en) Dynamic wallpaper on mobile communication device
JPWO2008114491A1 (en) Terminal having application update management function, application update management program, and system
JP5079345B2 (en) Electronic device and control method in electronic device
JP4290569B2 (en) Remote operation server, program, remote operation system, and remote operation method
WO2004102932A1 (en) Mobile communication terminal
JP4091966B2 (en) Electronic device, event providing method, program, and recording medium
JP5414003B2 (en) Electronics
JPWO2006035658A1 (en) Mobile communication device and application execution environment software for mobile communication device
JP4743715B2 (en) Electronic device and notification method in electronic device
JP2005130005A (en) Communication terminal device and screen display program
JP2005229279A (en) Portable terminal equipment, method of use of portable terminal equipment and program therefor
JP2009193427A (en) Electronic device setting device, setting method, and setting program
JP2007141064A (en) Portable terminal and menu display switching method
JP2003087874A (en) Remote control system for remotely controlling peripheral device, mobile telephone used for the system, and the peripheral device
JP5247897B2 (en) Application execution control apparatus and application execution control method
JP4947356B2 (en) Application execution control apparatus and application execution control method
JP4022168B2 (en) Mobile communication device
JP5142555B2 (en) Electronic device and notification method in electronic device
JP2004104661A (en) Portable telephone, inverter device, parameter setting value transfer system of the inverter device, and control program for portable telephone and inverter device
JP5042616B2 (en) Portable information terminal
JP2006259849A (en) Mobile terminal device
JP2002314647A (en) Connection control method between portable devices and portable device
JP2008015578A (en) Terminal device and program
JP5518229B2 (en) Mobile communication terminal

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071113

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080115

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080229

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110307

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110307

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120307

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130307

Year of fee payment: 5