CN104423934A - Android platform system based journey flight dynamic notification system and method - Google Patents

Android platform system based journey flight dynamic notification system and method Download PDF

Info

Publication number
CN104423934A
CN104423934A CN201310372462.1A CN201310372462A CN104423934A CN 104423934 A CN104423934 A CN 104423934A CN 201310372462 A CN201310372462 A CN 201310372462A CN 104423934 A CN104423934 A CN 104423934A
Authority
CN
China
Prior art keywords
android
application
service
activity
file
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.)
Pending
Application number
CN201310372462.1A
Other languages
Chinese (zh)
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.)
SHANGHAI GUANDONGNA INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI GUANDONGNA INFORMATION TECHNOLOGY Co Ltd
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 SHANGHAI GUANDONGNA INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI GUANDONGNA INFORMATION TECHNOLOGY Co Ltd
Priority to CN201310372462.1A priority Critical patent/CN104423934A/en
Publication of CN104423934A publication Critical patent/CN104423934A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an android platform system based journey flight dynamic notification system and method. Four assemblies which comprises an activity assembly, a service assembly, a broadcast receiver assembly and a content provider assembly are developed; the activity assembly is used for represent functions; the service assembly is used for performing the background service operation and the interface presentation is not provided; the broadcast receiver assembly is used for receiving the broadcast; according to the content provider assembly which is equivalent to a database, data are stored and read in plurality of applications; the activity assembly is the foundation of the applications in the android, the processes of the application are operated in the activity assembly, and the activity assembly is frequently used by developers and is one of basic modules in the android; the activity assembly generally represents one screen of a mobile phone screen in the applications of the android; the activity assembly is equivalent to a webpage of a mobile phone is compared to a browser; the control such as a button and a checkbox can be added into the activity assembly; a concept of the activity assembly is equivalent to a concept of the webpage.

Description

Based on route Scheduled Flight notice system and the method thereof of Android platform system
(1) field
The route Scheduled Flight notice system and the method thereof that the present invention is based on Android platform system belong to Information application field.
(2) brief introduction
The literal sense of Android mono-word refers to " robot ", and the title of the mobile phone operating system of increasing income based on Linux platform that to be also simultaneously Google announce on November 5th, 2007, this platform is made up of operating system, middleware, user interface and application software.
Android mono-word comes across Sade rel Adam (Auguste Villiers de l'Isle-Adam) the earliest in science fiction " following Eve " (the L'eve future) to deliver for 1886.Appearance is named as Android as the machine of people by him.
The Logo of Android is by Ascender company designs.What word wherein employed that Ascender company makes specially is referred to as
For the font of " Droid ".Android is the robot of a whole body green, and green is also the mark of Android.Color have employed hexadecimal #A4C639 in PMS 376C and RGB and draws, and this is the brand symbol of Android operation system.Sometimes, they also can use the Logo of pure words.
In July, 2012, U.S.'s science and technology Blog Website BusinessInsider chose 21st century ten sections of most important electronic products, and Android operation system and iPhone etc. appear on the list of successful candidates.
Android is a kind ofly mainly used in mobile device based on the freedom of Linux and the operating system of open source code, as smart mobile phone and panel computer, is led and exploitation by Google company and open mobile phone alliance.Not yet have uniform Chinese title, the more people in CONTINENTAL AREA OF CHINA uses " Android " or " peace causes ".Android operation system is developed by Andy Rubin at first, mainly supports mobile phone.In August, 2005 is purchased by Google and registers capital to.In November, 2007, Google and 84 hardware manufacturer, software developer and Telecom operators are set up open mobile phone alliance and are are jointly researched and developed improvement android system.Google increases income with Apache the authorization of licence subsequently, has issued the source code of Android.First Android intelligent is published in October, 2008.Android expands on panel computer and other field gradually, as TV, digital camera, game machine etc.The first quarter in 2011, the market share of Android in the whole world exceedes Saipan system first, leaps to the whole world first.In November, 2012 data display, Android occupies the share in global operation system of smart phone market 76%, and Chinese market occupation rate is 90%.
The system architecture of Android is the same with its operating system, have employed the framework of layering.From Organization Chart, Androd is divided into four layers, is application layer, application framework layer, system cloud gray model storehouse layer and Linux inner core from high level to low layer respectively.
The route Scheduled Flight that the present invention is based on Android platform system notifies that in system and method thereof, Android issues together together with a series of core application bag, and this application package comprises client, SMS short message program, calendar, map, browser, contact management's program etc.All application programs all use JAVA language to write.
Developer also can access the API framework that core application uses completely.The architecture design of this application program simplifies reusing of assembly; Any one application program can issue its functional block and other application program any can use its functional block issued (but must follow the security of framework).Equally, this application program reuse mechanism also makes user can replace program assembly easily.
The present invention is based on Android platform system route Scheduled Flight notice system and method comprising; Enrich and extendible view, can be used for building application program, it comprises list, grid, text box, button, even embeddable web browser.
Content Provider makes application program can access the data (as contact database) of Another application program, or shares their data
Explorer provides the access of non-code resource, as local character string, and figure, and topology file.
Notification manager makes application program can show self-defining information in status bar.
Active manager is used for managing application program life cycle and providing conventional navigation Backward Function.
The route Scheduled Flight that the present invention is based on Android platform system notifies that in system and method thereof, Android comprises some C/C++ storehouses, and these storehouses can be used by assemblies different in android system.They by Android application framework for developer provides service.Below some core libraries:
The standard C system function storehouse Libc of coming is inherited from BSD in-one, system C storehouse), it is special in the device customizing based on Embedded linux.
Media library-based on PacketVideo OpenCORE; Multiple conventional audio frequency, video format playback and recording are supported in this storehouse, support static image file simultaneously.Coded format comprises MPEG4, H.264, and MP3, AAC, AMR, JPG, PNG.
The management of Surface Manager-to display subsystem, and provide the seamless fusion of 2D and 3D layer for multiple application program.
The web browser engine use that LibWebCore-is up-to-date, supports flight and an embeddable web view.
The route Scheduled Flight that the present invention is based on Android platform system notifies that in system and method thereof, Android runs on Linux kernel, but is not GNU/Linux.Because the function supported in general GNU/Linux, Android does not mostly support, comprises Cairo, X11, Alsa, FFmpeg, GTK, Pango and Glibc etc. and has all been removed.Android replaces Glibc with Bionic again, replaces Cairo with Skia, replaces FFmpeg etc. with opencore again.Android in order to reach business application, must remove the part that retrains by GNU GPL warrant, such as driver is moved on to Userspace by Android, and Linux driver is thoroughly separated with Linux kernel.Bionic/Libc/Kernel/ off-gauge Kernel header files.The Kernel header of Android utilizes instrument to be produced by Linux Kernel header, this is done to retention constant, data structure and grand.
The Linux kernel of Android controls to comprise safety (Security), memory management (Memory Management), program management (Process Management), network stack (Network Stack), driver model (Driver Model) etc.Before downloading Android source code, its build tool Repo first to be installed and carry out initialization source code.Repo be Android be used for auxiliary Git work an instrument.
APK is the file layout of similar Symbian Sis or Sisx.Perform can install by APK file directly being passed in Android simulator or Android phone.Apk file is the same with sis, and the engineering that android sdk compiles is packaged into an installation procedure file, and form is apk.APK file is zip form in fact, but suffix name is modified to apk, after UnZip decompress(ion), Dex file can be seen, Dex is the full name of Dalvik VM executes, i.e. Android Dalvik executive routine, not the bytecode of Java ME but Dalvik bytecode.
The present invention is based on route Scheduled Flight notice system and the method APK file structure thereof of Android platform system
An APK file structure is:
1. META-INF (note: often can see in Jar file);
2. res (note: the catalogue depositing resource file);
3. AndroidManifest.xml (note: program global configuration file);
4. classes.dex (note: Dalvik bytecode);
5. resources.arsc (note: the Binary Resources file after compiling).
First the route Scheduled Flight notice system and the method thereof that the present invention is based on Android platform system need UnZip when an operation program, then similar Symbian like that directly performs installation, have any different with the PE file in Windows Mobile, it is not very high for doing for the confidentiality of program and reliability like this, can decompiling by dexdump order, but do like this and meet the rule of development, the Windows Gadgets of Microsoft in other words WPF also uses this framework mode.
The route Scheduled Flight that the present invention is based on Android platform system notifies that the execute file of dalvik vm in system and method thereof is packaged as apk form, during final operation, then loader can obtain the relevant secure access of the permission branch compiled in rear androidmanifest.xml file by decompress(ion), but still there is a lot of safe limit, if you apk file is passed to/system/app file under can find that execution is unrestricted.
The file that finally we install at ordinary times may not be this file, and the apk file default of system can put into this file in android rom, and they have root authority.
Picture layer taken out by the HAL(hardware of Android) be can provide Hardware drive module with closed source code form.The object of HAL is in order to Android framework and Linux kernel is separated, allow Android is unlikely depends on Linux kernel unduly, to reach the concept of Kernel independent, also allow the exploitation of Android framework can develop under the prerequisite not considering driver realization.
The present invention is based on the route Scheduled Flight notice system of Android platform system and the communication bridge of method operating system and application program thereof, application is divided into two-layer: function layer and virtual machine.Bionic is the version that Android improves libc.Android contains Webkit simultaneously, and so-called Webkit is exactly Apple Safari browser engine behind.Surface flinger is shown on screen with regard to the content of 2D or 3D.Android uses tools chain (Toolchain) to be the homemade Bionic Libc of Google.
The route Scheduled Flight notice system and the method thereof that the present invention is based on Android platform system adopt multimedia framework based on OpenCORE.Open CORE can divide 7 bulks: PVPlayer, PVAuthor, Codec, PacketVideo Multimedia Framework(PVMF), Operating System Compatibility Library(OSCL), Common, OpenMAX.
Android uses skia to be core graphic engine, collocation OpenGL/ES.Skia and Linux Cairo function is suitable, but compared to Linux Cairo, skia function also just blank.The multimedia database of Android adopts SQLite Database Systems.Database is divided into again shared database and private data storehouse.User obtains shared database by ContentResolver class (Column).
The middle layer of Android realizes mainly with Java, and adopts special Dalvik virtual machine (Dalvik Virtual Machine).Dalvik virtual machine is the Java Virtual Machine of a kind of " working storage kenel " (Register Based), and variable is all deposited in working storage, and the instruction of virtual machine reduces relatively.
Dalvik virtual machine can have Multi-instance (Instance), and each Android application program is run from the Dalvik virtual machine belonged to one, allows system can reach optimization when working procedure.Dalvik virtual machine inoperative Java bytecode (Bytecode), but run a kind of file being called .dex form.
The route Scheduled Flight notice system and the method itself thereof that the present invention is based on Android platform system are the discrete operating system of an authority.In this type operating system, each application runs (Linux user ID and group ID) with unique system identification identity.The each several part of system also uses separately independently recognition method respectively.Linux will apply and application like this, and application and isolation of system are opened.
The route Scheduled Flight notice system and the more security function of method system thereof that the present invention is based on Android platform system are provided by authority mechanism.Authority can limit the specific operation of certain specific process, also can limit each URI authority to the access of particular piece of data.
The core design thought of the route Scheduled Flight notice system and method safety framework thereof that the present invention is based on Android platform system is, under default setting, all application all do not have authority to carry out the operation of considerable influence to other application, system or user.This, comprising read-write privacy of user data (contact person or Email), reads and writes other application files, accesses network or prevention device standby etc.
The present invention is based on the route Scheduled Flight notice system of Android platform system and method thereof when application is installed, sign the authority mentioned at scrutiny program, and after user's confirmation, software package erector can give application permission.From user perspective, a Android application can require following authority usually:
Call, send note or multimedia message, content on amendment/deletion SD card, read the information of contact person, read the breath of schedule letter, write schedule data, read telephone state or identification code, (based on GPS) geographic position accurately, fuzzy (acquisition Network Based) geographic position, establishment bluetooth connects, to the access completely of internet, check network state, check WiFi state, avoid cell phone standby, the amendment system overall situation is arranged, read synchronization settings, start self-starting, restart other application, stop operating application, the application of setting preference, shake control, pictures taken etc.
The function that a application should provide according to self, requires rational authority.User also can analyze a application requested permissions, thus simple judges that this applies whether safety.As the standalone version that a application is not with advertisement, also need to download without any additional content, so it requires that the authority of accesses network is just more suspicious.
The route Scheduled Flight notice system and the method thereof that the present invention is based on Android platform system develop four large assemblies respectively: movable (Activity): for the function of appeal.Service (Service): running background service, does not provide interface to present.Radio receiver (BroadcastReceiver): for receiving broadcast.Content supplier (Content Provider): support store in several applications and read data, be equivalent to database.
In Android, Activity is the basic of all programs, and the flow process of all programs all operates among Activity, Activity can be developer run into the most frequent, be also one of module the most basic in the middle of Android.In the middle of the program of Android, a screen of Activity general proxy mobile phone screen.If mobile phone is compared to a browser, so Activity is just equivalent to a webpage.The controls such as some Button, Check box can be added in the middle of Activity.Can see that the concept of Activity concept and webpage is quite similar.
General Android application is made up of multiple Activity.Between this multiple Activity
Can mutual redirect be carried out, such as, after pressing next Button button, other Activity may be jumped to.Some is differently a little with webpage redirect, redirect between Activity likely rreturn value, such as, jumps to Activity B from Activity A, so when Activity B end of run time, likely Activity A rreturn value can be given.Be made in like this is many times quite easily.
The present invention is based on the route Scheduled Flight notice system of Android platform system and method thereof when opening a new screen, previous screen can be set to halted state, and to be pressed in history stack.The screen that user is opened before can being turned back to by rollback operation.Can optionally remove some there is no need retain screen because Android can each application start be kept in storehouse to current each screen.
Service is a kind of assembly in android system, and it is similar with the rank of Activity, but he can not run himself, can only running background, and can carry out alternately with other assemblies.Service is the code of the long life cycle not having interface.Service is a kind of program, and it can run for a long time, but it does not but have user interface.So say somewhat uninteresting, an example.Open the program of a music player, surfed the Net if want this time, so, opened flight, although entered this program of browser this time, playback of songs does not stop, but continues the broadcasting of an a head then head on backstage.This is play and is controlled by the Service playing music exactly in fact.Certainly this Service playing music also can stop, and such as, the song inside playlist all terminates, or user presses the shortcut etc. stopping music.Service can use in the application with many occasions, such as when play multimedia user start other Activity program in this time will backstage continue play, such as detect the change of SD card files, change again or in record geography information position, backstage etc., serve in a word, always ensconce back.
Open Service and have two kinds of modes:
(1) Context.startService(): if Service can experience onCreate-> onStart(, Service does not also run, then android first calls onCreate() then call onStart(); If Service runs, then only call onStart(), so the onStart method of a Service may repeat to call repeatedly); Direct onDestroy when StopService, if caller oneself directly exits and do not call StopService, Service can always at running background.The caller of this Service can close Service by stopService after restarting.Note, repeatedly call Context.startservice() can not nested (even if having corresponding onStart() method be called), so no matter same service has been activated how many times, once call Context.stopService() or StopSelf(), he can be stopped.Supplementary notes: the Intent object passing to StartService(0 can pass to onStart() method.Calling order is: onCreate--> onStart(can repeatedly call)--> onDestroy.
(2) Context.bindService(): Service can experience onCreate()-->onBind(), onBind will return to client IBind interface instance, IBind allows the method for client readjustment service, such as obtains state or other operations of Service operation.This time is caller (Context, such as Activity) can and Service bind together, Context has exited, and Srevice will call onUnbind--and > onDestroyed is corresponding to be exited, and what is called binds together and just shared a common destiny, life or death.
In advantage, first Android platform is exactly that it is explorative, and the platform of exploitation allows any mobile terminal manufacturer to join Android alliance.Significant opening can make it have more developer, and along with becoming increasingly abundant of user and application, a brand-new platform also will move towards technology maturation very soon.

Claims (7)

1. developer also can access the API framework that core application uses completely; The architecture design of this application program simplifies reusing of assembly; Any one application program can issue its functional block and other application program any can use its functional block issued (but must follow the security of framework); Equally, this application program reuse mechanism also makes user can replace program assembly easily;
The present invention is based on Android platform system route Scheduled Flight notice system and method comprising; Enrich and extendible view, can be used for building application program, it comprises list, grid, text box, button, even embeddable web browser;
Content Provider makes application program can access the data (as contact database) of Another application program, or the data resource management device sharing them provides the access of non-code resource, as local character string, and figure, and topology file.
2. notification manager makes application program can show self-defining information in status bar;
Active manager is used for managing application program life cycle and providing conventional navigation Backward Function;
The route Scheduled Flight that the present invention is based on Android platform system notifies that in system and method thereof, Android comprises some C/C++ storehouses, and these storehouses can be used by assemblies different in android system; They by Android application framework for developer provides service; Below some core libraries:
The standard C system function storehouse Libc of coming is inherited from BSD in-one, system C storehouse), it is special in the device customizing based on Embedded linux;
Media library-based on PacketVideo OpenCORE; Multiple conventional audio frequency, video format playback and recording are supported in this storehouse, support static image file simultaneously; Coded format comprises MPEG4, H.264, and MP3, AAC, AMR, JPG, PNG;
The management of Surface Manager-to display subsystem, and provide the seamless fusion of 2D and 3D layer for multiple application program;
The web browser engine use that LibWebCore-is up-to-date, supports flight and an embeddable web view;
The route Scheduled Flight that the present invention is based on Android platform system notifies that in system and method thereof, Android runs on Linux kernel, but is not GNU/Linux; Because the function supported in general GNU/Linux, Android does not mostly support, comprises Cairo, X11, Alsa, FFmpeg, GTK, Pango and Glibc etc. and has all been removed; Android replaces Glibc with Bionic again, replaces Cairo with Skia, replaces FFmpeg etc. with opencore again; Android in order to reach business application, must remove the part that retrains by GNU GPL warrant, such as driver is moved on to Userspace by Android, and Linux driver is thoroughly separated with Linux kernel; Bionic/Libc/Kernel/ off-gauge Kernel header files; The Kernel header of Android utilizes instrument to be produced by Linux Kernel header, this is done to retention constant, data structure and grand;
The Linux kernel of Android controls to comprise safety (Security), memory management (Memory Management), program management (Process Management), network stack (Network Stack), driver model (Driver Model) etc.; Before downloading Android source code, its build tool Repo first to be installed and carry out initialization source code; Repo be Android be used for auxiliary Git work an instrument;
APK is the file layout of similar Symbian Sis or Sisx; Perform can install by APK file directly being passed in Android simulator or Android phone; Apk file is the same with sis, and the engineering that android sdk compiles is packaged into an installation procedure file, and form is apk; APK file is zip form in fact, but suffix name is modified to apk, after UnZip decompress(ion), Dex file can be seen, Dex is the full name of Dalvik VM executes, i.e. Android Dalvik executive routine, not the bytecode of Java ME but Dalvik bytecode.
3. the present invention is based on route Scheduled Flight notice system and the method APK file structure thereof of Android platform system
An APK file structure is:
META-INF (note: often can see in Jar file);
Res (note: the catalogue depositing resource file);
AndroidManifest.xml (note: program global configuration file);
Classes.dex (note: Dalvik bytecode);
Resources.arsc (note: the Binary Resources file after compiling);
First the route Scheduled Flight notice system and the method thereof that the present invention is based on Android platform system need UnZip when an operation program, then similar Symbian like that directly performs installation, have any different with the PE file in Windows Mobile, it is not very high for doing for the confidentiality of program and reliability like this, can decompiling by dexdump order, but do like this and meet the rule of development, the Windows Gadgets of Microsoft in other words WPF also uses this framework mode;
The route Scheduled Flight that the present invention is based on Android platform system notifies that the execute file of dalvik vm in system and method thereof is packaged as apk form, during final operation, then loader can obtain the relevant secure access of the permission branch compiled in rear androidmanifest.xml file by decompress(ion), but still there is a lot of safe limit, if you apk file is passed to/system/app file under can find that execution is unrestricted;
The file that finally we install at ordinary times may not be this file, and the apk file default of system can put into this file in android rom, and they have root authority;
Picture layer taken out by the HAL(hardware of Android) be can provide Hardware drive module with closed source code form; The object of HAL is in order to Android framework and Linux kernel is separated, allow Android is unlikely depends on Linux kernel unduly, to reach the concept of Kernel independent, also allow the exploitation of Android framework can develop under the prerequisite not considering driver realization.
4. the present invention is based on the route Scheduled Flight notice system of Android platform system and the communication bridge of method operating system and application program thereof, application is divided into two-layer: function layer and virtual machine; Bionic is the version that Android improves libc; Android contains Webkit simultaneously, and so-called Webkit is exactly Apple Safari browser engine behind; Surface flinger is shown on screen with regard to the content of 2D or 3D; Android uses tools chain (Toolchain) to be the homemade Bionic Libc of Google;
The route Scheduled Flight notice system and the method thereof that the present invention is based on Android platform system adopt multimedia framework based on OpenCORE; Open CORE can divide 7 bulks: PVPlayer, PVAuthor, Codec, PacketVideo Multimedia Framework(PVMF), Operating System Compatibility Library(OSCL), Common, OpenMAX;
Android uses skia to be core graphic engine, collocation OpenGL/ES; Skia and Linux Cairo function is suitable, but compared to Linux Cairo, skia function also just blank; The multimedia database of Android adopts SQLite Database Systems; Database is divided into again shared database and private data storehouse; User obtains shared database by ContentResolver class (Column);
The middle layer of Android realizes mainly with Java, and adopts special Dalvik virtual machine (Dalvik Virtual Machine); Dalvik virtual machine is the Java Virtual Machine of a kind of " working storage kenel " (Register Based), and variable is all deposited in working storage, and the instruction of virtual machine reduces relatively;
Dalvik virtual machine can have Multi-instance (Instance), and each Android application program is run from the Dalvik virtual machine belonged to one, allows system can reach optimization when working procedure; Dalvik virtual machine inoperative Java bytecode (Bytecode), but run a kind of file being called .dex form;
The route Scheduled Flight notice system and the method itself thereof that the present invention is based on Android platform system are the discrete operating system of an authority; In this type operating system, each application runs (Linux user ID and group ID) with unique system identification identity; The each several part of system also uses separately independently recognition method respectively; Linux will apply and application like this, and application and isolation of system are opened;
The route Scheduled Flight notice system and the more security function of method system thereof that the present invention is based on Android platform system are provided by authority mechanism; Authority can limit the specific operation of certain specific process, also can limit each URI authority to the access of particular piece of data;
The core design thought of the route Scheduled Flight notice system and method safety framework thereof that the present invention is based on Android platform system is, under default setting, all application all do not have authority to carry out the operation of considerable influence to other application, system or user; This, comprising read-write privacy of user data (contact person or Email), reads and writes other application files, accesses network or prevention device standby etc.
5. the present invention is based on the route Scheduled Flight notice system of Android platform system and method thereof when application is installed, sign the authority mentioned at scrutiny program, and after user's confirmation, software package erector can give application permission; From user perspective, a Android application can require following authority usually:
Call, send note or multimedia message, content on amendment/deletion SD card, read the information of contact person, read the breath of schedule letter, write schedule data, read telephone state or identification code, (based on GPS) geographic position accurately, fuzzy (acquisition Network Based) geographic position, establishment bluetooth connects, to the access completely of internet, check network state, check WiFi state, avoid cell phone standby, the amendment system overall situation is arranged, read synchronization settings, start self-starting, restart other application, stop operating application, the application of setting preference, shake control, pictures taken etc.,
The function that a application should provide according to self, requires rational authority; User also can analyze a application requested permissions, thus simple judges that this applies whether safety; As the standalone version that a application is not with advertisement, also need to download without any additional content, so it requires that the authority of accesses network is just more suspicious.
6. the route Scheduled Flight notice system and the method thereof that the present invention is based on Android platform system develop four large assemblies respectively: movable (Activity): for the function of appeal; Service (Service): running background service, does not provide interface to present; Radio receiver (BroadcastReceiver): for receiving broadcast; Content supplier (Content Provider): support store in several applications and read data, be equivalent to database;
In Android, Activity is the basic of all programs, and the flow process of all programs all operates among Activity, Activity can be developer run into the most frequent, be also one of module the most basic in the middle of Android; In the middle of the program of Android, a screen of Activity general proxy mobile phone screen; If mobile phone is compared to a browser, so Activity is just equivalent to a webpage; The controls such as some Button, Check box can be added in the middle of Activity; Can see that the concept of Activity concept and webpage is quite similar;
General Android application is made up of multiple Activity; Between this multiple Activity
Can mutual redirect be carried out, such as, after pressing next Button button, other Activity may be jumped to; Some is differently a little with webpage redirect, redirect between Activity likely rreturn value, such as, jumps to Activity B from Activity A, so when Activity B end of run time, likely Activity A rreturn value can be given; Being made in like this is many times quite easily,
The present invention is based on the route Scheduled Flight notice system of Android platform system and method thereof when opening a new screen, previous screen can be set to halted state, and be pressed in history stack; The screen that user is opened before can being turned back to by rollback operation; Can optionally remove some there is no need retain screen because Android can each application start be kept in storehouse to current each screen;
Service is a kind of assembly in android system, and it is similar with the rank of Activity, but he can not run himself, can only running background, and can carry out alternately with other assemblies; Service is the code of the long life cycle not having interface; Service is a kind of program, and it can run for a long time, but it does not but have user interface; So say somewhat uninteresting, an example; Open the program of a music player, surfed the Net if want this time, so, opened flight, although entered this program of browser this time, playback of songs does not stop, but continues the broadcasting of an a head then head on backstage; This is play and is controlled by the Service playing music exactly in fact; Certainly this Service playing music also can stop, and such as, the song inside playlist all terminates, or user presses the shortcut etc. stopping music; Service can use in the application with many occasions, such as when play multimedia user start other Activity program in this time will backstage continue play, such as detect the change of SD card files, then or the change of recording geography information position on backstage etc.
7. open Service and have two kinds of modes:
(1) Context.startService(): if Service can experience onCreate-> onStart(, Service does not also run, then android first calls onCreate() then call onStart(); If Service runs, then only call onStart(), so the onStart method of a Service may repeat to call repeatedly); Direct onDestroy when StopService, if caller oneself directly exits and do not call StopService, Service can always at running background; The caller of this Service can close Service by stopService after restarting; Note, repeatedly call Context.startservice() can not nested (even if having corresponding onStart() method be called), so no matter same service has been activated how many times, once call Context.stopService() or StopSelf(), he can be stopped; Supplementary notes: the Intent object passing to StartService(0 can pass to onStart() method; Calling order is: onCreate--> onStart(can repeatedly call)--> onDestroy;
(2) Context.bindService(): Service can experience onCreate()-->onBind(), onBind will return to client IBind interface instance, IBind allows the method for client readjustment service, such as obtains state or other operations of Service operation; This time binds together caller (Context, such as Activity) meeting and Service, and Context has exited, and Srevice will call onUnbind--and > onDestroyed is corresponding to be exited.
CN201310372462.1A 2013-08-25 2013-08-25 Android platform system based journey flight dynamic notification system and method Pending CN104423934A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310372462.1A CN104423934A (en) 2013-08-25 2013-08-25 Android platform system based journey flight dynamic notification system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310372462.1A CN104423934A (en) 2013-08-25 2013-08-25 Android platform system based journey flight dynamic notification system and method

Publications (1)

Publication Number Publication Date
CN104423934A true CN104423934A (en) 2015-03-18

Family

ID=52973030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310372462.1A Pending CN104423934A (en) 2013-08-25 2013-08-25 Android platform system based journey flight dynamic notification system and method

Country Status (1)

Country Link
CN (1) CN104423934A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339163A (en) * 2016-08-30 2017-01-18 竞技世界(北京)网络技术有限公司 Backspacing interaction method of App built-in browser and embedded webpage
CN106843937A (en) * 2016-12-29 2017-06-13 北京奇虎科技有限公司 A kind of tune for notifying corresponding A pp plays method and device
CN110413342A (en) * 2019-07-15 2019-11-05 深圳市易汇软件有限公司 A kind of android service and the process method that simultaneously dynamic adjusts alignment processing mechanism that can dynamically adjust monitoring
CN110618913A (en) * 2019-09-18 2019-12-27 青岛海信移动通信技术股份有限公司 Application use duration segmented statistics method and terminal
CN112735401A (en) * 2020-12-11 2021-04-30 广州朗国电子科技有限公司 Voice recognition detection method and device based on PIR sensor and all-in-one machine
CN115334193A (en) * 2021-05-28 2022-11-11 荣耀终端有限公司 Context-based notification display method and apparatus

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339163A (en) * 2016-08-30 2017-01-18 竞技世界(北京)网络技术有限公司 Backspacing interaction method of App built-in browser and embedded webpage
CN106339163B (en) * 2016-08-30 2019-04-05 竞技世界(北京)网络技术有限公司 A kind of method that App built-in browser is interacted with embedded webpage rollback
CN106843937A (en) * 2016-12-29 2017-06-13 北京奇虎科技有限公司 A kind of tune for notifying corresponding A pp plays method and device
CN110413342A (en) * 2019-07-15 2019-11-05 深圳市易汇软件有限公司 A kind of android service and the process method that simultaneously dynamic adjusts alignment processing mechanism that can dynamically adjust monitoring
CN110413342B (en) * 2019-07-15 2022-12-16 深圳市易汇软件有限公司 Method capable of dynamically adjusting monitored android service and process and dynamically adjusting corresponding processing mechanism
CN110618913A (en) * 2019-09-18 2019-12-27 青岛海信移动通信技术股份有限公司 Application use duration segmented statistics method and terminal
CN112735401A (en) * 2020-12-11 2021-04-30 广州朗国电子科技有限公司 Voice recognition detection method and device based on PIR sensor and all-in-one machine
CN115334193A (en) * 2021-05-28 2022-11-11 荣耀终端有限公司 Context-based notification display method and apparatus
CN115334193B (en) * 2021-05-28 2023-10-31 荣耀终端有限公司 Notification display method and device based on situation

Similar Documents

Publication Publication Date Title
CN104423934A (en) Android platform system based journey flight dynamic notification system and method
US9307342B2 (en) Dynamic rendering for software applications
US8555249B2 (en) Lifecycle stable user interface adaptations
US11157270B2 (en) Multi-platform pattern-based user interfaces
Shu et al. Research on mobile location service design based on Android
US9059942B2 (en) Method and apparatus for providing an architecture for delivering mixed reality content
US20120208564A1 (en) Methods and systems for providing geospatially-aware user-customizable virtual environments
US10599759B2 (en) Content sharing web page overlay system
WO2014116542A1 (en) Activation of dormant features in native applications
US20130176334A1 (en) Method and apparatus for analyzing clustering of mixed reality content and computaions
CN114064024A (en) Method, apparatus, device, storage medium, and program product for developing micro-application
CN105447349A (en) Method and device for protecting derived symbol in so file
US10169901B2 (en) Staggered animation scheduling
US9898488B2 (en) Preserving deprecated database columns
US10579374B2 (en) Method for converting application and computing device
KR101414795B1 (en) Instant Web App composing device and method
CN102054235B (en) Method and device for building institutional repository based on digital resource service component model
US9158505B2 (en) Specifying compiled language code in line with markup language code
CN104423935A (en) Apple mobile phone platform system based journey flight dynamic notification system and method
CN103746967A (en) Mobile client advertisement invoking method and system
Quan et al. A cross-platform application development environment supported by cloud service
Lin et al. ATM: A framework to support application state migration in multiple terminals environment
Kakderi et al. Deliverable 5.2 Book about public services migration to the cloud and the use of cloud-based public services in four European cities
Mehdi Timespan-museum without walls mobile application
Iqbal The Project Entitled" Blood Donor’s Diary" is an Application Based on Android Platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150318

WD01 Invention patent application deemed withdrawn after publication