1. 程式人生 > >getTasks: caller 10108 does not hold GET_TASKS; limiting output問題解決

getTasks: caller 10108 does not hold GET_TASKS; limiting output問題解決

出現以下刷屏輸出:

11-28 11:55:43.249: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:44.300: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:45.352: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:46.416: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:47.468: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:48.521: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:49.571: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:50.623: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:51.675: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:52.726: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:53.777: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output

11-28 11:55:54.829: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output
目前在Android API 21的Logcat輸出存在一個Bug沒有解決,就會出現上述的刷屏問題,
目前我知道當呼叫一下程式碼時就會出現這個問題:
ActivityManager am = (ActivityManager) this.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningTaskInfo> taskInfo = am.getRunningTasks(5);
想要解決這個問題,我在這裡加入了版本檢查:
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP);
並且在清單配置檔案中加入以下許可權:
<uses-permission android:name="android.permission.GET_TASKS" />





相關推薦

getTasks: caller 10108 does not hold GET_TASKS; limiting output問題解決

出現以下刷屏輸出: 11-28 11:55:43.249: W/ActivityManager(591): getTasks: caller 10108 does not hold GET_TASKS; limiting output 11-28 11:55:44.300

getTasks: caller 10035 does not hold REAL_GET_TASKS; limiting output的處理

除錯時,遇到一個問題,記錄一下,以作備忘。 執行一個apk,一直出現如下警告資訊: 04-05 09:33:25.410 W/ActivityManager( 2450): getTasks: caller 10035 does not hold REAL_GET_TAS

python 報錯TypeError: 'range' object does not support item assignment,解決方法

class 問題 support nts str 數列 num 方法 star 貼問題 nums = range(5)#range is a built-in function that creates a list of integers print(nums)#pri

Result Maps collection does not contain value for錯誤解決

在用mybatis寫後臺程式時,可能會遇到以下錯誤 百度說的大部分是select語句引發的,而我是在執行insert語句時觸發了這個錯誤,檢查了mapper.java和mapper.xml檔案都沒發現錯誤,sql語句也正確,那麼問題出在哪裡呢,後來在一片博文看

C++開發python擴充套件模組:ImportError: dynamic module does not define init function (initRabbit)解決辦法

用C++為Python編寫擴充套件模組(動態連結庫),並在Python中呼叫C++開發的擴充套件功能函式過程,遇到如下錯誤的童鞋,系不繫很苦惱啊:  ImportError: dynamic module does notdefine init function (ini

Client does not support authentication的問題解決

看了網上很多這樣的解決方案,但是還是不行,最後自己摸索出解決方案。具體原因不詳,我這裡是因為安裝的MYSQL8.0,安裝的時候選項選擇的強加密方式。直接上圖1.點選開啟安裝的Mysql安裝檔案(mysql-installer-community-8.0.11.0.msi),開

Device eth0 does not seem to be present”解決辦法 (常見於克隆系統後出現的網路配置問題)

# service network restartShutting down loopback insterface: [ OK ] Bringing up loopback insterface: [ OK ]Bringing up interface eth0: Dev

使用mybatis啟動報錯Result Maps collection does not contain value for的解決

在呼叫mapper方法後報錯: Result Maps collection does not contain value for java.lang.Integer 我檢查了下我的mapper.xml檔案,該方法是個insert方法,並沒有resultMa

Android異常之Retrofit API報錯: "Type 'java.util.Observable' does not have type parameter”的解決方案

問題還原: 我想用retrofit+rxjava做網路請求,偏偏剛寫被觀察這時報錯:Type 'java.util.Observable' does not have type parameters 死活不知道在哪。 解決方式: 弄了好久,咋還沒解決呢。 然後看

啟動tomcat 服務報 The file is absent or does not have execute permission的解決辦法

啟動tomcat  cd /home/tomcat/bin sh startup.sh Cannot find bin/catalina.sh  The file is absent or does not have execute permission  This fi

JAVA_HOME does not point to the JDK 解決方法

Error  Description: Unable to find a javac compiler;com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to t

[MySQL] Client does not support authentication protocol的解決

Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD stat

python 報錯TypeError: 'range' object does not support item assignment,解決方法

1. 例子如下: from math import sqrt if __name__ == '__main__': N = 100 a = range(0,N) for i in range(2,int(sqrt(N))):

java.io.FileNotFoundException: class path resource ..cannot be opened because it does not exist

java ... mod ons exc pen 方法 except open java.io.FileNotFoundException: class path resource ..cannot be opened because it does not exist

DBCA Does Not Display ASM Disk Groups In 11.2

perm Owner .com mes round rda pre sys pos DBCA Does Not Display ASM Disk Groups In?11.2 https://oraclehowto.wordpress.com/2011/08/15/dbc

exchange 2013 error:5.7.1 Client does not have permissions to send as this sender

exchange2013 self權限看了幾個文章,都是寫的exchange2010的報錯,有點過時了,我寫下exchange2013遇到該問題的排查首先排除服務器的問題和用戶本地配置的問題。對比法:服務器是否有問題?其他賬戶是否有問題?本地環境下其他賬戶是否有問題?均排除,那麽問題就在賬號上了。查看該賬號在

Java compiler level does not match the version of the installed Java project facet

led epo sin eclips path tar repo alt rip 更換jdk版本時報以下問題:Description Resource Path Location TypeJava compiler level does not match the vers

[Maven]package com.sun.image.codec.jpeg does not exist

sym 接下來 workspace lock nis program uic edit 問題 ----------------------------------------------------------------- 原創博文,如需轉載請註明出處! 博主:疲憊的豆豆

ORA 12505 Listener does not currently know of SID given in connection descriptor

water iss dev lob .html 紅色 fcm home address oracle數據庫正常啟動後。在本地能夠正常訪問,可是遠程使用sqldevelop卻不能訪問。提示ORA 12505 Listener does not currently know

mysql5.7 Your password does not satisfy the current policy requirements問題解決

特殊字符 src strong form 改密 for mysql date 特殊 安裝mysql5.7rpm包,在更改密碼的時候,提示錯誤 這是由於Mysql5.7默認對於密碼的要求強度較高,設置的密碼過於簡單不予通過。要解決這個問題,涉及到的參數有validate