**** BEGIN LOGGING AT Thu Sep 01 02:59:58 2016 Sep 01 03:00:13 arancio: yes , that is something you have to deal with vim :D Sep 01 03:00:35 arancio: coz vim is all about muscle memory Sep 01 03:00:36 pitiye: don't you want to become millionaire with Android apps? Sep 01 03:01:04 arancio: i'd love to, but with purely with vim rather than AS :D Sep 01 03:01:44 Why? Sep 01 03:02:15 arancio: obsession :D Sep 01 03:02:27 and more importantly, if you want to use vim instead of AS, why don't you create your project folders without complaining much? Sep 01 03:03:21 arancio: that is what i do at this time Sep 01 03:03:29 "I want to use vim! Hey but vim it's a pain in the ass! I don't want the pain in the ass! But I want to use vim! I'm starting to like the pain in the ass!" Sep 01 03:04:09 i was looking for a way to encapsulate android issues within android rather than mixing them with vim Sep 01 03:04:30 I'd like to program Android apps just by having a chat with Cortana Sep 01 03:04:55 arancio: i dont have cortana :( Sep 01 03:05:35 Meh, I understand wanting to use the IDE that you like the features of. I mean I'd rather use Eclipse than AS but whatever Sep 01 03:07:03 vim is hot shit once you get your shortcuts down. I fully get the desire to use it, not mention WYSIWYG lies and I've never designed anything with it except a website I use to run in 98 with Netscape Navigator lol Sep 01 03:07:48 Meliphas: BINGO ! Sep 01 03:11:14 you'll never become millionaires with Android development Sep 01 03:13:03 arancio: millionaire means more headaches Sep 01 03:13:29 arancio: its not glamorous or fancy, or pleasurable as it shows off Sep 01 03:13:53 arancio: its more pain in the brain rather than in ass Sep 01 03:14:04 pitiye: why is it so? Sep 01 03:14:17 ideavim, problem solved Sep 01 03:14:18 arancio: deal with a millionaire and find out Sep 01 03:14:34 pfn: now i use ideavim with pleasure ! Sep 01 03:15:16 pitiye: most of the people in this channels are millionaires who made the millions with Android apps Sep 01 03:15:32 pitiye: they are all cool guys Sep 01 03:15:56 Honestly your development tools aren't as much a factor in whether or not you can make it to a highly successful application as is your ideas and ability to actually manifest them Sep 01 03:16:34 yeah, spending time with mkdir is not a good way to express your ideas Sep 01 03:16:41 arancio: but here if u become a millionaire, the whole government is coming after you to get the every penny you own for their every tax rule. got my point ? Sep 01 03:17:38 pitiye: that's false. the more money you make, the less taxes you pay. See "EU vs Apple" Sep 01 03:17:42 It's not that hard to write the scripts you need to set your environment up, you have to configure every environment to a degree so the argument imo is moot Sep 01 03:17:56 ultimate peace of mind is you want the programs and computer to work the way you think, and not vice-versa Sep 01 03:18:11 arancio: Not here in Central Asia Sep 01 03:18:21 sorry - South Asia Sep 01 03:18:56 pitiye: Central Asia or South Asia? Don't you know where you live? Sep 01 03:19:31 pitiye: if you change the way you think quick enough you don't have that problem Sep 01 03:19:34 Meliphas: that is what i currently do - i have a ~/scripts/ folder which does that for me. But i wanted to encapsulate android stuff within android. that is why i posted my question Sep 01 03:19:54 arancio: i pasted the wrong register :( Sep 01 03:20:17 pitiye: what do you mean with "pasted the wrong register"? Sep 01 03:20:20 arancio: when u get used to vim , you always try to reduce the number of keystrokes you hit Sep 01 03:21:05 arancio: i have a clipboard manager which maintains registry of frequently pasted words Sep 01 03:21:35 arancio: so i missed the right shortcut Sep 01 03:22:11 pitiye: do you use latin characters in your first language? Sep 01 03:22:23 arancio: no Sep 01 03:22:28 pitiye: ok Sep 01 03:22:51 pitiye: now I understand. Is typing english a pain for you? Sep 01 03:23:58 arancio: my native language's words are always less than 6 words , because it has many letter than in english. Sep 01 03:24:38 arancio: so typing more than 5 letters becomes an issue Sep 01 03:24:52 6 letters Sep 01 03:25:09 pitiye: I see. I guess I'll die without learning one of those funky languages. Sep 01 03:25:55 arancio: you will find that english is more funkier than others Sep 01 03:26:08 I want to learn other spoken languages but I'm a lazy american, I like learning programming languages, but I can't seem to get myself to stick to learning spoken language Sep 01 03:26:53 pitiye: when I was a kid I attempted to imagine how would the computer keyboards for those languages. I imagined cubes with keys in all sides. Ok, I was silly. Sep 01 03:27:04 how would the computer keyboards for those languages look like Sep 01 03:27:11 I used to think like that as well Sep 01 03:27:36 arancio: we use standard keyboards, but always with key combos for each letter Sep 01 03:27:49 Meliphas: use Babbel or duolingo Sep 01 03:27:54 they're both great Sep 01 03:28:00 preference to babbel imo Sep 01 03:28:05 because the count of letters far exceed the number of keys onboard Sep 01 03:28:30 pitiye: I was a silly kid but I'm not retarded. :D Later I learned that you use more or less standard keyboards, of course Sep 01 03:29:09 :D Sep 01 03:31:04 problem with most western languages is that they don't provide the facility to communicate with parallel universes Sep 01 03:32:44 what kind of parallel universes? Sep 01 03:33:14 arancio: its a tough concept to grasp, it cannot be taught, it has to be understood on your own Sep 01 03:33:28 I smell scam Sep 01 03:35:36 pitiye: your name sounds like "pity you" Sep 01 03:35:58 arancio: u smell vim as a scam initially, but when you learn to live with it, you won't ever feel vim as a scam Sep 01 03:36:09 arancio: parallel universes are also like that Sep 01 03:37:10 :D Sep 01 03:37:28 arancio: how old are you ? Sep 01 03:39:24 pitiye: taking into account all my past incarnations, 2523 years old. Sep 01 03:39:59 arancio: tha is wrong Sep 01 03:40:05 that's Sep 01 03:40:25 you are infinite years old , if you take your previous incarnations into account Sep 01 03:41:37 pitiye: the universe itself has a finite lifespan. you can't have an infinite age. Plus not everybody was born with the universe. Sep 01 03:46:52 arancio: if you consider previous incarnations - then you have infinite age Sep 01 03:48:41 pitiye: as I said your logic is flawed. Previous incarnation can be traced back to an age older than the age of the universe. The age of the universe is finite. Thus even considering previous incarnations you can't have an infinite age Sep 01 03:48:49 can't Sep 01 03:49:32 how do you track previous incarnations ? Sep 01 03:51:34 there is a registry of previous incarnations Sep 01 03:52:18 where ? Sep 01 03:53:15 its not in clipboard :P Sep 01 03:54:03 brb Sep 01 03:56:33 Previous incarnations? Age of the universe? Huh? Sep 01 03:56:46 Did I stumble into ##philosophy by mistake? :P Sep 01 03:59:39 VerbalKint: How can you truly know if it was a mistake? What if everything is by design? Sep 01 03:59:46 ;-) Sep 01 04:00:07 jjuran__: I don't believe in gods and souls Sep 01 04:01:01 jjuran__: and just because we didn't know how electricity worked 2000 years ago doesn't mean that us using it right now is impossible, for example Sep 01 04:01:22 VerbalKint: Google is god, you are a poor soul Sep 01 04:02:58 pitiye: welcome back Sep 01 04:03:45 jjuran__: oh darn, I thought you were talking about the universe's creation, not about my question :D Sep 01 04:03:57 :-P Sep 01 04:04:06 Haven't had my coffee yet, so I'm malfunctioning Sep 01 04:06:24 UTC+2 Sep 01 04:13:32 arancio: ty Sep 01 04:23:13 hello ppl Sep 01 04:23:25 pitiye: I debunked your pro-infinite age argument and as a consequence your whole eastern philosophy felt apart. Thus I demonstrated that there is no logic behind your stubbornness in using vim. Sep 01 04:23:34 MaBunny: hello! Sep 01 04:23:46 i hav set to download the android-studio-ide-143.3101438-linux.zip file from dev.android.com Sep 01 04:23:54 hey arancio Sep 01 04:24:22 will it include the necessary files to start developing for android Sep 01 04:24:24 ? Sep 01 04:24:50 MaBunny: Yes. Sep 01 04:24:56 thank you Sep 01 04:25:20 as i think,ill also need to download the openjdk libs for Java 8? Sep 01 04:26:06 im in a linux platform Sep 01 04:26:11 I didn't think it did Open JDK. Sep 01 04:29:35 so? Sep 01 04:35:28 nobody knows whether the universe has a finite lifespan. no scientist will ever say this. they'll talk about entropy and things, but they'll never ever directly say that the universe could die. it's not known. it's only laypeople that reinterpret it this way out of ignorance. Sep 01 04:38:38 pragma- so sorry to read such and interesting and debatable thought right before going to bed Sep 01 04:38:52 hopefully we can discuss about it in the future Sep 01 04:39:42 well, it was just a long-winded and convoluted way for me to call arancio ignorant. Sep 01 04:41:47 https://jaxenter.com/java-8-will-be-introduced-to-android-by-changing-to-openjdk-123810.html Sep 01 04:43:06 https://source.android.com/source/initializing.html Sep 01 04:43:38 this page says i require openjdk 8 packages to build the source for androids Sep 01 04:47:59 so can anyone tell me if i can build for lollipop and kitkat using openjdk,guys? Sep 01 04:48:07 sorry for being intrusive Sep 01 04:53:12 MaBunny: uh, I thought you already linked to two pages that answers your question. Sep 01 04:53:25 kk Sep 01 05:25:18 pragma-: let me use a more direct and short way to tell you are a moron. You didn't even understand what I wrote, which was quite simple, indeed. Sep 01 05:25:54 pragma-: so you wasted time explaining that something that I didn't say was wrong. Sep 01 05:26:25 haha, pragma- can't kick and ban people here like he is doing in his own channel Sep 01 05:26:39 what a twist Sep 01 05:27:23 arancio: just notifying he banned a guy when he criticized his bot Sep 01 05:38:20 arancio: I'm sorry, that conversation was so 1 hour ago. Try to keep up with current trends instead of bringing up the past all the time. Sep 01 05:39:38 pragma-: coward moron Sep 01 05:39:42 pragma-: it’s not as if anything else noteworthy happened in the hour that followed Sep 01 05:39:56 well, I can see that this conversation is certainly going to be intelligent and stimulating. Sep 01 05:40:02 and ignored Sep 01 05:40:08 yup Sep 01 05:40:12 Excellent. Sep 01 05:40:28 There's nothing like an ignorant person showing how ignorant they are by ignoring people. Sep 01 05:40:43 Please don't call the other users idiots, morons, ... Sep 01 05:41:04 Ignore each other if you can't get along, or take it to private messages Sep 01 05:41:18 SimonVT: problem solved he's been put on ignore Sep 01 05:41:31 Thank you Sep 01 05:41:42 I hate java, what do I do with it Sep 01 05:41:50 kill it with fire Sep 01 05:43:01 I used to minimally enjoy programming... until I had to do Javascript and now Java X_X Sep 01 05:43:12 ok guys i hav downloaded the package Sep 01 05:45:12 there is nothing more moron than a coward moron who changes nick to harass people in private Sep 01 05:46:10 Chris is a troubled person. Troubled as in mentally ill Sep 01 05:46:51 arancio, maybe spammer or troll Sep 01 06:03:22 does anyone of you guys work on android from the terminal on linux? Sep 01 06:04:00 arancio: last warning Sep 01 06:05:20 QED Sep 01 06:05:38 arancio can you help me? Sep 01 06:06:39 MaBunny, I doubt he can :) last time I asked him about building android he said wrong channel Sep 01 06:06:43 i need to get run the sdk manager from terminal to download the sdk libs for kitkat and lollipop Sep 01 06:07:29 MaBunny: Sorry. I never built Android. Sep 01 06:08:23 well,Jiggunjer_ im on linux with a 2gb ram computer,building using the Android Stdio could be like a sledgehammer on a head for me Sep 01 06:09:37 i need someone to just tell me how to get a headstart using the android's command line tools Sep 01 06:09:40 MaBunny: have you optimized your gradle and Android Studio memory usage options? Sep 01 06:10:18 VerbalKint, i havent downloaded Android Studio at all,using it on my windows machine made it really slow Sep 01 06:10:50 MaBunny: well, I'm forcing Android Studio to use 386mb of RAM right now and it's working fine Sep 01 06:11:02 Jiggunjer__: yes, sincerely I guess that's more a topic for #android-root. If I told you "wrong channel" is because I think it's more likely that you find help in that channel. Sep 01 06:11:04 MaBunny: the default options are like 1280mb or something Sep 01 06:11:08 Type android to open sdk manager Sep 01 06:11:25 Assuming your path is set up Sep 01 06:11:27 SimonVT ok Sep 01 06:11:33 well Sep 01 06:11:58 my path isnt set maybe,i just downloaded android Sep 01 06:12:01 tools* Sep 01 06:12:16 arancio, glad to see I'm not on your ignore list anymore :) Sep 01 06:12:17 Jiggunjer__: off course it's not completely off-topic here but building Android and building apps for Android are two different things. If you find help here, all the better Sep 01 06:12:18 MaBunny: and I'm not sure of what exactly I'm changing, but I have gradle limited to 2 processes, 512mb each Sep 01 06:12:34 ok Sep 01 06:12:44 MaBunny: but I have 4GB of RAM Sep 01 06:13:05 MaBunny: I'm just telling you that you can tweak the memory usage Sep 01 06:13:11 Jiggunjer__: I don't even remember talking with you here. Sep 01 06:13:14 idk how to do it,i hav some experience on c++ and java just,new to android Sep 01 06:13:20 tools/ and platform-tools/ needs to be on path.. platform-tools might not be there by default Sep 01 06:13:38 SimonVT hav you used linux? Sep 01 06:13:47 arancio, ok :p I'm pretty new maybe that's why Sep 01 06:14:06 Nope Sep 01 06:14:35 I've used the SDK. I'll leave the Linux stuff up to you Sep 01 06:14:49 ok Sep 01 06:15:46 MaBunny, I remember following detailed steps on googles website, and it worked fine in a VM Sep 01 06:16:52 Jiggunjer__, can you link it to me? Sep 01 06:17:36 easy way to add a shadow (drop shadow) to an imageview? Sep 01 06:17:46 You ever get that feeling that you only ever begin to ask questions in an irc channel, then realize you can't phrase your question very well, and in trying to rephrase your question you end up solving your own problem? Sep 01 06:18:02 one of these days I'm actually going to get help in the irc... Sep 01 06:18:31 MaBunny, same link you had before: https://source.android.com/source/initializing.html Sep 01 06:18:41 moms: probably because you're Japanese and your language's syntax is very different from European languages :D Sep 01 06:18:57 moms: https://en.wikipedia.org/wiki/Rubber_duck_debugging Sep 01 06:19:58 moms: sure. It happens often when interacting with people in general. The effort to communicate with other people make you deepen your understanding of your problem and find a solution. Sep 01 06:21:06 Well right now I'm trying to learn espresso testing. My employer has not been big on unit testing so far, so I'm pushing that we actually learn how to do this stuff and do it right. Sep 01 06:21:28 Unfortunately I'm still horribly noobish. Sep 01 06:21:56 moms: you don't put the same effort because you are discouraged. Hoping that communicating the problem to someone else will provide a solution, you re-new your efforts and do what you didn't do before. Sep 01 06:22:11 I'm trying to automate a portion of app testing that involves the qr code recognition activity in our app, but right now I just have it on a loop with a sheet of qr codes taped in front of the camera. Sep 01 06:23:37 MaBunny: is this what you wanted? https://stackoverflow.com/questions/17963508/how-to-install-android-sdk-build-tools-on-the-command-line Sep 01 06:25:26 MaBunny: just tested it on something and it works Sep 01 06:25:35 BRB Sep 01 06:26:01 the stackoverflow websites were down awhile ago...couldnt access them then Sep 01 06:27:36 gah, just figured it out again long before I could phrase the question appropriately. Sep 01 06:27:51 MaBunny, you have a folder android-sdk-linux? Sep 01 06:28:23 yeah Sep 01 06:28:36 cd to the tools subfolder Sep 01 06:28:40 ok Sep 01 06:28:44 then type ./android Sep 01 06:29:22 VerbalKint: I just live in Japan, I'm not Japanese. Sep 01 06:30:11 ok i have started the SDK Manager Sep 01 06:30:16 cool Sep 01 06:30:26 thnx Jiggunjer__ Sep 01 06:32:54 Guys what do you build Android for? Sep 01 06:34:51 you can port android to the arduino or pi...for example Sep 01 06:35:03 or to your own custom board Sep 01 06:37:44 I supposed android for arduino or pi were available pre-built, given the popularity Sep 01 06:39:06 yes,but there are lots of other boards too Sep 01 06:40:31 I see. Thanks Sep 01 06:40:43 also for the IoT Sep 01 06:41:02 arancio_, what exp do you hav? Sep 01 06:42:39 about hardware? zero. I was thinking of making a motion tracking suit for gymnastics but I guess it would cost too much for my purposes. I guess each sensor would cost about 70$ Sep 01 06:43:13 no,from programming to linux to COmputer Science in a general basis Sep 01 06:44:41 I programmed linux in past. Both I didn't use it in the last 8-9 years. I don't have formal education in CS. Just lots of different experiences. Sep 01 06:44:56 ok Sep 01 06:45:04 Why do you ask? Sep 01 06:45:05 can i pm you? Sep 01 06:45:14 ok Sep 01 06:45:19 well,ill talk about it in pm Sep 01 06:45:21 ok Sep 01 06:45:33 Both -> but Sep 01 06:51:20 Man, Google Play apps bring out the most misanthropic feelings in me Sep 01 06:51:33 *games Sep 01 06:51:53 A big majority of them glorify gunfights Sep 01 06:52:07 And they wonder what the US has such a high rate of gun massacres Sep 01 06:52:11 *why Sep 01 06:52:53 Hello, when using google play services, how do you figure out which version number to use in the gradle file? Sep 01 06:53:10 I find sniper games really sick with their slow motion bullet cam Sep 01 06:53:40 I am following a tutorial where the author just put "compile 'com.google.android.gms:play-services:6.5+'" Sep 01 06:53:50 when I checked my SDK tools, the installed version is 32 Sep 01 06:54:22 sulaiman: compile 'com.google.android.gms:play-services:9.4.0' is the latest version Sep 01 06:54:52 sulaiman: sulaiman https://developers.google.com/android/guides/setup Sep 01 06:55:51 sulaiman: you ought to get individual packages like com.google.android.gms:play-services-plus:9.4.0 Sep 01 06:57:26 VerbalKint, thanks, so whenever I update the google play service, I should check that link to find the correct version number? Sep 01 06:57:52 sulaiman: you could do that or Android Studio will notify you in the gradle file that there's a new version Sep 01 06:58:42 thanks VerbalKint Sep 01 06:58:48 sulaiman: np Sep 01 07:01:55 VerbalKint: who won? Google or you? Sep 01 07:06:01 Arancio: ? Sep 01 07:06:32 VerbalKint: Weren't you fighting with Google about your app? Sep 01 07:07:36 Arancio: oh, I fixed the issues by myself :D Sep 01 07:07:52 Arancio: they still haven't deleted the buggy API project Sep 01 07:08:49 morning VerbalKint Sep 01 07:08:57 raoul11: shalom Sep 01 07:09:02 (: Sep 01 07:11:04 Arancio: and before you call me a noob, there was actually a Google Support page about the exact same thing that I had Sep 01 07:11:44 VerbalKint: I don't know anything about Google Play so I wouldn't be in position to call anybody noob about it Sep 01 07:12:33 But now that he mentioned the support page you're free to do so. :-P Sep 01 07:13:31 jjuran__: it said contact google, so I did Sep 01 07:14:03 VerbalKint: "before you call me a noob…" Sep 01 07:14:23 Never mind. It wasn't that funny. Sep 01 07:14:31 :) Sep 01 07:14:50 I still haven't received an email from them and it's almost a week since I made the tickets Sep 01 07:15:10 If I say something that doesn't make sense, assume it was a smartass remark that fell flat. Sep 01 07:15:20 jjuran__: I know the feeling :D Sep 01 07:15:48 noob :-P Sep 01 07:17:53 raoul11: I'm currently programming the language change option Sep 01 07:18:21 naice Sep 01 07:18:36 im doing yet another screen/activity Sep 01 07:20:15 raoul11: what kind of application are you doing? Sep 01 07:20:26 logic game Sep 01 07:24:03 VerbalKint: don't the app language follow the device settings? Sep 01 07:24:53 Arancio: the thing is that a big chunk of my Romanian users have their phones set to English, but wouldn't understand the English content Sep 01 07:25:16 Arancio: so I have to ask them first and give them an option to change it later Sep 01 07:25:40 VerbalKint: I see. Can you switch the resource set being used programmatically? Sep 01 07:26:00 Arancio: think so :D Sep 01 07:26:17 Layouting right now, haven't started the programming Sep 01 07:27:02 hey guys Sep 01 07:27:55 can somebody send me an example code, that check "if bluetooth device connected" ? Sep 01 07:27:58 zedz: Hey! Sep 01 07:28:14 i found several examples but they are confusing Sep 01 07:29:27 then better if you ask about the things you don't understand in them Sep 01 07:33:15 some of these examples using BluetoothDevice.ACTION_ACL_CONNECTED Sep 01 07:33:29 but i just found this -> List getConnectedDevices Sep 01 07:33:56 which one is the preferred way? Sep 01 07:39:15 why dont you buy some books for android dev? Sep 01 07:39:18 Both are useful. The first is an event. You can use it if you want to do something when a device is connected. The second is a method useful to poll the connected device. You can use it at any moment. What do you have to do? Sep 01 07:39:23 zedz^^ Sep 01 07:42:37 Arancio: i just want to get the number of connected devices Sep 01 07:43:34 get the length of the getConnectedDevice() list Sep 01 07:44:30 and can i write a broadcastreceiver or a listener to check the changes of this list? Sep 01 07:49:05 yes, that's what the action is for: http://stackoverflow.com/questions/13324000/broadcastreceiver-action-acl-connected-never-received Sep 01 07:49:15 in the handler you check the list Sep 01 07:52:37 Is anyone able to help me out with a MediaPlayer problem? I have an app that shows live rtsp streams, but for some reason, the mediaplayer stops approx. 1 minute after starting Sep 01 07:53:10 I made the MediaPlayer static so it doesn't get garbage collected, added onErrorListener and onInfoListener since it doesn't show anything in the stackstrace by itself Sep 01 07:53:20 but even those listeners show nothing when the video stops Sep 01 07:54:58 try exoplayer Sep 01 07:55:28 oh true, I could try that Sep 01 07:55:40 Still though, what could cause this to happen? Sep 01 07:55:52 Happens in both VideoView and MediaPlayer Sep 01 07:57:08 I'm sure cause is echoed to logs Sep 01 07:59:47 Output EOS has been reached? Sep 01 08:01:07 This time that popped up when mediaplayer stopped Sep 01 08:06:03 VerbalKint, I found another method, the path "/extras/google/m2repository/com/google/android/gms/play-services" under the SDK lists all the available versions Sep 01 08:06:23 Does anyone know anything about MediaPlayer Output EOS has been reached error? Sep 01 08:06:50 sulaiman: don't you want the latest version? Sep 01 08:07:19 VerbalKint, yes, and it shows 9.4.0 as the latest version Sep 01 08:08:20 Kamihan: I guess it means end of stream Sep 01 08:08:50 sulaiman: well, if you put in 9.3.0 in your gradle file and save it, you'll find out that Android Studio makes the text yellow and tells you that it's outdated Sep 01 08:09:08 squ: seems like it is, but I can't find much about it Sep 01 08:11:04 Kamihan, slow network is likely Sep 01 08:14:01 Zharf: I don't believe that that's the case, since 2-3 other apps on my phone can play the stream just fine Sep 01 08:20:07 Heya Sep 01 08:20:39 zedz: BT is the devil Sep 01 08:21:00 I wanna show all months on the screen, then when you click them, show the weeks, then show the days Sep 01 08:21:14 Kamihan, device too slow which causes it to not buffer enough and ends up in EOS? :) Sep 01 08:21:19 How would I do that best? :O what approach is useable for me Sep 01 08:22:56 Zharf, I tested 3 different apps (inclusing the one I made, and two others) on two different devices. The other two apps work fine on both devices. My app is the only one that stops Sep 01 08:28:19 Xatenev, check if any of https://android-arsenal.com/tag/27 would work for you Sep 01 08:29:31 Zharf: thanks Sep 01 08:29:40 That goes into the right direction definetly. Sep 01 08:34:04 guys, does somebody using batterknife? Sep 01 08:34:24 zedz: sounds illegal *rimshot* Sep 01 08:34:25 butter Sep 01 08:34:26 :D Sep 01 08:34:57 i mean this -> http://jakewharton.github.io/butterknife/ Sep 01 08:36:36 zedz: are you using it? Sep 01 08:36:58 yep, i just got a question Sep 01 08:37:14 then you got the answer, you are using it Sep 01 08:37:29 ask the question to yourself, now Sep 01 08:38:58 zedz: more seriously, I guess JakeWharton uses it Sep 01 08:39:35 Plenty uses it, but so far there's no question for them to answer Sep 01 08:40:10 how can I bind it in a class which called by an activity? Sep 01 08:40:24 since "ask to ask" is forbidden on IRC, people must find innovative ways to do the same thing Sep 01 08:40:53 in the class' constructor i got the activity's instance Sep 01 08:41:09 like public MyClass(Activity _activity) Sep 01 08:41:24 and try ButterKnife.bind(_activity) Sep 01 08:41:48 Use one of the 2 parameter bind methods Sep 01 08:41:53 but it throws error for example when i want to use one of my TextView Sep 01 08:42:11 It needs to know where to bind views, and where to find views Sep 01 08:43:39 and how can i pass it to my class? Sep 01 08:44:35 Pass what? Sep 01 08:44:59 as u said it needs to know where to bind views Sep 01 08:45:27 so i guess i need to pass the view beside of the activity instance Sep 01 08:45:37 Yes, the object that has fields that need to be bound Sep 01 08:45:53 Have you checked the various bind methods? Sep 01 08:46:59 SimonVT: yes, but i dont get it how can i pass View to my custom class Sep 01 08:47:26 for example in a fragment i can just get it like this -> View view = inflater.inflate(R.layout.fancy_fragment, container, false); Sep 01 08:47:37 You have the activity, that's all you need Sep 01 08:48:24 SimonVT: i call my class this way -> new myClass(this).myFunction(); Sep 01 08:48:34 where this refers to the Activity Sep 01 08:48:53 Right Sep 01 08:48:55 and when i want to bind my objects in myClass' constructor Sep 01 08:49:04 it will throws error Sep 01 08:49:22 that ButterKnife doesnt find the objects Sep 01 08:49:28 Yes, what you did previously was wrong Sep 01 08:49:37 how can i do it right Sep 01 08:49:47 Use one of the 2 parameter bind methods Sep 01 08:50:20 i dont get it Sep 01 08:50:29 A bind method that takes 2 parameters Sep 01 08:50:48 Does your IDE not give you a list? https://cl.ly/2J2i1s3v3D3h Sep 01 08:57:53 SimonVT: what is the second parameter? Sep 01 08:58:00 SimonVT: the first is the activity Sep 01 08:58:05 and the second one? Sep 01 08:58:24 No, the activity is the source Sep 01 08:58:32 The source is where the views are Sep 01 08:58:55 The javadocs should say this as well Sep 01 09:01:14 SimonVT: now it works, thanks a lot :) Sep 01 09:03:11 hello, has anyone implemented account switching like gmail? I've searched for it in support lib but seems like I need to do it myself, is it true ? Sep 01 09:04:50 hm. where in android studio do I see System.out.println messages when I call this in my android app ? Sep 01 09:05:13 tilerendering, alt+6 Sep 01 09:05:43 if you mean log.?("", ""); msgs Sep 01 09:06:18 hello Sep 01 09:06:38 how i add space between 2 rows ? Sep 01 09:07:00 i have 5 rows in 1 textView Sep 01 09:07:27 and i need to add for example 11px between rows Sep 01 09:12:49 oh thanks Sep 01 09:13:55 linespaceextra freelancerbob Sep 01 09:18:37 fragments are able to interact with the parent ui elements, right? i keep getting null point exception when I try to access a few buttons from my fragment by using: Button aButton = (Button) getActivity().findViewById(R.id.aUiButtonElement); Sep 01 09:33:37 Jesperhead: what does getActivity().getView() return? Sep 01 09:33:56 Jesperhead: You need to get the view on the parent first, then parentView.findViewById() Sep 01 09:34:55 from within the fragment, getActivity().getView() doesn't resolve Sep 01 09:35:33 specifically, getView() Sep 01 09:35:35 getActivity().findViewById(R.id.parentContainer); Sep 01 09:36:09 RelativeLayout pv = (RelativeLayout) getActivity().findViewById(R.id.parentContainer); Sep 01 09:36:23 pv.findViewById(R.id.aUiButtonElement) Sep 01 09:36:36 oh thank you i will try that Sep 01 09:37:12 i had tried using the container viewgroup that is passed in onCreateView but didnt have any luck Sep 01 09:37:19 hey Sep 01 09:37:23 anybody in here using gson ? Sep 01 09:37:33 probably most people Sep 01 09:37:35 just ask your question Sep 01 09:37:38 gson for the win Sep 01 09:38:14 Jesperhead: I think you can do getRootView() in the onCreateView() on the fragment but haven't really used it before Sep 01 09:38:35 good morning all Sep 01 09:38:44 gm Sep 01 09:38:56 so I got this json string, “{"LoginResult":{"appuser":{"userid”:4}}} - and I want to deserialize it to my class “Loginresultwrapper” - how can I tell GSON that “LoginResult” (in the JSON String) is actually Loginresultwrapper ? Sep 01 09:39:16 with xstream, I could alias classes Sep 01 09:39:23 in gson maybe there are other methods to do this Sep 01 09:39:39 unfortunately, it seems impossible to use xstream on android. Sep 01 09:40:31 you want to dump the outer layer that is and only get the LoginResultWrapper which has appuser field in it? Sep 01 09:41:07 I want Loginresultwrapper (my java class) to hold what is in LoginResult (json) Sep 01 09:41:25 cmendes0101: im afraid i still receive null point exception when using the appointed parent view layout for findViewById Sep 01 09:41:25 gson.fromJson(jsonString, LoginResult.class) .. but yah you might need to have 2 classes. one for the whole json and one for the object inside Sep 01 09:41:29 and yeah actually maybe this is equal to dumping the outer layer Sep 01 09:41:49 maybe there is something like “ignorerootelement” or something Sep 01 09:42:06 xstream was so nice. Sep 01 09:42:30 you could also do gson.fromJson(new JsonParser().parse(json).getAsJsonObject().get("LoginResult"), LoginResultWrapper.class) Sep 01 09:42:33 or something Sep 01 09:44:16 LoginResult is the field name. Define that in your enclosing class. What you call the LoginResult type doesn't matter, as long as it also has the right fields Sep 01 09:45:11 sometimes it's annoying to make those stupid wrapper classes, so we do things like what I just wrote Sep 01 09:45:23 since the extra classes are essentially useless Sep 01 09:45:55 SimonVT: so I ll have to compose wrapper classes now just for gson to be able to deserialize correctly ? that´s quite an amount of work and classes to maintain Sep 01 09:46:10 with xstream it just worked and it was very configurable Sep 01 09:46:13 sigh. Sep 01 09:46:18 do what I said... Sep 01 09:46:51 Zharf: yeah I might follow your approach, although I have the feeling I will run into other problems there Sep 01 09:47:04 for date conversions for instance. Sep 01 09:47:20 There'll be extra code somewhere.. you can either deserialize the entire response, or pick and choose like Zharf Sep 01 09:47:22 why would there be issues with date? Sep 01 09:47:23 but thanks a lot for your hint Sep 01 09:47:58 JsonParser.getAsJsonObject might have other and less flexible date conversion than gson.fromJson has Sep 01 09:48:06 but that´s solvable Sep 01 09:48:31 anyhow thanks a lot Zharf - helped me Sep 01 09:49:32 what he posted still is using gson to pass into the class. The jsonparser part is just to get rid of the outer level isn't it? Sep 01 09:50:54 yep Sep 01 09:51:21 if you have multiple edittexts and next edittext is read-only, android has a bug offering clicking “Next” and edit that edittext Sep 01 09:52:19 There are also various web services that can generate class files from json for you Sep 01 09:54:24 Hello. Anyone ever written tests using selendroid? Can it select elements by text with no problem in a dynamic page? The elements change each time. Sep 01 10:18:37 SimonVT: I m just going through hell because I cant reuse xstream that I use on the server side. it is very tweakable and you dont have to add any classes or wrappers in general. achieving the same results with gson will be “adventurous” to say the least. actually I m very close to just write my own deserializer/serializer because it´s not that complicated. nowadays concept of libraries seems to be: “Well, we didnt say we make it Sep 01 10:18:38 easier for you" Sep 01 10:19:40 in the end you end up reading through tons of useless documentation, only to find out that the lib adds complexity where it´s not needed, and that for some usecases, you would have been better off writing your own. Sep 01 10:20:36 Gson is about as easy as it gets. Define classes, call method Sep 01 10:21:40 SimonVT: xstream had that already in 2008 and became very configurable afterwards Sep 01 10:21:51 so - to me - there´s no gain. they have badly reinvented the wheel Sep 01 10:22:33 I disagree Sep 01 10:22:43 you know xstream ? Sep 01 10:23:38 Sure Sep 01 10:24:21 ok Sep 01 10:24:42 in xstream you could alias classes for instance Sep 01 10:25:13 I'm sure xstream has its pros, and it might even be better suited for your usecases. That doesn't mean gson is bad Sep 01 10:39:05 SimonVT: any idea how to tell gson that “objectOfClassFoo: “” “ is to be treated as null value for the object of class foo ? Sep 01 10:39:33 it seems to think “” is a string value I try to assign to Foo Sep 01 10:40:12 Well, it is a string value Sep 01 10:40:51 Ints don't have " Sep 01 10:41:21 But you can register a TypeAdapter or JsonDeserializer and check if it's an empty string Sep 01 10:41:30 Ideally you'd fix your server tho Sep 01 10:42:37 hm ok Sep 01 10:42:58 Having the value be null, or not have the field at all, would be better choices Sep 01 10:43:46 agreed Sep 01 10:45:28 what´s the json convention for a null value ? Sep 01 10:45:45 not having it at all I guess Sep 01 10:46:01 it can be either not there or just null Sep 01 10:46:49 "A value can be a string in double quotes, or a number, or true or false or null, or an object or an array. These structures can be nested." Sep 01 10:55:10 Do you guys think that putting stuff like SharedPreferences in the application class is bad? Sep 01 10:55:33 It seems way more logical to me for it to be this way Sep 01 10:55:42 singleton? Sep 01 10:55:46 Ashiren: yeah Sep 01 10:55:52 As a static variable Sep 01 10:56:09 well why not Sep 01 10:56:34 there will be always people saying "SINGLETON IS ANTI-PATTEN, DONT USE IT !1#$#$@#$?@#$@#" Sep 01 10:57:14 Ashiren: it seems the other way around to me, but my OCD is telling me that I should follow the practices of the herd Sep 01 11:00:24 !!!1!! Sep 01 11:06:39 Hello ! Is there a link between signing an APK, and allowing installation from unknown sources ? Its not clear for me Sep 01 11:14:53 kko, every apk is signed in some way Sep 01 11:16:01 maybe with some debug key etc. "unknown sources" just means you can install an apk which was not downloaded from playstore Sep 01 11:16:30 or other "system" markets like SamsungApps Sep 01 11:18:28 ktwo: When i generate the apk, i have the choice to generate a signed or an unsigner apk Sep 01 11:19:16 i dont use any store/market to deliver the app Sep 01 11:19:59 kko, it just means its signed with a debug key Sep 01 11:20:27 if you are going to redistribute it i would create a private key to sign it, else you can't prove it was built by you Sep 01 11:20:31 unless you don't care about that Sep 01 11:20:40 ktwo: OK, so unknow source just mean it doesnt comes from the official PlayStore market, thats it ? Sep 01 11:20:59 exactly, so any apk, no matter if signed or 'unsigned' won't install unless that checkbox is ticked Sep 01 11:21:16 ktwo: allright, thanks :) Sep 01 11:21:50 Can't uninstall unsigned apps Sep 01 11:21:55 Install Sep 01 11:22:35 SimonVT: so why would someone generate unsigned apk if you dont have any way to install it ? ^^ Sep 01 11:22:40 yea, they aren't unsigned probably, it just is called like that, under the hood it will sign them with some debug key Sep 01 11:22:54 wrong name, Androdi studio calls it "Build APK" and "Build signed APK" Sep 01 11:25:02 If it says unsigned, then it'll be unsigned.. You can always sign it yourself Sep 01 11:25:42 I don't have a use case for that, but I'm sure some do Sep 01 11:26:25 what IDE is it? Sep 01 11:27:45 Hello. Can an in house application (private) make use of Google Play to update remotely, just like applications in the store can easily be updated by tapping the update button? Sep 01 11:27:48 Instead of having to manually re deploy the application to all users Sep 01 11:32:18 ZeNEX maybe if you abuse the beta/alpha features or PlayStore? Sep 01 11:32:38 Gradle has trouble resolving a dependency. I have a library that has a dependency to a java module and and dependencies [ compile project (':javamodule') in my lib. However, I still get "cannot find symbol MyClass" in the lib. How can I fix this? Sep 01 11:33:01 so public s won't see the app just the registered beta users Sep 01 11:33:30 ktwo, is there a more clean option? maybe developing another APP that can install an app remotely? Sep 01 11:33:38 Say delete the old one, install this new one from X server Sep 01 11:34:15 Maybe https://support.google.com/googleplay/android-developer/answer/2623322?hl=en Sep 01 11:35:20 That's what I was looking for thanks SimonVT Sep 01 11:35:32 SimonVT: ok I come back to you because you were actually right. gson is not the problem. xstream causes the problems. Sep 01 11:36:12 \o/ Sep 01 11:36:15 SimonVT: btw: http://user.xstream.codehaus.narkive.com/zAfCQaw4/serialize-null-properties-to-empty-null-json-elements Sep 01 11:36:33 and yeah, it´s an xstream issue. Sep 01 11:38:47 This is my module's build.gradle https://ghostbin.com/paste/tgqju and I can't find a class in common while building Sep 01 11:53:45 is there a way to test logic of a method without running in an emulator? Sep 01 11:54:01 i guess unit testing, i havent started that yet in android. bu should... is there any other way Sep 01 11:56:55 winegoddess: testing is what I do Sep 01 11:57:59 thanks tilerendering - im new with androdi studio / intelliJ so i wondered if it might have some scratchpad / feature to run lines of code. i was multiplying by 0 because I divided ints and got confused. too tired. :) Sep 01 11:58:28 you can just run a test Sep 01 12:04:15 what is the appropriate context to work with when interacting with a UI element inside of a fragment? Sep 01 12:08:30 Hi, Is there a way to extract version information from an apk file without the use of aapt? Sep 01 12:11:50 Or from an installed package, when the permissions for dumpsys aren't available. Sep 01 12:16:41 Jesperhead, ? Sep 01 12:17:26 in relative, can i have 4 buttons, can I somehow make them all the wdith of the largest thats wrap content? Sep 01 12:17:56 well.. im calling a fragment in my activity and overriding oncreateview to create an array/populate a spinner in the fragment layout. I keep getting nullpointerexception on the spinner when I try to set the adapter. THinking it might be a context issue Sep 01 12:18:43 pastebin the full exception Sep 01 12:19:17 oh der, layout left and right to the item, got it Sep 01 12:23:43 if I use a BitmapShader, will it make a copy of the Bitmap it is initialized with? (i.e. can I recycle the bitmap after i construct the shader) Sep 01 12:25:39 Zharf: http://pastebin.com/BSJ1eBeD Sep 01 12:26:07 line is: mySpinner.setAdapter(adapter); Sep 01 12:26:42 mySpinner is null Sep 01 12:28:18 final Spinner mySpinner = (Spinner) findViewById(R.id.mySpinnerElement); was called Sep 01 12:29:12 do you have that in your xml? Sep 01 12:29:42 Fragments don't have a findViewById method, it needs to be called on the View Sep 01 12:30:05 right Sep 01 12:31:14 so could i use the container viewgroup passed in onCreateView()? Sep 01 12:31:38 Why not the View you're inflating? Sep 01 12:31:56 Usually people do this in onViewCreated tho Sep 01 12:32:27 is there a way to click on a veiw in design, and some shortcut to take you right into the xml entry? Sep 01 12:33:37 it should do so automatically Sep 01 12:33:38 command B, awesome! Sep 01 12:33:44 automatically? Sep 01 12:33:48 yes Sep 01 12:33:53 ooh, do tell :) Sep 01 12:34:23 u mean switchin from the design tab to the text(xml tab)? Sep 01 12:35:06 yes, for that, on my mac, i found command B works. or rt click go to declaration Sep 01 12:35:22 i cannot find a way back though , from XML to design. do you know of one? Sep 01 12:36:21 got it ctrl-shift-right :) Sep 01 12:37:10 hi Sep 01 12:38:22 i create a new projet and try run it, but i have this error: stack=java.lang.RuntimeException: java.lang.ClassNotFoundException: Didn't find class "com.xxx.edittextstyles.MainActivity" Sep 01 12:38:32 anybody can help me? Sep 01 12:39:00 oO Sep 01 12:40:04 i have this Activity Sep 01 12:42:00 t0th_-_, is it in your manifest? Sep 01 12:42:05 yes Sep 01 12:44:54 stack=java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.xxx.edittextstyles2/com.xxx.edittextstyles2.MainActivity}: Sep 01 12:45:10 strange, i create a new clean project Sep 01 12:48:50 I have a java module that has a lib as a dependency. Gradle does not like this and says "java-module" depends on one or more android projects but is a jar". What is the best way to resolve this? Convert the java project into a lib as well? Sep 01 12:50:40 Yeah, can't have a java module that depends on an android module Sep 01 12:51:56 In Eclipse you could. Sep 01 12:52:33 im using a String.format on a double to display teh calculated value. how do i turn off the warning to externalize the string? Sep 01 12:54:57 There's no quickfix (alt+enter)? Sep 01 13:01:12 Can't resolve symbols after converting the module to a library Sep 01 13:01:32 This is my gradle https://ghostbin.com/paste/tgqju common is the lib Sep 01 13:18:51 Hi all, does somebody know a solution for this issue? http://stackoverflow.com/q/35599125/1723525 Sep 01 13:21:27 today is the day we upgrade our #1 app to N.. whoo hoo . questions shall follow Sep 01 13:25:06 Good luck Sep 01 13:25:18 I released a new update for our app on Tuesday Sep 01 13:25:26 56% of our users have upgraded Sep 01 13:30:52 Should I make my app's default language English if it's going to have 2 languages? Sep 01 13:34:00 wut Sep 01 13:49:39 Could anyone please point me in the right direction in regards to repeating a one-time exact alarm? Sep 01 13:51:19 I'm trying to parse a String into a JsonArray and getting a malformedJsonExpression, can anyone see why? http://pastebin.com/V5E2mLpx Sep 01 13:51:53 Im trying to nest linear layouts (preferably both verticle). So that i have a title textview and a content wrapper for the remainder of the space. Any help is appreciated. See my current xml here: http://pastebin.com/HmdWpDyk Sep 01 13:52:28 The problem is the nested linearlayout isn't showing up. No red on the screen Sep 01 14:00:50 Zeuri, it's not valid json Sep 01 14:01:02 Zeuri, "id": "client_id": 0, Sep 01 14:01:12 Zeuri, http://jsonlint.com/ Sep 01 14:01:49 is there a way to detect if a device has an external sd slot? Sep 01 14:03:48 thebishop: Thanks man, Im an idiot >.< Sep 01 14:04:08 BigDru: try both weights to 1 Sep 01 14:04:11 Zeuri, no problem, it's possible you also made a more complex mistake ;) i only looked at the json Sep 01 14:04:24 BigDru: Default orientation is horizontal, the textview is taking up the entire width Sep 01 14:04:38 also yeah, the design is strange :) Sep 01 14:04:44 thebishop: thats more than enough man thank you ;D Sep 01 14:05:08 Zeuri: http://jsonlint.com/ Sep 01 14:05:24 Just for future reference :) Sep 01 14:05:35 SimonVT: Aye I will use it from now :) thanks Sep 01 14:05:50 snowball, i don't know what permission it needs, but the output of mount would tell you Sep 01 14:46:19 My irc crashed and i don't recall who pointed out that the default orientation for linearlayout was horizontal, but thank you! This was indeed the problem. When changed to verticle it worked perfectly. Sep 01 14:46:35 Cheers Sep 01 14:47:37 BigDru: it was SimonVT :) Sep 01 14:49:21 SimonVT: thank you :) Sep 01 14:54:19 Hi, is it easy to share an android view as an image? Sep 01 14:55:43 like a screenshot? Sep 01 14:56:25 well, the view I want to share is usually a scroll view that is wider than the screen Sep 01 14:57:14 Oh.. not sure of how to address that Sep 01 14:57:26 darn Sep 01 14:57:43 Other than stitching multiple screenshots together. =/ Sep 01 15:06:07 I was trying to work with this Location API but this code has a variable REQUEST_CHECK_SETTINGS and it is not defined , here is the code https://developer.android.com/training/location/change-location-settings.html#prompt Sep 01 15:15:31 gradle gets stuck during transformClassesWithDexForDebug, outofmemoryerror Sep 01 15:15:55 too many methods Sep 01 15:15:56 barq: include specific packages in gradle Sep 01 15:16:04 barq: not whole bundle Sep 01 15:16:13 What do you mean? Sep 01 15:16:20 The same build works with maven Sep 01 15:16:27 barq: can you pastebin your gradle Sep 01 15:16:31 so? Sep 01 15:16:42 The top level gradle? Sep 01 15:16:51 maven probably sets a larger default heap for dx Sep 01 15:17:03 barq: you can increase memory size for gradle , but still you should look at what packages you are compiling Sep 01 15:17:30 barq: yes top level gradle Sep 01 15:17:50 no app gradle, not top level Sep 01 15:17:53 can anybody take look at my problem its small Sep 01 15:18:29 https://ghostbin.com/paste/zf4t2 This is the gradle for the application Sep 01 15:18:35 boodllebat, define it yourself Sep 01 15:19:31 pfn: can you direct me to the reference where i can see settings code , so that i can set it it would be great help can i'm not able to find it Thank you Sep 01 15:19:33 So I should add javaMaxHeapSize in dexoptions? Sep 01 15:19:54 boodllebat, it's an arbitrary value Sep 01 15:22:25 increasing heap size worked Sep 01 15:25:00 pfn: sorry i dont know what do you mean by arbitrary value , should i define randome value there ? Sep 01 15:26:37 Now I get transformClassesAndResourcesWithSyncLibJarsForRelease'. > java.util.zip.ZipException: ZIP file must have at least one entry Sep 01 15:28:28 boodllebat: I don't really know what the issue is. It's not really a question you've asked Sep 01 15:29:22 sdousley: its says cannot find symbol REQUEST_CHECK_SETTINGS Sep 01 15:30:10 The problem seems to be that two dependencies use the same jar and then it is added twice during the build Sep 01 15:30:16 It's just a request code, like the one you pass to startActivityForResult Sep 01 15:30:25 Just for you to identify the request Sep 01 15:31:05 boodllebat: and this is an external library/API that is throwing the error? Sep 01 15:32:40 boodllebat: when "starting for result" in android, you usually define different values for every request, so that in the "onResult" callback you can know which request was originally called Sep 01 15:32:59 this is my gradle output http://paste.ubuntu.com/23120542/ Sep 01 15:33:03 sdousley: ! Sep 01 15:33:09 boodllebat: just make sure it's a different value from every other request; if there's only one, then any value will do fine Sep 01 15:33:27 boodllebat: except 0 and -1 which are reserved iirc Sep 01 15:34:58 hmmm, I'm not sure in that case boodllebat I'm afraid :( Sep 01 15:37:23 bluk: here you can see he gave REQUEST_LOCATION http://stackoverflow.com/a/31816683 Sep 01 15:38:11 boodllebat: yeah and he randomly choose a value of 199, could have been any number > 0 Sep 01 15:38:24 hithere - is it possible in PreferenceActivity set some of string-array items to be inactive - directly from xml? Sep 01 15:38:56 no Sep 01 15:39:02 define your REQUEST_CHECK_SETTINGS with a value of (your last already existing request code)+1 and use the same value in onResult to react to it Sep 01 15:42:01 bluk: oh i think i'm getting it now Sep 01 15:50:03 This is my dependency tree of my app https://ghostbin.com/paste/zxfme I have the problem of having duplicate dependencies, how can I omit them to only be available during runtim for both and online compile once? Sep 01 15:51:25 duplicate dependencies are no problem, gradle will deduplicate Sep 01 15:51:48 Then I wonder why I am getting the zip file must have at least one entry error Sep 01 15:51:55 because you fucked up something else Sep 01 15:52:09 I have compile fileTree(dir: 'libs', include: ['*.jar']) in one of my gradles Sep 01 15:52:39 In order for jars to be included when compiling the dependency Sep 01 15:54:58 Ugh, finally finished the language selection parts. Now I have to translate the content. X_X Sep 01 15:56:26 VerbalKint: how do you select the language inside the application? Sep 01 15:57:13 If I remove it I get multiple dex files define class Sep 01 15:57:41 Does gradle exclude duplicate jars as well? Sep 01 15:59:20 Arancio: well, it's kinda complicated and I'm probably doing it in an unoptimized way, but I basically call resource.getConfiguration(), change its locale variable and restart the activity Sep 01 15:59:29 barq: this seems similar but not quite the same: http://stackoverflow.com/questions/25752078/multiproject-gradle-duplicate-dependencies-in-distribution-zip Sep 01 15:59:59 Arancio: something similar to the question Sep 01 16:00:03 Arancio: https://stackoverflow.com/questions/18885790/refresh-android-application-after-language-change Sep 01 16:00:37 Anyone familiar with repeating exact alarms via AlarmManager? setRepeating no longer works as imagined... Sep 01 16:01:18 Hey, what's the recommended method for unmarshalling json in android? Sep 01 16:01:20 err Sep 01 16:01:23 unmarshalling xml Sep 01 16:01:38 n00p: What do you mean by repeating exact alarms? Sep 01 16:03:14 barq, https://developer.android.com/reference/android/app/AlarmManager.html under #setRepeating Sep 01 16:03:22 eemgr: I've seen a project use jaxb, though I wouldn't recommend that Sep 01 16:03:47 basically I need to use setExact, I'm not sure how to repeat it though... Sep 01 16:04:11 barq: yeah, i've read it's huge Sep 01 16:04:46 As of API 19 they setRepeating is basically setInexactRepeating Sep 01 16:05:10 I'm trying to get my alarm to repeat ever x seconds Sep 01 16:07:02 eemgr: I used SimpleXmlFramework and works quite well Sep 01 16:07:08 however it doesn't seem to be maintained anymore Sep 01 16:07:19 eeh, that's concerning Sep 01 16:07:25 pfn: Thanks, I tried the task of the answer with the 8 upvotes, still get mutiple dex files define class$1 Sep 01 16:07:36 eemgr: http://simple.sourceforge.net/ if you want to have a look Sep 01 16:07:45 however the "recommended" method is JAXB Sep 01 16:07:49 then that's because you have duplicate dependencies, that's not what you said you error was before, barq Sep 01 16:08:05 but simple is just better imo :> except the fact that it's future is uncertain Sep 01 16:11:32 I get either the zip or the duplicate dex error depending on whether I have compile fileTree(dir: 'libs', include: ['*.jar']) or compile('my.jar') pfn Sep 01 16:12:27 * pfn shrugs Sep 01 16:12:32 your project structure sounds fucked up Sep 01 16:14:08 It's complex, but works in maven Sep 01 16:14:15 Trying to migrate to AS Sep 01 16:29:03 do we need older versions of platform tools, or does te latest SDK build for older versions? Sep 01 16:43:32 No need to use old versions Sep 01 16:52:09 join #angularjs Sep 01 16:52:38 I’m not gonna do what you tell me Sep 01 16:53:18 follow me you lemming's JK Sep 01 16:53:19 are you raging against the machine now? Sep 01 16:55:01 ew angular Sep 01 16:59:42 thanks SimonVT Sep 01 17:06:08 http://imgur.com/a/02kwX ... Sep 01 17:08:30 lol Sep 01 17:09:28 Hi all As written in the documentation, a loader monitors its data source for changes and calls Loader#onContentChanged() in case of one. What I want is to ONLY trigger a background task when there is a change on the USGS servers for new earthquakes. Can this be done by implementing this method? Sep 01 17:09:48 adq: i always use the external SDK manager, find it better Sep 01 17:10:14 I do too, but some updates are not visible for unknown reason (not related to preview mode), like for the NDK Sep 01 17:10:41 we will survive anyway Sep 01 17:11:00 has anyone been experiencing any issues with TextureView and Camera-v1-API on Nougat? Sep 01 17:11:06 droidace: No, loaders are for local databases Sep 01 17:11:24 for some reason this same app compiled for 24 and run on N seems to work fine and then proceed to get laggy Sep 01 17:11:25 You can either do long polling to watch for changes, or use a cloud service Sep 01 17:11:28 very weird Sep 01 17:12:19 I think I might try a facade and have it detect which API level its running on and use Camera V2 for 21+ Sep 01 17:12:47 Shouldnt you use a surfaceview? Sep 01 17:13:10 i built a camera live preview thing like a year ago and i thought you were suppose to use surfaceviews Sep 01 17:13:14 for performance reasons Sep 01 17:13:34 thanks orbyt_ Sep 01 17:13:38 well yes and no Sep 01 17:13:41 it all depends Sep 01 17:13:43 how can I achieve my task? Sep 01 17:14:00 droidace: where are you getting this earthquake data Sep 01 17:14:13 but they have now improved the performance of SurfaceView in N so its better than TextureView in certain situations Sep 01 17:14:40 holly #@!! this installer even fails on cmake: but package "CMake" already exists at [....] It must be deleted or moved away before installing into a child directory. Sep 01 17:14:46 Napalm: Yea perhaps, I know either technically will work but im not sure of the exact advantages Sep 01 17:15:07 it does not detect there is cmake but know there is cmake and ask the user to move cmake... :') Sep 01 17:15:08 from web API @orbyt_ Sep 01 17:15:17 droidace: yea post the endpoint Sep 01 17:15:22 here "http://earthquake.usgs.gov/fdsnws/event/1/query"; Sep 01 17:17:21 do I create I service?? Sep 01 17:17:43 Well, for a rest endpoint, you can either do long polling (make a network request and check for changes ever x minutes), or use a service Sep 01 17:17:46 I'm trying to send data fast from android to a ubuntu box on the same wireless network. What should I use? Sep 01 17:17:51 let me try and find this cloud service 1 sec Sep 01 17:19:12 ok thanks @orbyt it would be nice to know more abuot speicific service that we can use Sep 01 17:21:32 @dro Sep 01 17:21:38 droidace: yea i cant find it Sep 01 17:22:00 it was a service that instead of you having to do long polling, it would watch for changes for you, and only send you data when it had changed Sep 01 17:22:10 also this may be what you want: http://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php Sep 01 17:22:14 https://firebase.google.com/ ? Sep 01 17:22:30 ? Sep 01 17:23:28 Maybe you meant https://developers.google.com/cloud-messaging/ Sep 01 17:23:30 think i found it: http://streamdata.io/ Sep 01 17:23:30 droidace: please confirm. do you want this to work in the background. So when an earthquake happens the user see's a notitification? Sep 01 17:23:55 yes I do @napalm Sep 01 17:25:03 droidace: then you want to setup a service on a server that does the monitoring of feeds and various data sources. It can then send a push message out to your app so all the users see the quake when it happens. Sep 01 17:26:12 droidace: i'd need to know more about how you want your app to work for any better recommendations. Sep 01 17:29:11 droidace: If this is a new app, then I would probably use Firebase set it all up with the latest APIs so you get the analytics and what not. Then have an array of quake events in your Firebase that a server-side service will update when quakes happen. You can then also have a users array for accounts. They can then login with their google account. registers with GCM and your server-side Sep 01 17:29:12 scripts can update the Firebase database and then send a topic push to GCM. Each users app would be subscribed to that topic. So you only need to send once and be received by multiple users. Sep 01 17:30:12 droidace: you could offer to store the users location, and depending on their distance from the quake event you might want to set the priority flag on the push and send a push directly to that user. Sep 01 17:30:31 droidace: QUAKE ALERT! run like hell! Sep 01 17:30:31 :D Sep 01 17:32:05 hey Napalm Sep 01 17:32:19 droidace i think reto meier had an earthquake app Sep 01 17:33:22 Napalm, what would you recommend if I wanted to poll a RESTful web service every couple of seconds from my app.. Create an android service for it? Sep 01 17:33:41 n00p: you just dont do that Sep 01 17:33:47 n00pe Sep 01 17:34:03 Well assume it's not going over the internet, it's all local Sep 01 17:34:04 fucking poll a REST endpoint every couple of seconds!?! are you nuts Sep 01 17:34:14 lol Sep 01 17:34:34 n00p: but its not Sep 01 17:34:35 n00p its because shit like that, dianne is handcuffing is with doze mode :) Sep 01 17:34:44 yup Sep 01 17:35:07 ? The REST service is on a local server on my LAN. Sep 01 17:35:30 Is it possible to take a driver from the linux kernel and compile it for android? Sep 01 17:36:01 anyone know why menu item app:actionLayout wouldn't load the right view? Trying to set a custom dropdown menu item list view Sep 01 17:36:11 Not really sure how else to poll my local DB every X amount of seconds. Sep 01 17:36:22 specifically I'm interested in compiling the ath9k driver for android Sep 01 17:37:43 n00p: your Rest server should probably be PUSHING, rather than having your phone poll Sep 01 17:38:02 Oh interesting, didn't know you could push Sep 01 17:38:04 dougquaid: try #android-root. They’d know better than we do Sep 01 17:38:09 thanks Sep 01 17:40:15 s73v3r, is setting up PUSH possible on a private LAN? Sep 01 17:40:38 So far research on it shows it leverages some external services (google cloud messaging) and such Sep 01 17:40:43 how private? are neither going to have access to the internet? Sep 01 17:40:49 correct Sep 01 17:40:57 n00p: we were talking about droidace, but even then doing that from a mobile device is not a good idea Sep 01 17:41:14 joshkovach: a dropd down menu item is not a action view Sep 01 17:42:24 n00p: you can still "push" Sep 01 17:42:26 Hi. I am developing an android app, where I am using an external library for a huge array of floats. I have to make 2 function calls to the external library for each float. As all the floats are in the range [0,1] this seems horribly inefficient. Sep 01 17:42:39 what? Sep 01 17:42:42 Napalm: can I override the dropdown item view for an menu item? Sep 01 17:42:58 n00p: you can old a tcp connection open, but you'll want to get your app added to the whitelist on your device for doze.. thats basically how GCM works Sep 01 17:43:02 Would it be more efficient to precompute a LUT and then use that to do the transformation? Sep 01 17:43:23 haffe: are you experiencing performance problems right now? Sep 01 17:43:30 s73v3r: Yes. Sep 01 17:43:36 it depends haffe, first you need to identify the main bottleneck(s) via profiling Sep 01 17:43:37 have you profiled you code and seen that this is the issue? Sep 01 17:43:41 Yes. Sep 01 17:43:45 joshkovach: not as far as I know.. the best thing to do is to do your own PopupWindow with a ListView view and custom adapter if you want that type of look and feel Sep 01 17:43:54 The loop where I traverse the array takes 25 minutes. Sep 01 17:43:56 Napalm, I see. Would I hold that TCP connection open via an android service? Thanks. Sep 01 17:43:57 haffe, go NDK if you need perf for processing very often huge array of float Sep 01 17:44:10 adq: The library isn't available in C++. Sep 01 17:44:12 25 minutes!!! Sep 01 17:44:13 this is crazy Sep 01 17:44:20 what exactly are you doing? Sep 01 17:44:23 and not suitable for mobile lol Sep 01 17:44:28 Fuzzy logic image analysis. Sep 01 17:44:56 there are definitely image analysis libraries for C++ Sep 01 17:45:21 you can try to precompute things in advance and store it in a LUT as you said, but you must know the compromise memory versus cpu Sep 01 17:45:21 haffe: what is the external library doing? Sep 01 17:45:46 if you have lot of things which does not need to be recalculated every iteration, using a LUT will definitely helps Sep 01 17:45:51 s73v3r: Yes but no fuzzy inference systems. Sep 01 17:46:17 but if it isn't heavy computation, not sure you might gain something due to overhead and miss-lookup/cache Sep 01 17:46:34 adq: There are 331397 floats in the array, and looking at a histogram there are a lot of them with the same value. Sep 01 17:46:37 n00p: a service with a notification, also called a foreground service Sep 01 17:46:45 haffe: you might look into RenderScript Sep 01 17:47:03 well, you must have a serious bottleneck somewhere then Sep 01 17:47:07 because i expected much more values Sep 01 17:47:25 adq: The library does a lot of nummeric integration. Sep 01 17:47:26 yeah, this might be more of an issue with your loop than your library Sep 01 17:47:49 haffe, profile your app Sep 01 17:47:52 in any case Sep 01 17:47:55 haffe: but you are calling an external library/function with each float.. what im trying to work out is what you really want to do is send all the floats over to the function as an array ref Sep 01 17:48:12 adq: they say they have Sep 01 17:48:19 Napalm: I don't think the library supports that. Sep 01 17:48:27 what library is it? Sep 01 17:48:30 what's the lib? Sep 01 17:48:32 lol Sep 01 17:48:37 adq: jfuzzylite Sep 01 17:48:38 i was about to ask the same thing Sep 01 17:48:42 ^^ Sep 01 17:48:46 problem number one Sep 01 17:48:51 the library name starts with J Sep 01 17:48:54 could be an xy-problem too Sep 01 17:48:57 :D Sep 01 17:48:59 we did not ask "why?" many times Sep 01 17:49:35 haffe: why not use their C++ version Sep 01 17:49:49 will be much more effecient and you can send it all the floats at once Sep 01 17:49:56 Napalm: I spent three days trying to get openCV running with the NDK. Sep 01 17:50:05 It ended with a mess. Sep 01 17:50:15 you were doing it wrong :D Sep 01 17:50:22 your project must be interesting if you use that lib, lucky you :) Sep 01 17:50:27 i would have thought, since they have a C++ version, that the java version would be a thin wrapper around that Sep 01 17:50:53 haffe: could you post your code? Sep 01 17:50:59 at least the loop? Sep 01 17:51:45 http://pastebin.com/4ThpugsE s73v3r Sep 01 17:51:47 haffe: https://github.com/fuzzylite/fuzzylite/pull/39 Sep 01 17:51:51 it already has NDK support Sep 01 17:52:49 haffe: loioks like theres some good advice on the forum aswell http://www.fuzzylite.com/forums/topic/how-compile-fuzzylite-5-0-for-android/ Sep 01 17:52:53 adq: There are 331397 floats in the array, and looking at a histogram there are a lot of them with the same value. < back to LUT thing, careful, because depending on the algo even if many values are the same contiguously the output result can be different (especially if it's a stream and value n depends on n-1) Sep 01 17:52:54 haffe: first, try switching the loop from a for-each style loop, to a traditional for(i=0; i++) style loop Sep 01 17:54:06 yes, be sure to "optimize" your for loop as s73v3r said, and use a local var for the length to avoid recomputation of the size every iteration, still this will make a minor improvement, not a major one Sep 01 17:54:47 yeah, unless that engine.process() call is really expensive, I don’t think there’s much else that can be done in the loop Sep 01 17:55:06 after profiling, if it's the lib which is the bottleneck, you would see that engine.process(); is probably the most consuming part Sep 01 17:55:08 by far i mean Sep 01 17:55:23 if not, problem. Sep 01 17:55:39 Ok, so how would I profile this? Sep 01 17:55:50 you said you did Sep 01 17:56:14 haffe, https://developer.android.com/studio/profile/android-monitor.html Sep 01 17:56:45 but personally, i still prefer using the old ddms traceview (only for cpu consumption, not for other things i want to profil like allocation) Sep 01 17:57:02 it's still good if you familiarize yourself with these tools, because it's a must Sep 01 17:58:19 s73v3r: I just did a simple long startTime = System.nanoTime(); long stopTime = System.nanoTime() before and after a call to engine Sep 01 17:59:39 haffe: add up all that time and divide it by your number of iterations and get the average time spent in your engine Sep 01 18:01:36 adq: he's using the jfuzzylite engine which is written totally in java, for this type of computation heavy work its bound to be the cause of his speed issues. especially as he's calling the engine for each float. only way he's going to see a performance gain is probably to switch to the ndk version. Sep 01 18:02:03 yep Sep 01 18:02:19 i was looking at the process method of Engine (just curious): https://github.com/fuzzylite/jfuzzylite/blob/master/jfuzzylite/src/main/java/com/fuzzylite/Engine.java#L233 Sep 01 18:02:49 and there isn't much going on, haffe be sure to disable debug mode of FuzzyLite too Sep 01 18:05:11 Hey :) Does anyone else have the problem that your apps get veeery slow and choppy on Nougat? It is running at constant 60fps on Marshmallow but on Nougat, it is veery slow Sep 01 18:05:59 Nope Sep 01 18:07:34 beatbrot: yes Sep 01 18:07:44 Do you have a solution Napalm? Sep 01 18:07:47 lol Sep 01 18:07:50 beatbrot: are you using TextureView, and/or Camera V1 API? Sep 01 18:08:23 Not myself, but maybe one of my libs...I can list you the libs I use if you want :) Sep 01 18:09:06 But now, I surely dont use any Camera APIs :) Sep 01 18:09:09 *no Sep 01 18:11:02 adq: I got some ideas to try. Sep 01 18:12:34 A 256 Sep 01 18:13:26 An 8-bit lut and then binning the floats should speed it up a lot. Sep 01 18:14:16 loaded an old project which uses RS... still some issue in the latest AS (just came back from holidays after few weeks) lol: http://imgur.com/a/mEnIz Sep 01 18:14:21 of course it builds and runs fine Sep 01 18:23:17 Are QR code used widely? Why the QR code scanners are not a tool that is pre-installed in Android smartphones? Sep 01 18:24:13 they are not pre-installed Sep 01 18:24:25 are they used widely, they're used, you'll see them pretty often Sep 01 18:24:28 thats what he said Sep 01 18:24:50 i have qr code app but i rarely use it Sep 01 18:25:26 For anyone who was wondering: Performance in Nougat got worse because I used a very large image and scaled it down which was fine on MM but didnt work well on N Sep 01 18:25:27 I use one on mine daily Sep 01 18:25:52 adq, I never count on the IDE for correct syntax highlighting Sep 01 18:26:11 For example, do you allow people to download your apps via QR code? Sep 01 18:26:14 :') Sep 01 18:27:04 Arancio, explain your issue so we can help you Sep 01 18:27:47 is https://developer.android.com/training/index.html from head to toe all I need to get started? Sep 01 18:29:18 adq: I have to plan a way to distribute my app to a selected set of people. I thought I could allow them to access a page on a website with a password and display a QR code so that they can download and install the app. After the installation the password becomes unusable. I was trying to understand if it's worth or not Sep 01 18:30:00 not worth it Sep 01 18:30:19 ^ Sep 01 18:30:31 you should use another way to deploy your app to a restricted group Sep 01 18:30:43 arancio: look into HockeyApp Sep 01 18:30:50 like creating an alpha/beta app (there are few docs about it online) Sep 01 18:32:46 Ok, rereading documentation. Sep 01 18:36:26 thanks pfn, adq and s73v3r Sep 01 18:37:15 wow such bad advice when searching this topic on google. So I want a date picker that does just years and only a small selection of years like 1950 - 2016, So i would have to customize this but oddly I dont know where to start. any advice Sep 01 18:37:32 I was thinking that my app will be very much dependent on a central server. So I can live with people having a copy of my app as long as they can't authenticate on the server. Sep 01 18:38:11 dar10s, https://android-arsenal.com/tag/27 find some inspiration there Sep 01 18:39:11 Arancio, but then you don't have to worry how you distribute your app, only how you authenticate your users in your app based on the server Sep 01 18:39:49 adq: yeah, that's what I meant. I didn't realize that before. Sep 01 18:40:00 the problem is simplified Sep 01 18:40:14 dar10s: isn't a "datepicker that does just years" a spinner? Sep 01 18:40:16 so android studio is always stand alone? Sep 01 18:40:21 @adq great Advice. seems loads better then any of my google results Sep 01 18:41:00 is the spinner even used in apps anymore ? i havent seen that since marshmellow Sep 01 18:41:31 yup, it's a basic view Sep 01 18:42:06 if you have lot of years like you described, it's probably not the view you want: https://developer.android.com/guide/topics/ui/controls/spinner.html Sep 01 18:42:23 I just found an application called mCent that gives you free of charge time to talk on the cell after testing applications on your phone. Try it: https://mcent.com/app/?mcode=1TS3I0&tcx=WAPP Sep 01 18:42:35 No, I don’t think I will Sep 01 18:42:40 why would I want to do that Sep 01 18:42:42 lol Sep 01 18:42:44 I can already talk on my phone for free Sep 01 18:42:44 bot Sep 01 18:42:46 boom Sep 01 18:43:07 And boom goes the dynamite Sep 01 18:43:32 Like this, right? For a user ban? Sep 01 18:43:38 yep Sep 01 18:43:52 o/ Sep 01 18:46:25 * pfn looks through for any more items to fix before releasing iota 2.0.0 Sep 01 18:46:54 how did you learn android dev? You downloaded android studio and followed a tutorial? Sep 01 18:47:05 read d.android.com Sep 01 18:47:11 be proficient in java first Sep 01 18:47:29 + there was no android stduio Sep 01 18:47:32 it was eclipse back in the day Sep 01 18:47:37 iidea Sep 01 18:47:59 I wrote all my android in vim back in the day Sep 01 18:48:03 I still do write a lot of it in vim now Sep 01 18:49:06 pfn: how do you compile it then? Sep 01 18:49:13 pffffffft, think about an app you would want to make and start building it, in parallel read the documentation and dev blog post & stuff and try to implement things, face challenges and solve problems Sep 01 18:49:16 using build tools, how else Sep 01 18:49:32 adq: ah Sep 01 18:49:36 there's ant, maven, sbt, gradle, and lein Sep 01 18:49:40 among many others Sep 01 18:49:44 there's buck, and bazel as well Sep 01 18:49:46 in 3 monthes, you will be pro-efficient in stackoverflow Sep 01 18:54:11 Creating a project. Why can't I chose a packagename without a . ? Can't just be 'something' but bust be 'something.somethingelse' Sep 01 18:54:22 pffffffft, package names must have a ., that is all Sep 01 18:54:29 pffffffft, again, be proficient in java Sep 01 18:54:55 you don't need a . in regular java. You can just call your package "anything" Sep 01 18:55:13 you clearly aren't proficient in java if you think doing that is correct Sep 01 18:55:44 I've never had a problem with that. We used to it like that at work Sep 01 18:55:54 work was wrong Sep 01 18:56:23 k, I'll look this up Sep 01 18:57:06 Packages don't need a . Sep 01 18:57:30 they don't, but you certainly should never (sic) be creating packages without a . Sep 01 18:57:39 especially for an application Sep 01 18:58:07 sounds more like philosophy than practicality Sep 01 18:58:54 you usually dev java (professionally) in confined environments, you don't mix up the half-life3 packet and dota2 packet in the same environment such that you need to address them separately Sep 01 18:58:55 it is absolutely a matter of practicality Sep 01 18:58:56 Ah, by package name you mean the manifest package Sep 01 18:59:10 yeah, don't do it there Sep 01 18:59:18 "dota2 packet" and "half-life3 packet" Sep 01 18:59:26 yeah, you do lots of professional java dev for half-life3 and dota2 Sep 01 18:59:31 best example ever... Sep 01 18:59:42 SimonVT: dont to what where? Sep 01 19:00:23 Manifest package might require it, I don't know Sep 01 19:00:41 In your code it's up to you Sep 01 19:02:40 oh right.. so it's an android-specific thing. I can well imagine that that's how the app "presents/name itself" in some regards Sep 01 19:03:26 https://developer.android.com/guide/topics/manifest/manifest-element.html#package Sep 01 19:03:55 It's your apps unique identity for all eternity Sep 01 19:03:55 and for the most part, no one in professional java dev uses a top-level package name only (except in very rare circumstances) Sep 01 19:04:07 doesn't seem to be a documeented requiremetn at least Sep 01 19:04:20 pfn, true Sep 01 19:04:27 not even Sun/Oracle used a top level package name only Sep 01 19:04:27 play store rejects apps that are misnamed in any case Sep 01 19:04:45 well, sun had sun.* Sep 01 19:05:03 and yes, oracle doesn't have oracle.* Sep 01 19:05:03 RxJava, Retrofit and OkHttp does it at least Sep 01 19:05:14 SimonVT, indeed, rare Sep 01 19:05:27 RxJava went all out with just "rx" Sep 01 19:05:32 do you have to own a domain to publish? Sep 01 19:05:36 no Sep 01 19:05:37 no Sep 01 19:05:52 you do need to own the domain to publish to maven central, if that's something you would like to do Sep 01 19:06:00 and it's recommended for bintray Sep 01 19:06:22 (jcenter) Sep 01 19:07:09 otherwise, any one that actually owns the name can come by and pre-empt everything you've published Sep 01 19:09:05 So this is just a recommendation (with google play in sight)? "To avoid conflicts with other developers, you should use Internet domain ownership as the basis for your package names (in reverse)." Sep 01 19:09:13 yes Sep 01 19:09:30 it's generally a recommendation across the entire java ecosystem Sep 01 19:09:40 but I can almost guarantee you, whatever reasoning you have for not following it, you’re wrong Sep 01 19:09:42 they got no problem with oiasdfhuawhef.dsfuasdhf.paintApp as package name? Sep 01 19:10:03 s73v3r: well, I don't have a domain :) Sep 01 19:10:16 doesn’t matter. that, and domains are cheap Sep 01 19:10:29 you’re going to want one if you plan on promoting your app Sep 01 19:12:27 I see, thanks Sep 01 19:23:38 pffffffft: I just registered pffffffft.com. If you want it, I'll be happy to sell it to you for 100$ Sep 01 19:23:57 lmao Sep 01 19:24:30 good bargain Sep 01 19:24:44 but i'll give you pfffffft.com for $70 Sep 01 19:26:15 sadly, that's how most domains are registered :D Sep 01 19:32:52 so different devices have different screen sizes. no standards nowhere. What does this mean to gamedevs? You just stretch the image or something? Sep 01 19:33:38 so you know how you can reference drawables in platform with @android:drawable/blah/blah/blah ? Sep 01 19:34:03 Is it possible to use my own package instead of @android? I'm looking to separate some resources from the main apk. Sep 01 19:40:09 I'm trying to send data fast from android to a ubuntu box on the same wireless network. What should I use? Sep 01 19:42:01 codepython777: is that a dev question? Sep 01 19:42:22 pffffffft: i am hoping someone who has developed on android would know the answer? Sep 01 19:42:46 you didn't even answer my question Sep 01 19:42:58 yes Sep 01 19:43:24 I'm currently opening a socket and pushing data, but have to pack/unpack Sep 01 19:43:29 I am looking for a better solution Sep 01 19:44:16 that's as fast as it gets. The ultimate limit lies in the wifi. Sep 01 19:44:41 if your app spends more time on packing/unpacking than sending, you're packing too much. Sep 01 19:45:00 the "better" answer depends entirely on where your bottleneck is. Sep 01 19:46:19 don't add 1 byte at the time to the TCP-stream, add large chunks. The TCP/IP protocol foremost, and your network lib should "optimize" the speed it's sent as long as it always have something to send. Sep 01 19:46:48 if you want better than that you'll have to go low level, or do compression better in terms of your context Sep 01 19:47:43 always keep the TCP-stack full and the wifi-hardware will be used to its "full" potential Sep 01 19:48:24 could be that your io is poorly done. You read() then send() then read() and repeat Sep 01 19:48:36 who knows, you're not very helpful. Sep 01 19:55:24 Hello Sep 01 19:55:45 Hum, can you tell me why a SurfaceView, wheter it takes all the screen or not is in a so poor quality ? Sep 01 19:56:09 For my nvidia shield, the resolution of the view is 557x281... Sep 01 20:00:22 when I play clash of clans it seems like they only pause for like 2+ minutes when you switch to a different program, rather than stopping Sep 01 20:00:45 hiho Sep 01 20:00:57 is that just getting rid of onstop and only onpausing Sep 01 20:01:08 then inside of onpause call your own stop code after a while? Sep 01 20:01:13 is there an material tableview or should I style the table by myself? Sep 01 20:11:32 Damn android ^^" Don't understand the resolution issue Sep 01 20:23:19 Anyone recommend a good android boilerplate for a small app? Sep 01 20:23:35 Hogofwar: android studio has templated projects to help you get started Sep 01 20:23:41 they compile out of the box Sep 01 20:23:53 Ah, i'm using intelliJ Sep 01 20:24:01 Same thing, I know, but don't think it includes those Sep 01 20:24:19 so download Studio, create the project, and then open it in Intellij Sep 01 20:24:24 Fine enough Sep 01 20:32:45 ah, i think the templates are already in intellij Sep 01 20:53:59 k.. so all apps I run on the device gets installed. Btw, you use the emulator for the most part and then try it on the device just to QA it? Sep 01 20:56:01 most of us use devices all the time. it’s faster Sep 01 20:57:15 i use a mix and usually find the emulator faster actually. probably depends on your pc. Sep 01 20:58:07 I can just imagine that it's faster to start the emulator than installing it on the device. But I haven't got that for yet Sep 01 20:58:30 the emulator is notoriously slow Sep 01 20:58:54 the new one is supposed to be better, but those of us who don’t use it were bitten back in the day Sep 01 20:59:48 the "only" software platform for end users used to be windows. It's so mixed now. It was enough to only use Winapi back in the days. Now it's Android, iOS, Windows, blackberry, Mac is a lot more popular now, and linux has gain more popularity as well. Sep 01 20:59:55 oh god Sep 01 21:00:06 it’s great, isn’t it Sep 01 21:00:21 because the built in emulator was so slow, i used to use device all the time, now I find myself using genymotion for most dev and then using device Sep 01 21:00:40 Napalm if emu gets BLE i'd do that too Sep 01 21:00:47 man i hope we get aosp RPi3 soon Sep 01 21:00:50 s73v3r: well, yeah, but harder for the devs to "know everything" Sep 01 21:00:56 g00s: aosp? Sep 01 21:00:58 they shouldn't Sep 01 21:00:59 the new built in one does.. doesnt it? Sep 01 21:01:06 g00s: ^ Sep 01 21:01:13 Napalm nope not yet Sep 01 21:01:25 s73v3r: why shouldn't they? Sep 01 21:01:28 the issue is active and people are talking about it though Sep 01 21:01:53 cause there’s just too much, that anyone who tries is going to fail miserably, and not have the depth of knowledge that would make them useful Sep 01 21:02:19 someone who’s an embedded systems person, why would they need to know about Javascript? Sep 01 21:04:00 s73v3r: because they're a nerd :3 Sep 01 21:04:12 again, far too much Sep 01 21:04:56 now they’re spending their off time learning javascript and web development. When are they going to learn kernel development? Sep 01 21:05:04 s73v3r: the elite knows lot about everything it seems though, the anonymous guys in black suits who works for three letter agencies Sep 01 21:05:14 nope Sep 01 21:05:19 I see your point though Sep 01 21:05:45 they know about security and vulnerabilities. they might be able to break an app, but they’d likely not be able to build one Sep 01 21:06:05 at least not without learning how first Sep 01 21:06:34 Well, I think I'll continue to work with a 500x300 screen resolution on my tablet... Sep 01 21:06:57 s73v3r: but you can know something about everything though? Sep 01 21:07:13 possibly, but it’s a fools errand to try Sep 01 21:07:44 just focus on those areas that interest you Sep 01 21:08:03 I suppose :). Best advice so far Sep 01 21:08:18 problem with me though is that I have so many interests Sep 01 21:08:28 so rank them and pick one or two Sep 01 21:08:34 https://www.facebook.com/notes/kent-beck/paint-drip-people/1226700000696195 Sep 01 21:08:58 D: but I want to learn ARM + electronics + crytography + a lot more :( Sep 01 21:09:07 so do that Sep 01 21:09:13 :D Sep 01 21:09:53 there’s only 24 hours in a day, and as you get older, there will be more and more things that will take up those hours Sep 01 21:09:53 pffffffft this isn't a life coaching chanel Sep 01 21:10:07 g00s: yeah, I just stopped myself from asking further questions Sep 01 21:10:22 pffffffft as they say, code or stack trace, or gtfo :) Sep 01 21:10:27 * pffffffft lifechoarches g00s Sep 01 21:10:46 life coaches* Sep 01 21:12:43 is it normal for the USB-debug thing to pop up every 5 min on your phone? (could be my lurking around in android studio that keeps reconnecting it) Sep 01 21:13:22 or unstable usb cable Sep 01 21:14:58 I have a really weird issue...I wrote an api in php for mysql. When I visit the url via the web browser I see the data that I echo out. However, when I visit it in android I don't. I see instead only strings that I have hard coded to echo Sep 01 21:15:06 Anyone know what might be going on? Sep 01 21:15:25 * g00s always stops reading at 'php' Sep 01 21:15:41 g00s: Well it's something specific to android though... Sep 01 21:15:55 :c Sep 01 21:16:02 * amazoniantoad starts to tear up Sep 01 21:16:07 * amazoniantoad starts to sniffle Sep 01 21:16:18 * amazoniantoad bursts out crying Sep 01 21:16:23 WHY DO YOU HATE ME?! Sep 01 21:16:28 php Sep 01 21:16:34 amazoniantoad: that's like trying to answer "hey, I've got some code and setups but it doesn't work, what's wrong" Sep 01 21:17:26 pffffffft: I'm asking where you guys think I should start conceptually. I mean if code resolves fine in the web browser and not on android. What should I start looking into? Sep 01 21:17:44 define “not on android" Sep 01 21:17:58 are you saying in an app? or in android’s web browser? Sep 01 21:18:19 Ahaha, you are not alone don't worry ^^ Sep 01 21:18:19 s73v3r: Strings I have hard coded to echo out, such as html tags. Are "seen" on android. But not the data Sep 01 21:18:26 s73v3r: in the app I'm writing Sep 01 21:18:51 and how are you trying to get those? Sep 01 21:19:07 keep in mind that if you’re doing an api, you’re not going to be writing out html tags Sep 01 21:19:28 s73v3r: I resolve the data in the web page. Well, it's a really bad API then. This is my first time trying it and I want to see if this works Sep 01 21:19:41 It's nothing critical or that needs to be kept secret so it's fine Sep 01 21:20:11 Plus the server runs on my intranet Sep 01 21:20:14 Why getWindowManager().getDefaultDisplay().getSize(screenSize); Sep 01 21:20:23 returns 557x320 ? Sep 01 21:20:42 s73v3r: I don't understand, are you making sense of what he's saying? I'm not at all Sep 01 21:20:45 so you need to go redo your api Sep 01 21:20:59 s73v3r: You think I should start there? Sep 01 21:21:01 Okay Sep 01 21:21:03 Thanks Sep 01 21:21:17 amazoniantoad: ##programming, they love php Sep 01 21:21:22 your app should be making GET and POST requests, and the data should just be transferred there Sep 01 21:21:22 pffffffft: I hate php Sep 01 21:21:28 It's the devil's language Sep 01 21:21:37 so why not do ruby or python or go or any number of other languages? Sep 01 21:21:38 yes Sep 01 21:22:03 s73v3r: I thought I needed to learn php better Sep 01 21:22:09 spaceX explosion destroys Facebook satellite ... bwahahaha Sep 01 21:22:11 I hate it but I need to be compitent in it, at least. Sep 01 21:22:16 do you? Sep 01 21:22:22 Good luck ^^ Sep 01 21:22:29 do you plan on taking many PHP jobs in the future? Sep 01 21:22:51 s73v3r: Maybe. Idk. Well, I could. I'm still in school so that's still an option. Though I really just love python and c# Sep 01 21:22:53 Hello Sep 01 21:22:57 Java is okay too Sep 01 21:22:58 I am trying to use androidstudio for my first app Sep 01 21:23:04 I like it way better than php Sep 01 21:23:05 Now Im in the xml editor and wanna drag a button onto the view Sep 01 21:23:11 But nothing happens when i drag it in Sep 01 21:23:16 aswell the cursor shows the "X" Sep 01 21:23:27 Xatenev: just use the text editor Sep 01 21:23:29 amazoniantoad: you don’t have to learn php if you have no intention of working in it Sep 01 21:23:34 orbyt_: So i cannot drag it in there? Sep 01 21:23:46 Xatenev: do you have a linearlayout or relativelayout? Sep 01 21:23:48 You just said you cant Sep 01 21:24:04 s73v3r: I could though. At some point in time. I don't want to apply for a job and be asked to work on a project and not be able to Sep 01 21:24:05 Umm let me check Sep 01 21:24:26 IDK lol i picked some example Sep 01 21:24:32 coordinatorLayout is on top Sep 01 21:24:38 design.widget.AppBarLayout whatever that is, Sep 01 21:24:54 amazoniantoad: most will be up front about what you’d be working in Sep 01 21:25:06 amazoniantoad: nobody hires php devs; they want java, c#, etc Sep 01 21:25:08 * Gaulois94 would never know why android scale my application Sep 01 21:25:12 and you can tell them you don’t know PHP, but would be willing to learn Sep 01 21:25:31 hi is there an online tool to fing all google play apk from a same signature id Sep 01 21:25:37 p14nd4: Oh. Good thing I don't know it that well lol Sep 01 21:27:09 amazoniantoad: take a look at job postings for a few weeks; see what's out there, what people are looking for, what sounds interesting to you, etc Sep 01 21:28:27 but pro tip: do an internship (or more), and/or contribute to some opensource project, and/or have a public github with your own projects Sep 01 21:34:33 Thanks for the advice guys Sep 01 21:35:29 yes, have github with your projects Sep 01 21:35:42 and preferably, google play accounts with some apps Sep 01 21:36:03 that’s the bigger one, if you’re going for an app dev job Sep 01 21:41:54 * Gaulois94 Give up Sep 01 21:44:11 so.. I chose a "main activity screen" and I magically get a basic GUI. I can add menus etc as well. Drag-and-drop GUI. In windows and visual studio, I know what's going on behind the scene: there are a set of GUI-systemcalls and native gui-libs behind the scene, which visual studio use to implement all the drag-and-drop stuff. But android is different? All this XML-parsing and all that directly corresponds to the GUI is somehow native? Sep 01 21:49:34 "The recovery in Samsung Electronics Co Ltd’s mobile business suffered a blow on Thursday as reports of exploding batteries forced the firm to delay shipments of Galaxy Note 7 smartphones, and knocked $7 billion off its market value." Sep 01 22:03:26 Today morning somebody posted me a cool page Sep 01 22:03:31 with a big list of plugins available for android dev Sep 01 22:03:37 Android-idkWhat.com Sep 01 22:04:16 Maybe anybody knows waht I mean ;o Sep 01 22:06:03 https://android-arsenal.com/ Sep 01 22:06:11 Yea thats it! Sep 01 22:06:12 thanks Sep 01 22:21:55 omfg.. the emulator just won't work. Is it okay if it works on the one device I can execute it on? Sep 01 22:32:56 no one uses the emulator Sep 01 22:33:01 except to test a version they don't have Sep 01 22:33:09 In the XML, how do I link my image xD? Sep 01 22:33:16 like i have app:cub_icon="@drawable/iconCancel" Sep 01 22:33:31 and then What is the path here? lol i cant google that. Sep 01 22:36:57 got it Sep 01 22:43:34 I actually started using the emulator as my primary development target just a month or two back Sep 01 22:44:19 Its much improved from what it used to be, but still far away from "good". But man, too many man-hours are spent on people waiting for their app to deploy on real devices Sep 01 22:45:25 yeah, but too many man-hours were spent on people waiting for the emulator to respond Sep 01 22:45:39 pfn: at some point you have to test versions you have (older ones) don't you? Sep 01 22:46:02 s73v3r, really? In the past month i havent had that problem Sep 01 22:46:21 pfn: *that you don't have* Sep 01 22:46:22 i remember it used to be a problem. Hell, even getting the emulator to even start would be a magical moment. Sep 01 22:46:28 i haven’t used it in a long time, but even the new and improved one runs like crap on OS X Sep 01 22:46:35 Now? Im not so sure anymore Sep 01 22:46:37 plus, bluetooth Sep 01 22:46:43 pffffffft, so use the emulator when you need to do that Sep 01 22:46:59 haha, doesnt matter if you do bluetooth on a device or on an emulator. In android, neither works Sep 01 22:47:05 :P Sep 01 22:47:09 true dat Sep 01 22:47:31 pfn: but it isn't working :p. So I have to do without it. But I really need it don't I, to test the app on various android versions and sizes before release? Sep 01 22:48:00 let your users test :p Sep 01 22:48:17 bad pfn, bad! Sep 01 22:48:24 says you Sep 01 22:48:25 of course you should test before release Sep 01 22:48:38 i dont, but you definitely should :P Sep 01 22:48:41 no one that develops independently can afford. to have complete test coverage Sep 01 22:48:52 that doesn’t mean you should half ass it Sep 01 22:49:03 hey guys, when is inflateContentView called in regards to onCreate? Sep 01 22:49:06 and considering most people asking for advice here: they'll be lucky to get 10 downloads Sep 01 22:50:14 anyone know? Sep 01 22:50:40 s73v3r: as a to-be game-dev I'll have to assume that the users have various random screen sizes. So I need to test with the emu since I only have 1 device. There's no workaround here except getting the emu to work or getting another device? Sep 01 22:50:47 if you have a hard time getting the emulator running, I imagine you'll have a hard time writing an app worth using Sep 01 22:51:17 pffffffft: pretty much. Sep 01 22:52:02 I have a hard time getting the emulator running sometimes :( Sep 01 22:52:51 either haxm wont load, or the emulator will try to boot up and get stuck on a black screen.... lots of fun things can happen Sep 01 22:59:43 when is inflateContentView called in regards to onCreate? Sep 01 23:00:28 what? Sep 01 23:01:20 my bad, I mean onCreateView and onCreate Sep 01 23:01:40 is it at all possible that some code in onCreateView is executed before onCreate? Sep 01 23:01:40 I can ask again - what? Sep 01 23:01:59 have you looked up the activity lifecycle? Sep 01 23:02:13 this would be the fragment lifecycle Sep 01 23:02:37 err, yeah Sep 01 23:03:05 what do you mean eemgr Sep 01 23:03:10 https://developer.android.com/guide/components/fragments.html Sep 01 23:03:22 go there, find the section called "creating a fragment" and look at the big diagram Sep 01 23:03:50 you'll want to make sure you understand that for fragments and activities if you're just starting out Sep 01 23:05:42 I understand the fragment lifecycle, I'm just trying to debug a possible race condition I have Sep 01 23:05:55 hence my question, is it at all possible that onCreateView can be executed prior to onCreate Sep 01 23:06:59 no Sep 01 23:07:11 are they run sequentially, sometimes in tandem, or are there cases where only onCreateView is called Sep 01 23:07:31 what is your problem? Sep 01 23:08:01 weird stuff is happening that shouldnt be happening, and I'm trying to figure if its due to a race conditon Sep 01 23:08:20 might be device specific, which is why im checking to see if its possible for some oncreateView code is executed prior to onCreate Sep 01 23:08:24 are you able to set some breakpoints and see when things are firing off? Sep 01 23:08:40 I already know on my device it works fine Sep 01 23:09:26 basically I have a form which some users are getting past, despite every field being required Sep 01 23:09:49 how are you checking that each field is required? Sep 01 23:09:59 or that each field has been filled in Sep 01 23:10:26 by checking against all the form items I've added to a list Sep 01 23:10:36 not null or empty basically Sep 01 23:10:59 but I add the form items in onCreate and only set the form items in onCreateView Sep 01 23:11:03 it seems odd that this would manifest itself in oncreateview, unless your view isn’t getting created Sep 01 23:11:21 how do you add the form items? Sep 01 23:11:22 so if the oncreateview code is executed before onCreate is finished, I wouldnt have any form items, hence validation not being performed and user can continue to next screen without filling out info Sep 01 23:11:32 cause you shouldn’t have a view before onCreateView Sep 01 23:11:36 add them to a list in oncreate Sep 01 23:11:43 how exactly Sep 01 23:11:57 literally add thjem to a member variable arraylist Sep 01 23:11:59 are you using the view items? Sep 01 23:12:02 the form items are classes Sep 01 23:12:04 not views Sep 01 23:12:09 no, i mean paste an actual line you’re using Sep 01 23:12:17 1s Sep 01 23:12:25 so how are those form items related to your views? Sep 01 23:13:34 I creat ethe calsses in oncreate Sep 01 23:13:50 and then create a fragment in oncreateview (form fragment) and set the form items right after Sep 01 23:13:59 ? Sep 01 23:14:11 you create a fragment in a fragment’s onCreateView? Sep 01 23:14:19 yes, inner fragment Sep 01 23:14:29 should that be done in oncreate Sep 01 23:14:42 seems like there's another emulator than qemu in android studio. Can you chose to use that one instead? Sep 01 23:14:48 some would say it shouldn’t be done at all, due to issues with nested fragments Sep 01 23:14:57 hm Sep 01 23:14:58 but i don’t think that’s your problem Sep 01 23:15:07 pffffffft: have you tried genymotion? Sep 01 23:15:23 i would do all this work in onCreateView, so you can definitely associate those items with your fragment views Sep 01 23:15:43 so youre saying it is possible for the code to not be executed sequentially? Sep 01 23:15:55 i’m saying it’s possible you’re missing one Sep 01 23:16:45 this sounds rather complex for something as simple as a form Sep 01 23:17:00 I re use forms alot Sep 01 23:17:08 thats why I hav e a modular/extensible form frgment Sep 01 23:17:18 where I can add different types of form items Sep 01 23:17:29 so why isn’t the activity doing this? Sep 01 23:17:49 activity is probs a bit overloaded in retrospect Sep 01 23:17:56 so thats why Sep 01 23:18:19 i iterature through all the forms with tht activity Sep 01 23:18:23 when they complete one I go to the next Sep 01 23:18:23 etc Sep 01 23:18:56 you’d have to post the code, then Sep 01 23:22:12 is there a simple way to create a junit4 test case that is asynchronous? Such that I need to make a method call of some sort to notify the test runner when the test is done in a success/fail scenario Sep 01 23:32:45 I figured it out, nvm Sep 01 23:48:58 This is my OS fault and has nothing to do with my app? http://pastebin.com/DrPie0qm Sep 01 23:50:31 yay for X11 Sep 01 23:50:58 wish I had time to make my own OS and fix all those problems Sep 01 23:52:13 and introduce a thousand others Sep 02 00:09:58 pffffffft: don't worry. As soon as you'll become a millionaire with Android development, you'll have plenty of free time to work on your operative system Sep 02 00:32:50 uhmn.. what the fuck.. what is the emulator connected to? called the international emergency number 112 in the emulator Sep 02 00:33:11 got to some brazillian emergency call center. I'm not in brazil Sep 02 00:33:37 * pffffffft is heavily confused Sep 02 00:35:32 why are you dialling numbers in the emulator? Sep 02 00:44:27 huh? you can't make calls from the emulator Sep 02 00:45:39 :3 I was just trying to be funny. Backlashed Sep 02 00:45:59 -.- Sep 02 00:46:07 getting keyboard control in the emulator is tricky though, no? Sep 02 00:46:19 seems to respond sometimes and sometimes not Sep 02 00:46:30 pffffffft: you are funny just as you are. That's why we love you. Sep 02 00:46:37 :D Sep 02 00:47:10 no need to try to be funny on purpose Sep 02 00:48:09 you basically perspire fun Sep 02 01:39:34 Hey , I was going through android docs , Why R.array folder is hidden , and can u guys me an example of value in R.arrays? Sep 02 01:39:42 Can't find on google Sep 02 01:53:15 killer: http://stackoverflow.com/questions/2453989/help-in-getting-string-array-from-arrays-xml-file Sep 02 01:54:33 killer: is that what you were looking for? Sep 02 01:55:10 Arancio: Looks like , but will have to test . Thnx Sep 02 02:22:18 Hello, is it better to use a webserver or a vserver for a mysql database in my app? Sep 02 02:49:33 your question makes no sense, you should never connect to dB directly from client Sep 02 02:50:02 presumably your vserver would run a web server... Sep 02 02:59:07 pfn: I'm not at all saying that it's not correct but WHY you should never connect to a dB from a client? What about firebase? **** ENDING LOGGING AT Fri Sep 02 02:59:58 2016