The invention discloses a method, a device and a terminal for automatically switching the default Launcher. The method includes: the intelligent terminal built at least two desktop launcher Launcher, one Launcher the default Launcher boot of the intelligent terminal; determining the default number of abnormal Launcher in the operation process; if the abnormal number exceeds a preset threshold, then switch the default Launcher corresponding to Launcher. The technical scheme of the invention can continue to collapse in the default Launcher, automatically switch the default Launcher corresponding to Launcher, to ensure the default Launcher after the collapse of the intelligent terminal can continue to use, improve the user experience.
【技术实现步骤摘要】
一种自动切换默认Launcher的方法、装置及终端
本专利技术实施例涉及电子设备应用技术,尤其涉及一种自动切换默认Launcher的方法、装置及终端。
技术介绍
安卓是一种基于Linux的开放源代码的操作系统,主要用于手机、平板电脑、电视或手表等智能终端。在安卓系统中,主要包括操作系统、中间件、用户界面和应用程序。其中,Launcher(桌面启动器)应用程序,是安卓系统加载完毕后第一个启动的应用程序,其负责处理和响应除应用本身操作外的所有操作,例如包括提供操作界面(即桌面)、响应于点击桌面上的应用程序图标而启动应用程序和设置壁纸等等。在系统运行Launcher应用程序的安卓安装包(AndroidPackage,APK)之后,完成系统开机。在实际应用中,开发者或用户会根据自身需求定制Launcher,并将定制的Launcher应用程序设置为默认Launcher,从而在开机后自动启动定制的Launcher。然而,当定制Launcher应用程序出现持续崩溃后,用户将反复看到Launcher应用崩溃的提示,如持续出现“进程com.android.launcher意外停止”的提示窗口,且用户无法继续使用该智能终端,降低用户体验。
技术实现思路
本专利技术提供一种自动切换默认Launcher的方法、装置及终端,以解决在默认Launcher出现持续崩溃后,用户无法继续使用该智能终端的问题,提高用户体验。第一方面,本专利技术实施例提供了一种自动切换默认Launcher的方法,该方法包括:在智能终端中内置至少两个桌面启动器Launcher,其中一个Launcher设置为所述智能 ...
【技术保护点】
一种自动切换默认Launcher的方法,其特征在于,包括:在智能终端中内置至少两个桌面启动器Launcher,其中一个Launcher设置为所述智能终端开机启动的默认Launcher;确定所述默认Launcher运行过程中的异常次数;若所述异常次数超过预设阈值,则切换所述默认Launcher对应的Launcher。
【技术特征摘要】
1.一种自动切换默认Launcher的方法,其特征在于,包括:在智能终端中内置至少两个桌面启动器Launcher,其中一个Launcher设置为所述智能终端开机启动的默认Launcher;确定所述默认Launcher运行过程中的异常次数;若所述异常次数超过预设阈值,则切换所述默认Launcher对应的Launcher。2.根据权利要求1所述的方法,其特征在于,所述确定所述默认Launcher运行过程中的异常次数,包括:获取日志文件中第一预设长度的日志信息,得到日志信息取样标本;判断所述日志信息取样标本中是否包括当前的所述默认Launcher的异常信息;若是,根据所述默认Launcher的异常信息对所述默认Launcher运行过程中的异常次数累加。3.根据权利要求2所述的方法,其特征在于,所述判断所述日志信息取样标本中是否包括当前的所述默认Launcher的异常信息,包括:判断所述日志信息取样标本中是否包括Exception字段;若是,判断所述日志信息取样标本中包括所述Exception字段的第二预设长度的日志信息是否包括当前的所述默认Launcher的包名;相应的,若是,根据所述默认Launcher的异常信息对所述默认Launcher运行过程中的异常次数累加,包括:若是,将所述默认Launcher运行过程中的异常次数累加所述默认Launcher的包名的个数。4.根据权利要求3所述的方法,其特征在于,所述切换所述默认Launcher对应的Launcher,包括:获取包括内置的所述Launcher的包名信息的Launcher列表;去除所述Launcher列表中与当前的所述默认Launcher包名相同的Launcher,得到第一Launcher列表;将所述第一Launcher列表中任一...
【专利技术属性】
技术研发人员:辛奇,
申请(专利权)人:广州视源电子科技股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。