**** BEGIN LOGGING AT Thu Mar 17 02:59:58 2016 Mar 17 03:13:57 that works and does exactly what you wrote Mar 17 03:18:15 your intention was to create a null pointer exception, it did Mar 17 03:20:09 hard to argue with that response Mar 17 03:22:01 comparing refactoring some java app and ruby app Mar 17 03:22:11 if you dont have good test suite - good luck Mar 17 03:22:12 refactoring ruby is pretty much impossible Mar 17 03:23:21 try it with no tests at all Mar 17 03:23:33 i'm suprised this app even works Mar 17 03:25:51 refactoring java without tests isn't terrible Mar 17 03:25:57 W (31537) art : Class com.hanhuy.android.irc.ScalaWorkaround failed lock verification and will run slower. Mar 17 03:25:58 hmm Mar 17 03:26:11 art still prints out that error even though it's java Mar 17 03:26:14 that's very interesting Mar 17 03:26:20 must be an art bug in N preview Mar 17 04:05:46 whats the best method to go to a website in my android app? (to view src of a page ) Mar 17 04:07:02 HttpURLConnection ? Mar 17 04:17:13 good morning! Mar 17 05:51:50 how in bloody hell does one d/l the android sqlite bindings from https://www.sqlite.org/android/tree?ci=trunk Mar 17 05:52:04 apparently they use fossil SCM Mar 17 05:57:00 hmm, is dx --no-optimize ever used? Mar 17 05:57:17 I seem to have made amistake in my assumptions and always use --no-optimize when in debug builds Mar 17 06:00:01 can anyone teach me how to modify default odex stock android system file to disable increasing ringtone? Mar 17 06:05:25 no Mar 17 06:48:41 how can I list all parameters from call when using okhttp3 ? Mar 17 06:54:32 hmm Mar 17 06:56:24 anyone here know of any android product dev shops in sydney? Mar 17 06:58:34 no Mar 17 07:07:04 Hey guys I was wondering if you could clear a few things up for me. I want to implement an endless scrolling list of cardviews. My friend told me to use recyclerview to do it. Online i am seeing people post implementations for "infinite recyclerview", is recyclerview not capable of doing infinite scrolling by default? Mar 17 07:07:55 Can someone tell me what MediaStore.Images.Media.BUCKET_DISPLAY_NAME is? Mar 17 07:08:11 Akayllin, infinite is handled by your adaptee Mar 17 07:08:12 r Mar 17 07:08:38 can views ever have their sizes changed when the orientation is locked or is it safe to assume it won't happen in normal circumstances? (wondering if I should properly handle size changes for my OpenGL game) Mar 17 07:11:11 if you wont change then it should be safe Mar 17 07:13:15 hi! Mar 17 07:14:42 like nothing changed... Mar 17 07:17:57 okay thanks :) Mar 17 07:19:27 I am using sources { main { jni { source { srcDir to specify the path to my .c sources Mar 17 07:20:27 the problem is that my header files (that are next to the source files, in the folders specified using the method above) are not found by AS2.0, the header files are red :| Mar 17 07:54:27 so my app spontaeously has this as a compile error Error:Execution failed for task ':app:transformClassesWithDexForDebug'. Mar 17 07:54:27 can someone help me on how to specify the include paths with the experimental plugin? Mar 17 07:54:29 google doesn't help Mar 17 07:54:30 anyone ? Mar 17 07:55:03 anyone ? Mar 17 07:55:11 its morning Mar 17 07:55:28 wake up people! time is $$$ :D Mar 17 07:55:47 ashiren: help ? Mar 17 07:56:03 goooood morning Mar 17 07:56:08 muthu: help ? Mar 17 07:56:11 vietnam! Mar 17 07:56:19 sweet.. what do you want Mar 17 07:56:22 so my app spontaeously has this as a compile error Error:Execution failed for task ':app:transformClassesWithDexForDebug'. Mar 17 07:56:25 *halp! Mar 17 07:56:26 google doesn't help Mar 17 07:56:35 time != $$$, time > $$$ Mar 17 07:56:42 lol Mar 17 07:56:50 oh.. your app is multidex Mar 17 07:56:54 *google doesn't help because google made android Mar 17 07:56:59 haha Mar 17 07:57:16 androids are incognito to google Mar 17 07:57:21 muthu: can u help ? Mar 17 07:57:29 * sweetgum crosses fingers Mar 17 07:57:40 sweet..have you enabled multidex? Mar 17 07:57:45 yes Mar 17 07:58:00 ok.. are you minifying? Mar 17 07:58:03 progaurd Mar 17 07:58:11 minifying? Mar 17 07:58:13 is false Mar 17 07:58:56 i just changed it to true and still same compile error Mar 17 08:00:19 any ideas for the red header files in AS2.0? (with experimental plugin) Mar 17 08:01:32 sweetgum: is it randomly happening? heave you tried to clean project and/or restart android studio Mar 17 08:01:38 ya Mar 17 08:01:42 it did randomly happen Mar 17 08:02:05 a little after i tried adding jaxb Mar 17 08:02:21 clean project.. good idea Mar 17 08:02:28 i treid that already Mar 17 08:04:18 main extends multidex? Mar 17 08:05:43 no Mar 17 08:05:54 extendsAppCompatActivity Mar 17 08:06:24 let main application extend multidex Mar 17 08:06:46 public class MainApplication extends MultiDexApplication { Mar 17 08:07:59 this introduces error to my onCreate functino Mar 17 08:08:25 super.oncreate Mar 17 08:08:37 super.onCreate(savedInstanceState); here for example Mar 17 08:08:54 savedInstanceState is the error Mar 17 08:09:04 do this Mar 17 08:09:19 @Override Mar 17 08:09:19 protected void attachBaseContext(Context base) { Mar 17 08:09:19 / if multidex super will take care of multidex install Mar 17 08:09:19 super.attachBaseContext(base); Mar 17 08:09:29 in main application Mar 17 08:09:32 application's onCreate doesnt have saveInstanceState Mar 17 08:10:33 extend multidex.. and override attachbasecontext Mar 17 08:11:34 i still get an error in oncreate under savedintancestate Mar 17 08:11:47 ok.. then its not a multidex error anymore Mar 17 08:11:58 er, the error only appears as i extend to multidex Mar 17 08:12:32 1. multidex is true Mar 17 08:12:40 2. declare compile dependency Mar 17 08:12:56 3. extend main application and override attachbasecontext Mar 17 08:13:01 have you done the 3 steps Mar 17 08:13:55 yes Mar 17 08:14:21 that;s it Mar 17 08:15:17 muthu: ? Mar 17 08:15:43 3 steps for multi dex Mar 17 08:16:18 additionaly you can minify Mar 17 08:16:28 so as to come under the 64k limit Mar 17 08:16:38 why did this error randomly happen Mar 17 08:18:00 what's the error Mar 17 08:20:50 does anyone know if the orientation vector of the phone can be computed without the magnetometer? Mar 17 08:29:25 is it normal to get "may cause npe" warnings when using findViewById? I'm only getting it when the variable is local, if I convert it to a field the warning disappears Mar 17 08:29:54 I like how facebook sdk forces min api 15 and compile to 23 Mar 17 08:30:06 Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/JAXBContext; <- does this mean i dont have a JAXBContext dependency ? Mar 17 08:30:15 i mean when I look at the findViewById it makes sense because it's @Nullable, I just feel like I've never seen this warning before Mar 17 08:30:37 sweetgum: or proguard removed it Mar 17 08:32:11 anyone else know if that's normal? To get warnings about null pointers on views using findViewById() then doing like a .setOnClickListener(...) Mar 17 08:36:41 gordon_: http://pastebin.com/7hLabjG5 can you help ?? ill show u the src here http://pastebin.com/wmUhGwht Mar 17 08:38:51 http://pastebin.com/7hLabjG5 can you help ?? ill show u the src here http://pastebin.com/wmUhGwht Mar 17 08:40:11 not now Mar 17 08:42:47 anyone hee? Mar 17 08:42:49 here*? Mar 17 08:43:01 everybody's sleepin Mar 17 08:43:24 gdrc: can u help b4 u go to bed Mar 17 08:43:39 you're allowed to ask Mar 17 08:44:21 http://pastebin.com/7hLabjG5 can you help ?? ill show u the src here http://pastebin.com/wmUhGwht ... the code that crashes it is "sr = eo.search(esr)" line 92 Mar 17 08:44:23 sweetgum: are you using proguard ? Mar 17 08:44:27 gordon_ yes Mar 17 08:44:38 does it crash without proguard ? Mar 17 08:44:39 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro Mar 17 08:45:40 gordon_: yes Mar 17 08:46:01 gdrc: did u see my question Mar 17 08:46:10 so you need to update proguard file Mar 17 08:46:17 correct Mar 17 08:46:22 show your proguard Mar 17 08:47:02 proguard-rules.pro ? Mar 17 08:47:46 does anyone know if the orientation vector of the phone can be computed without the magnetometer? Mar 17 08:48:29 gordon_: did u want to see proguard-rules.pro Mar 17 08:48:52 yeah Mar 17 08:49:05 and the .txt? Mar 17 08:49:38 heres the .pro Mar 17 08:49:38 http://pastebin.com/9UGVj88i Mar 17 08:50:26 https://justpaste.it/sc33 here is the .txt Mar 17 08:51:51 what should i change Mar 17 08:52:04 did you google ? Mar 17 08:52:28 what libraries do you use Mar 17 08:52:56 compile files('libs/eventfulapi.jar') + appcompat and design Mar 17 08:53:11 gordon_ cant find it on google Mar 17 08:53:12 what the heck is evetfulapi... Mar 17 08:53:22 its what im using for this app Mar 17 08:53:29 a library for a web-service-api Mar 17 08:53:42 https://stackoverflow.com/questions/15809882/java-lang-noclassdeffounderrorjavax-xml-bind-jaxbcontext Mar 17 08:55:23 im gonan try adding the jaxb library Mar 17 08:57:32 didnt work Mar 17 09:00:25 so you need to google for proguard and your problem ;) Mar 17 09:00:38 -keep classes is your friend Mar 17 09:01:09 good ol' keep classes *.* Mar 17 09:01:14 :D Mar 17 09:02:00 http://pastebin.com/Gf3rmjab why does in return null ? Mar 17 09:04:02 I tried to extract telecom.apk from a custom rom that has increasing ringtone disabled, to a stock odex rom.. I replaced the stock telecom.apk and deleted the arn\odex folder and set the permission to d-r-r but the increasing ringtone is still there. Anyone have any idea what I might have done wrong? Mar 17 09:04:46 applegal: #android-root Mar 17 09:05:10 Ashiren: any idea? Mar 17 09:05:16 should i switch to HttpGet Mar 17 09:06:04 dunno Mar 17 09:06:10 can anyone recommend a reliable tool I can decompile a odex apk and edit the smali and recompile back. Mar 17 09:07:54 for those who may not have had the pleasure, applegal is apparently fundamentally incapable of understanding a channel topic, or where she(?) is not appropriate Mar 17 09:09:19 I believe compile tool is dev related question isnt it Mar 17 09:09:55 I am back with this. :( can the experimental plugin specify the path to the include directories? (to be visible inside IDE, at compile it works with srcDir"" in source{}) Mar 17 09:13:11 Leeds: mayeb u can help me? Mar 17 09:13:34 sweetgum: I doubt it Mar 17 09:13:55 http://pastebin.com/Gf3rmjab why does in return null ? Mar 17 09:15:18 Leeds: you there? Mar 17 09:20:49 Hello Mar 17 09:20:52 im trying this: http://developer.android.com/guide/webapps/webview.html#UsingJavaScript Mar 17 09:21:02 but I get "error cannot find symbol method setJavascriptEnabled(boolean) Mar 17 09:21:14 on WebSettings webSettings = myWebView.getSettings(); line Mar 17 09:21:17 any ideas why? :O Mar 17 09:21:48 Nevermind. Mar 17 09:22:16 big S :P Mar 17 09:23:24 [solved] Mar 17 09:23:31 glad to be helpful Mar 17 09:25:04 Ashiren: since you're so helpful, care to help a brother out? Mar 17 09:25:15 http://stackoverflow.com/q/36053824/1056359 Mar 17 09:26:58 not that helpful : Mar 17 09:27:55 sweet... do you have the permissions? Mar 17 09:28:50 thepoosh: try to wrap the recyclerview in framelayout Mar 17 09:29:18 thepoosh: check hierarchy viewer Mar 17 09:29:27 gordon_: did do Mar 17 09:29:31 and it wraps the content Mar 17 09:29:39 attached screenshot is from the viewer Mar 17 09:29:58 where ? Mar 17 09:30:25 in the question link Mar 17 09:30:38 I think it might be the LayoutManager Mar 17 09:30:43 but seems strange to me Mar 17 09:31:27 I just fucking found it Mar 17 09:31:31 god damm it! Mar 17 09:31:50 Toolbar.LayoutParams params = (Toolbar.LayoutParams) mTopBarLV.getLayoutParams(); Mar 17 09:31:50 params.width = Toolbar.LayoutParams.WRAP_CONTENT; Mar 17 09:31:50 mTopBarLV.setLayoutParams(params); Mar 17 09:31:56 I hate the world right now Mar 17 09:32:14 why would you do that Mar 17 09:32:18 and tell no one Mar 17 09:32:24 lolz Mar 17 09:32:33 I didn't do it Mar 17 09:32:38 thepoosh: I was thinking more about hierarchy not the screenshot how it looks, but fine Mar 17 09:33:03 /** we initiating the list view with size of WRAP_CONTENT so it will take the entire width Mar 17 09:33:03 * so on display we can check if the if we need the entire space or should center it Mar 17 09:33:03 **/ Mar 17 09:33:11 I HATE PEOPLE!!! Mar 17 09:34:00 I can't believe this was so simple Mar 17 09:34:12 glad to be helpful Mar 17 09:34:13 haha Mar 17 09:34:29 most of the time.. its the small things Mar 17 09:34:30 Ashiren: you're on fire today Mar 17 09:39:10 http://pastebin.com/Gf3rmjab why does in return null ? Mar 17 09:39:55 sweetgum: is e null? Mar 17 09:40:07 and why are you not using a networking library? Mar 17 09:42:10 thepoosh: im using a library... this is my error on my MainActivityhttp://pastebin.com/bpu2qnYm i thoguht it had something to do with the way the webpage was accessed Mar 17 09:43:27 thepoosh: upon debugging, when i look at e it says cannot find local variable e Mar 17 09:43:55 thepoosh: although, if i continue stepping , httpurlconnection has the right url Mar 17 09:44:51 thepoosh: help ? Mar 17 09:45:50 is the permissions declared? Mar 17 09:46:06 ya Mar 17 09:47:21 anyone else that can help besides thepoosh pls do Mar 17 09:47:29 did we not see this yesterday Mar 17 09:47:36 that main thread was doing networks Mar 17 09:47:43 muthu: ihavent fixed it yet Mar 17 09:47:48 JAXBContext is not a thing Mar 17 09:47:54 have you move this to asynctask Mar 17 09:47:58 muthu: yes Mar 17 09:48:06 sweetgum: ^^ Mar 17 09:48:13 thepoosh: do i need to add a jaxb ilbrary? Mar 17 09:48:25 only if you want to use it Mar 17 09:48:30 thepoosh: i tried that and i get a multi dex crash.. Mar 17 09:48:42 thepoosh: what do you mean "JAXBContext is not a thing" Mar 17 09:48:56 gimme the url.. that you are trying to connect Mar 17 09:48:56 have you read you logcat? Mar 17 09:48:59 thepoosh: is that the problem? Mar 17 09:49:06 i'll try from browser Mar 17 09:49:26 Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/JAXBContext; Mar 17 09:49:31 from your logcat Mar 17 09:49:47 http://api.eventful.com/rest/events/search/events/search?change_multi_day_start=0&password=cfusion&within=0&units=mi&date=future&page_number=1&user=flashtone&app_key=kxXBmfTQGP3LgfVr&location=San+Diego&page_size=10&sort_direction=ascending&sort_order=relevance&keywords=music Mar 17 09:49:57 XML Mar 17 09:49:59 yaak Mar 17 09:50:06 thepoosh: how do i fix this Mar 17 09:50:19 you include the class in your build path Mar 17 09:50:30 and solve the multidex with the normal way of doing that Mar 17 09:50:39 thepoosh: help me with the multidex? Mar 17 09:50:54 http://developer.android.com/tools/building/multidex.html Mar 17 09:51:33 hithere Mar 17 09:52:51 sweet.. use the android xml parsers Mar 17 09:53:21 you are using something which is not part of android sdk Mar 17 09:53:39 include the dependencies if you need them Mar 17 09:54:39 'javax.xml.bind:jaxb-api:2.2.4' Mar 17 09:54:49 is someone using in project https://github.com/chrisjenx/Calligraphy or something else to use custom font throughout whole app? Mar 17 09:59:49 android 2.0 beta 7 seems to be broken... Mar 17 10:01:19 gordon_, in what way? I was just about clicking update. Mar 17 10:01:45 you now *need* to use gradle plugin 2.0-beta7 Mar 17 10:01:53 or it wont compile anything Mar 17 10:02:06 wasnt that also the case with other 2.0 ? Mar 17 10:02:15 and if you 'run' project it sometimes fail about instant run Mar 17 10:02:16 Ashiren: now I need to center the data of the recyclerview Mar 17 10:02:29 meaning I want it to behave as gravity="center" Mar 17 10:02:43 instead of starting from the start or end of the layout Mar 17 10:02:58 then wrap_content it Mar 17 10:03:00 [solved] Mar 17 10:03:24 hmmmm Mar 17 10:03:28 hmmmmmm Mar 17 10:03:28 can someone help me enable multidex Mar 17 10:03:39 sweetgum: have you read the link I sent? Mar 17 10:03:41 sweet.. only 3 steps as i said Mar 17 10:03:43 yes i cant figure it out Mar 17 10:03:50 gradle 2.12 out Mar 17 10:03:52 if at first you don;t succeed Mar 17 10:03:52 muthu: i tried those steps they didnt work Mar 17 10:04:02 thepoosh: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. Mar 17 10:04:18 sweetgum: did you add the dependency for multidex? Mar 17 10:04:22 what's the minsdk? Mar 17 10:04:33 thepoosh: the xml lib? Mar 17 10:04:39 jaxb? Mar 17 10:04:41 did you set in the defaultConfiguration multidex=true? Mar 17 10:04:47 sweetgum: no! multidex Mar 17 10:05:05 whats the gralde name of multidex Mar 17 10:05:07 compile 'com.android.support:multidex:1.0.0' Mar 17 10:05:16 you should read the fucking link Mar 17 10:05:24 instead of what you are doing Mar 17 10:05:40 nm Mar 17 10:05:41 thepoosh: you can just say RTFM Mar 17 10:05:42 lol Mar 17 10:05:55 gdrc: I added the link here Mar 17 10:06:01 which has all the info Mar 17 10:06:36 sweet is confused with too many things.. Mar 17 10:06:45 thepoosh: so i added multidex dependcy and also enabled multidex, same error Mar 17 10:06:58 follow the manual Mar 17 10:07:27 http://developer.android.com/tools/building/multidex.html Mar 17 10:07:29 dammit Mar 17 10:09:36 do it one by one.. sweet Mar 17 10:09:41 first solve the jaxb Mar 17 10:09:45 then come to multidex Mar 17 10:10:05 i followed the the instructions thepoosh, still no success Mar 17 10:10:16 no you haven't Mar 17 10:10:25 because it's dead simple Mar 17 10:10:32 add your build.gradle and manifest Mar 17 10:10:41 for now.. remove the http part Mar 17 10:10:45 try only multidex Mar 17 10:10:58 compile 'com.android.support:multidex:1.0.0' <- i added to radle Mar 17 10:11:05 android:name="android.support.multidex.MultiDexApplication" Mar 17 10:11:07 i added to manifest Mar 17 10:11:13 On which software to sketch out project plan for android project? Mar 17 10:11:52 android:name not required Mar 17 10:12:23 muthu: adding the jaxb library casues the multidex issue, if i solve the multidex issue the jaxb will work Mar 17 10:12:47 ok.. so it works without jaxb Mar 17 10:12:48 good Mar 17 10:12:57 now add jaxb dependency Mar 17 10:13:25 then in progaurd.. do a keep Mar 17 10:13:45 what is a keep Mar 17 10:15:30 -keep class javax.xml.bind.** Mar 17 10:16:10 http://developer.android.com/tools/help/proguard.html Mar 17 10:16:16 in the txt file or .pro file Mar 17 10:16:20 You can fix errors when ProGuard strips away your code by adding a -keep line in the ProGuard configuration file. For example: Mar 17 10:16:20 -keep public class Mar 17 10:16:44 wait.. youtube api still requires me to add a lib as jar file? theres no repo?!? Mar 17 10:16:44 progaurd-rules.pro Mar 17 10:16:58 muthu: here we go. compiling wish me luck Mar 17 10:17:05 woah Mar 17 10:17:09 good luck Mar 17 10:17:12 finally!! Mar 17 10:17:23 lol Mar 17 10:17:28 haha Mar 17 10:17:29 whole discussion should be like Mar 17 10:17:50 keep class in proguard, and add multidex (link( Mar 17 10:17:52 end Mar 17 10:18:05 gr, doesnt work still Mar 17 10:18:24 same error msg Mar 17 10:18:53 set minsdk to 23 Mar 17 10:19:13 oO Mar 17 10:19:37 still doesnt work Mar 17 10:20:50 disable multidex and try Mar 17 10:21:07 from the defaultconfig? Mar 17 10:21:10 you are doing 3 things here.. Mar 17 10:21:15 1. progaurd for minifying Mar 17 10:21:23 2. multidex for the 64k limit Mar 17 10:21:31 3. jaxb dependency Mar 17 10:21:48 can you disable all 3 above and compile Mar 17 10:21:54 then enable one by one Mar 17 10:22:11 ok Mar 17 10:22:19 first i disable multidex and proguard Mar 17 10:22:24 and only jaxb depedency Mar 17 10:22:25 lets; start with a compiling app Mar 17 10:22:39 all 3 of these giev me the same error Mar 17 10:22:41 muthu: how much do you take for coaching ? Mar 17 10:22:45 haha Mar 17 10:22:59 lol muthu: thank you so much for helping me wtih this Mar 17 10:23:05 how can you say no to sweet :) Mar 17 10:23:16 sweet.. but you need to take time off and read the docs Mar 17 10:23:23 this mad rush will not help Mar 17 10:23:42 ok ok Mar 17 10:24:01 don't pile everything in a single compile Mar 17 10:24:04 thing is, ive read the docs Mar 17 10:24:07 =p Mar 17 10:24:08 add.. compile.. get it working.. add Mar 17 10:24:16 now I got it - I should have changed my name... Mar 17 10:24:24 haha Mar 17 10:25:21 muthu: any other ideas b4 i go to bed Mar 17 10:26:17 tackle multidex separate Mar 17 10:26:26 have a main application extending multi dex Mar 17 10:26:35 when you minify.. may be you will not need multidex Mar 17 10:26:54 if i dsiable the jaxb library Mar 17 10:26:58 it comppiles and runs just fine.. Mar 17 10:27:04 wow... good Mar 17 10:27:12 then keep.. in progaurd Mar 17 10:33:00 bingo Mar 17 10:33:01 http://www.docx4java.org/blog/2012/05/jaxb-can-be-made-to-run-on-android/ Mar 17 10:33:39 applause :) Mar 17 10:33:54 Bit of weeping. By my personal observation - when I compare android-dev to other channels. Here - around 95%-97% percent of questions are being ignored (my case) or at least being commented with no clue and usually mean way (when in luck...). On every other channel (css, debian, python, inkscape, git,...) I have ever asked - 100% of questions are being spotted and someone at least react in some legitimate way. Asking my self - why? Mar 17 10:36:03 the android devs are not here to answer Mar 17 10:36:14 they used to be here before Mar 17 10:36:28 romain guy Mar 17 10:36:30 #1) we are here just for fun too. We are no official supporters and only answer if we feel like Mar 17 10:36:59 #2) asking if anyone here uses library X wont get you much answers because you are not discribing a problem that is of interest to anyone. ask your real question Mar 17 10:38:05 bolo i am not using calligraphy Mar 17 10:38:08 ¨Im trying to do X with calligraphy but it doesnt work and gave me error Y¨ would possibly get an answer from me because im using calligraphy ;) Mar 17 10:41:00 muthu, i do not thing that it must be only about devs - but people using android to create apps - community Mar 17 10:42:44 there are these questions that annoy everyone thats in here often. and asking if anyone has experience with (library|class) without telling your problem is one of them ;) Mar 17 10:44:01 yes A guilty conscience is a self-accuser Mar 17 10:45:14 guilty of what? Mar 17 10:47:20 when I talk about mean people here, I was exactly meaning you. And as it happened you were in first row to paste some obscure articles with annex - haha I am using what you were asking about, but I do not care because it was not lined accordingly by rule number #2 Mar 17 10:47:49 accordingly to Mar 17 10:48:03 what means annex in this context? im sorry im not native english :/ Mar 17 10:48:50 also dont mean to offend anyone. just tried to give you the reasoning of a lot of people. hm Mar 17 10:50:35 anyway - just saying that this is caused by anything else than people. Probably there is hidden something else than being 100% accurate accordingly to some rules Mar 17 10:51:44 of course danijoo I know that you are voice of many people here... Mar 17 10:52:21 hmpf. okay. lets not discuss this on a professional level then -_- have a nice day Mar 17 10:55:52 anyone used any of the new jfx gluon stuff? seems very.... unpolished :-/ Mar 17 10:56:39 bolovanos: I instantly got an answer on all my questions Mar 17 10:56:42 bolovanos: =) Mar 17 10:57:37 yes - if you are using mean and professional as synonym than there is no space for discussion. I thing that it is better not to speak at all if you have like nothing helpful to contribute Mar 17 10:57:55 Xatenev, good for you :) Mar 17 11:08:54 hi Mar 17 11:09:37 guys I'm trying to make a share button like in google's chrome app Mar 17 11:09:59 can someone point me in the right direction ? Mar 17 11:10:22 jaqbk, something like this http://developer.android.com/training/sharing/shareaction.html ? Mar 17 11:10:24 jaqbk: http://developer.android.com/training/sharing/shareaction.html Mar 17 11:10:39 lold Mar 17 11:10:41 Xatenev, ;) Mar 17 11:11:42 hehe Im not sure if that's it because chrome has a share button in overflow menu Mar 17 11:12:18 but I'll try it without actionview Mar 17 11:13:07 jaqbk, ad overflow - it is based on Menu integrated into ActionBar http://developer.android.com/guide/topics/ui/menus.html Mar 17 11:13:33 the chrome app is just fireing a share intent on click Mar 17 11:13:38 iirc Mar 17 11:14:35 nope just checkd Mar 17 11:14:36 jaqbk, if you need it in overflow - use app:showAsAction="never" in your menu xml definition Mar 17 11:14:38 nope just checked Mar 17 11:15:08 bolovanos Mar 17 11:15:08 bolovanos, I just checked that Mar 17 11:15:22 that's not it Mar 17 11:16:35 jaqbk, i think its just Intent.ACTION_SEND that gets fired on click immediatly Mar 17 11:16:42 with the share url as extra Mar 17 11:16:54 I think is a share intent like danijoo said but I can't figure the right parameters.... Mar 17 11:17:01 yeah Mar 17 11:17:07 but not really Mar 17 11:17:15 I have tried Mar 17 11:17:23 and Im gettign different results Mar 17 11:17:25 try Intent.EXTRA_TEXT and as type ¨text/plain¨ Mar 17 11:17:28 yes Mar 17 11:17:30 that should give you a nice choser dialog Mar 17 11:17:43 it does give me that Mar 17 11:17:51 but different to chrome Mar 17 11:18:13 you mean different app suggestions? Mar 17 11:18:28 yes that too Mar 17 11:19:04 but on s7 it doesnt have problems with remembering "only once" etc Mar 17 11:20:04 speaking of diffrent apps chrome share shows e.g. shortcuts to your recent whatsapp contacts Mar 17 11:20:25 how did they do that ? Mar 17 11:22:31 i think thats some feature of android 5 (or 6?). dont know a good keyword to google though :/ Mar 17 11:22:58 hmmm Mar 17 11:24:14 maybe I need to use higher targetSdkVersion Mar 17 11:24:42 I'll try that Mar 17 11:26:28 jaqbk, there you go: its called ¨Direct share¨ and was added in 6.0 Mar 17 11:26:28 http://developer.android.com/about/versions/marshmallow/android-6.0.html#direct-share Mar 17 11:28:39 danijoo, thanks it looks similar, I'll implement it and let you know if this is it. Mar 17 11:33:15 I need to display my phone screen alongside my android studio on my system screen. In built screen recorder only records and dont show a live stream Mar 17 11:42:21 hi Mar 17 11:42:50 how can I set a MACRO to the ndk compiler when using the experimental plugin? (0.6.0-beta6 + Android Studio 2.0) Mar 17 11:45:40 *when I say a MACRO I actually mean a DEFINE that will be detected in source code, like: #if defined(__ANDROID__) Mar 17 11:54:28 how can I set a MACRO to the ndk compiler when using the experimental plugin? (0.6.0-beta6 + Android Studio 2.0) Mar 17 11:54:30 *when I say a MACRO I actually mean a DEFINE that will be detected in source code, like: #if defined(__ANDROID__) Mar 17 12:35:23 Hello, are there any good book or guides to start learning android app development using Android Studio? I have prior experiences of programming in Java and OOP concepts. Mar 17 12:45:36 whitesn: http://developer.android.com/develop/index.html Mar 17 12:49:30 thanks naise1 :) I'll try this one, some resources I found just stopped after "Hello World" or they had older version of Android Studio and have different project structure. Mar 17 12:51:05 danijoo, I figured it out Mar 17 12:52:48 Im wanting to design an app taht pulls info from http://www.whereismypizero.com/ and pushes notifications when in stock. and the only way so far i've thought is an scraper type thing Mar 17 12:55:19 ask them for an api Mar 17 12:55:27 Solution was to start intent with custom chooser like Intent.createChooser(intent, "Share via") Mar 17 12:55:53 danijoo, well he pulls info from stores like pimoroni but idk if he scrapes them or api's to them heh Mar 17 12:56:38 who is he? Mar 17 12:57:06 https://twitter.com/arthurqvk is the guy who made that wheresmypizero site danijoo Mar 17 12:58:07 if theres no api, you can only scrape Mar 17 12:58:13 but ask if you are allowed to first Mar 17 12:59:24 hello everyone, I've got a stupid question and I'm afraid to ask it on stack overflow Mar 17 12:59:28 well i was just gunna scrape from the main sources instead of him. danijoo Mar 17 12:59:48 I'm extending a RelativeLayout to make a squared version Mar 17 13:00:06 but im trying to figure out how does he make it know when its in stock unless he uses shopify's api danijoo Mar 17 13:00:14 but it does not draw its sub views that I added in XML Mar 17 13:01:14 you can see some code here https://gist.github.com/jrmgx/ed4faa152f4a2196f884 Mar 17 13:01:45 maybe he just scrapes hourly of something Mar 17 13:01:57 or hits the api every time Mar 17 13:02:15 why dont you ask him :) Mar 17 13:03:20 danijoo, indeed i will :) Mar 17 13:05:00 I want to move some code from the UI-thread to background in onCreate. The problem then is that onResume needs results from this AsyncTask. How can I make sure that the method in onResume waits until the AsyncTask completes? Mar 17 13:09:38 u cant Mar 17 13:09:52 that would miss a point of using background threads Mar 17 13:14:29 Hi all, somebody told me that fragment addtobackstack can produce annoying crashes when restoring an app. He said that creating new Activities and not using addToBackStack is the solution. I don't remember the details anymore but is here somebody who can give some info about this? Mar 17 13:16:44 hi... what advantages does setting the FLAG_SECURE on a window? Is it essential for a banking type app? Mar 17 13:22:14 FrancescoV, that sounds wrong to me... Mar 17 13:22:28 better fix your fragments to avoid `annoying crashes` Mar 17 13:23:59 problem is danijoo i dont see any publically accessiable api via shopify which is what those stores use Mar 17 13:24:05 well some of them Mar 17 13:24:41 danijoo: ok. It wasn't clear to me but what if: your stack of fragments in ActivityA is like FragmentA , FragmentB, FragmentC. The app goes to the background and gets restored when opening again. What will be the order off recreation of ActivityA and the fragments? Mar 17 13:29:25 no recreation at all, the just get reattached from the fragment manager Mar 17 13:33:39 danijoo: sorry, I wasn't clear, with restored I ment 'clear device memory and open app again' Mar 17 13:33:51 Hi. How to intercept touch event in MapView? Mar 17 13:34:13 FrancescoV, im not sure. if they are on the backstack the backstack will get restored Mar 17 13:35:02 danijoo: ok thanks anyway! Mar 17 13:59:24 guys, why is an image file size get larger after crop process ? Mar 17 14:00:01 well danijoo i got further i've partially found the api to the whereismypizero lol Mar 17 14:01:37 hi, can someone describe me please the fuction: BluetoothServerSocket listenUsingRfcommWithServiceRecord , can i get the connection to a gamepad with this funtion? Mar 17 14:12:11 Hi, I have got an Native Crash in /system/lib/libc.so in my android application. Can someone help me, finding the problem? Mar 17 14:19:15 Alright well i've got what i need but i need to submit a request 5 times for 5urls Mar 17 14:21:10 can i stick 5 different http request in its own file for each ? Mar 17 14:36:37 hypermist, you can do the asynchron all five at the same time yes Mar 17 14:36:47 you should look into retrofit it its rest apis Mar 17 14:37:24 idk what type of api it is lol Mar 17 14:37:54 all i know is i can access it via /api/public/stock/pimoroni heh Mar 17 14:38:07 looks restful Mar 17 14:38:20 you should learn about apis before using them :) Mar 17 14:38:41 I only needed that just to pull certain. stuff and then make it do a push notification danijoo Mar 17 14:38:42 heh Mar 17 14:41:57 OkHttp is a good library for network requests Mar 17 14:44:01 as long as it can pull the info i want not all the info Mar 17 14:44:05 just certain pieces hehj Mar 17 14:44:35 is it possible to have apk building on another machine, so that i compile on server, and get returned apk within seconds, so we don't have to wait 1 minute for build to finish on larger projects? Mar 17 14:46:17 mbarisa, you can build on a remote server via CI like jenkins on every push. but theres nothing like remoting building in AS that returns the apk automatically Mar 17 14:48:41 hypermist, really like your app idea btw :) Mar 17 14:49:17 danijoo, i've never coded in my life, but im just annoyed with having to refresh a page to get if its instock or not so why not setup a mobile app to do it for me :D Mar 17 14:49:29 well i've coded Mar 17 14:49:31 but not an app :D Mar 17 14:49:56 mbarisa, use instant run or something similar, problem solved Mar 17 14:50:07 As I’ve tried now searching for 2 days, and I still can’t find any of the "many" libs that g00s said exist, I’ll ask again: Mar 17 14:50:47 Does anyone here know a way to simply provide a timepicker preference, extending AppCompat’s support Preference? Mar 17 14:50:47 Hello Mar 17 14:50:57 Attempt to invoke virtual method 'android.webkit.WebSettings android.webkit.WebView.getSettings()' on a null object reference Mar 17 14:51:02 Everything I can find is either (a) incompatible with AppCompat, or (b) just doesn’t work Mar 17 14:51:29 http://pastebin.com/TqPpQHS8 Mar 17 14:51:45 I dont know of one but shouldnt be too hard to combine a timepickerdialog (from many of the libs out there :p ) with a Preference Mar 17 14:51:45 Obviously its telling me myWebView is undefnied Mar 17 14:51:49 Any idea why? Mar 17 14:53:07 I used that: http://developer.android.com/guide/webapps/webview.html Mar 17 14:53:12 danijoo, how would i make it so the app calls. every 30mins Mar 17 14:53:50 danijoo: well, it is quite hard. You don’t have access to a fragment manager (so no dialogfragments) and you can’t create views. Mar 17 14:53:55 and make it so it does it automatically Mar 17 14:53:55 Xatenev: what is the exact error? Mar 17 14:53:59 danijoo: the only thing you can do is inflate a layout Mar 17 14:54:00 Xatenev, your WebView object is null Mar 17 14:54:02 hypermist, with a service Mar 17 14:54:08 so, it’s not easy to do so from within that. Mar 17 14:54:22 FrancescoV: Obviously yea, but whjy? I did it just like the docs Mar 17 14:54:25 hypermist: You can’t. Doze prevents that from Marshmallow on. Mar 17 14:54:28 naise1: Attempt to invoke virtual method 'android.webkit.WebSettings android.webkit.WebView.getSettings()' on a null object reference Mar 17 14:54:35 Thats what I get on compiling. Mar 17 14:54:41 justJanne, I never looked into preferences in particular but how do other dialog preferences work then? Mar 17 14:54:58 The doc juts does findViewById(R.id.webview) exactly like I do. Mar 17 14:55:12 Xatenev: Thanks. Do you have webview setup correctly in your activity_main.xml layout? Mar 17 14:55:23 justJanne, so i can't make the app auto call ? Mar 17 14:55:33 did you inflate your layout correctly? Mar 17 14:55:33 naise1: Ive copied it from the example 1:1 Mar 17 14:55:35 danijoo: well, most other dialogpreferences just don’t work. I’ll probably just use a different solution (from my fragment) Mar 17 14:55:38 FrancescoV: Probably not? Mar 17 14:55:51 hypermist: you can if you want your app to only work before Marshmallow Mar 17 14:55:54 FrancescoV: not quite sure what you mean. Mar 17 14:56:02 or if you make sure your phone’s screen is on 24/7 Mar 17 14:56:05 Well. i need it to work with marshmellow heh Mar 17 14:56:15 pfn: but that is for 2.0, that is not yet out of Beta, does anyone use it in production Mar 17 14:56:16 do you use an Activity? Mar 17 14:56:40 FrancescoV: yea Mar 17 14:56:43 justJanne, id just make that part of my preferenceactivity/fragment and react to a preference click and handle the time setting Mar 17 14:56:44 mbarisa, instant run in Android studio isn't the only option of its kind Mar 17 14:56:44 setContentView(R.layout.activity_XXX); Mar 17 14:56:46 Basically I copied all the code from http://developer.android.com/guide/webapps/webview.html#AddingWebView Mar 17 14:56:59 FrancescoV: inside my onCreate() ? Mar 17 14:56:59 danijoo: yeah, that’s what I’ll do, too. Mar 17 14:57:01 cause all it needs to do is just hit the api every 10-30mins justJanne and then do a push notification to say if its in stock or not Mar 17 14:57:03 its pretty ugly that way but you know.. android ^^ Mar 17 14:57:05 after I get rid of these proguard errors. Mar 17 14:57:06 yes Mar 17 14:57:10 hypermist: sadly, impossible. Mar 17 14:57:25 after calling super.onCreate(savedInstanceState); Mar 17 14:57:29 I try it now Mar 17 14:57:30 Google says: "Just pay for Google Cloud Messaging and send notifications through that! Mar 17 14:57:34 Emulator starting.. :o Mar 17 14:57:35 pfn: i create flavors, that helps out a lot, so i build only for marshmallow on debug.. Mar 17 14:57:41 You can’t run services in background continually anymore Mar 17 14:57:52 only possibility would be to run your periodic check on a server and send GCM notifications to the phone Mar 17 14:58:04 but if an app like Nabu X justJanne its on marshmellow and it background syncs which is basically continous throught the day Mar 17 14:58:08 FrancescoV: great, it works Mar 17 14:58:23 hypermist, I have a nabu. what syncs are you talking about? :) Mar 17 14:58:27 great Mar 17 14:58:30 FrancescoV: thank you :) Mar 17 14:58:40 Probably thats some super basics I should know. P: Mar 17 14:58:41 number of steps etc will only get synced when you open the app for example Mar 17 14:58:43 you're welcome Mar 17 14:58:45 danijoo, it syncs my data. aka the walking sleeping in te background Mar 17 14:58:57 i've seen it do it without the app being open Mar 17 14:59:08 how have you seen it without opening the app? :P Mar 17 14:59:09 yea after time it probably times out Mar 17 14:59:10 lol Mar 17 14:59:22 Because half the time my damn bluetooth craps out :p Mar 17 14:59:40 so it doesnt do much to affect it and i have to go into the app and looks and its not syncing but it has all my data Mar 17 14:59:43 from the day Mar 17 14:59:57 also android N is not out yet. Background services without network still work Mar 17 15:00:06 (and might even work forever in N, we dont know yet) Mar 17 15:00:06 danijoo: for now... Mar 17 15:00:13 And even then, Mar 17 15:00:16 only during the day Mar 17 15:00:19 Well i wont be upgrading to android N :p Mar 17 15:00:32 Because i cannot im running a cyanogen mod anyway :p Mar 17 15:00:38 and dont wont more bugs Mar 17 15:00:38 :p Mar 17 15:00:52 a forever running service and a periodic sync are different things Mar 17 15:01:14 well it only needs to sync. to the api every 10-30mins Mar 17 15:01:30 and do push notifcations heh Mar 17 15:01:31 hypermist, a syncadapter would be the method of choice for your case Mar 17 15:02:42 Hey so I have my apk with the higher version code on the google playstore with a list of beta testers (myself included) and the active checked off, when I go to the opt in link it says I am part of the tester program and that I will receive and updated version, but I never do Mar 17 15:03:06 so i'd need to make that work with the api/http request danijoo ? Mar 17 15:03:12 justJanne, have you looked into https://github.com/afollestad/material-dialogs/blob/master/commons/src/main/java/com/afollestad/materialdialogs/prefs/MaterialDialogPreference.java for dialogs in preferences? Mar 17 15:03:16 I use this and it works Mar 17 15:03:28 danijoo: doesn’t work with AppCompat Preferences. Mar 17 15:03:30 Tried. Mar 17 15:03:36 ah ! :) Mar 17 15:03:58 hypermsit shouldn't have picked such a task xD Mar 17 15:03:59 Anyone have any issues with sending out beta invites for an app on google playstore? Mar 17 15:04:10 yeah.. Now you say it I remember that I used a normal preference fragment and was annoyed that it doesnt work with support Mar 17 15:04:14 Cause its hard as hellll danijoo :p Mar 17 15:04:26 especially when im a potato and dont know anything xD Mar 17 15:04:51 yeah u didnt pick something easy to start... Mar 17 15:05:16 Well i was looking at it and it didn't seem to hard at first, but now the crap tonne of stuff i neeed to add to make it do what i want makes it worse :p Mar 17 15:08:22 so im starting to wonder if i want to do it now danijoo XD Mar 17 15:09:35 yep i just seen what you meant about no background apps with doze justJanne :9 Mar 17 15:11:08 its nothing you will be able to do in 1 or 2 days without android experience Mar 17 15:11:18 indeed danijoo xD Mar 17 15:11:56 All i wanted it to do was just call taht api with an http request per URL i gave it. lol and do a push notification xD Mar 17 15:12:30 that involves a lot of different stuff. notifications, background work, internet access.. Mar 17 15:14:33 well -shrug- to much work for such a little brain xD Mar 17 15:18:14 Hello, Do you know how to force the getView function of a baseAdapter, for all items of the list ? Because for all items something must happen, and i dont want it to happen only to the items that are only visible (called by getView) Mar 17 15:18:41 mtR__ theres no way and thats not how adapters work Mar 17 15:19:06 if you want to alter all items, this should not happen in getView() Mar 17 15:21:13 would've liked to do my idea but Lol, to much work for such a simple thing Mar 17 15:21:18 esepcially with no knowledge Mar 17 15:21:32 thats how to learn ;) Mar 17 15:21:33 just do it Mar 17 15:21:39 danijoo: aight ;) Mar 17 15:23:20 danijoo, i'll get to fustrated haha Mar 17 15:23:39 thats also part of programming. Mar 17 15:23:44 and counts twice on android :D Mar 17 15:24:54 But the fact that my idea got ruined to work in the bg made me not want it now danijoo xD Mar 17 15:26:45 Hey, have LinearLayout with orientation 'vertical', I want the title (TextView) to be in it's own LinearLayout (nested inside the main one), how can I make the text in the Title's LinearLayout be aligned to middle? Mar 17 15:29:39 nadav, gravity Mar 17 15:30:21 Great, thanks! Mar 17 15:45:48 stackoverflow 2016 survey results are very interesting Mar 17 15:46:05 g00s: link? Mar 17 15:46:14 Got it. Mar 17 15:46:15 http://stackoverflow.com/research/developer-survey-2016 Mar 17 15:46:32 i love the dreaded technology list haha Mar 17 15:46:46 Scala and Spark are the top paying jobs Mar 17 15:47:25 Scala is also one of the top desired languages Mar 17 15:49:24 probably because of Spark ... Mar 17 15:49:47 nope Mar 17 15:49:55 ML & spark are the tide that lifts all boats Mar 17 15:50:10 nope Mar 17 15:50:19 yup Mar 17 15:50:21 yup Mar 17 15:50:22 yup Mar 17 15:50:23 ! Mar 17 15:50:51 scala has been a thing long before Spark Mar 17 15:51:48 even R has gotten more popular lately because of data science, but for different use Mar 17 15:52:07 and python for its math libs Mar 17 15:53:13 ´Whos looking for a new job?´ - student. you dont say.. Mar 17 15:54:48 me Mar 17 15:55:41 Im happy! Mar 17 15:55:51 I don't follow, what's the context? Mar 17 15:56:38 nadav, g00s link Mar 17 15:57:29 Hah, yeah Mar 17 15:59:54 I'm looking for possible part-time remote work from May :) Mar 17 16:00:24 funny to also see Coffeescript in the dreaded list Mar 17 16:00:41 yet thats what github used for Atom lol Mar 17 16:01:10 tried atom once. It took 10 seconds to start .. Mar 17 16:01:14 instant remove Mar 17 16:01:51 good thing i was more patient with AS, takes like 10 minutes to start ! Mar 17 16:02:10 :p Mar 17 16:02:14 hehe Mar 17 16:02:45 i don't understand why atom guys didn't use typescript instead Mar 17 16:03:03 with AS features atom might took an hrs ^^ Mar 17 16:05:16 this is another good read https://www.developereconomics.com/reports/developer-economics-state-of-developer-nation-q1-2016/ Mar 17 16:05:32 you'll have to put your email in though ;) Mar 17 16:05:49 just came out as well Mar 17 16:06:10 o.O Mar 17 16:06:32 this stupid font uses different colours for some unicode glyphs Mar 17 16:09:05 how do I verify that the applicationId is set correctly on my APK? I’ve found aapt can help me see the packageName but it doesn’t show me the applicationId Mar 17 16:09:34 danijoo did you see notepad++ was most popular editor ? Mar 17 16:09:44 yeah.. Mar 17 16:10:01 how can you write anything beside html in that? Mar 17 16:10:05 urbanmonk, packageName *is* applicationId Mar 17 16:10:05 or json Mar 17 16:11:40 I really hate laptops Mar 17 16:12:17 what do you use Mar 17 16:12:20 IBM PCs are better Mar 17 16:12:42 no, I forgot it at home Mar 17 16:12:46 pfn: according to google they are decoupled so that your code can use the same package names for R classes while having a different id on the play store. See http://tools.android.com/tech-docs/new-build-system/applicationid-vs-packagename Mar 17 16:12:51 just got on site... Mar 17 16:13:02 now I have to drive back home to get it Mar 17 16:13:18 urbanmonk, once it's packaged, it's the same thing Mar 17 16:15:03 and I use a MacBook Pro Retina Mar 17 16:17:06 pfn: I must not understand this then .. based on the docs it looks like I can set applicationId inside defaultConfig (in build.gradle). This is supposed to allow me to submit different version of apps (i.e. free/paid). I keep the package name the same but vary the applicationId .. however you’re saying that once it’s packaged its the same thing? So how does Google play differentiate between my free vs paid application? Mar 17 16:17:26 no Mar 17 16:17:32 it is packageName in apk Mar 17 16:17:52 you said aapt only tells you packageName Mar 17 16:18:07 that is your applicationId Mar 17 16:18:13 pfn: oh you’re saying when it’s built the packageName is overriden by the applicaitonId Mar 17 16:19:03 pfn: I see ok then something is wrong, it doesn’t seem to be taking it. thanks! Mar 17 16:19:08 in one of the library which i am using , i see fancy:fb_fontIconResource="" Mar 17 16:19:31 what is this  , how can i get it for ic_search_menu ? Mar 17 16:21:07 jackhum, show the contex Mar 17 16:21:48 danijoo: i am using this library , https://github.com/medyo/Fancybuttons , i want to add a button which looks like spotify Mar 17 16:22:43 danijoo: this library example has this line ,fancy:fb_fontIconResource="" , i dont understand , when i try to add search icon using drawable then it does not appear on my app, Mar 17 16:23:53 a resource id i guess Mar 17 16:25:41 danijoo: then , how can i get it for my ic_search_menu Mar 17 16:26:09 have you tried @drawabke.ic_... Mar 17 16:29:00 Waddup yall!? Mar 17 16:30:09 danijoo: i tried this fancy:fb_fontIconResource="@android:drawable/ic_menu_search" , but the application does not render the icon Mar 17 16:30:39 have you looked into the class´ code what it does with that id or whatever it is>? Mar 17 16:31:07 danijoo: should double shift search "" ? Mar 17 16:31:30 just open the classes java.. Mar 17 16:31:46 and read what it does with the attribute Mar 17 16:31:47 danijoo: a little more detail please Mar 17 16:32:07 danijoo: what file do you want me to open? Mar 17 16:32:11 that attribute is used by a view class in the example code Mar 17 16:32:24 and since the project is on github you can see the source of that class and read it Mar 17 16:33:28 Is there a way for my audio service to NOT receive the AUDIOFOCUS_LOST message when it’s my own app that’s taking the focus away? Mar 17 16:33:49 danijoo: you mean this https://github.com/medyo/Fancybuttons/search?utf8=%E2%9C%93&q=%26%23xf04b%3B Mar 17 16:34:01 I want to continue playback when moving back to my app but NOT continue if another app takes it, like Spotify. But the message is the same both ways, so I can’t differentiate. Mar 17 16:35:33 jackhum, no Mar 17 16:35:44 i said look into the class and check what it expects as parameter Mar 17 16:35:45 danijoo: then ? Mar 17 16:35:55 then you know it Mar 17 16:35:58 ... Mar 17 16:37:00 danijoo: i cant understand what you are trying to say Mar 17 16:37:11 danijoo: please Mar 17 16:38:07 http://eclipser.xmms2.org/Screenshot_20160317-180647.png so annoying Mar 17 16:39:24 jackhum: It looks like the icons are created using FontAwesome Mar 17 16:39:59 s73v3r: and on what basis did you came to this conclusion ? Mar 17 16:40:10 I read the doc on the github page Mar 17 16:40:15 you should try it. they’re pretty handy Mar 17 16:40:18 he did what I told you.. read Mar 17 16:43:04 why is reading so hard Mar 17 16:51:46 Zharf, font glyph failure? Mar 17 16:52:41 <|PiP|> anyone know of a JSON parser that lets you access deeply nested subkeys, without exceptions being thrown if one of them doesn't exist? Mar 17 16:53:20 <|PiP|> something similar to lodash get https://lodash.com/docs#get Mar 17 16:53:59 Not really. NPEs are a bitch. Mar 17 16:54:42 I don't know of one either Mar 17 16:54:51 pfn, I've seen them on android before too, http://eclipser.xmms2.org/asdf.png Mar 17 16:55:00 I'm sure you tried Gson already but I'm not sure exactly how that works I know it throws runtime exceptions Mar 17 16:55:05 pfn, they work so well with background colours... http://eclipser.xmms2.org/asdf2.png Mar 17 16:55:49 <|PiP|> I want an API something like this: jsonObject.getString('some.nested.key.value'); Mar 17 16:56:29 yeah me too Mar 17 16:57:37 i want cookies Mar 17 16:59:05 I assumed the reason for no one bothering to make a nice directly-access-json api was everyone concluding that maybe you should not be architecting your app that way Mar 17 17:00:02 <|PiP|> don't agree. I've seen the pattern many times in other languages Mar 17 17:01:06 <|PiP|> ive seen it in JS, Swift, Ruby, Python Mar 17 17:06:46 mh, it shouldn't be too hard to extend org.json api to do that, but frankly it's just syntatic sugar for j.getObject("some").getObject(.... Mar 17 17:07:41 hi :) Mar 17 17:08:03 trying to use this class to create a material design toolbar shadow in android 4: https://github.com/google/iosched/blob/dfaf8b83ad1b3e7c8d1af0b08d59caf4223e0b95/android/src/main/java/com/google/samples/apps/iosched/ui/widget/DrawShadowFrameLayout.java Mar 17 17:08:37 but if I replace my framelayout that works, with DrawShadowFrameLayout, I'll get a InflateException Mar 17 17:09:05 (I copied the DrawShadowFrameLayout to my project structure) Mar 17 17:09:23 someone an idea what I should change to get this working? Mar 17 17:14:21 public class JsonUtil { public static String getString(JSONObject json, String... path) throws JSONException { for (int i = 0; i < path.length - 1; i++) json = json.getJSONObject(path[i]); return json.getString(path[path.length -1]); } Mar 17 17:14:25 or something Mar 17 17:16:21 Zharf: he wants it to catch the exception and, I'm guessing, put a default value in Mar 17 17:17:00 well that's not rocket science either Mar 17 17:18:02 true Mar 17 17:31:32 String getString(JSONObject json, String key, String defaultValue) { try{ return json.getString(key) } catch(JSONException e) { return defaultValue } } Mar 17 17:32:08 danijoo: why not optString? Mar 17 17:33:05 didnt know that :o Mar 17 17:33:57 :D Mar 17 17:34:08 on the other hand dthat doesn't support nested objects Mar 17 17:34:12 but he wants a whole path so it needs to iterate through the json Mar 17 17:34:15 yeah Mar 17 18:24:50 hi Mar 17 18:27:18 I include a toolbar with android:layout_height: wrap_content and I want to override it in my include tag using android:layout_height:0dp and android:layout_weight:1 but my toolbar has always the height of wrap_content, someone an idea why? Mar 17 18:30:27 Can intent services be called by other apps? Mar 17 18:31:29 One of my IntentService's tasks is to asyncronously delete a folder, and then call a callback - this could be exploited by apps with no access the sd card permission Mar 17 18:31:53 rubenwardy: i don't think so Mar 17 18:32:10 in any case you can define it in the manifest as exported=false Mar 17 18:32:25 Already says that Mar 17 18:32:27 thanks! Mar 17 18:39:21 thepoosh have you ever seen anything like cwc-merge but for recyclerview ? Mar 17 18:39:27 *cwac-merge Mar 17 18:39:58 no but we did something similar by just defining inheritance of the ViewHolder class Mar 17 18:40:23 and defining multiple view types Mar 17 18:40:42 if you need a code snippet I'll try and paste something without violating trust Mar 17 18:40:52 thepoosh no thats fine ,, thanks Mar 17 18:40:59 :D Mar 17 18:41:09 i've seen a few blogs on nice ways to handle multiple view types ... Mar 17 18:41:24 nothing on having multiple adapters though Mar 17 18:42:07 no need for multiple adapters just multiple datasets and viewholder classes Mar 17 18:42:39 scenario is i have that are from different sources Mar 17 18:42:55 who to make widget which flows above all windows? like in Pocket when you Share to Pocket Mar 17 18:42:59 like this one http://pocket-blog.s3.amazonaws.com/20131205/PKTBlog_5v1_Android_v1.png Mar 17 18:43:03 I had success with the modular adapter pattern Mar 17 18:43:18 g00s: that is fine Mar 17 18:43:22 same for use Mar 17 18:43:24 *how Mar 17 18:43:42 we actually have one dataset which is provided by a Cursor and the other from an ArrayList Mar 17 18:46:10 even when you hide application this widget is still there Mar 17 18:46:21 how did they make it Mar 17 18:46:28 custom toast maybe Mar 17 18:48:02 Hello. How can I create a test for a fragment? I created a DummyBlankActivity in the /test dir but I cannot run it as it is not present in the manifest Mar 17 18:48:49 vedu, first, it goes in androidTest Mar 17 18:49:58 thepoosh s73v3r this is the article i was thinking about http://hannesdorfmann.com/android/adapter-delegates Mar 17 18:50:21 but i thought it was a different scenario, maybe not ? Mar 17 18:51:07 i thought that was more for mixed heterogenous collections, not grouped heterogenous ones Mar 17 18:57:10 thepoosh lol y u so quiet now :D Mar 17 18:57:37 watching the martian Mar 17 18:57:51 g00s that’s the article I used Mar 17 18:58:02 i tried to find it, but couldn’t :( Mar 17 18:58:24 s73v3r ah ok thanks Mar 17 18:59:01 thepoosh if trump becomes president, i'd gladly take mark whatney's place and stay on mars :) Mar 17 18:59:29 1. i was warned once not to talk politics here Mar 17 18:59:33 lol Mar 17 19:00:00 2. if trump gets elected nothing will happen because he will lose both senate and congress within 2 years Mar 17 19:00:05 thepoosh always getting the rod Mar 17 19:00:45 i liked the visuals in the martian, especially towards the end when he was making his way across the plains Mar 17 19:00:54 kinda beautiful place is thats what its like Mar 17 19:01:44 I recently read the book Mar 17 19:01:59 red* Mar 17 19:02:48 both are great. film and book Mar 17 19:06:39 how are people doing user authentication to api's these days? does anyone actually use Authenticator? Mar 17 19:17:43 s73v3r yeah, i read that blog again .. seems though its just a delegate around a List that each Adapter says 'yeah i handle that view type'. but what i'm after is managing the segments and indexes in the list, which is kinda a mess ... Mar 17 19:18:48 basically what cwac-merge does is set up a number of groups, and each groups is its own list from 0 - # entries -1, and they all get mapped into the flattened list seen by the adapter Mar 17 19:22:03 Is there an easy way to make sure my Google Play services is at least 4030530? Mar 17 19:22:13 (from a mac) Mar 17 19:22:43 Google play services wont run on a mac :p Mar 17 19:23:09 s73v3r something like this, maybe i'm just not describing it correctly. http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/ Mar 17 19:23:15 you cant change the playservices version on an emulator samB__ Mar 17 19:24:56 danijoo, oh I though it was required with the android sdk to build to my phone? Mar 17 19:24:56 hello I am trying to convert my server reponce to JSONArray using okhttp Mar 17 19:25:08 but I am getting a exception Mar 17 19:25:40 I am not getting reponce as I wanted Mar 17 19:34:25 hrmf, just got new Google Photos, with bottom bar ... Mar 17 19:34:31 this looks terrible in landscape Mar 17 19:34:58 and its taking up all that space. these 3 stupid items could have been tabs in the ActionBar, which is also there, taking up space Mar 17 19:35:15 i've lost all confidence in google's design abilities Mar 17 19:35:42 I think this actionbar effect is really strange too Mar 17 19:35:53 where they remove the elevation Mar 17 19:36:57 i think it would be OK for phone, portrait - in that case tabs would be below ActionBar, so height of AB + tabs == AB + bottom bar, even if its just divided differently Mar 17 19:40:47 can't believe this navigation drawer design guideline Mar 17 19:40:47 smfh Mar 17 19:41:17 Now that Google is changing stuff in it's material design I hope people start dropping the nav drawer altogether Mar 17 19:41:35 Photos has both nav drawer and bottom bar Mar 17 19:41:48 and? Mar 17 19:42:04 let me present you to android holo: http://images.pcworld.com/images/article/2011/12/screenshot_2011-12-16-15-16-18-6335073.png :p Mar 17 19:42:08 it works ok, if all the items in the drawer go to ther activities Mar 17 19:42:26 it works ok for the 50 people that use the nav drawer Mar 17 19:42:32 it adds complexity to the app and little value Mar 17 19:42:42 danijoo awesome :) Mar 17 19:42:59 lol that was split action bar Mar 17 19:43:02 i like the navigation drawer though Mar 17 19:43:19 I don't, but it's hard to come up with something better Mar 17 19:43:19 yah you're a developer Mar 17 19:43:23 it's not Mar 17 19:43:26 simply don't use it Mar 17 19:43:28 drawers are great for horizontal navigation Mar 17 19:43:33 i like them as user, not as dev Mar 17 19:43:44 casadogg, navigation is hard, feel free to establish guidelines Mar 17 19:43:49 you're an advanced user Mar 17 19:43:57 who is also a developer Mar 17 19:44:16 it's been proven by data. people don't notice the nav drawer. Mar 17 19:44:31 idk who came up with the idea that hiding stuff from the screen would be a great idea Mar 17 19:44:36 space is limited. without nav drawer i cant think of a better way to navigate beside going back to main activity where there are a bunch of buttons Mar 17 19:44:55 use bottom bars, use toolbars Mar 17 19:44:58 hide them when you scroll Mar 17 19:45:03 too much permanent navigation Mar 17 19:45:07 that sucks Mar 17 19:45:08 but don't use a container which is hidden by default Mar 17 19:45:18 users don't notice it even if you have a button Mar 17 19:45:18 clutters space with irrelevant buttons for the current action Mar 17 19:45:37 also navigation drawers are not more invisible than overflow menus Mar 17 19:45:48 theres a button to reach them in the top left. aka the burger Mar 17 19:46:15 I generally like drawers as well Mar 17 19:46:16 users Mar 17 19:46:18 don't notice it Mar 17 19:46:23 users who aren't developers or designers Mar 17 19:46:23 less thumbable than bottom nav, though Mar 17 19:46:24 overflow menus are worse because google screwed them up by hiding them if there's a physical menu button Mar 17 19:46:34 you'll see, this shit will be gone from android N Mar 17 19:46:37 and I'll be happier Mar 17 19:46:39 up to a point, kitkat iirc? Mar 17 19:46:53 material design cultists will leave me alone, finally. Mar 17 19:47:42 I've been trying to think of a working navigation for my application for the last 3-4 years Mar 17 19:47:50 haven't found a way to do it :p Mar 17 19:48:06 Zharf lol me too Mar 17 19:48:11 i've tried so many things ... Mar 17 19:48:26 there's no perfect way Mar 17 19:48:30 there's bad design, mediocre design, good design Mar 17 19:48:45 and theres taste ;) Mar 17 19:48:51 and then utterly shit lazy design which clutters everything in an invisible container called navigation drawer and justify it by adding "hamburger" to the toolbar Mar 17 19:48:58 design Mar 17 19:49:14 using navdrawer for non-essentials is fine I think Mar 17 19:49:34 hmm maybe Mar 17 19:49:42 yeah, i think Photos does it OK with bottom bar and nav drawer Mar 17 19:49:42 to include licenses Mar 17 19:49:45 and that's about it Mar 17 19:49:48 there's really no alternative that's workable as a replacement to nav drawer Mar 17 19:49:56 tabs work great Mar 17 19:49:58 anything else involves an onscreen element Mar 17 19:50:01 ^ Mar 17 19:50:08 especially in something like Keep, which has hierarchy in the nav drawer Mar 17 19:50:09 and that sucks because we already have not enough room Mar 17 19:50:10 tabs are ok for some things Mar 17 19:50:15 and the hamburger is is an onscreen element Mar 17 19:50:24 it doesn't matter! Mar 17 19:50:26 lol Mar 17 19:50:29 and tabs are a shitty navigation mechanism when you have beyond a certain number of tabs Mar 17 19:50:33 people open your app Mar 17 19:50:37 they'll look at the initial screen Mar 17 19:50:37 pfn, don't contradict him! Mar 17 19:50:51 Geez I can't find the article Mar 17 19:50:52 casadogg, what has that to do with the navigation drawer? Mar 17 19:50:55 but i have my analytics data anyway Mar 17 19:50:56 casadogg, easy solution, show the nav drawer on initial screen Mar 17 19:51:05 ^ Mar 17 19:51:07 you can still have an initial screen with navigation + navdrawer for horizontal navigation afgter that Mar 17 19:51:22 I had some functions in the nav drawer with like 30 clicks for a month Mar 17 19:51:26 moved the functions to the main screen Mar 17 19:51:30 gone up to the hundreds Mar 17 19:51:38 thats why you have it at both.. Mar 17 19:51:40 and it's not because the app has more users Mar 17 19:51:51 danijoo redundant design is the new thing Mar 17 19:51:51 i think nowadays, pretty much everyone knows about the nav drawer ... whether it provides too much friction is another matter Mar 17 19:51:52 what if we put menus inside drawer like snackbar down side.. Mar 17 19:51:53 i see Mar 17 19:52:05 i mean all the gapps have been using it for 2 years Mar 17 19:52:14 g00s and all the apps are removing it Mar 17 19:52:19 ppl tend to forget there is not much space on mobile screen, and it's even worst if you take in account the pointer which a finger leading to an area, so there is not much room to deal with more actions Mar 17 19:52:27 casadogg i haven't seen any gapps remove it Mar 17 19:52:27 whatever, you'll see. it will be gone from material design Mar 17 19:53:06 youtube removed it i think Mar 17 19:53:12 but every other app kept it Mar 17 19:53:18 danijoo actually, they kinda have it in the middle tab Mar 17 19:53:37 youtube was a weird one, they put WAYY too much stuff in the nav drawer Mar 17 19:53:46 yeah youtube is really weird Mar 17 19:53:47 i'm not fan of the drawer because to be justified it needs many rows Mar 17 19:53:51 their navigation needed to pivot around another element altogether Mar 17 19:53:52 otherwsie you end up with a lot of blank space Mar 17 19:53:55 the last tab is kinda like the nav drawer Mar 17 19:54:50 danijoo when i go to the icon that looks like a few boxes, there is a pull out drawer there Mar 17 19:54:59 kinda like it is not quite like it Mar 17 19:55:01 which is ironic, due to the fact you use a drawer to compensate the lack of space on a screen to display everything Mar 17 19:57:46 hm Mar 17 19:57:50 here: https://lmjabreu.com/post/why-and-how-to-avoid-hamburger-menus/ Mar 17 19:57:53 google play is probably the only gapp I use Mar 17 19:58:13 it will drop from android N Mar 17 19:58:34 i wish material design was a guideline and not the law Mar 17 19:58:40 much annoyance would be avoided Mar 17 19:59:09 it isn't the law though Mar 17 19:59:12 and it is a guideline Mar 17 19:59:14 thankfully, nav drawers seem to be on their way out Mar 17 19:59:16 anything else would be wrong of it Mar 17 19:59:20 pfn: that’s the joke Mar 17 19:59:37 unlike someone here who thinks that material design is end all be all Mar 17 19:59:39 in our app that we do at work the nav drawer is the only way to get anywhere... and 150k people manage to use the application daily just fine Mar 17 19:59:46 not saying it's perfect, but it works Mar 17 19:59:57 last few apps I've worked on haven't had a nav drawer Mar 17 20:00:15 well great but that is your experience Mar 17 20:00:23 you haven't met material design cultists, good for you Mar 17 20:00:29 haven't? see justJanne Mar 17 20:00:35 ^^ Mar 17 20:00:38 :P Mar 17 20:00:42 But I have to abide by their will Mar 17 20:01:00 as pfn said its a guideline. there are cases where a drawer is clearly overkill Mar 17 20:01:14 but putting bottom bars everywhere is as stupid as using drawers everywhere Mar 17 20:01:29 e.g. https://plus.google.com/+PerryNguyen/posts/ZqPgFcpt1Tm -- lol at the comment Mar 17 20:01:30 we're not talking about bottom bars Mar 17 20:01:48 pfn rofl Mar 17 20:02:08 you just linked a blog written by a bottom bar cultist Mar 17 20:02:13 grab your pitchforks Mar 17 20:02:20 "x: yo y, this is sexy", "y: meh, it's not material enough" Mar 17 20:02:51 its the same with everything about design: its impossible to find a solution noone will rant about Mar 17 20:03:03 what's worse than navdrawer, client wanted horizontally scrolling lists in viewpager pages Mar 17 20:03:17 Zharf, wat :p Mar 17 20:03:23 I tried to get them to at least allow me to disable the swipe on the viewpager Mar 17 20:03:27 but no... Mar 17 20:03:34 blech Mar 17 20:03:43 how does it work? it swipes when the list end is reached Mar 17 20:03:45 ? Mar 17 20:03:49 yep Mar 17 20:03:52 google is getting closer and closer to the ios design guidelines and material bobbleheads are getting itchy about it Mar 17 20:03:54 oh my god Mar 17 20:04:30 Zharf what, like netflix? Mar 17 20:04:40 casadogg, yes Mar 17 20:04:50 bottom bar on iOS and their navigation works a bit differently; what the android version amounts to is putting tabs on the bottom Mar 17 20:04:57 looks similar, but is not Mar 17 20:05:55 it would be like, in youtube app, going to a tab, selecting an item, and everything staing in place but the content of that tab changing. so you still see all the tabs, but the content of one has changed to its child content Mar 17 20:06:09 you're seeing it with the wrong eyes Mar 17 20:06:16 I don't care what they say the bottom bar should do Mar 17 20:06:30 for material cultists what it matters is that god has allowed bottom bars Mar 17 20:06:36 what they will do is up to you Mar 17 20:06:39 hey so i have an actionlayout in my actionbar... why won't .setTitle() work? Mar 17 20:06:47 casadogg: figured it out Mar 17 20:06:50 thats a straw man, i don't see too many material cultists here Mar 17 20:07:16 if you can't see them it's because you're blending in Mar 17 20:07:17 not here, no Mar 17 20:07:18 it was programmatically changing the layout_params Mar 17 20:07:18 you gotta be cleansed. Mar 17 20:07:29 for some people everyone thats not their opinion is a cultist.. Mar 17 20:07:30 thepoosh wow Mar 17 20:07:52 that was 2 hours of my life I can never get back Mar 17 20:08:04 you mean it was changing in the toolbar code Mar 17 20:08:07 or in your code? Mar 17 20:08:31 danijoo: true, but there are those #PRAISEDUARTE types on reddit Mar 17 20:08:39 casadogg: legacy code of ours Mar 17 20:08:41 that joke got old after about 3 minutes Mar 17 20:08:58 thepoosh geez Mar 17 20:09:02 it feels like /r/androiddev becomes worse each day Mar 17 20:09:09 +1 Mar 17 20:09:19 danijoo how so? Mar 17 20:09:29 just don't reddit Mar 17 20:09:31 like me Mar 17 20:09:35 MartialLaw I swear I read your nick as MaterialLaw Mar 17 20:09:56 Material bobbleheads are destroying my sanity. Mar 17 20:10:13 if you want to read another blog about MVP, reddit is clearly your friend though :p Mar 17 20:10:16 you sound paranoid Mar 17 20:10:33 also Kotlin jerking Mar 17 20:10:38 lol Mar 17 20:10:54 what's mvp Mar 17 20:11:00 other than most valuable player Mar 17 20:11:07 r/androiddev is all mvp and kotlin circlejerk Mar 17 20:11:09 Zharf, go to reddit, click a random post and you know :p Mar 17 20:11:25 probably won't pick up on it Mar 17 20:11:36 the amount of ink spilled in the blogosphere over mvp on android is amazing Mar 17 20:11:56 Zharf model view presenter Mar 17 20:12:02 ah Mar 17 20:12:19 trying to do a progressbar like that (ignore background and shadow) http://prnt.sc/agjqsn Mar 17 20:12:25 I'm terrible with acronyms Mar 17 20:12:33 Don't worry Mar 17 20:12:36 It's mvc for hipsters Mar 17 20:12:39 hey guys, anyone knows if it's possible to set the color of a piece of text inside a text view as i'm populating it programmatically? I was thinking about surrounding it with text or something? Mar 17 20:12:46 this is not possible by sole layer-list, right? i need a png with the separation, dont i? Mar 17 20:14:01 casadogg: just wait until the binding libs are popular and we get MVVM jerking Mar 17 20:14:07 Twirl: yes, thats one way to do it. Html.fromHtml(... with ) Mar 17 20:14:24 and that to setText Mar 17 20:14:26 danijoo, level-list Mar 17 20:14:34 danijoo, and a bunch of Mar 17 20:14:44 danijoo: You could probably do that with RatingBar by replacing the star drawable Mar 17 20:14:49 casadogg mvp is old. like 90s old. were there even hipsters then ? :D Mar 17 20:15:16 pfn, hm.. yeah. But I guess a png would steal less time :/ Mar 17 20:15:24 SimonVT, thats actually a pretty nice idea.. Mar 17 20:15:25 Ashiren: how exactly? textview.append("" + mytext + "\n" + ""); // shows error, Mar 17 20:15:30 g00s nah man, but when you take it to android context it's pretty out of place Mar 17 20:15:33 Ashiren: i need to pass the color programmatically Mar 17 20:15:41 I mean even mvc is out of place for android. Mar 17 20:15:58 Ashiren: how do you put the color in "" Mar 17 20:16:10 anything straightforward is out of place on android ;) Mar 17 20:16:16 lol pretty much Mar 17 20:16:50 anyone knows how to put a hex color in this "" ? Mar 17 20:17:01 now the JS guys, if they had something like android level framework, would have scrapped and burned it 10 times over in the past few years Mar 17 20:17:09 but at least they scrap and burn :) Mar 17 20:17:32 android framework is one of the reasons for my dread of navigation drawers Mar 17 20:17:40 you have a mix of activities and fragments Mar 17 20:17:48 and designer says "navigation drawer ausheuashueas" Mar 17 20:18:09 don't use html/font color for textview colors... Mar 17 20:18:14 code instantly blows itself up Mar 17 20:18:57 please it's a simple question, i need to change the color, this "" is white, how do i pass another hex there? Mar 17 20:18:59 Twirl: try textview.setText(Html.fromHtml("" + mytext + "")); Mar 17 20:19:12 Ashiren: no that is for white i need to pass colors dynamically Mar 17 20:19:20 it's probably more of a java question Mar 17 20:19:25 danijoo how so? Mar 17 20:19:26 new ForegroundColorSpan Mar 17 20:19:27 hey so i have an actionlayout in my actionbar... why won't .setTitle() work? Mar 17 20:19:37 MartialLaw, how so what? Mar 17 20:19:44 it won't let me do something like "" Mar 17 20:19:44 spannable.setSpan(fgspan, start, end, spannable.span_inclusive_exclusive) Mar 17 20:19:45 Twirl: String.format(" call it a day Mar 17 20:19:53 Ashiren: alright let me try Mar 17 20:20:02 it will Mar 17 20:20:08 but youre escaping " wrongly Mar 17 20:20:19 but use spannable if you need to have multiple colors in the same textview Mar 17 20:20:20 not html Mar 17 20:20:42 formatting html strings and using html.fromhtml is just so shitty Mar 17 20:20:48 but so easy Mar 17 20:21:00 just like using the navigation drawer Mar 17 20:21:00 use Spans and Spannables Mar 17 20:21:22 nav drawer is a necessity Mar 17 20:21:50 joking Mar 17 20:21:56 use spannable, I agree Mar 17 20:24:20 sad that android framework doesn't include basic utilities for working with spannables Mar 17 20:25:58 Ashiren: does that work inside textviews ? Mar 17 20:26:02 I normally do "%1%2foobar%3".formatSpans(colorRed("text"), colorBlue("moretext"), colorGreen("blah")); and end up with "textmoretextfoobarblah" with it colored red/green/blue etc. Mar 17 20:26:14 we should open an android wiki for useful stuff the android documentation "forgets" to mention Mar 17 20:26:52 Twirl: String.format works everywhere you can put String on :o Mar 17 20:27:04 Ashiren: awesome, ty my man Mar 17 20:27:09 Twirl you're formatting the string Mar 17 20:27:21 as in the string object Mar 17 20:27:34 it has nothing to do with the textview Mar 17 20:27:39 codepath has some nice android guides, go write more there Mar 17 20:28:43 Zharf Yah I'm talking more about library and framework tips Mar 17 20:28:56 small stuff that doesn't really require an elaborate article Mar 17 20:30:35 fair enoguh Mar 17 20:42:05 Ashiren: it's giving me Unknown color when trying Color.parseColor("#F1F1F1"); why? Mar 17 20:42:55 because pasing that "#F1F1F1" to the String.format(" Anyone know why when using Glide with a recyclerview, the imageView dimensions sometimes get smaller? Mar 17 20:44:58 Well, Color.parseColor isn't working either Mar 17 20:45:24 Anyone knows how to set the color of text inside a textview while appending the text? it's showing the string instead of changing the color Mar 17 20:45:58 it's showing Text instead of a red Text Mar 17 20:46:09 what? Mar 17 20:46:46 .setText (text) .setTextColor(Color.parseColor("#696969")) Mar 17 20:46:47 Color.parseColor("#F1F1F1") shows Text Mar 17 20:47:08 orbyt_: i don't need that will change the color of the whole text view i only need to change a piece of text Mar 17 20:47:47 Anyone knows how to do it? Mar 17 20:48:05 pfn: I also consider Material Design sometimes to be wrong, and do things different than Google intended — but you have to make your design actually better to be able to justify doing so. Mar 17 20:48:16 Twirl: parse html Mar 17 20:48:29 orbyt_: how? Mar 17 20:48:48 Twirl: use spannablestring and set a foregroundcolorspan? Mar 17 20:48:56 there's an Html class that creates spans from html Mar 17 20:49:21 There are even Libs to make that stuff easier. Mar 17 20:49:28 justJanne: can you just tell me how to do it inestead of naming random classes Mar 17 20:49:44 and i don't want to use a whole library for this it's the most simple thing Mar 17 20:49:54 text.setText(Html.fromHtml(" noob )) or somethin Mar 17 20:50:03 alright lets try it Mar 17 20:50:05 Twirl: you create a spannablestring from a text, you do setSpan with a new foregroundcolorspan, start and end, Mar 17 20:50:09 And that's it. Mar 17 20:50:16 There's many ways to set colors. Mar 17 20:51:14 orbyt_: nice that worked, ty Mar 17 20:53:38 Hi. Mar 17 20:56:12 orbyt_: any way to set the background color of the text instead of the font ? Mar 17 20:57:21 Twirl: with spans, you'd just set a BackgroundColorSpan Mar 17 20:59:56 hm... I provided a drawable for the progress and background. somehow the progress gets not scaled but the background does (I want the background to show exactly 10 tiles as forground): http://prntscr.com/agkh9y Mar 17 21:00:06 thats my layerlist: https://gist.github.com/danijoo/b23f0a4909e3aa4f7ffb Mar 17 21:00:47 both drawables are the same beside their color Mar 17 21:04:04 danijoo what would be amazing is if the support lib releases a component at the same time as its introduced to the design spec ... Mar 17 21:04:17 g00s, ^^ Mar 17 21:05:42 does everything need to be in the support lib? Mar 17 21:05:52 if its a standard component, i think it should be Mar 17 21:06:00 component vs 'idea' Mar 17 21:09:15 now for experimentation, i can see anyone including google just trying stuff that isn't in the design spec Mar 17 21:09:37 but once its a component that winds up in the material spec, yeah i think there should be a standard implementation Mar 17 21:10:47 <_genuser_> lol all the recruiters from the same company are emailing me about the same job. Mar 17 21:10:58 <_genuser_> if they're that unoganized, do you reall want them as a recruiter, lol. Mar 17 21:11:11 _genuser_ probably bots :D Mar 17 21:11:23 left bot doesn't know what the right bot is doing :) Mar 17 21:11:48 <_genuser_> g00s: bots named Rajit ans Sharma...hmm, that's kinda clever naming them indian names... Mar 17 21:12:06 <_genuser_> like nobody buys a steve with a thick south indian accent. Mar 17 21:12:14 lol Mar 17 21:12:14 <_genuser_> nobody will bu it's a both if you named it an indian name, lol. Mar 17 21:12:19 if someone cares, solution to my problem was nine-patch. should have though about this earlier. Mar 17 21:12:29 danijoo man i hate 9 patches :D Mar 17 21:12:35 <_genuser_> I have never used those. Mar 17 21:13:04 <_genuser_> recently had to do some android stuf. my brother was trying to narrow down the listview contents based on what's typed in edittext. Mar 17 21:13:11 anyone know where i can find info on attaching click events to multiple buttons in a custom list adapter inside a list fragment? I’m trying to use listeners to communicate with my main activity, but im not sure how to use the listener on my fargment for the adapter Mar 17 21:13:12 <_genuser_> it was fun to code. Mar 17 21:13:18 g00s, seems to be the only way for the custom progressbar background i want Mar 17 21:13:46 <_genuser_> epop: if each row in listview has a button, assigned the handler inside the getView() function that inflates and returns taht view. Mar 17 21:14:05 _genuser_: each row has 2 buttons plus a separate event for the row Mar 17 21:14:21 my row click is not an issue, im just not sure how to handle the clicks from inside the custom adapter Mar 17 21:14:24 id attach a listener per button but share the listener accross views Mar 17 21:14:53 <_genuser_> epop: button would modify the list somehow. right? Mar 17 21:14:56 danijoo: you have an example by chance? im confused because i only have access to the buttons from inside the adapter Mar 17 21:14:57 and write an adapter interface to forward clicks to the activity. " custom listener" Mar 17 21:15:01 epop, no Mar 17 21:15:12 danijoo: no, the buttons start new fragments Mar 17 21:15:44 ah ok, so i need listeners in the adapter that the fragment listens for and then just passes to the activity? Mar 17 21:15:51 that’s kind of a pain in the ass, lol Mar 17 21:16:11 <_genuser_> YourAdapter extends BaseAdapter{ /* crap */ IYourInterfaceWithEvents interface; public YourAdapter(/*other crap*/, IYourInterfaceWithEvents iface){ /* other crap*/; interface=iface; } Mar 17 21:16:22 <_genuser_> later just iface.itHappenedMan!!(); Mar 17 21:16:26 <_genuser_> from inside the button clicks. Mar 17 21:17:57 ok much thanks _genuser_ and danijoo, i think i got what i need Mar 17 21:20:19 <_genuser_> ok back to Indian Roombas. Mar 17 21:20:24 <_genuser_> I mean bots.. err... recruiters.. Mar 17 21:20:45 <_genuser_> 6mo contract in carlsbad california.... Mar 17 21:21:13 lol Mar 17 21:21:14 <_genuser_> not only is there a whole town named after reminding you that "carl is bad", but it's also a bit of an unknown.. Mar 17 21:21:25 don’t you want to move states for a 6mo contract? Mar 17 21:21:51 i love all the recruiters telling me im a great fit for jobs in like the middle of nowhere in a crap state for 1/3 of what i normally make Mar 17 21:22:02 <_genuser_> I figure if you incorporate in texas (my state) and go out as employee, you shouldn't have to do multiple state taxes, etc. Mar 17 21:22:16 talking about recruitment spam mails.. its hilarious: https://www.youtube.com/watch?v=_QdPW8JrYzQ Mar 17 21:22:33 <_genuser_> well yeah these ones saw lot of c#, .NET, some java, some PHP and promptly emailed me.... about... Mar 17 21:22:35 carlsbad is nice btw Mar 17 21:22:39 very nice Mar 17 21:22:44 <_genuser_> RHEL 6. network support. hardware physical support. Mar 17 21:22:50 <_genuser_> and linux admin in general. Mar 17 21:23:26 <_genuser_> rancho, san marcos, escondido... where the heck is this place? Mar 17 21:23:46 <_genuser_> oh, it's like in Mexico. Mar 17 21:24:04 <_genuser_> ok north of san diego, not bad. I've been to san diego. Mar 17 21:24:05 haha nah Mar 17 21:24:07 it’s north of sd Mar 17 21:24:18 it’s like where the rich old people from sd move Mar 17 21:24:29 <_genuser_> rich neighborhood? Mar 17 21:24:32 yeah Mar 17 21:24:40 <_genuser_> so lot of spoiled 18yo girls? Mar 17 21:24:45 <_genuser_> and I see it's by the beach. Mar 17 21:24:48 it borders oceanside, oceanside is like the poor part Mar 17 21:24:54 well, compared to carlsbad Mar 17 21:24:56 * _genuser_ looks for the first flight out to carl_is_bad, california. Mar 17 21:25:06 what would cause adb to work but fastboot to report "no permissions" Mar 17 21:25:59 <_genuser_> santa monica is more familiar. I've been there quite a bit. pasadena, my uncle is in the inland empire. Mar 17 21:26:11 im in the IE right now Mar 17 21:26:11 <_genuser_> riverside I think I"ve been there too. Mar 17 21:26:18 yeah riverside is inland empire Mar 17 21:26:28 <_genuser_> oh I have one uncle in yucaipa and the other in redlands. Mar 17 21:26:40 <_genuser_> one summer I drove my car out there and stayed with one of them for a month. Mar 17 21:26:52 that probably wasnt that fun, lol Mar 17 21:27:03 hot as crap out there Mar 17 21:27:05 <_genuser_> I was going to look for a band in riverside, or la. Mar 17 21:27:27 <_genuser_> just didn't happen. I just ened up working remotely 6am - 3pm. and then shower and out just driving around town. Mar 17 21:27:55 how’d you like having some real mexican food instead of that garbage tex-mex? Mar 17 21:27:56 haha Mar 17 21:28:15 (i lived in austin for a year) Mar 17 21:28:35 <_genuser_> I'm sure real Mexicans will disagree with anything in the US as being "real", but my extend of Mexican food in the entire US is typically .... chipotle. Mar 17 21:28:51 lol nah man, la/oc/sd have super legit mexican food Mar 17 21:28:53 <_genuser_> unless you count on the borders, or chilli. Mar 17 21:28:59 hell, their the majority here Mar 17 21:29:19 i do miss the indian food from austin, omg was that good Mar 17 21:29:19 <_genuser_> yeah certinaly california has a latino majority by now, I think. Mar 17 21:29:44 <_genuser_> I did enjoy going up to the big bear lake. Mar 17 21:29:53 some of those places by the dell diamond blew my mind, i was never super big on indian food until then Mar 17 21:29:58 <_genuser_> we'd always drive up half way, make a u-turn and drive down. Mar 17 21:30:05 <_genuser_> the one time tho, we decided ot just keeping chugging. Mar 17 21:30:15 you drive from tx? Mar 17 21:30:22 <_genuser_> heh, I'm still not big on Indian food. Mar 17 21:30:34 <_genuser_> yeah, I just got in the car, dumped my stuff in and started driving. Mar 17 21:30:47 <_genuser_> took a detour in roswell, new mexico. Mar 17 21:30:51 you have a fun car to drive? Mar 17 21:31:00 <_genuser_> mustang v6, manual. Mar 17 21:31:10 nice, i bet you enjoyed those roads then Mar 17 21:31:13 <_genuser_> was annoying sometimes to keep shifting. but it was new then. Mar 17 21:31:30 <_genuser_> Yeah I tried to hit 110 and take a picture... (not exactly the safest of action on a winding road). Mar 17 21:31:37 haha yeah Mar 17 21:32:01 when i made my drive back from texas i hit my governor at 155 and wanted to take a picture but was too scared to take my hands off the wheel Mar 17 21:32:03 <_genuser_> drove it down to santa monica beach a few times. stopped by pfchang's. Mar 17 21:32:26 <_genuser_> heh, do'nt think mine'd cross 115-120. Mar 17 21:32:35 <_genuser_> I'd need a downhill road. Mar 17 21:33:07 i need to get the governor removed and do a couple mods so i can reach my dream of breaking 200 Mar 17 21:33:40 i guess i could go to one of those track things where you rent a car or whatever but that’s not the same Mar 17 21:34:12 <_genuser_> heh. Mar 17 21:34:45 <_genuser_> 200 in a car is kinda scary, heh Mar 17 21:34:52 yeah, that’s the point lol Mar 17 21:36:29 going back to austin in a couple months to do the AMG driving academy at the circuit of the americas Mar 17 21:37:20 <_genuser_> one of my co-workers said he hit 160 on his bike and was afraid to even slow down. Mar 17 21:37:39 <_genuser_> personally I've only done 100 on a bike on a service road and I was like, what am I doing... Mar 17 21:37:50 yeah that seems scary as shit Mar 17 21:38:01 <_genuser_> it's just too scary to do that on the road tho. people are busy with their cell phones. Mar 17 21:38:03 i havnt really ever ridden a real motorcycle but everyone tells me 60 feels like 120 Mar 17 21:38:10 <_genuser_> you can argue all you want that they need to pay attention, but they don't and that's about it. Mar 17 21:38:16 i can’t imagine what 100+ would feel like then Mar 17 21:38:36 <_genuser_> 60 to me feels like 120 when ride it for the first time a a long time. Mar 17 21:38:39 lol yeah, there’s no argument that trumps your mangled body on the freeway Mar 17 21:38:42 <_genuser_> I find I'm going 40 and people are passing me. Mar 17 21:38:53 <_genuser_> but a few days on, I look down and I'm doing 60 and it just feels casual. Mar 17 21:39:28 good dev talk Mar 17 21:39:29 <_genuser_> so I just use it mostly for driving around town and I try my best not to do any crazy stuff that I normally do in the car. Mar 17 21:39:37 <_genuser_> MartialLaw: so it dev land. join in. Mar 17 21:43:39 <_genuser_> I remember those trans ams havinga governor at 110. Mar 17 22:22:14 hm ok , i guess i misunderstood this. looks like the bottom navigation does behave like iOS Mar 17 22:22:45 "The bottom navigation bar remains in view when navigating through the app’s hierarchy." Mar 17 22:23:27 "Navigation through the bottom navigation bar should reset the task state." Mar 17 22:23:37 so it seems like everything in once activity Mar 17 22:23:40 *one Mar 17 22:23:44 lol, fun Mar 17 22:26:22 well, just like the nav drawer, it is possible to use it with each thing going to a different activity Mar 17 22:26:40 although I’d wager the bottom nav would be less of a pain in the ass to do Mar 17 22:32:57 i couple of times i though, it would be easy to have master / detail in this tab (have tabs stay in place / task stack) but it was frowned upon in roman nurik's video. but seems its now the new thing Mar 17 22:33:43 but crap, if you use bottom nav, using tabs is not recommended Mar 17 22:33:56 nav drawer + tabs is pretty workable though Mar 17 22:34:06 Any possible reason for this code http://pastebin.com/raw/XHiuEU08 to be throwing cannot inflate class MyRowLinearLayout? It's what it's trying to inflate in qual_row Mar 17 22:40:25 Twirl, i guess the error is in your MyRowLinearLayout file Mar 17 22:40:50 class? Mar 17 22:40:56 yes Mar 17 22:41:11 it's extending LinearLayout Mar 17 22:41:30 but it doesnt do much it's pretty basic Mar 17 22:41:35 i could try with a normal linear layout Mar 17 22:41:54 read the stacktrace Mar 17 22:42:24 it could be the usual recycler view error Mar 17 22:42:29 but i can't see the full stack trace Mar 17 22:42:32 for some reason Mar 17 22:42:39 of "executing in main thread" or something Mar 17 22:43:06 how do you see the rest of the log file? Mar 17 22:43:15 whats missing Mar 17 22:43:24 nvm it worked changing it to a LinearLayout Mar 17 22:43:31 so u were correct Mar 17 22:50:45 good old default! Mar 17 23:12:40 Hey.. anyone know a good library htat ports JAXB to android ? Mar 17 23:14:32 i need to un + marhsall some xml stuff Mar 17 23:22:57 use something android appropriate Mar 17 23:24:28 pfn: https://github.com/plutext/jaxb-2_2_5_1/tree/undefined <- can you tell me quickly how to compile this for the lib? its a port to android of jaxb Mar 17 23:27:43 404 ^^ Mar 17 23:28:36 https://github.com/plutext/jaxb-2_2_5_1/ Mar 17 23:30:21 no docs. screw it Mar 17 23:30:39 https://github.com/plutext/jaxb-2_2_5_1/blob/master/HOWTO-build.txt Mar 17 23:30:56 content: Two words. "ant dist" Mar 17 23:30:59 ? Mar 17 23:31:05 is this linux terminal stuff ? Mar 17 23:31:11 lol Mar 17 23:31:18 my nexus 6p is one county over at the UPS station Mar 17 23:31:25 I want it right now dammit Mar 17 23:31:37 lol Mar 17 23:31:44 google ant Mar 17 23:34:09 apache ant ? Mar 17 23:34:18 ViewHolder only lets me see elements inside of it, any way to see the container ? Mar 17 23:34:51 Recyclerview is the container. Mar 17 23:34:52 ant is how java projects were built in the olden days bubbely Mar 17 23:35:00 viewHolder.myTextVIew works but viewHolder.myLinearLayout doesn't Mar 17 23:35:14 danijoo: it's a linear layout Mar 17 23:35:27 nowadays all the cool kids are using gradle Mar 17 23:35:35 that has a text view inside of it Mar 17 23:36:02 i can see the text view but not the linearlayout that contains it Mar 17 23:36:34 missingno: apache ant the only working version ? Mar 17 23:36:41 u can see what you set to it Mar 17 23:37:50 oh yea i think i forgot to add the layout to the view holder Mar 17 23:38:54 missingno: can u compile this for me and send me the .jar .... i dont have a linux pc and support stopped in windows 95 Mar 17 23:39:47 lol Mar 17 23:40:55 pls ? Mar 17 23:41:15 bubbely, ant works fine on every windows version Mar 17 23:44:00 danijoo can u compile it and send it to qwill@outlook.com for me? im having 2 much trouble with ant Mar 17 23:44:40 no Mar 17 23:44:48 that is a neat email address though Mar 17 23:44:53 good for you bubbely Mar 17 23:45:50 if downloading ant and typing `ant dist` is too much for you, android dev might not be the right thing ;) Mar 17 23:50:28 or just read the xml by your own without that class binding. (or drop xml) Mar 17 23:51:48 danijoo atom 1.6, your favorite editor is out ! Mar 17 23:52:17 now twice as fast as before (still slower than handwriting) Mar 17 23:54:07 g00s, are you using atom? Mar 17 23:54:18 what do you think makes it better than sublime? Mar 17 23:54:29 yeah, but i just have it open with a bunch of projects to browse / search Mar 17 23:54:41 not writing code in it Mar 17 23:54:44 thats what I use sublime for Mar 17 23:54:56 secondary projects to copy paste code :p Mar 17 23:54:59 and still use vim to edit config files, etc Mar 17 23:56:50 danijoo i think they can make it faster, VS Code on electron is pretty snappy ... Mar 17 23:57:17 still don't get why anyone would code in coffeescript now though ;) Mar 17 23:57:59 for some reason i'm not being able to set the font color from inside the recycler view adapter as before with setSpan Mar 17 23:58:29 i mean, wasnt using the recycler adapter or a fragment Mar 17 23:58:38 but it should work, idk why it doesnt Mar 17 23:59:25 http://imgur.com/jacoj Mar 17 23:59:47 idk if that was for me but i don't see any errors Mar 17 23:59:55 yes it was :) Mar 18 00:00:11 replace stacktrace with code Mar 18 00:00:12 well i don't see any errors, it's just not setting the color as before Mar 18 00:00:27 danijoo who are you talking to ? Mar 18 00:00:49 it's only 3 lines, SpannableString myString = new SpannableString("Hello"); Mar 18 00:01:05 g00s, Twirl Mar 18 00:01:25 Twirl, nvm. if you cant post code... Mar 18 00:01:57 myString.setSpan(new BackgroundColorSpan(Color.parseColor("#FFFFFFF"), 0, string.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); Mar 18 00:02:17 that was working fine until i moved it inside my recycler view adapter Mar 18 00:02:21 that i'm calling form my fragment Mar 18 00:02:55 maybe i should change the flag? Mar 18 00:02:57 Twirl, if you want any help in here, post your code with some code paste tool and show it. we cant help you without seeing your current code. Mar 18 00:03:11 danijoo: it's those 2 lines Mar 18 00:03:52 thats a very short recycleradapter with a textview if its only 2 lines long. Mar 18 00:03:58 context is everything Mar 18 00:04:21 but I see your error: you didnt set the text to any view in this 2 lines ;) Mar 18 00:04:24 Twirl: Why are you arguing? It’s not difficult to post code Mar 18 00:07:16 yea anyways i'm moving it to somewhere else Mar 18 00:07:32 is it possible to set it in an alertDialog? Mar 18 00:28:26 stupid AS keeps beachballfreezing when debugger is connected Mar 18 00:37:14 is it possible to append to spannablestring or add multiple spannable'd strings together Mar 18 00:38:31 hey guys Mar 18 00:39:24 is it bad to have a websocket connection permanently opened for the during of my app? Mar 18 00:39:55 no Mar 18 00:39:58 but will that work in M Mar 18 00:40:23 missingno, will it work in what? Mar 18 00:52:32 how do you getSupportFragmentManager without extending FragmentActivity ? Mar 18 00:53:40 nvm Mar 18 00:56:36 Html.fromHtml("" +text + "") doesn't work in dialogs :( Mar 18 00:56:50 not even in https://github.com/avast/android-styled-dialogs Mar 18 00:57:08 how do you style text in dialogs ? Mar 18 00:58:32 anyone knows ? Mar 18 01:19:41 Anyone deal with the issue of using a recyclerview and the last textview getting cut off? Mar 18 01:23:02 and I think I realize whats wrong aha Mar 18 01:23:54 Sometimes just asking a question to the chat channel somehow feeds back an energy to realize small possible errors Mar 18 01:25:04 rubber duck debugging Mar 18 01:29:29 can someone help me compile using ant Mar 18 01:31:07 anyone here have any experience working with socket.io on android? Mar 18 01:33:21 sector_0: for what Mar 18 01:34:03 I'm building a game and I want to do the networking in a separate thread to avoid it blocking my UI thread Mar 18 01:34:38 So I want to know if I construct the handlers in a separate thread, if the events will be handled in that separate thread Mar 18 01:35:53 sector_0 like in the background as a Service? Mar 18 01:37:20 Lonesoldier728, well I'm not really sure about the android notion of a "service", but I'm constructing the thread using "new Thread( new Runnable(){ ... } )" Mar 18 01:39:26 Apparently the recyclerview lagging on scroll is a hot topic, I dont understand why it is better than a listview with a viewholder implemented in the adapter... after 5 list items in my code it is lagging and I cant figure out why? Especially since the images are from the drawable folder Mar 18 01:41:23 orbyt_, ? Mar 18 01:41:31 sector_0: ? Mar 18 01:42:26 orbyt_, I thought you were gonna attempt to answer Mar 18 01:43:52 socket.io is just a real time web framework, if you wanna use it on android you have to use their java client port to communicate with your server. Not sure how this is related to android. Mar 18 01:48:42 So here is my recyclerview mess if anyone can take a crack at it Mar 18 01:48:43 http://stackoverflow.com/questions/36074751/recycler-view-laggy-on-scroll-up-and-down Mar 18 02:00:11 Hello, I am using Android Studio on Windows 10, Intel i7 Q740M, 6GB RAM and AMD Mobility Radeon HD5000 laptop... I am experiencing lags just typing several lines of code on the IDE... Are there any things I can do or my laptop is just too bad for Android Studio? Mar 18 02:02:22 I have 4gb of ram and it is fine whitesn Mar 18 02:02:48 do you have multiple programs running or a bunch of garbage files on your harddrive or something Mar 18 02:04:37 Lonesoldier728: just browsers, email client ,skype Mar 18 02:05:12 did you run some kind of monitoring tool to see what is going on, because it has to be a memory issue if it is lagging Mar 18 02:05:22 something is sucking the life out of your memory outside of android studio Mar 18 02:06:01 75% memory usage now Mar 18 02:06:06 on task manager Mar 18 02:06:30 1.5.1 Mar 18 02:06:58 look at the system req by android studio and make sure they all are available Mar 18 02:07:14 make sure you have enough harddrive free space as well Mar 18 02:07:43 and get rid of junky software, if I were you and it has been a while since you reformated, backup everything and reformat Mar 18 02:07:53 and only download softwares you nee Mar 18 02:07:54 need Mar 18 02:07:57 hmm less than year since I hard format the computer Mar 18 02:08:09 but this is 65 years old laptop so maybe that is why? Mar 18 02:08:12 5 years* Mar 18 02:08:40 maybe, I never had issues and one of my laptops are about 5 years old too Mar 18 02:09:02 but I do keep it clean of any softwares that are unnecessary Mar 18 02:13:30 I don't think it's not that bad.. about 10G free on C drive and 100GB free on drive where I installed Android Studio Mar 18 02:18:13 yeah best I can do from here Mar 18 02:18:44 Have you had issues with any other IDEs or this is your first time using one Mar 18 02:24:33 How much space do i need for aosp of 4.4.2??? it's already over 30GB and still downloading!!!! Mar 18 02:24:52 Lonesoldier728: I used eclipse with no problems Mar 18 02:39:58 whitesn i used eclipse the other day, felt like i was using vim Mar 18 02:40:08 idea is pretty laggy Mar 18 02:48:47 delt, 90gb Mar 18 02:49:31 pfn: whoa.... does that include the temp build files, or does it actually download 90gb of stuff? Mar 18 02:50:31 "At least 100GB of free disk space for a checkout, 150GB for a single build, and 200GB or more for multiple builds. If you employ ccache, you will need even more space." Mar 18 02:50:46 Leeds: that's for 4.4? Mar 18 02:51:07 that's a general requirement Mar 18 02:51:17 ok, so applies to newer versions Mar 18 02:51:30 i compiled 4.1.x for a cheap tablet a few months ago, and it was much smaller Mar 18 02:56:45 g00s: I tried on another machine i3 4005U, 8G RAM, GeForce740M and still laggy as well Mar 18 02:56:51 might it be windows 10 problem? Mar 18 02:57:03 g00s: I thought eclipse was way laggier Mar 18 02:57:40 idea can barely keep up with my typing sometimes Mar 18 02:57:45 but its better than eclipse Mar 18 02:58:35 i am on Android Studio build 1.5.1 Mar 18 02:59:47 I don't even mind long compile time, just typing or navigating through files are laggy **** ENDING LOGGING AT Fri Mar 18 02:59:58 2016