**** BEGIN LOGGING AT Thu Jun 30 02:59:58 2016 Jun 30 03:00:53 after the update Android Studio isn't finding some imports from another package. OMG this is so haneous. Jun 30 03:04:36 i have not Jun 30 03:11:18 deleting .iml files and .idea directories and re-importing seems to have helped. Jun 30 03:15:02 ALT + Enter x( Jun 30 03:16:41 gordon_ i like ducks too Jun 30 03:17:02 i was talking to a duck today, he said "you humans, are in trouble" Jun 30 03:19:31 buttonPlay.setOnClickListener(this); <— what this indicate? LunarEclipse120 ? Jun 30 03:20:11 mimtf: It is is a click listener. Why are you mentioning me? Jun 30 03:20:23 this? Jun 30 03:20:23 mimtf: It activates when button "buttonPlay" is clicked. Jun 30 03:20:36 this means button? Jun 30 03:21:27 buttonPlay is the variable set for a button. Jun 30 03:22:05 buttonPlay.setOnClickListener(this); <— this means button? Jun 30 03:22:16 mimtf, no, "this" is a java thing. I'm not sure of the exact meaning but it is a kind of shortcut or pointer to the current function I think Jun 30 03:22:37 mimtf: No. Jun 30 03:22:45 current function? lol Jun 30 03:23:05 Somebody can explain "this" better than me but what function is that code inside of? "this" is probably kind of a handle to that function. Jun 30 03:23:10 jesseg: i think that this means Button. Jun 30 03:23:17 mimtf: It is the current method being used. Jun 30 03:23:24 mimtf: It doesn't mean button you idiot. Jun 30 03:23:36 jesseg: It is like calling the current function I think. Jun 30 03:23:37 https://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html Jun 30 03:23:58 mimtf, in java, functions are called methods. And "this" is like a handle to the current function. Jun 30 03:24:09 or does it call it? Could be Jun 30 03:24:27 this is a reference to the current object jesseg Jun 30 03:24:40 this means object so this is button. jesseg Jun 30 03:24:46 no Jun 30 03:25:11 mimtf, no I think it's the parent object, i.e. whatever function that code is inside of. Jun 30 03:25:21 mimtf: No. Jun 30 03:25:36 mimtf: It is referencing the current function. Jun 30 03:25:39 anyway time to milk the goat be back in a bit. Jun 30 03:25:48 lol Jun 30 03:25:49 mimtf: The button it is reffering to is "buttonPlay" Jun 30 03:25:51 look at the link i pasted, it even has an example explaining it Jun 30 03:26:29 mimtf, this is the first big difference between java and C so I keep telling myself one day I'll have to understand it :D Jun 30 03:26:50 mimtf: Another thing about you. You refuse to listen. Jun 30 03:27:10 jesseg: you're comparing apples to oranges comping c with java Jun 30 03:27:22 comparing too (i seriously need typing lessons) Jun 30 03:27:39 buttonPlay.setOnClickListener(this); <—— this is button object. Jun 30 03:27:42 lol Jun 30 03:27:47 no Jun 30 03:27:49 mimtf: No you fucking idiot. Jun 30 03:27:55 mimtf: For the 3rd time. Jun 30 03:28:01 ok i will go to #java for asking it Jun 30 03:28:24 they'll rip you apart lol Jun 30 03:28:25 bankai_, yeah yeah but well yeah :P Jun 30 03:28:27 mimtf: No, don't. Jun 30 03:28:36 mimtf: That isn't a Java question. We have explained it to you. Jun 30 03:28:43 mimtf: You just don't listen. Jun 30 03:28:46 then what is this? Jun 30 03:28:56 mimtf: Read this https://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html Jun 30 03:29:33 mimtf: It is saying to set an onClickListener for the object buttonPlay, buttonPlay links to the button. Jun 30 03:29:51 this is a reference to the current object. so this is button now. Jun 30 03:30:00 mimtf, read the link LunarEclipse120 is giving you, keep reading it 10 times, and get a snack between each read. I'll do the same thing later, if I have time, maybe find a good "Java by Example" tutorial on web Jun 30 03:30:06 final Button buttonPlay = (Button)findViewById(R.id.buttonPlay);
buttonPlay.setOnClickListener(this); Jun 30 03:30:06 button isn't your current object Jun 30 03:30:32 mimtf: That is the variable linking the button. Jun 30 03:30:46 yes so this is button object? Jun 30 03:30:46 mimtf, in Java, the function that contains that code is also an object. And since you are referencing the button from within another method/function, "this" refers to the parent function. Jun 30 03:31:10 mimtf: buttonPlay is. Jun 30 03:31:24 mimtf, that what that line does is it tells java that the function which executes that code is also what should be executed when the button is clicked. Jun 30 03:32:01 jesseg: so this keyword is button object? Jun 30 03:32:13 no Jun 30 03:32:16 lol Jun 30 03:32:18 then? Jun 30 03:32:25 mimtf: Go away. Jun 30 03:32:30 You have no common sense. Jun 30 03:32:35 And refuse to listen to us. Jun 30 03:32:38 :| Jun 30 03:33:01 then what is it? give me explanation lastly? Jun 30 03:33:12 in this situation it's probably your activity and it will have to implement onClickListener, so look for the method 'onClick' Jun 30 03:34:41 this is activity? bankai_ ? Jun 30 03:34:54 potentially, i can't see your whole class Jun 30 03:35:37 http://pastebin.com/DrLq0rF1 Jun 30 03:35:58 bankai_: this is activity? Jun 30 03:36:01 then yes Jun 30 03:36:21 8 line and 14 line this is same? Jun 30 03:36:21 buttonPlay.setOnClickListener(this) refers to your current activity's "onClick" method Jun 30 03:37:10 current activity is MainActivity? Jun 30 03:37:18 Yes. Jun 30 03:37:47 oh Jun 30 03:45:44 LunarEclipse120, Is his code correct? Or would clicking the button do anything? Jun 30 03:46:39 It is wrong. Jun 30 03:47:03 yeah it looks like onCreate would be called on click or something Jun 30 03:48:30 Inside onCreate, does this refer to onCreate? or to not ? maybe not because onCreate is a method and MainActivity is a class? Jun 30 03:51:08 He wants something like this http://pastebin.com/yiTBpVEf Jun 30 03:51:13 His listener isn't even setup right Jun 30 03:52:38 Right, because setOnClickListener expects the given argument to have a member named onClick which it calls upon the event of a click, right? Jun 30 03:53:28 The problem with his code is buttonPlay.setOnClickListener(this); isn't doing shit. Jun 30 03:54:29 Well, if "this" points to onCreate, then true. But if "this" points to MainActivity and MainActivity has a public method called onClick, then perhaps it would work? Jun 30 03:55:45 Nope Jun 30 03:57:25 Hi. I am reading about activities. Does anyone have an idea what this line "An activity is tightly coupled with its view." could be mean? It sounds like to me it is referring to the layout such as "LinearLayout" but thats called viewgroup. Jun 30 03:58:57 Geez, we're starting to sound like yawn-err lawyers. ;) Jun 30 03:59:21 Or better yet: "Synergy!" Jun 30 04:02:10 nevermind i got it Jun 30 04:02:50 purplex88, please explain, I have same question :D Jun 30 04:10:45 jesseg: View refers to buttons, edittext, textview controls on activity. Jun 30 04:11:07 Ahh, so a view is like a widget Jun 30 04:11:20 Yes, its their base class. Jun 30 04:11:41 Thanks! Jun 30 04:12:03 The book further says: "The view that the activity inflates in the call to setContentView(…) is tied to the activity ’til death do them part." Jun 30 04:12:40 "You cannot swap out an activity’s entire view (without destroying the activity) or pass a view from one activity to another at runtime. This is the law of Android." Jun 30 04:13:19 what book is that? Seems to have a nice sense of humor Jun 30 04:13:21 When they are saying "activity's view" it means the activity itself. Jun 30 04:13:48 When they are saying views on activities it means widgets Jun 30 04:14:18 I was confused between these views since an Activity != View Object Jun 30 04:15:08 jesseg: Android Programming: Big Nerd Ranch Guide. Jun 30 04:15:18 Haha, yeah funny title too. Jun 30 04:16:57 jesseg: Are you still learning? Jun 30 04:17:09 purplex88, just began :D Jun 30 04:17:20 Me too. Jun 30 04:20:28 jesseg: Let's share and learn. Jun 30 04:20:45 purplex88, sounds great. Jun 30 04:22:21 I am currently doing fragments. Done with some basics of activities. Jun 30 04:22:35 purplex88, ahh I am scared of fragments :D Jun 30 04:22:44 Haha Jun 30 04:23:02 But they're way cooler than activities Jun 30 04:23:50 that might be but my brain only has an 8 bit datapath so I have to take it slow. Jun 30 04:24:42 Sure, I prefer slow as well with many examples. Jun 30 04:25:11 Slow is the best IMO. Jun 30 04:26:02 Because that gives you plently of time to look something from different angles, analyse and explore. Jun 30 05:21:24 hi Jun 30 05:22:02 guys,i need a suggestion Jun 30 05:23:54 I need a conditional library build, meaning if flavor1 is selected when building my app, I need to compile dependant libraries with a -DFLAVOR1 flag, and similar for other flavors. Jun 30 05:24:00 any idea how I can do it? Jun 30 05:29:34 https://developer.android.com/studio/build/build-variants.html might be what you want Jun 30 05:31:20 build-variant is for my app, not dependant libraris. Jun 30 05:31:44 defining that flag is a problem. Jun 30 05:35:03 jesseg: are you come back after feeding sheep? Jun 30 05:35:49 buttonPlay.setOnClickListener(this); <— you said that this must have onClick method? Jun 30 05:36:15 buttonPlay.setOnClickListener(this); <— you said that this(object) must have onClick method? Jun 30 05:36:30 mimtf: yea Jun 30 05:36:43 you will get an error if yoy try to compile it. Jun 30 05:36:55 hero_biz: you are jesseg ? Jun 30 05:36:55 unless you use somthign like this: Jun 30 05:36:58 no Jun 30 05:37:20 mimtf: I already corrected your code. Jun 30 05:37:31 mimtf: http://pastebin.com/yiTBpVEf Jun 30 05:37:47 buttonPlay.setOnClickListener(new OnClickListerner { ... }); Jun 30 05:38:01 mimtf, yeah I'm back from tending the livestock Jun 30 05:38:13 buttonPlay.setOnClickListener(this); <— you said that this(object) must have onClick method? Jun 30 05:38:41 mimtf, do like LunarEclipse120 says. Jun 30 05:38:54 mimtf, that's how I do it in my game app I made for you Jun 30 05:39:38 buttonPlay.setOnClickListener(this); <— you said that this(object) must have onClick method? anyway this is right? jesseg ? Jun 30 05:40:07 mimtf, I don't think that's right. At least I could not get it to work. Jun 30 05:40:27 but hero_biz said that it is right. Jun 30 05:40:54 mimtf, https://developer.android.com/training/index.html Jun 30 05:41:21 mimtf, no he didn't. He showed you how to do it without referencing "this" Jun 30 05:41:22 when you use .setOnClickListener(this) in a class, the class must implement/override the listener methode Jun 30 05:41:24 -e Jun 30 05:41:43 adq, ahhhh thanks. Jun 30 05:42:20 didn't we just do this dance? Jun 30 05:43:16 bankai_: you born as adult? lol Jun 30 05:43:23 mimtf, there is a way I guess to use "this" but I don't know how. There's a thing in java called override which allows a custom function in a class or something like that Jun 30 05:44:46 IS there a preferenceScreen for android wear 2.0? Jun 30 05:53:19 buttonPlay.setOnClickListener(this); <— you said that this(object) must have onClick method? hero_biz ? Jun 30 05:53:22 yes? Jun 30 05:53:24 :) Jun 30 05:53:35 For fucks sake. Jun 30 05:53:41 mimtf: Just use the code I already corrected. Jun 30 05:53:45 mimtf: http://pastebin.com/yiTBpVEf Jun 30 05:53:46 :| Jun 30 05:53:54 That is the correct way Jun 30 05:54:22 OnClickListener is class then? Jun 30 05:54:25 LunarEclipse120: ? Jun 30 05:54:31 It's a method. Jun 30 05:54:41 Just use the code I made. It is corrected Jun 30 05:55:25 method? Jun 30 05:55:33 how you can make object with method? Jun 30 05:55:34 lol Jun 30 05:55:51 Ffs Jun 30 05:57:56 LunarEclipse120: i think that you don’t know well. Jun 30 05:58:02 android Jun 30 05:58:06 8) Jun 30 05:58:17 mimtf: I don't think you know anything. Jun 30 05:58:34 I know a lot more about Android than you. Jun 30 05:59:15 can i see your app? Jun 30 05:59:20 LunarEclipse120: ? Jun 30 05:59:30 No. Jun 30 05:59:37 Because I don't make apps. Jun 30 06:00:04 only n00bs don’t make app. Jun 30 06:00:07 But if I did, at least I know how to make a fucking onClickListerner. Which you have spend 5 hours on. Jun 30 06:00:12 I am not a noob. Jun 30 06:00:26 I'm the noob Jun 30 06:00:26 mimtf: You know so much about Android? How do you flash CyanogenMod then? Jun 30 06:00:42 i m studying asm at same time. lol Jun 30 06:01:30 pfft i compile that stuff all the time Jun 30 06:01:32 mimtf, a class is like a prototype I think, kind of like a definition of your own complex variable type. A method is like a function in that complex data structure I think Jun 30 06:01:34 That has nothing to do with this. Jun 30 06:02:52 buttonPlay.setOnClickListener(new OnClickListener() { <—— OnClickListener is class? jesseg ? Jun 30 06:03:28 mimtf, I'm not sure if you call it a class or an anonymous method or whatever Jun 30 06:03:53 but I'm betting it's an anonymous (i.e. unnamed) method (function) Jun 30 06:03:53 mimtf, you might want/need to learn java Jun 30 06:05:30 ok Jun 30 06:05:49 anyway how i can adjust font size on android studio? Jun 30 06:05:56 \: Jun 30 06:06:00 font size is too small now Jun 30 06:06:16 it's in the settings of AS Jun 30 06:07:09 you really need to learn how to search and fix things on your own, especially these kinds of things, you will much benefitt from it and bother less this channel Jun 30 06:10:40 i can’t change font size. strange. Jun 30 06:10:41 :( Jun 30 06:10:54 mimtf, what resolution is your monitor? Jun 30 06:10:55 font size is not activated now. Jun 30 06:11:04 resolution? Jun 30 06:11:10 what you mean? Jun 30 06:11:40 IS there a preferenceScreen for android wear 2.0? <- no, you have to make your own, alternatively you can find some boilerplate in https://github.com/googlesamples/android-WearCompanionLibrary/ but the lib is not really up-to-date Jun 30 06:11:45 mimtf, 1920x1080? 2560x2048 ? Jun 30 06:11:58 720x640 Jun 30 06:12:24 mimtf, is that an android device or a windows computer? Jun 30 06:12:32 windows computer Jun 30 06:12:50 I bet Android Studio is kinda slow :D Jun 30 06:13:51 I need to upgrade to 8GB just so that Android Studio won't swap to the hard disk X_X Jun 30 06:17:20 MisterGadfly, go to 16GB if you can :x because you will have additional overhead browser tabs + some emulators/VMs running, and gradle, and etc.. Jun 30 06:17:23 mimtf, I think it's an anonymous class. Jun 30 06:18:07 adq, yeah my 3G is a touch on the slim side for AS Jun 30 06:18:50 Alt + Enter <— what it work? Jun 30 06:19:06 also, with some of the remaining ram, you can create a ramdisk and put the build/ folders of your projects in it Jun 30 06:19:15 it's much better than any ssd Jun 30 06:19:19 mimtf, try putting the cursor in the word that's underlined red Jun 30 06:19:29 adq, oh that's a spended idea Jun 30 06:19:45 ramdisks are so easy in Linux Jun 30 06:19:48 adq: wouldn't the actual building be a bigger bottleneck than writing to disk? Jun 30 06:19:48 mimtf: How about you take your time to Google things or try and firgure them out yourself before you go posting your overyly simple question here Jun 30 06:19:51 ? Jun 30 06:20:00 MisterGadfly, RAM is the fastest Jun 30 06:20:04 OK Jun 30 06:20:10 i understand it Jun 30 06:20:19 and lot of little files are being read and write when you build your project Jun 30 06:20:23 anyway you can do assembly? LunarEclipse120 ? Jun 30 06:20:34 Oh No. Jun 30 06:20:38 it's one of the bottleneck, AS does not even use 100% of the cpu Jun 30 06:20:39 You aren't this kid? Jun 30 06:20:51 adq: it does use mine :D Jun 30 06:20:57 assembly is required to guy who really good at programming. Jun 30 06:21:03 adq: but I have a CPU made for tablets on this laptop :D Jun 30 06:21:07 mimtf: You don't know assembly :P Jun 30 06:21:28 ah Jun 30 06:21:32 i can do a little, but i learn it again. now Jun 30 06:21:44 yeah I picked up a little assembly but it was too hot so I dropped it Jun 30 06:22:20 lol Jun 30 06:22:23 mimtf, what architectures did you assemble for? Jun 30 06:22:26 never give up Jun 30 06:22:33 nasm Jun 30 06:22:44 I guess that means x86 :P Jun 30 06:22:47 i use nasm you know it? jesseg ? Jun 30 06:22:54 mimtf: I'm calling bullshit on that. Jun 30 06:22:58 x86_64 Jun 30 06:23:00 is it worth spending time migrating a fairly large project to dagger2 from dagger1? Jun 30 06:23:07 from* Jun 30 06:23:09 mimtf, isn't that one of the open source assemblers for X86? Jun 30 06:23:14 Not only do you say you are under 8 years old. You lied about your picture. Jun 30 06:23:19 jesseg: I think he's lying :P Jun 30 06:23:29 yeah nasm is open source Jun 30 06:23:31 LunarEclipse120, haha Jun 30 06:23:46 use fasm Jun 30 06:24:14 or turbo assembler, if you're doing x86 stuff Jun 30 06:25:08 I prefer microchip 8 bit assembler myself, and the associated hardware. It's simple and primitive. Fits my level of intelligence nicely. Jun 30 06:25:36 what can be done in only 8bits? Jun 30 06:26:04 w4ffles, lol Jun 30 06:26:08 i = new Intent(this, GameActivity.class); <— anyway what is class? Jun 30 06:26:09 :-p Jun 30 06:26:26 i don’t know what is ‘calss’ behind GameActivity Jun 30 06:26:29 class Jun 30 06:26:30 w4ffles, anything can be done it just takes longer Jun 30 06:28:23 .class? Is that the name of a method in GameActivity? Jun 30 06:28:39 someone is fucking about /: Jun 30 06:28:39 no Jun 30 06:28:45 jesseg: Jun 30 06:29:40 well it's bedtime for me. Good night. Jun 30 06:29:53 mimtf: reference to the Class instance for that class -- useful for reflection jesseg Jun 30 06:30:01 mimtf: The fact that you spend 5 hours on an on click listener makes me suspect that you don't actually know assembly. Jun 30 06:31:32 but asm is different with android Jun 30 06:31:36 LunarEclipse120: Jun 30 06:31:45 LunarEclipse120, on the other hand, if one's entire programing world-view consists of assembly, trying to understand Java would be very confusing. Frankly, I feel the same way. I spent days trying to figure out how to draw graphics to a surfaceView -- a task everyone here said was so simple they couldn't be bothered to explain to me. Jun 30 06:32:28 jesseg: Keep in mind that mimtf also claimed he is under the age of 8. Jun 30 06:32:48 And claimed that he's a girl. And faked a photo. Jun 30 06:33:14 ok Jun 30 06:33:17 My background is tiny assembly, C, perl, python, shell scripting, etc., but Java and Android have been a real challenge. Jun 30 06:33:17 pretty sure you can find tons of youtube tutorials on that subject mimtf. Jun 30 06:33:27 it is my sister photo really. Jun 30 06:33:49 lol Jun 30 06:34:01 mimtf: No it isn't you idiot. Jun 30 06:34:15 yeah android is strange to me too. jesseg Jun 30 06:34:16 Looks like we've got a Machiavelli among us, guys :D Jun 30 06:34:19 what picture was it LunarEclipse120 ? Jun 30 06:34:22 LunarEclipse120, I once conversed on IRC with somebody who claimed to be a raven. I asked him if it was OK if I introduced him to a friend who believed he was a cat. Jun 30 06:34:51 or maybe it was a crow, I don't remember. Jun 30 06:35:08 jesseg: psychotic? Jun 30 06:35:37 raoul11: http://imgur.com/ElTO7Hw Jun 30 06:35:42 This was the picture Jun 30 06:35:55 MisterGadfly, who knows. I asked him to pretend to be a human but he wouldn't. I guess it's no fun to pretend to be a crow who's pretending to be a human Jun 30 06:36:01 He just google searched "Beautiful Russian Women" Jun 30 06:36:16 jesseg: I sexually identify as an apache attack helicopter. Jun 30 06:36:32 reverse image searching. LunarEclipse120 do it Jun 30 06:36:43 LunarEclipse120: conformist. Jun 30 06:36:45 No shit sherlock. Jun 30 06:36:59 mimtf: I told you what I did because you were so dumb you never heard of it Jun 30 06:37:01 LunarEclipse120 http://i.imgur.com/Ykm3H4D.png Jun 30 06:37:14 raoul11: Exactly xD Jun 30 06:38:30 how can i get root power that can get photo, camera, message on android? Jun 30 06:38:43 mimtf: http://catb.org/~esr/faqs/smart-questions.html Jun 30 06:38:49 can i get source code? Jun 30 06:38:50 sudo su Jun 30 06:39:15 1) acquire hammer 2) apply hammer to phone, sharply and repeatedly 3) ???? 4) root Jun 30 06:39:15 LunarEclipse120 what is the motivation behind his troll? Jun 30 06:39:31 mimtf: These are all questions you can Google and stop bothering us with. Jun 30 06:39:43 LeedsHK: with android code? Jun 30 06:39:45 raoul11: He's a poor and lonely Indian with nothing better to do. Jun 30 06:39:54 :| Jun 30 06:39:58 mimtf: yes Jun 30 06:40:11 yeah, I think he just trolls for attention Jun 30 06:40:25 I was actually scamming his kind earlier. Jun 30 06:40:28 :| Jun 30 06:40:29 attention whoring /: Jun 30 06:40:36 Me and my friends were calling the blacklisted numbers. Jun 30 06:40:50 She should put the YouTube video up soon. Jun 30 06:41:30 Oh yeah. Jun 30 06:41:43 We were using skype, so we called up to scammers and put them in a call together. Jun 30 06:41:48 It was hillarious. Jun 30 06:42:00 lol Jun 30 06:42:05 should be fun to watch Jun 30 06:42:28 She is probably going to upload it to her YouTube channel. I'll link it to you if she does. Jun 30 06:42:29 this dude made a simiar video with service representatives talking to each other Jun 30 06:42:44 ok Jun 30 06:42:46 from the same call center Jun 30 06:42:52 i m pnptutorial on Youtube Jun 30 06:42:57 it is real Jun 30 06:43:43 mimtf: No one cares. Jun 30 06:44:10 :| why people don’t like me? Jun 30 06:45:52 Because you're an annoying, lying troll. Jun 30 06:46:01 That doesn't speak proper English. Jun 30 06:46:53 i think that you are kind, but i m wrong. Jun 30 06:47:01 :P Jun 30 06:48:32 Just proofed my second point. Jun 30 06:49:06 "proved" Jun 30 06:49:19 what point? Jun 30 06:50:01 LeedsHK: Seems like my HexChat dictionary is messed up. :P Jun 30 06:50:26 mimtf: Can you read? Jun 30 06:50:47 yeah Jun 30 06:53:07 mimtf: are you at a university or something? Just curious Jun 30 06:53:17 to earn money Jun 30 06:53:21 millionaire Jun 30 06:53:21 MisterGadfly: According to him, he is under the age of 8. Jun 30 06:53:33 mimtf: Your app won't make you $1 million. Jun 30 06:53:37 mimtf: are you a student? Jun 30 06:53:52 MisterGadfly: what’s wrong? Jun 30 06:54:15 mimtf: I'm just curious to know if you're a student at an university or not Jun 30 06:54:33 lol Jun 30 06:54:43 i just do it for earning money Jun 30 06:54:49 to buy food Jun 30 06:54:56 You're 8? Jun 30 06:55:02 younger Jun 30 06:59:21 so only I do programming from passion? :( Jun 30 06:59:51 So do I. Jun 30 07:03:44 I want to identify the button which raised the Motion Event. Jun 30 07:04:21 I try to use event.getActionButton() but it returns the same value for all the buttons. Any help please ? Jun 30 07:06:02 KoparPokar: Might want to try during the day. Jun 30 07:06:14 its 9 am Jun 30 07:06:29 In the US... Jun 30 07:06:38 Most of the people here are from the US afaik Jun 30 07:07:01 geet oyur time right Jun 30 07:08:01 Ashiren: are you a paprika-munching bastard left of my country? :P Jun 30 07:09:24 Hmm. Seems like GMT+2 covers a lot more countries than I thought. Jun 30 07:09:49 Ashiren: oh, you're Polish Jun 30 07:10:52 Lol. Jun 30 07:12:31 Disclaimer: I don't actually hate Hungarians. I was making fun of the Romanian-Hungarian animosity. Jun 30 07:14:04 LunarEclipse120: bye Jun 30 07:14:08 i will go to bed Jun 30 07:14:16 see you tomorrow Jun 30 07:14:26 xD Jun 30 07:14:58 Thank god, he's gone. Jun 30 07:23:26 dont know what admin is doing Jun 30 07:24:04 Is there any IRC dedicated to android game-dev ? Jun 30 07:24:51 STFG already done. Jun 30 07:28:20 more like channel of game frameworks ie. #libgdx Jun 30 07:40:26 no one is using android wear 2.0 preview? Jun 30 07:46:03 Hi, any way in which I can sniff the network traffic of my app, (settings its on apn and not wifi). Jun 30 08:09:07 Hey people.. I'm wondering is there some flag set in an activity if the user changes something? If they interact with a controll? Jun 30 08:11:20 well there is onUserInteraction Jun 30 09:01:35 hey, any one have examples on using an Android wear 2.0 complication? Jun 30 09:20:51 Anyone got a recommended Java style guide to use for Android? I don't think I've ever tried to follow one Jun 30 09:21:11 http://google.github.io/styleguide/javaguide.html Jun 30 09:21:31 many people prefer to use 4 spaces instead of 2 in the java world - but other than that that is the most common style Jun 30 09:28:20 yawkat: 2 spaces for the win! Jun 30 09:28:49 two spaces is okay - but it is not common :D Jun 30 09:29:38 I think the only answer in this debate is: tabs Jun 30 09:29:56 https://www.youtube.com/watch?v=cowtgmZuai0 Jun 30 09:29:58 I like 2 spaces... Jun 30 09:32:01 markyosullivan: 4 spaces are more common in the java world - but tabs may be more common than 2 spaces, id guess Jun 30 09:32:35 I also like 2 spaces in Python, which makes me a heretic Jun 30 09:33:03 yes, not following pep 8 is bad. Jun 30 09:33:19 LeedsHK: Did you change your name because people were asking if you live in Leeds, England? :p Jun 30 09:34:48 markyosullivan: nope, left my PC at home turned on and logged in - this is my fallback nick... I know I could get nickserv to kick me, but I don't care enough :) Jun 30 09:35:07 also, I'm proud to be from Leeds, England, even if I haven't lived there for a quite a long time :P Jun 30 09:35:43 how do I make a complication id? Jun 30 09:35:59 LeedsHK: I need to make a secondary nick so I can leave my PC running with this nick in work Jun 30 09:36:07 how do I specify the dimensions my compliation will take up? Jun 30 09:36:17 Do you not need a second email? Jun 30 09:36:25 are there any code examples for creating a complication? Jun 30 09:36:45 nah, it's attached to the same account... can't remember offhand how I did it Jun 30 09:37:13 wyoung: I really don't think there are many/any wear devs around here - you should probably look for a more appropriate venue for your question Jun 30 09:37:39 rather than just asking the same questions repeatedly here and getting no answers... Jun 30 09:38:04 LeedsHK: like where? Jun 30 09:38:13 LeedsHK: I just assumed everyone was asleep Jun 30 09:39:22 dunno - stackoverflow? xda? Jun 30 09:40:37 LeedsHK: hmmmmm, cheers Jun 30 09:44:37 Hello, i am going to start learning how to develop android apps ,I am installing the development enviroments and i ended up choosing between IDEs. Should i just install android Studio or install plugins in to Eclipse or NetBeans Jun 30 09:45:22 use android studio Jun 30 09:45:47 Let's make it <—— what is full statement? Jun 30 09:46:14 AS Jun 30 09:46:21 makes life so much simpler Jun 30 09:46:28 For anyone who considers using Eclipse: http://www.ihateeclipse.com/ Jun 30 09:46:30 Let is make it? Jun 30 09:46:43 Let's make it == Let is make it? Jun 30 09:46:46 mimtf: please go away Jun 30 09:46:55 :| Jun 30 09:47:04 i m reading android tutorial Jun 30 09:47:10 LeedsHK: Another one has moved to the light side. Welcome brother. Jun 30 09:47:16 mimtf: Then stop asking us stupid questions. Jun 30 09:47:22 ok Jun 30 09:47:27 last question. Jun 30 09:47:30 no. Jun 30 09:47:35 LunarEclipse120: you can chill out as well... Jun 30 09:47:46 Let's make it == Let is make it? <— this is last question. Jun 30 09:47:50 LeedsHK: You just told him to go away :P Jun 30 09:48:02 mimtf: Stop trying to have other people do the work for you. Jun 30 09:48:14 :| Jun 30 09:49:21 LunarEclipse120: you know it? because you live in US for long time. Jun 30 09:50:23 mimtf: Know what? Jun 30 09:50:37 Let's make it == Let is make it? Jun 30 09:50:57 No. Jun 30 09:51:00 That is not true at all. Jun 30 09:51:10 You said you were born in New York City, Yet another lie. Jun 30 09:51:10 then? Jun 30 09:51:26 Then what? It is a false statement, nothing else about it. Jun 30 09:51:40 but i can’t learn english. because i move to Russia when i was 6 month. Jun 30 09:52:46 3 Jun 30 09:52:48 3 Jun 30 10:31:16 This isn't a channel to learn English :D Jun 30 10:42:50 * hero_biz thinks configuring gradle is much more complex that learning to code andoird... Jun 30 10:49:53 Hello to everybody! I would ask for your help. I am trying to develop an app which downloads data from a web api and parses it. I am developing the api also for my app, so the website is on my local machine. I have noticed that the android emulator does not follow my computer's hosts file instructions. Is it possible to copy the same hosts file info into the emulator, or somehow force it to use the local version of the Jun 30 10:49:53 website, not the live one? Jun 30 10:52:41 Well sorry I can't help you with the emulator, I'm using real device for tests (can't you do that?). But why are you talking about files? You need to store the instruction? Aren't you just using JSON? Jun 30 10:53:00 You could make a toggle in code which switches from the local to the live data and back. Jun 30 10:55:01 I just realize I'm not sure wether he finds hard to put file in the emulator or to use it... Jun 30 10:57:00 My issue is that I am making on the fly changes to the api which generates the json data, and for security reasons I cannot put that onto the live site. That is why the site is on my local machine. I have set it up in the hosts file that when I want to go to mysite.com, it goes to my local apache server, not on the internet. But apparently in the emulator, it accesses the live server, because the url's are the same Jun 30 10:57:32 So telling it in other words, I am not sure how can I "force" the emulator to Jun 30 10:57:44 query my local webserver, not the live one Jun 30 10:57:58 the emulator and the local webserver are on the same machine Jun 30 10:59:09 Sounds like relying on the hosts file to route your queries is a bad idea in the first place Jun 30 10:59:28 yeah Jun 30 10:59:58 i always have use tricks to change used URL in my app Jun 30 11:00:24 okay, so what are my options to solve this, other than the hosts file? Jun 30 11:01:12 with android studio I didn't find an equivalent of "#if DEBUG" to conditionally change my URL so I'm just using a DEV_MODE boolean... Jun 30 11:01:15 Implement a mechanism to change the URL at compile/runtime Jun 30 11:02:07 (by the way when in DEV_MODE I always put a visual indication, like a color, to be noticeable Jun 30 11:02:33 okay, but the dev website I am trying to reach on my local computer, it is not accessible from the internet, it does not have a regular domain name, that is why I usually use the hosts file Jun 30 11:03:36 Can't you use your computer's IP address? Jun 30 11:05:33 I already tried with localhost and my ip address to, but both ways I get Webpage not available in the emulator's web browser Jun 30 11:06:28 Oh Jun 30 11:06:47 I have you tried the recommended IP address? Jun 30 11:06:51 10.0.0.1 is it? Jun 30 11:07:07 10.0.2.2 Jun 30 11:07:24 http://stackoverflow.com/questions/6760585/accessing-localhostport-from-android-emulator Jun 30 11:08:11 I did not know about that, 10.0.2.2 works, thank you :) Jun 30 11:08:26 Also I've managed to connect using the IP address for my eth0 Jun 30 11:08:41 Well, that's what I normally use, I think 10.0.2.2 didn't work for me :D Jun 30 11:08:47 it did not allow me that Jun 30 11:09:41 anyways, thank you very much for your help! Jun 30 11:23:42 I want to implement ordered intent between two applications(sendOrderedBroadcast ). Can anyone provide some useful links, I am unable to get an example over net Jun 30 11:48:12 Just want to ask why it is not good to do direct mysql db connection using mysql connector? Jun 30 11:50:56 How can you pass objects bigger than 1 MB to another process with good performance? Is the only way to use jni with ashmem? I haven't found any working solutions that use this mechanism. Jun 30 12:04:49 ...going carzy if I work on this anymore.... Jun 30 12:12:48 All code and no play make hero_biz a dull boy Jun 30 12:22:31 Finished the basic design of my app. Yey. Jun 30 12:23:00 Hardest part will be to market the damn thing X_X Jun 30 12:23:24 game? Jun 30 12:24:17 raoul11: kinda Jun 30 12:24:29 interesting Jun 30 12:24:54 raoul11: what's interesting? Jun 30 12:25:10 that its kinda a game /: Jun 30 12:26:19 raoul11: excuse my stupidity, but I don't want to disclose what the app is about. I'm well aware that the chances of it to succeed are slim, but I'm just neurotic like this. :P Jun 30 12:26:45 (: Jun 30 12:26:55 are you using firebase init? Jun 30 12:27:18 raoul11: first time I hear of it :D Jun 30 12:27:24 oh Jun 30 12:27:41 b4 deploying, i suggest u go over some intros on youtube Jun 30 12:27:57 its amazing in the toolset it provides from growing your market share Jun 30 12:28:14 +for-from Jun 30 12:28:24 raoul11: I'll check it out Jun 30 12:28:37 If you put a Serializable extra into an Intent, does the serialization actually happen every time you send and Intent with a Serializable extra? Jun 30 12:28:40 goodluck anyways Jun 30 12:31:40 raoul11: thanks :D Jun 30 12:33:20 hi question, is there anyone over here that develops android apps without android study:)? Jun 30 12:33:25 raoul11: hmm, I'm not at that level yet Jun 30 12:33:26 s/study/studio Jun 30 12:33:57 yes Jun 30 12:34:09 but why would you wanna not use AS Jun 30 12:34:44 cause I usually prefer using just vim + a compiler/interpreter Jun 30 12:34:55 but I've got this gut feeling, that with apps, it's going to be a pita Jun 30 12:35:30 raoul11: too lazy to implement it :D Jun 30 12:36:10 rethink it MisterGadfly Jun 30 12:36:46 isn't it tedious to make an app without AS? Is it even possible (aren't there many preprocessed things)? Jun 30 12:37:01 pita is an understatement Amnesia Jun 30 12:37:13 lel, hmkay Jun 30 12:37:31 its really not that bad, quite good i dare to say. Jun 30 12:37:44 makes life so much easier Jun 30 12:39:04 I am wondering, whether I need to worry about the performance when serializing extras that are passed via Intent as a Bundle Jun 30 12:39:29 Does serialization and deserialization actually happen when sending a Bundle with a serializable extra? Jun 30 12:39:49 raoul11: tyvm Jun 30 12:41:17 barq: I don't know what's happening internally but I've never hear so far there is such a thing... I'm not ultra expert with android but I always thought extras were just variables passed in a 'map'... Jun 30 12:42:02 How are they stored between processes, though? Jun 30 12:43:54 Binder can work well with Parcelables, but what about Serializables? Jun 30 12:45:31 Serialization is really really arse slow. Jun 30 12:45:40 And yes it does happen. Jun 30 12:49:05 Do anyone of you got some spare time for 15-30 min pair programming? I trying to include something simple as firebase-auth and firebase-messaging. It is complaining all the time when syncing my gradle. :( Jun 30 12:49:38 You work in a different process when you do an intent? Jun 30 12:52:38 I really now wonder if I should send my ndk into a different library. I wanted to do this because I liked to mix gradle experimental and stable in order to use benefits of stable version too. But now I super stucked in handling dependecies that I think keeping ndk in main project is better... Jun 30 12:53:05 Mavrik: Every time, even if the extra is only passed within the same process? Jun 30 12:53:53 Parcelation implementation doesn't care :) Jun 30 12:53:54 Probably somewhere in Parcel#writeToParcel Jun 30 12:54:11 ok Jun 30 12:54:50 I haven't found the place where the serialization happens Jun 30 12:55:14 how long it takes time to make android app? Jun 30 12:55:50 barq: parcels are GREAT. only problem with them are interfaces(means if you have a interface memebr in it, and you need to parcel with interface) Jun 30 12:56:54 Yeah, it's great if you implement Parcelable Jun 30 12:57:16 But since the whole app is based on implementing Serializable I was wondering where this serialization actually happens. Jun 30 12:57:57 Mavrik says it is serialized somewhere, but haven't located the code yet. Maybe it happens in native somewhere? Jun 30 12:59:04 Is it ok for using AppCompatActivity with newer versions of support:appcompat-v7 ? Jun 30 12:59:10 Ho I forget I had a problem too : is it me or it became nearly impossible to have a sticky service in Android 5.1? I try everything (service/intentSeervice, return sticky flag, using an alarm to launch the service after the app is close), I can't get it working... Jun 30 12:59:21 I'm a begginer, but I don't think so. Serilaizable is a java interface, so I think it is handled in java classes, not native codes. Jun 30 12:59:25 https://developer.android.com/reference/android/os/Parcel.html#writeSerializable(java.io.Serializable) Jun 30 13:00:14 oh, writing serizliable to parcel.. Jun 30 13:01:52 barq, Serializable is part of Java spec, so probably in ART/Dalvik runtime Jun 30 13:02:03 has anyone here compiled ffmpeg for android successfully? Jun 30 13:02:23 Yes. Jun 30 13:02:58 Mavrik: which version of ffmpeg for android, and on which version of linux? Jun 30 13:03:14 I don't remember, 2.x branch Jun 30 13:03:19 And I wasn't compiling on linux. Jun 30 13:03:34 But that doesn't really make a difference. Jun 30 13:03:37 I couldn't get it working on windows 7 Jun 30 13:03:52 because it needed some libs from linux Jun 30 13:04:16 Then you were doing something very wrong. Jun 30 13:04:28 Because you were attempting to link desktop code to code targeted to another processor. Jun 30 13:04:43 Also don't use Windows to compile Unix binaries -_- Jun 30 13:04:44 hmmm Jun 30 13:05:19 Since configuration scripts are usually heavy bash Jun 30 13:05:26 well it was ffmpeg-4-android if I remember right, I gave up on it awhile ago Jun 30 13:06:08 and I was using eclipse with all the NDK dependencies downloaded I think Jun 30 13:06:53 Mavrik: I guess you can't just send me the ffmpeg.so file ? Jun 30 13:07:11 you get an ffmpeg binary, not a .so ;) Jun 30 13:08:40 shmooz, also you understand that you'll need several builds for different platforms right? Jun 30 13:08:54 Mavrik: yeah I realize that Jun 30 13:09:07 Also, use standalone toolchain. Jun 30 13:09:12 It's there for that exact reason. Jun 30 13:09:19 Don't port to ndk-build or something silly like that. Jun 30 13:09:23 I did find .so files which was a AACdecoder that was extracted out of ffmpeg Jun 30 13:09:41 and it worked on some devices but not all Jun 30 13:09:58 for streaming live shoutcast and icecast and whatever Jun 30 13:10:26 but I'd like to get a fully working one, and replace MediaPlayer with ffmpeg so it can support more file formats Jun 30 13:10:30 shmooz: do you need to build it yourself? I think ph0b has already done it Jun 30 13:10:50 hero_biz: link ? Jun 30 13:10:55 https://github.com/ph0b/FFmpeg-Android Jun 30 13:11:02 <.< Jun 30 13:11:10 is he distributing the binaries? Jun 30 13:11:37 Mavrik: I set a breakpoint in Parcel#writeSerializable and it is only called when passing Serializables across processes, not within the same process. Jun 30 13:11:42 I have not tested it myself,I somehow came to it when I was trying to learn about gradle. Jun 30 13:11:51 you need to check it yourself Jun 30 13:12:02 but I think he at least says how to do it :) Jun 30 13:12:08 That one could work. Jun 30 13:12:19 hero_biz: ok thanks, I'll give it a shot Jun 30 13:12:23 barq, what happens when it's inside the process? Jun 30 13:12:49 it seems it is done based on this: http://vec.io/posts/how-to-build-ffmpeg-with-android-ndk Jun 30 13:13:59 hm...Mavrik Jun 30 13:14:13 when we use a split apk Jun 30 13:14:22 and it depends on a library Jun 30 13:14:46 how app picks correct library with correct abi for ak? Jun 30 13:14:48 Ew. Jun 30 13:14:48 *apk Jun 30 13:14:55 That link you just posted compiles ffmpeg for ARMv5 Jun 30 13:15:02 Don't do that if you want performance :P Jun 30 13:15:25 hero_biz, hmm, what do you mean Jun 30 13:15:31 Mavrik: I told,I just came across it. Not tested myself. Jun 30 13:15:40 When you use splits, the APK is sliced in a way that it includes only one architecture for native code Jun 30 13:16:06 And Google Play Store automatically filters installations by available binaries inside the APK Jun 30 13:16:09 Mavrik: but assume that native code is a seperate library Jun 30 13:16:40 how app picks correct build from that library to pack inside apk? Jun 30 13:17:18 Native code is always in `libs/` directory, both on APK and AAR Jun 30 13:17:25 anyone know some good resources for using rxjava with retrofit returning observables? Jun 30 13:17:30 When using splits, gradle then just includes a single arch from AAR instead of all of them Jun 30 13:17:41 e.g. `libs/armeabi` Jun 30 13:17:47 hm... Jun 30 13:18:26 when I uild my librray, it creates aar files like :asd-armeabi.aar all of them in input folder Jun 30 13:18:35 *output Jun 30 13:18:51 is it incorrect to use this folder for jniLibs? Jun 30 13:19:28 should I move these build into correct folder? Jun 30 13:19:34 huh Jun 30 13:19:40 AAR files should already include all native code Jun 30 13:20:11 only if I use abiFilter to add all of them. Jun 30 13:21:03 If I use productFlavor in library to make different aar for each abi, 1 aar wont be usefull for all apks. Jun 30 13:21:21 Well, don't., Jun 30 13:21:29 You should never filter AARs by ABI. Jun 30 13:21:38 There's no mechanism to handle that. Jun 30 13:21:47 ouch. Jun 30 13:21:49 You always pack everything in it and then do splits / filtering when packing the final APK Jun 30 13:22:01 aha Jun 30 13:22:04 got it Jun 30 13:22:06 Splitting AARs makes no sense :) Jun 30 13:22:14 They're repacked and merged into APK when app is built. Jun 30 13:22:24 So you don't distribute them to users, just to developers :) Jun 30 13:23:05 means if my aar contains for example armeabi and x86_64, split in app using this aar picks correct so inside aar for making apk? Jun 30 13:24:08 yes. Jun 30 13:24:20 it'll unpack AAR, merge it into APK and then APK will be split Jun 30 13:24:43 GREAT! Jun 30 13:24:49 1 problem solved... Jun 30 13:24:55 now 2nd one :) Jun 30 13:25:14 I have posted this 2nd problem here: Jun 30 13:25:15 http://stackoverflow.com/questions/38115425/conditional-build-of-dependant-ndk-with-gradle Jun 30 13:25:16 :P Jun 30 13:25:36 ty for help too :) Jun 30 13:26:46 I get this error "Google Play services out of date. Requires 9256000 but found 9080470" after including firebase-core and firebase-auth. How to I update Google play services? Jun 30 13:26:47 Mavrik: When sending intents it is called, not when accessing a ContentProvider within the same process. Jun 30 13:29:59 The ContentProviders use Bundles and Parcels as well, but seem to differentiate between Inter- and Intra Process Communication Jun 30 13:32:12 nocco, via play store Jun 30 13:32:32 in a android emulator as well? Jun 30 13:34:39 How do I mention someone in irc? /notice ? Jun 30 13:35:44 people use : here Jun 30 13:36:13 Mavrik: in a android emulator as well? Jun 30 13:36:21 hero_biz: Thanks :) Jun 30 13:36:29 np :) Jun 30 13:37:02 nocco, hmm, I'm afraid the emulator has to be updated itself :/ Jun 30 13:37:17 Mavrik: How do I do that? Jun 30 13:37:26 :( Jun 30 13:38:04 nocco: have you checked if your emulator images has updated or not? Jun 30 13:38:19 you can check it in sdk manager Jun 30 13:39:38 nocco, you use SDK manager, but if Google didn't update it, there's nothing much you can do Jun 30 13:40:02 hero_biz: I just downloaded them, so they should be I guess. :/ But I read somewhere that someone had downgraded to kitkat. I will probably try that. Jun 30 13:40:10 Mavrik: Alright! Jun 30 13:40:15 Thanks! Jun 30 13:40:55 I suggest you grab Genymotion and install Play services in there Jun 30 13:41:03 What is that? Jun 30 13:41:10 Something you google. Jun 30 13:41:12 Will look into that :) Jun 30 13:41:12 another emulator Jun 30 13:41:14 haha Jun 30 13:41:20 okej Jun 30 13:41:30 Mavrik: did you see my question in that stackoverflow thread? :) Jun 30 13:41:37 any idea how I can do it? Jun 30 13:51:36 Hey folks, could some one help me with it ? https://gist.github.com/wviana/a3539f92ca423064602104ed7964dead pfn tried to help me yesterday but I wasn't able so solve it. I really tried every thing. Jun 30 13:53:24 I do need support library version 24.0.0 to have the behaviour that I expect, but This one is crashing on android 4.4.4 Jun 30 13:53:35 Something about vector drawable Jun 30 13:54:35 I have no idea what else should I try to do. `Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020013` Jun 30 13:55:04 wviana: tag requires viewportWidth > 0 -> don't you have a layout with a null/negative viewportWidth? Jun 30 13:55:26 dealerbook? Jun 30 13:56:07 kajika Thanks for answer, just a sec, I'll check that. Jun 30 13:58:27 kajika No, looks everything is ok. If it was something about the layout I believe it would error on `setContentView` instead of `super.onCreate` Jun 30 13:59:20 no usually it does the error on create as you inflate your view here Jun 30 14:01:20 kajika I add the login activity into Gist Jun 30 14:24:14 kajika Solved it, Don't even believe. So happy Jun 30 14:30:32 wviana: what was it? Jun 30 14:34:17 kajika buildToolsVersion Jun 30 14:36:13 Wow, I added `org.gradle.jvmargs=-Xmx2048m` into my gradle.properties, now it's supper fast Jun 30 14:51:04 damn Jun 30 14:55:57 i m too tired today. strange. Jun 30 14:56:09 i don’t know what to do? Jun 30 14:57:16 mimtf: in order of preference: nap, coffee Jun 30 14:57:40 what is nap? hcn_acripps ? Jun 30 14:58:04 mimtf: you know, when you go to sleep for a little shile during the day. Jun 30 14:58:18 s/shile/while/ Jun 30 14:58:52 i used to sleep after 36 hours. Jun 30 14:59:21 hcn_acripps: ? Jun 30 15:05:47 Hey, does anyone know what the default user/pass for opening files in the “inline” web server for an AS project? Or how to change it? for example, localhost:63342/project-name/htmlfile.html Jun 30 15:08:05 BooeyOH: login:pass@localhost:63342/project-name/htmlfile.html ? Jun 30 15:08:26 right, but I don’t know the login and pass Jun 30 15:08:28 I never set it up Jun 30 15:08:31 it used to be unauthenticated Jun 30 15:08:32 i'm not sure about what is the 'inline' mean... Jun 30 15:08:46 but one day it just asked me for user and pass, I think with a new update Jun 30 15:08:56 you have ftp access? Jun 30 15:08:58 I should have said “built in” not inline Jun 30 15:09:11 it is just on my local machine, and generated from Android Studio Jun 30 15:09:13 the server is running apache or nginx? Jun 30 15:09:37 oh port 63342 your app is the serve? Jun 30 15:09:51 no, it is something from AS, from Intellij, Jun 30 15:09:54 Webstorm Jun 30 15:09:56 or something Jun 30 15:10:19 https://blog.jetbrains.com/webide/2013/03/built-in-server-in-webstorm-6/ Jun 30 15:10:25 I won't be any help I'm affraid... good luck Jun 30 15:10:45 Thanks though! Jun 30 15:10:53 I just came into the room, so i don't know the full issue going on, but the built in web server should not require a user/pass to use Jun 30 15:11:08 if it is asking that, then you have something else going on Jun 30 15:11:34 hmmm, Ok, yeah, it used to not do that, but started after a recent update to AS, so maybe I checked something I shouldnt have Jun 30 15:12:11 Youre running the built in web server from android studio? Jun 30 15:12:42 yeah Jun 30 15:13:08 I right-click the file and choose “Open in browser" Jun 30 15:13:29 http://localhost:63342/page.html pops up and asks me for basic auth (u and p) Jun 30 15:20:00 are you sending a www-authenticate header? Jun 30 15:20:09 what does your html look like? Jun 30 15:22:57 It is just cdn bootstrap and some data and images, nothing special Jun 30 15:23:23 fwiw, if I open the file manually, it opens fine, but if I open through the http://localhost:63342/…. it asks for user/pass Jun 30 15:29:05 Does anyone know if there is an option for the ringtone picker to show a "none" option? Jun 30 15:29:36 I've seen screeenshots with this option but on my device I'm just showing a "default ringtone" option and the none option is missing. Jun 30 15:33:43 Nevermind I found it: https://developer.android.com/reference/android/media/RingtoneManager.html#EXTRA_RINGTONE_SHOW_SILENT Jun 30 15:40:39 i am trying to make my first android app , i have to add facebook login to an activity , and the app is throwing lots of error and crash upon execution . I want to know how android developers ,find what is the problem in the code and how to fix it ? Jun 30 15:41:59 jackhum, by reading the stack trace Jun 30 15:42:02 jackhum: you look at the errors, find out why they're happening, and fix them... logcat is your friend Jun 30 15:42:19 we do that by asking questions without stacktrace of course Jun 30 15:44:02 well, as soon as i execute my app on my android device , i see a lot of text in logcat window and i cant even figure out what does that text mean , its kind of very techy for me Jun 30 15:44:05 I’ve got a design problem that’s been bugging me. I’m porting an iOS app and I’ve got some UI that I can’t figure out how to do in the ‘Android way’. This is what it looks like: http://i.imgur.com/VS89exs.jpg Jun 30 15:44:13 if anyone had a good solution for my question at stackoverflow,I'm all ear. :) Jun 30 15:44:14 http://stackoverflow.com/questions/38115425/conditional-build-of-dependant-ndk-with-gradle Jun 30 15:44:32 jackhum, programming is techy, get started learning Jun 30 15:45:07 pfn: thats a really nice suggestion my friend, +1 for you Jun 30 15:45:13 hero_biz, can't you just add CFLAGS for each flavor? Jun 30 15:45:32 but still , how does a beginner can go around solving his or her problem by just seeing the logcat? Jun 30 15:45:46 jackhum, start by finding the stack trace first, google how to read java stack trace Jun 30 15:46:02 and you can filter logcat to tag 'AndroidRuntime' to start with Jun 30 15:46:47 Actually, I’m assuming that there’s a lot of questions on how to do iOS’s grouped tableviews in Android Jun 30 15:46:47 pfn: no Jun 30 15:47:17 productFlavors are for app and there is no flavor for library. Jun 30 15:47:20 JamEngulfer, recyclerview with different view types Jun 30 15:47:47 hero_biz, so you have an app project, and library project and ndk is in library project... Jun 30 15:47:50 yeah, that doesn't work Jun 30 15:47:51 I’m not necessarily asking how to replicate it, because if there’s an entirely different method of doing it in Android, I’d rather do that Jun 30 15:48:01 pfn: yea Jun 30 15:48:03 JamEngulfer, recyclerview would be easy to do that Jun 30 15:48:30 now any suggestion to do it? :) Jun 30 15:48:41 hero_biz, you can't have it in a library project Jun 30 15:48:49 hero_biz, or also have a small NDK shim in 'app' project Jun 30 15:48:59 where you can set flavor cflags, and have library ndk read flag set by app ndk Jun 30 15:49:05 JamEngulfer: You have pretty much the same thing with Android, only the names differs (navBar -> Toolbar , UITableView -> ListView) Jun 30 15:49:34 conditional compilation really lack with AS in my opinion... Jun 30 15:49:51 flavors and build types are completely fine for conditional compilation Jun 30 15:50:02 the problem is structuring the ndk part incorrectly for this requirement Jun 30 15:50:27 pfn: I thought about that too, but I don't know how to passsomethign from app to library that works correctly Jun 30 15:50:35 jackhum: find the stacktrace for your crash, pastebin it, and we'll teach you about it... Jun 30 15:50:50 hero_biz, ndk library can depend on a symbol that is provided by the app ndk Jun 30 15:50:57 cudos to JakeWharton https://blog.jetbrains.com/kotlin/2016/06/kotlin-1-0-3-is-here/ Jun 30 15:51:04 hm... Jun 30 15:51:13 can you have en equivalent of '#ifdef DEBUG' with AS? Jun 30 15:51:24 adding a flag on compilation? Jun 30 15:51:37 I was looking for that for a while Jun 30 15:51:45 kajika, that's the debug buildType, and you get BuildConfig.DEBUG = true Jun 30 15:52:05 and you also get src/debug/... Jun 30 15:53:20 pfn: but I have send ndk to library because I wanted to use gradle-experimental for it and gradle-stable for main app. if I add another ndk to main app, it destroys my aim. :D Jun 30 15:53:32 I knew about BuildConfig.DEBUG = true wich is not conditional compilation but I didn't knew about src/debug. I will dig that. Thanks Jun 30 15:53:44 hero_biz, using gradle-experimental is a shit show Jun 30 15:54:29 kajika, and for the most part, java doesn't support conditional compilation, so it's not a problem of the build system Jun 30 15:54:32 Is this the right place to ask questions about Android SDK? Jun 30 15:54:35 it is better to use andorid.mk version? Jun 30 15:54:43 hero_biz, it is absolutely better to use Android.mk Jun 30 15:54:43 Affinity Designer Beta for Windows is out, if you want more than inkscape ;) Jun 30 15:55:34 isn't @TargetApi(1) kinda conditional Jun 30 15:55:38 compilation? Jun 30 15:56:19 it is not Jun 30 15:56:22 while adding facebook login button in my activity , do i need to do all the stuff , like adding key value , initializing the facebooksdk etc , everything . or can i see the button by just adding it to my layout? Jun 30 15:56:44 i am getting “Error:Conflict with dependency 'com.android.support:support-v4'. Resolved versions for app (24.0.0) and test app (23.1.1) differ.” when I try to update my app (with tests) to sdk 24, any ideas? Jun 30 15:56:46 g00s: oh , is it a good program? Jun 30 15:56:59 jackhum yeah, i use the mac version - its great Jun 30 15:57:02 BooeyOH, you didn't update your test app to 24.0.0, easy Jun 30 15:57:10 pfn: then you suggest to add a small ndk with a header only to app, then make ndk in library dependant to it. Jun 30 15:57:26 hero_biz, sure Jun 30 15:57:43 pfn, stupd question, but how do I do that (I didn’t set up the test app), I figured when I made the changes in the build.gradle for compileSdk, it would have done that automatically Jun 30 15:57:53 ok I try to swithc from gradle experimental to android.mk Jun 30 15:58:05 let me see what happens. ty for help. Jun 30 15:58:27 BooeyOH, I wouldn't know, ask whomever setup the test app Jun 30 15:58:35 set the dependencies in said test app Jun 30 15:58:40 :) thanks Jun 30 16:14:48 N = Nougat Jun 30 16:15:03 Nuggut! Jun 30 16:17:58 oh no Jun 30 16:19:26 you have got to be kidding me Jun 30 16:19:34 <_kw> When opening filechooser from webview, my app needs to request runtime permissions.. I can request them and cancel the dialog, but that means the user has to reopen it afterwards.. Is there a way to re-trigger the filechooser from my android code (after permission is given) Jun 30 16:20:01 cyource it could have been Nugget, or Nugget McNuggetFace Jun 30 16:20:03 cyource: nah, it's really Nuella Jun 30 16:20:06 er, Nutella Jun 30 16:22:53 Offcially confirmed as Nougat by google and the name is awful IMO Jun 30 16:24:02 was hoping for Nankhatai Jun 30 16:24:06 I dont understand why google even gives android names. they could just as easily call it android 7 beta Jun 30 16:24:08 does anyone know if espresso has a release that works with N/24 ? Jun 30 16:24:10 "nougat" Jun 30 16:24:10 really Jun 30 16:24:21 ikr Jun 30 16:24:33 seriously, what's wrong with Nuggut? Jun 30 16:26:02 what a wierd name. at least they didnt go with a brand again like kitkat Jun 30 16:26:23 no, but what's actually awful or terrible about it? Jun 30 16:27:01 g00s: it's a pretty normal thing for engineering teams to give their stuff codenames, since the actual product name is often owned by the marketing department Jun 30 16:27:44 yeah, it can be pretty confusing though when those get to the public - how many people know what Skylake is ? :D Jun 30 16:28:14 personally i think the phonetics of the word nugat are ugly. it is more of a subjective objection, than an objective one Jun 30 16:28:29 if you had to give something a name, one designation should be fine. its simple. not Android 7 / Nougat Jun 30 16:28:31 it goes back fairly far at this point... longhorn, anyone? hell, the stuff I was working on at Sun 15 years ago was called "Project Janus" internally, and "Lx Zones" by marketing Jun 30 16:28:40 internal engineering teams, whatever Jun 30 16:29:08 thats lame Jun 30 16:29:13 right, longhorn, wtf was that i can't remember :) Jun 30 16:29:28 wasnt longhorn vista Jun 30 16:29:30 windows Jun 30 16:29:36 wasn't it pre-vista ? Jun 30 16:29:39 like vista beta ? Jun 30 16:29:44 i thought it was more an initiative Jun 30 16:29:48 I think vista was what was left when longhorn was gutted Jun 30 16:29:57 doubt "Nougat" was the most popular.... Jun 30 16:30:16 https://en.wikipedia.org/wiki/List_of_Microsoft_codenames Jun 30 16:30:18 I'm glad it's not Nutella Jun 30 16:30:19 it was vista Jun 30 16:30:35 thats how you know i microsoft brainwashe Jun 30 16:30:37 What did everyone else hope for? I was hoping for nectarine Jun 30 16:30:47 truckcrash: *way* too healthy :D Jun 30 16:31:02 yeah it has to be empty calories Jun 30 16:31:10 its a sweet treat. nothing wrong with that in my mind Jun 30 16:31:22 windows 10 is Codename Theshold, how convienent since it violated peoples bums :) Jun 30 16:31:57 Does anyone know how the commandline tool "android" from the SDK resolves available targets? Jun 30 16:33:09 actually, i think selecting name is more PR stunt, by voting, to give you the illusion you're actually influencing something of the platform Jun 30 16:33:21 geeks like that dumb shit Jun 30 16:33:26 oh, the name vote was absolutely nonsense Jun 30 16:34:25 if it actually is the internal codename, and not just a fake, it was decided many many months ago Jun 30 16:34:55 I'm sure the codenames *were* genuine, earlier on, but they've started to use them for marketing now, so... who knows Jun 30 16:35:12 project coolawesomeproject Jun 30 16:37:26 this goes for OS X too, somebody says blah blah "mountain lion" and immediately, i'm like wtf, there wer e a bunch of cat names between 10.5 and 10.9 or so ;) Jun 30 16:37:37 El Capitan Jun 30 16:37:38 How can I get the directory of context.getDatabasePath("db.sqlite")? If I getAbsolute/CanonicalPath() and then mkdirs(), a folder named "db.sqlite" will be created also Jun 30 16:38:29 g00s: I'm pretty sure that's because they got stuck in the 10.X.Y.Z.A.B.C trap which they've now broken out of Jun 30 16:39:52 http://hanhuy-acra.appspot.com/public/com.hanhuy.android.keepshare.lite/856ed10bf1c547851e37c4370c522ade83761a4d Jun 30 16:39:56 wtf, couldn't find requested camera?? Jun 30 16:40:38 stupid sgs3 Jun 30 16:42:32 but that's weird, shouldn't be possible (.lite doesn't have access to that part of code) Jun 30 16:56:29 Announcing Android Nougat... Jun 30 17:00:10 nougat? Jun 30 17:00:54 oh so I won :D Jun 30 17:00:59 (is there any link?) Jun 30 17:01:01 nutella was sweeter Jun 30 17:01:16 Nutella would have been a big trademark lawsuit in the making Jun 30 17:01:16 http://thenextweb.com/google/2016/06/30/android-ns-name-n/ Jun 30 17:02:04 jaana: it still was sweeter Jun 30 17:02:33 jaana: why? they could have done a deal like they did for kitkat and JB Jun 30 17:02:56 seand: Good point, I stand corrected. Jun 30 17:03:09 or maybe jelly bean isn't a brand name Jun 30 17:04:38 can anyone tell me why I'm having this font error? https://snag.gy/fZrlas.jpg Jun 30 17:05:14 I changed to different fonts but still getting the same error representation Jun 30 17:11:42 android got new name not nutella..:) Jun 30 17:11:46 nougat Jun 30 17:12:33 I have a problem managing AsinkTask in my application, I have a view with 3 tabs (in different fragments) and all of them execute a different method who use an AsynkTask to download JSON data from a webpage, how can i sync them? It seems that every method is execute waiting for the other, and not all together Jun 30 17:22:18 TheLawyer: It’s IntelliJ/Android Studio acting all wonky Jun 30 17:22:34 usually when it happens to me, I can just restart, and it’ll go away Jun 30 17:23:39 i've been using adb over wifi more lately, AS seems to behave better, something going on there Jun 30 17:30:31 What are the best social gaming platforms except GPGS? I want leaderboards, achievements and multiplayer. Preferrably without lockin. Jun 30 17:32:14 i find the 70 leaderbords limitation in play services anoying Jun 30 17:34:58 Can I store a database in /data/data//databases without root? Jun 30 17:35:12 anyone know what the best approach would be for me to stream android video to my server's websocket? ive looked at libraries like libstreaming but it's pretty old, havent seen anything recently that would help me Jun 30 17:43:04 MisterGadfly /data/data/package.name/ is your internal storage, you can read/write to it Jun 30 17:43:17 not browse it with a file explorer without root, but axx it via your app Jun 30 17:43:36 raoul11: nevermind. Was doing it the wrong way. :D Jun 30 17:54:38 thanks s73v3r I'll have to wait until completing what I'm doing before the restart :) Jun 30 17:55:01 you might not be able to Jun 30 17:55:11 when that happens to me, it becomes almost impossible to type Jun 30 18:04:29 s73v3r: are you using AS on ubuntu? Jun 30 18:06:20 OS X Jun 30 18:07:44 TheLawyer: AS? Jun 30 18:08:36 Android Something Jun 30 18:11:28 studio, i would guess Jun 30 18:26:12 Hi everyone, Im following this widget code https://github.com/obaro/SimpleAndroidWidget however android studio says there is no default activity. What could be wrong? Jun 30 18:28:20 nothing Jun 30 18:28:29 you can't "run" an app that has no activity, you can only install it Jun 30 18:30:02 pfn: I see. how should the activity be defined and run? Jun 30 18:30:18 gkwhc, doesn't matter, create a blank activity if you want to "run" from android studio Jun 30 18:30:25 gkwhc, otherwise, just install Jun 30 18:33:10 hmm Jun 30 18:33:33 pfn: the blank activity does not have to be linked to the widget? Jun 30 18:33:42 there's nothing to link Jun 30 18:33:54 oh Jun 30 18:38:47 Is there any way to decrease/increase disk space on a genymotion device? I’m trying to test low storage stuff and am coming up short. Jun 30 18:39:02 My AVDs are all screwed up atm so I can’t use those Jun 30 18:41:52 if I build a SystemWebView.apk from the chromium sources, do I still need the webview module (defined in frameworks/webview/chromium/package.mk) for the webview to work? Jun 30 18:44:10 orzen: AS ~ Android Studio Jun 30 18:53:46 pfn: is there a way to set android studio to reinstall? i believe it does that by default on every debug session but it still says default activity not found Jun 30 18:54:41 the heck android studio's debugger is not stopping at a fragment's onCreateView() while the view is being inflated and etc, I am trying to stop it Jun 30 18:54:50 I tried clean and build etc Jun 30 18:54:52 rebuild Jun 30 18:55:02 still doesn't work, seems to say, no executable code found Jun 30 18:55:11 with breakpoint showing X On it. Jun 30 18:55:28 Android Studio is complaining about tools.jar, but it exists in JDK lib directory Jun 30 18:57:33 TheLawyer: I see, havnt been using only the SDK ? Jun 30 18:59:48 Hello Jun 30 18:59:53 I am Japanese Jun 30 18:59:59 I live in Japan Jun 30 19:00:08 good for you! Jun 30 19:00:25 I want to make app for 10inch Android tabret Jun 30 19:00:40 But I don't have 10 inch tabretto Jun 30 19:00:47 better go get one Jun 30 19:00:55 gkwhc, uncheck "run default activity" in run configuration Jun 30 19:00:56 Does it emulator screen shot OK? Jun 30 19:01:09 Hi everyone. I am using a Expandable listView... it seems to work fine but if you expand the listview en retract it and expand it again it will come up with a NullPointerExcpetion on the findViewByID ELEMENTS. Jun 30 19:01:28 licksjp: the implication is that you’re not testing your app on an actual device, which is scary Jun 30 19:02:43 licksjp maybe pixel C is good test device? not sure, you'll have to look itup Jun 30 19:04:04 Google Play agree for 10 inch screenshot.Does it emulator screen shot ok,too? Jun 30 19:04:26 have you run your app on a tablet? Jun 30 19:04:42 how wouldn't a pixel c be a good test device Jun 30 19:04:44 yes Jun 30 19:05:21 my tabretto is 7 inch Jun 30 19:05:39 7” and 10” tablets are different Jun 30 19:08:33 But I don't have 10 inch for android device Jun 30 19:08:42 licksjp probably nobody does :D Jun 30 19:08:59 licksjp: then go get one Jun 30 19:09:05 Shuld buy the 10 inch device? Jun 30 19:09:22 why can't you just use the emulator to test for screen size differences ? Jun 30 19:09:22 if needed. if you can borrow one from a friend, that’d be ok Jun 30 19:12:25 I ended up getting a pixel c Jun 30 19:12:58 thank you!! Jun 30 19:15:52 missingo noice Jun 30 19:24:29 Why does a list or recyclerView apply changes to other objects in the list if one object is edited ? Jun 30 19:25:32 RecyclerView only updates the items you tell it has changed Jun 30 19:25:52 ListView has no api for telling it single items changed, so it has to rebind all of them Jun 30 19:26:37 or you can hack your way towards invalidating a single row Jun 30 19:26:41 which is bad Jun 30 19:27:26 you can tell recyclerview that everything has updated like you used to as well Jun 30 19:28:06 the guys at my team sadly do that all the time... Jun 30 19:28:35 hey thepoosh Jun 30 19:28:43 Create a lint check that prohibits it Jun 30 19:29:12 hi gkwhc Jun 30 19:29:14 g00s: Jun 30 19:32:42 cart_man: using SortedList with RecyclerView makes things a bit easier imo, don't know if that's possible for you Jun 30 19:33:41 rosten: Is that the same as a expandable List ? Jun 30 19:34:23 rosten: Thing is I want every item on the expandable list to use a different layout Jun 30 19:40:54 cart_man: SortedList can only be bound to RecyclerView adapters I think Jun 30 19:42:07 pfn Hey, how are you doing? I solved yesterday problem, thank you for helping. Jun 30 19:42:25 rosten: Problemis that needs SDK22 and I have to use 18 Jun 30 19:42:27 FML Jun 30 19:42:55 cart_man: SortedList is in the support library Jun 30 19:54:10 wviana, and the solution was? Jun 30 19:54:31 wviana, sounds like you malformed your xml file in your aar somehow, but what did it turn out being? Jun 30 19:56:16 pfn Updated my buildTools Jun 30 19:56:37 wviana, that's interesting, shouldn't be the case unless you're on like 22.x or older, maybe 21.x Jun 30 19:57:26 pfn It was 21.1.2 , now it's 23.0.3 Jun 30 19:57:37 yeah, 21.x doesn't handle vector drawables correctly Jun 30 19:59:07 pfn Thanks for your time anyway. Probably I got o angry. Sorry Jun 30 20:00:23 anyone know some novice friendly resources for what I need to achieve? I have moved my Bluetooth connectivity methods to a bound service so that both activities have access to a constant connection. Jun 30 20:00:45 Here is three users that I already know in the channel, that are online every day. g00s pfn and s73v3r . I think SimonVT helped me one too. Jun 30 20:00:50 I'm inexperienced with passing data to/from other activities or services. Jun 30 20:01:36 sab91 complex object or just primitives ? Jun 30 20:03:10 they're string values, converted to bytes automatically when they're sent via outstream/inputstream Jun 30 20:05:46 There is a company going to buy a lot of these, do you think it's a good tablet ? Tablet Samsung Galaxy Tab A SM-P550 16GB 9,7" Android Jun 30 20:06:26 What are the best alternatives hwen it comes to social backends like GPGS (leaderboards, achievmeents, multiplayer)? Jun 30 20:06:42 For multiplayer: create or join a game, it is not turnbased and not realtime either. You connect, have to solve a puzzle within say 72 hours but within that you can solve it anytime, shorttest time wins (from when you actually start it) Jun 30 20:06:46 It's confusing i've seen many different answers from handlers/messenger, listener/controller classes, intents it's all a confusing mess to me haha. Jun 30 20:06:52 you should be able to play players with a certain name Jun 30 20:06:58 Actually they the company asked my boss, I'm asking you. I think it's ok, and will run most app isn't it ? Jun 30 20:10:05 who here has experience with the cachedbluetoothdevices? Jun 30 20:12:55 sab91 for activities just add it into intent bundle. Jun 30 20:14:39 to pass data to the service? Jun 30 20:17:20 I would user a message bus, as Square Otto or Greenrobot Eventbus Jun 30 20:17:25 use* Jun 30 20:18:21 I'll look into them, thanks Jun 30 20:25:22 Has anyone read big nerd ranch book? Jun 30 20:26:50 purplex88_ No but I heard good stuff about here in channel and reddit Jun 30 20:27:12 hey guys, whats the best way to do graphics on android? i want to make a graphical timeline widget. should i "draw" the timeline with code, or use images? Jun 30 20:27:27 purplex88_ I'm reading this right now https://commonsware.com/Android/ really good Jun 30 20:27:49 wviana: i don't understand what the hell is fragment from example in chapter 7 Jun 30 20:28:11 purplex88_ did you see the recent i/o talk 'what the fragment' ? Jun 30 20:28:44 i/o talk? Jun 30 20:29:02 gkwhc I'm using this one. I thought a little hard in beginning, but is a really good library https://github.com/PhilJay/MPAndroidChart Jun 30 20:29:16 wviana: oh jesus thats 3,892 pages book Jun 30 20:29:50 purplex88_ its got lots of padding ;) Jun 30 20:30:01 purplex88_ I'm trying to read cover by cover. But I'll take some time. And there is a lot of images and code. Jun 30 20:30:46 wviana: i guess it will take an year Jun 30 20:31:26 g00s: padding? Jun 30 20:31:36 purplex88_ yes, android:padding :) Jun 30 20:31:38 wviana: oh sweeet thats very helpful! Jun 30 20:31:58 g00s: but why Jun 30 20:32:17 its been a long time, but the copy i had was poorly edited / formatted Jun 30 20:32:26 purplex88_ I'm on 17% of the book right now. But I use to read some future chapters when I need to Jun 30 20:32:28 not saying the content isn't good though Jun 30 20:33:00 wviana: is it free to download i guess? Jun 30 20:33:00 but yeah, 3800 pages still even if lots of whitespace is a bit too much for my tastes ;) Jun 30 20:33:27 wviana: is that your first book? Jun 30 20:33:43 i'd rather reread Don Quijote Jun 30 20:33:47 as in you only started to learn android.. Jun 30 20:33:53 purplex88_ $45 a year. He updates it kind often Jun 30 20:34:48 purplex88_ I learned Android most when researching to make my conclusion course homework (Unversity) and by lynda.com videos. Really good stuff Jun 30 20:35:26 purplex88_ This books is the first time that I'm getting this deep into android. Jun 30 20:35:36 I did a php web app for my final uni project haha Jun 30 20:35:53 purplex88_ I'm one year working as mobile developer Jun 30 20:36:20 First job after university Jun 30 20:36:55 sab91 I never liked php that much, I always liked java. Jun 30 20:37:20 It's what I want to get into but i'm building a portfolio and gaining knowledge before I apply. Jun 30 20:37:34 But I know barry nothing about java web Jun 30 20:37:58 wviana: i can still download .pdfs from that site it seems free Jun 30 20:38:06 I'm trying to store api keys for my app in env vars and access them from BuildConfig. I've got the gradle adding a it.buildConfigField "String", "SECRET", "$System.env.Secret". However when I access the BuildConfig.Secret from a debug session, it's null. Jun 30 20:38:21 purplex88_ I think there is a un updated version for free Jun 30 20:38:48 a lot of versions https://commonsware.com/Android/4-2-free Jun 30 20:39:31 keep in mind, I don’t think i’d read the commonsware book cover to cover. But it is handy as a reference Jun 30 20:41:18 Why can’t my dialogs display the new way I see dialogs displayed in other apps Jun 30 20:41:30 use the MaterialDialogs library Jun 30 20:41:31 squiggie, i suppose you should be using BuildConfig.SECRET Jun 30 20:42:31 bitkiller: Sure, that's what I mean. The SECRET property, and every other property of BuildConfig is coming back null. Jun 30 20:42:56 purplex88_ It's on 7.4 right now Jun 30 20:43:23 wviana: Android 7.0 is there already? Jun 30 20:43:42 purplex88_ Nop, it's the book version Jun 30 20:43:55 s73v3r: so the new display is from MaterialDialogs library? Jun 30 20:44:01 is it possible to send a local broadcast via adb? Jun 30 20:44:12 or it has to be publicly available? Jun 30 20:44:34 s73v3r Yeah , I know, but I'm already working with it. So I user to read to get deep into some things. Others I read fast without paying that much attention. Jun 30 20:44:46 wviana: does the book say about which android version it supports? Jun 30 20:44:46 So i use to read * Jun 30 20:44:57 javajoe: not really, but using that library is the easiest way to get that look on older versions of Android Jun 30 20:45:22 squiggie, then i would log things to console to see what may be happening Jun 30 20:45:27 purplex88_ check what's new and details section on site https://commonsware.com/Android/ Jun 30 20:46:23 s73v3r: thanks Jun 30 20:46:39 purplex88_ he is always updating as new stuff comes out. Jun 30 20:47:10 wviana: I am guessing there must be a bunch of projects in book as well to practice? Jun 30 20:47:21 bitkiller: the funny thing is, this is within the first 3 lines of code of my Application class. It's at the very beginning of my app. So there's not much to log. Is there somewhere that BuildConfig gets initialized and these vars just aren't populated yet? Jun 30 20:47:41 wviana: I would check it out if it has Jun 30 20:47:59 purplex88_ Yes there is, you could check its The Table of Contents, the source codes are in github Jun 30 20:48:51 wviana: yes good book Jun 30 20:49:19 s73v3r Do you like the book, what would you suggest instead? Jun 30 20:49:43 the book is ok. I read the big nerd ranch book, it’s good too, if a little dated Jun 30 20:50:11 i would stick to what im reading now (big ranch book) Jun 30 20:50:34 if i switch then i'd need to start from begining Jun 30 20:51:18 but will surely have the commonsware book for reference and later reading perhaps Jun 30 20:52:02 s73v3r should I read it before? Jun 30 20:52:12 i don’t think it matters Jun 30 20:54:46 s73v3r: could say about fragment project in chapter 7 from ranch book? i don't see anything special apart from an edittext view.. Jun 30 20:56:38 squiggie, log things in your build.gradle Jun 30 20:56:52 squiggie, i mean, from there Jun 30 20:57:37 i don’t have the book on hand, so I can’t really answer stuff about it right now Jun 30 20:57:53 I think it’s to demonstrate how to use fragments? Jun 30 20:58:39 squiggie, println "foobar" Jun 30 21:01:29 Might be a silly question - can intents objects be received without calling startService(intent) or will it simply do nothing and pass the putExtra() values ? Jun 30 21:06:32 s73v3r: yes but i don't see a fragment lol i think only edittext box on top Jun 30 21:06:50 like i said, I don’t have it offhand, so I can’t really say anything about it Jun 30 21:08:58 hey guys, so I cloned an example repo from github..how can i get android studio to recognize its project structure and run it? Jun 30 21:09:14 s73v3r: ah ok its just silly to read about what it is before see it Jun 30 21:19:55 hi Jun 30 21:20:08 is it possible to install android 6 on the p7? Jun 30 21:20:42 rocket__ see topic Jun 30 21:58:19 does anyone know any specific reasons why createbond() would return false? Jun 30 22:19:58 bohregar_, not sure (i'm never sure) but maybe device's already bonded Jun 30 22:21:12 It's not paired when that value is thrown, nor does it Jun 30 22:21:22 it flips between bond states 10 -> 11 -> 10 Jun 30 22:21:42 if it does get to bond state 12 (for bonded) it doesn't connect Jun 30 22:48:48 eeek, I need more work Jun 30 23:01:54 Is there any downside for using this approach in this answer http://stackoverflow.com/a/7144646/4954322 ? I just want to use context for the initialization of database helper. Jun 30 23:02:53 thats lame Jun 30 23:04:37 g00s are you referring to the answer? Jun 30 23:04:43 yeah Jun 30 23:05:43 just make your db helper a singleton, in getInstance(Context ctx) { Context c = ctx.getApplicationContext(); ... blah blah } Jun 30 23:05:48 if you're in a class that has access to the context ie... activity, service, just get that context. For a DB it isn't terrible to use the application context Jun 30 23:06:36 Ping_2_Ur_Pong thats not correct either, technically Jun 30 23:06:57 elaborate Jun 30 23:07:06 open up your db with an application context, don't use the Activity ... Jun 30 23:07:25 use the context scoped to the lifetime of the operation Jun 30 23:07:54 * Ping_2_Ur_Pong nods, but is the application lifecycle scoped to your DB? Jun 30 23:08:40 yes, but thats not what you initally said ^^^ Jun 30 23:09:02 * Ping_2_Ur_Pong generally doesn't like passing around the application context without a very good reason Jun 30 23:09:14 * g00s headdesk Jun 30 23:09:33 If I am initializing a DB I am going to do it in Application. Jun 30 23:09:48 if it should stay around for the entire lifecycle of the application. Jun 30 23:10:07 * Ping_2_Ur_Pong foot asses g00s Jun 30 23:23:37 anyone know of any bugs related to night colors not being set correctly? Jun 30 23:24:13 dsardari in the support lib ? Jun 30 23:24:27 yeah Jun 30 23:24:45 it's weird, only one of my screens is not setting the appropriate text colors Jun 30 23:24:48 there is some weirdness. when you set the night mode, it doesn't cause a configuration change Jun 30 23:25:28 yeah, i've noticed some cells changing and others not Jun 30 23:25:35 this is a manual change to dark though Jun 30 23:25:48 yeah thats what i have too Jun 30 23:26:06 well, you need to recreate all of the activities on the stack for them to take the new changes Jun 30 23:26:30 so yeah, that would normally happen on config change but now its up to you Jun 30 23:26:56 i filed a bug, its been sitting there Jun 30 23:27:07 its more likely to work in automatic mode ;) Jun 30 23:27:19 i force an app restart when they change the setting manually so i think that would be fine? Jun 30 23:27:36 oh interesting. how do you restart the app ? Jun 30 23:29:15 i believe it was based off something jake wharton had. basically start your main activity with the appropriate flags for clear top and new task. then do Runtime.getRuntime().exit(0) Jun 30 23:29:39 interesting Jun 30 23:29:45 https://github.com/JakeWharton/ProcessPhoenix Jun 30 23:29:47 there it is Jun 30 23:30:39 sorry can't help Jun 30 23:30:54 np. thanks anyways. Jun 30 23:37:52 figured it out. card_view:background apparently messes it up Jun 30 23:38:10 "card_view:cardBackgroundColor" that is Jun 30 23:38:13 huh, turns out the bluetooth chat example is very useful for what I needed to figure out Jun 30 23:39:49 My dialogs still display the old way. I want it displayed the new way. How can I go about it? Jun 30 23:41:59 what’re the SDK levels you have in your gradle? Jun 30 23:42:03 your min, max, and target? Jun 30 23:43:02 javajoe: also, can you give an example of “the new way”? Jun 30 23:44:53 s73v3r_: the min is 15 and the max is 23. The old way I’m referring to has a line separating the title from the body of the dialog…the new has no line Jun 30 23:45:30 are you using the Material Dialogs library? Jun 30 23:47:59 and what kind of device are you testing on? Jun 30 23:48:38 samesung s4 Jun 30 23:49:08 other apps showed the new one, so it definitely possible on my device Jun 30 23:49:33 and are you using the material dialog library? (sorry if you answered, I had to log out and in again) Jul 01 00:03:39 might anyone know how to draw on a widget? I see some tutorials creates bitmaps, but that restricts drawing to the size of the defined bitmap, ie doesnt extend according to widget size Jul 01 00:05:37 oh wow, new versions of gradle finally kill that stupid verbose output shit Jul 01 00:06:14 forever? or just unless you hit --verbose? Jul 01 00:07:06 for tooling api Jul 01 00:07:12 I don't use gradle for anything except for tooling api Jul 01 00:07:17 no idea how it works normally Jul 01 00:31:51 I am listing for the following intent in a broadcast receiver: android.net.conn.CONNECTIVITY_CHANGE Jul 01 00:32:18 However when the wifi or bluetooth goes up or down my receiver code doesn't execute Jul 01 00:32:31 Am I listening to the correct intent? Jul 01 00:32:56 (I am also listening for android.intent.action.BOOT_COMPLETED which is working) Jul 01 00:42:03 wyoung: make sure its in the manifest Jul 01 00:46:07 drose379: it is Jul 01 00:47:10 drose379: http://hastebin.com/ejosituqij.xml Jul 01 00:49:29 why on 64 linux, android-studio needs some 32 bits library? Jul 01 00:50:16 bq: because it isn't a 64bit app? Jul 01 00:52:30 wyoung: i don't get you Jul 01 00:53:07 see linux instruction here: https://developer.android.com/studio/install.html Jul 01 00:53:40 bq: it depends on 32bit libraries because it isn't fully a 64bit application, it has applications that are 32bit Jul 01 00:53:49 executables I probably should say Jul 01 00:54:31 which? Jul 01 00:55:44 wyoung: because when I am trying to "sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6", my system shows there are dependency hell Jul 01 00:56:05 those 32 bit libraries could be installed Jul 01 00:56:33 yes, you will need to pretty much have a 32bit system running along side your 64bit system Jul 01 00:57:53 wyoung: i don't get you Jul 01 00:58:20 What don't you get? Jul 01 00:58:55 That you need both 32 and 64bit libraries to use android studio? or my explaination of why you need them? Jul 01 00:59:27 bq is there a package like ia32-libs Jul 01 01:00:50 i guess meta-package Jul 01 01:00:55 wyoung: "32bit system running along side your 64bit system". how? Jul 01 01:02:04 bq: easy, they are installed into different lib directories Jul 01 01:02:55 g00s: ia32-libs? meta-package? there seems a lot I am missing... Jul 01 01:03:10 bq: you can use ia32-libs package or append :32 I think it is to the name of the package Jul 01 01:04:42 which executables are 32 bits. Jul 01 01:07:08 bq: no idea, but they are there otherwise it wouldn't be a dependency requirement Jul 01 01:07:08 http://paste.ubuntu.com/18204533/ Jul 01 01:08:50 new to android dev, anyone have thoughts on this linking error ... http://pastebin.com/w5QQJFtE ... Jul 01 01:11:30 the newly installed SDK just include partially installed Android N. what else should I install? Jul 01 01:15:07 bq: Depends what you need. Jul 01 01:16:30 LunarEclipse120: Android N is official? why partial? which version is best for me to develop? Jul 01 01:16:48 bq: I would use Lollipop. Jul 01 01:17:08 Anyone who is lower than that has major security holes and should be ashamed. Jul 01 01:17:25 Even Lollipop has security issues but no where as close to KitKat and below. Jul 01 01:18:01 LunarEclipse120: are the security holes in the SDK or in the OS? Jul 01 01:18:34 rosten: The OS itself. Jul 01 01:18:45 Stuff like Stagefright. Jul 01 01:19:28 hmm, which SDK you pick to develop for wouldn't matter much then? :) Jul 01 01:27:40 The newer the SDK the more features Jul 01 01:27:45 5.0 is your best betr Jul 01 01:28:04 rosten targetSdk=24 Jul 01 01:32:25 g00s: Is that Lollipop? Jul 01 01:33:02 nugget Jul 01 01:33:30 So Less than 0.1% of the audience. But that's only the target SDK anyway. Jul 01 01:34:18 oh minSdk for new app i'd do 21 (5.x) Jul 01 01:34:53 and then when its done decide if you want to go through all of the crap of using appcompat down to 4.4 Jul 01 01:35:18 kitkat is the new gingerbread Jul 01 01:35:28 Yeah. Jul 01 01:35:32 Security is also an issue. Jul 01 01:35:54 Lots of 5.1 devices are still getting security OTAs. Jul 01 01:37:50 dell stops selling android devices Jul 01 01:38:13 Lol. Jul 01 01:39:40 they still have their Chromebook 11 3120 though Jul 01 01:42:19 dell make android phone? Jul 01 01:42:21 i wonder what the price points for marlin / sailfish will be ... Jul 01 01:42:43 Are those the new Nexuses? Jul 01 01:42:49 i know that dell make laptop only. Jul 01 01:43:04 supposedly Jul 01 01:43:16 do i trust HTC, hmmmmm Jul 01 01:44:00 HTC make new Nexus phone? Jul 01 01:44:11 Is it confirmed that HTC is making them? Jul 01 01:44:16 And any reports on a 2016 Nexus 7? Jul 01 01:44:41 i'm just reading this http://www.androidpolice.com/2016/06/30/exclusive-specs-for-marlin-the-larger-of-two-upcoming-htc-built-nexus-phones/ Jul 01 01:44:51 sadly i think the n7 is dead Jul 01 01:45:01 at least i haven't read anything about a next rev Jul 01 01:45:41 "This paints a rather interesting picture: two Nexuses in two sizes, with the only real difference between the two being the size and resolution of display and battery capacity." Jul 01 01:49:59 " "2-in-1s with larger screens in the 10- to 13-inch range are offering a laptop-first experience with the convenience of a tablet when needed," he wrote. "This is where our customers are asking us to invest and innovate." Jul 01 01:50:32 windows 10 /should/ be really good here, i haven't fiddled with any recent devices though Jul 01 01:51:04 i think a few months ago Asus basically said the same thing Jul 01 01:51:41 Are there any Chromebook 2-in-1s ? Jul 01 02:04:07 Maybe my next app should be a task manager, off of which I could spin a so-called battery saver Jul 01 02:04:40 I hate these tasks which are hard to kill or which reappear after being killed Jul 01 02:05:02 hmm, there should be a lot of task managers out there already ... Jul 01 02:05:15 battery saver is best left for OS level policy i think Jul 01 02:05:25 ueah there's a ton of those Jul 01 02:05:47 there's a ton of them because they're popular Jul 01 02:05:57 i think that stuff was more popular pre Android 5 Jul 01 02:06:09 that's possible Jul 01 02:06:34 Android is pretty severe with the hammer when it comes to battery Jul 01 02:06:35 some task will restart no matter how much you kill them Jul 01 02:06:45 i have some misbehaving apps, like Kindle - that fucking pos Jul 01 02:06:46 some stay killed Jul 01 02:08:49 Ologn the battery optimizations get cranked up again in Android 6 (no longer need device to be stationary) Jul 01 02:09:14 basically we're getting close to you having to use JobScheduler / GCM if we're not there already Jul 01 02:09:35 back in the old days, starting services, holding wakelocks, thats less of a problem now Jul 01 02:09:47 so i don't think there is that much utility Jul 01 02:10:41 Ologn here is a good overview http://www.xda-developers.com/how-android-n-will-improve-battery-and-memory-management/ Jul 01 02:12:12 interesting Jul 01 02:12:45 And updating. Jul 01 02:12:58 Because some idiot was complaining that monthly security patches "are too slow" Jul 01 02:27:33 Hey guys, I have an app I inherited from somebody that shows data from a json feed. When I run the app in an emulator all works well. When I run it on a physical device through debugging it works as well. But hwen I run it form the playstore it acts differently. Jul 01 02:27:35 Any ideas? Jul 01 02:38:47 Hrm, I also tried deploying the release version but that did not help either. Jul 01 02:39:00 "it acts differently" is pretty vague Jul 01 02:39:12 does it automatically translate everything into Russian? Jul 01 02:39:28 Well. the app just shows a list of strings, basically Jul 01 02:39:28 play Madonna songs at random intervals? Jul 01 02:39:39 run only in black and white? Jul 01 02:39:40 https://lh3.googleusercontent.com/QE_pyK6J1ySknoq-fa2HIwKcfxPPY3CdL5QykHo2DBPDsPdk3ALfPbWwyEUqlHN7dxc=h900-rw Jul 01 02:39:49 This is what is should show, and shows using debugging and an emulator. Jul 01 02:39:57 When I run it from the playstore, it just shows grey boxes. Jul 01 02:40:39 So I thought I would debug it on the console but.. it just works :> Jul 01 02:40:54 I also have control over the webserver and I see the app making the GET request for the data. Jul 01 02:43:33 anyone have any clue how to find freelance work? I need to make an extra 20k this year so I need to do some extra work to fill in the gap. Jul 01 02:44:04 freelance.com ? Jul 01 02:44:05 googling this fails, I just went to a site that says they want to pay 2k to build an entire application "like tinder" ie... fucking ha dafuq ha Jul 01 02:44:17 m1dnight_: that's the joke site I was just referring to Jul 01 02:44:48 2k doesn't cover the amount it would cost me to build out the architecture for the application. Jul 01 02:44:50 Oh, it's freelancer.com Jul 01 02:44:59 Just pick another job then. Jeez. Jul 01 02:45:37 https://www.freelancer.com/projects/Mobile-Phone/Write-Android-iphone-app-10905722/ Jul 01 02:45:42 * Ping_2_Ur_Pong laughs very hard Jul 01 02:45:59 Nothing on there is even remotely in the price range to hire me. Jul 01 02:46:31 I think most of what's going on, on there is people that know dick about anything come up with a project idea and the lowest price in India wins. Jul 01 02:47:00 You can't even build a tinder app with just the platform. You need the backend which is where all the magic for the app happens. Jul 01 02:47:28 sigh... Jul 01 02:47:42 I really don't want to go down the recruiter rabbit hole for this, they can be such a waste of time. Jul 01 02:47:59 hey Jul 01 02:48:01 the answer is, you need to network, you need to get your name out Jul 01 02:48:11 or you let someone do that for you and take a cut Jul 01 02:48:22 clearall Jul 01 02:48:26 Hello earational. Jul 01 02:49:27 Leeds, suggestions on who to pay? I've been trying to buld my personal brand in Boston, but ive only been here for about a month, in NJ I could have pulled this off when I was there. Jul 01 02:50:11 * Ping_2_Ur_Pong loves the nick earational... It just screams awesome. Jul 01 02:50:25 thanks Ping_2_Ur_Pong :) Jul 01 02:50:43 Ping_2_Ur_Pong: what I'm doing for now is working on a project-by-project basis within a small company Jul 01 02:50:46 oh yea, recruiters take a cut, or contracting firms Jul 01 02:51:02 hmm... Jul 01 02:51:23 * Ping_2_Ur_Pong really needs to build his personal brand. Jul 01 02:51:33 lol Jul 01 02:51:38 But, I am shy and shit. Jul 01 02:51:45 I'm not an employee, I'm free to take other work outside the arrangement, and as I said they're obviously taking a cut - but it means I'm working with other people in an office, and there's work to do Jul 01 02:51:47 everybody needs to be a brand these days Jul 01 02:51:55 neoliberalism has turned everone into tools Jul 01 02:52:04 for them, it means they can go for projects they couldn't otherwise get, so they can grow their business and brand Jul 01 02:52:26 g00s: honestly if you intend on building any type of anything outside of working a 9-5 it isn't just what you've done its who can vouch and who you know. Jul 01 02:52:38 they probably make less profit on me than on an employee, but they can also potentially get more work Jul 01 02:52:41 g00s: Technically, for professionals, it's ALWAYS been this way. Jul 01 02:53:28 no idea if it's going to work longer-term, but for now it seems an ok way to go Jul 01 02:53:39 alphamule: I am just starting to get this. My other jobs I got through personality and luck. But going forward it seems whom I know is much more important Jul 01 02:53:56 And yeah, Leeds: You know that programmer they pay $120K/year for? Because then they don't have to pay 5 people 50K/year to fix each other's messes. Jul 01 02:54:10 Leeds, it sounds like a nice deal. You get the best of being a contractor without all the downsides. Jul 01 02:54:37 One thing I realized interviewing dozens, if not hundreds of people... Jul 01 02:54:42 Ping_2_Ur_Pong: It's called networking or it was back a decade ago. :P Jul 01 02:54:45 ...is skill is a Gaussian curve Jul 01 02:54:48 Ping_2_Ur_Pong: it helps that I know the boss and I've done a couple of projects with him before... Jul 01 02:55:01 a few people know little, a few people know a lot, most are in the middle Jul 01 02:55:16 but you mostly need to get yourself out there, social/networking events, seminars, get yourself known for something Jul 01 02:55:36 And most people know a lot about a little, or a little about a lot. Jul 01 02:55:37 :P Jul 01 02:55:42 and if you're 1 or 2 standard deviations up on that curve, and you're relatively sane - you get the job Jul 01 02:55:57 otherwise someone at the company is recommending you, whereas being average is OK Jul 01 02:55:57 'relatively sane' :) Jul 01 02:56:08 I spoke at a small-ish local conference a couple of years ago on the future of mobile tech - people still remember me as being a mobile tech expert Jul 01 02:56:10 AKA has common sense Jul 01 02:56:12 So wait Jul 01 02:56:18 Isn't a serial killer in training Jul 01 02:56:29 OK, then hired! Jul 01 02:56:44 they have training for everything these days Jul 01 02:56:45 If I wasn't recommended and got the job... am I .. sane? Jul 01 02:56:45 Leeds: That can work for/against you. Jul 01 02:56:46 * Ping_2_Ur_Pong ponders being a apprentice to a serial killer's apprentice. Jul 01 02:56:46 'we're looking for a beast of burden' Jul 01 02:56:47 I've interviewed some people who knew everything back and forth but were bounced from the interview for personality reasons Jul 01 02:56:49 See also: Typecasting Jul 01 02:56:56 No, not like with C :) Jul 01 02:57:06 alphamule: I'm happy to be an expert Jul 01 02:57:39 * alphamule ponders being a BOFH's replacement when that BOFH's about to retire. Jul 01 02:57:43 Leeds: good that not a "C hacker" Jul 01 02:57:45 One thing I realized from the interviewee portion - I should be able to answer 95% of the questions asked clearly and completely Jul 01 02:57:50 * Ping_2_Ur_Pong ponders the merits about being an expert vs a dumbass. Jul 01 02:57:51 (Expert) Leeds = new Expert() Jul 01 02:58:01 Ologn: The bane of Aspergers... Jul 01 02:58:08 Leeds: ClassCastException Jul 01 02:58:11 gordon_: I've done C... don't want to do it again :) I'm too lazy now Jul 01 02:58:24 Ologn: most interview questions are stupidly simple. Jul 01 02:58:39 absurdly so, only rarely do you get something that is actually interesting. Jul 01 02:58:39 Dude, I have this wonderful language. Everything the same type, or an array! Jul 01 02:58:41 Ah, maybe you don't know about our be starving friend Jul 01 02:58:47 Ping_2_Ur_Pong, I start with simple questions because maybe half the people can't answer them Jul 01 02:58:48 *trollface* It's 6502 assembly. Jul 01 02:58:51 Who was one called C hacker Jul 01 02:59:03 But cannot Google Android tutorial Jul 01 02:59:08 * Ping_2_Ur_Pong was asked a fucking backtracking during one interview. Only question to stump him, he had to pull out his damn data structures book later on. Jul 01 02:59:18 you mean mitf? he's still trolling in #android Jul 01 02:59:21 :( depressing to not know how to get resources Jul 01 02:59:28 Leeds: lol Jul 01 02:59:30 Google isn't the only game in town Jul 01 02:59:33 Yeah, that guy Jul 01 02:59:52 he was supposed to run out of food by now ... Jul 01 02:59:55 Although increasingly, it's getting to be hard as hell to get decent resources at a public library heh Jul 01 02:59:56 Leeds: Yes. **** ENDING LOGGING AT Fri Jul 01 02:59:58 2016