Cannot parse JSON - android - android
I'm new to android, I can't understand why am I getting this exception when trying to parse JSON. Please help, or suggest any alternative.
Json File containing all countries with their cities:
citiesjson.txt
A sample of above file is:
{"China":["Guangzhou","Fuzhou","Beijing","Baotou","Hohhot","Guiyang","Yinchuan","Nanjing","Changzhou","Chuzhou","Jiaoyun","Guizhoumanzuxiang","Qingzhen","Changde","Xianning","Jiaozhou","Weifang","Tai'an","Luoxi","Guoji","Guangdong","Sijiqing","Huzhou","Panjin Shi","Daqing","Jilin City","Lianyungang","Yancheng","Yuehu","Kunshan","Taicang","Lianshui","Nantong","Jiaotong","Changshu City","Xingxiangcun","Jinsha","Jiangyan","Chaigoubu","Ma'anshan","Huainan","Haibei","Shenlong","Nangxian","Rongsheng","Changfeng","Chengqiao","Jiafu","Shenzhou","Shantou","Qingyuan","Gyari","Xinshijie","Zhaoqing","Zhanjiang","Kuicheng","Taoyuan","Jincheng","Caishen","Shiyan","Liaoyang","Xingtai","Wenchang","Wanning","Qionghai","Huilongba","Dingcheng","Baodian","Wuzhishan","Chengmai","Yinggen","Ledong","Lincheng","Baisha","Changjiang","Dongfang","Changjian","Jinmao","Yangpu","Baipo","Jiefang","Danzhou","Lingshui","Haidian","Sanya","Rongjiang","Longyan","Jinghe","Zhangjiakou","Renqiu","Yaocheng","Kaifeng","Hebi","Jiaozuo","Pingdingshan","Anshan","Dandong","Haitang","Tongchuan","Ankang","Guozhen","Shangluo","Yulong","Haixing","Sanjiaocheng","Pinghu","Jinling","Fengming","Tongxiang","Puyuan","Dingqiao","Yanjiang","Wutong","Pingchuan","Dushu","Nanxun","Wuxing","Yangzhou","Hongyuan","Anji","Shangying","Deqing","Digang","Sanguan","Yuantong","Changxin","Huating","Putuoshan","Jinyuan","Dinghai","Xiangnan","Putuo","Xintian","Donghuxu","Zhuji","Jingcheng","Jiangtian","Xingchang","Jindou","Xinchang","Baiyun","Qianqing","Tianchang","Tianchi","Luzhou","Qinjiang","Tianzhu","Mingdu","Shenjiamen","Longshan","Dengbu","Xiushan","Daizhong","Longteng","Beiyuan","Taili","Choucheng","Lucheng","Chengxiang","Dongying","Gangcun","Sailing","Shifan","Yaohua","Jingyuan","Fengtai","Gaocheng","Gu'an","Shuangshipu","Li'ao","Xi'ao","Tang Xian","Tara","Li'an","Hu'an","Datang","Tumu","Shuyi","Gaoxin","Bo’ao","Baocheng","Haifu","Xiuying","Xuanzhou","Gongjiang","Huayuji","Qu'an","Fuhao","Weiyang","Laohekou","Nanshan","Chen Xian","Siting","Wuhou","Ji’an","Fuxin","Xiqu","Wangluo","Erqi","Donghong","Gaobeidian","Lianhua","Chenzhou","Dajie","Chenghua","Dongfeng","Zhu'ang","Maji","Songling","Chum","Cenyang","Hanshan","Xiaomi","Luohu","Hainan","Guangxi","Changle","Linfen","Yuanping","Jiazhuang","Heibei","Liaocheng","Huaihua","Rizhao","Fuzhou","Duyun","Tianshui","Guli","Jinhai","Chaoyang","Taixing","Fengxiang","Jinpan","Yizheng","Yunfu","Xinhui","Wenlan","Tieli","Taihe","Liuzhou","Hechi","Yunyang","Zhuxi Chengguanzhen","Heze","Shiqiaopu","Jiangbei","Shanzhuang","Danyang","Huai'an","Yantan","Guangchang","Xiguan","Xigu","Anying","Xiangtong","Guixi","Xidian","Pingliang","Pinghu","Changhe","Yangshan","Suji","Baizhang","Shuangxi","Yanming","Yiqiao","Xinxing","Dabao","Sanyuanpu","Gaobu","Linghu","Qingtong","Shuanglin","Dampu","Qi'an","Gouzhuang","Changsheng","Qianyu","Datong","Sandu","Anjiang","Huangjue","Name","Linqi","Zhanghe","Zheshang","Huadian","Kangcun","Zhangshan","Shouchang","Qiantan","Hongpan","Lin'an","Dingzhou","Jiuzong","Yuting","Guali","Jianci","Kaiyun","Chunhua","Hongwei","Shuguang","Diankou","Lidong","Fengqing","Fengqiao","Fengqi","Rongle","Huangzhai","Wuning","Yahao","Jifeng","Ancheng","Shangfang","Jiahu","Jinpu","Potang","Shangjiang","Xingqiao","Doujiang","Nyingchi County","Yangxunqiao","Chadianzi","Zhongyicun","Jialing","Jianxing","Xichong","Sanyi","Hongyan","Base","Yongxing","Nanhe","Naxi Yaozuxiang","Dongxing","Rongxian","Jinghong","Ning'er","Zhuozhou","Luquan","Li'an","Suqian","Dabu","Luoyang","Feiyun"],"Japan":["Tokyo",
My code:
JSONArray jsonArray = new JSONArray(jsonString);
throws exception
where jsonString =
And the exception is:
02-08 11:29:45.239 558-589/? E/SWIPE﹕ clear()
02-08 11:29:45.239 558-589/? D/SWIPE﹕ Check swipe down for x/y: 249.0 / 173.0
02-08 11:29:45.279 558-589/? D/SWIPE﹕ touch up event 249.0 173.0
02-08 11:29:45.279 558-589/? D/SWIPE﹕ send replay touch down event
02-08 11:29:45.329 3385-3385/com.zerotech.cricketscoring.cricketscoring D/BYD_Flex﹕ getValue() name = #NOKIAFLEX#packageNeedData
02-08 11:29:45.509 3385-3385/com.zerotech.cricketscoring.cricketscoring D/BYD_Flex﹕ getValue() readFlexFromXml = TypedValue{t=0x0/d=0x0}
02-08 11:29:45.509 3385-3385/com.zerotech.cricketscoring.cricketscoring D/BYD_Flex﹕ getValue() name = #NOKIAFLEX#setDataUsageReminder
02-08 11:29:45.679 3385-3385/com.zerotech.cricketscoring.cricketscoring D/BYD_Flex﹕ getValue() readFlexFromXml = TypedValue{t=0x0/d=0x0}
02-08 11:29:45.719 3385-3385/com.zerotech.cricketscoring.cricketscoring W/dalvikvm﹕ VFY: unable to resolve virtual method 11351: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
02-08 11:29:45.719 3385-3385/com.zerotech.cricketscoring.cricketscoring W/dalvikvm﹕ VFY: unable to resolve virtual method 11357: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
02-08 11:29:45.729 3385-3385/com.zerotech.cricketscoring.cricketscoring W/dalvikvm﹕ VFY: unable to resolve virtual method 9043: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
02-08 11:29:45.769 3385-3385/com.zerotech.cricketscoring.cricketscoring W/dalvikvm﹕ VFY: unable to resolve virtual method 11354: Landroid/view/ViewGroup;.onRtlPropertiesChanged (I)V
02-08 11:29:45.779 3385-3385/com.zerotech.cricketscoring.cricketscoring W/dalvikvm﹕ VFY: unable to resolve virtual method 368: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
02-08 11:29:45.779 3385-3385/com.zerotech.cricketscoring.cricketscoring W/dalvikvm﹕ VFY: unable to resolve virtual method 390: Landroid/content/res/TypedArray;.getType (I)I
02-08 11:29:45.869 701-701/? D/Swype﹕ [IME] onStartInput(): false
02-08 11:29:45.919 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 295K, 7% free 8369K/8903K, paused 13ms+13ms, total 43ms
02-08 11:29:46.169 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 133K, 7% free 8542K/9095K, paused 15ms, total 15ms
02-08 11:29:46.199 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 75K, 8% free 8575K/9223K, paused 15ms, total 15ms
02-08 11:29:46.299 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 108K, 9% free 8872K/9671K, paused 12ms+12ms, total 57ms
02-08 11:29:46.359 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 162K, 10% free 8710K/9671K, paused 14ms, total 14ms
02-08 11:29:46.439 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 243K, 9% free 8831K/9671K, paused 15ms, total 15ms
02-08 11:29:46.479 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 9% free 9378K/10247K, paused 12ms+12ms, total 37ms
02-08 11:29:46.619 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 365K, 13% free 9014K/10247K, paused 15ms, total 15ms
02-08 11:29:46.649 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 12% free 9834K/11079K, paused 12ms+2ms, total 27ms
02-08 11:29:46.819 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 547K, 17% free 9287K/11079K, paused 15ms, total 15ms
02-08 11:29:46.859 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 15% free 10518K/12359K, paused 12ms+13ms, total 38ms
02-08 11:29:47.129 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 821K, 22% free 9697K/12359K, paused 14ms, total 14ms
02-08 11:29:47.169 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 19% free 11543K/14215K, paused 12ms+3ms, total 27ms
02-08 11:29:47.559 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 1232K, 28% free 10313K/14215K, paused 15ms, total 15ms
02-08 11:29:47.599 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 8% free 13081K/14215K, paused 13ms+3ms, total 35ms
02-08 11:29:47.759 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 1846K, 21% free 11235K/14215K, paused 14ms, total 14ms
02-08 11:29:47.789 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 0K, 7% free 13320K/14215K, paused 15ms+2ms, total 31ms
02-08 11:29:47.789 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 15ms
02-08 11:29:47.799 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 2768K, 26% free 10551K/14215K, paused 15ms, total 15ms
02-08 11:29:47.839 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 12% free 12636K/14215K, paused 13ms+3ms, total 36ms
02-08 11:29:47.839 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 17ms
02-08 11:29:47.859 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed <1K, 12% free 12636K/14215K, paused 18ms, total 18ms
02-08 11:29:47.899 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 0K, 10% free 15762K/17351K, paused 12ms+2ms, total 28ms
02-08 11:29:47.899 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 11ms
02-08 11:29:47.909 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 2084K, 22% free 13678K/17351K, paused 15ms, total 15ms
02-08 11:29:47.939 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 0K, 10% free 15762K/17351K, paused 12ms+3ms, total 27ms
02-08 11:29:47.939 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 5ms
02-08 11:29:47.959 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 0K, 10% free 15762K/17351K, paused 15ms, total 15ms
02-08 11:29:48.029 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 1K, 9% free 17864K/19463K, paused 12ms+29ms, total 64ms
02-08 11:29:50.209 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 8013K, 42% free 11804K/20039K, paused 12ms+27ms, total 90ms
02-08 11:29:51.559 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 409K, 38% free 12555K/20039K, paused 12ms+21ms, total 86ms
02-08 11:29:53.179 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 484K, 33% free 13488K/20039K, paused 13ms+23ms, total 108ms
02-08 11:29:55.189 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 601K, 27% free 14633K/20039K, paused 12ms+13ms, total 129ms
02-08 11:29:57.459 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 675K, 21% free 15935K/20039K, paused 13ms+24ms, total 159ms
02-08 11:29:59.839 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 661K, 15% free 17211K/20039K, paused 12ms+31ms, total 179ms
02-08 11:29:59.989 558-588/? W/PowerManager﹕ accept Wake require,start process. the mTag is:AlarmManager, the mFlags is:1
02-08 11:30:00.019 558-575/? W/PowerManager﹕ accept Wake release,start process. the mTag is:AlarmManager, the mFlags is:1
02-08 11:30:01.639 558-588/? W/PowerManager﹕ accept Wake require,start process. the mTag is:AlarmManager, the mFlags is:1
02-08 11:30:01.649 558-707/? D/NtpTrustedTime﹕ forceRefresh() from cache miss
02-08 11:30:01.649 558-575/? W/PowerManager﹕ accept Wake release,start process. the mTag is:AlarmManager, the mFlags is:1
02-08 11:30:01.649 558-707/? D/SntpClient﹕ request time failed: java.net.UnknownHostException: Unable to resolve host "2.android.pool.ntp.org": No address associated with hostname
02-08 11:30:01.649 558-707/? W/ThrottleService﹕ unable to find stats for iface rmnet0
02-08 11:30:08.389 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 1280K, 12% free 17822K/20039K, paused 71ms, total 71ms
02-08 11:30:13.059 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 649K, 10% free 18145K/20039K, paused 72ms, total 72ms
02-08 11:30:19.949 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 970K, 14% free 18630K/21511K, paused 73ms, total 73ms
02-08 11:30:20.069 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 13% free 20813K/23751K, paused 12ms+13ms, total 107ms
02-08 11:30:22.949 558-584/? D/BatteryService﹕ level:99 scale:100 status:2 health:2 present:true voltage: 4196 temperature: 410 technology: Li-ion AC powered:false USB powered:true icon:17303055 invalid charger:0
02-08 11:30:28.729 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 1457K, 19% free 19358K/23751K, paused 72ms, total 72ms
02-08 11:30:28.819 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 0K, 18% free 21442K/25863K, paused 12ms+3ms, total 86ms
02-08 11:30:28.819 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 64ms
02-08 11:30:28.889 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 0K, 18% free 21442K/25863K, paused 73ms, total 73ms
02-08 11:30:28.999 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 0K, 16% free 23527K/27975K, paused 12ms+3ms, total 98ms
02-08 11:30:28.999 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 81ms
02-08 11:30:29.069 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 2182K, 24% free 21344K/27975K, paused 73ms, total 73ms
02-08 11:30:29.169 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 2084K, 20% free 22386K/27975K, paused 12ms+3ms, total 97ms
02-08 11:30:29.169 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 84ms
02-08 11:30:29.249 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 2084K, 28% free 20302K/27975K, paused 81ms, total 81ms
02-08 11:30:29.339 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 20% free 22387K/27975K, paused 12ms+3ms, total 86ms
02-08 11:30:29.339 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 73ms
02-08 11:30:29.409 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 3126K, 32% free 19260K/27975K, paused 73ms, total 73ms
02-08 11:30:29.499 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 24% free 21344K/27975K, paused 12ms+3ms, total 86ms
02-08 11:30:29.499 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 74ms
02-08 11:30:29.579 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 0K, 24% free 21344K/27975K, paused 83ms, total 83ms
02-08 11:30:29.679 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed <1K, 17% free 23429K/27975K, paused 13ms+3ms, total 98ms
02-08 11:30:30.579 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 2084K, 24% free 21344K/27975K, paused 73ms, total 73ms
02-08 11:30:30.679 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 0K, 22% free 24471K/31111K, paused 12ms+13ms, total 97ms
02-08 11:30:31.579 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 2084K, 29% free 22386K/31111K, paused 73ms, total 73ms
02-08 11:30:31.619 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ org.json.JSONException: Value {"Belarus":["Minsk","Mogilev","Brest","Vitebsk","Dvor-Gomel'","Hrodna","Navapolatsk","Lida","Horki","Borisov","Lyakhovichi","Radoshkovichi","Polatsk","Orsha","Valer'yanovo","Baranovichi","Mazyr","Lyaskavichy","Zhodzina","Zaslawye","Lahoysk","Shklow","Mozyr'","Dzyarzhynsk","Pinsk"],"":[""],"Philippines":["Manila","Ayala","Bayan","Roosevelt","Blumentritt","Cardona","Pasong Tamo","Valenzuela","Caloocan City","Taytay","Quezon City","Las Pinas","Makati City","Marikina City","San Juan","Pasig","Paranaque City","Muntinlupa","Salinas","Poblacion","Roxas City","Puerto Princesa City","Pasay","Caloocan","Buting","Lipa City","Taguig","Baguio City","San Pablo City","San Mateo","Rizal","Dasmarinas","Sucat","Sampaloc","Marilag","Angeles City","Mandaluyong City","Malabon","Rodriguez","Fairview","Angeles City","Davao City","Iligan","Cagayan de Oro","Tagum","Butuan","Mawab","Ozamiz City","Bacoor","Cavite City","Carmona","Imus","Tacurong","Pateros","Dumaguete","Carolinas","San Pedro","General Santos","Malolos","Cebu City","Malate","New Manila","Antipolo","Villanueva","Concepcion","Koronadal","Pandi","West","Lucena City","Balayan","Laguna","Calamba","Subic","Bonifacio","Quezon","Lapu-Lapu City","Tagaytay","San Carlos City","San Jose","Asia","Subic","Libis","Palma Gil","Fernandez","Kalibo","Santos","Vargas","Novaliches","Plaza","San Antonio","Philippine","Rizal","Alabang","Legaspi","Laguna","Summit","Bates","Bagumbayan","Salcedo","Batis","Cubao","Binondo","Balabag","General","Guagua","Liberty","Tandang Sora","Capitol","Naga City","Binangonan","San Francisco","Mabalacat","Pikit","Antipolo","Imus","Tarlac City","Batangas","Calapan","Binan","Cabuyao","Hilongos","Mandaue City","Tanza","Caloocan","Silang","Malabon","Navotas","Angat","Navotas","Bulacan","Laoag","Bocaue","Dagupan","Calasiao","Dingras","Cainta","Iloilo City","Iloilo City","Tagbilaran City","Balanga","Pulilan","Olongapo City","Marilao","San Jose","San Fernando","Plaridel","Baliuag","Cabanatuan City","Bataan","Navotas","San Fernando","Meycauayan","Manila","Kawit","Bacolod City","Angono","Los Banos","Paete","Santa Rosa","Calamba City","Santa Cruz","Pangil","Canlubang","Tayabas","Pagsanjan","Zamboanga City","Talisay City","Mandaue City","Ugong Norte","Luna","Olongapo City","Tanauan","Cabatuan","Pasig","West Triangle","Pias","San Pedro","Dipolog City","Victorias City","Zamboanga City","Subic","Abucay","Samal","Orion","Arayat","Boac","Siniloan","San Agustin","Cotabato City","Veronica","Masbate","Bool","Tacloban City","Danao","Rosario West","Taft","Sulo","Centre","Santo","Pagasinan","Cafe","Leyte","Interior","Pagadian","Molave","Palo","Mamungan","Hagonoy","Paul","Bagong Nayon","Mauban","La Trinidad","Apalit","Mariveles","General Trias","Cabugao","Province of Pangasinan","Urdaneta","Alaminos","Malasiqui","Bay","Balungao","Amadeo","Macabebe","Del Monte","Limay","Calbayog City","Real","Tanay","Kapatagan","Trece Martires City","Lamitan","Bagac","Jagna","Obando","Balagtas","Kidapawan","Pampanga","Naga","Diliman Primero","Baao","Cauayan","Pacita","Central","Rosales","Bulacan","Roque","Silang","La Salette","San Miguel","Baclaran","Marcos","Suyo","Maquiling","Plaridel","Los Martires","Acacia","Minalin","Salle","Agusan Pequeno","Gitagum","Pardo","Gallego","Gloria","Nueva","Upper Bicutan","Wines","Vito","La Union","Poblacion, San Felipe","Lawis","Toledo City","Concepcion","Digos","Cogan","Calinan","Mindanaw","Dagupan","Barbar","Mangaldan","San Fabian","Alcala","Bautista","Aquino","Ilog","Manaoag","Tayug","Luzon","San Miguel","Victory","Sta Cruz","Sultan Kudarat","Magsaysay","Dapitan","Mangrove","Tanauan","Alfonso","Island Park","Maria","Tigbauan","Campus","Valencia","Occidental","Panabo","Munoz East","Aguilar","Fortuna","Matandang Balara","Osmena","Leon","Balamban","Cotabato City","Cavinti","Alitagtag","Trinidad","Lilio","Carlos","Vigan","Domingo","Candon","Norte","Oara","Alaminos","Calaca","Padre Garcia","Bauan","Cagayan","Tuguegarao City","Ilagan","Santiago","Llanera","China","Ramon","Feliciano","Marina","Cruz","Ventura","Tambo","Tejer
02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSON.typeMismatch(JSON.java:111)
02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:91)
02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at org.json.JSONArray.<init>(JSONArray.java:103)
02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateCitySpinner(CreateNewTeamActivity.java:66)
02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.populateSpinners(CreateNewTeamActivity.java:56)
02-08 11:30:31.629 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at ui.CreateNewTeamActivity.onCreate(CreateNewTeamActivity.java:50)
02-08 11:30:31.639 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.app.Activity.performCreate(Activity.java:5181)
02-08 11:30:31.639 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
02-08 11:30:31.639 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2031)
02-08 11:30:31.639 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.app.ActivityThread.startActivityNow(ActivityThread.java:1908)
02-08 11:30:31.639 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:135)
02-08 11:30:31.639 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:347)
02-08 11:30:31.639 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:694)
02-08 11:30:31.649 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.widget.TabHost.setCurrentTab(TabHost.java:358)
02-08 11:30:31.649 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:150)
02-08 11:30:31.649 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:548)
02-08 11:30:31.649 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.view.View.performClick(View.java:4084)
02-08 11:30:31.649 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.view.View$PerformClick.run(View.java:16987)
02-08 11:30:31.649 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.os.Handler.handleCallback(Handler.java:615)
02-08 11:30:31.659 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:92)
02-08 11:30:31.659 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.os.Looper.loop(Looper.java:137)
02-08 11:30:31.659 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:4807)
02-08 11:30:31.659 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
02-08 11:30:31.659 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:511)
02-08 11:30:31.659 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
02-08 11:30:31.669 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:559)
02-08 11:30:31.669 3385-3385/com.zerotech.cricketscoring.cricketscoring W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)
02-08 11:30:31.909 1228-1234/? E/ThermalDaemon﹕ CPU[1] offline
02-08 11:30:32.669 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 12K, 22% free 24480K/31111K, paused 12ms+978ms, total 1081ms
02-08 11:30:32.739 3385-3385/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_FOR_ALLOC freed 8730K, 50% free 15749K/31111K, paused 74ms, total 74ms
02-08 11:30:32.779 3385-3387/com.zerotech.cricketscoring.cricketscoring D/dalvikvm﹕ GC_CONCURRENT freed 0K, 43% free 17834K/31111K, paused 12ms+3ms, total 33ms
02-08 11:30:33.139 1228-1234/? E/ThermalDaemon﹕ CPU[1] offline
02-08 11:30:38.299 558-586/? D/PowerManagerService﹕ qyq:Set brightness target = 7 currentValue = 255
02-08 11:30:38.299 558-585/? E/lights﹕ debug:set_light_backlight 254
02-08 11:30:38.299 558-586/? D/PowerManagerService﹕ qyq:Set brightness target = 255 currentValue = 255
And the exception snapshot is:
Or if someone has the all countries with their cities 'string-array', then that would be another solution to my problem.
Thank you!
Your Json have a list of JSONObject(s) and each JSONObject have a JSONArray as value.
So to parse it, you need to loop through JSONObject(s) keys (China, Japan...) and then get the JSONArray for each one:
JSONObject jObj = new JSONObject(yourJson);
Iterator<String> itr = jObj.keys(); // get the keys list (countries name)
while(itr.hasNext()) { // loop the list of countries
String countryName = itr.next(); // get the next key (a new country name)
JSONArray cytiesArray = jObj.getJSONArray(countryName);// get cities for the current country
}
The problem solved because of you guys, I'm thankful to Henry and Haider Saddique.
There were two problems:
1) Rather than
JSONArray jsonArray = new JSONArray(jsonString);
I must use:
JSONObject jsonArray = new JSONObject(jsonString);
Thanks to Henry. But only changing this causes type mismatch exception, so follow 2nd point.
2) There were many "" in my .json
So I removed all objects with empty string in my .json file.
Thanks to Haider Saddique.
Related
My Application freezes
I am developing an android application for fingerprint reader, my operations include verifying user fingerprint(continuously), and registering new fingerprints(getting fingerprints from web API). I am using Morpho MSO 1300 fingerprint reader. when I run my application I am constantly getting following logcat messages 01-02 11:19:48.910 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:49.350 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:49.770 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:50.210 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:50.630 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:51.070 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:51.570 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:52.070 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:52.570 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:53.000 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:53.500 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:53.930 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:54.360 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:54.800 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:55.300 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 336K, 20% free 3652K/4540K, paused 14ms, total 14ms 01-02 11:19:55.730 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 301K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:56.150 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 15ms, total 15ms 01-02 11:19:56.600 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:57.010 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:57.440 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:57.880 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:58.030 24732-24776/com.baidu.video.pad:download V/P2PBase: [11:19:58:040][P2PBase] dns : media.p2sp.baidu.com resolve failed. wait 3 As I increase data in my application, say I get 1000 users from web API and I try to process them and register them in fingerprint reader and sqlite database eventually my application freezes. Any help will be appreciated.
This log means that Garbage collector just released the memory. You are making a lot of allocations and this is the reason why GC have to work frequently. I recommend You to use Android Profiler (Android Studio 3.0) and try to overcome this problem: https://developer.android.com/studio/profile/memory-profiler.html or past your code so that we can think about it together.
Progress Dialog not spinning when device is performing memory cleaning
hii everyone i need to get 1200 records from db so i have written AsyncTask for retrevind data here is my code new AsyncTask<Integer, Integer, Integer>(){ #Override protected void onPreExecute() { pd=ProgressDialog.show(CasePersonScreen.this, "Please Wait", "Getting Case Persons"); pd.setIndeterminate(true); } #Override protected Integer doInBackground(Integer... params) { // **Code** performing database operations CasePersonArryList = objBLParentToChildCommonOperations.getCasePersons(objCase); return 1; } #Override protected void onPostExecute(Integer arg0) { if(pd!=null&&pd.isShowing()) { pd.dismiss(); } }.execute(1,1,1); Now progress bar started spinning and it got freezed when vm is performing gc activities 04-16 18:07:18.760: D/dalvikvm(5993): GC_CONCURRENT freed 2505K, 29% free 18917K/26439K, paused 1ms+7ms 04-16 18:07:19.015: D/dalvikvm(5993): GC_CONCURRENT freed 2048K, 29% free 18917K/26439K, paused 2ms+4ms 04-16 18:07:19.170: D/dalvikvm(5993): GC_CONCURRENT freed 2031K, 29% free 18934K/26439K, paused 2ms+4ms 04-16 18:07:19.325: D/dalvikvm(5993): GC_CONCURRENT freed 2051K, 29% free 18930K/26439K, paused 1ms+4ms 04-16 18:07:19.465: D/dalvikvm(5993): GC_CONCURRENT freed 2051K, 29% free 18926K/26439K, paused 1ms+4ms 04-16 18:07:19.610: D/dalvikvm(5993): GC_CONCURRENT freed 2033K, 29% free 18941K/26439K, paused 1ms+4ms 04-16 18:07:19.750: D/dalvikvm(5993): GC_CONCURRENT freed 2059K, 29% free 18929K/26439K, paused 1ms+4ms 04-16 18:07:19.895: D/dalvikvm(5993): GC_CONCURRENT freed 2046K, 29% free 18930K/26439K, paused 1ms+3ms 04-16 18:07:20.045: D/dalvikvm(5993): GC_CONCURRENT freed 2044K, 29% free 18934K/26439K, paused 2ms+4ms 04-16 18:07:20.205: D/dalvikvm(5993): GC_CONCURRENT freed 2054K, 29% free 18927K/26439K, paused 2ms+3ms 04-16 18:07:20.370: D/dalvikvm(5993): GC_CONCURRENT freed 2033K, 29% free 18941K/26439K, paused 2ms+4ms 04-16 18:07:20.515: D/dalvikvm(5993): GC_CONCURRENT freed 2049K, 29% free 18940K/26439K, paused 2ms+3ms 04-16 18:07:20.655: D/dalvikvm(5993): GC_CONCURRENT freed 2053K, 29% free 18935K/26439K, paused 2ms+4ms 04-16 18:07:20.795: D/dalvikvm(5993): GC_CONCURRENT freed 2032K, 29% free 18950K/26439K, paused 2ms+4ms 04-16 18:07:20.940: D/dalvikvm(5993): GC_CONCURRENT freed 2063K, 29% free 18935K/26439K, paused 2ms+4ms 04-16 18:07:21.085: D/dalvikvm(5993): GC_CONCURRENT freed 2044K, 29% free 18938K/26439K, paused 1ms+4ms 04-16 18:07:21.225: D/dalvikvm(5993): GC_CONCURRENT freed 2051K, 29% free 18935K/26439K, paused 2ms+4ms 04-16 18:07:21.365: D/dalvikvm(5993): GC_CONCURRENT freed 2046K, 29% free 18936K/26439K, paused 2ms+4ms 04-16 18:07:21.540: D/dalvikvm(5993): GC_CONCURRENT freed 2040K, 29% free 18943K/26439K, paused 2ms+4ms 04-16 18:07:21.710: D/dalvikvm(5993): GC_CONCURRENT freed 2039K, 29% free 18951K/26439K, paused 2ms+4ms 04-16 18:07:21.850: D/dalvikvm(5993): GC_CONCURRENT freed 2056K, 29% free 18943K/26439K, paused 1ms+4ms 04-16 18:07:21.995: D/dalvikvm(5993): GC_CONCURRENT freed 2033K, 29% free 18958K/26439K, paused 1ms+4ms 04-16 18:07:22.150: D/dalvikvm(5993): GC_CONCURRENT freed 2051K, 29% free 18955K/26439K, paused 1ms+4ms 04-16 18:07:22.290: D/dalvikvm(5993): GC_CONCURRENT freed 2055K, 29% free 18947K/26439K, paused 1ms+4ms 04-16 18:07:22.460: D/dalvikvm(5993): GC_CONCURRENT freed 2029K, 29% free 18965K/26439K, paused 2ms+3ms 04-16 18:07:22.610: D/dalvikvm(5993): GC_CONCURRENT freed 2060K, 29% free 18953K/26439K, paused 2ms+5ms 04-16 18:07:22.755: D/dalvikvm(5993): GC_CONCURRENT freed 2048K, 29% free 18952K/26439K, paused 1ms+4ms 04-16 18:07:22.900: D/dalvikvm(5993): GC_CONCURRENT freed 2040K, 29% free 18959K/26439K, paused 2ms+5ms 04-16 18:07:23.040: D/dalvikvm(5993): GC_CONCURRENT freed 2056K, 29% free 18951K/26439K, paused 2ms+3ms 04-16 18:07:23.185: D/dalvikvm(5993): GC_CONCURRENT freed 2035K, 29% free 18963K/26439K, paused 2ms+4ms 04-16 18:07:23.325: D/dalvikvm(5993): GC_CONCURRENT freed 2048K, 29% free 18963K/26439K, paused 1ms+4ms 04-16 18:07:23.470: D/dalvikvm(5993): GC_CONCURRENT freed 2050K, 29% free 18961K/26439K, paused 2ms+4ms 04-16 18:07:23.620: D/dalvikvm(5993): GC_CONCURRENT freed 2036K, 29% free 18972K/26439K, paused 2ms+4ms 04-16 18:07:23.760: D/dalvikvm(5993): GC_CONCURRENT freed 2062K, 29% free 18958K/26439K, paused 2ms+3ms 04-16 18:07:23.905: D/dalvikvm(5993): GC_CONCURRENT freed 2045K, 29% free 18960K/26439K, paused 2ms+4ms 04-16 18:07:24.050: D/dalvikvm(5993): GC_CONCURRENT freed 2049K, 29% free 18959K/26439K, paused 1ms+4ms 04-16 18:07:24.195: D/dalvikvm(5993): GC_CONCURRENT freed 2044K, 29% free 18963K/26439K, paused 1ms+4ms 04-16 18:07:24.345: D/dalvikvm(5993): GC_CONCURRENT freed 2040K, 29% free 18970K/26439K, paused 2ms+5ms 04-16 18:07:24.505: D/dalvikvm(5993): GC_CONCURRENT freed 2053K, 29% free 18964K/26439K, paused 2ms+5ms 04-16 18:07:24.675: D/dalvikvm(5993): GC_CONCURRENT freed 2040K, 29% free 18971K/26439K, paused 1ms+5ms 04-16 18:07:24.840: D/dalvikvm(5993): GC_CONCURRENT freed 2047K, 29% free 18972K/26439K, paused 2ms+5ms 04-16 18:07:25.005: D/dalvikvm(5993): GC_CONCURRENT freed 2039K, 29% free 18981K/26439K, paused 2ms+3ms 04-16 18:07:25.150: D/dalvikvm(5993): GC_CONCURRENT freed 2056K, 29% free 18972K/26439K, paused 1ms+4ms 04-16 18:07:25.290: D/dalvikvm(5993): GC_CONCURRENT freed 2033K, 29% free 18987K/26439K, paused 2ms+4ms 04-16 18:07:25.440: D/dalvikvm(5993): GC_CONCURRENT freed 2050K, 29% free 18984K/26439K, paused 2ms+5ms 04-16 18:07:25.595: D/dalvikvm(5993): GC_CONCURRENT freed 2054K, 29% free 18978K/26439K, paused 2ms+4ms 04-16 18:07:25.740: D/dalvikvm(5993): GC_CONCURRENT freed 2034K, 29% free 18992K/26439K, paused 1ms+4ms 04-16 18:07:25.885: D/dalvikvm(5993): GC_CONCURRENT freed 2059K, 29% free 18980K/26439K, paused 1ms+4ms 04-16 18:07:26.025: D/dalvikvm(5993): GC_CONCURRENT freed 2048K, 29% free 18980K/26439K, paused 2ms+3ms 04-16 18:07:26.170: D/dalvikvm(5993): GC_CONCURRENT freed 2050K, 29% free 18977K/26439K, paused 2ms+4ms 04-16 18:07:26.315: D/dalvikvm(5993): GC_CONCURRENT freed 2043K, 29% free 18982K/26439K, paused 1ms+4ms 04-16 18:07:26.455: D/dalvikvm(5993): GC_CONCURRENT freed 2044K, 29% free 18986K/26439K, paused 1ms+4ms 04-16 18:07:26.600: D/dalvikvm(5993): GC_CONCURRENT freed 2039K, 29% free 18994K/26439K, paused 2ms+5ms 04-16 18:07:26.745: D/dalvikvm(5993): GC_CONCURRENT freed 2057K, 29% free 18984K/26439K, paused 2ms+4ms 04-16 18:07:26.890: D/dalvikvm(5993): GC_CONCURRENT freed 2033K, 29% free 18999K/26439K, paused 2ms+4ms 04-16 18:07:27.040: D/dalvikvm(5993): GC_CONCURRENT freed 2050K, 29% free 18997K/26439K, paused 1ms+4ms 04-16 18:07:27.195: D/dalvikvm(5993): GC_CONCURRENT freed 2056K, 29% free 18988K/26439K, paused 2ms+4ms 04-16 18:07:27.335: D/dalvikvm(5993): GC_CONCURRENT freed 2030K, 29% free 19005K/26439K, paused 1ms+4ms 04-16 18:07:27.480: D/dalvikvm(5993): GC_CONCURRENT freed 2060K, 29% free 18993K/26439K, paused 1ms+4ms 04-16 18:07:27.625: D/dalvikvm(5993): GC_CONCURRENT freed 2046K, 29% free 18994K/26439K, paused 2ms+4ms 04-16 18:07:27.770: D/dalvikvm(5993): GC_CONCURRENT freed 2050K, 29% free 18992K/26439K, paused 1ms+4ms 04-16 18:07:27.915: D/dalvikvm(5993): GC_CONCURRENT freed 2045K, 29% free 18994K/26439K, paused 1ms+4ms 04-16 18:07:28.060: D/dalvikvm(5993): GC_CONCURRENT freed 2042K, 29% free 19000K/26439K, paused 2ms+4ms 04-16 18:07:28.205: D/dalvikvm(5993): GC_CONCURRENT freed 2044K, 29% free 19003K/26439K, paused 2ms+4ms 04-16 18:07:28.355: D/dalvikvm(5993): GC_CONCURRENT freed 2055K, 29% free 18996K/26439K, paused 1ms+4ms 04-16 18:07:28.510: D/dalvikvm(5993): GC_CONCURRENT freed 2034K, 29% free 19009K/26439K, paused 2ms+4ms 04-16 18:07:28.655: D/dalvikvm(5993): GC_CONCURRENT freed 2049K, 29% free 19008K/26439K, paused 2ms+3ms 04-16 18:07:28.800: D/dalvikvm(5993): GC_CONCURRENT freed 2050K, 29% free 19006K/26439K, paused 2ms+5ms 04-16 18:07:28.945: D/dalvikvm(5993): GC_CONCURRENT freed 2038K, 29% free 19014K/26439K, paused 1ms+4ms 04-16 18:07:29.090: D/dalvikvm(5993): GC_CONCURRENT freed 2060K, 29% free 19002K/26439K, paused 1ms+4ms 04-16 18:07:29.240: D/dalvikvm(5993): GC_CONCURRENT freed 2043K, 29% free 19007K/26439K, paused 2ms+5ms 04-16 18:07:29.395: D/dalvikvm(5993): GC_CONCURRENT freed 2053K, 29% free 19002K/26439K, paused 2ms+3ms 04-16 18:07:29.540: D/dalvikvm(5993): GC_CONCURRENT freed 2043K, 29% free 19006K/26439K, paused 1ms+5ms 04-16 18:07:29.680: D/dalvikvm(5993): GC_CONCURRENT freed 2045K, 29% free 19008K/26439K, paused 1ms+3ms 04-16 18:07:29.825: D/dalvikvm(5993): GC_CONCURRENT freed 2041K, 29% free 19015K/26439K, paused 2ms+3ms 04-16 18:07:29.970: D/dalvikvm(5993): GC_CONCURRENT freed 2050K, 29% free 19012K/26439K, paused 2ms+3ms 04-16 18:07:30.115: D/dalvikvm(5993): GC_CONCURRENT freed 2038K, 29% free 19022K/26439K, paused 2ms+4ms 04-16 18:07:30.255: D/dalvikvm(5993): GC_CONCURRENT freed 2053K, 29% free 19016K/26439K, paused 1ms+3ms 04-16 18:07:30.400: D/dalvikvm(5993): GC_CONCURRENT freed 2043K, 29% free 19021K/26439K, paused 1ms+5ms 04-16 18:07:30.545: D/dalvikvm(5993): GC_CONCURRENT freed 2045K, 29% free 19024K/26439K, paused 1ms+4ms 04-16 18:07:30.690: D/dalvikvm(5993): GC_CONCURRENT freed 2042K, 29% free 19029K/26439K, paused 1ms+4ms Please help me how to solve this issue Thanks in Advance
You are probably doing a heavy task in your main thread that causes your UI to stuck. Can you post your entire main activity?
Framedrops --> Ideas for better Android Game rendering?
my simple application suffers from framedrop. I think this is due to my rendering method: public void draw(Canvas canvas) { drawBackground(canvas); drawPlayer(canvas); drawEnemy(canvas); } As you can see, the background gets drawn every single time this method is called, as well as player and enemy... the "drawBackground(canvas)" looks kinda like this: public void paintBackground(Canvas canvas) { canvas.drawBitmap(background, 0, 0, null); } drawPlayer and drawEnemy draw circles at the position my player/ or enemyobject returns. Is there any better solution for displaying background, player and other objects, without constantly redrawing them? Logcat: 02-14 17:30:11.904: D/dalvikvm(17783): GC_FOR_ALLOC freed 29K, 1% free 9069K/9132K, paused 17ms, total 18ms 02-14 17:30:11.912: I/dalvikvm-heap(17783): Grow heap (frag case) to 12.404MB for 3686416-byte allocation 02-14 17:30:11.927: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 12669K/12736K, paused 20ms, total 20ms 02-14 17:30:12.341: D/dalvikvm(17783): GC_FOR_ALLOC freed 16K, 1% free 12696K/12748K, paused 24ms, total 24ms 02-14 17:30:12.349: I/dalvikvm-heap(17783): Grow heap (frag case) to 15.945MB for 3686416-byte allocation 02-14 17:30:12.373: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 16296K/16352K, paused 24ms, total 24ms 02-14 17:30:12.560: D/OpenGLRenderer(17783): Enabling debug mode 0 02-14 17:30:18.045: D/dalvikvm(17783): GC_FOR_ALLOC freed 218K, 2% free 16377K/16632K, paused 20ms, total 20ms 02-14 17:30:18.052: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.541MB for 3686416-byte allocation 02-14 17:30:18.076: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 2% free 19971K/20236K, paused 21ms, total 22ms 02-14 17:30:28.529: D/dalvikvm(17783): GC_FOR_ALLOC freed 3899K, 20% free 16395K/20332K, paused 19ms, total 19ms 02-14 17:30:28.537: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.557MB for 3686416-byte allocation 02-14 17:30:28.560: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 2% free 19995K/20332K, paused 18ms, total 18ms 02-14 17:30:49.756: D/dalvikvm(17783): GC_FOR_ALLOC freed 4050K, 20% free 16464K/20552K, paused 20ms, total 34ms 02-14 17:30:49.763: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.625MB for 3686416-byte allocation 02-14 17:30:49.779: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 3% free 20057K/20552K, paused 21ms, total 21ms 02-14 17:30:57.107: D/dalvikvm(17783): GC_FOR_ALLOC freed 3938K, 21% free 16373K/20552K, paused 17ms, total 17ms 02-14 17:30:57.107: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.536MB for 3686416-byte allocation 02-14 17:30:57.138: D/dalvikvm(17783): GC_FOR_ALLOC freed 14K, 3% free 19958K/20552K, paused 13ms, total 13ms 02-14 17:31:03.310: D/dalvikvm(17783): GC_FOR_ALLOC freed 3824K, 21% free 16370K/20552K, paused 31ms, total 31ms 02-14 17:31:03.310: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.533MB for 3686416-byte allocation 02-14 17:31:03.381: D/dalvikvm(17783): GC_FOR_ALLOC freed 7K, 3% free 19962K/20552K, paused 30ms, total 30ms 02-14 17:33:31.943: D/dalvikvm(17783): GC_FOR_ALLOC freed 6253K, 27% free 17352K/23640K, paused 37ms, total 39ms Thanks in advance
Android GC_concurrent pauses activity
I love garbage collector, and it does it work good. But the problem is I have too many objects in my activity because there are too many Hashmaps and arraylists and other objects. So when I switch to other activity this happens. 12-04 01:02:17.119: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 46% free 26267K/48327K, paused 2ms+5ms 12-04 01:02:17.249: D/dalvikvm(1124): GC_CONCURRENT freed 8877K, 60% free 19436K/48327K, paused 2ms+5ms 12-04 01:02:17.359: D/dalvikvm(1124): GC_CONCURRENT freed 1593K, 59% free 19888K/48327K, paused 2ms+5ms 12-04 01:02:17.459: D/dalvikvm(1124): GC_CONCURRENT freed 1572K, 58% free 20363K/48327K, paused 2ms+5ms 12-04 01:02:17.559: D/ExchangeService(578): Received deviceId from Email app: null 12-04 01:02:17.559: D/ExchangeService(578): !!! deviceId unknown; stopping self and retrying 12-04 01:02:17.569: D/dalvikvm(1124): GC_CONCURRENT freed 1594K, 57% free 20816K/48327K, paused 2ms+6ms 12-04 01:02:17.679: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21278K/48327K, paused 2ms+5ms 12-04 01:02:17.779: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21741K/48327K, paused 2ms+5ms 12-04 01:02:17.889: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 55% free 22203K/48327K, paused 2ms+5ms 12-04 01:02:17.999: D/dalvikvm(1124): GC_CONCURRENT freed 1579K, 54% free 22669K/48327K, paused 2ms+6ms 12-04 01:02:18.109: D/dalvikvm(1124): GC_CONCURRENT freed 1585K, 53% free 23130K/48327K, paused 2ms+6ms 12-04 01:02:18.229: D/dalvikvm(1124): GC_CONCURRENT freed 1580K, 52% free 23592K/48327K, paused 2ms+6ms 12-04 01:02:18.339: D/dalvikvm(1124): GC_CONCURRENT freed 1584K, 51% free 24052K/48327K, paused 2ms+5ms 12-04 01:02:18.449: D/dalvikvm(1124): GC_CONCURRENT freed 1570K, 50% free 24527K/48327K, paused 2ms+5ms 12-04 01:02:18.569: D/dalvikvm(1124): GC_CONCURRENT freed 1563K, 49% free 25012K/48327K, paused 2ms+6ms 12-04 01:02:18.649: D/dalvikvm(1124): GC_FOR_ALLOC freed 623K, 48% free 25189K/48327K, paused 39ms 12-04 01:02:18.659: I/dalvikvm-heap(1124): Grow heap (frag case) to 29.909MB for 5510676-byte allocation 12-04 01:02:18.719: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 37% free 30571K/48327K, paused 2ms+5ms 12-04 01:02:19.159: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+5ms 12-04 01:02:19.599: D/dalvikvm(1124): GC_CONCURRENT freed 1972K, 37% free 30571K/48327K, paused 2ms+5ms 12-04 01:02:20.049: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+6ms So the problem is Switching to other activity pauses the application for like 4 to 5 seconds and it looks like the app is going to do Unfortunately and then ohter activity starts. So what can I do to NOT pause the activity the app What I have tried 1. Starting Activity in async task. (Displaying the progressbar when GC does the above work) but the progress dialog also pauses. 2. Do the same with handler and thread. above things did not help. So How can I display a progress dialog when GC does its work and not pause the activity? I don't want to manually remove manually.
Is this normal GC behaviour from support.map.fragment?
I'm having some issues understanding the GC, and Maps V2. On Zoom (in / out) the GC kicks in constantly cleaning up, making the application hang for half a second in the mapview. If I remove the mapview from the application everything runs fine, but as soon as I add the mapview GC kicks brutal in (On create, and on zoom in /out). I'm using the supportv4.support.map.fragment. I dont know if I should include layout and code? As this is many classes, and a whole lot of code for a general question. Would you say this is my fault / Most likely implemented maps wrong? Or caused a memory leak? Or is this normal behavior? I run the app on my Xperia Z, and it works "ok", but if I try it on my S2 it's a nightmare. A print of my Logcat going wild : 08-18 00:57:27.759: D/dalvikvm(12809): GC_FOR_ALLOC freed 4796K, 61% free 21315K/54640K, paused 34ms, total 35ms 08-18 00:57:29.681: D/dalvikvm(12809): GC_CONCURRENT freed 5994K, 61% free 21580K/54640K, paused 5ms+5ms, total 53ms 08-18 00:57:29.681: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 36ms 08-18 00:57:32.433: D/dalvikvm(12809): GC_FOR_ALLOC freed 3498K, 61% free 21699K/54640K, paused 67ms, total 67ms 08-18 00:57:32.804: D/dalvikvm(12809): GC_FOR_ALLOC freed 4774K, 61% free 21723K/54640K, paused 33ms, total 34ms 08-18 00:57:32.904: D/dalvikvm(12809): GC_FOR_ALLOC freed 5096K, 62% free 20916K/54640K, paused 31ms, total 32ms 08-18 00:57:33.224: D/dalvikvm(12809): GC_FOR_ALLOC freed 5296K, 62% free 20997K/54640K, paused 32ms, total 33ms 08-18 00:57:33.344: D/dalvikvm(12809): GC_FOR_ALLOC freed 5301K, 62% free 21083K/54640K, paused 30ms, total 31ms 08-18 00:57:33.454: D/dalvikvm(12809): GC_FOR_ALLOC freed 5397K, 63% free 20667K/54640K, paused 35ms, total 36ms 08-18 00:57:33.725: D/dalvikvm(12809): GC_CONCURRENT freed 4481K, 60% free 22222K/54640K, paused 3ms+5ms, total 37ms 08-18 00:57:33.825: D/dalvikvm(12809): GC_FOR_ALLOC freed 6110K, 61% free 21595K/54640K, paused 42ms, total 42ms 08-18 00:57:33.915: D/dalvikvm(12809): GC_CONCURRENT freed 5407K, 59% free 22492K/54640K, paused 3ms+5ms, total 38ms 08-18 00:57:33.915: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 26ms 08-18 00:57:33.915: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 29ms 08-18 00:57:33.995: D/dalvikvm(12809): GC_FOR_ALLOC freed 4654K, 60% free 22322K/54640K, paused 31ms, total 31ms 08-18 00:57:34.155: D/dalvikvm(12809): GC_CONCURRENT freed 5992K, 59% free 22815K/54640K, paused 3ms+4ms, total 34ms 08-18 00:57:34.155: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 28ms 08-18 00:57:34.155: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 26ms 08-18 00:57:34.275: D/dalvikvm(12809): GC_FOR_ALLOC freed 5334K, 58% free 23396K/54640K, paused 33ms, total 40ms 08-18 00:57:34.415: D/dalvikvm(12809): GC_FOR_ALLOC freed 5573K, 58% free 23322K/54640K, paused 45ms, total 45ms 08-18 00:57:34.505: D/dalvikvm(12809): GC_FOR_ALLOC freed 4165K, 58% free 23277K/54640K, paused 33ms, total 33ms 08-18 00:57:34.636: D/dalvikvm(12809): GC_FOR_ALLOC freed 4192K, 58% free 23238K/54640K, paused 41ms, total 42ms 08-18 00:57:34.736: D/dalvikvm(12809): GC_FOR_ALLOC freed 4138K, 58% free 23217K/54640K, paused 37ms, total 37ms 08-18 00:57:34.886: D/dalvikvm(12809): GC_FOR_ALLOC freed 5108K, 56% free 24575K/54640K, paused 46ms, total 46ms 08-18 00:57:35.026: D/dalvikvm(12809): GC_FOR_ALLOC freed 6540K, 56% free 24073K/54640K, paused 51ms, total 52ms 08-18 00:57:35.156: D/dalvikvm(12809): GC_FOR_ALLOC freed 4840K, 55% free 24738K/54640K, paused 31ms, total 31ms 08-18 00:57:35.356: D/dalvikvm(12809): GC_FOR_ALLOC freed 4325K, 55% free 24635K/54640K, paused 38ms, total 38ms 08-18 00:57:35.436: D/dalvikvm(12809): GC_FOR_ALLOC freed 4122K, 55% free 24632K/54640K, paused 35ms, total 35ms 08-18 00:57:35.526: D/dalvikvm(12809): GC_FOR_ALLOC freed 4722K, 57% free 24029K/54640K, paused 34ms, total 34ms 08-18 00:57:35.597: D/dalvikvm(12809): GC_FOR_ALLOC freed 4233K, 57% free 23916K/54640K, paused 32ms, total 32ms 08-18 00:57:36.027: D/dalvikvm(12809): GC_FOR_ALLOC freed 4581K, 57% free 23750K/54640K, paused 34ms, total 35ms 08-18 00:57:36.117: D/dalvikvm(12809): GC_FOR_ALLOC freed 4297K, 57% free 23573K/54640K, paused 32ms, total 33ms 08-18 00:57:36.207: D/dalvikvm(12809): GC_FOR_ALLOC freed 4223K, 58% free 23467K/54640K, paused 31ms, total 32ms 08-18 00:57:36.277: D/dalvikvm(12809): GC_FOR_ALLOC freed 4184K, 58% free 23399K/54640K, paused 31ms, total 31ms 08-18 00:57:36.357: D/dalvikvm(12809): GC_FOR_ALLOC freed 4209K, 58% free 23305K/54640K, paused 31ms, total 31ms 08-18 00:57:36.447: D/dalvikvm(12809): GC_FOR_ALLOC freed 4252K, 58% free 23173K/54640K, paused 35ms, total 35ms 08-18 00:57:36.988: D/dalvikvm(12809): GC_FOR_ALLOC freed 4669K, 58% free 23038K/54640K, paused 35ms, total 36ms 08-18 00:57:37.508: D/dalvikvm(12809): GC_FOR_ALLOC freed 4589K, 59% free 22919K/54640K, paused 54ms, total 55ms 08-18 00:57:38.940: D/dalvikvm(12809): GC_CONCURRENT freed 6052K, 57% free 23609K/54640K, paused 3ms+6ms, total 71ms 08-18 00:57:38.940: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 41ms 08-18 00:57:38.940: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 26ms 08-18 00:57:39.250: D/dalvikvm(12809): GC_FOR_ALLOC freed 6227K, 58% free 23000K/54640K, paused 33ms, total 34ms 08-18 00:57:40.501: D/dalvikvm(12809): GC_CONCURRENT freed 6455K, 58% free 23360K/54640K, paused 3ms+4ms, total 77ms 08-18 00:57:40.501: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 57ms 08-18 00:57:40.822: D/dalvikvm(12809): GC_CONCURRENT freed 7158K, 58% free 23100K/54640K, paused 2ms+5ms, total 38ms 08-18 00:57:40.822: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 23ms 08-18 00:57:41.022: D/dalvikvm(12809): GC_FOR_ALLOC freed 2905K, 57% free 23771K/54640K, paused 37ms, total 38ms 08-18 00:57:41.122: D/dalvikvm(12809): GC_CONCURRENT freed 6499K, 56% free 24292K/54640K, paused 7ms+6ms, total 44ms 08-18 00:57:41.122: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 36ms 08-18 00:57:41.232: D/dalvikvm(12809): GC_FOR_ALLOC freed 5791K, 57% free 23732K/54640K, paused 32ms, total 32ms 08-18 00:57:41.322: D/dalvikvm(12809): GC_FOR_ALLOC freed 4391K, 57% free 23723K/54640K, paused 34ms, total 34ms 08-18 00:57:41.402: D/dalvikvm(12809): GC_FOR_ALLOC freed 4853K, 58% free 22986K/54640K, paused 36ms, total 36ms 08-18 00:57:41.472: D/dalvikvm(12809): GC_FOR_ALLOC freed 4111K, 58% free 22975K/54640K, paused 30ms, total 31ms 08-18 00:57:41.602: D/dalvikvm(12809): GC_CONCURRENT freed 6093K, 57% free 23652K/54640K, paused 3ms+6ms, total 46ms 08-18 00:57:41.602: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 27ms 08-18 00:57:41.602: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 4ms 08-18 00:57:41.702: D/dalvikvm(12809): GC_FOR_ALLOC freed 5077K, 57% free 23645K/54640K, paused 34ms, total 34ms 08-18 00:57:41.783: D/dalvikvm(12809): GC_FOR_ALLOC freed 4265K, 57% free 23495K/54640K, paused 36ms, total 36ms 08-18 00:57:41.993: D/dalvikvm(12809): GC_FOR_ALLOC freed 4500K, 58% free 23113K/54640K, paused 81ms, total 81ms 08-18 00:57:42.083: D/dalvikvm(12809): GC_FOR_ALLOC freed 4842K, 60% free 22385K/54640K, paused 32ms, total 32ms 08-18 00:57:42.824: D/dalvikvm(12809): GC_FOR_ALLOC freed 4872K, 60% free 22271K/54640K, paused 41ms, total 41ms 08-18 00:57:42.934: D/dalvikvm(12809): GC_FOR_ALLOC freed 4732K, 60% free 22288K/54640K, paused 50ms, total 50ms 08-18 00:57:49.941: D/dalvikvm(12809): GC_FOR_ALLOC freed 5747K, 62% free 21152K/54640K, paused 36ms, total 36ms 08-18 00:57:50.081: D/dalvikvm(12809): GC_FOR_ALLOC freed 4324K, 62% free 20956K/54640K, paused 36ms, total 36ms 08-18 00:57:50.221: D/dalvikvm(12809): GC_FOR_ALLOC freed 4134K, 62% free 20925K/54640K, paused 34ms, total 34ms 08-18 00:57:52.193: D/dalvikvm(12809): GC_CONCURRENT freed 5892K, 62% free 21133K/54640K, paused 4ms+8ms, total 51ms 08-18 00:57:52.193: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 33ms 08-18 00:57:52.283: D/dalvikvm(12809): GC_FOR_ALLOC freed 1769K, 60% free 22065K/54640K, paused 38ms, total 38ms 08-18 00:57:52.353: D/dalvikvm(12809): GC_FOR_ALLOC freed 4917K, 61% free 21594K/54640K, paused 31ms, total 32ms 08-18 00:57:52.443: D/dalvikvm(12809): GC_FOR_ALLOC freed 5029K, 63% free 20683K/54640K, paused 31ms, total 31ms 08-18 00:57:52.523: D/dalvikvm(12809): GC_FOR_ALLOC freed 4289K, 63% free 20512K/54640K, paused 32ms, total 32ms 08-18 00:57:52.603: D/dalvikvm(12809): GC_FOR_ALLOC freed 4141K, 63% free 20486K/54640K, paused 32ms, total 32ms 08-18 00:57:52.723: D/dalvikvm(12809): GC_FOR_ALLOC freed 4425K, 62% free 20829K/54640K, paused 29ms, total 30ms 08-18 00:57:53.064: D/dalvikvm(12809): GC_FOR_ALLOC freed 5106K, 62% free 20810K/54640K, paused 40ms, total 41ms 08-18 00:57:56.347: D/dalvikvm(12809): GC_CONCURRENT freed 6009K, 62% free 20820K/54640K, paused 4ms+5ms, total 80ms 08-18 00:57:56.497: D/dalvikvm(12809): GC_FOR_ALLOC freed 2729K, 62% free 20880K/54640K, paused 32ms, total 32ms 08-18 00:57:56.597: D/dalvikvm(12809): GC_FOR_ALLOC freed 4888K, 63% free 20374K/54640K, paused 34ms, total 34ms 08-18 00:57:56.937: D/dalvikvm(12809): GC_FOR_ALLOC freed 5928K, 64% free 20162K/54640K, paused 32ms, total 32ms 08-18 00:57:57.077: D/dalvikvm(12809): GC_CONCURRENT freed 4630K, 61% free 21408K/54640K, paused 3ms+4ms, total 37ms 08-18 00:57:57.077: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 30ms 08-18 00:57:57.077: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 31ms 08-18 00:57:57.077: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 30ms 08-18 00:57:57.238: D/dalvikvm(12809): GC_FOR_ALLOC freed 6073K, 62% free 20893K/54640K, paused 32ms, total 32ms 08-18 00:57:57.318: D/dalvikvm(12809): GC_FOR_ALLOC freed 4142K, 62% free 20868K/54640K, paused 31ms, total 31ms 08-18 00:57:57.818: D/dalvikvm(12809): GC_FOR_ALLOC freed 4675K, 62% free 20893K/54640K, paused 34ms, total 35ms 08-18 00:57:57.898: D/dalvikvm(12809): GC_FOR_ALLOC freed 4127K, 62% free 20884K/54640K, paused 30ms, total 31ms 08-18 00:57:57.968: D/dalvikvm(12809): GC_FOR_ALLOC freed 4208K, 62% free 20798K/54640K, paused 30ms, total 30ms 08-18 00:57:58.179: D/dalvikvm(12809): GC_FOR_ALLOC freed 5894K, 63% free 20313K/54640K, paused 30ms, total 30ms 08-18 00:57:58.919: D/dalvikvm(12809): GC_CONCURRENT freed 5791K, 63% free 20421K/54640K, paused 2ms+4ms, total 40ms 08-18 00:57:58.919: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 35ms 08-18 00:57:59.079: D/dalvikvm(12809): GC_FOR_ALLOC freed 5360K, 63% free 20334K/54640K, paused 33ms, total 34ms 08-18 00:57:59.300: D/dalvikvm(12809): GC_CONCURRENT freed 5742K, 63% free 20509K/54640K, paused 3ms+14ms, total 119ms 08-18 00:57:59.310: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 12ms 08-18 00:57:59.690: D/dalvikvm(12809): GC_FOR_ALLOC freed 2021K, 61% free 21445K/54640K, paused 42ms, total 44ms 08-18 00:57:59.830: D/dalvikvm(12809): GC_FOR_ALLOC freed 5660K, 60% free 21941K/54640K, paused 42ms, total 42ms 08-18 00:57:59.930: D/dalvikvm(12809): GC_FOR_ALLOC freed 5045K, 60% free 22231K/54640K, paused 32ms, total 32ms 08-18 00:58:00.040: D/dalvikvm(12809): GC_FOR_ALLOC freed 4584K, 60% free 22140K/54640K, paused 54ms, total 54ms 08-18 00:58:00.130: D/dalvikvm(12809): GC_FOR_ALLOC freed 4670K, 61% free 21591K/54640K, paused 34ms, total 35ms 08-18 00:58:00.221: D/dalvikvm(12809): GC_FOR_ALLOC freed 4148K, 61% free 21562K/54640K, paused 30ms, total 30ms 08-18 00:58:00.321: D/dalvikvm(12809): GC_FOR_ALLOC freed 4164K, 61% free 21519K/54640K, paused 30ms, total 30ms 08-18 00:58:00.401: D/dalvikvm(12809): GC_FOR_ALLOC freed 4217K, 61% free 21417K/54640K, paused 29ms, total 29ms 08-18 00:58:00.471: D/dalvikvm(12809): GC_FOR_ALLOC freed 4105K, 61% free 21416K/54640K, paused 27ms, total 27ms 08-18 00:58:00.611: D/dalvikvm(12809): GC_FOR_ALLOC freed 4794K, 61% free 21371K/54640K, paused 33ms, total 34ms 08-18 00:58:00.681: D/dalvikvm(12809): GC_FOR_ALLOC freed 4107K, 61% free 21370K/54640K, paused 29ms, total 30ms 08-18 00:58:02.393: D/dalvikvm(12809): GC_FOR_ALLOC freed 5465K, 61% free 21435K/54640K, paused 33ms, total 33ms 08-18 00:58:02.523: D/dalvikvm(12809): GC_FOR_ALLOC freed 4571K, 59% free 22563K/54640K, paused 31ms, total 31ms 08-18 00:58:03.614: D/dalvikvm(12809): GC_FOR_ALLOC freed 6525K, 61% free 21447K/54640K, paused 39ms, total 39ms 08-18 00:58:03.724: D/dalvikvm(12809): GC_FOR_ALLOC freed 4316K, 61% free 21581K/54640K, paused 42ms, total 42ms 08-18 00:58:05.015: D/dalvikvm(12809): GC_CONCURRENT freed 5834K, 60% free 21992K/54640K, paused 3ms+6ms, total 43ms 08-18 00:58:06.056: D/dalvikvm(12809): GC_CONCURRENT freed 6081K, 60% free 22291K/54640K, paused 3ms+7ms, total 43ms 08-18 00:58:06.056: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 29ms 08-18 00:58:06.677: D/dalvikvm(12809): JIT code cache reset in 1 ms (1048524 bytes 2/0) 08-18 00:58:06.687: D/dalvikvm(12809): GC_CONCURRENT freed 7111K, 61% free 21744K/54640K, paused 3ms+7ms, total 55ms 08-18 00:58:06.687: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 19ms 08-18 00:58:08.278: D/dalvikvm(12809): GC_FOR_ALLOC freed 4619K, 60% free 22283K/54640K, paused 45ms, total 45ms 08-18 00:58:08.389: D/dalvikvm(12809): GC_FOR_ALLOC freed 5813K, 59% free 22471K/54640K, paused 33ms, total 33ms 08-18 00:58:08.469: D/dalvikvm(12809): GC_FOR_ALLOC freed 4225K, 60% free 22366K/54640K, paused 31ms, total 31ms 08-18 00:58:08.549: D/dalvikvm(12809): GC_FOR_ALLOC freed 4363K, 60% free 22122K/54640K, paused 32ms, total 32ms 08-18 00:58:08.789: D/dalvikvm(12809): GC_FOR_ALLOC freed 5598K, 60% free 21959K/54640K, paused 33ms, total 33ms 08-18 00:58:08.869: D/dalvikvm(12809): GC_FOR_ALLOC freed 4264K, 61% free 21812K/54640K, paused 31ms, total 32ms 08-18 00:58:08.949: D/dalvikvm(12809): GC_FOR_ALLOC freed 4332K, 61% free 21595K/54640K, paused 30ms, total 30ms 08-18 00:58:09.019: D/dalvikvm(12809): GC_FOR_ALLOC freed 4344K, 61% free 21371K/54640K, paused 29ms, total 29ms 08-18 00:58:09.109: D/dalvikvm(12809): GC_FOR_ALLOC freed 4273K, 62% free 21234K/54640K, paused 29ms, total 30ms 08-18 00:58:09.349: D/dalvikvm(12809): GC_FOR_ALLOC freed 5486K, 61% free 21376K/54640K, paused 30ms, total 30ms 08-18 00:58:09.450: D/dalvikvm(12809): GC_FOR_ALLOC freed 4512K, 61% free 21369K/54640K, paused 30ms, total 31ms 08-18 00:58:10.270: D/dalvikvm(12809): GC_FOR_ALLOC freed 4973K, 61% free 21620K/54640K, paused 32ms, total 33ms 08-18 00:58:10.370: D/dalvikvm(12809): GC_FOR_ALLOC freed 4236K, 61% free 21641K/54640K, paused 34ms, total 34ms 08-18 00:58:10.471: D/dalvikvm(12809): GC_FOR_ALLOC freed 4620K, 61% free 21365K/54640K, paused 32ms, total 32ms 08-18 00:58:10.541: D/dalvikvm(12809): GC_FOR_ALLOC freed 4108K, 61% free 21365K/54640K, paused 30ms, total 30ms 08-18 00:58:12.232: D/dalvikvm(12809): GC_FOR_ALLOC freed 5405K, 61% free 21615K/54640K, paused 35ms, total 35ms 08-18 00:58:12.382: D/dalvikvm(12809): GC_CONCURRENT freed 5083K, 59% free 22860K/54640K, paused 4ms+5ms, total 40ms 08-18 00:58:12.382: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 31ms 08-18 00:58:12.382: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 2ms 08-18 00:58:12.472: D/dalvikvm(12809): GC_FOR_ALLOC freed 4242K, 59% free 22790K/54640K, paused 31ms, total 31ms 08-18 00:58:12.553: D/dalvikvm(12809): GC_FOR_ALLOC freed 4204K, 59% free 22702K/54640K, paused 32ms, total 32ms 08-18 00:58:13.113: D/dalvikvm(12809): GC_FOR_ALLOC freed 5858K, 59% free 22847K/54640K, paused 37ms, total 38ms 08-18 00:58:13.223: D/dalvikvm(12809): GC_FOR_ALLOC freed 4548K, 59% free 22712K/54640K, paused 33ms, total 33ms 08-18 00:58:13.323: D/dalvikvm(12809): GC_FOR_ALLOC freed 4339K, 59% free 22625K/54640K, paused 30ms, total 31ms 08-18 00:58:13.413: D/dalvikvm(12809): GC_FOR_ALLOC freed 5406K, 61% free 21599K/54640K, paused 30ms, total 31ms 08-18 00:58:13.604: D/dalvikvm(12809): GC_CONCURRENT freed 6158K, 61% free 21733K/54640K, paused 2ms+4ms, total 38ms 08-18 00:58:13.614: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 32ms 08-18 00:58:15.005: D/dalvikvm(12809): GC_FOR_ALLOC freed 4289K, 59% free 22877K/54640K, paused 35ms, total 35ms 08-18 00:58:15.095: D/dalvikvm(12809): GC_FOR_ALLOC freed 4504K, 59% free 22520K/54640K, paused 31ms, total 31ms 08-18 00:58:15.175: D/dalvikvm(12809): GC_FOR_ALLOC freed 4684K, 60% free 21950K/54640K, paused 30ms, total 30ms 08-18 00:58:15.245: D/dalvikvm(12809): GC_FOR_ALLOC freed 4162K, 60% free 21904K/54640K, paused 29ms, total 30ms 08-18 00:58:16.176: D/dalvikvm(12809): GC_CONCURRENT freed 5225K, 58% free 23043K/54640K, paused 3ms+7ms, total 64ms 08-18 00:58:16.276: D/dalvikvm(12809): GC_FOR_ALLOC freed 4773K, 57% free 23539K/54640K, paused 33ms, total 33ms 08-18 00:58:16.376: D/dalvikvm(12809): GC_FOR_ALLOC freed 4421K, 57% free 23510K/54640K, paused 31ms, total 32ms 08-18 00:58:16.456: D/dalvikvm(12809): GC_FOR_ALLOC freed 4215K, 58% free 23474K/54640K, paused 30ms, total 30ms 08-18 00:58:16.827: D/dalvikvm(12809): GC_FOR_ALLOC freed 5377K, 59% free 22494K/54640K, paused 38ms, total 39ms 08-18 00:58:16.917: D/dalvikvm(12809): GC_FOR_ALLOC freed 4138K, 59% free 22476K/54640K, paused 31ms, total 32ms 08-18 00:58:16.987: D/dalvikvm(12809): GC_FOR_ALLOC freed 4263K, 60% free 22324K/54640K, paused 30ms, total 31ms 08-18 00:58:18.909: D/dalvikvm(12809): GC_FOR_ALLOC freed 5483K, 60% free 22387K/54640K, paused 33ms, total 34ms 08-18 00:58:19.009: D/dalvikvm(12809): GC_FOR_ALLOC freed 4107K, 60% free 22382K/54640K, paused 39ms, total 39ms 08-18 00:58:19.119: D/dalvikvm(12809): GC_FOR_ALLOC freed 4455K, 60% free 22348K/54640K, paused 35ms, total 35ms 08-18 00:58:21.902: D/dalvikvm(12809): GC_FOR_ALLOC freed 7009K, 61% free 21810K/54640K, paused 38ms, total 38ms 08-18 00:58:22.112: D/dalvikvm(12809): GC_CONCURRENT freed 5015K, 58% free 23221K/54640K, paused 3ms+4ms, total 38ms 08-18 00:58:22.112: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 28ms 08-18 00:58:22.112: D/dalvikvm(12809): WAIT_FOR_CONCURRENT_GC blocked 30ms 08-18 00:58:22.232: D/dalvikvm(12809): GC_FOR_ALLOC freed 5467K, 60% free 22264K/54640K, paused 30ms, total 30ms 08-18 00:58:22.302: D/dalvikvm(12809): GC_FOR_ALLOC freed 4119K, 60% free 22264K/54640K, paused 31ms, total 31ms 08-18 00:58:22.372: D/dalvikvm(12809): GC_FOR_ALLOC freed 4100K, 60% free 22263K/54640K, paused 30ms, total 30ms