**** BEGIN LOGGING AT Tue Jan 26 02:59:58 2016 Jan 26 03:01:58 JakeWharton wrote lessres experimentally or something like that Jan 26 03:06:14 there was a reddit post recently about a styles dsl Jan 26 03:06:35 LessRes looks like a good idea ... Jan 26 03:23:50 g00s: i'm not following sorry Jan 26 03:23:54 forgot what i said Jan 26 04:17:19 "experimentally" Jan 26 04:17:26 more like noobly Jan 26 04:18:17 the idea is based in sound reasoning but damn that was 6 years ago now. sooo noob Jan 26 04:31:44 still better than nothing Jan 26 04:52:25 bug 56608 (BT support in emu) got updated :) Jan 26 04:52:33 which emu Jan 26 04:52:36 new one ? Jan 26 04:52:56 this one is years old, its just a tracker for a feature Jan 26 04:53:25 maybe google was waiting on shifting to the new emus before doing this Jan 26 04:56:05 uhh why does using @id/xxxx when referrencing an id in xml not work all the sudden -.- Jan 26 04:56:18 but @+id/xxxx works... Jan 26 05:02:40 because the id doesn't exist yet, duh Jan 26 05:03:17 its defined right below it @ pfn. Its an include, perhaps thats why? Jan 26 05:03:36 but still why would @+id work but not the usually @id Jan 26 05:03:59 always use @+id Jan 26 05:04:12 except when you're within the same file Jan 26 05:04:53 i was under the impression @+id is only when defining a new id...whats the difference between the two then? Jan 26 05:05:05 that's exactly what it's for Jan 26 05:06:27 pfn: screenie: http://prntscr.com/9ux8hs <--this doesnt build Jan 26 05:07:17 bottomBarTwo doesn't exist Jan 26 05:07:26 not until you hit the include Jan 26 05:07:32 => error Jan 26 05:07:48 that's like saying, System.out.println(foo); int foo = 1; in code Jan 26 05:09:46 ^what? So i guess throwing the include before the FrameLayout that references the id works, so I guess the layout order is important for more than z-ordering? Jan 26 05:10:42 no Jan 26 05:10:47 lexical order is more important Jan 26 05:11:07 if you want to do what you're doing, then you would put the @+id in the layout params Jan 26 05:11:11 and no + in the include Jan 26 05:13:31 to confirm, are you saying i should put the @+id on the actual root view that is defined in the include? Or are you saying use @+id when defining layout_above? Jan 26 05:13:50 the latter Jan 26 05:14:09 well i guess im back to my original question then, isnt @+id for defining a new id? Jan 26 05:14:16 yes, it is Jan 26 05:14:30 it is for generating a new value for id/foo if one does not exist yet Jan 26 05:14:39 where it is used in relation to android:id is irrelevant Jan 26 05:15:40 so: http://prntscr.com/9uxaic Jan 26 05:17:06 sure Jan 26 05:17:44 thats so odd lol. Im trying to find some SO answers about it... Jan 26 05:18:28 what's so odd about it Jan 26 05:20:53 because im not "defining" the includes id there. If the + sign means im adding that id to the projects resources, then why would I add it when referencing it rather then when defining it on the include itself. Jan 26 05:20:55 how else could you possibly expect it to behave Jan 26 05:21:08 you are exactly defining it there Jan 26 05:21:09 again Jan 26 05:21:25 it's like you're trying to do something like System.out.println(foo); int foo = 1; Jan 26 05:21:27 it doesn't work Jan 26 05:23:20 i mean i understand that reference, but i dont understand how it directly applies, as i havent switched the order that ive defined the layout in Jan 26 05:23:37 @+id simply means create a new ID value Jan 26 05:23:42 where it's used is irrelevant Jan 26 05:23:57 if the ID already exists, use the value that already exists, otherwise create it Jan 26 05:24:07 there's nothing else to it Jan 26 05:24:21 so if im doing layout_above="@+id/bottomBar", how does it know what views im referencing? Jan 26 05:24:44 if its being defined at that moment Jan 26 05:24:48 it knows you're referencing bottomBar Jan 26 05:25:20 but arent i creating the bottomBar id in that very definition? Jan 26 05:25:50 @+id/bottomBar = Integer id = idMap.get("bottomBar"); if (id == null) idMap.put("bottomBar", makeNewId()); return idMap.get("bottomBar"); Jan 26 05:26:01 @id/bottomBar = idMap.get("bottomBar") Jan 26 05:26:05 that is all Jan 26 05:28:11 thanks, i guess i need to look into it more. Jan 26 05:29:02 what's to look into Jan 26 05:29:20 what I just pseudocoded explains what it does, precisely Jan 26 05:31:06 oh, neat, afrin can help with plugged eustachian tube Jan 26 05:31:41 @pfn Jan 26 05:31:43 woops Jan 26 05:31:54 normal practice is to just use @+id everywhere, it's not worth it to try to treat it differently Jan 26 05:31:54 @ pfn just not clicking for some reason Jan 26 05:32:02 unless you're using pre-defined IDs Jan 26 05:32:39 im just thinking its exactly like your example with defining 'foo' after using Sys.out.print Jan 26 05:32:55 how can you reference it before its defined Jan 26 05:33:07 @+ is what defines it, *NOT* android:id Jan 26 05:33:28 the Map example above describes EXACTLY WHAT IT IS Jan 26 05:34:01 yes i know, thats my point, why am i defining another views id when im referencing it. its twisted Jan 26 05:34:24 you're not defining it Jan 26 05:34:30 you are generating a numeric value, that is all Jan 26 05:34:59 the numeric value means nothing by itself Jan 26 05:35:40 so why exactly cant i "generate" the numeric value inside the tag and then reference it with @id Jan 26 05:36:02 .... Jan 26 05:36:09 because it's not generated yet Jan 26 05:36:17 YOU CANNOT REFERENCE SOMETHING THAT DOESNT EXIST Jan 26 05:36:25 because of ordering correct? Jan 26 05:37:21 then what is it generating a numerical value for if it doesnt exist yet Jan 26 05:37:28 thats whats confusing Jan 26 05:38:22 wtf are you talking about Jan 26 05:38:41 @id is a Map Jan 26 05:38:46 @+id throws something into that Map Jan 26 05:38:54 if it doesn't exist Jan 26 05:38:58 @id only retrieves Jan 26 05:39:10 that is all @id is Jan 26 05:39:25 it has no meaning until you put it in something like android:id Jan 26 05:40:30 pfn: relax, breathe ! Jan 26 05:40:52 lol hes helping me, let him be Jan 26 05:41:18 orbyt_: he already told you the answer Jan 26 05:41:35 gordon_: sure, but i wasnt understanding it, which he was also helping with Jan 26 05:42:00 anyway thanks @ pfn, i think i get it. Jan 26 05:42:52 http://stackoverflow.com/questions/5025910/difference-between-id-and-id-in-android Jan 26 05:43:20 why do phones get slow all of the sudden? Jan 26 05:43:46 I take care of my stuff. Never broke a phone, but they seem to wear out after like 18 months Jan 26 05:44:01 you install more stuff Jan 26 05:44:11 with a lot of scheduled stuff Jan 26 05:44:13 and services Jan 26 05:45:05 gordon_: Marco W. comment under the first answer is what was confusing me. Jan 26 05:45:08 factory reset did nothing Jan 26 05:45:23 now my lock screen freezes and I can't unlock my phone sometimes Jan 26 05:45:26 hello Jan 26 05:45:40 pfn: do you sleep? Jan 26 05:45:51 orbyt_: why ? Jan 26 05:46:18 it generates the class with fields Jan 26 05:46:37 in class field declaration doesnt matter Jan 26 05:47:04 *field order declaration Jan 26 05:47:41 gordon_: because you dont do something like int foo = bar +1;, and then under it define int bar= 1; Jan 26 05:48:46 android:id is not the latter in your example. Jan 26 05:49:09 no @+id is Jan 26 05:49:25 no Jan 26 05:49:33 ... Jan 26 05:49:38 it's not one function Jan 26 05:49:40 it's a class Jan 26 05:49:43 go to R.java Jan 26 05:49:45 and check Jan 26 05:50:04 gordon_, that's confusing the issu Jan 26 05:50:04 first you create id with @+id Jan 26 05:50:21 and then write value to it when creating view in id Jan 26 05:50:26 pfn: sorry, Jan 26 05:50:51 going back to work ;) Jan 26 05:51:08 what is the topic here Jan 26 05:51:16 :) Jan 26 06:07:27 wow, brilliant http://devpost.com/software/ramear Jan 26 06:08:11 some interesting last few paragraphs ... http://www.anandtech.com/show/9972/the-google-pixel-c-review/8 Jan 26 06:09:46 paragraph starting "On top of the issues with this specific Android build, Android itself is simply too far behind the competition as far as functionality and apps are concerned." nails it Jan 26 06:11:51 it's pretty harsh Jan 26 06:12:29 harsh, but accurate Jan 26 06:12:53 true Jan 26 06:24:00 Hey guys Jan 26 06:25:05 If I want to insert an ads every 3 rows as a recyclerview item, where do i define the position? Jan 26 06:25:18 I forgot what is it called so I can't really google for it Jan 26 06:26:21 wow that sounds like an annoying app Jan 26 06:26:29 every 3 rows? Jan 26 06:26:48 No. I was just giving an example Jan 26 06:27:49 For example, I need to put an image below the 3rd row of my recyclerview item. Jan 26 06:28:03 Is that clearer? lol Jan 26 06:29:12 I'm passing different datasets to the adapter, I don't think using getItemViewTpye is suitable for this case Jan 26 06:29:39 Correct me if I'm wrong. Pretty new at RV Jan 26 06:31:26 There is a even number checker somewhere in the adapter if I'm not mistaken Jan 26 06:34:10 getItemViewType(int position) {return position % 3} why wouldnt that work? Jan 26 06:34:29 then use a different view depending on positino Jan 26 06:34:33 position* Jan 26 06:36:31 orbyt_ yes that's what i meant. Sorry for confusion :) Jan 26 06:37:45 then i just use position == 3 on binding. thanks though Jan 26 07:15:39 http://developer.android.com/training/permissions/requesting.html Jan 26 07:15:50 lastly they copied Apple approach Jan 26 07:53:08 https://www.youtube.com/watch?v=kP4OkSNcvjY Jan 26 08:45:33 hello.. i have this method being called from onpostexecute from asynctasks managed by a threadexecutor: http://pastebin.com/9fhUYRma but i have two problems with it.. it runs 256 threads but the progress ends with 255/256 Jan 26 08:46:20 also threadPoolExecutor.getTaskCount() flips sometimes to 255 and back to 256 in the process.. can u help me understand this? Jan 26 08:50:14 pressed state propagated to all child controls of the root viewgroup Jan 26 08:50:19 how to fix this? Jan 26 08:52:01 so you only want the viewgroup to consume the clicks? @ vigilancer Jan 26 08:52:33 orbyt_: nope, only child views Jan 26 08:52:51 to react on clicks Jan 26 08:53:47 they have selector as background so they all change color on click simultaneously Jan 26 08:54:15 but should react on click individually Jan 26 08:55:37 how are you setting the listeners? If you setting a seperate listener on each view im not sure how clicking on one would effect the others in the same viewgroup Jan 26 08:57:30 me neither. click on arbitrary point on background causes them all to fire up Jan 26 09:00:42 ah, fk. "rootView" is literally root view %| Jan 26 09:01:43 orbyt_: thanks) Jan 26 09:02:11 Guys, is it possible to inflate multiple ViewHolders inside onCreateViewHolder? Jan 26 09:03:49 br0mahn: why do you need to. there is 'viewType', just drop all your views in one view holder and handle depending on type Jan 26 09:03:51 br0mahn: pretty sure i answered that like an hour ago Jan 26 09:03:59 If I do return pos == 2 ? VIEW1 : VIEW2; in getItemViewType, second item of VIEW2 would not be visible as it has been replaced by VIEW1 Jan 26 09:05:00 you only want a different view type on position 2? Jan 26 09:06:14 orbyt_: Yes I did what you told. I want to "insert" a different view on position 2, without replacing original item on that position. Do you get what I mean? Jan 26 09:06:37 im not sure what you mean by replacing original item Jan 26 09:11:14 Um, nevermind. I guess separating datasets isn't a good idea in this case Jan 26 09:13:14 br0mahn: using different views is fairly simple, just override getItemViewType, return number needed, and throw a switch statement in your onCreateViewHolder to inflate different views Jan 26 09:13:54 br0mahn: now if you want to plug in different data depending on the position, youll need to coordinate that with how ever many different views your needing Jan 26 09:14:58 Hold on Jan 26 10:12:25 I have a log of messages rendered using a RecyclerView. I need to make sure that the view is kept at the bottom by default, so that updates coming in at the end are visible. At first I registered an AdapterDataObserver to see when an element was added/updated and then scroll to the bottom. However, it turns out that this thing fires _before_ the view been updated. Is there a way to be notified _after_ this has happened so that my scroll will scroll to th Jan 26 10:12:26 e right spot? Jan 26 10:57:17 wtf why cant you display a ProgressDialog from onResume() ? Jan 26 10:58:44 im pretty sure you can Jan 26 10:58:56 or at least I can :p Jan 26 10:59:02 not sure about u Jan 26 10:59:34 You can try, but it wont show. I have a method that instantiates it, and shows it. Calling that method from onResume doesnt actually do anything, but if i bind it to a button and call it that way, everything is fine Jan 26 11:00:06 show your code please Jan 26 11:00:40 i'd honestly rather see yours, if yours work :P Jan 26 11:02:02 liefer: It works fine. Jan 26 11:02:10 i dont have one by hand Jan 26 11:02:42 and usually people show the code they need to be debugged :p Jan 26 11:03:59 you dont need to show everything. just onResume Jan 26 11:04:03 TacticalJoke, ok. Jan 26 11:04:33 danijoo_, i would, but its a little bit difficult for me because of my setup Jan 26 11:04:44 liefer: That shows that you're not debugging correctly. Jan 26 11:05:26 Why not create the simplest possible code to try to show a dialog from onResume? Then you can verify that it works and compare this code to your real code. :) Jan 26 11:05:26 your setup does not allow copy/pasting code? :P Jan 26 11:08:39 you maybe only forgot to call show() or something but we can only assume without a paste Jan 26 11:09:05 hey guys, I have a requirement to make a RecyclerView item full height (minus header item height) which I do using the below code, however this obviously doesn't work if the height of the RecyclerView changes (such as when showing/hiding keyboard using windowSoftInputMode="adjustresize") Jan 26 11:09:28 I have tried listening to layout changes and then updating the itemview height but that leads to exceptions Jan 26 11:10:10 http://paste.ofcode.org/MqCRQaUBYG5UEYQx8GZuPY Jan 26 11:10:20 that's the code used to set the itemview to full height Jan 26 11:11:56 the first exception I get is if I move that code inside a OnLayoutChangeListener on the RecyclerView, I start getting casting exception from LinearLayout to RecyclerView LayoutParams. using RecyclerView.LayoutParams leads to a different exception Jan 26 11:12:30 denvar are you setting: android:fitsSystemWindows="true" in your layout xml root for the view? Jan 26 11:12:57 JitanRo: on the RecyclerView yes Jan 26 11:13:56 for the root or for the recyclerview itself? Jan 26 11:14:18 The exception I get when trying to use RecyclerView.LayoutParams inside the OnLayoutChangeListener is from inside RecyclerView.java: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.support.v7.widget.RecyclerView$ViewHolder.getLayoutPosition()' on a null object reference Jan 26 11:15:13 D: no it's not set on the root in this layout Jan 26 11:15:57 try it on the root Jan 26 11:20:15 it's the whole view that needs to fit not just the recyclerview. That's how I've done it, not with recyclerview but with listviews and other views and it's working well Jan 26 11:20:39 can anyone help me with adding items to recycler view . Jan 26 11:21:17 i can add an item to the list but Jan 26 11:21:40 the list below the added item first flashes and then it is shown..i dont think this is the default animation...any help? Jan 26 11:23:14 batdroid_, not without code Jan 26 11:23:47 JitanRo: thanks for the tip, I added to the root view and still getting the 2 exceptions depending on how I set the layoutparams of the itemview: http://paste.ofcode.org/VDeBFTLQs29X3uPV6VJmeQ Jan 26 11:24:18 denvar try it without any listener, shouldn't be needed I think Jan 26 11:24:39 danijoo_: http://paste.ofcode.org/U6Shy8AdjJNLcCEK6TPcVs Jan 26 11:24:53 above is the mainactivity file Jan 26 11:25:18 and this is the adapter Jan 26 11:25:20 http://paste.ofcode.org/VRc3pbGpsmbMrvnUskz2K6 Jan 26 11:25:35 Hello guys, I have a layout with a black background. If I add a CheckBox, I can see nothing, the whole checkbox is black too. I can change text color to see at least its text, but I can't change the square border of the checkbox, so it looks invisible. How to deal with that? Jan 26 11:26:48 JitanRo: my issue is that the RecyclerView height changes (due to keyboard showing/hiding) and I need to resize the itemView when that happens Jan 26 11:27:16 batdroid_, this should work. can you show a screenshot of whats wrong Jan 26 11:27:18 or video Jan 26 11:27:32 danijoo_ wait a sec Jan 26 11:28:04 Number5, i thint colorControlNormal and colorControlHighlight are the attributes that style the checkbox Jan 26 11:28:06 denvar ah, got it, haven't done that I'm afraid Jan 26 11:28:08 think * Jan 26 11:28:53 JitanRo: hah no worries, thanks for catching my other error though :D Jan 26 11:29:11 danijoo_, thnx my friend, I'll try that. Another question, does Checkbox have a theme color, like dark or light? Jan 26 11:29:14 :) Jan 26 11:29:58 Number5, Number5 the highlight colors are part of your theme :) Jan 26 11:30:05 so the answer is kinda yes Jan 26 11:31:40 danijoo_, thnx I think I have to study the theme stuff. There problem is, I read some time ago that since Android 5.0 and higher there is not dark theme anymore. Jan 26 11:32:21 Just one theme, the one with white background and the rest is up to you. Jan 26 11:32:39 In this case up to me. Jan 26 11:33:37 danijoo_: http://img.ctrlv.in/img/16/01/26/56a7595393bca.png Jan 26 11:34:21 batdroid_, what should this show me Jan 26 11:34:24 denvar good luck if you figure it out and don't mind sharing a code sample that'd be cool, might need to do something similar in the near future Jan 26 11:34:24 danijoo_ at the end of screenshot you will see two faded items..they are actually fading in from complete Invisibility after adding number 15 Jan 26 11:35:17 danijoo_,as i added the 15 above 4 the list below 4 flashed alongside with 15 and then it appeared with fade in animation Jan 26 11:36:08 a video would really be helpful :/ Jan 26 11:44:37 danijoo_, I just want to say: Thank you :) Jan 26 12:08:35 danijoo_? Jan 26 12:11:44 please remind a name of non-default emulator software? Jan 26 12:14:59 JitanRo: ok the issue was keeping hold of final RecyclerView.ViewHolder when binding, and referring to that in the OnLayoutChangeListener. Solution was to get the child view from RecyclerView Jan 26 12:15:00 http://paste.ofcode.org/7TYvtSzdXW4gssfEqtYet2 Jan 26 12:22:44 danijoo do you have any idea why that is happening.. Jan 26 12:22:47 ? Jan 26 12:23:21 batdroid, i just reconnected. I havent seen what you wrote the last 10 minutes Jan 26 12:23:45 denvar nice one, thanks for sharing! Jan 26 12:23:45 i last gave you the screenshot Jan 26 12:24:37 batdroid, i dont see anything wrong with the screenshot. maybe a video gives more insight Jan 26 12:24:45 the screenshot shows just a list.. Jan 26 12:25:39 danijoo:how can i record my screen,any idea?idk Jan 26 12:26:45 google is rich of ideas :0 Jan 26 12:28:49 hi guys, i got the same problem as this -> http://stackoverflow.com/questions/20237743/android-firewall-with-vpnservice Jan 26 12:30:01 i am trying to send only tcp packet for now, and it doesnt wrok. i connect to the destination but i dont get response Jan 26 12:31:02 and the answere above doesnt explain how to create the socket and rebuild the header and make a perfect copy.. does someone can help please? Jan 26 12:34:02 where do you get ActivityCompat from Jan 26 12:35:03 squ, support library v7 Jan 26 12:35:27 but pointer to it? Jan 26 12:35:30 danijoo am i still not specific enough :/ Jan 26 12:35:36 like this from Activity Jan 26 12:35:42 ‘this’ Jan 26 12:36:40 Bored, my experience with vpn is nonexistant as it was yesterday Jan 26 12:36:59 squ, can you be more specific? Jan 26 12:37:21 danijoo, its not about vpn, more ab out sockets but thanks anyway Jan 26 12:37:23 sorry, I figured that :) Jan 26 12:39:32 where i can get help about that ? :X Jan 26 12:43:01 danijoo,here is the video link http://sendvid.com/pu585697?secret=d6d820f9-9cfb-4e82-8291-96cdec992723 Jan 26 12:44:28 batdroid: https://github.com/squm/template_recyclerview Jan 26 12:45:55 batdroid, can you show your adapter again please Jan 26 12:46:31 http://paste.ofcode.org/CqjaVZLPxCFGjMsw2ciw3e Jan 26 12:47:13 and item_layout.xml or item_layout_2.xml. Jan 26 12:47:27 or better both :p Jan 26 12:47:46 item_layout.xml Jan 26 12:47:47 http://paste.ofcode.org/Ds3fZyC8zsnBHuPNAUgDXw Jan 26 12:47:54 item_layout_2.xml Jan 26 12:48:14 http://paste.ofcode.org/jN5Ac4GhkLteQMR6cHuAmW Jan 26 12:49:46 batdroid, try setting the items height to wrap_content Jan 26 12:50:11 (line for on both) Jan 26 12:50:44 wait..its building..i changed the code Jan 26 12:52:26 nothing happened...wait,you wanted me to change the relativelayout height to wrapcontent right? Jan 26 12:52:59 yes. I thought it might be that the recyclerview resizes the layout to use full screen while the animation plays Jan 26 12:53:05 but seems to be not the case :/ Jan 26 12:53:17 what is your problem? Jan 26 12:56:18 sorry got disconnected.. Jan 26 12:56:57 what is the problem? Jan 26 13:01:28 Hello there. My current UI design looks like this: MainActivity (implements navigation drawer) per Navigation drawer item click fragment kicks in. In default (home) fragment I have floating action button. When user clicks new activity opens where user can add some text and stuff... now how do I transfer data back to fragment (from this second activity)? Jan 26 13:03:31 frojnd, onActivityResult Jan 26 13:04:45 danijoo, thank you will check it out. Jan 26 13:44:32 Hello there. I'm trying to reject a call programatically by emulating a bluetooth headset. I'm able to get acceptCall to run, but rejectCall does nothing. What's the proper way to reject a call programatically? I'm currently testing on a Samsung Galaxy Nexus running 4.3. Current snippet for accept/reject: http://pastebin.com/1Jm4VwDG Jan 26 13:45:35 I have had a look at SO answer, but it looks like any alternatives offered there require me to have permissions of a system app, but Im writing a regular app as a service: http://stackoverflow.com/questions/15481524/how-to-programatically-answer-end-a-call-in-android-4-1 Jan 26 15:02:02 do you know how long the location on Android is served from Google Play Services ? Jan 26 15:02:07 I know this is OT: does anyone use a good Linux touch environment of any kind? Wondering what a good desktop environment for running regular Linux (not Android) on a touchscreen might be, if anyone has experience with one. Jan 26 15:02:20 ech0s7, forever. Jan 26 15:07:41 I’m looking to hire somebody on a contract basis who is an Android & iOS developer Jan 26 15:08:42 see topic Jan 26 15:09:13 :( Jan 26 15:10:37 120k€/year im yours :E Jan 26 15:10:56 I offer 119.999,99 Jan 26 15:11:08 fine XD Jan 26 15:11:22 I offer a ban for anyone who continues this conversation Jan 26 15:12:03 : D Jan 26 15:18:23 23 Jan 26 15:18:27 oops, sorry Jan 26 15:29:02 how do I run gradle offline Jan 26 15:29:47 oh sweet I have found instructions on google for AS 0.5.4 Jan 26 15:30:06 missingno, there's --offline Jan 26 15:30:12 > If you specify dependency versions using "+" (e.g. 0.8.+) Gradle (not Android Studio) will check that you have the latest version of such dependency periodically (every 24 hours,) even in offline mode Jan 26 15:30:23 I do have a lot of +'s Jan 26 15:30:29 never use wildcard dependencies Jan 26 15:30:35 that is always wrong Jan 26 15:30:37 tell that to my colleagues Jan 26 15:31:40 this may be an excuse to blow them away... "sorry guys my internet is shitty" Jan 26 15:31:50 So, after being annoyed by not being able to find a nice lib to handle preferences on Android in a simple manner, I decided to write my own Jan 26 15:31:52 sooo much easier Jan 26 15:32:24 <_SASDOE> Hey all. I am trying to use the calendar view. In the design tab for the layout there are buttons that do not appear when I run the program. Instead I get a scrollable calendar which is not what I want at all Jan 26 15:32:48 justJanne: Does it use SharedPreferences under the hood? Jan 26 15:32:59 yes, that’s the idea, a simple wrapper for that, but typesafe Jan 26 15:34:28 https://gist.github.com/justjanne/69f22fba18279a32369c Jan 26 15:34:56 Each type of preference – say, IntPreference – has a .get() and a .set(), also each can set a separate OnChangeListener for each preference Jan 26 15:35:26 so I can simply do in my final class settings.themeId.get() or settings.themeId.addChangeListener(newThemeId -> doStuff(newThemeId)); Jan 26 15:38:45 (the second file obviously is in the build folder, so you’ll never have to see it) Jan 26 15:39:27 So looking through the source code of an android app, I've found files inside assets/bin/data, However, these lack .filetype. Opening some of them in notepad seems to be C/++/# code, some are just filled with giberish such as "BZÐY5ryàŸ" and so on. Any idea what they could be? Jan 26 15:41:20 So, you see, TacticalJoke, just a simple annotation processor to make my life easier Jan 26 15:43:10 They are some that ends with .resource, however others have no ending. Tried various things, but cant figure out what they are. My best guess is resource files, tied to UnityPlayer. However, encrypted. Any ideas? Jan 26 15:43:44 maybe not encrypted, but just binary? Jan 26 15:43:51 otherwise none of them would be readable Jan 26 15:45:21 when you say you're looking through the source code... Jan 26 15:46:54 Iriz, Unity engine resources I guess. Jan 26 15:47:07 Mono compiled code? Jan 26 15:47:16 It's probably optimized and obfuscated though. Jan 26 15:48:52 Perhaps, could be. It seems to be tied to libmain.so however, i could be interpreting it wrong Jan 26 15:49:45 The thing is, you're looking into a Unity game. Jan 26 15:49:59 Which ships it's own C# language runtime and code. Jan 26 15:50:08 And has it's own resource formats and pretty much everything. Jan 26 15:50:09 :) Jan 26 15:51:14 justJanne, eh, you can do type-safe settings by creating something like Setting { T get(); set(T); } and then having class StringSetting extends Setting { get/set }; etc. etc. Jan 26 15:51:18 justJanne, no annotation foolery Jan 26 15:52:24 but I suppose you already have the typed wrapper settings Jan 26 15:52:27 and this just generates it, or something Jan 26 15:54:10 pfn: Yes, exactly Jan 26 15:54:26 but yeah, I've been doing this sort of thing for years Jan 26 15:54:26 this automagically generates that stuff Jan 26 15:54:33 without generating settings Jan 26 15:54:38 I just couldn’t find something to do it automatically, Jan 26 15:54:53 as I wanted to be able to add/remove and prototype with the settings quickly, Jan 26 15:55:05 which I now can (adding/removing one is a single line of code) Jan 26 15:55:14 https://github.com/pfn/qicr/blob/master/src/main/scala/com/hanhuy/android/irc/SettingsActivity.scala#L29-L83 Jan 26 15:55:17 same idea, but in scala Jan 26 15:56:08 Mavrik: Well, it could be, I've pretty much got everything decompiled and deobfuscated except the .so files and these random files. I cannot find the majority of game data anywhere. No IP adress that connects to the server or anything. I'm guessing these files have something todo with it Jan 26 15:56:25 Iriz, of course. Jan 26 15:56:27 It uses .dll files aswell, however these seem to have little use Jan 26 15:56:32 Iriz, since you're not looking for Java code. Jan 26 15:56:48 Unity packages compiled C# code as a resource and then executes it via their own runtime. Jan 26 15:57:27 pfn: yup: https://gist.github.com/justjanne/69f22fba18279a32369c#file-03_types-java Jan 26 15:57:34 it's possible to write a file over usb from android to pc ? Jan 26 15:57:44 using nexus 5 Jan 26 15:57:53 Iriz, you dont really have a chance to get into that files until you find a way to decompile unity generated stuff. And I doubt theres a way to Jan 26 15:58:32 Yea but shouldnt it be able to be recognized in de4dot in such case? It just says it's a non C file pretty much Jan 26 15:59:00 justJanne, yes, except verbose java :p Jan 26 15:59:32 Iriz, I don't know much about Unity but I think they don't pack code in standard format :/ Jan 26 16:01:06 well, pfn, that’s exactly why I used an annotation processor ;P Jan 26 16:02:59 It makes sense tho as Unity default resources is pretty much readable C code, someparts left out as oddtext. So I guess Unity could be obfuscating as it compiles Jan 26 16:03:25 C? Jan 26 16:03:35 unity is c# Jan 26 16:03:49 My bad, ment to say c# Jan 26 16:06:16 <_SASDOE> Can the fact I cannot see the month buttons in the calendar view and instead have an infinite scrolling calendar have anything to do with running android's version running on the test device ? Jan 26 16:15:15 Ah so I figured out the Unity problem, the .dll files lists alot and can easily be deofuscated. The files I was talking about is .assets and .resource files, that is nonobfuscated. Just apparently needs its own "Unity Model Viewer" sort of Jan 26 16:21:06 anyone tried Quasar on Android? Jan 26 16:21:50 ech0s7: looking for "adb pull" Jan 26 16:22:04 vigilancer: yes i know Jan 26 16:22:05 is it possible to force the recording framerate on a s6? Jan 26 16:22:21 but i want write data in realtime from android device to pc Jan 26 16:22:26 basically i have bad light quality which drops the fps to ~16 and i would like to bypass this and keep 30fps Jan 26 16:22:33 i don't want to pull them every ....sec Jan 26 16:22:48 DrGonzo, disable all the postprocessing effects, but remember that none of the phone cams do CFR. Jan 26 16:22:59 ech0s7: like mount pc to android or something? Jan 26 16:23:16 thanks for the advice Jan 26 16:23:58 DrGonzo, also the thing is that the postprocessing for lowlight is done on the camera DSP so if you can't disable it with Android properties you're pretty much out of luck. Jan 26 16:23:58 yes Jan 26 16:24:25 well there's the fact that i didn't enable any post processing Jan 26 16:24:30 so i'm guessinmg they're on by default Jan 26 16:24:32 ech0s7: not sure if it's possible. maybe via shared dropbox folder Jan 26 16:24:36 i'll see if i can switch stuff off Jan 26 16:32:27 vigilancer quasar for android is supposedly coming "soon" Jan 26 16:32:35 but not ready yet Jan 26 16:34:16 hello Jan 26 16:36:02 im getting "open failed: ENOENT (No such file or directory)", i was using my method without problems, and a while ago i made a factory reset to my phone. now im getting this error Jan 26 16:36:34 File dir = new File(Environment.getExternalStorageDirectory().toString() + "/Folder"); File file = new File(dir, fileName); dir.mkdirs(); Jan 26 16:36:50 any idea ? Jan 26 16:45:55 sci-fic: Do you got write permission to external storage? as seen in < android 4.4 Jan 26 16:46:15 Iriz:yeah, sure Jan 26 16:47:17 Tho, I doubt a factory reset would change such a thing. But then, I do not remember how it functioned. Factory reset shouldnt touch external storage files, so folder and file should still be there right? Jan 26 16:48:17 factory reset clears everything Jan 26 16:48:20 Android Studio 2 Preview 7 is available Jan 26 16:48:52 Iriz, depends on if external storage is an sdcard or internal memory Jan 26 16:50:11 I thought most factory resets left out ext_sdcard and sdcard0? Tho I rarely do factory resets. But in that case your code needs to be updated to recreate the folder / file Jan 26 16:57:40 no, they wipe everything Jan 26 17:01:18 btw any leak date about as 2.0 stable ? Jan 26 17:04:10 Iriz: im trying to create an empty folder with ES file explorer, it is unsuccesful too :O Jan 26 17:05:22 sci-fic: in that case you do not have write permissions. Are you rooted? Jan 26 17:05:33 sci-fic, at least you now know its not a problem with your app (and offtopic in the channel) Jan 26 17:12:19 goddamnit, ?attr in drawable strikes again as a crash error Jan 26 17:12:43 https://github.com/pfn/qicr/blob/master/src/main/res/drawable/ic_menu_end_conversation_on.xml Jan 26 17:12:52 * pfn kicks lint for not warning properly Jan 26 17:13:11 https://code.google.com/p/android/issues/detail?id=199597 Jan 26 17:13:12 and reported Jan 26 17:15:28 hey, are the logs for this room recorded anywhere? Jan 26 17:16:07 no Jan 26 17:16:14 yes Jan 26 17:16:26 there are no canonical, official logs recorded Jan 26 17:16:28 not officially but they are Jan 26 17:16:33 individuals might log, but not otherwise Jan 26 17:17:00 where at? I asked something last night, but I left the office. my client says someone responded to me, but that message had long since been scrolled off and discarded Jan 26 17:18:15 no idea but someone showed a link once Jan 26 17:18:23 and it was pretty much 24/7 log Jan 26 17:19:44 crappy client :P Jan 26 17:21:27 it had message scrollback set to 300 Jan 26 17:22:55 hi all! Jan 26 17:23:20 I have a small question Jan 26 17:23:34 I have a project with several different library sub-projects. I’m trying to add ProductFlavors to it, for Prod and Mock. The idea being that Mock would have mocks for things like networking and bluetooth. Jan 26 17:24:13 I added the flavors to the build.gradle of all of the projects, but now i’m getting errors that it can’t find files in the lower projects in the hierarchy Jan 26 17:24:33 How i can use slideUp panel in fragment with lideLeft menu in main activity? Jan 26 17:24:40 s73v3r, and the response to you was g00s saying xcode looks like it got playgrounds/repl Jan 26 17:25:13 thanks. sadly, doesn’t help my question :p Jan 26 17:27:22 s73v3r, until the last time i checked, the build system had no support for defining different libraries for different flavors. it may have changed, however Jan 26 17:27:42 these aren’t 3rd party libraries, they’re my own Jan 26 17:28:08 but i guess that makes sense; it can’t find normal Core because it’s looking for MockCore or something like that Jan 26 17:28:09 bitkiller, this is now possible Jan 26 17:28:24 danijoo, good to know Jan 26 17:28:51 you can do compileFlavorOne 'library.gradle.path' and it will only be added to FlavorOne Jan 26 17:32:14 s73v3r lol sorry Jan 26 17:32:39 it’s ok. I was just all hopeful that someone had answered Jan 26 17:34:37 I have activity with two fragments(menu and some data), in some data-fragment i want put in slideUp panel with map and index of map markers, but i dont understand how i can create interaction between two fragments Jan 26 17:35:35 REGETT, what has a slideup panel to do with interaction between fragments? those are different topics Jan 26 17:37:58 danijoo, yea, but inside slideUp panel have 2 fragments with other logic Jan 26 17:38:05 dunno, flavors should pick shit up out of src/flavor automatically Jan 26 17:38:19 but flavors need to be added per project or something like that Jan 26 17:38:20 there seems to be a problem with grabbing resources Jan 26 17:38:25 REGETT, what has that to do with fragment interaction? Jan 26 17:38:45 i have the flavors on all sub-projects. I have not yet added anything to the flavor directories; everything is in Main Jan 26 17:41:19 :( Jan 26 17:42:45 Hello there. I'm trying to reject a call programatically by emulating a bluetooth headset. I'm able to get acceptCall to run, but rejectCall does nothing. What's the proper way to reject a call programatically? I'm currently testing on a Samsung Galaxy Nexus running 4.3. Current snippet for accept/reject: http://pastebin.com/1Jm4VwDG Jan 26 17:42:47 13:45 I have had a look at SO answer, but it looks like any alternatives offered there require me to have permissions of a system app, but Im writing a regular app as a service: http://stackoverflow.com/questions/15481524/how-to-programatically-answer-end-a-call-in-android-4-1 Jan 26 17:45:44 @Yaracat you have to use reflection to do this. Jan 26 17:47:05 casadogg: Do you mean like one of the SO answers, or something else? Do you have any references on how? Jan 26 17:47:50 Yaracat: yeh, like this - http://stackoverflow.com/questions/20965702/end-incoming-call-programmatically Jan 26 17:48:39 Aah, neat. I'll try that out, thanks casadogg ! Jan 26 17:49:52 Yaracat: No problem, just keep in mind that doing this may work in some versions (I'm guessing 4ish would work), but you'll probably have trouble in L and I'm 99,99% sure this won't work in M. Jan 26 17:50:08 But who knows! :D Jan 26 17:50:44 Aah. Okay, i think I'm only targeting upto L for now. Jan 26 17:51:15 Will keep that in mind. Jan 26 17:51:35 Yaracat, target does not mean it will not be served to other api levels Jan 26 17:51:54 if you target 21 it will still be available to 23 unless you set maxSdkVersion Jan 26 17:52:12 danijoo: Yes, i realize that. I mean we won't be giving out openly t users either Jan 26 17:52:25 danijoo: But thanks for pointing it out, appreciated Jan 26 17:53:10 We'll look into those before we do a push to app store. Right now, we're working with people who will get the APK, and we will take close feedback from Jan 26 17:54:21 Hi guys. Do you know if there is a limit in the total amount (size) of files an app can store on the device or on the SD card? Jan 26 17:54:40 except the 4Gio limit if the sdcard uses the fat32 fs format Jan 26 17:55:02 Nop. Jan 26 17:55:16 You can store as much as you like until unsers uninstall you :P Jan 26 17:55:40 Which *will* happen if you store bazillions of info :P Jan 26 17:55:46 Unless you're whatsapp. Jan 26 17:57:03 Mavrik: don't care this is a corporate app I need to dev so :D Jan 26 18:01:37 when did the feature to have different libraries for different product flavors came about? Jan 26 18:03:08 wow, MS rewrote minecraft education edition in c++ (from java). looks like carmack helped. Jan 26 18:03:18 casadogg: Woohoooo!! It worked!! Thank you so much!! :D :D :D Jan 26 18:03:42 I wish Mr. Carmack would come help us optimize our software :P Jan 26 18:03:43 s73v3r i thought that was always there Jan 26 18:03:55 Mavrik he'd probably say, replace the java crap Jan 26 18:03:55 Have to check on other devices, but hopefully it'll go okay, as long as it's < L Jan 26 18:04:02 Yaracat: np, but I just googled it. Upvote the question and the answer if it helped :) Jan 26 18:04:06 g00s, we don't use Java much Jan 26 18:04:15 casadogg: Indeed, will. :) Jan 26 18:23:26 If I set a view with gone visibility at my layout.xml resource, is this view drawn only when it is set to visible or invisible? Jan 26 18:30:44 hey guys i have a weird problem. I am getting $ANDROID_HOME var not found even though i have it and its set and also its in PATH Jan 26 18:32:00 /me Jan 26 18:32:29 mladen5: I don’t know of any situation where android tools will complain of not finding that if it is actually present in the environment. Jan 26 18:32:34 what’s complaining exactly? Jan 26 18:33:17 Anyone here use spoon? JakeWharton ? I just set it up. It's awesome. Curious about what's the best way to display the results in jenkins though. Jan 26 18:34:19 we outgrew it and do not use it anymore Jan 26 18:34:49 when we used it (and back when we used Jenkins) we had the build publish the output directory to a folder that was served by a simple HTTP server Jan 26 18:35:19 Is there a way to make the Intent my app shares to be able to open from whatsapp or whatever it is shared over? Jan 26 18:35:28 If I share it over Whatsapp... Its only in text form Jan 26 18:36:28 JakeWharton: Thanks, that makes sense. Outgrew it? That's surprising actually. Do you use anything open source, or did you move to an internal implementation? Jan 26 18:36:29 You can not open it .. How does Google Maps do it or is that actually built into whatsapp? Jan 26 18:36:55 we use something much more custom with device pools and sharding and VMs Jan 26 18:37:56 JakeWharton: Got it. Thanks for the tip. Spoon seems like it will do the job for us. I don't see how my team could possibly outgrow it hahah Jan 26 18:40:14 how do i run a Gradle task on just one individual sub-project library? Jan 26 18:41:13 S73v3r: you can configure it for modules in android studio in the toolbar ..run main app module or gradle build only one Jan 26 18:43:21 Hello. I need an alternative for SP FLASH TOOL for flashing MTK chipsets, for linux, compiled for 32bits. (the spflashtool for linux 32bit .zip is in reality 64bits) Jan 26 18:47:11 That sounds like a question for #android-root, psyxopompos Jan 26 18:47:35 Thank you SimonVT Jan 26 18:47:49 For future reference, please read the topic of channels you join Jan 26 18:48:04 JakeWharton: Hey can I bother you ? How can I signal the Android OS to try and open a link with my APp? Jan 26 18:48:06 Very nice Jan 26 18:48:20 use an intent filter Jan 26 18:51:11 batdroid: i meant from the command line Jan 26 18:52:26 s73v3r: sorry no idea..maybe someone else can help Jan 26 18:53:36 i found it. you just prefix the task with the module name. so ./gradlew :core:assembleMock Jan 26 18:58:13 When I have compile project(‘:core’) in a build.gradle, how does it know which thing to get? Jan 26 18:58:23 or rather, what’s it looking for by default? Jan 26 19:00:47 s73v3r, gradlew :project:task Jan 26 19:04:27 hey guys, I'm working on a game/engine via opengl/sdl2. I use cmake to build two .a files, one for the engine and one for the game code. If I build these .a libs for the right arch, would I be able to use NDK to just link them into an Android app? Jan 26 19:24:00 how do i tell what ‘compile project’ in my build gradle is looking for? As in, what output file? Jan 26 19:24:58 huh? Jan 26 19:24:59 if I don’t have the product flavors in my app, and just have the debug and release build types, it’s able to find core-release.aar just fine. but when I add product flavors, it now cannot find core-mock-release Jan 26 19:27:08 ok, I think I found it. instead of doing compile, i’d have to go mockCompile/prodCompile, and add a configuration parameter to the call Jan 26 19:28:39 yes Jan 26 19:38:00 When you spawn a thread within an activity, and that activity becomes paused because it lost focus, does the thread continue to run? Jan 26 19:38:40 andr3wmac, yes. Jan 26 19:38:49 awesome, thanks. Jan 26 19:39:29 how do i list the available configurations for a module? Jan 26 19:40:32 gradlew :module:tasks ? Jan 26 19:40:33 * pfn shrugs Jan 26 19:44:06 andr3wmac, I guess I also need to warn you that leaving threads around is a terrible idea :/ Jan 26 19:46:03 aye. Jan 26 19:48:53 hi, I see NotificationManager.getActiveNotifications() was added in API 23. Was there a way to view active notifications prior to 23? Is there's a support library for doing this on pre-23? Jan 26 19:49:37 thebishop, NotificationListenerService Jan 26 19:50:39 Mavrik, thanks Jan 26 19:53:14 Mavrik, oof, i can see why this was modified... Jan 26 19:53:38 Anyone here run Instrumentation/Connected Android tests on Jenkins? Was wondering if there was any tips when setting it up. Examples of things I'm curious about, is it best to kill adb server before running tests? etc Jan 26 19:54:24 eghdk, yes we do. Jan 26 19:54:28 It's full of pain and suffering. Jan 26 19:54:35 Get TeamCity if you can :) Jan 26 19:54:59 But otherwise, run adb server if possible at startup and keep it running. Jan 26 19:55:05 Keep emulators running permanently as well if possible. Jan 26 19:55:35 Mavrik: At startup... you mean at startup of the Jenkins server right? Jan 26 19:55:43 Of the node Jan 26 19:55:59 We use Genymotion instead of usual emulators though. Jan 26 19:56:05 (I don't recommend that.) Jan 26 19:57:30 Mavrik: Gotcha. I'm running tests with spoon now, but having trouble getting it to run when it's not through cmd line on my local ide. Some reason getting an error, and realized that it's installing the -unaligned version. Is that right? Like... "what version" of my app should be installed? Jan 26 19:58:13 Hmm, I honestly never checked. We test an AAR anyway Jan 26 19:59:55 Okay. I'll do some more digging. Any other tips off the top of your head Mavrik ? Jan 26 20:07:39 New to threading here. I've got two threads, and a progress bar waiting until both threads are finished. Is there a convention for hiding the bar only when all the background threads have finished? Jan 26 20:07:47 Mavrik: How do you update certain things like the sdk or stuff if you don't a gui. I just ssh into this machine. I'm having an issue where people say to go into DDMS, but how would I do that with no gui? Jan 26 20:08:05 e.g. do I run a counter of how many threads have finished, and then hide the progress bar when that counter is 2? Jan 26 20:08:35 eghdk, sdk can be updated headlessly Jan 26 20:08:42 eghdk, or via android-sdk plugin from JW Jan 26 20:10:52 Mavrik: I have the plugin, but I'm just curious if there's a way to do some of those things... like the DDMS thing. pretty new to the whole headless machine thing. Jan 26 20:11:06 what ddms thing? Jan 26 20:13:44 Mavrik: This issue. people want to change the timeout in ddms http://stackoverflow.com/questions/4775603/android-error-failed-to-install-apk-on-device-timeout Jan 26 20:15:04 Well find a commandline option to control that. Jan 26 20:18:00 True. Stupid that I didn't just think of googling it. Oh well. Need sleep. or coffee. hahah. Thanks Mavrik Jan 26 20:18:24 Any have any idea about this issue when running spoon from my jeknins box? test apk install failed. Error [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] Jan 26 20:18:47 The error is pretty clear to me. :) Jan 26 20:19:47 Mavrik: Yeah. I've gotten this before. Uninstall the build, it was signed with something else. But now there is no previous install 0.o Jan 26 20:23:26 Mavrik: looks like the test apk wasn't uninstalled apparently. phew Jan 26 20:24:19 you said no previous Jan 26 20:25:38 canvs2321: Are you talking to me? Jan 26 21:16:41 hmm, I suppose when on does startActivityForResult, there's always the possibility that the calling activity/process might get killed and re-started for onActivityResult, huh Jan 26 21:29:34 yo pfn I have removed my pluses Jan 26 21:29:39 thank you for nudging me to do so Jan 26 21:31:27 Whats the Activity name of the WiFi settings in marshmallow on the nexus player? Jan 26 21:33:27 Example: Play store is named 'com.android.vending' Jan 26 21:33:37 whats the WiFi equivalent? Or settings. Jan 26 21:37:17 chance672: run `adb shell dumpsys activity` while viewing it Jan 26 21:37:31 thanks! Jan 26 21:41:12 hey guys anyone ever deal with slide animations on a listview item Jan 26 21:41:23 I have this code going but it is not working exactly http://stackoverflow.com/questions/35022050/animation-issues-on-sliding-list-view-layout Jan 26 21:54:21 there are both horizontal and vertical variants of the "more" (3 dots) icon - any guidelines on when to use which ? Jan 26 21:56:57 where have you seen it used horizontally... Jan 26 21:58:10 i just saw the horizontal one in the material icons collection - but i haven't seen it in any app Jan 26 21:58:35 then again i don't use many apps Jan 26 22:00:09 mostly just the official google ones Jan 26 22:00:54 myntra has a horizontal one Jan 26 22:01:14 though it doesnt open an overflow menu, just opens another fragment Jan 26 22:02:08 i think the horizontal one might look better in a list item which is only one row high Jan 26 22:02:50 vertical in that case would look like Jan 26 22:02:53 | Jan 26 22:02:54 | Jan 26 22:02:55 | Jan 26 22:02:58 reddit sync has a vertical one at the bottom of each card which looks pretty good. depends on the item height i guess Jan 26 22:03:15 yeah Jan 26 22:11:49 Regarding questions on compiling aosp should I head over to android-root? Jan 26 22:13:35 probably. I don’t think such a question would be out of bounds here, but I think over there you’ll be more likely to find someone who can help Jan 26 22:14:59 Hello, while compiling i got this error. http://www.pastebin.ca/3353330 not sure what that means. internet search gave no success Jan 26 22:15:03 gmct_ also try the google groups for that Jan 26 22:16:14 kuldeep impressive Jan 26 22:16:26 well looks like the compiler doesn't like that versionof stlport Jan 26 22:17:21 g00s, why don't it like that version? Jan 26 22:17:45 i'd check out cp/mangle.c:2168 Jan 26 22:17:49 Trying to compile AOSP for the Nexus 6P and I did make -j8 otapackage so I would get a flashable zip and I flashed the zip, but it won't boot and TWRP says no OS is installed and trying to flash openGapps it says no build.prop or default.prop Jan 26 22:18:25 gmct_ this isn't the channel for that Jan 26 22:18:44 are you sure you are using the ndk toolchain? Jan 26 22:19:16 duboisj, ? (r9d) Jan 26 22:19:50 g00s, where to find cp/mangle.c ? Jan 26 22:20:26 kuldeep use r10e Jan 26 22:20:55 g00s, sorry about that I asked. If the question would be allowed and I was given the go ahead. I also asked in android-root but I was concerned it would mostly be about stuff like people not being able to figure out how to unlock their bootloader and stuff. Jan 26 22:21:03 g00s, i will update, but the code was compiling fine till yesterday :_| Jan 26 22:22:16 g00s, i will update, but i want to understand the reason. Jan 26 22:22:42 I was wondering whether you were using your own compiler or something, but if it was working until yesterday, probably not Jan 26 22:23:27 kuldeep unless you are using a new stl class today that you weren't using yesterday Jan 26 22:23:37 but yeah, no idea then Jan 26 22:23:53 duboisj, i never updated after downloading r9d ;) Jan 26 22:24:09 lol when was that, 2014 ? Jan 26 22:24:28 g00s, probebly :p Jan 26 22:26:32 kuldeep so you are instantiating float_helper<> the same way as yesterday ? Jan 26 22:26:40 with the same template parameters ? Jan 26 22:27:17 g00s, the file that im trying to compile is not modified for about months (what i remember) Jan 26 22:27:34 i just removed one comment (that was useless) Jan 26 22:27:39 but it compiled yesterday and not today O.o Jan 26 22:27:53 ok, we are in the realm of magic now, i can't help :D Jan 26 22:28:01 g00s, :p Jan 26 22:28:18 at least update your NDK, and maybe you will get a better error message Jan 26 22:28:29 or the compiler won't have internal error :P Jan 26 22:28:31 the app compiled fine yesterday. i finally tested the opengl stuff. now this came from no where Jan 26 22:28:47 oh well, try clean ;) Jan 26 22:29:07 g00s, actually, i cleaned it. and tried a full build. Jan 26 22:29:07 (with pinch of bat brains) Jan 26 22:29:49 removed ../src/main/{objs, libs} and ../build Jan 26 22:30:04 i dont think there is something else to delete (except code) now Jan 26 22:30:33 so.. the latest AS update broke instant run completly? Jan 26 22:30:39 time has came, i should just update and debug over there Jan 26 22:31:33 with instant run enabled, all my built apk instant crashes telling me something about cant dex2oat. ^^ Jan 26 22:32:18 https://developer.android.com => sending me to /ko korean version Jan 26 22:32:25 oats are for horses danijoo Jan 26 22:32:43 might be kotlin though Jan 26 22:32:44 .isUserAHorse() Jan 26 22:32:51 fortunatly i dont need instantrun Jan 26 22:33:07 g00s, so you mean it only crashs for horses ? :P Jan 26 22:33:22 * danijoo is a horse Jan 26 22:38:54 Hi everybody Jan 26 22:39:38 so, why are these ndk downloads now binaries? (anyone verified that they actually *just* extract) Jan 26 22:40:00 Is there a good way to combine sprites and general ui elements on the same activity? Jan 26 22:40:43 attilathedud, yes Jan 26 22:41:01 just put the view showing your sprites and the other elements in the same activity.. Jan 26 22:41:53 Would a canvas be a good place to place sprites and animate them or is there something better Jan 26 22:42:35 attilathedud, you cant answer that in general. it depends on what you actually want to do. Jan 26 22:42:56 it might be enough if all you want is moving a sprite from left to right, but definitly not enough for a game Jan 26 22:43:00 Just want to play an animated sprite when the user clicks a button mainly Jan 26 22:43:20 yeah I think a canvas is enough then Jan 26 22:44:09 Would it be better to use a sprite sheet or split the sprite into frames and then apply an animation to that? Jan 26 22:46:20 g00s, wget says 2hrs on my 48KBps (practical) line. Jan 26 22:46:29 g00s, thanks for the moral support :) Jan 26 22:47:30 kuldeep 48KBps - sounds like broadband in the US :P Jan 26 22:48:59 true story: ISPs have largely failed to improve speeds / access in many places in US, so they are lobbying to have the definition of broadband changed :D Jan 26 22:49:28 g00s, im in India, so, same condition here. Jan 26 22:49:32 You don't need all that speed. It will hurt you Jan 26 22:49:35 apparently, lobbying is more profitable than investing in their infrastructure Jan 26 22:50:02 thats worldwide condition :p Jan 26 22:50:15 with small exceptions Jan 26 22:50:34 except maybe south korea, japan and new zealand ;) Jan 26 22:52:15 telelphone operators want to charge extra for calls over internet (breach net neutrality). they say it hurts their bussiness. Jan 26 22:53:59 easy to cover a postage stamp country Jan 26 22:54:03 but when this telephone operators came into market, they kill (affected) postal/mail service worldwide. Jan 26 22:54:41 Can we all admit we would do the same thing in the isps position? Jan 26 22:54:47 it’s not the size of the country that has anything to do with it Jan 26 22:56:20 so, everthing has a time and value, now their time has gone, its internet era (complete) Jan 26 22:56:21 how can size not matter? Jan 26 22:57:00 if it did, then many of the large cities in the US, most of which have a density as high or higher than those countries, would be shining beacons of broadband Jan 26 22:57:08 i wish, these same companies build a better infrastructure that would give us better internet. like g00s said Jan 26 22:57:09 there is a point where expansion is no longer profitable Jan 26 22:57:09 as it is, most of them are just as bad Jan 26 22:58:36 s73v3r they are still struggling with lead-free / safe water ... baby steps ... Jan 26 22:58:57 1st step : tap water that isn't brown from lead ;) Jan 26 23:04:10 Lead is good for babies Jan 26 23:04:38 btw, anyone aware of a library that can be used to build a beautiful "about" the app description. (i just dont want to list libraries and there licence). since i want to gpl the software, telling people about their freedom could be cool idea Jan 26 23:05:02 kuldeep, aboutlibraries Jan 26 23:05:09 (thats the name) Jan 26 23:06:19 guessing you’re not going to distribute it on the Play Store? Jan 26 23:06:50 s73v3r, i will, i should right? Jan 26 23:07:23 s73v3r, like apple/ms google prevent gpl software? Jan 26 23:07:26 i believe that distributing on the Play Store and being GPL are incompatible, since the GPL would require open sourcing of parts of the Play Store Jan 26 23:08:34 Just license it with apache, since s73v3r is right Jan 26 23:08:41 s73v3r, hum, but what to do, i can give full freedom from my part. but then market reach is limited if not on playstore Jan 26 23:09:07 probebly not apache, shit fucking licence Jan 26 23:09:08 there is also F-Droid, which is where people who would desire GPL software would look Jan 26 23:09:16 s73v3r, yea Jan 26 23:09:30 apache is a perfectly cromulent license. BSD might be a decent one too Jan 26 23:09:57 MIT is even more permissive Jan 26 23:10:07 s73v3r, hum, using which google is fucking ASOP Jan 26 23:10:20 *AOSP Jan 26 23:10:41 it has nothing to do with Android being Apache licensed Jan 26 23:10:49 they’re the copyright owner, they could do any of that anyway Jan 26 23:11:11 s73v3r, but they are not the sole copyright owner Jan 26 23:11:16 are they? Jan 26 23:11:24 I’d be surprised to find out they are not Jan 26 23:13:08 s73v3r, "distributing on the Play Store and being GPL are incompatible" can you please share any ref text to read on this topic? Jan 26 23:15:41 s73v3r, http://stackoverflow.com/questions/5662095 give some idea on compatibility Jan 26 23:16:16 i guess i was mistaken Jan 26 23:16:28 however, you’d probably want to consult a lawyer, first Jan 26 23:17:24 i knew the GPL was incompatible with the iOS App Store, and I guess I assumed the same of the Play Store Jan 26 23:17:49 s73v3r, though it is very near, because google isnt much different from apple Jan 26 23:18:10 a different strategy to do fucking things Jan 26 23:18:18 i have less than zero interest in that conversation Jan 26 23:18:42 s73v3r, :) Jan 26 23:19:25 s73v3r, np Jan 26 23:19:38 #gnu will be a good place to start Jan 26 23:21:19 talk to a lawyer who knows about software licenses, but it seems as if you could release your android app as GPL. Of course, i suppose even if it wasn’t compatible, as the copyright owner, you could always just license it to yourself under different terms. Or no terms, really Jan 26 23:21:52 yeah i think so Jan 26 23:27:12 the main points about the gpl and google vs apple stores are that 1.) android allows “side-loading” whereas ios does not; and 2.) apple has been know to, itself, take down gpl apps, whereas google in practice allows them. Jan 26 23:30:02 i believe apple has only taken down GPL apps in response to requests to take them down, like in the case of VLC Jan 26 23:38:12 have any of you fellas seen that issue when using the wizard in AS to make a new fragment/activity/whatever? Jan 26 23:38:28 _that_ issue? Jan 26 23:38:40 where it adds "compile" randomly into build.gradle, which of course causes gradle to throw errors when building Jan 26 23:39:34 can a null extra be present in an intent? i.e. hasExtra is true, but the returned value is null? Jan 26 23:39:43 I imagine no Jan 26 23:43:31 orbyt_ just use "New File", problem solved :) Jan 26 23:44:00 s73v3r: the GPL has a specific exception for installers and software bundles, so the Play Store would have to be open sourced, as far as I can see. Jan 26 23:44:27 (We do distribute apps under GPL and LGPL on play store and F-Droid) Jan 26 23:44:39 g00s: well for example i was adding a maps activity, and its nice to use the wizard becuase it grabs your SHA-1 fingerprint and generates a URL to google console for the api key. Jan 26 23:44:43 however, as it is their code, they would be able to change the license for themselves Jan 26 23:45:11 someone else would not be able to distribute it on the Play Store, but should be able to distribute it as a sideload, or through F-Droid Jan 26 23:45:27 the GPL cannot apply to installers... Jan 26 23:45:37 derivative work doesn't even remotely apply Jan 26 23:45:55 whether GPL grants an exception is irrelevant Jan 26 23:46:01 As pfn said, the GPL even has a direct and specific exception for that. No need for interpretation. Jan 26 23:46:26 We don't need to interpret anything, both the derivative work and exception say it's not applying there. Jan 26 23:47:10 It gets a lot more problematic, though, when you use a GPL library and a proprietary library in the same project Jan 26 23:47:55 GPL cannot infect something you don't own Jan 26 23:48:14 at the same time, GPL won't allow you to publish it Jan 26 23:48:28 i think that’s the problematic part Jan 26 23:48:31 Well, you can publish it. Jan 26 23:48:36 You just violate the license, Jan 26 23:48:43 that's what "won't allow" means Jan 26 23:48:46 And it's piracy and distribution of pirated content. Jan 26 23:49:31 And obviously you can always convince the authors to give you the content under another license. Jan 26 23:50:29 sure, but that's irrlevant of something being GPL Jan 26 23:50:43 owners of copyright are always free to choose whatever license they want Jan 26 23:50:53 Well, people often forget that "just pay for it" is an option, too. Jan 26 23:53:18 Anyway, except for iOS, GPL and LGPL and MPL should be fine. Jan 26 23:53:35 MPL should also work on iOS — at least Mozilla uses it there. Jan 26 23:54:20 (LGPL and GPL have the (amazing) user-modifyable clause, which obviously doesn't work on iOS) Jan 27 00:05:14 So i’m still trying to get the productFlavor thing working, and now when I try to compile the whole app, I get “Attribute has already been defined” errors. I don’t get these when I remove the product flavors Jan 27 00:06:06 is there a way to do something like this? View buttons[]; for(int i = 0; i < 25; i++){ buttons.addObj(findViewById(R.id. + "i"));} Jan 27 00:06:26 replace buttons[] with a list Jan 27 00:06:48 or add with index Jan 27 00:07:31 Mainly I wonder about this part. (findViewById(R.id. + "i") Jan 27 00:07:49 button[i] = (Button) findViewById(...) Jan 27 00:08:10 Or something like this. (findViewById(R.id. + "some ascii value here") Jan 27 00:08:46 it’s probably going to be easier and faster to just unroll it by hand Jan 27 00:08:58 galamar, you can use resources.getIdentifier(..) Jan 27 00:09:35 findViewById(getResources().getIdentifier(packageName, type, ¨myButton¨ + i)) Jan 27 00:09:59 im not sure what type is for views, I only used that on drawables yet Jan 27 00:10:18 I just need to set 26 clickable ImageViews as a variable of some kind so I can attatch onClickListeners to them. Jan 27 00:11:28 but if you know the ids at compile time, i suggest creating an array of ids instead Jan 27 00:11:52 will be better performance wise Jan 27 00:12:11 I could just do android:onClick="doThis" instead I forgot abot that. Jan 27 00:12:34 you could, but that’s generally a bad idea Jan 27 00:13:16 android:onClick is always the wrong solution Jan 27 00:13:25 Kind of like inline JS? Jan 27 00:13:57 worse Jan 27 00:16:26 ok so I have 26 views with ids of a-z, in just this Activity soon-to-be-added Activities will create hundreds more. I was just trying to avoid typing all of this out manually. Jan 27 00:16:53 u could have done it in the time writing here :p Jan 27 00:17:38 I have already done the 26 existing Views. I was more looking for the hundreds to come. Jan 27 00:17:59 pfn: I'm glad you said that about android:onClick :P Jan 27 00:18:54 how can u fit 100 views on a screen? Jan 27 00:18:59 (without a list) Jan 27 00:19:09 danijoo: set all their sizes to 0 Jan 27 00:19:14 :D Jan 27 00:19:15 yeah, sounds like you should be using recyclerview / listview Jan 27 00:19:32 danijoo: but honestly, listen to g00s on that one Jan 27 00:19:42 danijoo: what kind of views are they? Jan 27 00:20:32 herriojr, this was related to galamar question. its not my 100 views Jan 27 00:21:07 because he wanted onclicklisteners for 100+26 views Jan 27 00:21:29 oh jesus christ Jan 27 00:21:58 Scoll. Jan 27 00:22:02 Scroll Jan 27 00:22:13 galamar, seriously, use a list or recyclerview.. Jan 27 00:22:17 galamar: what are you creating? Jan 27 00:22:48 100 Views will be spead between like 5 more Activities. Jan 27 00:23:28 I am creating a little app for my son to help him learn words, letters, numbers, colors, animals... Jan 27 00:24:17 galamar: is this something you want to scroll through? Or are they all to be visible at the same time? Jan 27 00:24:42 Here is what I have so far, for the most part, can you guys looks and see if there is anything here you would do different? This is my first app. Jan 27 00:24:43 http://pastebin.com/A2Swi1bk Jan 27 00:25:22 galamar: how many items will you display per screen? Jan 27 00:25:28 herriojr, yes, it's always wrong Jan 27 00:26:15 pfn: when I interviewed there back in the day, I think I interviewed with the guy that added it in — and I told him my opinion on them — that was the end of that conversation Jan 27 00:26:31 lol Jan 27 00:27:13 25-35 per screen roughly. Jan 27 00:28:43 galamar: are they displayed in a grid? Jan 27 00:28:48 Whether or not I needed to scroll depends on if they all fit nicely within a grid otherwise I will scroll. Jan 27 00:28:58 oh, just use a gridview then Jan 27 00:29:01 These are in a grid yes. Jan 27 00:29:18 http://developer.android.com/guide/topics/ui/layout/gridview.html Jan 27 00:29:19 GridLayout Jan 27 00:30:01 no, use a GridView or a RecyclerView with a GridLayoutManager Jan 27 00:30:47 it will make all your code a lot easier to handle the different cases Jan 27 00:31:04 Ok, I will read about doing that. How does the .java look? Jan 27 00:33:08 galamar: do you plan on doing android beyond this app? Like a new career choice? Jan 27 00:34:21 galamar: in terms of a one-off application, I have no complaints, if it is meant for a production-level app, that's a different story Jan 27 00:34:29 Idk really I figured I would need to get back in school and finish my BS before I would be able to do anything like that, kids kind of put school on hold. Jan 27 00:34:47 galamar: you can get a programming job with a college degree Jan 27 00:35:50 galamar: but yeah, don't give up, just try and absorb knowledge from people Jan 27 00:35:57 I want to be able to write the most elegant code possible. Jan 27 00:36:31 I have learned everything I know from IRC and Google. Jan 27 00:36:32 galamar: pm Jan 27 00:47:08 If someone themselves were developing this app aside from the noted Layout changes. What changes would be made to the Java? http://pastebin.com/A2Swi1bk Jan 27 01:07:26 ugh, why are my ripples some weird color instead of what I'm expecting... Jan 27 01:09:42 what color are your ripples pfn Jan 27 01:10:01 supposed to be white, but it's coming up as magenta on a blue background and only happens on 5.0 Jan 27 01:10:06 5.1 and 6.0 are correct Jan 27 01:10:40 white is not default? Jan 27 01:11:17 I'm just curious as to whether you've changed your colorControlHighlight Jan 27 01:11:27 cuz I tried to change it once and it was a pain Jan 27 01:16:00 no, has nothing to do with colorControlHighlight Jan 27 01:18:21 meh, 600 line diff between android 5.0 and 5.1 for RippleDrawable Jan 27 01:18:33 ouch Jan 27 01:19:37 and why can't I git log --decorate=full RippleDrawable.java :( Jan 27 01:19:44 i'd consider android 5.0 like android 4.0 Jan 27 01:19:50 niche beta, some people got Jan 27 01:19:59 mostly nexus people , because they are guinea pigs :) Jan 27 01:20:10 nope, android 5.0 has significant adoption Jan 27 01:21:19 5.0 is bigger then 5.1 for me Jan 27 01:21:29 all those poor people Jan 27 01:21:44 http://prntscr.com/9vb7di Jan 27 01:22:08 5.x gets big finally./. Jan 27 01:22:57 5.0 is relatively good Jan 27 01:23:04 5.1 is better though Jan 27 01:24:01 cant wait to set minSdk to ripple-ready Jan 27 01:25:33 eh, ripples are the least of all the cool shit in L, imo Jan 27 01:25:47 scene transitions are all the hotness Jan 27 01:27:49 looks like 5.0 adoption accelerated in oct, strange Jan 27 01:28:03 well, i guess thats before the holidays Jan 27 01:28:15 and chrisstmas sales start Jan 27 01:37:10 is there any way to change sharedUserId when an app is already in the play store? Jan 27 01:39:11 delete the app because of useless^^ Jan 27 01:40:43 should be easy to test. just change it and reupload Jan 27 01:41:04 see if play store complains Jan 27 01:42:02 well it's also about the users who will complain if they have to uninstall and reinstall the app Jan 27 01:42:09 and lose their preferences Jan 27 01:43:40 if the playstore accepts it, you wont need a reinstall Jan 27 01:43:53 but you can test that as well. with adb install -r apk Jan 27 01:44:55 this is what the play store executess on an update Jan 27 01:45:17 I pressed the run button on android studio Jan 27 01:45:29 thats also what the run button does, yeah Jan 27 01:45:35 and it would not install Jan 27 01:45:50 hah couldn't remember the arguments it included Jan 27 01:45:51 oh ok Jan 27 01:46:00 ugh, hierarchyviewer doesn't tell me what background is set on a view? :( Jan 27 01:49:34 pfn is google folding the stuff in eclipse monitor into AS ? Jan 27 01:49:46 dunno, I don't use AS Jan 27 01:50:04 or, is eclipse monitor to be deprecated Jan 27 01:50:11 i thought standalone ddms was too Jan 27 01:54:17 the source code for android is so beautiful Jan 27 01:54:25 I love how strict their coding standards are Jan 27 01:55:10 beautiful? Jan 27 01:55:12 eh Jan 27 01:55:58 said no one ever.. Jan 27 01:57:22 hah you don't think so? Jan 27 01:57:50 the code I work on is soooo bad Jan 27 02:01:18 it's okay Jan 27 02:01:50 is there any plase where i can see opensource android applications? Jan 27 02:01:54 *place Jan 27 02:01:58 github Jan 27 02:02:06 ^ Kexoni Jan 27 02:02:14 thanks, I'll search now Jan 27 02:22:48 I just realized what N will be, Nutella of course duh! Jan 27 02:23:28 shmooz: I think I am missing context Jan 27 02:24:14 wyoung: the next dessert name Jan 27 02:24:35 oh, Android releases Jan 27 02:24:47 I freakin love Nutella! Jan 27 02:24:47 shmooz, Nougat Jan 27 02:25:37 shmooz: Nougat is more likely Jan 27 02:25:45 as Android doesn't do brands Jan 27 02:25:58 wyoung, wrong Jan 27 02:26:00 hmmmm Jan 27 02:26:01 android KitKat :p Jan 27 02:26:07 :O Jan 27 02:26:10 they did KitKat Jan 27 02:26:15 You let me down Android! Jan 27 02:26:22 but yeah maybe you're right :P Jan 27 02:26:30 but thats all speculation Jan 27 02:26:39 Does it have to start with a N? Jan 27 02:26:46 it could be nutella as well as nougat Jan 27 02:26:51 wyoung, yes Jan 27 02:27:00 danijoo: incrementing the letter? Jan 27 02:27:11 wyoung, yes. and its always sweets Jan 27 02:27:26 danijoo: I can't wait for the unicode ascent releases Jan 27 02:29:08 They can name it whatever they want, but please, fix camera performance and connections.. Jan 27 02:29:20 Über Chocolate? Jan 27 02:29:50 I wonder what about merged jvm Jan 27 02:30:46 whats the matter with camera performance? wouldn't that be OEM specific stuff ? Jan 27 02:30:55 llke camera drivers, etc Jan 27 02:31:21 g00s: most likely Jan 27 02:31:38 what they need to do is (1) begin some kind of google-upgrade mechanism for key parts (2) update to OpenJdk (3) merge ChromeOS ... Jan 27 02:31:44 lots of big things Jan 27 02:32:02 lots of possible fuck ups.. :/ Jan 27 02:32:15 and figure out what to do with tablets :P Jan 27 02:33:20 g00s: Let samsung figure that out :) Jan 27 02:33:35 i mean at the platform level, not HW ;) Jan 27 02:33:41 I can't think of any sweets that begin with O Jan 27 02:33:52 Oreo ! Jan 27 02:34:29 RustySha1kleford: an Orange! Jan 27 02:34:42 they are sweet Jan 27 02:35:06 wait until they reach Y :p Jan 27 02:35:13 i think all the names have been things with empty calories wyoung :D Jan 27 02:35:26 yes Jan 27 02:36:01 g00s: :) Jan 27 02:37:43 Orange Chocolate Jan 27 02:46:51 In AndroidManifest.xml, what exactly is package="" ? Jan 27 02:47:05 I'm making a game in Unity, would it be my Bundle Identifier? (I asked in #unity3d, no reponse) Jan 27 02:52:26 g00s: I doubt it. Both nexus 6 and nexus 5x have problems Jan 27 02:52:29 Slow start Jan 27 02:52:52 There's even bug for nexus 5x on tracker Jan 27 02:54:11 i would think thats all camera driver / firmware stuff Jan 27 02:54:27 Might be Jan 27 02:54:42 I.. Just want someone to fix it ;) Jan 27 02:54:55 for good camera, iphone ;) Jan 27 02:55:06 Np Jan 27 02:55:09 No Jan 27 02:55:28 Think that iPhone doesn't have problems ? Jan 27 02:55:30 i thikn dxo gave some better benchmarks to some recent android devices Jan 27 02:55:53 lol Jan 27 02:56:22 i got 2 buttons, both worked. i added another one, set onclicklistener. now, no button works anymore xD Jan 27 02:57:35 http://www.techtimes.com/articles/95050/20151014/dxomark-declares-top-10-best-camera-phones-list-dominated-by-android-iphone-6s-barely-makes-it.htm Jan 27 02:58:48 that DXO One looked cool, but damn was expensive **** ENDING LOGGING AT Wed Jan 27 02:59:59 2016