Bug #8066
Number format exception while getting pid
Status: | New | Start date: | 12/06/2016 | |
---|---|---|---|---|
Priority: | Urgent | Due date: | 12/07/2016 | |
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - | |||
Component: |
Description
Hello Team,
I was trying to check if orbot app is running or not. If it is not running then displaying dialog to start the app. I am using isOrbotRunning() method for this. It is working fine in one of my device S4 having Os version 4.2 I am gettong pid here but it is giving exception when I run the code in my device samsung s6 with OS 6.0.1.
Log trace value is as follows:-
java.lang.NumberFormatException: Invalid int: "1 2 3 7 8 9 10 11 12 13 14 17 18 19 22 23 24 27 28 29 32 33 34 37 38 39 42 43 44 47 48 49 50 385 391 393 395 470 477 481 604 609 614 619 624 629 637 667 680 711 714 781 787 810 897 900 916 917 947 976 1170 1173 1174 1176 1240 1284 1295 1301 1338 1344 1345 1350 1354 1371 1376 1377 1406 1409 1412 1425 1433 1471 1489 1544 1551 1554 1561 1574 1578 1579 1580 1612 1628 1630 1634 1647 1705 1764 1765 1772 1773 1779 1785 1808 1813 1833 1837 1842 1854 1855 1859 1872 1883 1902 1905 1908 2869 2874 2876 2877 2878 2879 2883 2884 2890 2891 2892 2894 2895 2897 2899 2900 2902 2903 2905 2906 2908 3017 3021 3034 3040 3041 3042 3043 3044 3047 3048 3049 3050 3051 3052 3053 3055 3056 3057 3058 3060 3062 3065 3066 3067 3068 3069 3070 3072 3073 3074 3075 3076 3077 3078 3079 3081 3082 3093 3097 3098 3101 3103 3108 3110 3115 3118 3119 3132 3133 3144 3162 3289 3399 3400 3533 3686 3687 3688 3689 3691 3917 3918 3919 3965 3993 4061 4062 4063 4087 4176 4320 4326 4351 4413 4425 4441 4485 4500 4515 4549 4651 4671 4701 4773 4784 4799 4810 4820 4825 4832 4845 5022 5072 5244 5275 5279 5291 5508 5535 6556 6705 6944 7231 7613 8060 8092 8452 9201 9451 9473 9494 9495 9512 9539 9747 9805 10010 10028 10103 10108 10276 10305 10328 10342 10400 10436 10443 10865 11129 11583 13050 13079 13178 13296 13793 14109 14906 15911 16781 17034 17083 17084 17085 17086 17156 17186 19696 20028 20230 20883 20920 21279 21821 23962 24982 24993 25405 25406 25407 25909 26343 26982 27044 27047 27365 27525 27553 28794 28796 28797 28798 28816 28835 28942 29539 29720 29733 29861 29875 29889 29989 30041 30069 30098 30121 30223 30265 30307 30321 30337 30368 30383 30417 30430 30460 30506 30522 30534 30548 30580 30596 30652 30713 30727 30849 30873 30890 31043 31069 31109 31125 31144 31151 31170 31175 31176 31207 31278 31354 31357 31358 31359 31360 31664 31686 32122 32179 32723"
at java.lang.Integer.invalidInt(Integer.java:138)
at java.lang.Integer.parse(Integer.java:410)
at java.lang.Integer.parseInt(Integer.java:367)
at java.lang.Integer.parseInt(Integer.java:334)
at info.guardianproject.netcipher.proxy.TorServiceUtils.findProcessIdWithPidOf(TorServiceUtils.java:146)
at
Please give your kind feedback on this issue Thanks.