**** BEGIN LOGGING AT Tue Feb 02 02:59:58 2016 Feb 02 03:00:40 I'm not claiming it's particularly good, but it's pretty hard to compete with it Feb 02 03:12:46 hard to want a nexus 7 Feb 02 03:19:31 why Feb 02 03:19:33 it's slow Feb 02 03:21:36 I meant the size, but yea Feb 02 03:22:38 presumably a new nexus 7 would be less slow Feb 02 03:24:38 $200 was a great price for that thing Feb 02 03:25:10 where else can you get a $200 nexus device for development :D Feb 02 03:25:38 Nexus Player! Feb 02 03:31:20 nexus 5x is down to $299 Feb 02 03:31:22 it's getting close Feb 02 03:31:37 "Dutch police train drone-hunting eagles" sweet, i want one! Feb 02 03:31:39 * pfn ordered a nexus 5x this morning Feb 02 03:33:05 pfn: for dev, or regular use, or both? Feb 02 03:33:34 ( 5810) chatty : uid=10100(com.hanhuy.android.irc.lite) expire 10 lines Feb 02 03:33:36 I wonder wtf that means Feb 02 03:33:39 Leeds, for regular use Feb 02 03:34:19 I wouldn't get a 16GB phone for regular use... but that's more of a #android discussion :) Feb 02 03:34:45 https://code.google.com/p/android/issues/detail?id=180738 Feb 02 03:34:59 I didn't say I got the 16 gb model :P Feb 02 03:35:37 you just implied it by mentioning the $299 price :P Feb 02 03:36:44 pfn: doesn't it have a SD card slot ? Feb 02 03:37:06 no Feb 02 03:37:11 doh! Feb 02 03:37:16 shmooz: when's the last time you heard of a Nexus with an SD slot? Feb 02 03:37:18 I said 5x is down to 299, and it's getting close to $200 Feb 02 03:37:23 and I said I got a 5x, unrelated statements :P Feb 02 03:37:39 * pfn has never used an SD card in any of his phones Feb 02 03:37:40 I thought the Nexuses had SD card Feb 02 03:37:43 even when it had an sd card slot Feb 02 03:39:17 the next Nexuses will have it probably, I heard rumors google will support it again Feb 02 03:39:54 it is slightly odd that one of the headline features of M is adoptable storage, yet there is no Nexus device which supports it Feb 02 03:40:53 seems to be working great on my shield tablet, BTW :) Feb 02 03:44:12 is downloadmanager the recommended tool to get GET requests? Feb 02 03:45:34 No type identifier when getting name for resource number 0x7f00000e Feb 02 03:45:35 ugh Feb 02 03:45:52 hey im here to help if anybody needs it Feb 02 03:46:17 * pfn kicks accessibility for making this a pain in the ass Feb 02 03:46:39 madprops: depends on what you're GETting, I guess Feb 02 04:15:30 Guys when should I return true/false on any listener events (eg. onTouch, onClick etc)? I've read the docs but "consume this click and prevent others from executing" just doesn't makes sense to me. Feb 02 04:16:01 That's onMenuItemClick return true value Feb 02 04:18:42 what doesn't make sense Feb 02 04:18:47 return true if you handle the event Feb 02 04:18:49 false if you don't Feb 02 04:21:48 So it's like a notice to the system that I have already clicked something...? But return false does the same thing as true. Feb 02 04:32:46 state of android persistence libraries is... bad Feb 02 04:33:22 now I understand why everone writes sql queries by hand ;) Feb 02 04:38:37 gordon_ :D Feb 02 04:47:22 anyone run into the issue Feb 02 04:47:39 of usng android studio and the generator generated an actionbar but no content on the actionbar Feb 02 04:49:18 define content Feb 02 04:49:23 waht? Feb 02 04:49:29 oh Feb 02 04:49:48 well i used the navigation menu activity template when i generated the project Feb 02 04:49:51 there is no app title Feb 02 04:49:55 no side nav icon Feb 02 04:50:03 ugh, my iota id generator conflicts with protify Feb 02 04:50:03 no settings menu on side Feb 02 04:50:56 gordon_: idk what is wrong Feb 02 04:51:51 show the code Feb 02 04:52:14 which sections i doubt you want to see everything Feb 02 04:52:20 activity main java file? Feb 02 04:58:07 is it OK to swap layout managers for the same recyclerview ? Feb 02 04:58:58 basically i have a button in my action bar, people can choose grid or list Feb 02 05:02:04 Anyone 'round? I'm trying to swap the adapter of a recyclerview contained within a fragment (to update it). I'm setting up the recyclerview on onCreateView (setting it to a member of the fragment itself) Feb 02 05:02:21 when I go to reference that recyclerview after it has been inflated / created, it's null? Feb 02 05:11:14 "Caused by: android.view.InflateException: Binary XML file line #24: The specified child already has a parent. You must call removeView() on the child's parent first." Feb 02 05:11:21 mkay, mind telling me what FILE Feb 02 05:11:38 its line 24, you figure out which file Feb 02 05:13:19 that’s from a runtime exeption, right? I wonder if it has thrown away the filename information in the binary representation. Feb 02 05:14:01 hi all :) just started up default emulator for the first time from android studio. it's taking a while. how long will it take? Feb 02 05:14:42 hdon whatever you can bear, and then some Feb 02 05:14:51 ha, thanks g00s Feb 02 05:15:04 first runs usually take longer Feb 02 05:15:07 it's using little cpu and i/o ... i guess the emulator doesn't run it at full tilt Feb 02 05:15:24 maybe i should have configured the emulator with a faster cpu Feb 02 05:15:50 https://github.com/pfn/iota/issues/1 Feb 02 05:15:52 sucks :( Feb 02 05:34:45 wa5ted: I dont know what you have Feb 02 05:34:50 show main activity first Feb 02 05:34:54 sec Feb 02 05:35:00 i think I solved the problem Feb 02 05:35:31 good, because I'm still stuck with my problem :D Feb 02 05:37:52 XD Feb 02 06:19:59 Interesting. I have a custom EditText, MyEditText, view inside a TextInputLayout. It shows the hint label alright, but it doesnt allow me to actually input anything. There is no line i can click, to open the keyboard Feb 02 06:20:25 MyEditText has no functionality, it only inherits from EditText. If i replace MyEditText with a normal EditText, everything works as expected Feb 02 06:26:08 liefer post myedittext code Feb 02 06:32:24 doh... was not calling the base constructor correctly. Interestingly this doesnt appear to affect TextView as much as EditText Feb 02 07:11:09 ugh, started leaking activities. because of some rx code Feb 02 07:18:54 when downloading images from internet and feeding them to RecyclerView what would be the basic data type for the images. Feb 02 07:19:17 If I have images offline then I refer to them as R.drawable.image which is an int. Feb 02 07:21:33 sudhirkhanger Bitmap Feb 02 07:22:13 only assets that are packed with the app can be referenced by id (R.*.*) Feb 02 07:24:06 kozko2001: cool. I am going to be using Picasso for fetching images. Feb 02 07:32:28 sudhirkhanger if your use case is simple enough, you have not to deal with bitmap at all Feb 02 07:32:50 just request the image, and use the override of .into(ImageView imageView) Feb 02 07:38:06 trying to downgrade compile sdk from 23 to 22 Feb 02 07:38:21 can't seem to remove the v23 appcompat library after changing it in my build.gradle. Feb 02 08:06:41 hello guys, anyone familiar edmodo cropper and gpuImage filter libs ? or experienced with image processing ? Feb 02 08:07:30 sci-fic: better ask what you want specifically Feb 02 08:07:46 image size changed after crop , for instance 100kb image become 500kb Feb 02 08:08:26 they may include additional information after crop Feb 02 08:08:50 that what cropped, check if it has a repage feature Feb 02 08:09:19 squ: one more thing, it was 1512x1080 now it is 1280x1280 Feb 02 08:10:09 there may be virtual canvas Feb 02 08:10:27 or some other geometry info I have no idea about Feb 02 08:11:59 because you are my friend, this is part of manual page I read for you Feb 02 08:12:17 Notice that the size of the displayed image (its 'virtual canvas' or page size) has not been effected by the "-crop" operation. The actual image itself has been cropped, and may be smaller, but the canvas on which the GIF image is displayed is still the same size as the original canvas. Feb 02 08:12:17 You will also notice that the size of the actual image produces may not be the actual size you requested from the crop. It could be very much smaller that what you expected, as the crop itself was either partially or fully outside the actual image area being cropped. Feb 02 08:12:17 You will also notice that the 'offset' of the image on the 'virtual canvas' was in many cases also changed so that the pixels of cropped image is still in exactly the same position as they were in the original image. That is the image contents itself does not move, even though the actual image itself is smaller. Feb 02 08:14:46 :O Feb 02 08:37:35 has anyone used JRAW for accessing the reddit api? Thoughts? Feb 02 08:39:19 hi! is someone here with experience with compression algorithms on Android? I need an angorithm that decompresses as fast as possible and has an acceptable compression ratio. Are there any that use NEON? *data that will be compressed are game assets Feb 02 08:45:04 orbyt_: I don't know what that is Feb 02 08:45:30 HunterD: zip is supported by Java. You can also use third party library if you need something else Feb 02 08:46:17 HunterD: https://software.intel.com/en-us/android/articles/native-library-compression-sdk-for-android-apps Feb 02 08:48:00 thank you wyoung :) also, is this algorithm easy to integrate into an android app? (used only for decompresion) https://github.com/google/brotli from my searches it looks promissing as a fast algorithm but I cannot find any ARM/Android related mentions/implementations Feb 02 08:55:12 HunterD: I've used Zip4j library in an Android app before. Seemed to be working perfectly. I didn't benchmark anything though. Feb 02 08:55:51 HunterD: http://www.lingala.net/zip4j/ Feb 02 08:56:17 ayushkr19: thak you! I will have a look on this also Feb 02 09:01:41 Greetings Feb 02 09:04:11 Hello. Im having problems adding nexus 5x and 6p to supported devices. Anyone know the screen size and screen dimens i should add to the manifest file in order to support these two devices? Feb 02 09:07:43 hi is it possible to create a jar that do not use any android libs (only javax.crypto.Cipher) and share this jar between an android and java desktop applicaiotn ? Feb 02 09:10:05 why would you do this? javax.crypto.Cipher is available for java desktop afaik Feb 02 09:11:25 arkaros, there are listings online ;) Feb 02 09:11:33 1sec Feb 02 09:11:39 http://dpi.lv/ Feb 02 09:11:58 tx: Thank you so much :) Feb 02 09:13:12 Hello guys, I need to edit build.prop of my android device from PC, but everytime I run "adb root" it says "adbd cannot run as root in production builds". What does that mean? Feb 02 09:15:09 exoloastic did you see this? I need to edit build.prop of my android device from PC, but everytime I run "adb root" it says "adbd cannot run as root in production builds". What does that mean? Feb 02 09:15:09 * one_zero has quit () Feb 02 09:15:11 ehm Feb 02 09:15:14 wai 1 sec Feb 02 09:15:19 http://stackoverflow.com/questions/25271878/android-adbd-cannot-run-as-root-in-production-builds Feb 02 09:15:23 here we go Feb 02 09:15:34 doesnt it belong to #android-root Feb 02 09:16:31 I didn't LoriOnPC. I'll take a look at it. Thanks Feb 02 09:17:45 exoloastic i don't know if you will find any solution to your problem but it seems that you are not the only one with this problem. Feb 02 09:18:02 Ashiren: Ah I didnt know that tpp, I'm sorry, Thanks Feb 02 09:19:27 I havent tried it LoriOnPC, but I hope it could solve my problem, otherwise I have to factory reset my tablet Feb 02 09:22:10 that too** Feb 02 09:23:55 lol Feb 02 09:24:09 dpi.lv → dpi love Feb 02 09:24:11 ahahaha Feb 02 09:31:26 I can see on my adsense account that I have say 44 views from some country. But I would like to know from which ad units exactly. How can I do that ? Feb 02 09:38:25 Hi ! I was wondering, is it possible to create a "spell checker" that would be enabled for all my apps ? Feb 02 09:38:25 (in fact, it would be enabled for all apps) Feb 02 09:39:10 hi! Feb 02 09:52:56 blusky: technically possible, yes. The question is if the IME would conflict with your spellchecker Feb 02 10:29:29 hi, is there a guide or something to build indivual apps into apks from the aosp project ? Feb 02 10:29:35 i'm looking for more of a tutorial Feb 02 11:06:31 is it normal that android studio runs in a single thread? Feb 02 11:06:58 I mean, the emulator Feb 02 11:07:46 The emulator is using a single thread and using 100% of it Feb 02 11:08:05 old emulator is not good Feb 02 11:08:17 dont know if new one is better Feb 02 11:08:24 you can use genymotion Feb 02 11:08:31 is it multi threaded? Feb 02 11:08:42 it's normal virtualbox Feb 02 11:08:45 so - yes Feb 02 11:09:11 can i set android studio to do everything with genymotion? otherwise it would slow down development Feb 02 11:09:20 yes you can Feb 02 11:09:35 everything? Feb 02 11:09:48 like debugging, android monitor etc? Feb 02 11:09:51 if you add google libraries, you need to flash them to genymotion Feb 02 11:09:53 yes Feb 02 11:10:02 dont know about monitor Feb 02 11:10:04 let me check Feb 02 11:10:07 it probably takes a lot of time to set it up Feb 02 11:10:24 the same as emulator Feb 02 11:10:32 install genymotion, choose image Feb 02 11:10:35 and it works Feb 02 11:10:42 works like what? Feb 02 11:10:56 you said i had to flash libraries and other things Feb 02 11:11:08 to use genymotion Feb 02 11:11:09 only google play Feb 02 11:11:21 dont need to do that Feb 02 11:11:28 if you dont use google libraries Feb 02 11:11:44 i can click on debug and it stops the running app and it debugs is on genymotion etc? Feb 02 11:11:56 can you do this on phone ? Feb 02 11:11:58 yes Feb 02 11:12:03 it works the same Feb 02 11:12:11 just try and you will know Feb 02 11:12:19 but you have to tell android studio to use genymotion somehow? Feb 02 11:12:25 or what Feb 02 11:12:27 no Feb 02 11:12:37 you launch genmotion Feb 02 11:12:44 and hit run in android studio Feb 02 11:12:51 it will be as usb device Feb 02 11:13:08 alright i guess i could give it a try Feb 02 11:13:49 wait is it free Feb 02 11:14:05 for personal use Feb 02 11:14:15 device monitor works Feb 02 11:15:27 you sure it has the same things than android studio emulator? Feb 02 11:15:39 debugger / Android Monitor etc? Feb 02 11:15:41 goto their site already Feb 02 11:15:44 * Zharf can't decide between otto and greenrobot's eventbus Feb 02 11:16:08 Zharf, otto is deprecated by square :) Feb 02 11:16:17 if that makes it easier Feb 02 11:16:54 oh, why is there no indication of it anywhere Feb 02 11:17:10 Twirl: eh... just go to site, look, try Feb 02 11:17:22 or I will give you bill for consultation :P Feb 02 11:17:29 oh, the github page does Feb 02 11:17:37 yep Feb 02 11:17:53 rxjava/rxandroid would be nice but it's too big of an undertaking for this project Feb 02 11:18:23 gordon_: alright i'm trying it out Feb 02 11:19:44 I don't like eventbus's thread selection thingie at all though, it just feels ugly Feb 02 11:20:05 Zharf: I'm using it, recommend Feb 02 11:20:49 eventbus? Feb 02 11:20:55 EventBus's thread selection is the best part of it :) Feb 02 11:21:20 Mavrik, possibly, but I absolutely hate the "method name determines the thread" part Feb 02 11:21:39 no, rxjava + rxandroid Feb 02 11:21:43 with retrofit Feb 02 11:21:52 Well way better than fsckery you needed to to with Otto to update UI with events. Feb 02 11:21:56 gordon_, right yeah, I would too if this wasn't a 5 year old project Feb 02 11:21:59 Rx is a bit prettier. Feb 02 11:22:02 apt-get install virtualbox or apt-get install virtualbox-5.0? Feb 02 11:22:15 Twirl: yes Feb 02 11:22:22 which one? Feb 02 11:22:25 gordon_, :D Feb 02 11:22:48 Twirl: what version is virtualbox ? Feb 02 11:23:27 gordon_: idk Feb 02 11:23:34 gordon_: what distro do you run? Feb 02 11:23:43 eh... Feb 02 11:23:48 apt-get show virtualbox Feb 02 11:24:07 invalid operation Feb 02 11:24:12 ugh, wait Feb 02 11:24:30 ah Feb 02 11:24:33 apt-cache show Feb 02 11:24:44 maybe its a yummy distro Feb 02 11:25:21 well, thats interesting Feb 02 11:25:30 the one without the version is 4.x Feb 02 11:25:40 and the other is 5.0.x Feb 02 11:25:44 so get 5 Feb 02 11:25:47 5.0.2 Feb 02 11:26:08 wait, genymotion website says they recommend "version 5.0.4 or above." Feb 02 11:26:30 the new built in emulator made me to not bother about genymotion anymore.. theres no gain for me :/ Feb 02 11:26:44 danijoo_: what version? Feb 02 11:26:46 Well, except less crashing :P Feb 02 11:27:38 Mavrik, does 2.0 crash for you? Feb 02 11:27:55 android software is so shit that exist third party emulators for it Feb 02 11:28:00 yup, our instrumentation tests crash new emulator pretty reliably :) Feb 02 11:28:16 weird Feb 02 11:28:28 Especially when I dual-core mode. Feb 02 11:41:27 q Feb 02 11:41:41 wnen i have scan always on, why i dont get scan results when wifi is off(sometimes??) Feb 02 11:50:55 danijoo_: here? Feb 02 11:51:00 yes Feb 02 11:51:08 hi thepoosh! Feb 02 11:51:26 remember that time you pushed to master without resolving conflicts? Feb 02 11:51:27 https://i.imgur.com/usxr9au.jpg Feb 02 11:51:48 lol :DD Feb 02 11:52:00 is that from today? Feb 02 11:56:21 apparently eventbus 3 is planned to have annotations support Feb 02 11:57:51 Hello guys, for a certain fragment I want the Toolbar to be transparent. What's the best way to get this done? I want like the main fragment to have a transparent toolbar and all other fragments the normal toolbar background. Feb 02 12:00:24 wonder if the beta version is stable enough for me Feb 02 12:05:46 hi Feb 02 12:06:01 I have a button inside a linearlayout inside a scrollview inside a relativelayout and when i add elements to the linear layout the button stays on the same place instead of being displaced to the bottom even though it's at the bottom of the elements in the xml, how can i make it stay on the bottom when new elements are being added (dynamically) ? Feb 02 12:06:50 android:layout_alignParentBottom="true" android:layout_gravity="bottom|center_horizontal" doesn't work Feb 02 12:07:35 paste the layout Feb 02 12:07:53 is there any way to see how the layout works after i run the app and the new elements have been dynamically added? Feb 02 12:08:08 I use android studio and when I create a new activity I always get that rendering problem message: class couldn't be found: WindowDecorActionBar. I know how to fix it. Feb 02 12:08:26 But how can I fix it "forever"? Feb 02 12:08:36 where can I change the default value for that? Feb 02 12:08:36 Twirl, yes. you can dump the ViewHierarchy with DDMS Feb 02 12:08:49 http://pastebin.com/raw/cHm3xWY2 Feb 02 12:09:29 today whenever I try to run an application, either in the emulator or on a device, AS throws a nullpointerexception (https://dpaste.de/mBMR). it says it is from the Android Support plugin. has anyone else had this problem? Feb 02 12:11:30 Twirl, layout_alignParentBottom is not a valid attribute for LinearLayout. Its an attribute used for RelativeLayout Feb 02 12:11:57 danijoo_: yea well i added that after Feb 02 12:12:01 to try it out Feb 02 12:12:33 you cant specify alignment in LinearLayout. LinearLayout is only for showing elements one after another Feb 02 12:12:43 apparently 15 hours ago there was a commit with message "prepping v3.0.0"... maybe I should wait a little to see what happens Feb 02 12:12:49 You kinda can Feb 02 12:12:54 Using layout_gravity Feb 02 12:13:07 if you're using a horizontal orientation you can align top or bottom Feb 02 12:13:15 Vertical, you can align right or left Feb 02 12:13:16 ah yes Feb 02 12:13:18 danijoo_: then if i put the button outside the linear layout and after it, it should stay at the bottom right? Feb 02 12:13:32 Twirl, try it. Feb 02 12:14:07 Scroll view can only host one direct child Feb 02 12:14:12 danijoo_, https://code.google.com/p/android/issues/detail?id=122370 Feb 02 12:14:27 danijoo_, sorry wrong person Feb 02 12:14:31 jonky, https://code.google.com/p/android/issues/detail?id=122370 Feb 02 12:14:52 Is it bad practice to have an enum reference Android resources? Feb 02 12:15:02 still not working, it's ignoring everyhing its like it's positioned:absolute in css Feb 02 12:15:06 danijoo_: i mean, fixed Feb 02 12:16:07 could it be because it has android:layout_width="wrap_content" and android:layout_height="wrap_content" ? Feb 02 12:16:41 what are you trying to do? Feb 02 12:17:22 (01:06:01 PM) Twirl: I have a button inside a linearlayout inside a scrollview inside a relativelayout and when i add elements to the linear layout the button stays on the same place instead of being displaced to the bottom even though it's at the bottom of the elements in the xml, how can i make it stay on the bottom when new elements are being added (dynamically) ? Feb 02 12:17:45 pretty simple Feb 02 12:17:49 as if it was some ajax script Feb 02 12:18:10 and appending elements on top it should displace the element at the bottom Feb 02 12:18:20 but it says as if it was position:fixed; Feb 02 12:18:59 okay Feb 02 12:19:06 so you have a linear layout with a button in it Feb 02 12:19:14 tihs button is supposed to stay at the bottom Feb 02 12:19:28 right? Feb 02 12:19:29 yea i just said that Feb 02 12:19:47 and the linearlayout Feb 02 12:19:51 has a vertical orientation Feb 02 12:19:53 or a horizontal? Feb 02 12:20:01 vertical Feb 02 12:20:07 i also pasted the layout Feb 02 12:20:17 (01:08:48 PM) Twirl: http://pastebin.com/raw/cHm3xWY2 Feb 02 12:21:01 Look, if you want this button to stay fixed at the bottom you can't have it inside a layout which has dynamic content Feb 02 12:21:07 You could if it wasn't a linearlayout Feb 02 12:21:24 Is there already a predefined animation to switch from singleLineText to MultiLineText? Feb 02 12:21:26 i already moved it outside the scroll view Feb 02 12:21:36 did it work? Feb 02 12:21:37 and i dont want it to stay fixed Feb 02 12:21:43 i just said i dont want it to be fixed Feb 02 12:21:47 if it worked i wouldnt be asking Feb 02 12:21:51 are you on drugs? Feb 02 12:21:54 jesus Feb 02 12:22:06 how can i make it stay on the bottom when new elements are being added (dynamically) ? Feb 02 12:22:13 what do you fucking mean by this then Feb 02 12:22:18 make a drawing and i can help Feb 02 12:22:27 it means exactly that Feb 02 12:22:57 position:fixed; in css puts the element fixed on the viewport Feb 02 12:23:32 okay i got it Feb 02 12:23:43 you have this: Feb 02 12:24:05 a scroll view with dynamic stuff. when you add more stuff to it, you want the already added button to go lower instead of staying on top Feb 02 12:24:23 seriously? Feb 02 12:24:37 yea Feb 02 12:24:43 keep saying it Feb 02 12:24:59 make a list and add the elements to maxPosition -1.. Feb 02 12:25:34 danijoo_: well, idk how to do that Feb 02 12:25:52 the other way would be to remove the button and put a new one at the end Feb 02 12:25:56 but that would be really silly Feb 02 12:26:07 why don't you draw Feb 02 12:26:10 and i can help you Feb 02 12:26:31 you can also add to LinearLayout at specified position Feb 02 12:26:40 casadogg: forget it man Feb 02 12:26:51 jeez Feb 02 12:26:54 but your ui will get laggy if you have lots of items Feb 02 12:26:55 its fairly simple to do what you want Feb 02 12:27:06 so you have to use a listview or recyclerview Feb 02 12:27:08 casadogg: ignored Feb 02 12:27:09 LinearLayout with dynamic items? Feb 02 12:27:13 Use recyclerview Feb 02 12:27:18 justJanne, exactly Feb 02 12:27:27 whatever Feb 02 12:27:32 you're bicycle guy Feb 02 12:27:36 Twirl, if you dont know how to do that, learn it. Thats a basic for android Feb 02 12:27:40 Even if it gets complicated with input widgets. Feb 02 12:27:53 justJanne: instead of LinearLayout or instead of ScrollView Feb 02 12:28:04 Twirl: both Feb 02 12:28:04 Twirl, both Feb 02 12:28:45 so i remove the linear layout, the relative layout and the scroll view and replace all of that with a recycle view and after it i put the button? Feb 02 12:28:52 god damn it Feb 02 12:29:03 * danijoo_ gives up Feb 02 12:29:11 well just tell me then? Feb 02 12:29:19 You have to use an adapter Feb 02 12:29:36 Read the documentation on recycler views please Feb 02 12:29:40 alright Feb 02 12:29:44 Twirl, youve been told to use recyclerview. next step is to read what that is before asking further ;) Feb 02 12:29:57 ok, sry Feb 02 12:30:02 It is pointless if we just copy the documentation on IRC Feb 02 12:30:02 after that you can answer a lot of that questions for yourself Feb 02 12:30:12 How do I go about finding the actual cause of a memory leak once I have a trace with the non-weak references? Is it always the last element in the chain that causes the problem? Feb 02 12:31:11 What skills is required to start android app dev? Feb 02 12:31:39 discovered, java Feb 02 12:32:00 Discovered: depends, but generally: good understanding of Java, good understanding of design (focus on material design), etc Feb 02 12:32:17 discovered: patience Feb 02 12:32:51 I don't know java. Any good document to get started? Feb 02 12:33:21 Not really. A lot of the official tutorials are even long deprecated. Feb 02 12:34:08 BTW, do we have a list of important links? Like that library site, or materialdesignicons.com, or so on? Feb 02 12:34:09 discovered: you have to be really good at high performance computations Feb 02 12:34:43 discovered: at least PhD level Feb 02 12:34:53 what? Feb 02 12:35:00 discovered, hes bullshitting. Feb 02 12:35:34 exploring http://docs.oracle.com/javase/tutorial/ Feb 02 12:36:51 discovered: if you don't mind you could get a book Feb 02 12:37:02 of course Feb 02 12:37:05 which book? Feb 02 12:37:25 java in a nutshell or head first java are good beginner books, in my opinion Feb 02 12:37:51 book is always better option to learn Feb 02 12:39:54 java.lang.VerifyError: Feb 02 12:39:58 wtf Feb 02 12:39:59 ? Feb 02 12:40:22 hate java Feb 02 12:44:26 I am passing context to a POJO, could this be the problem? The path2gc shows context along the path from Activity down Feb 02 12:44:28 discovered: one solution that I might recommend is to try use university textbooks for learning Java. Most universities publish the textbooks written by their professors as epub or PDF for free. Feb 02 12:45:02 barq, if your pojo outlives the activity, yes Feb 02 12:45:25 if you want to learn java its always better to spend at least a couple of years writing x86 assembler Feb 02 12:45:59 The POJO references Android resources and after the Activity is destroyed the Activity is not GCed Feb 02 12:46:14 * danijoo_ bets Twirl knows nothing about assembler Feb 02 12:46:32 barq, do you hold any references to that pojo outside of activity? Feb 02 12:46:35 danijoo_: i tell you something, it looks pretty funny Feb 02 12:46:35 barq, they probably hold the activity as a context. Feb 02 12:46:37 does someone know how I can disable the inspection? Feb 02 12:47:17 I just tested it but know my code is highlighted the whole time Feb 02 13:02:26 *now Feb 02 13:03:01 danijoo_: The POJO's constructor is POJO(Activity). The constructor is only called from the Activity. Feb 02 13:03:27 barq, that doesnt matter. where do you store the pojo reference? Feb 02 13:05:19 "/app/build/intermediates/exploded-aar/com.android.support/support-v4/22.0.0/jars/libs/internal_impl-22.0.0.jar (No such file or directory)" when trying to use the Design view f the activity_main.xml... whats going on? Feb 02 13:06:10 Twirl, you should spend a couple of years with x86 assembler and come back later to ask that ;) Feb 02 13:06:32 danijoo_: it won't help Feb 02 13:06:40 danijoo_: this isn't x86 assembler Feb 02 13:07:01 Hello guys, for a certain fragment I want the Toolbar to be transparent. What's the best way to get this done? I want like the main fragment to have a transparent toolbar and all other fragments the normal toolbar background. Feb 02 13:07:34 Twirl, too bad :/ Feb 02 13:07:50 Number5, change the background when you switch fragments Feb 02 13:08:00 danijoo_: I guess in the Activity if that is where I am instantiation the POJO? Feb 02 13:08:07 or make the toolbar part of the fragment Feb 02 13:08:17 danijoo_: i was kidding don't get all worked up on that Feb 02 13:08:19 barq, i dont know? Feb 02 13:08:24 danijoo_, thnx. Feb 02 13:08:26 anywys i restarted android studio and it works now Feb 02 13:08:32 pretty funny Feb 02 13:10:38 Is it better to start at the top or the bottom of the tree when looking at these path2gc for finding leaks? Feb 02 13:19:26 onActivityResult is a callback method right? Feb 02 13:19:37 Im making a project where im supposed to outline the differences in how android and ios handles icons/images. i just cant find the information, dont really know what the correct search term would be on google.. Could anyone please point me in the right direction? Feb 02 13:20:39 The POJO is referenced from the Activity only, danijoo_ Feb 02 13:21:11 barq, it shouldnt leak then Feb 02 13:21:18 but its hard to tell without seeing code Feb 02 13:22:10 But the context that is passvia via Activity.this is passed on further to other classes Feb 02 13:24:00 anyone? Feb 02 13:27:15 Am i looking for material design vs ios human interface? Feb 02 13:28:12 DEWE, what about http://www.google.com/design/spec/material-design/introduction.html Feb 02 13:28:22 yeah i found that one Feb 02 13:28:42 im just not sure if thats about icons and image handling for android generally or just a part of it Feb 02 13:28:57 DEWE, that depends on what you really mean by "handling icons and images" Feb 02 13:29:06 well Feb 02 13:29:20 differences in how it draws its images and icons i guess Feb 02 13:31:25 I'm trying to use the ?android:colorControlHighlight color in a state selector but am getting lots of errors, apparently the color cannot be found. If I instead take another color like "@android:color/black I get no errors. Stack trace: http://pastebin.com/8HKER5SU. State selector XML: http://pastebin.com/tUweC3kJ. I only get these errors on API 23 by the way, not on API 21. minSdkVersionset to 21, targetSdkVersion to 23. Any thoughts? Feb 02 13:33:33 DEWE, if you mean it in application level, you can start by saying that android handles images following two concepts. The Bitmap (which is a common concept in computer visual representations) and the Drawable concept. Feb 02 13:33:42 DEWE, And for this last part you use this guide http://developer.android.com/intl/es/guide/topics/resources/drawable-resource.html Feb 02 13:34:06 thx alot :) Feb 02 13:34:09 ill look into that Feb 02 13:34:39 So material design has nothing to do with it ? Feb 02 13:36:48 material design is just what it says, design. If your question is about design and how android applications should look, that would be it Feb 02 13:37:30 no its about how android draws and uses icons and images Feb 02 13:37:53 so i guess its bitmap and drawable that im looking for Feb 02 13:44:44 <_Kevin_> hey, I have no idea how to get pinch to zoom. this is a link to the github of my app. It's just an assignment for a class I'm taking. More info is in the readme. https://github.com/kevinarefunny/valentines-card-app/ Feb 02 13:46:17 Adyrhan, do you have any idea that the IOS equivalent would be ? Feb 02 13:46:47 DEWE, nope Feb 02 13:47:04 <_Kevin_> I'm also testing the app on my LG G4 Feb 02 13:47:06 alrighty Feb 02 13:48:40 _Kevin_, do you expect us to check the project out and go through your whole code? Feb 02 13:49:10 <_Kevin_> I really only messed with he xml. The linux distro chat i was in said i should hop over here for help Feb 02 13:49:22 <_Kevin_> do i need to add code to the .java file? Feb 02 13:49:45 <_Kevin_> but in the xml, for some reason, it looks like the image i used has padding/margins Feb 02 13:50:39 <_Kevin_> direct link to the xml: https://github.com/kevinarefunny/valentines-card-app/blob/master/app/src/main/res/layout/activity_valentinecard.xml Feb 02 14:06:46 danijoo_, justJanne guys i followed your advice and implemented the RecycleLayout, now it looks much better but the button keeps being fixed on top of the viewport as if postion:fixed; on css Feb 02 14:06:57 I'm trying to connect to the google fit API, the connection fails because it can't device which of my 3 google accounts it should use, so I basically just call startIntentSenderForResult(connectionResult.getResolution().getIntentSender(), requestCode, new Intent(), 0, 0, 0) which opens an account chooser (provided by the system). when I click an account, the chooser closes with Activity.RESULT_CANCELED Feb 02 14:07:08 any idea why I'm only getting result canceled? Feb 02 14:07:37 danijoo_, justJanne anything else i could try? Feb 02 14:09:03 i dont know css so your position:fixed reference isnt very helpful Feb 02 14:09:17 make a mock Feb 02 14:09:18 danijoo_: it's fixed on the viewport Feb 02 14:09:34 so if you scroll down the recycleview it keeps being in the same place Feb 02 14:09:41 instead of going to the bottom of the recycleview Feb 02 14:09:47 it keeps being on top of the elements Feb 02 14:10:12 man, position:fixed; is really the most basic of css Feb 02 14:10:16 just open chrome and test it Feb 02 14:10:33 press f12 and select anything and put postion:fixed; on it Feb 02 14:10:44 then scroll down, it stays on the same place on the viewport Feb 02 14:11:15 if you want it to not scroll together with the list of items, dont make it a part of that list.. Feb 02 14:11:34 man its not part of the list Feb 02 14:11:38 it's afterwards Feb 02 14:11:43 it should be displaced by the element Feb 02 14:11:55 whatever, please stop highlighting my name if you dont want to mock it Feb 02 14:12:06 mock what? Feb 02 14:12:13 what you want it to look like Feb 02 14:12:20 its just a button that keeps fixed on the viewport Feb 02 14:12:44 i want it to go to the bottom of the layout Feb 02 14:12:59 when the new elements pop up Feb 02 14:13:10 instead of staying on the same place on the screen Feb 02 14:13:11 understand Feb 02 14:13:19 no Feb 02 14:13:36 its a button floating on the screen Feb 02 14:13:39 that stays on the same place Feb 02 14:13:49 even though new elements come up and should displace its position Feb 02 14:14:09 instead the elements appear below it, for some reason Feb 02 14:14:16 i think its 3 people that asked for a mock until now. Feb 02 14:14:27 because nobody understands you. Feb 02 14:14:34 but please go on with your explanations :) Feb 02 14:14:42 is it really that complicated? Feb 02 14:14:52 i cant believe you develop android and you dont know what position:fixed; is Feb 02 14:15:06 dont believe it then. Feb 02 14:15:29 I must have missed the part where css syntax is a requirement :) Feb 02 14:15:46 pretty much everyone knows a little bit of css Feb 02 14:15:59 Guys FragmentTransaction.Add(Fragment, Tag) doc says it adds the fragment to the view with id 0. What view is that one? Feb 02 14:16:13 sigh. good luck then.. Feb 02 14:17:59 .Add(Fragment, String) sorry Feb 02 14:18:00 Twirl: use a FrameLayout. Feb 02 14:18:14 Put the recyclerview in the back, the button in the front. Feb 02 14:18:23 That's exactly like position: fixed. Feb 02 14:18:34 Adyrhan, its the root view iirc Feb 02 14:18:46 It:s also what you use for floating action buttons if you don't want to use coordinator layout. Feb 02 14:18:52 justJanne, and exactly what I suggested 2 times now :P Feb 02 14:19:21 but he doesnt seem to understand :/ Feb 02 14:19:44 http://i.imgur.com/U5GBiRZ.png Feb 02 14:20:16 he doesnt seem to understand what?? Feb 02 14:20:17 you want it to _move_ to bottom? Feb 02 14:20:27 you are starting to get really annoying buddy Feb 02 14:20:44 cry me a river.. Feb 02 14:20:54 go learn basic css Feb 02 14:21:04 it shouldnt take more than a couple of days Feb 02 14:22:10 why should I? You are here to ask, not me :) Feb 02 14:23:16 you don't seem to understand that CSS is very basic and everyone developing anything that interacts with the web should learn it Feb 02 14:23:29 anyways, i dont feel you really want to help me Feb 02 14:23:55 instead you keep bashing and lying, so just help someone else Feb 02 14:24:22 good luck with that attitude ^^ Feb 02 14:24:46 what attitude? you said i "don't seem to understand" Feb 02 14:25:01 what is it that i don't seem to understand? Feb 02 14:25:10 you are with the attitude, sorrty Feb 02 14:26:11 lets just stop here instead of spamming the channel with that. if you feel insulted, im sorry. maybe we just talked past each other Feb 02 14:28:03 holy shit i have been waiting for this emulator to start up for the first time for 8 hours Feb 02 14:28:55 hdon, thats unusual Feb 02 14:29:01 did it start in the end? Feb 02 14:31:36 hey guys, I’ve two android library projects, not doing anything really complicated, Feb 02 14:31:47 but one always builds to it’s release configuration Feb 02 14:31:56 and one always builds to it’s debug configuration Feb 02 14:32:21 seaders, you can set that in android studio Feb 02 14:32:21 there’s very little difference to their two variants, but I do post build steps on the outputted .aar files Feb 02 14:32:34 hi danijoo_, can you point me to where? Feb 02 14:33:31 in the bottom left is a tab called build variants (green android icon beside it) Feb 02 14:33:46 that opens a windows where you can switch project build variants Feb 02 14:33:52 hi, i have a trademark question... If i build a free app for tracking player's scores while playing scrabble, can i use the name 'Scrabble' in my app or no? Feb 02 14:34:17 there we go Feb 02 14:34:34 Build Variant: debug, Build Variant: release Feb 02 14:34:50 deadalus, if the trademark owner allows you to do that you can use ¨for Scrabble¨ Feb 02 14:35:06 seaders, yes thats what i mean Feb 02 14:35:13 you can just set them to debug or release if you need to Feb 02 14:35:15 yep, got it, fixed it Feb 02 14:35:19 thank you very much :) Feb 02 14:35:22 ah ok, thanks, i'll contact the game company for permission then Feb 02 14:35:59 does someone know how I can disable the inspection? just tested it but now my code is highlighted the whole time Feb 02 14:36:35 Ben_1, inspection is not code highlighting Feb 02 14:36:42 inspection is only the suggestions Feb 02 14:37:05 or what do you exactly mean? Feb 02 14:37:36 danijoo_: yes but these suggestions will be also highlighted in code Feb 02 14:38:12 Ben_1, its just a guess but maybe you need to disable lint for that Feb 02 14:40:33 danijoo_, I’m using that here, now. I build the “release” library with debug, it builds Feb 02 14:40:42 I build again in a second or two, it’s back at release Feb 02 14:41:00 and if I check in the Build Variants window, it’s swapped back to release there, too Feb 02 14:41:46 oh actually, nm Feb 02 14:41:59 it’s saying other projects depend on it’s release version... Feb 02 14:43:39 well. if project A relies on project B, and you build B in release, it sets A to release too, i think Feb 02 14:43:56 none of them are set to release Feb 02 14:43:58 ehh the other way arround is what i mean ^^ Feb 02 14:44:04 yeah, getcha Feb 02 14:44:06 could an invalid oauth token result in google fits account selector returning Activity.RESULT_CANCEL? Feb 02 14:44:42 “compile project(':LocationsSDK’)” Feb 02 14:45:01 (in a module’s dependencies) Feb 02 14:45:16 that would implicitly compile debug if the module is set to debug, and release if it’s set to release, yeah? Feb 02 14:46:09 danijoo_: ah thank you it was lint :) Feb 02 14:50:56 seaders, im actually not sure but I would expect it to be that way Feb 02 14:51:20 cheers, I appreciate the help. it’s driving me a wee bit crazy Feb 02 14:51:33 no library that reference it are building to release Feb 02 14:51:44 they’re all debug, and building PROJECT-debug.aar library files Feb 02 14:51:58 but it, LocationsSDK is building LocationsSDK-release.aar Feb 02 14:52:15 and Android Studio is telling me it’s all the other’s (the debug builders) faults Feb 02 14:52:33 what location sdk is it you are using? Feb 02 15:00:53 it’s our own custom built thing Feb 02 15:01:00 a wrapper for a third party library Feb 02 15:01:10 seems I’ve definitely got to the heart of the problem, Feb 02 15:01:42 looks like doing, “compile project(path: ‘:LocationsSDK’)” passes release as the configuration, no matter what you’re building Feb 02 15:02:03 you have to explicitly set compile project(path: ':SwrveCommonSDK’, configuration: ‘debug’) Feb 02 15:02:06 if you want debug :/ Feb 02 15:02:14 definitely seems quite incorrect Feb 02 15:02:30 that’s what Android Studio was giving out to me about Feb 02 15:04:17 How can I set a default value for Spinner? I mean, I want it to display 'Profiles' when untouched, and when a dropdown item is selected, move to it Feb 02 15:04:41 Ah wait, I figured out that I don't even need that, so sorry Feb 02 15:05:54 OverCoder: you can return a different view from getDropDownView() and getView() in your adapter Feb 02 15:07:20 Ooh, gotcha, many thanks Feb 02 15:23:19 hello everybody I have this exercise here: http://fs5.directupload.net/images/160202/3rjiooow.jpg Feb 02 15:23:46 where Activity D and C are startet by an intent. (First D then C) is my soltuion correct like that? Feb 02 15:28:32 SuperTyp_: Try it? :-) Feb 02 15:28:49 loke___, how? Feb 02 15:29:02 SuperTyp: Test it in your application. Feb 02 15:29:10 dumb question yeah you right Feb 02 15:29:28 but if anybody could answer this would save some time :P Feb 02 15:30:23 loke___, is there a easy way to "look into" the backstack? Feb 02 15:30:37 hi does by default all applicaiton create a shareprefrence content provider available at uri content://package_name.prefs/preferences ? Feb 02 15:30:54 and can i create a wrapper around contentresolver with this uri ? Feb 02 15:31:09 Hello guys, I want to add a view in my layout and set the position such that it's off screen. What's the trick for this (especially when dealing with devices with different screen sizes). Feb 02 15:31:38 Number5, you cant put something out of the screen unless you put it into a scrollable view \ Feb 02 15:32:33 danijoo_, ok, so if I want to put it off screen, do I have to programmatically set the offset of the view to manage that? Feb 02 15:32:48 Number5, why put it there in the first place? Feb 02 15:32:58 if it is not visible, theres no reason to create it Feb 02 15:34:18 danijoo_, hmmm, now you say something. So what's the trick than? I can think of thousands of ways to achieve what I want. But I think there must be a best approach to realise that. Feb 02 15:34:44 I dont know what you want to achieve :P Feb 02 15:35:29 danijoo_, it's like a navigation drawer, but it's not meant to be menu and it should slide in from the bottom. Feb 02 15:35:55 Number5, https://github.com/umano/AndroidSlidingUpPanel Feb 02 15:37:55 danijoo_, thnx, but I'll look further. I have to understand the basics to slide a simple view from a border of a screen. Not just using someone else's library. Feb 02 15:38:13 the you should look how the lib works :) Feb 02 15:41:48 hi any id what is the URI of a defaultsharedpreference provider for an applicaiton ? Feb 02 15:55:27 <_Atom_> Hi everyone! Serious question here.. I'm an amateur programmer (https://github.com/ACollectionOfAtoms) and i've never touched Java! Is it realistic for me to get a very simple android app up and running by say.. April? Feb 02 15:55:48 <_Atom_> the app will simply query a database, and return a list Feb 02 15:55:50 <_Atom_> really Feb 02 15:55:51 <_Atom_> simple Feb 02 15:56:39 lol this is hilarious http://imgur.com/usxr9au Feb 02 15:56:41 _Atom_, yeah probably Feb 02 15:57:01 _Atom_: I’m not sure what you area asking, but yes. You shouldn’t even need a device - the emulator tools are probably sufficient if you just want something simple. Feb 02 15:57:27 <_Atom_> I guess I'm just asking about the learning curve with both Java and Android development Feb 02 15:57:29 _Atom_, do some hello world programming in Java, so you get a bit of a feeling. The rest is googling and copy/paste. Feb 02 15:57:52 _Atom_, Android is as much android-isms as it is java. Knowing java will help you, but learning both won't be terrible. There's lots of examples for doing rest-style data queries/retrieval. I'd start simple - look at the basic apps, learn how android lifecycle works (apps are weird and have weird data retention stuff, etc) Feb 02 15:57:53 <_Atom_> also if anyone knows of some good tutorials to jump start me Feb 02 15:58:19 _Atom_, then do some static-content list displying (simple array stuff, lots of examples out there) then worry about fetching real data Feb 02 15:58:23 _ATOM_ in 2 months from knowing nothing about java (hating it, and still do) i went from nothing, to a tabbed applicatino that pulls in data from remote database and more .. so yeah Feb 02 15:58:39 _ATOM_ but that's all i did for 2 months while having a fulltime job Feb 02 15:58:56 The learning curve for Java is pretty easy if you know another OOP language. The Android framework is a bit more complex Feb 02 15:59:05 if you come from the desktop world then Android’s ‘activity lifecycle’ concepts may be counterintuitive. but a hello world is easy (like mostly everywhere else) Feb 02 15:59:07 _Atom_ there are lots of good MOOCs and lots of Android tutorials on youtube....Youtube videos by Derek Banas are my favorite. Feb 02 15:59:21 <_Atom_> i'm familiar with oop and have been coding in objective C lately (also know a LITTLE C) Feb 02 15:59:22 _Atom_, if you've worked with a few different APIs and have a moderate level of experience, you should be able to get going fairly easily. I think the biggest thing to realize on android is that there's a ton of threading and a ton of async callbacks for everything. Feb 02 15:59:57 <_Atom_> thanks for all the info guys Feb 02 16:07:23 dragorn, threading and async callback is a common pattern throughout all UI toolkits Feb 02 16:09:04 but it sounds like _Atom_ is coming at this a complete beginner Feb 02 16:09:28 which is rough, but sure, something is doable in 2ish months Feb 02 16:09:30 simple Feb 02 16:09:50 java learning curve is flat Feb 02 16:10:04 android is a little steep Feb 02 16:12:35 I'm thinking of using @NonNull. A site say it prevent boilerplate code, but does it really prevent the possibility that null isnt passed somehow? Feb 02 16:15:02 hi.i get androidstudio for ubuntu.where dose its defult sdk dir? Feb 02 16:16:17 abolfazl123: Whereever you want to Feb 02 16:16:21 You specify it in the settings Feb 02 16:17:53 what? Feb 02 16:18:04 falcom, it doesn't prevent it Feb 02 16:18:26 unless you have an annotation processor that does static analysis all the way down Feb 02 16:18:38 most ide will flag nullability issues Feb 02 16:18:48 ah so it's for solely for readablilty purpose? Feb 02 16:18:53 My SDK is in ~/android. I don't remember if I set that, or if it was the default Feb 02 16:20:46 so it's in the where you extract the android ide and run it in the place.ok.is possible download android sdk with download manager? Is there any link for it? Feb 02 16:21:25 gdit android studio, each month it's worth than the previous one Feb 02 16:21:34 WORSE* what a lapsus Feb 02 16:22:00 "Exception in thread "png-cruncher_158" java.lang.RuntimeException: Timed out while waiting for slave aapt process" is back... Feb 02 16:24:36 ??? Feb 02 16:27:37 is possible download android sdk for ubuntu with download manager? Is there any link for it? Feb 02 16:28:51 any better syntax to do the equivalent: if (level == LEVEL_A || level == LEVEL_B || level == LEVEL_C) Feb 02 16:29:06 <_Atom_> ternary operator? Feb 02 16:29:08 <_Atom_> if that exist in java Feb 02 16:29:10 <_Atom_> ... Feb 02 16:29:24 <_Atom_> http://alvinalexander.com/java/edu/pj/pj010018 Feb 02 16:31:34 abolfazl123 Android Studio has an SDK download manager built in Feb 02 16:32:27 I'm not at my dev machine right now, but it's one of the buttons in the toolbar Feb 02 16:32:27 yes i know but i want a link of that for download that with download manager.my net is awful:-D Feb 02 16:39:53 _Atom_ if LEVEL_A LEVEL_B and LEVEL_C are integers and LEVEL_A < LEVEL_B < LEVEL_C Feb 02 16:40:08 you can just if(level <= LEVEL_C) Feb 02 16:42:53 How can I see a list of RSS feeds from feedburner? Feb 02 16:44:37 hi Feb 02 16:46:11 sometimes when I'm using the emulator, android studio won't re-run the app on the virtual device if it is already running. I have to close the AVD and relaunch. is this a common problem? Feb 02 16:46:24 it doesn't throw any errors Feb 02 16:46:26 it just sits there Feb 02 16:52:31 hey all will android dev always be in java Feb 02 16:56:00 yes Feb 02 16:56:17 what do you guys think of this simple view http://imgur.com/lDWfDpZ Feb 02 16:57:54 looks fancy Feb 02 16:58:07 nice design Feb 02 16:58:19 what are you using it for? Feb 02 16:58:26 thanks, took forever to get it where it's at Feb 02 16:58:36 just canvas and bitmaps Feb 02 16:58:40 falcom, no, it is not for readability Feb 02 16:59:01 Need some help, how do I set an OnClickListener for tabLayout? Feb 02 16:59:33 so most of it is drawn using canvas? Feb 02 16:59:42 or are the indicators bitmaps? Feb 02 16:59:43 all of it Feb 02 16:59:47 nice Feb 02 17:00:05 thanks Feb 02 17:00:22 if it's open source do post it please Feb 02 17:00:27 I'd love to take a look at the code Feb 02 17:00:31 gonna eventually get it to use whatever for indicators, right now just simple drawCircle Feb 02 17:01:31 i don't ever post code, never feel up to snuff to release my chaos haha Feb 02 17:01:36 Hey Feb 02 17:01:42 lol Feb 02 17:02:12 Well, it's looking neat, good job :) Feb 02 17:02:29 If there any other thing you can use then emulator for android? Feb 02 17:02:45 thanks, working on getting the view setup for multiple data inputs, such as memory, battery etc..gonna release some apps :) Feb 02 17:02:47 If you don't have a device i mean Feb 02 17:03:43 Has anything use google cloud test lab yet i think i hear it is in beta? Feb 02 17:03:46 perlsyntax, genymotion Feb 02 17:04:15 i try that. Feb 02 17:04:43 Install android on your computer? Feb 02 17:05:12 dannijoo,I mean i waiting for google test lab or whatever they call it.I think it come out google i/o 2016 my guest. Feb 02 17:05:39 sorry Feb 02 17:06:04 danijoo:) Feb 02 17:07:37 what you mean by install android on pc infinity Feb 02 17:08:26 Remix OS / Android x86 project Feb 02 17:08:32 i see Feb 02 17:09:47 Need some help, how do I set an OnClickListener for tabLayout? Feb 02 17:10:59 did you read the TabLayout documentation? Feb 02 17:15:33 got the method, thanks Feb 02 17:17:48 Ok guys, I have the following problem. I have a listview which is below the bottom of the screen. I try to animate it by lv.animate().translationY(-300); But it won't. Animation on other views that are visible on the screen do animate, so it's not a problem of using animation wrong. Any idea why a completely off screen view doesn't show? Feb 02 17:20:00 I'm running a server on my phone, clients to the server discover the port through a UDP broadcast. Is it better to use a fixed port or ephemeral port on android? I've looked for documentation on this but I'm having trouble finding it. Feb 02 17:21:05 Number5: post xml pls Feb 02 17:21:31 And how are you setting the listview off the screen? Feb 02 17:22:02 Number5, because you want to animate y, not translation y Feb 02 17:22:18 translationy should work just fine though Feb 02 17:23:14 suppose you have a frame layout, inside a listview. if you set listview.translationY(listview.getHeight()), listview will be off the screen. Then you just listview.animate Feb 02 17:23:26 listview.animate().translationY(0) Feb 02 17:23:28 should work like this Feb 02 17:23:38 except listview.getHeight will be 0 at most times :p Feb 02 17:23:40 pfn, casadogg well, even translationY didn't work, I'll post an xml a moment please. Feb 02 17:24:03 it will work if the activity/fragment has been loaded Feb 02 17:24:11 if not just set a viewtreeobserver listener Feb 02 17:24:17 ongloballayout Feb 02 17:24:52 * pfn nukes all instances of findViewById from his code by using viewholders everywhere Feb 02 17:25:08 lmao Feb 02 17:26:05 the getheight part is not the point though, the point is translationY usually works Feb 02 17:26:14 pfn, casadogg http://pastebin.com/P0ggrbg8 Feb 02 17:26:38 I suppose so Feb 02 17:26:56 Number5 are you setting listview's visibility to visible? Feb 02 17:26:58 What I wanted first is to animate the whole RelativeLayout, but that moved only the visible views and not the listview below the bottom. Feb 02 17:27:10 casadogg, I tried that too Feb 02 17:28:35 but now you just want to animate the listview? Feb 02 17:29:28 Well, I wanted also the listview, since that didn't work, I was focussing only on Listview with translation stuff Feb 02 17:29:37 oh ok Feb 02 17:29:46 but that seems not to work either. Feb 02 17:30:10 I think it has to do with the fact the Listview is hidden and so has no pixels to move, something like that. Feb 02 17:30:28 I don't think so. could be the case if the listview had gone visibility Feb 02 17:30:42 but invisible simply means the listview is hidden but it's still occupying the 300dp height and matchparent width Feb 02 17:31:04 it's like alpha 0, except that with invisible property, it won't receive touchevents, whereas with alpha 0 it would Feb 02 17:32:01 are you setting it's translationY elsewhere? Feb 02 17:32:35 and keep in mind that translationY(-300) will not move exactly 300dp up Feb 02 17:33:20 yes I know, it's pixels to be precise Feb 02 17:33:45 Hmmm, it's a challenge Feb 02 17:34:16 What did work is to define translationY in xml layout and than do translateY(0). Feb 02 17:35:15 But what I wanted actually is move the whole layout and its child views whereby the ListView appears from the bottom. Feb 02 17:35:29 The idea is quite simple and logic to my opinion. Feb 02 17:35:32 when you say appears from the bottom, you mean from offscreen to onscreen? Feb 02 17:35:40 casadogg, yes Feb 02 17:36:12 well Feb 02 17:37:06 i think you really have to hide your listview first using the translationY property, and then do what you did, animate it using translationY(0) Feb 02 17:37:18 since the listview is below the textview with id "corner..." it is offscreen, so if we can animate it or actually translate Y to up... it should work. I try to translate the Y of the RelativeLayout, I haven' t tried that out Feb 02 17:37:27 oh Feb 02 17:38:18 if you translate the y of relative layout, the container will go up, but the listview will remain at the same place. You really need to translate the listview's Y Feb 02 17:39:25 it could also be a case of relativelayout's rules interfering with the translationY property... though I cannot see why this would happen Feb 02 17:39:44 use a library... Feb 02 17:42:51 meh, I wish there were a way to generate R.id entries from code that updated the res apk Feb 02 17:43:58 Anyone know what the "Downloads" app shows on nexus devices? I'm saving a file to the public/Downloads dir and I don't see it in that app... Feb 02 17:44:09 eghdk, you need to update the downloads content provider Feb 02 17:44:16 eghdk, or use DownloadManager Feb 02 17:44:38 pfn: DownloadManager? Feb 02 17:44:51 DownloadManager is the best way Feb 02 17:45:14 I have it in my private app dir, can I use DownloadManager, to simply "move" it over to the Downlaods dir? I don't want to actually start another download. Feb 02 17:45:50 It has to go into my app first because it's not a plain text file. For example, I'm saving docx in a specific format, that I can only decrypt. Feb 02 17:45:52 does SYSTEM_UI_FLAG_IMMERSIVE not work on lollipop? Feb 02 17:46:03 did kitkat introduce a bunch of window flags that only work on kitkat Feb 02 17:47:34 immersive works fine on lollipop Feb 02 17:51:12 hmm I guess I did not understand it then Feb 02 17:51:29 missingno did you watch the devbytes video ? Feb 02 17:51:31 I assumed it implied SYSTEM_UI_FLAG_HIDE_NAVIGATION, but I guess you need to specifiy that alongside it Feb 02 17:51:49 and FULLSCREEN Feb 02 17:51:53 nope, but I have found it on the googles Feb 02 17:53:04 hmm why would you use immersive without the other two flags for the status and nav bars Feb 02 17:53:21 i dont think you would O.o Feb 02 17:53:28 but you would use the others w/o immersive Feb 02 17:56:34 because you can programmatically control system UI from immersive and decide whether to scale or overlay Feb 02 18:24:30 Why would Android studio be in a need of 1GB of RAM while I only have 2GB installed ;_; Feb 02 18:27:59 because you need more ram Feb 02 18:28:41 yeah you're going to need a lot more than 2 gig to be happy Feb 02 18:30:38 how do I sign the app from the command line? Feb 02 18:31:11 nevermind, found it Feb 02 18:31:14 Hm, you're right, but, what about $$? Feb 02 18:31:26 Okay RAMs are quite cheap, but I have reasons to not get them, related to money Feb 02 18:31:29 :/ Feb 02 18:32:11 then you’re probably going to be limited to just running Android Studio, and not much else alongside it Feb 02 18:32:21 OverCoder, under 8GB you'll have a bad time no matter the tool. Feb 02 18:32:25 OverCoder, I've got 8 gig, and it's not really quite enough Feb 02 18:32:27 On 2 GB... just... no. Feb 02 18:32:43 OverCoder, so you're going to have to live with either abysmal performance and a lot of swapping, or saving up and getting more ram Feb 02 18:33:03 Yeah, I feel like I am planning to get my new laptop with such RAM, my HDD got tired because of low RAM.. Feb 02 18:33:06 Well.. Feb 02 18:33:06 tl;dr there's nothing you can do really about the amount of ram that android studio needs. in my experience, eclipse needs even more. Feb 02 18:33:22 Plus Gradle daemon has it's own heap. Feb 02 18:33:34 And usually you wanna run the browser which will eat 1GB for breakfast as well Feb 02 18:33:54 I run Chrome, AndroidStudio, MySQL Server, Sublime Text, HexChat, and bunch of more apps, I guess I'm swapping 4GiB lol Feb 02 18:34:52 I switch from Chrome to FireFox as FireFox uses much less memory, when I use Android Studio. Feb 02 18:39:05 yeah, get a computer that doesn't suck Feb 02 18:39:14 * pfn is so tempted by a surfacebook for a mobile pc Feb 02 18:39:53 s73v3r: You told me about the alternative for String.isEmpty() Lib right? Feb 02 18:40:08 I can not remember it now...something xxxutils.isEmpty() Feb 02 18:40:10 it’s in the standard lib Feb 02 18:40:16 TextUtils.isEmpty() Feb 02 18:40:41 s73v3r: Ahh thats it.. I was trying textUtils the enrtire time Feb 02 18:46:01 I'm trying to do testunit on a class. but it fails as it calls ClassA.getInstance() ; What are some ways to fix this dependecy? Feb 02 18:48:47 falcom: Pass the ClassA instance into the class under test, rather than having the class under test have to go get it Feb 02 18:49:35 is it possible to get the name of the cert/keystore used to sign an APK? Feb 02 18:49:53 i have a feeling Appium isn’t signing right, but I’m not able to verify Feb 02 18:50:10 s73v3r: i thought about that. That will definitely work. But does this mean.. by best practice we should always past instances of singletons when technically possible? Feb 02 18:50:25 not just singletons Feb 02 18:50:38 the idea is that you should “tell, don’t ask" Feb 02 18:51:15 this way, you could replace the concrete singleton with an interface, and then pass in a mock/double for testing Feb 02 18:51:36 of course, this doesn’t work well if the SUT is an activity or fragment Feb 02 18:51:51 Hey, short philosophical (android-related) question: If I want to allow the user to create an account on a chat server, should I initialize their nickname with their real first name in the signup dialog? Feb 02 18:51:55 s73v3r: also what if the class im testing is a singleton itself? (A logger class) Feb 02 18:52:32 then I might question the design where one singleton is calling another Feb 02 18:52:56 but the same idea should still apply Feb 02 18:56:18 justJanne, depends.. It makes sense for something like whatsapp but not really for IRC imo Feb 02 18:56:31 And I think you are doing an irc bouncer, right Feb 02 18:56:53 yeah. Feb 02 18:56:53 s73v3r: hmm thanks alot! I think the class can be a static class rather than a singleton (The original design of it was making it do too much stuff) Feb 02 18:57:07 We do initialize RealName and Nick to the user’s local name on other platforms, Feb 02 18:57:15 but on Android it’s more questionable Feb 02 18:57:23 (especially due to the needed extra permissions) Feb 02 18:57:59 justJanne, there isnt a nickname attribute, is there? Feb 02 18:58:07 i know contacts has one Feb 02 18:58:34 Android Studio question.. Is there a way to use my mouse to move the-editing-file to the other pane (rather than rightclick "Move to Opposite Group") Feb 02 18:58:50 if you’ve got it on other platforms, then go ahead and do it on Android. Feb 02 18:59:02 falcom: just drag and drop Feb 02 18:59:09 s73v3r: well, on other platforms we read the loginname, not the realname Feb 02 18:59:15 android has no loginname Feb 02 18:59:23 what do you do on iOS? Feb 02 18:59:25 which is quite an interesting situation Feb 02 18:59:47 eh, on iOS you can’t configure anything. The iOS app is literally a text field with lines and an entry field. Feb 02 18:59:51 it’s the worst app ever. Feb 02 19:00:03 and the rewrite for iOS is not that far yet Feb 02 19:00:20 s73v3r: drag and drop still and never had worked.. i'm on OSX if that matters Feb 02 19:00:36 well, on iOS, you’d have the same question as here. Feb 02 19:00:37 especially with marshmallow the "request permission" is not any faster than actually entering the name Feb 02 19:00:53 justJanne, or maybe the users gmail address prefix? Feb 02 19:00:56 falcom: I’m on OS X too, and it does work. are you able to actually pull the tab away? Feb 02 19:01:04 danijoo_: THAT'S an interesting idea! Feb 02 19:01:07 a log of people use that for logins Feb 02 19:01:11 lot* Feb 02 19:01:15 i guess if the other mobile platforms don’t have it, then don’t bother Feb 02 19:01:17 what permissions does that require? Feb 02 19:01:21 no idea. Feb 02 19:01:25 s73v3r: ahhh i have to pull downward to "drag" Feb 02 19:01:28 read/write accounts should be used anyway Feb 02 19:01:39 i guess thats all Feb 02 19:02:28 strict/weird rule but i can live with that Feb 02 19:03:38 danijoo_: I can’t get the users’ real name through that, right? Feb 02 19:04:18 justJanne, no you need contacts for that Feb 02 19:04:26 but maybe contacts also contain the gmail acc Feb 02 19:04:36 yeah, won’t want to use contacts, though Feb 02 19:04:39 that’s creepy Feb 02 19:05:41 yeah. nobody want an ¨allow us to know who you are¨ at first app start :p Feb 02 19:06:29 my compatibilityUtils class is groing, and growing, and groing Feb 02 19:06:31 *growing Feb 02 19:06:45 split it pu Feb 02 19:06:47 up Feb 02 19:06:54 Well, it’s just a bunch of static utils. Feb 02 19:07:27 that’s fine. split it up into different files of static utils Feb 02 19:08:03 to get DEFLATE-compressed sockets, for example (kitkat+), or to get something newer than SSLv3 (jellybean+) or to get the login name (if available) or to disable keepalive (Chrome OS) or to disable statusbar styling (chrome OS) Feb 02 19:08:18 each of the methods could be its own class, there’s nothing related Feb 02 19:08:52 the sockets and SSL stuff could be together. the login name and statusbar styling should be separate Feb 02 19:09:11 then I have dozens of classes, and haven’t won anything ;P Feb 02 19:09:19 I’d prefer if they just wouldn’t be necessary Feb 02 19:09:29 no, now the classes are smaller, and it’s easier to find stuff Feb 02 19:09:37 huh? Feb 02 19:09:42 why would it? Feb 02 19:09:51 structure view makes classes easily readable Feb 02 19:10:16 not if you have insane amounts of methods in the class Feb 02 19:10:30 well, let me check. Feb 02 19:10:33 my insanest class... Feb 02 19:10:45 is only two screen heights of structure view Feb 02 19:10:57 with the smaller classes, they’re going to have more focused names. so you’re not going to have to dig through a class as much to find what you want Feb 02 19:11:02 with 69 methods Feb 02 19:11:24 thats like 2-3 times the amount i have in my biggest classes ^^ Feb 02 19:11:31 actually, that’s the interface for the class. I actually have a bunch of abstract classes extending from each other, implementing part by part Feb 02 19:11:33 which are callback hell of activity Feb 02 19:11:46 i remember we had a Utils class that had everything in it from Activity switching methods, Dialog showing methods, AlertDialog showing methods, user methods, etc Feb 02 19:11:59 Nah, I have about 9 packages for that, s73v3r Feb 02 19:12:23 when we moved to the next version, we split those up, cause the Utils class was unbearable Feb 02 19:12:26 aauuuuuugh Feb 02 19:12:31 when's support libs gonna get updated Feb 02 19:12:32 the issue with the IRCIdentity class is that it can’t be made smaller – the interface is autogenerated from the C++ headers Feb 02 19:12:36 https://code.google.com/p/android/issues/detail?id=74772#c42 Feb 02 19:12:41 (I wrote a transpiler ;P) Feb 02 19:13:15 and for every attribute, you have at least 3 methods. Feb 02 19:13:24 bourbon, theres no shedule Feb 02 19:13:53 for example for the attribute autoAwayReasonEnabled we have autoAwayReasonEnabled(), setAutoAwayReasonEnabled() and _setAutoAwayReasonEnabled() Feb 02 19:14:08 I know, I know Feb 02 19:14:18 it's roughly monthly, but after the holidays, it's been slow getting another update Feb 02 19:14:29 the _ method does the actual business logic, the normal setter calls the business logic method and then issues the RPC Call, and the last one is a getter Feb 02 19:14:32 it's not *that* hard to just manually resize my views when data comes by Feb 02 19:14:41 sooo much boilerplate Feb 02 19:15:02 I’ve considered writing the transpiler in java, so I could actually transpile directly, and never actually see the java code Feb 02 19:17:00 hey, question: can I store an applicationContext in a singleton? I mean, it should stay consistent as long as the process runs, and the singleton should be garbage collected after the process stops running, right? Feb 02 19:17:38 justJanne, the easiest way to achieve this is to make application class the singelton Feb 02 19:17:47 right, great idea! Feb 02 19:17:50 stupid me Feb 02 19:17:56 I actually used that before the rewrite Feb 02 19:24:26 if it was just on android as easy as `QString::fromUtf8(getpwuid(getuid())->pw_gecos)` Feb 02 19:24:32 I have a List declared globally like so List MyObjList; IN the constructor of the class I go public void ClassConstructor() { MyObjList = new ArrayList(); } But i still crashes complaining about the ListObject being null WTF? Feb 02 19:25:05 because you gone done it wrong Feb 02 19:25:11 cart_man, show some actual code Feb 02 19:25:25 learn to read and understand stack traces and your code Feb 02 19:25:27 also, a List is always bad Feb 02 19:25:28 and also.. Case matters :D Feb 02 19:25:44 List MyObj looks aweful Feb 02 19:26:07 anyway, cart_man, can you post a source excerpt and stacktrace? Feb 02 19:26:23 (as the topic already says) Feb 02 19:26:50 List is bad. However, I would believe that List is just them not typing the actual name of the object Feb 02 19:28:57 umm Feb 02 19:29:02 how is this list global Feb 02 19:29:22 if it's global it's static, if it's static how are you instantiating in the constructor Feb 02 19:29:38 yeah, he should initialize it in the static initializer block Feb 02 19:29:58 i guess he doesnt mean global when he says global but means an instance variable Feb 02 19:30:02 class ClassName { List MyObjList; static { MyObjList = new ArrayList(); ... } ... } Feb 02 19:30:18 well, if he means global, a static initializer block would solve it. Feb 02 19:30:34 well he did say it's "declared globally" Feb 02 19:30:49 btw, what I always find most surprising is that java supports both an instance initializer block, and the construction method Feb 02 19:36:03 I have a class that contains all static methods. I was wondering if i want it to use Otto and emit stuff. What will be my best bit on modify this class? Feb 02 19:37:11 I don't want to change too much the interface as the class static method are use in various place. Feb 02 19:39:22 What is this class responsible for? I mean, I understood it is filled with static methods. What's the purpose of these methods? Feb 02 19:41:11 Logging. But now I want it to emit events if fatal logs were encounter, so event listeners can do stuff like report the errors to a server/etc Feb 02 19:41:34 why would you do that with Otto? Feb 02 19:42:34 seperation of concern? logger will just log and emit events (fatalErrorEvents).. There could be a fataErrorEventHandler handling when bad logs are encountered Feb 02 19:43:19 you shouldn’t have to do anything special to use Otto if you’re just emitting events. It just seems like a really weird design decision Feb 02 19:44:10 last paragraph is interesting http://venturebeat.com/2016/02/01/idc-tablet-shipments-decline-10-1-in-2015-leaders-apple-and-samsung-both-lose-market-share/ Feb 02 19:44:23 on the latest AndroidStudio canary, anyone notice AS highlighting errors in the editoer, while everything builds fine? Feb 02 19:44:43 Chainfire_ i have that often with stable 1.5.1 Feb 02 19:44:53 The usage will be like this: Logger.log("error", FATAL) // since it's a static method, i cannot think of a way to pass in the bus to Logger (for otto) Feb 02 19:45:21 Logger.log("error", FATAL, bus) is one solution, but that seems tedious Feb 02 19:45:25 g00s never really noticed it before Feb 02 19:45:27 to replace all occurence of log Feb 02 19:47:19 so what is it about detachable tablets that people like so much? Is it the novelty? Feb 02 19:50:06 its the tablet problem. nobody wants tablets. people want real computers or phones. detachables kinda solve this because i can use my tablet as a laptop if i want Feb 02 19:50:36 does the fernflower decompiler shipped with AS let you decompile arbitrary jars ? Feb 02 19:50:48 * g00s can't figure out how to even get it working Feb 02 19:50:50 plenty of people want tablets. They just don’t want Android tablets Feb 02 19:51:49 s73v3r if i had the money, i'd get an ipad pro just for ebook reading - but thats big cost just for that. i think i'd rather get a surface Feb 02 19:51:59 i can't see the appeal honestly Feb 02 19:52:10 if you want a computer, buy a computer Feb 02 19:52:20 g00s, ebooks on tfts suck imo :/ Feb 02 19:52:28 a detachable sounds more like a bandaid for tablets Feb 02 19:52:34 casadogg, what, exactly, is your point? Feb 02 19:52:38 surface doesn’t really appeal to me because it doesn’t have the library of apps for tablet use, and that floppy keyboard means it’s going to be crap used as a laptop anywhere but a desk/table Feb 02 19:52:41 nothing can beat a nice eink display for books beside real books :) Feb 02 19:52:43 You don't have the same preference as other people. Feb 02 19:52:49 That happens. Feb 02 19:52:54 (Surprising isn't it!) Feb 02 19:53:12 I just can't see how detachables can save tablets Feb 02 19:53:34 because they are also laptops Feb 02 19:53:59 a lot of people dont buy tablets because it sucks to write mails on them and stuff like that Feb 02 19:54:04 okay Feb 02 19:54:09 but what about the hardware Feb 02 19:54:09 which is solved if you can use a hardware keyboard Feb 02 19:54:24 note we are talking about users - not about devs Feb 02 19:54:27 most tablets have hardware keyboards available. I’ve got one on my iPad Feb 02 19:54:28 if detachables become the next new thing then android is really losing Feb 02 19:54:44 devs always forget the typical user does totally different things and is not a computer expert Feb 02 19:54:47 android has given up tablets Feb 02 19:55:35 casadogg, what do you mean "what about hardware" ? Feb 02 19:55:44 danijoo_, no. Feb 02 19:55:54 People always forget that there's no such thing as a "typical user". Feb 02 19:56:15 "Typical user" is a web troll construct that means "person that wants whatever I'm currently arguing about". Feb 02 19:56:25 "Benson Leung (USB Type C tester) has had his Pixel destroyed by a bad USB type C cable." d'oh ! Feb 02 19:56:26 http://www.microsoftstore.com/store/msusa/en_US/pdp/Surface-3/productID.314885500 Feb 02 19:56:38 Mavrik, but a dev is most often very far away from what other people use their machines for Feb 02 19:56:44 danijoo_, that is true Feb 02 19:56:47 user testing is important Feb 02 19:56:49 with a little more money you can get a laptop with better hardware Feb 02 19:56:52 thats what i mean with my bad english :) Feb 02 19:56:56 But that doesn't mean you have one type of "typical user" Feb 02 19:57:03 It probably means you have 15 types of "typical users" Feb 02 19:57:05 g00s: interesting Feb 02 19:57:05 :) Feb 02 19:57:14 None of which probably share your preferences :P Feb 02 19:57:16 casadogg, a lot of people dont care about hardware Feb 02 19:57:21 because all they want is surfin' Feb 02 19:57:57 fair enough Feb 02 19:58:09 if the detachable tablet can do homeoffice + amazon, its enough for most people Feb 02 19:58:13 they dont need laptops Feb 02 19:58:34 thats why the surface is selling pretty well Feb 02 20:00:21 we should all start developing for surface then Feb 02 20:00:26 :P Feb 02 20:02:58 does anyone know any numbers about how touch-based apps from the Windows App Store have fared? Feb 02 20:05:47 so far there are 669k apps Feb 02 20:05:59 but what about sales? Feb 02 20:06:00 http://news.microsoft.com/bythenumbers/store-downloads Feb 02 20:06:10 trying to find this somewhere Feb 02 20:06:34 http://news.microsoft.com/bythenumbers/rudy-huyn Feb 02 20:06:37 well this is interesting Feb 02 20:07:15 no sales numbers though Feb 02 20:07:31 theres a reason why there are no numbers :p Feb 02 20:07:44 http://techcrunch.com/2013/11/11/microsofts-windows-store-averaged-1-7m-daily-downloads-in-october-up-nearly-40-from-june/ Feb 02 20:07:54 this is old though ^ Feb 02 20:07:59 but uh Feb 02 20:08:02 I suppose it's better now? Feb 02 20:08:09 i wouldn’t bet on it Feb 02 20:10:32 it's just that a lot of things that work on android and ios seems so pointless to build for windows Feb 02 20:15:05 they arent pointless on windows phones though Feb 02 20:15:26 they're pointless because no one uses windows phone :P Feb 02 20:24:43 Is it possible to delete a SharedPreference file? Feb 02 20:25:18 Like say I have done getSharedPreferences("freenode", Context.MODE_PRIVATE);, can I later decide to wipe all the freenode preferences? Feb 02 20:31:23 just clear the key Feb 02 20:32:08 No because like, I'd have up to 10 Feb 02 20:32:28 It's annoying to prefs.remove() (or delete() I can't remember) 10 times Feb 02 20:32:39 lots of things in life are annoying Feb 02 20:32:53 I am annoying indeed Feb 02 20:36:08 Editor has a clear method Feb 02 20:37:27 Awesome, thanks Feb 02 20:37:32 Is there something that wraps a BufferedInputStream to read ahead from its source InputStream so that it becomes available() ASAP? Feb 02 20:37:55 i.e. preloading video from a url Feb 02 20:56:03 hi guys, when I download a package and open it in the downloader to install, it doesn't work. it says error parsin package. but opening it via the file manager is ok. Any idea why? Can it be cause of … Feb 02 20:56:04 …a mistake during build? everything else is fine. Feb 02 20:57:24 I’m having a very weird time here getting a program to read a file Feb 02 20:57:46 First off, if I don’t have permission to read the SD card, will attempted file accesses come up as file not found? Feb 02 21:00:12 yes Feb 02 21:00:48 ah Feb 02 21:00:58 lpop, logcat -s PackageManager Feb 02 21:01:08 any idea about my problem guys? Feb 02 21:01:40 pfn it's the same on different phones... Feb 02 21:02:11 so? Feb 02 21:02:15 logcat -s PackageManager Feb 02 21:02:28 pnf I'm not root. Feb 02 21:02:46 you don't need root to logcat Feb 02 21:03:07 let me try again. Feb 02 21:03:25 pfn: So for what reasons would a program read the file when run on an emulator, but fail to read it on an actual device? Note that the API versions are the same Feb 02 21:03:47 JamEngulfer, the exact reason that the exception says Feb 02 21:04:02 pfn it says permission denied. Feb 02 21:04:03 What is that supposed to mean? Feb 02 21:04:15 It fails because file not found? Feb 02 21:04:44 how is that unclear Feb 02 21:05:12 Because I asked you if not having read permissions would give a file not found error and you said yes Feb 02 21:05:25 unable to open log device. Feb 02 21:05:38 Which implies that there are actual multiple reasons I’d get that exception, only one of them actually being the file not being there Feb 02 21:05:43 nope Feb 02 21:06:18 Hello. With PowerManager.FULL_WAKE_LOCK deprecated, how is one supposed to get the screen to wake, ie. for an alarm application? Feb 02 21:06:39 read what the documentation says about full wake lock being deprecated Feb 02 21:07:25 given that the file that I’m looking for is in exactly the same place on the SD card of the emulator and the device, I figured that it was a permissions problem Feb 02 21:07:40 then fix your permissions and try again Feb 02 21:07:48 @pfn: I did that but it only said to use FLAG_KEEP_SCREEN_ON which is useless unless the screen is already on. Feb 02 21:08:24 Wow! Thanks for that advice! That’s totally fixed everything! 100%. 10/10…. Feb 02 21:08:31 ~next Feb 02 21:09:00 “I’m having problems getting permissions to work” - “Fix your permissions” Feb 02 21:09:13 another satisfied customer :) Feb 02 21:09:27 *anyway* Feb 02 21:09:52 The problem that threw me off is that the software on both ‘devices’ is the same and the program is identical Feb 02 21:10:10 The file is the same and is in the same positions Feb 02 21:10:39 Regarding what is in my control, as far as I can see, both situations are identical Feb 02 21:11:02 Thus, is there any other factors that could contribute to the inconsitency? Feb 02 21:11:52 im looking for a good connector or service to connect restfully to a mysql backend, help? Feb 02 21:12:52 supay you'll have to be more specific Feb 02 21:13:16 like, define connector O.o Feb 02 21:13:20 Emulators aren't as locked down as production devices, I guess there could be differences in behavior, JamEngulfer Feb 02 21:13:46 g00s: im not sure exactly, i just want to communicate with my remote sql server really.. Feb 02 21:13:54 and i want a simple library to do that Feb 02 21:14:10 on the client retrofit Feb 02 21:14:15 on the server .. ? up to you Feb 02 21:14:37 g00s: what are the options for on the server? Feb 02 21:14:43 retrofit looks really nice! Feb 02 21:14:53 Can I check the existance of a preference file? Feb 02 21:14:54 so this is what ill be using client-side? Feb 02 21:15:10 if you were using postgresql , you could just install postgREST :) Feb 02 21:15:14 OverCoder: i guess not, not until you know its name.. or that may depend on if its shared or not? Feb 02 21:15:19 SimonVT: Yeah, one thought I had was that the PC could still be mounting the SD card, stopping the device from reading it Feb 02 21:15:22 g00s: ah, alright! Feb 02 21:15:29 g00s: thank you very much! :) Feb 02 21:15:35 But it still didn’t work even when it was all disconnected Feb 02 21:15:36 supay, it's a SharedPreference, and I know it's name ofcourse Feb 02 21:15:40 My problem was fixed using FLAG_TURN_SCREEN_ON. That essentially does the old job of ACQUIRE_CAUSES_WAKEUP. Feb 02 21:16:08 OverCoder: http://stackoverflow.com/questions/22821270/how-to-check-if-sharedpreferences-exists-or-not Feb 02 21:16:16 supay, aw, many thanks Feb 02 21:16:24 np Feb 02 21:16:40 in AS, is there a way to open tool windows (like gradle console) using keyboard shortcuts ? Feb 02 21:17:30 supay if you don't use postgREST, you'll have to stand up your own thing using netty/jetty/vert.x/ratpack Feb 02 21:17:32 Oh yeah, is Environment.getExternalStorageDirectory() going to return the SD card every time? Feb 02 21:18:40 g00s: ill have to google those, but thanks! youve given me the direction i needed ;) Feb 02 21:19:09 supay also check out the latest thoughtworks technology radar : frameworks Feb 02 21:19:25 interesting trend is JEE containers and stuff like apache are being replaced Feb 02 21:19:32 apache tomcat Feb 02 21:20:05 oh, okay.. Feb 02 21:20:47 trend is just embed web service in your app Feb 02 21:20:57 server app ;) Feb 02 21:21:01 server app? Feb 02 21:21:08 how would that work? Feb 02 21:22:36 you just write some java code that talks to your db and exposes the rest api using one of those embeddable libraries Feb 02 21:22:50 seems the sw world is moving away from these grand frameworks Feb 02 21:23:19 i don't know whats latest though for clustering failover, you'll have to think about that Feb 02 21:24:44 yeah, that would be a major problem.. probably best idea to stick to what works for now! :) Feb 02 21:51:37 Hi can someone help me with Dagger 2 and Databinding? Feb 02 21:52:15 for some reason Databinding swallows Dagger's errors Feb 02 21:52:25 and doesn't print anything Feb 02 22:03:33 databinding sucks Feb 02 22:11:47 @pfn why? Feb 02 22:15:00 it's bad for the same reason all the other runtime reflection based libraries are Feb 02 22:15:02 it's brittle Feb 02 22:16:18 Guys, is there any almost-unqiue ID I can get in my app? Feb 02 22:16:26 UUID is a unique id Feb 02 22:16:28 I want to encrypt my shared preferences and I need a key for it Feb 02 22:16:47 that's rather pointless Feb 02 22:16:47 hm Feb 02 22:16:50 except for casual sniffing Feb 02 22:17:07 Yeah I just thought, because people could just grab UUID and hack the sharedprefs D: Feb 02 22:17:15 idk how am I going to store user's password Feb 02 22:17:19 How frustrating can it be Feb 02 22:17:36 store a token instead of the password Feb 02 22:17:45 if you control the server Feb 02 22:18:01 don't store the user's password Feb 02 22:18:05 ever Feb 02 22:18:47 I do a crazy scheme to protect passwords Feb 02 22:18:54 I store a key in google drive in the user's account as a 2fa Feb 02 22:19:36 nou Feb 02 22:19:40 That's too much for my app Feb 02 22:19:43 key decrypts local data, then user pin further decrypts Feb 02 22:19:52 I also can't store tokens, as I am making an IRC client Feb 02 22:20:00 bah, who cares about passwords for an irc client Feb 02 22:20:09 remembering them? Feb 02 22:20:27 no, about protecting them Feb 02 22:20:33 Especially when using bouncers, it's tedious to remember the bounce passowrd (as it tends to be something like "Username:Password") Feb 02 22:20:41 basic measures such as private data is sufficient Feb 02 22:20:42 hm, idk $shrug :p Feb 02 22:26:31 O.o Feb 02 22:27:55 Ok, quick question, if a device is trying to access /storage/emulated/0/, is that ok? Feb 02 22:28:10 I’m wondering if that’s just the normal mount path for the SD card Feb 02 22:28:12 Trying to access in what way? Feb 02 22:28:23 Just reading/writing a file Feb 02 22:28:43 That tends to be external storage location for first user on some devices with internal storage. Feb 02 22:28:49 Hmmmm Feb 02 22:28:55 (Funny isn't it?) Feb 02 22:29:00 How would I force it to use an SD card’s location? Feb 02 22:29:12 What's "it"? Feb 02 22:29:18 An app, sorry Feb 02 22:29:23 Or some code that writes files Feb 02 22:29:45 By using API that resolves to SD card mount point. Feb 02 22:30:33 Is that an Android API method somewhere? Feb 02 22:32:08 As far as I know there's no API that will give you directly the path to sd card root. Feb 02 22:32:16 That seems really dumb Feb 02 22:32:25 There's APIs that will give you all available application files / cache paths on all storage devices in ContextCompat. Feb 02 22:32:32 And there's SAF for user documents. Feb 02 22:32:40 Um, I got an ArrayAdapter populating a dropdown (Spinner), now I want to update that data, do I only need to update the array and then .notifyDataSetChanged()? or there's anything extra for it? Feb 02 22:33:08 The thing is I’m writing an app that reads files that the user puts onto the SD card Feb 02 22:33:30 It seems really counterintuitive that you can’t just access an SD card when you want Feb 02 22:33:50 *shrug* Feb 02 22:34:07 Google changed their attitude and now their opinion is that apps shouldn't just be able to read files not their own. Feb 02 22:34:08 Google’s documentation isn’t helpful either XD Feb 02 22:34:16 If you get access to file tree from user via SAF you'll get everything. Feb 02 22:34:20 But it requires user interation. Feb 02 22:34:24 *interaction Feb 02 22:35:03 Oh yeah, I understand that you probably shouldn’t be able to just grab all the files Feb 02 22:36:57 You can perhaps also infer the directory from the ContextCompat APIs but there's currently no good way of just reading contents of secondary storage SD card. Feb 02 22:37:52 :/ Feb 02 22:38:00 I mean, other apps have managed to do it Feb 02 22:38:14 I’m not really annoyed over it, it’s just really weird Feb 02 22:41:51 Mavrik, eh, having READ_EXTERNAL_STORAGE gives you all the access you want for reading sdcard Feb 02 22:42:06 before 6.0 Feb 02 22:42:08 if you can find it. Feb 02 22:42:14 you can't write to it though. Feb 02 22:42:20 Maybe. Feb 02 22:42:40 It will MOSTLY work tho. Feb 02 22:43:24 eh? I haven't had a problem with writing to sdcard on 6.0 Feb 02 22:43:38 or what's called "sdcard" on nexus devices Feb 02 22:43:46 targetSdkVersion=23 for that matter Feb 02 22:43:58 That's not the same. Feb 02 22:44:17 Which is annoying - the "extnernal storage" and "secondary external storage" have different permissions. Feb 02 22:44:40 You can't write to secondary external storage (when device has an additional sd card besides internal storage) pretty much at all since 4.4. Feb 02 22:44:54 Unless you access via SAF, write to one of the standard dirs or your own "files/cache" dir. Feb 02 22:44:57 OBB too I think. Feb 02 22:45:14 Also the OS won't tell you where that storage is, no API unless you're looking for standard dirs :P Feb 02 22:45:45 So like, if you can’t do that, literally what is the point of an SD card? Feb 02 22:45:57 If apps can’t find it or write to it, just why Feb 02 22:46:02 Google's devices don't have SD cards ;) Feb 02 22:46:06 oh Feb 02 22:46:12 Well that explains a lot Feb 02 22:46:14 And as I said, you can write to your own dir with SD card. Feb 02 22:46:30 ContextCompat.getFilesDirs() will give you path to dir on SD card that you can write to without any permission. Feb 02 22:46:37 But you can't just write files wherever. Feb 02 22:46:43 Ah right Feb 02 22:46:47 (Also the files dir wil finally be properly cleaned up when the app is removed.) Feb 02 22:47:10 And as I said, if user gives you access to SD card directory via SAF you get usual write permissions. Feb 02 22:47:11 So will someone putting that SD card into their computer be able to easily find that folder? Feb 02 22:47:33 IIRC the structure is hidden by default. Feb 02 22:48:08 It's either in .Android or Android directory on SD card. Feb 02 22:48:09 well that just defeats the entire point of my app XD Feb 02 22:48:18 What is the point of your app? Feb 02 22:48:38 To literally read stuff off of a file that a user puts on the SD card Feb 02 22:51:02 hi, is this the right place to ask for help with an Android Studio crash? Feb 02 22:51:31 https://code.google.com/p/android/issues/detail?id=200141 <-- this happens on launch from a fresh install Feb 02 22:52:28 Hey. Does someone have any idea why the hint I'm setting from code does not apply to the floating hint? If I set the hint from the XML and leave it untouched in code I get this: http://i.imgur.com/Ay3uZuq.png If I change it from code the floating hint stays the same: http://i.imgur.com/nOxI5wU.png Feb 02 22:55:02 What floating hint? airrr? Feb 02 22:55:49 the blue one above the edittext Feb 02 22:56:04 Also, guys I got http://p.samuraimanpurse.com/ZBOzGTSN.txt , I want the dialog to not dismiss upon a button press, unless I want to, I searched over the internet and they say override onClick, but I already did! and it's closing! Feb 02 22:57:05 Mavrik, indeed, that may be the case, I don't ever have any devices with actual sd card Feb 02 22:58:07 OverCoder: isn't the stuff inside the onClick stuff that will get called AFTER someone clicked on the button?! Feb 02 22:58:25 Yes? Feb 02 22:58:54 do you guys try to avoid duplicate class names across different packages within the same project? i.e, I have a SignInFragment which actually has the sign in components (textfields, etc) and I have another SignInFragment in a different package which shows a button to bring them to sign in screen if they aren't signed in Feb 02 22:59:03 Also, idk how come that tiny blue text is a 'hint', maybe I miss something new in the material design or something Feb 02 22:59:27 grekkos, that's why there's private, protected, package, and public access modifiers Feb 02 22:59:41 OverCoder: interesting point Feb 02 22:59:48 OverCoder: how about for the layout files associated? Feb 02 22:59:59 if you define it within xml what it does is put the hint inside the edittext until it is in focus, then the hint goes up there. its a material thing yea Feb 02 23:00:20 grekkos, /me thinks, idk Feb 02 23:00:30 I mean I've never worked with multiple packages honestly Feb 02 23:00:31 OverCoder: no I think it's actually very sound for the java side Feb 02 23:00:43 airrr, hmm, didn't know about it Feb 02 23:01:21 grekkos, okay as far as I know XML is just a way to separate layout from code, but upon compilation everything becomes Java code, so there must be somethiing for that Feb 02 23:02:01 http://stackoverflow.com/questions/2620444/how-to-prevent-a-dialog-from-closing-when-a-button-is-clicked Feb 02 23:02:06 isnt that what youre looking for? Feb 02 23:02:20 xml layout doesn't become java code upon compilation Feb 02 23:03:41 hello Feb 02 23:04:19 just curios has anyone here manage to make their apps available through google play Feb 02 23:04:25 *curious Feb 02 23:04:35 nope Feb 02 23:04:47 no one has ever figured out how to make their app available through google play Feb 02 23:04:50 maybe you can be the first Feb 02 23:05:06 pfn, it doesn't? oh well I might have mistaken, but I think that for example when I set onClick attribute it's actually calling setOnClickListener, isn't it? Feb 02 23:05:13 no Feb 02 23:05:42 why are you supposed to use the http scheme for deep links Feb 02 23:05:47 hm, then I am totally wrong Feb 02 23:06:00 missingno, deep links? you mean like, URL() ? Feb 02 23:06:16 intent-filters Feb 02 23:06:17 you can use whatever scheme you want for deep links Feb 02 23:06:32 airrr, sort of different then the answer Iv'e seen, gonna try that Feb 02 23:06:34 yeah that is what it looks like, but the autogenerator says "we recommend you use http" Feb 02 23:07:09 so that your links on the web don't break Feb 02 23:07:11 obviously Feb 02 23:08:05 but then it should recommend a valid host etc Feb 02 23:08:38 that should be obvious if you pick 'http' Feb 02 23:12:31 pfn: do you know of any online resource that I could read on that demonstrates examples on how to use the drag and drop features of android Feb 02 23:13:12 anyone here knows of any online resource that I could read on that demonstrates examples on how to use the drag and drop features of android Feb 02 23:20:05 google Feb 02 23:22:19 go easy on google though Feb 02 23:24:47 amazon opening up physical book stores ... Feb 02 23:25:12 great place to sell their kindle things too i guess Feb 02 23:26:00 and Microsoft allegedly buying Swiftkey for $250million Feb 02 23:26:47 swiftkey was using clojure in one of their android keyboards ... Feb 02 23:26:53 that that was cool Feb 02 23:27:54 So that's why it ran like arse :P Feb 02 23:28:10 taking twenty minutes to figure out how to delete from current character until the Nth occurance of a . in vim was well worth the time, right guys? Feb 02 23:28:25 it was used in SwiftKey Clarity, not sure what other ones they have Feb 02 23:31:54 clojure is the suck Feb 02 23:33:33 (suck (the (is (clojure )))))) you mean. Feb 02 23:35:25 that isn't the bad part of clojure Feb 02 23:35:33 the shitty type system is Feb 02 23:35:40 s73v3r you organize code by feature right ? Feb 02 23:35:59 i would like to, and try to when i’m on projects that let me Feb 02 23:36:20 current work project is organized by Activity, Fragment, etc Feb 02 23:36:43 so if you have 2 features feature A and feature B, and each one has ui components, do you have com.project.featureA.ui and com.project.featureB.ui ? Feb 02 23:37:21 s73v3r, no idea why so many andorid guys do this.. Feb 02 23:37:25 depends on how much is going to be in the FeatureA and FeatureB directories. If there’s only a handful of files, then I don’t bother. If there’s a lot, then yeah, i’d probably do that Feb 02 23:37:45 danijoo_: I think it was some early android demo/tutorial or something, and it seems to have stuck Feb 02 23:37:58 i remember reading a good blog post about organizing by feature but can't find it now Feb 02 23:37:58 we finally upgraded gradle and android build tools at work Feb 02 23:38:11 sorting by activity, fragment,.. is totally against the package structure Feb 02 23:38:13 it happens on iOS a lot too. Maybe it comes from Rails Feb 02 23:38:16 the project used to take 35-50 minutes for a complete clean and rebuild Feb 02 23:38:22 now its down to 5 mins Feb 02 23:39:04 wow I was offended by our 2min build time Feb 02 23:39:22 this project must be huge.. Feb 02 23:39:24 30-55min include unit testing? Feb 02 23:39:28 and all kind of testing? Feb 02 23:39:33 haha unit testing Feb 02 23:39:35 good one Feb 02 23:39:40 ui tests would explain this, yeah Feb 02 23:39:47 yeah its pretty large Feb 02 23:39:50 damn.. Feb 02 23:39:55 are you working for facebook? Feb 02 23:39:56 and there is no automatied testing whatsoever Feb 02 23:40:03 probably some android game? Feb 02 23:40:07 its a bank's app Feb 02 23:40:13 wow... but still Feb 02 23:40:31 wait for customer or business use? Feb 02 23:40:43 both use the same app Feb 02 23:41:21 how many files and packages? Feb 02 23:41:56 a lot. I don't have those stats though Feb 02 23:42:36 72500ish methods. A bit more than half comes from 3rd party libraries Feb 02 23:43:57 how many analytics/tracking libraries do you have? Feb 02 23:44:10 hold on, let me predict Feb 02 23:44:15 too many Feb 02 23:44:20 I’m gonna say… 5 Feb 02 23:44:35 but tracking what? Feb 02 23:44:41 funniest thing is I have no idea where this data goes or how its used. I'm going to guess there's nobody on the other end listening Feb 02 23:44:58 s73v3r: yeah... how do you know? Feb 02 23:45:04 worked on a similar project? Feb 02 23:45:06 google listens :) Feb 02 23:45:09 when I had to deal with that, that’s about how many we had Feb 02 23:45:29 the issue was that different departments in the company needed analytics about the app Feb 02 23:45:39 we want to use rocketfuel now Feb 02 23:45:41 but each different department had their own prefered solution Feb 02 23:45:53 including us developers Feb 02 23:45:53 hah Feb 02 23:45:55 make sense Feb 02 23:46:22 so for most tracking events, there were actually 3-4 events sent out into the web Feb 02 23:47:23 thankfully we didn’t actually hit the dex limit with all those extra tracking libraries, but we were close Feb 02 23:47:41 business always knows where analytics events go Feb 02 23:47:49 because if the events don't show up, it's a business blocker priority Feb 02 23:47:55 dev never knows where the fuck analytics goes Feb 02 23:48:05 the support library, google play services, and appcompat are the largest by far Feb 02 23:48:09 i have no issue with analytics, it’s that the business couldn’t settle on one Feb 02 23:53:21 hey guys if i were to generate a json string from one main JSONObjects fruits.// { "apple" : { "cost": 1, "weight": "20lb" }, "banana"..... do i need to make a JSONObject per fruit and fruits.put(fruit)? Feb 02 23:55:06 JSONObject fruits = new JSONObject(). // is there anyway to avoid creating a new jsonOjbect to fruits.push each fruits? 1 for apple.cost, apple.weight, 1 for orange.cost, orange.weight Feb 02 23:55:15 RustySha1kleford: What’d you guys do to speed up your build? I just timed ours, and starting from clean, it was about 6 and a half minutes Feb 02 23:56:27 s73v3r: newer gradle version (set in /gradle/gradle.properties) Feb 02 23:56:59 and newer version of gradle build tools (project, not module build.gradle) Feb 02 23:57:36 then some workarounds due to problems casued by our locked down windows computers Feb 03 00:04:01 can anyone point me to the proper support channel for Android Studio? it is crashing on startup Feb 03 00:05:06 theres no such place Feb 03 00:07:06 prsn,HAve you try google+ Feb 03 00:07:11 but if you tell us what error you get, we might can help Feb 03 00:07:33 * pfn ponders what other cool features to throw into qicr Feb 03 00:07:42 danijoo__: https://code.google.com/p/android/issues/detail?id=200141 Feb 03 00:07:50 that's the crash message Feb 03 00:08:08 yay for linux Feb 03 00:16:04 is there a launcher icon creator in android studio like in eclipse? Feb 03 00:16:10 i can't seem to find it Feb 03 00:16:26 i don’t believe so Feb 03 00:16:34 wait i found it Feb 03 00:16:35 i think you just add the image Feb 03 00:44:32 s73v3r from a project comprehension standpoint, i might be more willing to divide up by feature - if i could also divide up my resources by feature. hope that is coming soon Feb 03 00:44:45 that would be cool Feb 03 00:50:55 you divide a project by feature to reduce inter-package dependencies Feb 03 00:51:06 that's the primary reason for following such a convention Feb 03 00:51:31 heavily interdependent packages is a code smell Feb 03 00:52:15 dividing by feature also makes code a lot easier to find Feb 03 00:53:03 if you organize by fragment/activity packages, you end up having very heavily circular references Feb 03 01:01:42 s73v3r can you think of any good open source apps packaged that way? i don't think i've seen anything. all i see i { io / service / database / util} etc Feb 03 01:02:14 i believe Google’s testing code lab project is Feb 03 01:02:23 it’s small, and it’s just a note taking thing, but it’s there Feb 03 01:02:41 s73v3r name for it, or link ? Feb 03 01:02:43 I use the Google I/O 2015 app as my foundation as how they see things should be architected nowadays...not that I'm saying it's so great... Feb 03 01:03:16 i think this is it: https://codelabs.developers.google.com/codelabs/android-testing/index.html?index=..%2F..%2Findex#0 Feb 03 01:03:45 I just throw shit in a single package :P Feb 03 01:04:56 s73v3r thanks. yeah, i'm not smart enough to throw shit it a single package; get overwhelmed easily Feb 03 01:05:11 especially when its like months later : Feb 03 01:05:40 size matters Feb 03 01:06:13 that’s just something people with big apps say to make others feel self conscious Feb 03 01:06:29 in my big apps, I have hundreds of packages Feb 03 01:06:30 hate it Feb 03 01:06:56 [pfnguyen@GALACTICA java] $ find . -type d | wc -l Feb 03 01:06:56 179 Feb 03 01:06:57 ... Feb 03 01:07:07 one of my current apps... Feb 03 01:07:50 s73v3r thanks, looking through that - very nice Feb 03 01:21:33 s73v3r: I never knew about that, thanks for sharing Feb 03 02:04:02 hi all :) i have i7 2.5Gz 12 GB RAM Windows 8.1 why is android emulator so slow and audio is so choppy? Feb 03 02:04:23 none of my resources are being maxed out so i can't figure out where the performance bottleneck is Feb 03 02:06:50 hdon using HAXM + gpu acceleration for emu ? Feb 03 02:07:01 and using the x86 emu ? Feb 03 02:07:37 g00s, haxm yes. don't know about gpu, though if it was falling back to my cpu then i'd expect to see at least one of my cores maxed out Feb 03 02:08:12 g00s, yes x86 Feb 03 02:08:29 hdon the new emus coming soon are supposed to be better, but i haven't tried them Feb 03 02:08:36 check the startup log if HAXM is working correctly Feb 03 02:08:42 you can try them i think via sdk manager , getting tools RC Feb 03 02:08:44 g00s, does it work better on linux? Feb 03 02:08:52 doubt it Feb 03 02:08:52 danijoo, which startup log? Feb 03 02:09:06 hdon, the log of the emulator Feb 03 02:09:24 it sayds something like ´HAXM enabled and blabla´ Feb 03 02:09:26 danijoo, where do i find that? Feb 03 02:09:26 or not. Feb 03 02:09:40 no idea where it is for the old emulator Feb 03 02:09:44 the new one shows it in AS Feb 03 02:10:13 AS has normal logcat thing at the bottom Feb 03 02:10:29 fwiw i am trying the com.google.sample.echo sample program Feb 03 02:10:36 i also tried to do google voice search Feb 03 02:10:50 the sample program doesn't really work Feb 03 02:11:08 occasionally i would get crappy playback for about one buffer full of audio after hitting "stop" and then 'start" Feb 03 02:11:22 but most times i hit start and nothing happens Feb 03 02:11:30 i can make all the noise i want through the whole process Feb 03 02:11:41 but, anyhow... let me find this emu log Feb 03 02:12:05 im not sure if emulator supports voice at all Feb 03 02:13:55 danijoo, i can do a google search with voice, it's just really shit Feb 03 02:14:12 id use a real phone for that Feb 03 02:19:29 well, alright Feb 03 02:19:31 * hdon plugs in real phone Feb 03 02:32:01 CedricBeust there for a package by layer vs feature question ? Feb 03 02:51:48 figured it out Feb 03 02:54:10 i like how android studio is using a GB of memory :\ Feb 03 02:58:55 hdon once gradle gets warmed up, 2G for both ;D **** ENDING LOGGING AT Wed Feb 03 02:59:58 2016