Patent Document ID: 10127037
Application ID: 15363803
Patent Status: 1

Claim One:
1. A method for recognizing an application type, comprising: judging whether an application to be recognized in a system has an application type mark; if so, acquiring a value of the application type mark of the application to be recognized, and comparing the value of the application type mark with a preset value of each of application types to recognize a type of the application to be recognized, wherein the application type mark refers to metadata that can indicate the type of the application that was added into a list configuration file of the application when the application was being developed; if not, acquiring an application package name of the application to be recognized, and recognizing the type of the application to be recognized according to the application package name, wherein the acquiring a value of the application type mark of the application to be recognized comprises: judging whether a view of the application to be recognized is an ordinary view or a special view, in case of an ordinary view, reading metadata in the list configuration file of the application to be recognized by calling function addView( ) of class WindowManagerGlobal.java of the system, taking a value of the metadata as the value of the application type mark of the application to be recognized, and saving the value of the application type mark in class WindowManager.LayoutParams; in case of a special view, reading metadata in the list configuration file of the application to be recognized by directly calling function init( )of the special view, taking a value of the metadata as the value of the application type mark of the application to be recognized, and saving the value of the application type mark in class WindowManager.LayoutParams.