Advertisement
Guest User

06-15-2016

a guest
Jul 4th, 2016
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.58 KB | None | 0 0
  1. 08:56 You have joined the channel
  2. 08:56 thepoosh has joined (~thepoosh@109.226.32.210)
  3. 08:56 Topic: Android application development | Android N Preview released http://goo.gl/QnsKsv | Official docs at http://d.android.com/ | Root/custom ROMs, head to #android-root | No bots, and no advertising please, jobs or otherwise | Source at source.android.com | http://imgur.com/jacoj
  4. 08:56 kroot set the topic at: 10 Mar 2016, 00:14
  5. 08:56 Mode: +cnrtf #android-unregistered
  6. 08:56 Created at: 21 Oct 2008, 00:03
  7. 08:57 lukeallison: COrrect.
  8. 08:57 min2: then from fragments all you need to ((MainActivity)getActivity()).tabLayout.setVisibility(View.VISIBLE);
  9. 08:58 lukeallison: Beautiful.
  10. 08:58 min2: you can access your public field variables like this from any child fragments
  11. 08:59 your_mirror has joined (~dev@broadband-skytelecom-151-252-106-57.clients.kubtel.ru)
  12. 08:59 your_mirror has left IRC (Max SendQ exceeded)
  13. 08:59 MohammadAG has joined (~MohammadA@Maemo/community/contributor/MohammadAG)
  14. 08:59 lukeallison: Now another question while you're there. It's about convention. If I swap out the third page in the viewpager with a new fragment that no longer has the TabLayout displayed I can still swipe the screen and change to a different page of the view pager but now there is no TabLayout visibe.
  15. 08:59 adq has left IRC (Read error: Connection reset by peer)
  16. 09:00 your_mirror has joined (~dev@broadband-skytelecom-151-252-106-57.clients.kubtel.ru)
  17. 09:00 your_mirror has left IRC (Max SendQ exceeded)
  18. 09:00 lukeallison: Should I A) Disallow swiping when I have a detail fragment inflated or B) Add the TabLayout when I swipe
  19. 09:00 lukeallison: Sorry if that makes no sense.
  20. 09:01 your_mirror has joined (~dev@broadband-skytelecom-151-252-106-57.clients.kubtel.ru)
  21. 09:01 your_mirror has left IRC (Max SendQ exceeded)
  22. 09:02 karab44 has joined (~karab44@unaffiliated/karab44)
  23. 09:02 your_mirror has joined (~dev@broadband-skytelecom-151-252-106-57.clients.kubtel.ru)
  24. 09:03 molikto has joined (molikto@2400:8900::f03c:91ff:fe6e:74ae)
  25. 09:06 molikto has left IRC (Read error: Connection reset by peer)
  26. 09:10 daniele_athome has joined (~daniele_a@net-2-38-1-98.cust.vodafonedsl.it)
  27. 09:11 CedricBeust has left IRC (Ping timeout: 260 seconds)
  28. 09:11 ivali has left IRC ()
  29. 09:12 Venusaur has left IRC (Ping timeout: 272 seconds)
  30. 09:13 lukeallison: ie, 1. user swipes to third page, 2. user clicks on list item 3. detail fragment becomes visible and tabLayout is made invisible 4. user swipes in an attempt to go back to second page of ViewPager
  31. 09:13 lukeallison: Should the user be able to do step 4 or should swiping be disabled so they are forced to hit "back" first.
  32. 09:13 skin1980 has left IRC (Remote host closed the connection)
  33. 09:13 mine0901 has joined (uid123762@gateway/web/irccloud.com/x-azkrgiqwpvewsbmk)
  34. 09:15 Sixmsj has left IRC (Ping timeout: 260 seconds)
  35. 09:15 skin1980 has joined (~skin1980@net-2-34-153-230.cust.vodafonedsl.it)
  36. 09:15 hkais has left ()
  37. 09:15 Odaym has joined (~ongoing@unaffiliated/odaym)
  38. 09:17 test123 has joined (50fc0e3e@gateway/web/freenode/ip.80.252.14.62)
  39. 09:18 Sixmsj has joined (~Sixmsj@c-73-223-134-226.hsd1.ca.comcast.net)
  40. 09:18 test123: i have question to experienced devs, I use to use recycleradapter modified to manager cursor (lets say called cursorrecycleradapter). Is it good practice to use this or should I use default recycleradapter and somewhere deep there in code manage with database?
  41. 09:20 muthu has joined (~muthus@223.30.83.242)
  42. 09:21 skin1980 has left IRC (Ping timeout: 276 seconds)
  43. 09:22 Yotta92 has joined (~Yotta92@185.101.89.37)
  44. 09:22 lilygrenade has left IRC (Ping timeout: 260 seconds)
  45. 09:23 Towny has joined (~mark@12.176.89.3)
  46. 09:23 grekkos has joined (~gmcquilla@64.187.160.122)
  47. 09:27 raunicolae has joined (~raunicola@5-15-158-180.residential.rdsnet.ro)
  48. 09:27 Slither has left IRC (Quit: Leaving)
  49. 09:28 grekkos has left IRC (Ping timeout: 240 seconds)
  50. 09:28 Venusaur has joined (~wdwrwf@wikipedia/Antonio-Lopez)
  51. 09:30 Sixmsj_ has joined (~Sixmsj@c-73-223-134-226.hsd1.ca.comcast.net)
  52. 09:30 last_staff has joined (~Thunderbi@79.135.14.226)
  53. 09:31 Sixmsj has left IRC (Ping timeout: 246 seconds)
  54. 09:31 Towny has left IRC (Quit: Towny)
  55. 09:32 Sixmsj_ has left IRC (Read error: Connection reset by peer)
  56. 09:32 Sixmsj has joined (~Sixmsj@c-73-223-134-226.hsd1.ca.comcast.net)
  57. 09:33 duncannz has left IRC (Read error: Connection reset by peer)
  58. 09:34 emPi has joined (~emPi@unaffiliated/empi)
  59. 09:34 duncannz has joined (~duncannz@118-93-137-131.dsl.dyn.ihug.co.nz)
  60. 09:34 duncannz has left IRC (Read error: Connection reset by peer)
  61. 09:36 lukeallison: When you finish the beta of your app, add tabLayout and suddenly the swipe transition is laggy
  62. 09:36 akshitkumar1 has joined (~akshitkum@167.220.238.33)
  63. 09:37 lukeallison: I assume this has something to do with having 10 levels in my Layout?
  64. 09:39 akshitkumar1: hey all, I want to make a battery optimised app, which requires me to schedule tasks every X seconds, is there a way to schedule the CPU to wake up every X seconds, take a snapshot and go back to sleep again?
  65. 09:42 akshitkumar1 has left IRC (Quit: akshitkumar1)
  66. 09:43 Sixmsj has left IRC (Ping timeout: 252 seconds)
  67. 09:45 vuoto has left IRC (Remote host closed the connection)
  68. 09:46 vuoto has joined (~vuoto@80-71-135-9.u.parknet.dk)
  69. 09:47 svm_invictvs has left IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
  70. 09:47 svm_invictvs has joined (~patrick@unaffiliated/svminvictvs/x-938456)
  71. 09:48 akshitkumar1 has joined (~akshitkum@167.220.238.33)
  72. 09:49 bpt has joined (~user@80-108-142-87.cable.dynamic.surfer.at)
  73. 09:50 Sixmsj has joined (~Sixmsj@c-73-223-134-226.hsd1.ca.comcast.net)
  74. 09:51 duncannz has joined (~duncannz@118-93-137-131.dsl.dyn.ihug.co.nz)
  75. 09:53 svm_invictvs has left IRC (Ping timeout: 272 seconds)
  76. 09:55 vegetablesalad19 has joined (~vegetable@89.248.89.71)
  77. 09:55 duncannz has left IRC (Read error: Connection reset by peer)
  78. 09:55 psychuil has joined (w00t@5.28.141.245)
  79. 09:59 Juzzika_ has left IRC (Quit: Textual IRC Client: www.textualapp.com)
  80. 10:00 vegetablesalad19 has left IRC (Ping timeout: 246 seconds)
  81. 10:01 dan2k3k4 has joined (~dan2k3k4@unaffiliated/dan2k3k4)
  82. 10:01 FrodoTheHobbit has left IRC (Quit: Leaving.)
  83. 10:01 Sixmsj has left IRC (Ping timeout: 240 seconds)
  84. 10:02 SwiftMatt has left IRC (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
  85. 10:03 akshitkumar1 has left IRC (Quit: akshitkumar1)
  86. 10:03 asfdd has joined (~asdf@82.196.220.90)
  87. 10:06 atulagrwl has joined (7ab1c689@gateway/web/freenode/ip.122.177.198.137)
  88. 10:06 rakesh1988 has joined (~Thunderbi@bb116-15-78-43.singnet.com.sg)
  89. 10:06 CEnnis91 has left IRC (Quit: Connection closed for inactivity)
  90. 10:06 Sixmsj has joined (~Sixmsj@c-73-223-134-226.hsd1.ca.comcast.net)
  91. 10:06 atulagrwl: Needs help regarding google play. One of my app has been submitted 1 week before and yet the update is not published and showing 'Processing update'
  92. 10:07 akshitkumar1 has joined (~akshitkum@167.220.238.33)
  93. 10:07 atulagrwl: This is an existing android application published around 1 year ago.
  94. 10:09 akshitkumar1 has left IRC (Client Quit)
  95. 10:10 kiao2938 has left IRC (Quit: Konversation terminated!)
  96. 10:10 akshitkumar1 has joined (~akshitkum@167.220.238.33)
  97. 10:11 daniele_athome has left IRC (Ping timeout: 260 seconds)
  98. 10:11 daniele_athome has joined (~daniele_a@net-5-94-190-36.cust.dsl.vodafone.it)
  99. 10:12 duncannz has joined (~duncannz@118-93-137-131.dsl.dyn.ihug.co.nz)
  100. 10:12 LeartS has joined (~learts@2.236.138.209)
  101. 10:14 Leeds: finally watched the retrofit2 video I've had queued up for many many months :)
  102. 10:14 Leeds: atulagrwl: is there anything weird about it, any reason for it to be delayed?
  103. 10:15 atulagrwl: Leeds: I am not sure. I am also surprised about it.
  104. 10:16 atulagrwl: Any way to get anyone to look at it? Maybe some support mechanism
  105. 10:17 Leeds: dunno, sorry
  106. 10:17 atulagrwl: I have been waiting for over 1 week. Now I am getting complaints from all over.
  107. 10:17 Odaym: that one where he introduces it?
  108. 10:18 d4rklit3 has left IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
  109. 10:18 Leeds: Odaym: yeah
  110. 10:19 Odaym: yea its really nice
  111. 10:19 Leeds: atulagrwl: so... is there any reason *you* can think of?
  112. 10:19 atulagrwl: Leeds: There is nothing change in the recent release. I just switched from eclipse to android studio and did some UI work.
  113. 10:20 gays4trump has left IRC (Remote host closed the connection)
  114. 10:20 atulagrwl: One reason could be that we have used lots of permissions in the app.
  115. 10:20 atulagrwl: But nothing changes in the last release
  116. 10:21 d4rklit3 has joined (~textual@cpe-76-90-191-36.socal.res.rr.com)
  117. 10:23 Leeds: care to name/link the app?
  118. 10:24 andrijans has joined (~andrijans@185.58.226.109)
  119. 10:24 tx: uh
  120. 10:24 tx: is this because you switched to the marshmallow SDK
  121. 10:24 BalTun has joined (~BalTun@95.153.134.209)
  122. 10:24 grekkos has joined (~gmcquilla@64.187.160.122)
  123. 10:24 tx: which now uses a different permissions system
  124. 10:25 pifon has joined (~pifon@unaffiliated/nomad101)
  125. 10:25 LunarEclipse120 has left IRC (Quit: Goodbye.)
  126. 10:25 pduin has joined (~pduin@095-097-243-202.static.chello.nl)
  127. 10:26 atulagrwl: tx: That makes sense. Let me check
  128. 10:26 Synvetic_ has joined (~Synvetic@unaffiliated/synvetic)
  129. 10:27 Baadier has joined (~Baadier@169.255.34.248)
  130. 10:28 AlexBerdnikov has joined (~AlexBerdn@72-101-133-95.pool.ukrtel.net)
  131. 10:29 dmr has left IRC (Ping timeout: 250 seconds)
  132. 10:29 crankslider has joined (~slidercra@unaffiliated/slidercrank)
  133. 10:29 Synvetic has left IRC (Ping timeout: 264 seconds)
  134. 10:29 grekkos has left IRC (Ping timeout: 258 seconds)
  135. 10:30 vuoto has left IRC (Remote host closed the connection)
  136. 10:31 Sixmsj has left IRC (Quit: Sixmsj)
  137. 10:32 asimas has joined (~asimas@78-56-40-255.static.zebra.lt)
  138. 10:34 csddl has joined (~cx@222.18.127.60)
  139. 10:34 csddl: Hi, can I build AOSP with clang?
  140. 10:35 asimas: Hi I have a question. Is it possible to use an LGPL-licensed C library in android applications without providing others with the full source of the application? Some google results say that it's enough that the library can be replaced by recompiling the app (decompile and compile manually). But I cannot find a definitive answer. Has anyone dealt with this previously?
  141. 10:37 Leeds: asimas: the whole point of the LGPL is that it doesn't 'infect' other code - if you modify the library, you have to release those changes (on demand, etc) but if you just link to the library you don't have to do anything GPLish with your own code
  142. 10:37 Leeds: consult a lawyer for actual advice
  143. 10:39 grekkos has joined (~gmcquilla@64.187.160.122)
  144. 10:42 asimas: Leeds, thanks for your input. However, I'm hoping to get a developers perspective for this. We can all read LGPL like regular lawyers would do but I'm interested in "what" can be done with android apps to abide that license requirements. I doubt a lawyer could help with that :|
  145. 10:43 Leeds: what I mean is, if the answer is important to you, don't take advice from a stranger on an IRC channel...
  146. 10:44 tjbiddle has joined (~tjbiddle@114.121.236.251)
  147. 10:46 pifon has left IRC (Ping timeout: 244 seconds)
  148. 10:47 atulagrwl: tx: Checked and found that earlier I was using 19 as compileSdkVersion in eclipse and when I switched to studio, I was using 22. Can it be the reason?
  149. 10:47 kiao2938 has joined (~mj@dslb-094-216-057-179.094.216.pools.vodafone-ip.de)
  150. 10:48 testild has joined (~Thunderbi@51.254.25.31)
  151. 10:49 bpt has left IRC (Quit: Leaving)
  152. 10:50 ivali has joined (~ivali@unaffiliated/ivali)
  153. 10:56 skin1980 has joined (~skin1980@host160-43-dynamic.32-79-r.retail.telecomitalia.it)
  154. 10:58 nilsi has joined (~nilsi@61.37.219.36)
  155. 10:58 EoN has left IRC (Quit: Textual IRC Client: www.textualapp.com)
  156. 10:59 curtan has joined (~jip@unaffiliated/jippex)
  157. 11:00 rgr has left IRC (Ping timeout: 258 seconds)
  158. 11:03 the_fog has joined (~the_fog@83.147.149.210)
  159. 11:05 d4rklit3 has left IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
  160. 11:07 Synvetic_ has left IRC (Ping timeout: 264 seconds)
  161. 11:07 Rayne has joined (~Rayne@2a01:5c0:12:f041:cd17:829d:cccd:8e5a)
  162. 11:08 veve has left IRC (Quit: Leaving)
  163. 11:10 maxorator has left IRC (Excess Flood)
  164. 11:11 skin1980 has left IRC (Remote host closed the connection)
  165. 11:12 maxorator has joined (~maxorator@108.61.211.70)
  166. 11:14 userx has left IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
  167. 11:15 Apicalis__ has joined (25c9a887@gateway/web/freenode/ip.37.201.168.135)
  168. 11:15 Therms has left IRC (Ping timeout: 258 seconds)
  169. 11:16 Apicalis__: Hey people i got the following setup. Selfdesigned smart home device that sends a HTTP request to my external Server(kasserver.com) that causes a PHP Script to send a push notifcation via GCM to the app on my phone. This worked for a solid year now but suddenly stopped without me interfering with anything here. Did anybody expirience somehting like that?
  170. 11:17 Apicalis__: Did they chance something recently in GCM?
  171. 11:17 akshitkumar1 has left IRC (Quit: akshitkumar1)
  172. 11:17 TactlessBastard has left IRC (Ping timeout: 246 seconds)
  173. 11:19 spykins has joined (~Spykins@41.75.85.2)
  174. 11:19 grekkos has left IRC (Ping timeout: 240 seconds)
  175. 11:19 Serpent7776 has joined (~Serpent77@90-156-68-175.internetia.net.pl)
  176. 11:23 testild has left IRC (Quit: testild)
  177. 11:24 atulagrwl has left IRC (Ping timeout: 250 seconds)
  178. 11:27 skin1980 has joined (~skin1980@host160-43-dynamic.32-79-r.retail.telecomitalia.it)
  179. 11:27 TactlessBastard has joined (~TactlessB@unaffiliated/tactlessbastard)
  180. 11:31 skin1980 has left IRC (Ping timeout: 240 seconds)
  181. 11:32 akshitkumar1 has joined (~akshitkum@167.220.238.33)
  182. 11:35 csddl has left ()
  183. 11:40 Apicalis__ has left ()
  184. 11:40 rakesh1988 has left IRC (Ping timeout: 264 seconds)
  185. 11:41 Mavrik: asimas, LGPL requires you to provide a way to replace the LGPL libraries
  186. 11:41 Mavrik: So if you get a request, you'll have to be able to find a way for that person to reassemble your app with a replacement to LGPL libraries.
  187. 11:41 akshitkumar1 has left IRC (Quit: akshitkumar1)
  188. 11:43 asimas: Mavrik, it also says that the replacement must be able to be done manually. I.e. user can replace it whenever he wants to without my interference. However, some sources say that the .apk can be recompiled manually and the file changed. I wonder if that's enough to abide the LGPL.
  189. 11:44 Mavrik: Which file?
  190. 11:44 akshitkumar1 has joined (~akshitkum@167.220.238.33)
  191. 11:44 Mavrik: Is it a JAR? Or a native library?
  192. 11:44 Mavrik: Honestly, if you don't wanna opensource your code, just stay away from all GPLs
  193. 11:45 Mavrik: Since people don't like it when you try to step around GPL code for commercial benefit and will mess with you just for fun.
  194. 11:45 crankslider has left IRC (Ping timeout: 244 seconds)
  195. 11:46 markyosullivan: I'm not sure if any libraries I'm using is GPL
  196. 11:46 markyosullivan: :|
  197. 11:46 markyosullivan: Mavrik is the talk today or tomorrow?
  198. 11:46 markyosullivan: I'm terrible with days
  199. 11:46 markyosullivan: as you can see
  200. 11:46 p0ff3 has joined (543776c7@gateway/web/freenode/ip.84.55.118.199)
  201. 11:46 lukeallison has left IRC (Ping timeout: 250 seconds)
  202. 11:47 vuoto has joined (~vuoto@80-71-135-9.u.parknet.dk)
  203. 11:47 p0ff3: Ok, so I'm back... Does anyone here have experience with React Native?
  204. 11:48 svm_invictvs has joined (~patrick@unaffiliated/svminvictvs/x-938456)
  205. 11:50 tjbiddle has left IRC (Quit: tjbiddle)
  206. 11:52 test123: hey, maybe someone didnt see my question ;) but is it ok to use CursorRecyclerViewAdapter or should I use default RecyclerViewAdapter and from time to time in code deep there in code call to db when I need?
  207. 11:53 svm_invictvs has left IRC (Ping timeout: 252 seconds)
  208. 11:55 dpyro has left IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
  209. 11:55 markyosullivan: p0ff3: Never had experience with it myself but heard it's pretty cool, why you asking?
  210. 11:56 test123: because using cursor recyclerview adapter I have problem with some features, like insert and delete inside of the list (because content provider notifiy immediately list by calling to load manager)
  211. 11:56 test123: and there is no animation
  212. 11:56 pifon has joined (~pifon@unaffiliated/nomad101)
  213. 11:58 skin1980 has joined (~skin1980@host160-43-dynamic.32-79-r.retail.telecomitalia.it)
  214. 11:58 ob-sed has left IRC (Ping timeout: 276 seconds)
  215. 11:59 gordon_: https://www.youtube.com/watch?v=POZmfjRHdfE
  216. 11:59 gordon_: interesting, they're getting more features from other languages ;)
  217. 11:59 gordon_: not necessary a bad thing
  218. 12:00 squ: java8 added tainted mode, which was in perl for years
  219. 12:01 gordon_: well, talk is about kotlin
  220. 12:01 bolovanos has joined (~bolovanos@91.201.22.5)
  221. 12:01 gordon_: not java
  222. 12:01 skin1980 has left IRC (Remote host closed the connection)
  223. 12:01 skin1980 has joined (~skin1980@host160-43-dynamic.32-79-r.retail.telecomitalia.it)
  224. 12:02 tjbiddle has joined (~tjbiddle@114.121.238.222)
  225. 12:06 spykins has left IRC (Ping timeout: 264 seconds)
  226. 12:06 scorche has joined (~scorche@rockbox/administrator/scorche)
  227. 12:09 scorche` has left IRC (Ping timeout: 252 seconds)
  228. 12:10 kiao2938 has left IRC (Ping timeout: 240 seconds)
  229. 12:11 asimas: Mavrik, it's a native library. I'm in need of an MP3 decoder and I can't find any without a less-restrictive license than LGPL..
  230. 12:12 explodes has left IRC (Ping timeout: 244 seconds)
  231. 12:12 teasp00n has joined (~troy@CPE-121-216-213-98.lnse3.ken.bigpond.net.au)
  232. 12:16 grekkos has joined (~gmcquilla@64.187.160.122)
  233. 12:19 Sashimi has joined (~Sashimi@LFbn-1-1049-239.w86-247.abo.wanadoo.fr)
  234. 12:20 bix0r has joined (~bix0r@p5796F788.dip0.t-ipconnect.de)
  235. 12:21 grekkos has left IRC (Ping timeout: 260 seconds)
  236. 12:22 Yotta92 has left IRC (Quit: Leaving)
  237. 12:22 Yotta92 has joined (~Yotta92@185.101.89.37)
  238. 12:23 nx5_off has joined (~nap@unaffiliated/nx5off/x-000000001)
  239. 12:23 nx5 has left IRC (Ping timeout: 276 seconds)
  240. 12:24 nx5_off is now known as nx5
  241. 12:28 bix0r has left IRC (Quit: Leaving)
  242. 12:30 PC2K has joined (~android-d@118.70.116.214)
  243. 12:31 duncannz has left IRC (Remote host closed the connection)
  244. 12:32 AlexBerdnikov has left IRC (Ping timeout: 272 seconds)
  245. 12:32 Carbonflux has left IRC (Quit: Leaving)
  246. 12:34 pifon has left IRC (Quit: Leaving)
  247. 12:35 p0ff3: markyosullivan: Shit missed your answer, I'm curious because I've never used it, is it suitable for a beginner? Is it actually easy to develop cross-platform?
  248. 12:38 shmooooz: asimas: MediaPlayer built into android decodes .mp3's
  249. 12:39 asimas: shmooooz, poor performance of MediaPlayer is the sole reason of looking for a native decoder.
  250. 12:39 markyosullivan: p0ff3: Like I said, never had any experience of it so I'm not sure. Though it seems to be cool the way you can make iOS and Android apps with the same logic.
  251. 12:39 markyosullivan: Not sure how the performance is on both of them however
  252. 12:41 p0ff3: Yeah I might just do some stuff and see how I feel about it. Thanks anyways
  253. 12:41 AlexBerdnikov has joined (~AlexBerdn@72-101-133-95.pool.ukrtel.net)
  254. 12:44 akshitkumar1 has left IRC (Quit: akshitkumar1)
  255. 12:44 skin1980 has left IRC (Remote host closed the connection)
  256. 12:47 akshitkumar1 has joined (~akshitkum@167.220.238.33)
  257. 12:49 xpoqp: I need to trigger a logger to collect data a few seconds every n'th sec where n can be anything from a second to 60, and my first intuition was to use the Alarm Manager but I'm not sure if that's correct, are there more efficient ways?
  258. 12:51 barq: What do you mean by collect data
  259. 12:52 Defcronyke has left IRC (Ping timeout: 260 seconds)
  260. 12:52 bubbleguuum has joined (~user@21.95.185.81.rev.sfr.net)
  261. 12:53 explodes has joined (~evan@unaffiliated/explodes)
  262. 12:53 skin1980 has joined (~skin1980@net-2-34-153-230.cust.vodafonedsl.it)
  263. 12:54 razorloves has left IRC (Quit: Leaving)
  264. 12:56 Defcronyke has joined (~Defcronyk@88.143.197.104.bc.googleusercontent.com)
  265. 12:56 akshitkumar1 has left IRC (Quit: akshitkumar1)
  266. 12:57 razorloves has joined (~razorlove@unaffiliated/razorloves)
  267. 12:57 skin1980 has left IRC (Ping timeout: 244 seconds)
  268. 12:57 orbyt_ has joined (446b4c73@gateway/web/cgi-irc/kiwiirc.com/ip.68.107.76.115)
  269. 12:58 spykins has joined (~Spykins@41.75.85.2)
  270. 12:59 orbyt_ has left IRC (Client Quit)
  271. 13:01 xpoqp: barq: I mean that a sensorListener is registered and reads data to a file for a short period of time
  272. 13:03 BalTun has left IRC (Ping timeout: 272 seconds)
  273. 13:04 PC2K has left IRC (Read error: Connection reset by peer)
  274. 13:05 son has left IRC (Ping timeout: 240 seconds)
  275. 13:07 kiao2938 has joined (~mj@host121-2.natpool.mwn.de)
  276. 13:08 LeartS: Hey guys, If you don't mind I'll try reasking a question I asked yesterday: http://hastebin.com/zanahegadu.txt
  277. 13:10 Leeds: LeartS: that's not a question... try to summarise rather than expecting everyone to go look at your paste before they know if they could help
  278. 13:10 vuoto has left IRC (Ping timeout: 246 seconds)
  279. 13:11 vuoto has joined (~vuoto@80-71-135-9.u.parknet.dk)
  280. 13:13 LeartS: Profiling a slow app start with the traceview, most of the time (32% of a 6 seconds timespan) is spent (CPU exclusive) in thread.nativeCreate and Object.wait. This seems strange me, but I'm not an Android developer.
  281. 13:14 Mavrik: Leeds, did you use systrace yet?
  282. 13:14 Leeds: Mavrik: I used dtrace...
  283. 13:14 Mavrik: sorry Leeds :P
  284. 13:14 Mavrik: LeartS,.
  285. 13:14 LeartS: In those 6 seconds, hundreds of Timers (java.util.Timer) are created, each one in its own Thread. Could this be the cause, or it's normal/possible to have this situation?
  286. 13:15 skin1980 has joined (~skin1980@host160-43-dynamic.32-79-r.retail.telecomitalia.it)
  287. 13:15 Mavrik: Leeds, uhhh... yes that certanly is the case O.o
  288. 13:15 Leeds: you're not an Android developer, but you're debugging an Android app?
  289. 13:15 Mavrik: Creating threads is expensive.
  290. 13:15 Mavrik: fsck
  291. 13:15 LeartS: (the paste i linked previously are 5 IRC lines of me asking the question yesterday :D)
  292. 13:15 Mavrik: LeartS, yes, that certanly is the case
  293. 13:16 Mavrik: WHY are you creating hundreds of threads?! O.o
  294. 13:16 LeartS: Leeds: I'm helping my colleagues who are ANdroid devs
  295. 13:16 Leeds: is this a standard native app, or using some framework?
  296. 13:16 Leeds: unity, mono, etc
  297. 13:17 grekkos has joined (~gmcquilla@64.187.160.122)
  298. 13:17 hero_biz has joined (~hero_biz@188.158.180.79)
  299. 13:17 LeartS: Poor Leeds, all pinging him by mistake today
  300. 13:17 hero_biz: hi guys.
  301. 13:17 hero_biz: I have a small question
  302. 13:17 Leeds: hero_biz: 1.2%
  303. 13:17 Leeds: (a small answer)
  304. 13:17 bolovanos: hi hero
  305. 13:17 shmooooz: how small is it?
  306. 13:18 hero_biz: I have limited number of lns in a textview by maxLine="2"
  307. 13:18 bolovanos: hero_biz, how about that Toolbar in Settings Fragment - have you been successful?
  308. 13:18 hero_biz: @bolovanos: I wrote a whole settings library...
  309. 13:19 hero_biz: now I can force textview to clip long texts and add ... to it?
  310. 13:19 hero_biz: android:ellipsize="end" alone won't work
  311. 13:19 skin1980 has left IRC (Ping timeout: 240 seconds)
  312. 13:19 hero_biz: need textSize too,it seems.
  313. 13:19 bolovanos: hero_biz, well, good job
  314. 13:19 atulagrwl has joined (b64ac4e2@gateway/web/freenode/ip.182.74.196.226)
  315. 13:20 hero_biz: @bolo: ty :) it became somehow good :)
  316. 13:20 LeartS: Mavrik: I have no idea why they are doing that. I just wanted confirmation that that is indeed expensive and "wrong" before being the guy who doesn't know anything about android development that goes to the android developers to say "I think your problem is here..."
  317. 13:21 Mavrik: Timers are rarely used and it's even rarer to use more than one :)
  318. 13:21 Mavrik: Also, thread pools :)
  319. 13:21 grekkos has left IRC (Ping timeout: 240 seconds)
  320. 13:21 Leeds: LeartS: is this a standard native app, or using some framework?
  321. 13:21 hero_biz: any idea how I can limit size of text in size of view automatically?
  322. 13:21 markyosullivan: Does vector drawables force a lot of computing when the app is running?
  323. 13:22 son has joined (~son@unaffiliated/son)
  324. 13:22 Mavrik: markyosullivan, just the first time they're rendered at a given size
  325. 13:22 Mavrik: Since they have to be rasterized.
  326. 13:22 Mavrik: CPU time used depends on complexity.
  327. 13:24 Leeds has left IRC (Quit: Leaving)
  328. 13:25 markyosullivan: Yeah I figure that it might be causing the "The application may be doing too much work on its main thread." message in the logcat
  329. 13:26 markyosullivan: Mavrik if you change the height & width of the vector within the vector file, would that change the effect it has on the app? Or do you have to reimport the vector drawable?
  330. 13:27 Mavrik: Hmm... not sure, do vectordrawables even listen to that size_
  331. 13:27 Mavrik: (I haven't used them a lot yet, need to reserve time slot with our designer. )
  332. 13:28 markyosullivan: I'm not sure if they do, this is the first time I've used them so I don't know how to optimise their performance in apps
  333. 13:28 azgul has joined (~azgul@unaffiliated/azgul)
  334. 13:29 pifon has joined (~pifon@unaffiliated/nomad101)
  335. 13:29 raunicolae has left IRC (Ping timeout: 276 seconds)
  336. 13:29 AlexBerdnikov has left IRC (Ping timeout: 246 seconds)
  337. 13:30 pifon1 has joined (~pifon@unaffiliated/nomad101)
  338. 13:32 Ankhwatcher has left IRC (Ping timeout: 258 seconds)
  339. 13:32 vegetablesalad19 has joined (~vegetable@89.248.89.71)
  340. 13:33 atulagrwl has left IRC (Ping timeout: 250 seconds)
  341. 13:33 pifon has left IRC (Ping timeout: 244 seconds)
  342. 13:36 vegetablesalad19 has left IRC (Ping timeout: 244 seconds)
  343. 13:37 yonder has joined (~yonder@unaffiliated/yonder)
  344. 13:42 nilsi has left IRC (Remote host closed the connection)
  345. 13:43 sylon has joined (2d20f053@gateway/web/freenode/ip.45.32.240.83)
  346. 13:43 nilsi has joined (~nilsi@61.37.219.36)
  347. 13:43 nilsi has left IRC (Remote host closed the connection)
  348. 13:47 vuoto has left IRC (Quit: Lost terminal)
  349. 13:47 vuoto has joined (~vuoto@80-71-135-9.u.parknet.dk)
  350. 13:49 svm_invictvs has joined (~patrick@unaffiliated/svminvictvs/x-938456)
  351. 13:50 BalTun has joined (~BalTun@95.153.134.209)
  352. 13:52 orbyt_ has joined (446b4c73@gateway/web/cgi-irc/kiwiirc.com/ip.68.107.76.115)
  353. 13:53 orbyt_ has left IRC (Client Quit)
  354. 13:54 anonymous has joined (~quasar_71@124.123.214.104)
  355. 13:54 anonymous is now known as Guest46709
  356. 13:55 svm_invictvs has left IRC (Ping timeout: 276 seconds)
  357. 13:55 tjbiddle has left IRC (Quit: tjbiddle)
  358. 13:58 dan2k3k4 has left IRC (Quit: ZZZzzz…)
  359. 14:02 molikto has joined (molikto@2400:8900::f03c:91ff:fe6e:74ae)
  360. 14:03 molikto has left IRC (Read error: Connection reset by peer)
  361. 14:04 dan2k3k4 has joined (~dan2k3k4@unaffiliated/dan2k3k4)
  362. 14:05 NeoFrontier has joined (~HI@vc-cpt-41-192-150-156.umts.vodacom.co.za)
  363. 14:05 molikto has joined (molikto@2400:8900::f03c:91ff:fe6e:74ae)
  364. 14:06 NeoFrontier: Which is the most accepted way in America to write 87,6 Degrees F ? 0r 87.6 with a dot ?
  365. 14:09 shmooooz: yes
  366. 14:09 pifon1: .
  367. 14:09 pifon1: dont think u use degrees with F
  368. 14:09 pifon1: its only used with C
  369. 14:10 NeoFrontier: A dot it is.
  370. 14:10 NeoFrontier: :)
  371. 14:10 freebyte has joined (~root@81.ip-151-80-235.eu)
  372. 14:10 NeoFrontier: But I see the degrees symbol everywhere with F also.
  373. 14:10 NeoFrontier: like with C.
  374. 14:11 pifon1: WAIT nevermind
  375. 14:11 pifon1: i was thinking of Kelvin
  376. 14:11 NeoFrontier: ah
  377. 14:12 Guest46709 has left IRC (Quit: Leaving)
  378. 14:12 curtan has left IRC (Ping timeout: 272 seconds)
  379. 14:14 EduFrazao has joined (~Peste_Bub@179.228.3.212)
  380. 14:15 CheckDavid has joined (uid14990@gateway/web/irccloud.com/x-eigcemwniyskkywl)
  381. 14:15 quillford has left IRC (Read error: Connection reset by peer)
  382. 14:17 Peste_Bubonica has left IRC (Ping timeout: 272 seconds)
  383. 14:17 grekkos has joined (~gmcquilla@64.187.160.122)
  384. 14:20 veve has joined (~veve@2001:41d0:fe88:4e00:e1bb:a13c:cf80:4644)
  385. 14:20 wvdhaute has left IRC (Ping timeout: 246 seconds)
  386. 14:22 grekkos has left IRC (Ping timeout: 244 seconds)
  387. 14:24 NeoFrontier has left IRC (Ping timeout: 244 seconds)
  388. 14:25 jesopo has joined (jess@lolnerd.net)
  389. 14:26 squ: https://github.com/googlesamples/google-services/issues/26
  390. 14:26 squ: I like how the google guy didn't answer the question
  391. 14:26 squ: his last reply was: " let us know if you have any suggestions"
  392. 14:27 squ: :)
  393. 14:27 squ: after which there are 20 or so complaints
  394. 14:30 BalTun has left IRC (Ping timeout: 258 seconds)
  395. 14:32 kiao2938 has left IRC (Ping timeout: 240 seconds)
  396. 14:32 veve has left IRC (Quit: Leaving)
  397. 14:34 rottz has joined (~rottz@177.45.55.191)
  398. 14:36 veve has joined (~veve@2001:41d0:fe88:4e00:c441:1b5f:907d:6f42)
  399. 14:36 kknight has joined (~greg@106.51.19.253)
  400. 14:37 rakesh1988 has joined (~Thunderbi@bb116-15-78-43.singnet.com.sg)
  401. 14:38 min2 has left IRC (Quit: Page closed)
  402. 14:40 kiao2938 has joined (~mj@2001:4ca0:0:f221:5439:8fe2:2b6:5c11)
  403. 14:41 Estel has left IRC (Remote host closed the connection)
  404. 14:41 kus has joined (~minot@pool-100-1-168-123.nwrknj.fios.verizon.net)
  405. 14:41 kus has left IRC (Max SendQ exceeded)
  406. 14:41 astroduck has joined (~sourabh@122.162.192.132)
  407. 14:41 astroduck: cl
  408. 14:42 astroduck: I am using a RecyclerView in Dialog and its all elements are width match_parent, but they still appear as wrap_content
  409. 14:43 astroduck: Scrolling them in and out of view, essentially recycling them, makes them match_parent
  410. 14:43 astroduck: Anyone has any idea why?
  411. 14:43 nilsi has joined (~nilsi@61.37.219.36)
  412. 14:44 HunterNL has joined (~HunterNL@507299A5.static.ziggozakelijk.nl)
  413. 14:46 orbyt_ has joined (446b4c73@gateway/web/cgi-irc/kiwiirc.com/ip.68.107.76.115)
  414. 14:46 hero_biz has left IRC ()
  415. 14:48 orbyt_ has left IRC (Client Quit)
  416. 14:48 nilsi has left IRC (Ping timeout: 252 seconds)
  417. 14:49 senayar has joined (~senayar@unaffiliated/senayar)
  418. 14:49 karab44 has left IRC (Quit: Bye bye! o/)
  419. 14:50 molikto has left IRC (Remote host closed the connection)
  420. 14:55 jonp has joined (~jonp@about/csharp/mono/jonp)
  421. 14:56 Moshdev has joined (~moshdev@62.17.0.162)
  422. 14:58 kiao2938 has left IRC (Ping timeout: 250 seconds)
  423. 14:58 senayar has left IRC (Remote host closed the connection)
  424. 15:01 kiao2938 has joined (~mj@2001:4ca0:0:f221:5439:8fe2:2b6:5c11)
  425. 15:02 pifon1 has left IRC (Quit: Leaving)
  426. 15:03 kiao2938 has left IRC (Read error: Connection reset by peer)
  427. 15:04 kiao2938 has joined (~mj@2001:4ca0:0:f221:5439:8fe2:2b6:5c11)
  428. 15:07 synthroid has joined (~synthroid@208.167.254.21)
  429. 15:08 asimas: astroduck, sounds like the parent's width is not known when RecyclerView (and its children) is created. Try delaying the inflation.
  430. 15:09 skin1980 has joined (~skin1980@net-2-34-153-230.cust.vodafonedsl.it)
  431. 15:11 skin1980 has left IRC (Remote host closed the connection)
  432. 15:13 skin1980 has joined (~skin1980@net-2-34-153-230.cust.vodafonedsl.it)
  433. 15:14 Synvetic has joined (~Synvetic@unaffiliated/synvetic)
  434. 15:14 molikto has joined (molikto@2400:8900::f03c:91ff:fe6e:74ae)
  435. 15:16 molikto has left IRC (Remote host closed the connection)
  436. 15:17 EduFrazao is now known as Peste_Bubonica
  437. 15:18 grekkos has joined (~gmcquilla@64.187.160.122)
  438. 15:21 vuoto has left IRC (Ping timeout: 246 seconds)
  439. 15:22 vuoto has joined (~vuoto@80-71-135-9.u.parknet.dk)
  440. 15:23 grekkos has left IRC (Ping timeout: 240 seconds)
  441. 15:23 BalTun has joined (~BalTun@95.153.134.209)
  442. 15:24 Drew| has joined (~drew@71-95-187-91.dhcp.mtpk.ca.charter.com)
  443. 15:25 Drew_ has left IRC (Ping timeout: 240 seconds)
  444. 15:27 varesa: Does android update an app if I send an .apk with a newer version?
  445. 15:27 varesa: keeping preferences, etc.
  446. 15:29 pduin: Yes, if the new version is signed with the same key
  447. 15:30 varesa: And if it's unsigned?
  448. 15:30 Drew| has left IRC (Ping timeout: 244 seconds)
  449. 15:31 pduin: AFAIK, it's always signed
  450. 15:31 asimas: varesa, if it's unsigned you can't upload to play store.
  451. 15:31 pduin: If not with the release key, then it's signed with the debug key
  452. 15:31 molikto has joined (molikto@2400:8900::f03c:91ff:fe6e:74ae)
  453. 15:31 varesa: ah okay. In android studio there is "Build APK" and "Generate signed APK"
  454. 15:32 pduin: Build -> debug key, Generate signed -> release key
  455. 15:32 varesa: yeah, makes sense
  456. 15:32 skin1980 has left IRC (Remote host closed the connection)
  457. 15:33 varesa: asimas, this app is not in and will not go to play store
  458. 15:33 varesa: just a one-off for a very specific application
  459. 15:34 astroduck has left IRC (Ping timeout: 244 seconds)
  460. 15:34 stefkos has joined (~stefkos@82.177.144.226)
  461. 15:34 varesa: So if I send the user a new version from "Build APK" (since that is what I first used) it'll update and keep preferences?
  462. 15:35 pduin: Yes
  463. 15:35 varesa: cool, thanks
  464. 15:35 pduin: And if it does not, it will warn you
  465. 15:36 asimas: varesa, just make sure you build from the same machine. If the debug keys differ it won't let the user update the app.
  466. 15:36 varesa: yeah, of course
  467. 15:37 kiao2938 has left IRC (Ping timeout: 250 seconds)
  468. 15:37 varesa: I've forgotten quite a lot. I last touched android developent when 2.2/2.3 was new :)
  469. 15:37 poleprogger has joined (~mj@host121-2.natpool.mwn.de)
  470. 15:38 tx: I touch it daily
  471. 15:38 tx: we're great friends. ;)
  472. 15:39 asimas: Quite a lot has changed so you can say that you're learning not remembering :)
  473. 15:40 orbyt_ has joined (446b4c73@gateway/web/cgi-irc/kiwiirc.com/ip.68.107.76.115)
  474. 15:41 poleprogger has left IRC (Remote host closed the connection)
  475. 15:42 AtumT has joined (~IRC@177.41.114.129.dynamic.adsl.gvt.net.br)
  476. 15:42 poleprogger has joined (~mj@2001:4ca0:0:f221:5439:8fe2:2b6:5c11)
  477. 15:42 varesa: Android studio feels much better than eclipse
  478. 15:42 varesa: got to love jetbrains IDEs
  479. 15:42 orbyt_ has left IRC (Client Quit)
  480. 15:42 pifon has joined (~pifon@unaffiliated/nomad101)
  481. 15:42 Ashiren: then he will find about about gradle..
  482. 15:43 krabador has joined (~krabador@unaffiliated/krabador)
  483. 15:44 asimas: Gradle is awesome too :)
  484. 15:45 tx: Have you tried out instant run?
  485. 15:45 tx: It's great until it's not.
  486. 15:46 varesa: what did android use in the 2.x times? ant? maven?
  487. 15:46 varesa: I don't even remember anymore
  488. 15:46 amyers has joined (~icarus127@2601:145:4001:2d07:e071:26e3:8b49:4246)
  489. 15:46 asimas: tx, I have it disabled tyvm :D
  490. 15:47 tx: maven
  491. 15:48 vuoto has left IRC (Remote host closed the connection)
  492. 15:49 Ashiren: the eclipse's green arrow
  493. 15:50 freebyte: How can I add a view in a coordinator layout and align it to bottom programatically?
  494. 15:51 svm_invictvs has joined (~patrick@unaffiliated/svminvictvs/x-938456)
  495. 15:52 Ashiren: set layout_gravity to bottom programmatically
  496. 15:52 ivali has left IRC ()
  497. 15:53 Ashiren: CoordinatorLayout.LayoutParams params = new CoordinatorLayout.LayoutParams(...);
  498. 15:53 Ashiren: params.gravity = Gravity.BOTTOM;
  499. 15:53 Ashiren: coordinatorLayout.addView(theView,params);
  500. 15:53 Adyrhan has joined (~Adyrhan@238.red-83-55-184.dynamicip.rima-tde.net)
  501. 15:54 CedricBeust has joined (~cbeust@unaffiliated/cbeust)
  502. 15:54 ChanServ has changed mode: +o CedricBeust
  503. 15:56 svm_invictvs has left IRC (Ping timeout: 252 seconds)
  504. 15:56 squ has left IRC (Quit: squ)
  505. 16:02 the_fog has left IRC (Remote host closed the connection)
  506. 16:04 Baadier has left IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
  507. 16:05 last_staff has left IRC (Quit: last_staff)
  508. 16:05 mEck0 has joined (~mEck0@c-b0fce055.021-32-736b7610.cust.bredbandsbolaget.se)
  509. 16:06 bitkiller_ has joined (~bitkiller@unaffiliated/bitkiller)
  510. 16:07 DrBenway has joined (~DrBenway@190.246.178.171)
  511. 16:08 Baadier has joined (~Baadier@169.255.34.248)
  512. 16:09 skin1980 has joined (~skin1980@net-2-34-153-230.cust.vodafonedsl.it)
  513. 16:09 Joetz has joined (~Joetz@cable-78-34-27-209.netcologne.de)
  514. 16:10 amyers has left IRC (Ping timeout: 250 seconds)
  515. 16:11 poleprogger has left IRC (Remote host closed the connection)
  516. 16:11 DrBenway has left IRC (Ping timeout: 264 seconds)
  517. 16:12 sylon has left IRC (Ping timeout: 250 seconds)
  518. 16:13 mcr has left IRC (Ping timeout: 250 seconds)
  519. 16:14 vegetablesalad19 has joined (~vegetable@89.248.89.71)
  520. 16:14 mcr has joined (~mcr@obiwan.sandelman.ca)
  521. 16:17 Baadier has left IRC (Quit: My Mac has gone to sleep. ZZZzzz…)
  522. 16:18 azeam has left IRC (Ping timeout: 246 seconds)
  523. 16:19 Moshdev has left IRC ()
  524. 16:19 molikto has left IRC (Remote host closed the connection)
  525. 16:19 vegetablesalad19 has left IRC (Ping timeout: 272 seconds)
  526. 16:19 RustyShackleford has joined (~RustyShac@c-67-167-102-7.hsd1.il.comcast.net)
  527. 16:21 Disconnected
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement