CN103870316B - A kind of JAVA virtual machine realization method in intelligent operating system - Google Patents
A kind of JAVA virtual machine realization method in intelligent operating system Download PDFInfo
- Publication number
- CN103870316B CN103870316B CN201410146039.4A CN201410146039A CN103870316B CN 103870316 B CN103870316 B CN 103870316B CN 201410146039 A CN201410146039 A CN 201410146039A CN 103870316 B CN103870316 B CN 103870316B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- module
- android
- cvm
- java
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The present invention relates to the JAVA virtual machine realization method in a kind of intelligent operating system, JAVA software virtual machine is divided into following two part: start intake section;CVM virtual machine part;Start between intake section and CVM virtual machine part, communicated by modes such as JNI and shared memory space.The running environment structure of JAVA virtual machine is divided into two levels: Linux client layer and Dalvik virtual machine layer;Wherein: start intake section and operate in Dalvik virtual machine layer;CVM virtual machine part operates in Linux client layer.Implementation method of the present invention, built-in JAVA software virtual machine in android system, JAVA software virtual machine can independently, run efficiently, explanation, operation J2ME software kit or other J2ME programs that can be independent, ensure that the complete compatible and stability to J2ME program, J2ME program is passed through JAVA virtual machine independent startup, is directly run, real-time is high, and Consumer's Experience is more preferably.
Description
Technical field
The present invention relates to JAVA virtual machine and J2ME(JAVA2Micro Edition) technology
Field, the JAVA virtual machine realization method in a kind of intelligent operating system.Espespecially
The JAVA virtual machine realization side of J2ME software kit can be run on intelligent operating system platform
Method.Described intelligent operating system platform refers in particular to Android and derivation operation system platform thereof.
Background technology
Android is a kind of intelligent operating system of increasing income based on Linux, mainly uses
In portable equipment, intelligent television, panel computer, Set Top Box etc..Android operation system is
Just developed by Andy Rubin, mainly support mobile phone.Within 2005, purchased by Google
Register capital to, and set up open mobile phone alliance development and improvement, gradually expand to panel computer and other necks
Territory.Android system by (SuSE) Linux OS kernel, Dalvik virtual machine, support storehouse,
Application framework and application program composition.Owing to it has good opening and powerful merit
Can, current Android operation system is except in the battery-powered embedded devices such as mobile phone
Extensively outside application, the most progressively it is applied to DTV etc. and uses equipment and the product of AC power.
IPTV, is that one utilizes broadband cable net, collection internet, multimedia, communication etc.
Multiple technologies are in one, the multiple interactive clothes provided including DTV to domestic consumer
The brand-new technology of business.IPTV service is roughly divided into basic service and the big class of value-added service two, IPTV
Basic service refer to the video content services based on audio-visual content, including live, program request,
Carousel, time shift etc.;And the value-added service of IPTV includes game, instant messaging, E-Payment
And Karaoke etc., wherein, game is divided into web game and JAVA to play two kinds, is IPTV
The important component part of value-added service.
Access at present the Intelligent set top box of IPTV platform and mostly use android system, and base
Intelligent set top box in android system needs to meet and can access and use original IPTV platform
Business, the most just includes the JAVA game of the properly functioning IPTV platform of energy, IPTV platform
JAVA game is J2ME program, it is common that a J2ME software kit.Originally access IPTV to put down
The Set Top Box of platform essentially SD based on built-in Linux or high definition set top box, run JAVA
The JAVA virtual machine of game (J2ME software kit) is also based on embedded Linux system and opens
Send out.The Intelligent set top box being now based on android system is also required to support and run IPTV
JAVA game (J2ME software kit) of platform, but develop based on embedded Linux system
JAVA virtual machine be not suitable for android system.
JAVA game (J2ME is run at present on Intelligent set top box based on android system
Software kit) existing a kind of change type solution, this change type solution utilizes J2ME soft
The feature that self application program of part bag and android system is structurally similar, utilizes and does not increases income
Business software existing J2ME software kit is changed, by JAVA play J2ME soft
Part packet transform is android system software package file, the most again by this android system software
APMB package is installed and used in the android system of terminal device.The method is applied at intelligent machine
Several obvious drawback is had on top box:
1. compatible shortage, ensures, it is impossible to ensure the J2ME software kit played for all JAVA
Can change smoothly.
2. real-time is not enough, is run the J2ME software kit of JAVA game by the method, needs
Through changing, install, run 3 stages, expend JAVA and play the startup time, user's body
Test the best.
3. open not enough, the method core is the business software do not increased income, it is impossible to complete
Entirely carry out time update for platform requirement.
To these problems temporarily without further solution in prior art.
Summary of the invention
For defect present in prior art, it is an object of the invention to provide a kind of intelligence behaviour
Making the JAVA virtual machine realization method in system, described intelligent operating system refers in particular to Android
And derivation operation system, by JAVA software virtual machine built-in in android system,
And the composition of JAVA software virtual machine and the running environment structure of JAVA virtual machine are carried out carefully
Change, to guarantee that JAVA software virtual machine can independently, run efficiently.
For reaching object above, the present invention adopts the technical scheme that:
A kind of JAVA virtual machine realization method in intelligent operating system, it is characterised in that: first
First JAVA software virtual machine is divided into following two part:
Start intake section, be responsible for figure show, audio frequency broadcasting, the work such as user's input processing,
Startup entrance as normal Android application program;
CVM virtual machine part, is operated in Linux user's space with the form of dynamic base, is responsible for
The parsing of J2ME software kit and operation, perform the drawing of J2ME software kit, audio logic, and
According to J2ME software kit logical process user's incoming event;
Start between intake section and CVM virtual machine part, by JNI and shared memory space
Communicate etc. mode, make the virtual function of JAVA run J2ME on intelligent operating system platform soft
Part bag.
On the basis of technique scheme, described intelligent operating system refer in particular to Android and
Derivation operation system.
On the basis of technique scheme, described intelligent operating system operates in access IPTV
In the Intelligent set top box of platform.
On the basis of technique scheme, described Intelligent set top box is SD or high clear top
Box.
On the basis of technique scheme, the running environment structure of JAVA virtual machine is divided into
Two levels: Linux client layer and Dalvik virtual machine layer;Wherein:
The Android application program module and the JNI module thereof that start intake section operate in
Dalvik virtual machine layer,
The CVM virtual machine module of CVM virtual machine part and JNI module thereof operate in Linux and use
Family layer;
The JNI module starting intake section and CVM virtual machine part is all C/C++ realization, and
And common memory space, the communication between them is virtual as Linux client layer and Dalvik
Bridge between machine layer the two level uses.
On the basis of technique scheme, JAVA virtual machine runs the work of J2ME software kit
Process includes:
Start and operational process,
JAVA virtual machine graphics display handling process,
JAVA virtual machine audio frequency playback process flow process,
JAVA user's input processing flow process.
On the basis of technique scheme, start and operational process comprises the steps of
Step A1, Android application program module starts, arranges jar software in start-up parameter
APMB package path;
Step A2, CVM virtual machine module is compiled as Linux dynamic base, passes through Android
JNI loads the dynamic base of CVM virtual machine, and obtains its entrance function to start CVM virtual machine
Module, now passes to CVM empty by the jar software package file path got in step A1
The dynamic base of plan machine;
Step A3, CVM virtual machine module is according to the jar software kit literary composition got in step A2
Jar file is read in part path, parses class file therein, and loads J2ME class entrance
Point, thus start program;
Step A4, starts the life cycle of J2ME software kit, enters J2ME software kit regulation
Programmed logic, comprise the logics such as drawing, audio frequency, user's input processing;
Step A5, by information such as the drawing handled well in J2ME software kit logic, audio frequency, logical
The interface crossing CVM JNI module is delivered to Android JNI module;
Step A6, the information such as drawing, audio frequency is delivered to Android by Android JNI module again
Application program module, is shown in Android application program module, is play;
Step A7, Android application program module receives user's input, by virtual Linux
The mode of keyboard equipment file is delivered to CVM virtual machine module;
Step A8, user selects to exit, and CVM virtual machine module is sent by CVM JNI module
Exit command;
Step A9, exits command and is delivered to Android application by Android JNI module
Program module, Android application program module receives and exits command, and the flow process that quits a program terminates.
On the basis of technique scheme, JAVA virtual machine graphics display handling process comprises
Following steps:
Step B1, after program starts, Android application program module initializes application program and regards
Figure, uses one piece of Android.graphics.Bitmap to draw in view;
Step B2, described in Android JNI module initialization step B1
Android.graphics.Bitmap structure;
Step B3, CVM virtual machine module obtains the reality of drawing buffer by the way of shared drive
In border pointer, i.e. step B2 in the initialized Android.graphics.Bitmap structure of institute
Actual drawing memory;
Step B4, CVM virtual machine module, according to the J2ME programmed logic run, completes figure
As decoding, graphic plotting, text drafting etc. operate;
Step B5, exports step B3 by the processing result image completed in step B4
In acquired drawing buffer;
Step B6, drawing completes, and is sent the finger requiring to refresh screen by CVM JNI module
Order;
Step B7, Android JNI module receives the instruction refreshing screen, notifies Android
Application program module drawing buffer updates;
Step B8, the content of stretching drawing buffer is to adapt to display device, and refreshes view,
Complete the display of image.
On the basis of technique scheme, JAVA virtual machine audio frequency playback process flow process comprises
Following steps:
Step C1, after program starts, Android application program module initializes Android and broadcasts
Put device Android.media.MediaPlayer;
Step C2, CVM virtual machine module, according to the J2ME programmed logic run, sends and broadcasts
Putting, stopping etc. being ordered;
Step C3, in CVM JNI module, is encapsulated as order by the order such as broadcasting, stopping
Character string;
Step C4, command string is sent at Android JNI module by CVM JNI module
Reason;
Step C5, command string is sent to Android application journey by Android JNI module
Sequence module;
Step C6, Android application program module receives and resolve command character string, according to life
The content order of order performs the operation such as broadcasting, stopping, it is achieved the broadcasting of audio frequency media.
On the basis of technique scheme, JAVA user's input processing flow process comprises following step
Rapid:
Step D1, Android application program module receives user key-press input, and preserves key assignments;
Step D2, creates the file of vertical keyboard device file, this document in file system
A keyboard equipment can be taken as use;
Step D3, according to Linux input equipment document structure definition, inputs user key-press
Conversion, in the virtual device file created in write step D2;
Step D4, CVM virtual machine module creates watcher thread, monitors establishment in step D2
Virtual device file, once has input information just read and process;
Step D5, reads after user inputs key assignments, input key assignments is converted to J2ME regulation
Button value and transfer to CVM virtual machine to process, CVM virtual machine module can be converted into by
Key events is also ultimately routed in J2ME programmed logic.
Compared with prior art, the present invention use with SD based on embedded Linux system or
The practice of high definition set top box is consistent, soft by JAVA virtual machine built-in in android system
Part, and the composition of JAVA software virtual machine and the running environment structure of JAVA virtual machine are entered
Row refinement, make JAVA software virtual machine can independent explanation, run J2ME software kit or other
J2ME program, it is ensured that the complete compatible and stability to J2ME program.Such as: when answering
When being used on Intelligent set top box based on android system, the virtual function of JAVA is grasped in intelligence
Make to run on system platform J2ME software kit, it can be ensured that the JAVA of IPTV platform is swum
The complete compatible and stability of play.
Compared with prior art, the present invention need not ecosystem when running J2ME software kit
The processes such as J2ME software kit carries out converting, installs, startup optimization, J2ME software kit passes through JAVA
Virtual machine independent startup, directly runs, and real-time is high, and Consumer's Experience is more preferably.
In sum, implementation method of the present invention, built-in JAVA in android system
Software virtual machine, JAVA software virtual machine can independently, run efficiently, solution that can be independent
Release, run J2ME software kit or other J2ME programs, it is ensured that complete to J2ME program
Compatible and stability, J2ME program passes through JAVA virtual machine independent startup, directly runs,
Real-time is high, and Consumer's Experience is more preferably.
Accompanying drawing explanation
The present invention has a drawings described below:
Fig. 1 is the JAVA virtual machine running environment structural representation representing the present invention.
Fig. 2 is to represent that J2ME program starts and operational flow diagram.
Fig. 3 is to represent that JAVA virtual machine graphics shows process chart.
Fig. 4 is to represent JAVA virtual machine audio frequency playback process flow process.
Fig. 5 is to represent JAVA user's input processing flow process.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in further detail.
JAVA virtual machine realization method in intelligent operating system of the present invention, first will
JAVA software virtual machine is divided into following two part:
Start intake section, be responsible for figure show, audio frequency broadcasting, the work such as user's input processing,
Startup entrance as normal Android application program;
CVM virtual machine part, CVM i.e. C virtual machine, is that JAVA virtual machine is embedding
Enter formula version, be operated in Linux user's space with the form of dynamic base, be responsible for J2ME software
The parsing of bag and operation, perform the drawing of J2ME software kit, audio logic, and according to J2ME
Software kit logical process user's incoming event;
Start between intake section and CVM virtual machine part, by JNI(JAVA NATIVE
INTERFACE, JAVA this locality calling technology) communicate with modes such as shared memory space.
On the basis of technique scheme, the running environment structure of JAVA virtual machine is divided into
Two levels: (Google aims at Android for Linux client layer and Dalvik virtual machine layer
The JAVA virtual machine of system development uses the JAVA program of .dex form);Wherein:
Start Android application program module and the JNI module (Android thereof of intake section
JNI module) operate in Dalvik virtual machine layer,
The CVM virtual machine module of CVM virtual machine part and JNI module (CVM JNI module) thereof
Operate in Linux client layer;
The JNI module starting intake section and CVM virtual machine part is all C/C++ realization, and
And common memory space, the communication between them is virtual as Linux client layer and Dalvik
Bridge between machine layer the two level uses, and sees Fig. 1.
JAVA virtual machine realization method in intelligent operating system of the present invention, JAVA is empty
Plan machine runs the course of work of J2ME software kit (J2ME program) and including:
Start and operational process (J2ME program starts and operational process),
JAVA virtual machine graphics display handling process,
JAVA virtual machine audio frequency playback process flow process,
JAVA user's input processing flow process.
Hereinafter illustrate one by one.
Startup and the operational process of the present invention comprise the steps of (seeing Fig. 2):
Step A1, Android application program module starts, arranges jar(JAVA in start-up parameter
Archive, refers to send out JAVA class file and various resource file and meta-data packing
The file format of cloth) software package file path;
Step A2, CVM virtual machine module is compiled as Linux dynamic base, passes through Android
JNI loads the dynamic base of CVM virtual machine, and obtains its entrance function to start CVM virtual machine
Module, now passes to CVM empty by the jar software package file path got in step A1
The dynamic base of plan machine;
Step A3, CVM virtual machine module is according to the jar software kit literary composition got in step A2
Jar file is read in part path, parses class file therein, and loads J2ME(JAVA
Platform, Micro Edition aims at what the embedded device such as mobile phone, Set Top Box provided
JAVA standard) class entrance, thus start program (J2ME program);
Step A4, starts the life cycle of J2ME software kit, enters J2ME software kit regulation
Programmed logic, comprise the logics such as drawing, audio frequency, user's input processing;
Step A5, by information such as the drawing handled well in J2ME software kit logic, audio frequency, logical
The interface crossing CVM JNI module is delivered to Android JNI module;
Step A6, the information such as drawing, audio frequency is delivered to Android by Android JNI module again
Application program module, is shown in Android application program module, is play;
Step A7, Android application program module receives user's input (such as directionkeys, determining),
It is delivered to CVM virtual machine module by the way of virtual Linux keyboard equipment file;
Step A8, user selects to exit, and CVM virtual machine module is sent by CVM JNI module
Exit command;
Step A9, exits command and is delivered to Android application by Android JNI module
Program module, Android application program module receives and exits command, and the flow process that quits a program terminates.
JAVA virtual machine graphics display handling process comprises the steps of (seeing Fig. 3):
Step B1, after program (J2ME program) starts, at the beginning of Android application program module
Beginningization application view (is derived from Android.view.SurfaceView), makes in view
Draw with one piece of Android.graphics.Bitmap;
The described i.e. drawing buffer of Android.graphics.Bitmap structure;
Step B2, described in Android JNI module initialization step B1
Android.graphics.Bitmap structure, i.e. initializes drawing buffer;
Step B3, CVM virtual machine module obtains the reality of drawing buffer by the way of shared drive
In border pointer, i.e. step B2 in the initialized Android.graphics.Bitmap structure of institute
Actual drawing memory;
Step B4, CVM virtual machine module, according to the J2ME programmed logic run, completes figure
As decoding, graphic plotting, text drafting etc. operate;
Step B5, exports step B3 by the processing result image completed in step B4
In acquired drawing buffer;
Step B6, drawing completes, and is sent the finger requiring to refresh screen by CVM JNI module
Order;
Step B7, Android JNI module receives the instruction refreshing screen, notifies Android
Application program module drawing buffer updates;
Step B8, the content of stretching drawing buffer is to adapt to display device, and refreshes view (i.e.
In step B1, initialized Android.view.SurfaceView derives class), complete image
Display.
JAVA virtual machine audio frequency playback process flow process comprises the steps of (seeing Fig. 4):
Step C1, after program starts, Android application program module initializes Android and broadcasts
Put device (Android.media.MediaPlayer);
Step C2, CVM virtual machine module, according to the J2ME programmed logic run, sends and broadcasts
Putting, stopping etc. being ordered;
Step C3, in CVM JNI module, is encapsulated as order by the order such as broadcasting, stopping
Character string;
Step C4, command string is sent at Android JNI module by CVM JNI module
Reason;
Step C5, command string is sent to Android application journey by Android JNI module
Sequence module;
Step C6, Android application program module receives and resolve command character string, according to life
The content order of order performs the operation such as broadcasting, stopping, it is achieved the broadcasting of audio frequency media.
JAVA user's input processing flow process comprises the steps of (seeing Fig. 5):
Step D1, after program starts, Android application program module receives user key-press input,
And preserve key assignments;
Step D2, creates the file of vertical keyboard device file, this document in file system
(virtual device file) can be taken as a keyboard equipment and use;
Step D3, according to Linux input equipment document structure definition, inputs user key-press
Conversion, in the virtual device file created in write step D2;
Step D4, CVM virtual machine module creates watcher thread, monitors establishment in step D2
Virtual device file, once has input information just read and process;
Step D5, reads after user inputs key assignments, input key assignments is converted to J2ME regulation
Button value and transfer to CVM virtual machine to process, CVM virtual machine module can be converted into by
Key events is also ultimately routed in J2ME programmed logic.
JAVA virtual machine realization method of the present invention, is not only applicable to Intelligent set top box etc.
Embedded type terminal equipment realizes running JAVA game, applies also for based on android system
The JAVA virtual machine realizing running J2ME program on other smart machine realizes.
Certainly, the present invention also can have other various embodiments, without departing substantially from the present invention spirit and
In the case of essence, those of ordinary skill in the art can according to the present invention make various accordingly
Change and deformation, but these change accordingly and deformation all should belong to this bright appended claim
Protection domain.
The content not being described in detail in this specification belongs to known in professional and technical personnel in the field
Prior art.
Claims (10)
1. the JAVA virtual machine realization method in an intelligent operating system, it is characterised in that:
First JAVA software virtual machine is divided into following two part:
Starting intake section, responsible figure shows, audio frequency is play and the work of user's input processing,
Startup entrance as normal Android application program;
CVM virtual machine part, is operated in Linux user's space with the form of dynamic base, is responsible for
The parsing of J2ME software kit and operation, perform the drawing of J2ME software kit, audio logic, and
According to J2ME software kit logical process user's incoming event;
Start between intake section and CVM virtual machine part, by JNI and shared memory space
Mode communicate, make the virtual function of JAVA run J2ME on intelligent operating system platform soft
Part bag.
2. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 1,
It is characterized in that: described intelligent operating system refers in particular to Android and derivation operation system thereof.
3. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 1,
It is characterized in that: described intelligent operating system operates in the Intelligent set top box accessing IPTV platform
In.
4. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 3,
It is characterized in that: described Intelligent set top box is SD or high definition set top box.
5. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 1,
It is characterized in that: the running environment structure of JAVA virtual machine is divided into two level: Linux
Client layer and Dalvik virtual machine layer;Wherein:
The Android application program module and the JNI module thereof that start intake section operate in
Dalvik virtual machine layer,
The CVM virtual machine module of CVM virtual machine part and JNI module thereof operate in Linux and use
Family layer;
The JNI module starting intake section and CVM virtual machine part is all C/C++ realization, and
And common memory space, the communication between them is virtual as Linux client layer and Dalvik
Bridge between machine layer the two level uses.
6. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 5,
It is characterized in that: JAVA virtual machine runs the course of work of J2ME software kit and includes:
Start and operational process,
JAVA virtual machine graphics display handling process,
JAVA virtual machine audio frequency playback process flow process,
JAVA user's input processing flow process.
7. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 6,
It is characterized in that: start and operational process comprises the steps of
Step A1, Android application program module starts, arranges jar software in start-up parameter
APMB package path;
Step A2, CVM virtual machine module is compiled as Linux dynamic base, passes through Android
JNI loads the dynamic base of CVM virtual machine, and obtains its entrance function to start CVM virtual machine
Module, now passes to CVM empty by the jar software package file path got in step A1
The dynamic base of plan machine;
Step A3, CVM virtual machine module is according to the jar software kit literary composition got in step A2
Jar file is read in part path, parses class file therein, and loads J2ME class entrance
Point, thus start program;
Step A4, starts the life cycle of J2ME software kit, enters J2ME software kit regulation
Programmed logic, comprise drawing, audio frequency and user's input processing;
Step A5, by the drawing handled well in J2ME software kit logic and audio-frequency information, passes through
The interface of CVM JNI module is delivered to Android JNI module;
Step A6, drawing and audio-frequency information are delivered to Android by Android JNI module again
Application program module, is shown in Android application program module, is play;
Step A7, Android application program module receives user's input, by virtual Linux
The mode of keyboard equipment file is delivered to CVM virtual machine module;
Step A8, user selects to exit, and CVM virtual machine module is sent by CVM JNI module
Exit command;
Step A9, exits command and is delivered to Android application by Android JNI module
Program module, Android application program module receives and exits command, and the flow process that quits a program terminates.
8. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 6,
It is characterized in that: JAVA virtual machine graphics display handling process comprises the steps of
Step B1, after program starts, Android application program module initializes application program and regards
Figure, uses one piece of Android.graphics.Bitmap structure, i.e. drawing buffer in view;
Step B2, described in Android JNI module initialization step B1
Android.graphics.Bitmap structure;
Step B3, CVM virtual machine module obtains the reality of drawing buffer by the way of shared drive
In border pointer, i.e. step B2 in the initialized Android.graphics.Bitmap structure of institute
Actual drawing memory;
Step B4, CVM virtual machine module, according to the J2ME programmed logic run, completes figure
As operation drawn by decoding, graphic plotting and text;
Step B5, exports step B3 by the processing result image completed in step B4
In acquired drawing buffer;
Step B6, drawing completes, and is sent the finger requiring to refresh screen by CVM JNI module
Order;
Step B7, Android JNI module receives the instruction refreshing screen, notifies Android
Application program module drawing buffer updates;
Step B8, the content of stretching drawing buffer is to adapt to display device, and refreshes view,
Complete the display of image.
9. the JAVA virtual machine realization method in intelligent operating system as claimed in claim 6,
It is characterized in that: JAVA virtual machine audio frequency playback process flow process comprises the steps of
Step C1, after program starts, Android application program module initializes Android and broadcasts
Put device Android.media.MediaPlayer;
Step C2, CVM virtual machine module, according to the J2ME programmed logic run, sends and broadcasts
Put and cease and desist order;
Step C3, in CVM JNI module, by broadcasting with cease and desist order and be encapsulated as command word
Symbol string;
Step C4, command string is sent at Android JNI module by CVM JNI module
Reason;
Step C5, command string is sent to Android application journey by Android JNI module
Sequence module;
Step C6, Android application program module receives and resolve command character string, according to life
The content order of order performs to play and stop operation, it is achieved the broadcasting of audio frequency media.
10. the JAVA virtual machine realization side in intelligent operating system as claimed in claim 6
Method, it is characterised in that: JAVA user's input processing flow process comprises the steps of
Step D1, Android application program module receives user key-press input, and preserves key assignments;
Step D2, creates the file of vertical keyboard device file, this document in file system
A keyboard equipment can be taken as use;
Step D3, according to Linux input equipment document structure definition, inputs user key-press
Conversion, in the virtual device file created in write step D2;
Step D4, CVM virtual machine module creates watcher thread, monitors establishment in step D2
Virtual device file, once has input information just read and process;
Step D5, reads after user inputs key assignments, input key assignments is converted to J2ME regulation
Button value and transfer to CVM virtual machine to process, CVM virtual machine module can be converted into by
Key events is also ultimately routed in J2ME programmed logic.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410146039.4A CN103870316B (en) | 2014-04-11 | 2014-04-11 | A kind of JAVA virtual machine realization method in intelligent operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410146039.4A CN103870316B (en) | 2014-04-11 | 2014-04-11 | A kind of JAVA virtual machine realization method in intelligent operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103870316A CN103870316A (en) | 2014-06-18 |
CN103870316B true CN103870316B (en) | 2016-09-07 |
Family
ID=50908883
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410146039.4A Active CN103870316B (en) | 2014-04-11 | 2014-04-11 | A kind of JAVA virtual machine realization method in intelligent operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103870316B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204881A (en) * | 2014-06-25 | 2015-12-30 | 中兴通讯股份有限公司 | Method and device for operating J2me application program on Android system |
CN104267983B (en) * | 2014-09-23 | 2020-07-17 | 上海卓盟信息科技有限公司 | Severe game packaging method based on android platform |
CN105589701B (en) * | 2014-10-21 | 2019-03-08 | 阿里巴巴集团控股有限公司 | A kind of client application local updating method and device |
CN104991784A (en) * | 2015-07-30 | 2015-10-21 | 惠州华阳通用电子有限公司 | Audio processing method and device of application program |
CN106991017B (en) * | 2017-04-05 | 2020-12-25 | 深圳天珑无线科技有限公司 | Event processing method and device |
CN107566365B (en) * | 2017-08-31 | 2020-11-03 | 深圳市九洲电器有限公司 | Set top box network application security protection method and system |
CN111114320B (en) * | 2019-12-27 | 2022-11-18 | 深圳市众鸿科技股份有限公司 | Vehicle-mounted intelligent cabin sharing display method and system |
CN114020159A (en) * | 2021-09-27 | 2022-02-08 | 北京智象信息技术有限公司 | Linux system kernel virtual keyboard customization method, device, equipment and medium |
CN114302243A (en) * | 2021-11-30 | 2022-04-08 | 四川天邑康和通信股份有限公司 | Method for realizing operation of J2ME game audio file by IPTV set-top box |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101339508A (en) * | 2008-08-18 | 2009-01-07 | 深圳华为通信技术有限公司 | Java2 miniature edition application operation method and device |
CN101489175A (en) * | 2009-02-24 | 2009-07-22 | 诚迈科技(南京)有限公司 | Wireless game platform based on CVM virtual machine technique |
US8627316B2 (en) * | 2001-05-30 | 2014-01-07 | Blackberry Limited | Mobile communications device application processing system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8924986B2 (en) * | 2011-09-01 | 2014-12-30 | American Megatrends, Inc. | Methods, devices and computer program products for confluence of multiple operating systems |
-
2014
- 2014-04-11 CN CN201410146039.4A patent/CN103870316B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8627316B2 (en) * | 2001-05-30 | 2014-01-07 | Blackberry Limited | Mobile communications device application processing system |
CN101339508A (en) * | 2008-08-18 | 2009-01-07 | 深圳华为通信技术有限公司 | Java2 miniature edition application operation method and device |
CN101489175A (en) * | 2009-02-24 | 2009-07-22 | 诚迈科技(南京)有限公司 | Wireless game platform based on CVM virtual machine technique |
Also Published As
Publication number | Publication date |
---|---|
CN103870316A (en) | 2014-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103870316B (en) | A kind of JAVA virtual machine realization method in intelligent operating system | |
CN111510781B (en) | Display device standby control method and display device | |
CN110737840B (en) | Voice control method and display device | |
CN107957911B (en) | Method and apparatus, the method and apparatus of module data processing of component call | |
CN105824900A (en) | Page display system based on react-native | |
US20160285958A1 (en) | Application container for live migration of mobile applications | |
CN107015862A (en) | Thread and/or scheduling virtual machine for the core with different abilities | |
WO2015149664A1 (en) | Web page access method and apparatus | |
CN113157362A (en) | Android multi-window display method applied to Linux | |
CN105740010B (en) | A kind of starting-up method and terminal device | |
KR20150072819A (en) | Method and apparatus for displaying digital contents in electronic device | |
CN107436786A (en) | Using starting guide method, apparatus and computer-readable recording medium | |
CN110268718A (en) | The energy conservation of video stream media and the perception of content of broadcasting in mobile device | |
CN102096598A (en) | Virtual machine system and implementing method thereof | |
CN105743955A (en) | Method for JavaScript object expansion | |
CN108874412A (en) | For updating the method, apparatus, equipment and system of interface layout | |
CN102693238A (en) | Widget application method and system and multimedia terminal | |
CN104866291A (en) | Android-based 2D mobile game engine | |
CN102904925B (en) | Three-screen-interaction-based cross-platform widget middleware system | |
CN103581315A (en) | Weather display system and method of mobile terminal | |
CN101729848B (en) | Game function implement method based on set top box | |
CN108153527A (en) | A kind of configuration method of equipment output resolution ratio | |
CN109933735A (en) | Dispatching method, webpage rendering method, Webpage display process and its equipment | |
CN111950288B (en) | Entity labeling method in named entity recognition and intelligent device | |
CN116261003A (en) | Display equipment and streaming media playing control method based on browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |