**** BEGIN LOGGING AT Sun Mar 22 02:59:58 2015 Mar 22 03:02:02 Anthaas: http://www.amazon.co.uk/Refactoring-Improving-Design-Existing-Technology/dp/0201485672 Mar 22 03:02:14 If you can get ahold of it check it out. Mar 22 03:02:35 I'd love to, but I really can't afford that. Mar 22 03:02:39 My PhD is self-funded. Mar 22 03:04:37 Aww, okay. You could post stuff here for feedback, in any case. Mar 22 03:04:53 If you're just putting everything into MainActivity, you'll be creating a monster class that's actually seven classes in one. :D Mar 22 03:07:23 i want to start drawing something on a custom view when should i start making invalidate calls? Mar 22 03:07:26 onAttachedToWindow? Mar 22 03:07:57 Yeah. Ive always done the usual encapsulation. Just I've always put view logic into activity etc. Mar 22 03:08:42 hi all, anyone available for a quick question? Mar 22 03:09:05 MVVP > MVC in android Mar 22 03:09:11 I'm fairly new to Android, trying to create an Intent and use putExtra() to put a 'File' type as an extra Mar 22 03:09:37 i'm having trouble retrieving the 'File' on the receiving Activity - there is no getFile() function Mar 22 03:09:46 how exactly do I retrieve a nonstandard Extra? Mar 22 03:10:36 Serialzable / Percelable Mar 22 03:10:43 Parcelable* Mar 22 03:10:46 just put string to file Mar 22 03:10:48 so getParcelable Mar 22 03:10:53 then do new File(path) Mar 22 03:11:02 Make sure File is parcelable though Mar 22 03:11:09 so like Mar 22 03:11:10 file = (File) bundle.getParcelable("file"); Mar 22 03:11:14 Or that ^ pass the string path of the file and recreate the other side. Mar 22 03:11:28 how do i ensure File is parcelable? first time running across this parcelable Mar 22 03:11:41 just use the string to the path Mar 22 03:11:45 don't worry about parcelling it Mar 22 03:12:10 lasserix sorry, not sure what you mean? Mar 22 03:12:21 you have a File object? Mar 22 03:12:28 yeah, the key in the intent is 'file' Mar 22 03:12:35 the key is a string Mar 22 03:12:38 right Mar 22 03:12:43 and the value is? Mar 22 03:12:48 a "File" object? Mar 22 03:12:51 correct Mar 22 03:12:57 then just path the path to the file Mar 22 03:13:00 as a string as the value Mar 22 03:13:07 and do new File(path) on the other side Mar 22 03:13:15 ohh Mar 22 03:13:19 that's a lot easier Mar 22 03:13:54 so: Mar 22 03:14:00 intent.putExtra("file", fileList[position].getAbsolutePath()); Mar 22 03:14:25 then just create a File(intent.getStringExtra("file"); on the other end Mar 22 03:14:39 more or less yeah Mar 22 03:14:45 awesome! that was really simple, thanks Mar 22 03:14:58 lasserix I'm taking the Coursera course for android programming Mar 22 03:16:33 cool Mar 22 03:17:01 lasserix yeah, it's neat. very well-paced for someone with a degree in SE Mar 22 03:17:19 When is the first time you can call invalidate on a view? Mar 22 03:17:22 *the earliest Mar 22 03:17:43 * YJLTG fires up the googles Mar 22 03:17:49 =\ Mar 22 03:18:12 i'm pretty novice at this, heh Mar 22 03:18:23 after the view has been drawn? Mar 22 03:19:24 ahh i guess that works Mar 22 03:19:41 was that a quiz or a question Mar 22 03:20:41 no Mar 22 03:20:50 Question: Mar 22 03:21:05 No matter where I read, I never seem to understand this, what is a delegate? Mar 22 03:21:11 delegate class/function, whatever. Mar 22 03:21:23 What are they, what are their purpose, when should I use them, etc? Mar 22 03:21:48 Every explanation I've read seems to be from someone repeating something they've heard but not understood. Mar 22 03:22:26 a delegate is something responsible for doing something in response to some event Mar 22 03:23:42 A Listener? Mar 22 03:23:53 e.g. OnClickListener? Mar 22 03:24:00 in java yea Mar 22 03:25:17 So, when I read (from that refactoring website): "Replace delegation with inheritance" Mar 22 03:25:39 Could you reword that without delegation so it makes sense? Mar 22 03:26:03 whats the best way to get rid of this green highlight on focus? Mar 22 03:26:07 http://imgur.com/3PyI5Dx Mar 22 03:26:25 i dont know what website you mean but the problem about that is java you only have single inheritance Mar 22 03:26:42 or rather change it from green Mar 22 03:27:27 TacticalJoke: you here? Mar 22 03:27:38 DadFoundMy: in themeing it is something like commandControlColor Mar 22 03:27:45 but i'd recomend using MaterialEditText library Mar 22 03:27:54 delegate = hand off responsibility to something else Mar 22 03:27:55 or you can use a selector to draw your own backgrounds Mar 22 03:28:18 to delegate = public void f() { someoneelseIdelegateshitto.f(); } Mar 22 03:28:24 as an example Mar 22 03:28:48 Ahhh I see. It seems that all classes are a delegate of sorts then? Mar 22 03:28:55 Otherwise everything would be one huge class. Mar 22 03:29:22 not exactly Mar 22 03:29:24 well, there's a delegation pattern Mar 22 03:29:31 simply calling other methods isn't delegation Mar 22 03:29:33 that's just normal work Mar 22 03:29:35 delegation is defering what you do Mar 22 03:29:55 a wrapper class, is typically a delegation pattern Mar 22 03:30:54 Ahh, so if for example, I want an ArrayList of int, but int isnt an Object, I let Integer determine how to control me as an object (back by an int field, and perform whatever operations on that through Integer) Mar 22 03:30:55 android.content.ContextWrapper is an example of delegation Mar 22 03:31:01 i.e. delegate the work on how to handle it. Mar 22 03:31:04 it delegates all calls to the wrapped Context Mar 22 03:31:47 autoboxing is probably not strictly delegation Mar 22 03:32:06 autoboxing is not delegation Mar 22 03:32:17 but your logic is on the right track Mar 22 03:33:26 Hmm Mar 22 03:33:28 Anthaas: http://homepages.ius.edu/RWISMAN/C490/html/Android-Delegates.htm Mar 22 03:33:35 Could a delegate be used then to simplify an API? Mar 22 03:33:53 Or would that just be left to proper encapsulation/information hiding? Mar 22 03:33:54 Anthaas: your previous remark about click listener being a delegate is correct Mar 22 03:34:13 the whole point is defering functionality to be determined at run time Mar 22 03:34:17 some languages like C# have direct support for delegate, and you can chain them Mar 22 03:34:30 which is pretty cool, += ftw Mar 22 03:34:58 Yeah, I have heard C# people and Obj-C people talk about delegates a lot Mar 22 03:35:14 I know with Eclipse, alt+shift+s allows you to create delegates. Mar 22 03:35:48 Anthaas: java doesn't have delegates Mar 22 03:35:55 though you can implement a delegate pattern Mar 22 03:35:59 which is like onclicklisteners Mar 22 03:37:23 so delegates are implemented with interfaces in java which is why your comment about replacing delegation with inheritance is maybe not as applicable in java, since java doesn't support multiple inheritance Mar 22 03:38:05 Ahh ok Mar 22 03:38:08 in fact you'd achieve delegation through composition Mar 22 03:38:38 one other key about delegation is that it is supposed to be type safe: that is the delegating class and the delegated class shouldn't care about eachother Mar 22 03:38:48 Similar to how the Decorator pattern alters functionality then? Mar 22 03:39:14 Also doesnt care as you can hold an object of the type of interface that it is a concrete implementation of? Mar 22 03:39:44 I think I understand Mar 22 03:39:49 I think the name just confuses me Mar 22 03:40:08 *more like facade than decorator Mar 22 03:40:46 So with delegation, I might have a class that uses functionality of 2 different classes, and because you cant inherit them both, you make one a component of another, and subclass the third? Mar 22 03:41:19 one class will delegate functionality to some other interfaces Mar 22 03:41:31 this is called composition Mar 22 03:41:53 I thought composition was where one class had an instance of another inside it? Mar 22 03:42:03 Obviously this allows it to call its methods Mar 22 03:42:39 right, but with an interface you can also is a Mar 22 03:42:52 but you can also has a interface so... Mar 22 03:43:14 anyways thats kinda besides the point, just comes down to one class delegates functionality to someone else Mar 22 03:43:23 Yeah, I think I understand now Mar 22 03:43:32 Thank you for taking the time to explain to me :-) Mar 22 03:43:38 the whole point being you defer execution Mar 22 03:44:14 for instance, a view class doesn't delegate measuring itself, but could delegate a touch event Mar 22 03:45:49 So it is good encapsulation of functionalities then, really. Mar 22 03:46:23 Ok, you could have the view class handle its own touch events, but a better design would be to have a class handle all that for it, and then allow developers to specifically handle the class that only deals with touch events Mar 22 03:46:30 Maybe another class for view modification etc. Mar 22 03:46:43 the only better is to defer Mar 22 03:47:08 since what if touches are simple like just a click? Mar 22 03:47:20 however if you are doing some kind of drag / fling scroll event. Mar 22 03:47:42 but again the point is you want to defer the responsibility of functionality Mar 22 03:47:53 eg, let someone else figure out how to implement it Mar 22 03:48:08 Ahhhh Mar 22 03:48:13 I see Mar 22 03:48:19 the more your code does that, the easier it is to work with Mar 22 03:48:20 In the same way that it is a good idea to propogate exceptions Mar 22 03:48:26 yeah Mar 22 03:48:33 And let the caller handle it, rather than trying to deal with all exceptions as they happen Mar 22 03:48:56 yeah Mar 22 03:49:20 So the idea of a delegate is to defer functionality for someone else to decide how it should do whatever it needs to do. Mar 22 03:49:41 more than just describe Mar 22 03:49:50 decide* Mar 22 03:49:55 oh my bad Mar 22 03:49:56 heh Mar 22 03:49:59 yeah exactly Mar 22 03:50:11 GOing back to OnClickListeners, I know that a click event happened, and I can do whatever I need to do now I know, but the specifics of what happens when that event happens is for someone else to decide. Mar 22 03:50:15 Makes complete sense. Mar 22 03:50:41 right, so for instance a button changes its view state based on the selector but also lets whoever is handling that click event do its thing Mar 22 03:50:50 Anthaas you might like this http://www.objectmentor.com/resources/articles/inheritanceVsDelegation Mar 22 03:51:23 different ways to skin the same cat Mar 22 03:51:27 Thanks g00s_ Ill give that a read now. Mar 22 03:51:53 Im liking the Strategy pattern, Factory pattern, Visitor pattern, and this Delegate pattern now. Mar 22 03:53:05 lasserix: Yeah that makes sense, I can recognise the event has occurred, but the details of the event and what happens with it can be passed elsewhere. Mar 22 03:54:59 cant believe google recomends NOT using enums in android Mar 22 03:55:02 totally a bust Mar 22 03:55:07 How come? Mar 22 03:55:31 lasserix: It's no longer applicable. enums are fine unless you're writing very performance sensitive code Mar 22 03:55:38 Would they just use public final fields instead? Mar 22 03:55:58 static final* Mar 22 03:55:59 enums are so well done in Java it's hard to stay away from them Mar 22 03:56:05 CedricBeust i was just reading some dianne H post recently where she still doesn't like enums heh Mar 22 03:56:17 g00s_: She's talking from a library/OS perspective Mar 22 03:56:46 one would think but ... i didn't get that impression Mar 22 03:57:03 The good news is that even if you want to stick to int fields, there is support in Android Studio to verify the soundness of what you're doing (e.g. AS won't let us specify a random integer there) Mar 22 03:57:03 cant find the g+ post now Mar 22 03:59:19 AS studio keeps missing the 'local used by inner class, must be declared final scenario" Mar 22 03:59:25 then i go to compile and it underlines Mar 22 04:01:23 anonymous inner class Mar 22 04:06:27 Right guys, thank you all for the help understanding delegates. Im off, its late/early and Im tired haha. See ya! Mar 22 04:07:19 CedricBeust https://plus.google.com/105051985738280261832/posts/YDykw2hstUu Mar 22 04:07:30 she's still talking about apps Mar 22 04:07:56 coool, This popped into Hackernews again... "Java is Pass-by-Value, Dammit!" http://javadude.com/articles/passbyvalue.htm Mar 22 04:08:03 heh yeah i saw that Mar 22 04:08:17 instead of fussing over enums they could have just given us a better runtime haha Mar 22 04:08:35 will the controversy ever die :p Mar 22 04:08:47 xamarin vm smoked dvm even with a stupid automated translation of java to c# Mar 22 04:09:20 capella-s3 i miss pass by reference, pointers, etc from c++ :D Mar 22 04:09:40 g00s_: Yes, but trust me, it's very unlikely that enums will ever pop up in a profiler dump Mar 22 04:09:53 int foo x (const Bar& thing) -- we all knew thing was immutable Mar 22 04:11:00 CedricBeust i have far worse things going on , trust me :D :D Mar 22 04:11:11 Pass by reference encourages side effects, I'm glad it's not an option in Java Mar 22 04:11:12 enums are least of my worries ;) Mar 22 04:11:40 g00s_: That's the spirit :) Seriously though, it's important to be aware of it and equally important not to blow it out of proportions Mar 22 04:13:30 dianne would have an aneurysm if she knew how much devs like rx and what that does Mar 22 04:18:46 g00s_: I bet she would, yes Mar 22 04:18:52 but Rx is very hard to resist Mar 22 04:19:47 g00s_: I imagine how she'd feel if on top of using Rx, she knew I'm using Rx and Kotlin :) Mar 22 04:19:54 haha Mar 22 04:20:16 https://play.google.com/store/apps/details?id=com.randompod.isdeviceoff Mar 22 04:20:17 lol Mar 22 04:21:17 i wonder if that sort of thing would pass apple submission Mar 22 04:30:17 <_genuser_> ugh google, great thinking on google+ Mar 22 04:31:29 <_genuser_> apparently you create a google+ page under a profile and then teh page acts as kind of a profile, but adding friends as the page unit is pretty convoluted. Mar 22 04:32:27 Im about to ask a really stupid question: My app has defined colors, but I have to set them actionbar and statusbar color manually in code.... this is correct right? Mar 22 04:32:46 defined in the theme i mean Mar 22 04:34:09 more importantly, what did dad find? Mar 22 04:34:18 my meth Mar 22 04:34:58 * DadFoundMy hopes everyone realizes he is kidding about the meth Mar 22 04:35:14 i think you are serious ;) Mar 22 04:35:36 well a kid in my highschool OD'd on herion the week so meth probably isnt too far off Mar 22 04:35:50 s/the week/this week Mar 22 04:36:01 look mom i can vi Mar 22 04:36:47 dad found my weed is safer :p Mar 22 04:37:09 word Mar 22 04:37:29 lets go with meth then Mar 22 04:41:33 What's that term for a Wikipedia disease where you start trying to make a Bloody Mary but spend 4 hours learning how to distil vodka? Mar 22 04:42:06 google help i accidently build a shelf? Mar 22 04:43:24 "Escaped Goat And Llama Corner An Unsuspecting Man" Mar 22 04:43:33 why doesn't this stuff ever happen to me :( Mar 22 04:43:34 I did that last weekend ... wanted to figure out something about dark matter and got lost in comparative masses of Higgs, Top-Quarks and why non-abelian math is relevent Mar 22 04:44:02 I felt like the guy trapped by that goat and llama Mar 22 04:44:34 so why is non-abelian math relevant? Mar 22 04:44:40 reading Frickin Ars technica wastes more of my coding time Mar 22 04:44:59 real question is: did you actualy understand any of it? Mar 22 04:45:17 I can't remember ... but it has to do with Parity Violations Mar 22 04:45:37 and why some bosons are more actually fermions Mar 22 04:45:54 then my head exploded and I made the damn Bloody Mary :D Mar 22 04:46:36 ah Mar 22 04:49:38 woohooo Mar 22 04:49:39 it worked Mar 22 04:49:41 mostly Mar 22 04:58:30 geez being dev and designer is a pain Mar 22 04:58:38 yeah no kidding Mar 22 04:58:59 well "designer" Mar 22 04:59:08 because my dog design better Mar 22 04:59:15 thats why evertime google does new stuff like material i scream Mar 22 04:59:44 i remember gingerbread, the changes were just silly - we needed darker icons with different bezels just for the hell of it Mar 22 05:00:26 I'm ignoring all the recommendations until i design better or get any money to pay for a graphic designer Mar 22 05:00:51 heh, yeah i just stack stock mostly, nothing fancy, no animations. just clean simple Mar 22 05:01:45 while its hard to design icons / etc - i think every dev can get a grip on information hierarchy, spacing, grids, colors and typography to a basic extent Mar 22 05:02:03 my very 2nd app is ugly as sin, but hey, i been like 4 months with android stuff Mar 22 05:02:19 yes i know that feel Mar 22 05:02:28 when i pop back into inkscape, i'm like omg how do i use this thing again Mar 22 05:03:57 can i share you my just published 2nd app for recommendations? it's just a meh tool, but still Mar 22 05:04:12 in play ? Mar 22 05:04:16 yup Mar 22 05:04:19 sure Mar 22 05:04:59 hopefully the screenshots are good :D Mar 22 05:05:02 does anyone know if there is a listing of interesting GPS coors for google maps? Mar 22 05:05:06 here is https://play.google.com/store/apps/details?id=com.javierarias.magnadroid Mar 22 05:05:30 isn't a super cool app, just a piece of my learning process of android Mar 22 05:05:50 so please don't be too harsh :) Mar 22 05:06:27 lasserix: Hai. I was AFK. Mar 22 05:06:45 hey Mar 22 05:07:04 cliffreich lol, did your sister review :D Mar 22 05:07:19 cliffreich: you should not link to a video of how to calibrate Mar 22 05:07:22 do i have any review? Mar 22 05:07:23 lol Mar 22 05:07:55 cliffreich it looks useful if it works as advertised, but the layouts need some "work" Mar 22 05:07:58 your bar chart text sizes are too small Mar 22 05:08:14 scale progressbar is too sensitive Mar 22 05:08:22 Yeah, the reviewers have the same last name. :D Mar 22 05:08:33 We aloud to link to our apps if they have ads in em? Mar 22 05:08:52 cliffreich: you should add a dialog mentioning some things to test it on eg speakers Mar 22 05:09:03 *first time it starts Mar 22 05:09:20 I'm saving all your comments for TODO Mar 22 05:09:23 the chart icons should go in the toolbar/actionbar Mar 22 05:10:05 you should add a page that lists common strengths Mar 22 05:10:11 whatitis sorry, in fact i may remove ads Mar 22 05:10:30 or have a thing undernear magnetic strength that displays what objects have similar field strength Mar 22 05:10:34 *and/or Mar 22 05:10:35 https://play.google.com/store/apps/details?id=com.whatitisapps.rrlogcat.free if anyone is interested :) i suck with UI, i'll work on taming it down once get done with current project. Any feedback is always fun :) still needs work but wanted to get something out Mar 22 05:10:48 yeah unless you're anticipating tons of downloads, i wouldn't use ads Mar 22 05:11:06 or only put ads after the user opnes it more than like 3 or 5 times Mar 22 05:11:29 Would anyone use a programming tool that contains ads? Mar 22 05:11:37 Programming is stressful enough. :D Mar 22 05:12:00 lasserix that would be nice, to compare items Mar 22 05:12:10 totally saving all suggestions Mar 22 05:12:11 yeah Mar 22 05:12:22 whatitis: you should use a window so you can overlay the logcat Mar 22 05:12:33 have a paid version of the app w/out ads, and ability to cast from one device to another to view logcat say on a tablet for a phone Mar 22 05:12:44 whatcha mean lasserix Mar 22 05:13:03 cliffreich: as goos said, your UI could really use an overhaul, read up on material dsign, specifically the idea of layers Mar 22 05:13:12 whatitis you can make a floating window like movie players do Mar 22 05:13:25 cliffreich there are some areas there that could just go into CardLayouts Mar 22 05:13:29 since it is kind of useless to use while debugging an app (since the app is running in the foreground) Mar 22 05:13:47 cliffreich: defiantly enable landscape mode Mar 22 05:13:48 lasserix, you can just goto app you are debugging and go back to this app and see it Mar 22 05:14:00 whatitis: i would never do that Mar 22 05:14:03 it keeps running, plus can cast to another device for viewing as debugging Mar 22 05:14:25 for lots of reasons, sepcifically becaus you're asking me to call onPause and possible onStop just to view logcat which would defeat a lot of debugging purporses ;p Mar 22 05:14:54 yeah i see that, there'll be more advancements as time passes :) Mar 22 05:14:56 casting is good idea, otherwise i see is as kinda useless since you cannot simaltansouly read logcat and debug Mar 22 05:15:03 this is the first release Mar 22 05:15:17 g00s_ yes! that would be the best to replace those ugly things Mar 22 05:15:21 lasserix, yah i like the casting as can view on a bigger tablet Mar 22 05:15:34 cliffreich: so every value literal, draw it IN the chart (or over Mar 22 05:15:36 cliffreich what charting lib did you use ? Mar 22 05:15:45 instead of wasting a bunch of space just to draw text Mar 22 05:16:23 *well maybe not in if aspect ratio dictates you have extra space, but definatly overhaul the look Mar 22 05:16:25 very cool tho! Mar 22 05:16:29 hasn't crashed yet! Mar 22 05:16:58 that's what i wanted to hear at least :) Mar 22 05:17:10 nice job with viepager Mar 22 05:17:30 instead of putting icons in nav bar tabs is not bad idea either Mar 22 05:18:08 This looks new: http://kotlinlang.org/docs/kotlin-docs.pdf Mar 22 05:18:22 TacticalJoke that was there a week or so ago Mar 22 05:18:24 TacticalJoke: Yes it is Mar 22 05:18:24 g00s_ im using a custom androidplot, but may remove the custom part because i don't want to keep a fork Mar 22 05:18:31 TacticalJoke you should follow the twitter ! Mar 22 05:19:01 Oh, yeah, I've been meaning to. Mar 22 05:19:10 lasserix yes that's an option Mar 22 05:19:39 I love stuff like this: http://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io/-buffered-reader/index.html Mar 22 05:19:44 lines FTW. Mar 22 05:21:49 whatitis now that's a tool Mar 22 05:23:26 need to improve my skills a lot Mar 22 05:23:55 isthere really no website of gps coors of interesting places on google maps? Mar 22 05:24:10 hmmm? Mar 22 05:24:27 like landmarks or something ? Mar 22 05:24:44 i am making an entertainment app that uses google maps... would be nice to have a list of lat/long of interesting places to look at Mar 22 05:25:24 cliffreich, thanks :) still have a ways togo with it, but had to take a break and work on other projects to clear my head a bit :) Mar 22 05:30:01 Seeing Kotlin code using four-space indents is so much nicer. Mar 22 05:30:24 It almost makes up for the lack of semicolons. :D Mar 22 05:32:34 <_genuser_> man cant' believe I have been ignoring the app for all this time. Mar 22 05:32:54 Which app? Mar 22 05:33:16 well tomorrow i'll start with all your suggestions for new release next weekend :). UI surely needs attention Mar 22 05:37:11 also need to update my other app Mar 22 05:39:50 I have a GridView and a custom adapter which extends BaseAdapter. If I remove an item from my list and call notifyDataSetChanged() the list is not updated until I touch the screen. WTF? Mar 22 05:47:15 okay... think I figured out what was happening. I was updating from a FileObserver and I don't think it gets called on the main thread. Mar 22 05:51:16 deroity Mar 22 05:54:23 surf2b1 you're going to have to find out :D Mar 22 05:55:00 is stuff inside static { } not tripped by debugger? Mar 22 06:08:09 hello Mar 22 06:08:13 anybody here right now? Mar 22 06:08:31 hello i need little help Mar 22 06:08:38 anybody here ? Mar 22 06:08:59 DeathCode: yes but i'm noob Mar 22 06:09:20 How do I read a set of lines from a file without loading the entire file? Mar 22 06:09:21 yeah Mar 22 06:09:24 lasserix! Mar 22 06:09:47 specifically, i need to grab one jsonobject from a jsonarray from assests, but i dnt want to load entire file if possible Mar 22 06:09:48 DeathCode: hello Mar 22 06:09:54 so i learned how to code gps into the software already and i think i can get my phone to display the long and lat Mar 22 06:09:58 random access file Mar 22 06:10:17 lasserix but in android studio how do i give a test longitude and latitude to the emulator? Mar 22 06:10:18 DeathCode: my javac says cannot file symbol onclickListener i know that i need to import package but how do i get appropriate package names ? Mar 22 06:10:23 i havent texted it yet Mar 22 06:10:53 DeathCode: google it Mar 22 06:11:10 boodllebat: are you using android studio? Mar 22 06:11:12 boodllebat:i dont know Mar 22 06:11:34 lasserix: no i'm using ant Mar 22 06:11:53 oh well get with it and use android studio Mar 22 06:12:08 then you wont have to worry about problems like this :) Mar 22 06:12:52 boodllebat:what are you using? Mar 22 06:12:56 lasserix: how can i import all the things at once Mar 22 06:12:59 DeathCode: ant Mar 22 06:13:03 dont know Mar 22 06:13:06 .* Mar 22 06:13:11 lasserix:i googled already. what to do? Mar 22 06:13:23 how do i emulate a gps long and lat? Mar 22 06:13:30 DeathCode: well your IDE is build upon roots of ant or gradle or maven Mar 22 06:13:32 gogle it Mar 22 06:13:43 lasserix: will it fix my problem ? Mar 22 06:14:07 boodllebat: there is an auto import function that handles that for you Mar 22 06:14:33 lasserix: so i have to find it on manual purpose ? Mar 22 06:14:59 boodllebat: its java right? so import android.view.onclick listener or what it is Mar 22 06:15:28 I FINISHED I FINISHED I FINISHED I FINISHED WOOOOOO Mar 22 06:15:48 first app is donneeee Mar 22 06:16:17 hahaha Mar 22 06:16:24 enjoy your delusion while you can! Mar 22 06:17:36 lasserix: i have to find packages for EditText Button TextView manually ? Mar 22 06:17:54 lasserix: is their any standard convention to do all this ? Mar 22 06:18:05 its called use android studio Mar 22 06:19:22 lasserix: to be honest i dont like using IDE's i like it when i'm closer to my terminal something bad with me , i'm a vim guy Mar 22 06:19:52 then grep it and import it Mar 22 06:20:12 *sorry i dont use vim to do editing so i really dont know Mar 22 06:20:18 there might be a few people around here who do Mar 22 06:20:36 but you should maybe consider that just because you can use an abacuss, doesn't mean you should Mar 22 06:20:46 boodllebat: i love vim myself but tbh your going to have a really hard time coding android in vim Mar 22 06:20:59 at the minimum you should look into using something like eclim Mar 22 06:21:11 DadFoundMy: can you tell me how do i import TextView ? Mar 22 06:21:21 personally for android development i just use android studio with a vim plugin Mar 22 06:21:44 DadFoundMy: i tried this import android.widget.TextView; but it fails :| Mar 22 06:21:45 boodllebat: import android.widget.TextView;? Mar 22 06:21:51 oh Mar 22 06:22:02 java and vim are incompatible Mar 22 06:22:12 im not sure what to try after that :D Mar 22 06:22:15 g00s_: agreed Mar 22 06:22:31 import android.view.View.OnClickListener Mar 22 06:23:19 my app is completely done, but i need to clean the code up because i plan on open sourcing it :/ Mar 22 06:23:56 DadFoundMy: oh import android.widget.TextView works i was missing semicolon :P my bad Mar 22 06:24:26 DadFoundMy: is it an app for finding your weed after you forget where it was because you decided to stash it after you got really high and paranoid? Mar 22 06:24:26 boodllebat: if only you were using some sort of program to tell you exactly when and where you are missing semicolons :D Mar 22 06:24:42 lasserix: not exactly... Mar 22 06:24:58 lasserix: similar though, its a high school agenda book Mar 22 06:25:30 agends for today: goto class. goto lunch. goto class. get high. fuck girlfriend. get high. goto bed Mar 22 06:25:47 probably too much going to class! Mar 22 06:25:48 pretty sure "get high" goes at the start too Mar 22 06:26:01 sounds correct Mar 22 06:26:15 girlfriend usually had all the weed Mar 22 06:26:22 lasserix: mine eat lunch --- eat lunch---- eat lunch---- sleep---Repat Mar 22 06:27:17 an actual high school one would be: wake up -- goto school -- sleep -- sleep -- copy homework -- lunch -- sleep -- sleep -sleep-- dinner Mar 22 06:27:31 DadFoundMy: exactly Mar 22 06:27:33 what are you talking about? Mar 22 06:27:49 I'm eating choco cookies :3 :D Mar 22 06:27:50 i was listing mine verbatum, wouldn't need an app since there was no variation Mar 22 06:28:35 i wouldnt need it either but im sure theres sombebody somewhere in my school that does homework and wants to write it down Mar 22 06:29:31 Hello all, I want to know whether *#*#checkin#*#* clears google services framework. Mar 22 06:30:32 my ant is saying "error: strings in switch are not supported in -source 1.5 Mar 22 06:30:32 " Mar 22 06:32:55 thats cool, talking ants Mar 22 06:33:06 Stop using ant Mar 22 06:33:23 boodllebat is using ant + vim :P Mar 22 06:33:32 That is a recipe for pain Mar 22 06:33:39 g00s_: yeah ! Mar 22 06:33:41 Make that two recipes for pain Mar 22 06:33:47 CedricBeust_: lol :P Mar 22 06:33:59 boodllebat you have to me very l33t for that setup, as in - so l33t you aren't allowed to ask questions Mar 22 06:34:24 g00s_: what is l33t ? Mar 22 06:34:28 Anyone l33t to know vi knows better than using it to write code Mar 22 06:35:12 boodllebat you are either crazy or walking on water, in each case we probaly can't help Mar 22 06:35:12 g00s_: lol leet speak ? Mar 22 06:35:47 i mean, at least use emacs for java Mar 22 06:35:48 g00s_: your were talking about leet speek no i'm not that much in trouble , vim + ant looks quite promising ! Mar 22 06:35:50 Seriously though, drop vi, pick Android Studio Mar 22 06:36:07 * g00s_ jk Mar 22 06:36:21 boodllebat: They look promising because (I assume) you are a beginner. Pick Android Studio, get a bit comfortable with Gradle and start coding Mar 22 06:36:46 boodllebat you can have 40 or 50 imports for a file, its insane managing that manually. less if you just * everything but still Mar 22 06:38:42 CedricBeust_: i tried gradle once Mar 22 06:39:17 CedricBeust: i tried Gradle once but i did'nt like it Mar 22 06:39:42 CedricBeust: i dont know why world hates ANT and love Gradle Mar 22 06:39:50 boodllebat: Sorry to break it to you but you don't really have a choice, it's the standard, as is Android Studio. Spend some time learning these new tools, it's worth it Mar 22 06:40:16 boodllebat: ant is like the assembly language of build tools, it's old, has tons of boiler plate and is hardly used in Java any more, let alone for Android Mar 22 06:40:38 You're choosing to use antiquated tools, it's just weird Mar 22 06:40:52 CedricBeust: hmm ... maybe your right ! Mar 22 06:40:59 you're * :) Mar 22 06:41:11 CedricBeust: but i'll switch slowly and slowly Mar 22 06:41:19 boodllebat: Take this as an opportunity to learn new things instead of staying set in your old ways Mar 22 06:41:22 It's a fun journey Mar 22 06:41:29 i predict in 6mos my machine won't be able to run AS / gradle. they keep getting more and more memory hungry . than i might have to dip into vim :( Mar 22 06:41:42 ant was good enough for our fathers, and our fathers' fathers... Mar 22 06:41:50 Leeds: :) Mar 22 06:41:55 Love the Python reference :) Mar 22 06:41:58 hell, vim was good enough for our fathers' fathers' fathers! Mar 22 06:42:28 CedricBeust: ah, if only... Android apps in Python ;) Mar 22 06:42:41 g00s_: that happens to me , my machine LAGS when i use UI things there i dont know why i have 4GB of primary memory and a good Cache also i have overclocked my CPU to 2.13 GHz still it lags Mar 22 06:42:43 Leeds: Yuck. Give me types or give me death. And no "self" please. Mar 22 06:42:54 CedricBeust: quack quack Mar 22 06:43:10 yeah i kinda hate that whitespace thing Mar 22 06:43:22 g00s_: you don't indent your code? Mar 22 06:43:23 The whitespace indentation is the only thing I like in Python Mar 22 06:43:28 boodllebat thats what i have 4G, you will suffer - so i can see why you're looking at vim heh Mar 22 06:43:46 Yes, 8Gb is a minimum these days. Then SSD. Mar 22 06:43:55 g00s_: and when i play games it goes on fire ! i mean it gets heated like a fire ball Mar 22 06:43:59 I've got 12GB of RAM in my desktop - but I need that for my 200+ chrome tabs... Mar 22 06:44:31 hm, does emacs have a web browser ... might be forced to use that Mar 22 06:44:55 g00s_: now there's a silly question... Mar 22 06:45:10 yeah its called eww Mar 22 06:46:37 you guys haven't coped and pasted python around and have it bust because the indentation changed ? Mar 22 06:46:40 *copied Mar 22 06:47:11 you fix the indentation, and your code remains readable Mar 22 06:50:38 i'm trying to compare id's where am i wrong if(v.getId.equals(R.id.btnAdd)){} Mar 22 06:51:02 v is a View Object Mar 22 06:52:05 g00s_: help me up here ! Mar 22 06:59:28 boodllebat: getId() Mar 22 07:01:08 MasterAwesome: i tried this but seems to be not working if(v.getId().equals(R.id.btnAdd)){ Mar 22 07:01:10 :o Mar 22 07:01:18 getId returns int? Mar 22 07:01:31 == boodllebat Mar 22 07:01:46 Ashiren: yes i think it returns int Mar 22 07:01:52 then compare with == Mar 22 07:02:00 v.getId() == R.id.btnAdd Mar 22 07:02:25 Ashiren: Success :) Mar 22 07:02:28 Ashiren: ;) Mar 22 07:02:32 MasterAwesome: thanks man Mar 22 07:02:41 hi Mar 22 07:02:51 good morning Mar 22 07:03:17 what r u doing boodllebat Mar 22 07:03:45 VirgoSun: i'm trying to compile my java app using ant Mar 22 07:03:55 i have a lot of idea but feel tired of programming Mar 22 07:04:11 I am using eclipse Mar 22 07:05:06 VirgoSun: i dont know why android switched from ant to gradle Mar 22 07:05:17 VirgoSun: ant seems to be more automated Mar 22 07:05:19 boodllebat: gradle is amazing. Mar 22 07:05:38 boodllebat: automation overpowers manual build scripts Mar 22 07:06:05 MasterAwesome: you have to write somemany unit test ! and bull shit in gradle , ant do these stuffs like charm Mar 22 07:06:08 i have tied androi dsutiod and it better with pointers Mar 22 07:06:58 java is not strong in pointer vs c Mar 22 07:07:02 boodllebat: Let's not have a controversy over Gradle vs ANT Mar 22 07:07:31 lets have a look at my app, invite you all http://www.amazon.com/Virgo-Sun-SG-Wallpaper-service/dp/B00U6V9A3Q/ref=sr_1_1?s=mobile-apps&ie=UTF8&qid=1427007899&sr=1-1 Mar 22 07:07:42 VirgoSun: java pointers are basically created by the new operator they word "strong" doesn't make any sense since java is built on c Mar 22 07:08:27 VirgoSun: That's a lot of unnecessary perms Mar 22 07:08:49 for a wallpaper service Mar 22 07:08:54 hi masterawwsome, in c , you r more freely manipulation pointers yourselve right? Mar 22 07:08:59 VirgoSun: ofcourse java is nothing infront of C you should never compare Them C is GOD Mar 22 07:09:07 ^This Mar 22 07:09:08 boodllebat: Again, you're talking without understanding much. Spend more time learning the platform, then you'll understand why nobody uses ant any more Mar 22 07:09:09 ok Mar 22 07:09:39 CedricBeust: hmm you are right ! Mar 22 07:09:41 yets masterawaresome Mar 22 07:09:55 VirgoSun: pointers in C are way, way more unsafe than in Java Mar 22 07:09:57 I personally believe Google should switch their platform from Java to C++. It would provide a huge performance boost over the slow JavaVM Mar 22 07:10:08 MasterAwesome: Seriously? Mar 22 07:10:16 CedricBeust: Why not? Mar 22 07:10:29 MasterAwesome: yes yes yes i have same thought Google should move from JAVA to C++ Mar 22 07:10:37 * CedricBeust facepalms Mar 22 07:10:39 Its not often you will go to sleep and wake up 3 hours later, alas, here I am. Mar 22 07:10:42 MasterAwesome: but NDK is already there on C++ Mar 22 07:11:01 That doesnt prove an alternative to the APIs which are inaccessable through C++ Mar 22 07:11:14 CedricBeust: i'm talking about SDK not NDK , NDK is already on C/C++ Mar 22 07:11:39 MasterAwesome: hmm ! Mar 22 07:11:48 boodllebat: I know, and it makes no sense. Java is a great fit, much better so than C++ Mar 22 07:11:55 Android would probably never have taken off if it were based on C++ Mar 22 07:12:00 are you sure NDK 100% compatible with for instance intel atom Mar 22 07:12:21 CedricBeust: That's what I said, a performance increase vs a lesser developers Mar 22 07:12:34 lesser developers? What does that mean? Mar 22 07:12:42 Honestly, is there really any good Android Non-Camera phones out there? Mar 22 07:12:48 All I see is some shitty China Android Non-Camera phones with no good QCs Mar 22 07:12:52 Why would you want a Non-Camera phone? Mar 22 07:12:52 CedricBeust: What ! you just said Java is much better than C++ ? No i dont think so C++ is way more better but Java fits there right cause its not about performance every time am i right ? Mar 22 07:12:59 I think java is somthing like strategic marketing as of RAD visual baic in windows Mar 22 07:13:08 I said C++ > java Mar 22 07:13:10 VirgoSun: lol yeah ! Mar 22 07:13:16 cause of the restricted site that I'm working in Mar 22 07:13:26 Ah Mar 22 07:13:33 CedricBeust: Lesser developers. Not all of us can be on your calibre ;-) Mar 22 07:13:39 of* Mar 22 07:13:41 :) Mar 22 07:14:06 Java is a more user friendly language that's all im saying Mar 22 07:14:06 boodllebat: I started programming in C++ around 1985, I would never go back today, there is no shortage of languages that are safer and better designed without the crazy constraints that C++ had to work with Mar 22 07:14:46 Java isn't fully functional yet. A lot of OOMs a lot of kernel load Mar 22 07:15:02 MasterAwesome: That's a problem with your code, not Java Mar 22 07:15:05 framework is based on c, mallocs fail on low mem devices Mar 22 07:15:16 CedricBeust: maybe but C++ gives me feeling of my Home :) that's why but you are right if it was not Java android would have failed in its init() stage ! Mar 22 07:15:29 :) freedom go with diversify go with options and complexity right? lol Mar 22 07:15:43 This controversy is heading no where :P Mar 22 07:16:20 ReGiStRaS: Nokia 1100 Mar 22 07:16:50 fro example opencv now havent got support for x64 platform Mar 22 07:17:27 i dont know why AVD keeps showing "Android" on my system ! Mar 22 07:17:37 O.o? Mar 22 07:18:53 very nice to join you folk, I am programming sinec 1995 when I graduated. I go out for some tshirt, I going on travel malaysia next weds Mar 22 07:19:21 my emulator keep sshowing "android" is that cause i have givien low swap space for paging Mar 22 07:19:28 VirgoSun: :) cool Mar 22 07:19:50 VirgoSun: you should buy hoodies Mar 22 07:19:56 thanks boodllebat Mar 22 07:20:35 VirgoSun: get a Eminem Tshirt you'll look cool ! or get a linkin park tshirt Mar 22 07:21:01 really boodllebat Mar 22 07:21:28 hoodies for genting highland right Mar 22 07:21:39 VirgoSun: yeah i wear them and everybody says that it looks cool ! Mar 22 07:21:54 VirgoSun: its SWAG Mar 22 07:22:02 :) great Mar 22 07:22:11 What? Mar 22 07:22:19 I dont understand any of this conversation. Mar 22 07:22:34 Anthaas: "SWAG" Mar 22 07:22:50 Apparently so. Mar 22 07:23:21 Anthaas: http://www.urbandictionary.com/define.php?term=SWAG Mar 22 07:23:39 Not even sure I want to know... Mar 22 07:23:40 I am think about a nike or and adidas Mar 22 07:24:12 Let's bring the discussion back on topic, shall we? Mar 22 07:24:15 VirgoSun: yeah NIKE would look cool ! go for XXL or XL size or yoursize()+2 Mar 22 07:24:39 must be XL, I have tried Mar 22 07:25:17 CedricBeust: my AVD keeps showing "android" why ? Mar 22 07:25:22 i am not sure what it made of Mar 22 07:25:32 Because it is an Android AVD? Mar 22 07:25:43 VirgoSun: go for polyester or cotton Mar 22 07:25:44 boodllebat have you tried HAXM ? Mar 22 07:25:54 VirgoSun: what is HAXM ? Mar 22 07:26:12 a yeah the cotton one with some process Mar 22 07:26:14 Google it. Mar 22 07:26:26 Its an Intel thing for the AVD. Mar 22 07:26:28 Intel HAXM boodllebat Mar 22 07:26:37 it run 4 times faster Mar 22 07:26:44 You can't use HAXM on Linux :/ Mar 22 07:27:05 oh really I use windows 10 Mar 22 07:27:10 I like to use my mobile phone instead any emulator. Mar 22 07:27:21 MasterAwesome1: sad i'm using linux what do i do now ? Mar 22 07:27:47 boodllebat: android is a linux fork it should perform with max speed on linux anyway Mar 22 07:28:13 HAXM only provides mutex to thread scheduling on windows and serves no purpose in linux Mar 22 07:28:34 MasterAwesome1: dont know why AVD gets stuck on "Android" Mar 22 07:28:40 remember not to give too much memory to emulator or you'll get a kernel oops Mar 22 07:29:34 MasterAwesome1: how much should i give tell me exact Mar 22 07:29:41 MasterAwesome1: give me your configs Mar 22 07:29:57 Have you tried Googling this? Mar 22 07:30:09 Im sure I had a similar problem way back and found the solution on Google. Mar 22 07:30:21 Well, I use CyanogenMod 12 system image i built since I need root access to build native system apps and libs Mar 22 07:30:22 use genymotion [solved] Mar 22 07:30:32 but on a 4gb system, 2gb is enough Mar 22 07:31:28 Anthaas: google says increase RAM Mar 22 07:32:03 Every single result on Google says "Increase RAM"? Mar 22 07:32:11 Or do they give more information? Mar 22 07:32:28 Or does, as you say, "Google" say to increase RAM? Mar 22 07:33:36 MasterAwesome1: can you send me your emulator image ? Mar 22 07:34:05 Anthaas: not i got it on stack overflow Mar 22 07:34:19 I don't understand why SMS verification services insist on sending the SMS? Why don't they ask the user to send a code and simply check the received SMS? Mar 22 07:35:41 The_Phoenix: You seem to assume all end users are on Contract based tariffs. If the customer is on PAYG, they will incur a charge from sending this SMS. Having the company send the SMS (which costs a ridiculously low amount) avoids this. Mar 22 07:36:16 MasterAwesome1: is this fine RAM : 1907 vmHeap:64 internalstaorage:200mb ? Mar 22 07:36:25 Anthaas: is this fine RAM : 1907 vmHeap:64 internalstaorage:200mb ? Mar 22 07:36:49 Does it work for you? Mar 22 07:36:56 Anthaas: not tested ! Mar 22 07:37:07 Anthaas: I see. I added my email to Twitter digits but there seem to be a waiting list. Am working on a small app. So, not willing to pay for user. Mar 22 07:37:22 boodllebat: Then how can I know if it works? Mar 22 07:37:29 Anthaas: trying it Mar 22 07:39:02 Anthaas: ok a black screen now ! Mar 22 07:39:12 Anthaas: ok showing android now Mar 22 07:39:23 boodllebat: Just logcat it Mar 22 07:39:32 or check dmesg or something Mar 22 07:40:01 MasterAwesome1: how do i do that ? i run it like this ./emulator -avd my_image_name Mar 22 07:40:31 when android screen is there open another terminal emulator and run "adb logcat" Mar 22 07:40:48 or adb shell dmesg Mar 22 07:41:45 * MasterAwesome back Mar 22 07:41:51 MasterAwesome1: is adb with my android sdk or i have install it seperaty ? Mar 22 07:42:26 where is your sdk located? Mar 22 07:42:29 MasterAwesome: is adb by default with my sdk or i have install it Mar 22 07:42:36 give me the absolute path Mar 22 07:42:55 MasterAwesome: home/androidsdk/android-sdk-linux Mar 22 07:43:13 MasterAwesome: adn avd is still showing "android" Mar 22 07:43:22 You mean the Home folder or the /home directory O.o Mar 22 07:43:40 MasterAwesome: yeah home directory what is there anything wrong ? Mar 22 07:43:58 Home directory is not /home... Anywho, execute this Mar 22 07:44:30 MasterAwesome: ok take this ~/androidsdk/android-sdk-linux Mar 22 07:45:18 echo 'PATH=$HOME/androidsdk/android-sdk-linux/tools:$PATH' >> ~/.profile && echo 'PATH=$HOME/androidsdk/android-sdk-linux/platform-tools:$PATH' >> ~/.profile && chmod -R a+x ~/androidsdk && source .profile && adb logcat Mar 22 07:45:43 execute it from your home folder Mar 22 07:47:04 MasterAwesome: it is throwing whole lot of rubbish ! Mar 22 07:47:16 like? Mar 22 07:47:42 MasterAwesome: i'm pasting some of it Mar 22 07:48:01 echo 'PATH="$HOME/androidsdk/android-sdk-linux/tools":$PATH' >> ~/.profile && echo 'PATH="$HOME/androidsdk/android-sdk-linux/platform-tools":$PATH' >> ~/.profile && chmod -R a+x ~/androidsdk && source ~/.profile && adb logcat Mar 22 07:48:31 MasterAwesome: http://paste.ubuntu.com/10649806/ ok and good news my avd seems to be working now ! Mar 22 07:49:13 bad system.img i guess. deadobjectexpection should never be flagged Mar 22 07:49:22 MasterAwesome: but its laggy Mar 22 07:49:27 MasterAwesome: its lagging a lot Mar 22 07:49:32 what's your specs Mar 22 07:50:07 MasterAwesome: image specs or system specs ? Mar 22 07:50:15 system Mar 22 07:50:17 I've got a listview which loads a record into a new view. As I have a databaseadapter class, I do not call update directly. I am having trouble passing the ID of the record back to an update function in my databaseadapter class. Mar 22 07:52:11 MasterAwesome: 4gb prim mem 1GB nvidea 2.13 Ghz Mar 22 07:52:20 MasterAwesome: i3 Mar 22 07:52:44 hmph... I have linux with the same specs and my avd runs perfectly Mar 22 08:00:44 Anyone know of a good website or linux-compatible software for the analysis of the CSV install report files that Google Play developer console generates? Mar 22 09:00:26 I need to make an android device (a robot) that has a stereo camera. What's the easiest way to do this? Mar 22 09:07:12 stanford_drone: stereo is a sound term, and has nothing to do with camera (assuming this is a stills camera) what do you mean? Mar 22 09:07:53 thepoosh, stereo camera means there's 2 cameras like we have two eyes. they're used for stereography. You can compute a depth image from both images Mar 22 09:08:55 binocular Mar 22 09:09:46 not quiet Mar 22 09:10:10 stanford_drone: nothing personal, but you really come across as someone with ambition and goals above your current knowledge/experience/skills - you're asking big vague questions which can't really be answered here Mar 22 09:10:48 and on that patronising note, time to go afk Mar 22 09:10:50 Leeds, android-dev won't know android development? Mar 22 09:11:08 not "building a drone with dual cameras" knowledge, no Mar 22 09:11:11 I'll just wait for the hacker who really knows their shit Mar 22 09:11:39 Leeds, it's about connecting a stereo camera to android. Can't be that hard. Maybe some lower-level linux hackers know it. Mar 22 09:11:51 but this channel is for app development, not hardware or kernel Mar 22 09:12:18 stanford_drone: opengl supports that Mar 22 09:12:25 anyway, good luck, I really am going out, but I think you're asking the wrong questions in the wrong place Mar 22 09:12:34 lasserix, how? opengl on android does? Mar 22 09:12:49 Leeds, where else should I ask? Mar 22 09:13:10 you would have to figure out how to get the data into the device ram, but once its there you could set up the proper project matrix in opengl to display it Mar 22 09:13:34 lasserix, i don't really care about displaying it. I only need it for computer vision processing Mar 22 09:13:40 the problem is how to get the data into RAM Mar 22 09:13:48 from two different cameras or a stereo cam Mar 22 09:13:51 on android Mar 22 09:14:11 hmm Mar 22 09:14:23 data transfer wizard Mar 22 09:15:15 stanford_drone, thing is, I doubt those cameras come with readily available drivers for Androdi Mar 22 09:15:19 *Android Mar 22 09:15:51 I've seen some people hack on V4L2 support, but that was usually ugly and more problems than it was worth Mar 22 09:16:01 (especially in comparison of just using a standard distro) Mar 22 09:16:15 Mavrik, yes, and I think it's still one camera at a time Mar 22 09:16:35 would it be easy to make code that parses a camera USB input raw data? or is it a complicated format? Mar 22 09:16:51 most stereo cameras I've worked with sent either SBS or double FPS stream anyway Mar 22 09:16:54 didn't show up as two Mar 22 09:17:16 stanford_drone, unless your resolution is very low, USB bus won't be fast enough Mar 22 09:17:42 Mavrik, low res Mar 22 09:17:43 unless you have a USB3 controller of course Mar 22 09:18:00 Mavrik, we want to use two usb cams. Is there any device that would combine them into only one stream? Mar 22 09:18:14 nothing that would be cheaper than about 10 phones Mar 22 09:18:24 lol Mar 22 09:18:35 (pro video equipment is expensive -_- ) Mar 22 09:18:45 but why is that pro? Mar 22 09:18:46 stanford_drone, if you already have an Android board, I'd try to do V4L2 on it Mar 22 09:19:05 and then manually interact with it via shell Mar 22 09:19:09 Mavrik, we could make our own android board Mar 22 09:19:29 but then again, I'd suggest just using a normal desktop distro instead of Android for that Mar 22 09:19:32 Mavrik, any idea how phone manufacturers connect their cameras to the phone? Mar 22 09:19:47 most SoCs have internal DSP on a separate bus Mar 22 09:19:58 coupled up to the HW video encoder and VRM Mar 22 09:20:00 *VRAM Mar 22 09:20:03 would they be standard? Mar 22 09:20:07 interfaces Mar 22 09:20:09 nop. Mar 22 09:20:22 not even close as you can see by 3rd party Android ROM mess Mar 22 09:20:35 Mavrik, any idea how to use the amazon fire's 4 cameras? need to access raw data Mar 22 09:20:44 never seen that device. Mar 22 09:21:12 why is android only letting me access one camera at a time (front/rear) ? Mar 22 09:23:00 Mavrik, ^ it doesn't make much sense for android to restrict developers to only one camera at a time, does it? Mar 22 09:37:50 stanford_drone well since most android devices are phones it makes sense to support only one camera at a time Mar 22 09:47:55 any one ho hand gesture? Mar 22 09:48:05 I am looking fo finger count Mar 22 09:54:07 stanford_dron you can implement 2 interface at the same time to access 2 camears in opencv Mar 22 09:55:00 cvcameralistener and cvcameralistener2 Mar 22 10:06:02 is there something like on which i can check my APP's XML layout i dont want emulator cause i just want to check layout and how does it look not run the APK is there anything simpler and lightweight ? Mar 22 10:07:14 hello boodllebat Mar 22 10:07:22 VirgoSun: hi Mar 22 10:07:31 VirgoSun: is there something like on which i can check my APP's XML layout i dont want emulator cause i just want to check layout and how does it look not run the APK is there anything simpler and lightweight ? Mar 22 10:07:49 i got one sport polyester and one xxl cotton Mar 22 10:08:40 I do check it on Eclipse layout editor Mar 22 10:09:33 VirgoSun: :) cool poly and cotton :) i am not using Eclipse i want something standalone cause i'm wrking on Vim Mar 22 10:09:34 boodllebat: hi, which IDE do u you. I think it is WYSWYG Mar 22 10:10:04 VirgoSun: no i'm using vim and ant i'm not using any IDE i'm compiling stuff by hand ! Mar 22 10:11:01 I see, it is out of my knowledge Mar 22 10:11:54 VirgoSun: oh ! not a problem :) Mar 22 10:12:10 have you google it Mar 22 10:14:20 VirgoSun: i'm constantly trying i got one buts its not free http://jimulabs.com/ Mar 22 10:16:26 have you try this http://developer.android.com/tools/help/hierarchy-viewer.html Mar 22 10:17:14 but it is runtime, not design time Mar 22 10:18:29 Time to switch to AS. Mar 22 10:20:09 VirgoSun: how do i load XML there ? Mar 22 10:20:35 VirgoSun: i have three buttons only Mar 22 10:33:43 I found this on stackoverflow http://stackoverflow.com/questions/2224329/online-gui-design-tool Mar 22 10:52:18 is there a maximum heigh and width for an imageview? Mar 22 11:28:04 hey guys Mar 22 11:28:38 oy vey Mar 22 11:28:44 I'm using Picasso's image.get() to get a bitmap and use that get the height of the picture Im going to be loading into an ImageView later Mar 22 11:28:56 the height always seems much larger than what I end up seeing on my device when the picture has loaded Mar 22 11:29:29 this is because the imageview element in XML has its height set to wrap_content, so what I see in the imageview is much smaller than what the picture's height really is Mar 22 11:30:00 so my question is now I guess that I need to get the height of the final image that was loaded into the imageview, not the height of the picture that Picasso was given initially Mar 22 11:30:15 How can create "deprecated" warnings for a method in my code in android studio? Mar 22 11:30:20 several solutions are returning zero Mar 22 11:34:47 Im guessing this is it http://stackoverflow.com/questions/10411975/how-to-get-the-width-and-height-of-an-image-view-in-android Mar 22 11:35:25 How hard would it be to build a custom Android device that runs AOSP? Mar 22 11:35:54 Is such technology avaliable from the public? Mar 22 11:35:59 to* Mar 22 11:37:20 that method returns zero the first time ever that you load the image, then the correct height every time after that Mar 22 11:37:22 lol.. Mar 22 11:37:30 apdapreturns: Try #android-root or one of the mailing lists: http://s.android.com/source/community/index.html Mar 22 11:59:27 hello i need help Mar 22 12:09:12 i want to preview my XML layout without building my APK no i'm not using any IDE , i'm using vim and ant Mar 22 12:10:27 I don't think that's possible, even the preview in android studio is not working correctly most of the time Mar 22 12:11:28 memorion: oh so there is nothing i have to compile every time i make change ? Mar 22 12:13:06 boodllebat yeah, or try the layout editors of eclipse or android studio but if that's not an option I think you have to compile every time Mar 22 12:13:41 memorion: its hard to design with just code :( Mar 22 12:13:54 memorion: its like i'm all on my imagination Mar 22 12:14:23 boodllebat I really don't understand why you don't want to use an IDE, you torture yourself Mar 22 12:15:29 memorion: i dont like IDE's they lag my system but i'll figure something out Mar 22 12:18:39 boodllebat maybe I found something for you: http://jimulabs.com/ Mar 22 12:20:11 memorion: i have already seen this this is realtime preview on device ! i was expecting something like virtual screen on my PC which snaps the XML for changes and preview the chnages and render it in APP style Mar 22 12:20:24 memorion: but thanks for getting me this Mar 22 12:21:10 boodllebat you can try to get this to work with the emulator, but that may consume the same resources as an IDE, do you have a real device for testing? Mar 22 12:21:31 memorion: yes i have 5 android devices ! Mar 22 12:21:41 memorion: but i'm worried its not free Mar 22 12:21:41 its' not hard to design with code, it's the easiest Mar 22 12:21:52 it's hard to develop Android apps with no IDE is what you mean Mar 22 12:22:28 you will look cool but you will definitely be crippled Mar 22 12:22:28 Odaym: i'm coding without IDE with ant and vim Mar 22 12:22:54 Odaym: i need something to preview XML layout and update it as soon as i code Mar 22 12:22:59 IDE Mar 22 12:23:35 you get a nice split view where everything you write gets rendered on the screen of a device of your choosing Mar 22 12:24:00 the layout preview in AS is pretty broken for me :/ Mar 22 12:24:34 I don't use it usually, but it's fine here I just turned to it Mar 22 12:24:41 Odaym: can i get only that thing as a standalone ? i mean layout renderer from IDE to be workin as standalone ? Mar 22 12:24:45 what's "broken" anyways Mar 22 12:24:46 lol Mar 22 12:25:06 memorion: so do you build APK everytime you wanna check ? Mar 22 12:25:18 no I use android studio Mar 22 12:25:28 I don't know boodllebat, but I know that the community (or Google) hardly caters for devs running in a no-IDE environment Mar 22 12:25:39 their tips are usually rare and found at the bottom of pages Mar 22 12:25:40 if any Mar 22 12:26:19 Odaym: i want to fetch that thing out, is android studio opensource ? Mar 22 12:26:30 but the tools that Android Studio uses are all found as binaries inside the SDK folder, you can try to hack something together there...not sure if it would take years or 5 minutes Mar 22 12:26:49 by the way how do you manage your imports when coding? Mar 22 12:27:35 Odaym: i dont know maybe i'll make something to do that but if i get the source of layout render thing from android studio Mar 22 12:27:50 Odaym: do you know what its called how can i get its source ? Mar 22 12:28:11 Odaym: only that part which renders the XML layout' Mar 22 12:29:13 there is a layoutlib-api.jar in android studio maybe that's it Mar 22 12:29:39 yea it's definitely not in the tools Mar 22 12:29:57 uiautomaterviewer is for testing UI Mar 22 12:30:06 that's the only thing that has the term UI in it Mar 22 12:30:41 and how do you get code completion in vim? Mar 22 12:31:00 Odaym: i dont get ! Mar 22 12:31:06 Odaym: :P Mar 22 12:31:07 imports management? Mar 22 12:31:09 pretty sure that's the right .jar but I doubt you can get it to work on it's own Mar 22 12:31:35 someone is forcing you to not use IDE? Mar 22 12:31:48 Odaym: i do that manually , in morning some guys help me figurered out the importing conventions now its just guess or docs Mar 22 12:31:49 Jimmy's stuck in the well? Mar 22 12:32:06 memorion: can you give me the exact path Mar 22 12:32:46 Odaym: i compile things with ANT on every error i google and i get the importing libs there :) pretty simple ? Mar 22 12:33:01 boodllebat I only looked in the mac .app version it's in plugins/android/lib/layoutlib-api.jar Mar 22 12:33:10 yea, that seems simpler than not having to do that Mar 22 12:33:38 memorion: got it :) ;) Mar 22 12:33:44 memorion: hope it works for me Mar 22 12:33:50 it will never work Mar 22 12:33:53 :D Mar 22 12:33:55 not standalone Mar 22 12:34:21 I knew a vim fan like you a while ago he tried to do this as well Mar 22 12:34:25 Odaym: i know but i have to try at least once afterthat i'll do it like compile and run Mar 22 12:34:35 not what you're doing now exactly, but to be able to code Android from the command line Mar 22 12:35:11 Odaym: its not hard to code android app from command line i'm almost finsished with mine first app that is calculator ! Mar 22 12:35:32 boodllebat it's harder than it needs to be that's the point Mar 22 12:35:36 nice, a calculator app Mar 22 12:35:37 haha Mar 22 12:35:47 sell it Mar 22 12:36:02 Odaym: :P who would buy there are already millions of it Mar 22 12:36:09 then why make it Mar 22 12:36:19 to train? it's fine to do that Mar 22 12:36:25 Odaym: oh my first app just to practise Mar 22 12:36:29 you dont learn anything with a calculator app Mar 22 12:36:34 except maybe layouts Mar 22 12:36:45 the rest is computation and conditionals Mar 22 12:37:06 Odaym: i know java i'm just trying to work out with android layout and thingy's Mar 22 12:37:06 but learning like this is probably better than all the people here who want to build the next facebook or something Mar 22 12:37:19 all the people here? Mar 22 12:37:20 wat Mar 22 12:37:33 Odaym: previously i made a custom kernal wiht Hotplug enabled but it failed at somepoint Mar 22 12:37:50 Im sure you're a hotshot Mar 22 12:37:53 I mean the people who come here and ask stuff like "how do I send stuff to online save it" Mar 22 12:38:07 but you won't get far without an IDE, and asking things like that here won't get you much answers Mar 22 12:38:17 agreed Mar 22 12:38:27 Odaym: hmm it'll do for IDE as soon as i fix my Desktop Mar 22 12:38:37 there's a Vim plugin with IntelliJ Mar 22 12:38:39 it's very good Mar 22 12:39:11 me I still feel crippled when running around code sometimes, but not that much that I wish for Vim Mar 22 12:39:24 Odaym: no problem is that my laptop lags when i try using IDE's they are very heavy Mar 22 12:39:33 AS is heavy yes Mar 22 12:39:43 gear up Mar 22 12:39:44 sell your house Mar 22 12:39:48 Odaym: that's the reason i prefer vim otherwise i would have gone for IDE Mar 22 12:39:51 make Android app sell for $2 Mar 22 12:39:57 Odaym: lol Mar 22 12:40:18 how long did it take you to learn vim? Mar 22 12:40:25 I've tried many times Mar 22 12:40:59 the problem is that it doesn't show its winning features until you are a good at it..so its chicken and egg problem Mar 22 12:41:04 Odaym: its not like you should be only stick to vim go for emacs nano and many light in terminal editors are out there they are pretty cool Mar 22 12:41:18 yea nano is fine :P Im expert at nano Mar 22 12:41:20 haha Mar 22 12:41:41 Odaym: then its no problem cause all of'em looks same to me ! Mar 22 12:41:50 vim is not like nano Mar 22 12:42:01 when you first meet vim, you ahve to google "how to exit vim"... Mar 22 12:42:06 Odaym: lol Mar 22 12:42:16 cause you entered a config file by saying vim file Mar 22 12:42:26 Odaym: ahahahah Mar 22 12:42:28 some day... Mar 22 12:42:44 https://www.google.com/trends/explore#q=exit%20vim Mar 22 12:42:45 if I saw one of my idols using it, I'd use it Mar 22 12:42:53 until then, no Mar 22 12:43:05 hahaha memorion ! Mar 22 12:43:05 Odaym: i like sublime too. Mar 22 12:43:16 yea but there's a vim plugin for Sublime :P Mar 22 12:43:29 besides Sublime is dead-ish Mar 22 12:43:35 the guy stopped working on it I heard Mar 22 12:43:46 selling it for $80....what a nut Mar 22 12:44:08 he recently released some new updates I think Mar 22 12:44:42 I never got into web, since I started its been android or cross platform so I never found the need for sublime Mar 22 12:44:42 http://www.sublimetext.com/3dev Mar 22 12:44:44 Odaym: dont know i dont bother much about editors , its cool to me if it is close to terminal gives me mental satisfaction Mar 22 12:44:59 but still I wanted to buy it several times but always the price was way too high, the whole of Windows costs $80 Mar 22 12:45:29 oh I guess he's back on it Mar 22 12:45:43 Odaym: it works for free just click cancel when it prompts for payment :) Mar 22 12:45:58 yea but I mean to give him money for his effort Mar 22 12:46:06 its a great software Mar 22 12:46:32 but not $80 great Mar 22 12:46:33 :P Mar 22 12:46:37 Odaym: :P Mar 22 12:46:53 well, later Mar 22 12:46:56 hope you fix your issue Mar 22 12:46:59 Odaym: bye Mar 22 12:47:07 Odaym: yeah i'll do something Mar 22 12:48:04 bvc Mar 22 13:10:46 holy crap, google play must be broken =P i find it hard that "no one "uninstall" my app install count is 1961 / 1874 they must like it. i have never seen first number bigger than the last before. i assume this happens if they have it installed on more than one device Mar 22 13:22:16 Hey Mar 22 13:45:44 can someone explain why this http://stackoverflow.com/questions/14671453/catch-on-swipe-to-dismiss-event last code snippet doesn't work? Mar 22 13:49:37 Maybe someone can, if you can explain what about it doesn't work Mar 22 13:51:51 oops , my bad. the onReceive function doesn't execute Mar 22 14:00:40 joroci did you register your broadcastreceiver? Mar 22 14:00:50 my guess is you didnt. Mar 22 14:05:14 i did Mar 22 14:06:31 i read something about auto cancel so i set it to false, didn't work and now i read all notifications must be clear? Mar 22 14:06:45 post some code man Mar 22 14:07:41 hum Mar 22 14:08:54 sec Mar 22 14:09:48 I don't really understand this code, why are they using an implicit intent with a broadcast receiver instead of an explicit intent for an intentservice? Mar 22 14:09:56 maybe SimonVT can shed some light into this Mar 22 14:10:18 but personally I think you're better of just creating an intent service and explicitly call it in the pending intent Mar 22 14:11:27 does the user.home property work in android? Mar 22 14:13:11 as in "String home = System.getProperty("user.home");" Mar 22 14:14:44 http://pastebin.com/pCveHB4r Mar 22 14:14:46 this is the code Mar 22 14:18:21 first I think you should definitely ditch the broadcast receiver and use an intent service instead Mar 22 14:18:30 makes no sense to have a broadcast receiver for intents that you are setting Mar 22 14:18:33 in my opinion Mar 22 14:18:43 unless im missing some important information I feel this is the case Mar 22 14:19:08 anyone? Mar 22 14:19:32 Flaghacker, http://developer.android.com/reference/java/lang/System.html#getProperty(java.lang.String) -> user.home is not useful on Android Mar 22 14:20:13 jvrodrigues, thanks Mar 22 14:21:22 secondly joroci you are calling your broadcast receiver with an explicit intent, that makes even less sense Mar 22 14:21:29 you should register an intent filter Mar 22 14:21:30 for example Mar 22 14:24:27 com.yourapp.action.deletenotification Mar 22 14:24:31 hum Mar 22 14:27:05 joroci, what was the reasoning behind the broadcastreceiver/ Mar 22 14:27:06 ? Mar 22 14:30:02 Googling says not to use auto cancel http://stackoverflow.com/questions/13078230/notification-auto-cancel-does-not-call-deleteintent Mar 22 14:30:03 Try that Mar 22 14:33:06 if i receieve multiple notifications i want to display them in one item so i save the old messages when the user dismiss the notification i want clear what i saved Mar 22 14:33:11 want to clear* Mar 22 14:33:45 hey guys Mar 22 14:33:56 anyone could help ? Mar 22 14:34:37 i want to share messages over bluetooth but i dont know how.. Mar 22 14:34:48 like chating over bluetooth Mar 22 14:35:41 thanks SimonVT i did set autocancel to false but for someone reason it didn't work, it does now Oo Mar 22 14:52:44 still joroci I would advise changing to an intent service Mar 22 15:00:35 how to moneyterize app Mar 22 15:04:31 hello Mar 22 15:04:34 hello Mar 22 15:04:58 I have an app and dont know how to make money from it http://www.amazon.com/Virgo-Sun-SG-Wallpaper-service/dp/B00U6V9A3Q/ref=sr_1_1?s=mobile-apps&ie=UTF8&qid=1427006769&sr=1-1&keywords=wallpaper+service Mar 22 15:05:07 I wish I knew how to maek money from apps Mar 22 15:05:12 im afraid there is no money to be made Mar 22 15:05:31 just want to get some thing back Mar 22 15:05:38 we all do man Mar 22 15:05:48 so that we can maintain app Mar 22 15:05:52 but to better answer your question Mar 22 15:05:59 you can add ads/inapp purchases Mar 22 15:06:02 yeah jvrodrigues Mar 22 15:06:14 https://developers.google.com/mobile-ads-sdk/ Mar 22 15:06:40 Hi, I am new to android development and I got a small problem. I have a indeterminate progress bar(spinner) and a list view in my activity. If I add an item to the listview adapter the spinner hangs for a short time. Is adding one listitem that challenging for the UI? Mar 22 15:06:51 https://developer.android.com/google/play/billing/index.html -> in app billing Mar 22 15:06:52 in fact I hate ads Mar 22 15:07:32 mathiask88, depends on your item, and depends on what it does, and depends on the device. Mar 22 15:07:39 but short answer: it can be Mar 22 15:07:50 I have had a listview hanging my UI for a good 3 seconds Mar 22 15:08:22 thanks man jvrodrigues Mar 22 15:09:22 no worries VirgoSun , once you realize there is no money to be made, you're welcome to come live below the bridge I live in, theres a coffee show nearby where you can steal your internet from and I managed to make an illegal pull of the electric wires nearby Mar 22 15:09:35 its fun being a homeless coder Mar 22 15:09:52 My app just call shared pref and i delay my ui considerably Mar 22 15:10:49 jvrodrigues: Item is just two strings each in one row, so quite simple and device is a S4. Hm.. ok however I saw apps that does not hang on adding items to a listview, thats odd. Mar 22 15:11:08 hehe you r genuin jvrodrigues Mar 22 15:11:57 mathiask88, thats highly unusual... Is your app not doing anything else on the background (but still on the main thread)? Mar 22 15:13:51 The main activity executes an AsyncTask that is broadcasting a UDP message and listens for response. On response the onProgressUpdate is called and this is adding one item to my ListView Adapter. Thats all. Mar 22 15:16:09 jvrodrigues: we still make app, it save a lot of spending for friend, for fun, etc etc.. Mar 22 15:18:26 I also want to own something trendy to share with my friend such as image processing, Mar 22 15:19:51 programming skill is good but i think algorithms and idea, make the app different Mar 22 15:21:52 VirgoSun, ya, thats cool and people still pay good money for android development, its independent apps that dont do much money Mar 22 15:22:02 unless you're very lucky Mar 22 15:22:26 and when it comes down to it, it's all about luck in the independent app monetize world Mar 22 15:23:16 What is the best way to send things like passwords to a PHP script to authenticate a user if the database stores the password encrypted? Would it be to encrypt the password on the device and send it and do a string comparison? Mar 22 15:25:10 yeah, about you, how do you design app. if u r interested in some subject then do you create new app? some time I feel tired and just want to extent current app Mar 22 15:25:58 now I want to to finger count jvrodrigues Mar 22 15:26:56 hey, anybody usgin amlcurran's ShowcaseView (from github) Mar 22 15:27:09 I think it feasible , it has been available in tv Mar 22 15:27:17 wanna know what's the attribute name to change the content Text color Mar 22 15:27:45 i dont know abara Mar 22 15:28:10 VirgoSun: ok! lets see if someone know @_@ Mar 22 15:28:54 is there anyone have the same interested in computer visual , hand gesture Mar 22 15:28:56 jvrodrigues: Thanks for your help, think I have to go on googleing ;) Mar 22 15:36:31 mathiask88, if you post some code I might be able to further help you ou Mar 22 15:37:25 VirgoSun, Im a fulltime android dev at a local startup, I do enjoy doing stuff here and there on my free time Mar 22 15:37:29 right now games :D Mar 22 15:38:39 about hand gesture, its definitely feasable, you might want to see the face recognition classes in the sdk, might have some hints on what to do Mar 22 15:38:44 hi Mar 22 15:38:57 i try upload file from android to django Mar 22 15:38:58 http://dpaste.com/1MMQ3JV Mar 22 15:39:15 but request.files are always empty Mar 22 15:39:28 can anyone give me a glue Mar 22 15:39:58 here is my request.meta Mar 22 15:39:58 http://dpaste.com/26TKWFZ Mar 22 15:42:29 any idea? Mar 22 15:45:52 ther is no ide? Mar 22 15:45:56 idea? Mar 22 15:46:11 is what we need! Mar 22 15:50:36 there is really no idea? Mar 22 15:53:28 i have mine Mar 22 15:53:36 do you have yours? Mar 22 16:01:53 no, i really don't know why above code don't work? Mar 22 16:02:05 jvrodrigues: Did you get the link? Mar 22 16:02:16 DrBenway,everything seems ok, Mar 22 16:11:26 What is the best way to send things like passwords to a PHP script to authenticate a user if the database stores the password encrypted? Would it be to encrypt the password on the device and send it and do a string comparison? Mar 22 16:11:39 Or would it be to send a hashed value and compare? Mar 22 16:12:14 Assuming no collisions (I'd use a decent enough hashing algorithm, not md5) that shouldnt be a problem? Then I could store the hash if it is unique. Mar 22 16:17:10 Anthaas: You would normally hash the password string entered...in terms of authentication, you can then hash the password string entered again and check it against the hashed value in the database Mar 22 16:18:09 So hash it client side and compare it server side to the already hashed value? Mar 22 16:18:58 ill give you guys have 10 seconds to justify why adjustviewbounds doesnt default to true. protip: you cant. Mar 22 16:19:03 So, thats the password, I'm guessing all other things, like email address, should be encrypted rather then hashed? Mar 22 16:21:23 Anthaas: Submit the password client side, hash the password server side and compare it server side to the already hashed value Mar 22 16:22:02 Anthaas: You don't need to encrypt/hash other things like email addresses. This can slow down performance of the database Mar 22 16:22:17 only do this if it is absolutely necessary Mar 22 16:42:01 please help me about this uestion http://stackoverflow.com/questions/29197018/empty-request-files-when-uploading-file-from-android-client Mar 22 16:44:46 MetatronG: Sorry, internet disconnected. So I send the password in plain text to the server? Mar 22 16:50:14 can some one help me about this question Mar 22 16:50:25 http://stackoverflow.com/questions/29197018/empty-request-files-when-uploading-file-from-android-client Mar 22 17:11:28 I'm having some trouble using File.mkdirs() on Lollipop. I create a legit file path on /storage/sdcard/ but calling mkdirs() returns false every time. anyone have experience with this? Mar 22 17:11:56 this code works fine on earlier versions Mar 22 17:14:21 MetatronG: Sorry, internet disconnected. So I send the password in plain text to the server? (Sorry for the repeated message, just a bump :D ) Mar 22 17:16:37 I want to upload a picture from my app to a php server. All I need is to associate a byte array with a string ID (to mimic this web form: http://phishcave.com/dumb ). Can someone tell me how to associate a ByteArrayEntity with a String before sending it with org.apache.http.client.methods.HttpPost? Mar 22 17:17:18 googling only shows how to send forms with strings, not binary data Mar 22 17:18:03 Dont send as binary, send it as a base64 encoded string Mar 22 17:18:14 Decode it the other end. Mar 22 17:18:44 but what if I can't change the other side? Mar 22 17:18:52 I just want to act like a web browser Mar 22 17:35:20 how do i filter multiple words in android studio log cat filter? Mar 22 17:37:14 You can use regexes in filters (the ones created by Edit Filter Configuration). Not sure whether you can use them in the visible text field (checking now). Mar 22 17:37:50 Apparently not. Mar 22 17:37:51 so | for additional word? Mar 22 17:38:12 hwow do i do a|b like in eclipse? Mar 22 17:38:56 I have a custom data container with 8 list arrays, one of which I am trying implement a mergesort for that the other 8 will reflect Mar 22 17:39:51 Should I combine them all into one big list array and sort that, or mergesort the one list who I am comparing to and then change everything based on my conclusions, or what? Mar 22 17:40:08 I am not sure how to approach the problem Mar 22 17:41:23 Nick-S: As you'd know if you tried it, yes. Mar 22 17:41:34 i treid Mar 22 17:41:37 it didnt work Mar 22 17:42:52 wORKS HERE. Mar 22 17:42:54 Works here.* Mar 22 17:43:19 Collections.sort implements MergeSort Mar 22 17:43:26 Arrays.sort implements QuickSort Mar 22 17:43:33 Hey guys can I run an enhanced for loop on a List Mar 22 17:43:39 yes Mar 22 17:43:39 hey all I want to make a site to fill webform and press the submit button is there something to help Mar 22 17:44:24 what should i do Mar 22 17:44:37 Can you explain what you want? Mar 22 17:46:05 I have a site that have two textfield username and password and a submit button I want to make an android app to use that site to get data after login Mar 22 17:46:22 Ok Mar 22 17:46:32 So does the website you have submit to a MYSQL database? Mar 22 17:46:44 yes Mar 22 17:46:58 i can give you the link if you want Mar 22 17:47:00 Ok, so you want to pull from the database using the android app Mar 22 17:47:07 I was under the impression that android primarily used timsort? Mar 22 17:47:26 never actually checked the source though.... I should do that some time. Mar 22 17:47:56 for some reason, the scrollbar in my listview is larger than the screen itself :S Mar 22 17:48:09 making it scroll beyond the limits of the screen and disappear Mar 22 17:48:12 xyz87 go ahead and give me the link Mar 22 17:48:15 confused Mar 22 17:48:58 www.aul.edu.lb/stdport Mar 22 17:49:30 I cannot access that site man Mar 22 17:51:54 cool anthaas but I was hoping to implement it myself Mar 22 17:53:47 groxx: Collections and Arrays are Java classes. Mar 22 17:55:29 ? Mar 22 17:57:28 TheKarlBrown: Sorts would be better performed on arrays, not Lists. Mar 22 17:58:31 I figured out a diff solution, I need to redo my data container Mar 22 18:00:16 I take all I said about the sorting algorithm back by the way Mar 22 18:00:32 Turns out its a dual-pivot quicksort adapted from TimSort! Mar 22 18:00:37 Used to be MergeSort. Mar 22 18:01:56 Anthaas: in what? Android's implementation? Or oracles? Or openjdk's? Mar 22 18:02:07 Oracles Mar 22 18:02:20 well, that has nothing to do with what's running on the device then :) Mar 22 18:02:29 I realise this Mar 22 18:02:34 I wonder what OpenJDK uses Mar 22 18:03:01 Ahh TimSort Mar 22 18:03:01 I'm pretty sure Android uses timsort, as groxx mentioned. Mar 22 18:03:13 Yeah, apologies Mar 22 18:05:26 Was always curious as to why there is no built in swap method for ararys Mar 22 18:05:27 arrays Mar 22 18:05:32 Either in System or Arrays. Mar 22 18:11:53 Hii Mar 22 18:12:14 why my android app name is same as the first activity that is launched Mar 22 18:12:24 not the android:label Mar 22 18:14:10 lxknvlk: Say what now? Mar 22 18:14:48 in my android manifest i have a android:lavel=name Mar 22 18:15:10 but this is not what i see on homescreen of the device Mar 22 18:15:23 there under app icon i see the name of the activity Mar 22 18:15:42 lxknvlk: because the icon is for the activity, not the app Mar 22 18:16:04 e.g. you can have multiple main activities, i.e. multiple icons in the launcher Mar 22 18:16:17 * Felishia peeks Mar 22 18:16:30 * JesusFreke pokes Mar 22 18:17:05 no! Mar 22 18:17:13 no? Mar 22 18:17:14 the application icon Mar 22 18:17:18 yes. Mar 22 18:17:18 is one Mar 22 18:17:23 In the launcher? Mar 22 18:17:30 the image that is shown Mar 22 18:17:31 in the app drawer? Mar 22 18:17:33 mmm I have a little issue, I just need creative ideas, I have a program I imagined as a kid, properly written as a teen and now I want to create the pro version of it... problem it, that it performs a huge load of calculation... and I want it for phones. Mar 22 18:17:33 in the device menu Mar 22 18:17:39 oh, in app settings? Mar 22 18:17:40 what can I do? I'd love to develop using javascript and html Mar 22 18:17:46 but guess what... it's slow for this Mar 22 18:17:52 otherwise python Mar 22 18:17:59 but meh, android apps can't easiliy run python source code Mar 22 18:18:06 javascript just because cordova Mar 22 18:18:25 If it is complex, get your server to perform the calculations somehow, and send the results back? Mar 22 18:18:30 lxknvlk: can you post a screenshot, just so we're clear? :) Mar 22 18:19:14 Felishia: why not write it in java? :) Mar 22 18:20:32 Ihttp://postimg.org/image/q5v7yz067/ Mar 22 18:20:38 JesusFreke, it would take me more to develop, much more... I know java, I'm very good at it, but I'm slow with it, specially considering I use much of the javascript Object["method"] stuff or python's getAttribute that is a pain to get in Java and one has to implement a lot of classes Mar 22 18:20:39 this is the app icon and its name Mar 22 18:20:47 Felishia: but in any case, if you really wanted to, you could probably write the performance critical parts in java/c, and then host the html parts in a webview Mar 22 18:20:48 I just want to think in math mode less than in programming mode Mar 22 18:21:04 JesusFreke, I was thinking of cython Mar 22 18:21:12 lxknvlk: yes, that's your activity Mar 22 18:21:32 Your application could have multiple main activities, e.g. multiple icons on that screen Mar 22 18:21:35 http://postimg.org/image/q5v7yz067/ this is the app icon and its name below. But in my android manifest application node in android:label there is another name. How to change this name? Mar 22 18:21:40 so the icon has to be tied to the activity, not the app Mar 22 18:21:46 but I'm a bit confused with it there's something in the NDK about cython... yet I don't see any reference on how to compile cython code into c++ for an android library to call in java I guess using JNI Mar 22 18:21:52 otherwise, you couldn't use a different icon for the different activities Mar 22 18:22:32 lxknvlk: Your main activity is the entry point of the application. You should set it's name and icon to whatever you want to show up on the screen you showed. Mar 22 18:22:34 c++ or c Mar 22 18:23:12 Felishia: no clue, sorry :). The only python on Android that I'm aware of is in the "android scripting environment" thingy. Mar 22 18:23:55 SL4A yeash I know Mar 22 18:24:10 no use for this :( Mar 22 18:24:11 yeah, that Mar 22 18:24:15 yeah, I figured. hehe Mar 22 18:24:33 I know some ways actually but they are not really good Mar 22 18:24:36 such as jython Mar 22 18:25:03 You gotta be adaptable. If you want to create a decent Android app, learn Java. Mar 22 18:25:09 I've made python code run "kinna natively" on java before Mar 22 18:25:13 TacticalJoke, I know java Mar 22 18:25:17 TacticalJoke: ! Mar 22 18:25:25 what's up with the reddit app Mar 22 18:25:44 It's my daily driver now, thepoosh. :D Though it's taking forever. Mar 22 18:26:00 I WANT AN ALPHA! Mar 22 18:26:05 let me test your stuff Mar 22 18:26:07 no-homo Mar 22 18:26:11 lol Mar 22 18:26:36 hmmmm, when and how are ListView scrollbars calculated? Mar 22 18:26:39 Okay, I'll try to release some kind of alpha at some point in time. (How's that for a guarantee. :D) Mar 22 18:26:54 TacticalJoke before christmas ? Mar 22 18:27:13 Yeah, that gives me plenty of time. :D Mar 22 18:27:38 in Hebrew there is a saying "I'll get it to you right after holiday season" Mar 22 18:27:41 which is never Mar 22 18:27:49 wasn't that ongoing with perl ... just larry wall never said xmas of the specific year :D Mar 22 18:28:00 perl Mar 22 18:28:09 * thepoosh pukes on the side Mar 22 18:28:24 haha :3 Mar 22 18:28:29 thepoosh, regex :3 Mar 22 18:28:43 seems like even java adopted them from perl :p Mar 22 18:29:26 eh? it's not like perl invented regexs or anything Mar 22 18:29:32 and that is probably why they look so bad Mar 22 18:29:37 unless you're talking about the syntax or something Mar 22 18:29:39 ahahasdhdasd XD omg Mar 22 18:29:44 yeah Mar 22 18:29:46 and no-one can understand them Mar 22 18:29:51 that killed me Mar 22 18:30:10 btw, regex is basically automated machines 101 Mar 22 18:30:17 and standard languages Mar 22 18:31:09 it's the whole Chomsky hierarchy Mar 22 18:31:16 i remember that Mar 22 18:31:19 yeah regex guide!... google "regex for (what do you want the regex for) (P. language) [description]" Mar 22 18:31:19 almost flunked it Mar 22 18:32:03 wait P. language is optional too... regex are pretty general Mar 22 18:32:08 That was one of my favorite classes :) Mar 22 18:32:13 regex is very misused though Mar 22 18:32:19 or people at least try to use it in the wrong way Mar 22 18:32:42 I need help parsing html with regex! Mar 22 18:32:44 * JesusFreke ducks Mar 22 18:32:57 count all the spaces in a string .count(/\s/g) Mar 22 18:33:00 XD Mar 22 18:33:25 I try to avoid regexes at all costs. But occasionally they're the lesser evil. Mar 22 18:34:11 anyway... just had lunch, let's research of that ndk stuff Mar 22 18:34:31 Felishia: I don't see why you're disinclined to use Java here. What kind of computation are we talking about? Mar 22 18:34:49 well, you can always use something like ragel instead :) Mar 22 18:35:02 \o/ Mar 22 18:35:08 but obviously not nearly as easy to use for a quick one-off thing you need to do Mar 22 18:35:39 JesusFreke: it's one of my favourites now Mar 22 18:35:47 that i have my fegree Mar 22 18:35:48 TacticalJoke, it's music in a mathematical context, like an AI, I don't really want to think about syntax... it's such a long code, just the explanation took me 500 pages in such lil font Mar 22 18:35:50 *degree Mar 22 18:36:12 Felishia: I learned AI writing in CLISP Mar 22 18:36:14 so it's basically a library, expects some input to produce a file output Mar 22 18:36:24 it was music to my parenthesis Mar 22 18:36:27 a library made of a function Mar 22 18:36:36 I have an example somewhere Mar 22 18:36:39 it's not a big deal Mar 22 18:36:41 lemme see Mar 22 18:37:29 that was the AI (sorta stuff) I made as a teen :3 Mar 22 18:37:44 meh where can I upload it? DX Mar 22 18:39:05 I don't trust any of the stuff I made as a teen. :D Mar 22 18:39:30 Though I guess it wasn't *all* bad. Mar 22 18:39:54 Different AI to me :/ Mar 22 18:40:02 mmm look I think this would be the choice... it uses cython actually, according to some weird guys at stackoverflow http://kivy.org/ Mar 22 18:40:08 Did a small bit of Machine Learning with WEKA Mar 22 18:40:16 Some planning with PDDL and Prolog Mar 22 18:43:30 Felishia: have you ever heard of "live coding"? Basically a form of interactive, real-time, algorithmic music synthesis Mar 22 18:43:41 Anyone know of a Blowfish library for Android? Mar 22 18:43:44 JesusFreke, nope where? :o Mar 22 18:44:14 There are a lot of software platforms built for that, which you might find useful for your project. Although, I don't know if there are any specifically for android Mar 22 18:44:27 Felishia: http://toplap.org/about/ Mar 22 18:44:52 Was that message directed at me or Felishia? Mar 22 18:45:03 here's an interesting TED talk about it: https://www.youtube.com/watch?v=GSGKEy8vHqg Mar 22 18:46:37 http://s000.tinyupload.com/index.php?file_id=51204986082814481405 Mar 22 18:47:12 that's it :3 not so good, I plan this new version to be better, I'm much more knowledged now than when I was a teen, mmm... I'm much more knownledged now than one year ago LOL Mar 22 18:47:25 actually two months ago... Mar 22 18:47:41 Felishia: not bad! :) Mar 22 18:48:33 calling finish(); doesnt close my app. In some scenarios when i click exit button that calls finish(); the activity just blinks, whats wrong? Mar 22 18:49:04 But yeah, definitely check out some of the software used for live coding, I suspect you'll be able to implement your idea much more easily in them Mar 22 18:49:05 I want the new one to be a rockstar... this AI is just flute, guitar, drums, sound pretty tropical... I want something that can call the attention of the youth easily; to release that app in the play store. Mar 22 18:49:23 lxknvlk: Have you got multiple instances of the same activity on the stack? Mar 22 18:49:23 JesusFreke, I'm reading Mar 22 18:49:45 Anthaas: it is possible, but i am not sure Mar 22 18:49:45 They're designed specifically for algorithmic music composition :) Mar 22 18:50:05 lxknvlk: When you launch a new activity, do you add any flags? Mar 22 18:50:11 Such as SINGLE_TOP Mar 22 18:50:21 no Mar 22 18:50:25 Try it. Mar 22 18:50:26 Not that I actually know all that much about them. Mostly just what's on the TED talk. hehe Mar 22 18:50:26 should i? Mar 22 18:50:53 SINGLE_TOP flag ensures that if an instance of the acitivty you are launching is already at the top of the stack then another instance is not added on top. Mar 22 18:51:50 i.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); Mar 22 18:51:50 startActivity(i); Mar 22 18:51:53 like this? Mar 22 18:52:04 Felishia: I'd be curious to see what you come up with eventually. Do you have a blog or twitter or anything? Mar 22 18:52:06 Yeah Mar 22 18:52:17 or addFlag Mar 22 18:52:31 Anthaas: should i do this with all activities? Mar 22 18:52:39 Only activites where it makes sense Mar 22 18:52:47 Other flags also exist, you should be aware of them Mar 22 18:52:59 For example CLEAR_TOP makes the acitivty you are launching the only activity on the stack, and removes all others. Mar 22 18:53:00 but how to set such a flag to the main activity that is called when app starts? Mar 22 18:53:06 So if you close that activity, you close the app Mar 22 18:53:19 It is the only activity on the stack when it starts so it isnt necessary Mar 22 18:53:25 Felishia: or a summary of your algorithm or something :) Mar 22 18:53:32 JesusFreke, I used to have a git account with all the information, but not really... I'm mostly a hidden coder. Mar 22 18:53:35 JesusFreke, actually Mar 22 18:54:04 Anthaas: thanks Mar 22 18:54:13 it was kind of sad what happened but I throwed it when a teacher made me cry insulting that the code was impossible Mar 22 18:54:30 heh Mar 22 18:54:32 yet I did that proto, and it worked... but I lost all the data Mar 22 18:54:35 Your teacher is an asshole Mar 22 18:54:36 Anthaas: if i do .setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); when starting new activity, will the called activity be the only one ? Mar 22 18:54:38 doh :( Mar 22 18:54:40 yeah, seriously Mar 22 18:55:07 Insulting anybody who gives something a good effort, tries, and wants to succeed and learn is the most assholeish thing you can do. Mar 22 18:55:30 lxknvlk: Yeah, itll be the only one on the stack. Mar 22 18:55:33 JesusFreke, I'm not sure if to set it free or not, because my brother wants it, he made me delete the repos on github, he says he may be able to get some scholarship for me or something so I shouldn't share the source code with anyone. Mar 22 18:55:41 So if you close it once its launched, you will close your app instead of returning to a previous activity. Mar 22 18:56:43 Felishia: I wouldn't think that would matter. Open source code isn't any less valuable than closed source code. but in any case, no worries :) Mar 22 18:56:58 JesusFreke, I actually want it open source :< Mar 22 18:57:02 it used to be there Mar 22 18:57:08 well the proto Mar 22 18:57:21 seems that only one person ever read it Mar 22 18:57:40 Felishia: personally, I'm a huge fan of open source code. And in fact, an open source project of mine played an important part in getting me my current job :) Mar 22 18:57:51 I think opensource code is the best actually... but I don't want people to take advantage of that Mar 22 18:58:07 JesusFreke, I had jCheetah :p yep that got me in the job, working for a silicon valley company from venezuela Mar 22 18:58:20 hah, nice :) Mar 22 18:58:27 I was ridiculously poor Mar 22 18:58:30 JesusFreke i think it also had something to so with the unicycle Mar 22 18:58:37 and the oral sex Mar 22 18:58:39 :P Mar 22 18:58:45 s/so/do Mar 22 18:58:53 Anthaas: my tongue was all up in that didgeridoo Mar 22 18:58:59 Hahaha Mar 22 18:59:31 Theres an instrument I dont get. Mar 22 18:59:42 didgeridoo is awesome :) Mar 22 18:59:44 didgeridoo is fascinating Mar 22 18:59:47 no internet service, old clothes, most time on the streets, I'd always carry a python book, then I learned javascript, html, css, java, c++, LaTeX, SQL... and woah, I suddenly wasn't poor anymore when I got a call some CEO guy read my code and wanted me to code kid's games for ios and android. Mar 22 18:59:54 https://www.youtube.com/watch?v=LDISXCBUXhg Mar 22 18:59:55 :D Mar 22 18:59:56 God knows Ive tried blowing down them, but its like Im just blowing down a tube. Mar 22 19:00:00 I feel like a tit and give up Mar 22 19:00:03 cool story Felishia Mar 22 19:00:17 Felishia: that's awesome :D Mar 22 19:00:22 it's difficult to use the didge, but when you get it it's fine Mar 22 19:00:35 learning is not even curved on a didge Mar 22 19:00:51 well except for circular breathing Mar 22 19:01:07 Odaym, for many of us it's like that... poor latin neighbourhood, most kids live like that... only some succeed, the others become criminals, whores, who knows... I tried not to. Mar 22 19:01:08 Yeah, to me that shouldnt be possible. Blowing in and out at the same time. Mar 22 19:01:18 yea Im poor too, so Mar 22 19:01:20 lol Mar 22 19:01:23 everyone's poor Mar 22 19:01:29 Odaym, in the US... poor? :p Mar 22 19:01:33 Felishia: Everyone gets to where they get somehow. Mar 22 19:01:33 cm'on! Mar 22 19:01:34 in Lebanon Mar 22 19:01:38 I just speak English Mar 22 19:01:39 :o Mar 22 19:01:44 woah... yeah... Mar 22 19:01:58 sorry! Mar 22 19:01:59 :p Mar 22 19:02:03 for being in Lebanon? haha Mar 22 19:02:03 I only know 3 lebanese people. You. My old French teacher. And that porn star. Mar 22 19:02:15 her breasts are fake, I was so sad when I heard Mar 22 19:02:21 Odaym, no, for understimating your situation because I thought you were american Mar 22 19:02:24 Doesn't stop me enjoying them haha Mar 22 19:02:36 I cant...they're not real! Mar 22 19:02:44 But....boobs. Mar 22 19:02:45 Anthaas: you "store" air in your mouth and blow it out with your cheeks, while you breath in with your nose. while you're breathing in with your nose, your mouth is closed off from your throat with the back of your tongue. So it's basically two separate "pathways" Mar 22 19:02:52 suree but......eh, what're you gonna do Mar 22 19:02:58 android-dev | topic is boobs! :D Mar 22 19:03:03 the only way I got circular was when I saw it in a drawing Mar 22 19:03:12 JesusFreke: I just tried it, the second I try breathing in I lose all air in my mouth. Mar 22 19:03:16 what actually happens as the air goes in and whatnot, when I saw it I understood and never looked back Mar 22 19:03:28 it's like when you want to make fart sounds Mar 22 19:03:39 you use the air in the cache, you dont query the db Mar 22 19:03:49 I just did it Mar 22 19:03:57 in that time, you breath Mar 22 19:03:58 +e Mar 22 19:03:58 The only bit that stops me is when I go from breathing in to back out again Mar 22 19:04:04 It clicked for me when I noticed a person playing, that they exhaled just before taking a breath Mar 22 19:04:29 so I learned to do the quick "bounce" breaths first, then learned to slow it down and do the smoother "typical" circular breathing Mar 22 19:04:46 what my problem with the didge is that it's not an original didge, its used as a decoration piece at the place where I bought it Mar 22 19:04:54 they dont know its a musical instrument, cost me $5 Mar 22 19:05:01 hehe Mar 22 19:05:04 original costs up to $150 and $500 even Mar 22 19:05:12 well, I started on a piece of pvc pipe :) Mar 22 19:05:18 so you listen to ambient stuff? Mar 22 19:05:26 I love the sound of the Hang Drum Mar 22 19:05:29 steve roach and stuff? Mar 22 19:05:32 oh, hang drum is awesome Mar 22 19:05:32 It sounds incredible. Mar 22 19:05:43 hey i'm having a problem with google maps, anyone able to help? my map works fine when I debug from the IDE but when I sign the apk with a release key and install to my device using adb, the map no longer draws any pins Mar 22 19:05:45 I've got to play one before :D Mar 22 19:05:48 Odaym: a bit Mar 22 19:05:49 Could listen to that all night Mar 22 19:06:01 Odaym: http://www.instructables.com/id/Leather-Didgeridoo/ :D Mar 22 19:06:06 I made them from leather for a while Mar 22 19:06:22 because the hash to use Google Maps has to be done using that keystore you used to sign the APK with, Tacticalmind Mar 22 19:06:32 not the one you produced with the keystore.debug key Mar 22 19:06:50 have to add that key on the Developer Console Mar 22 19:07:13 * Felishia peeks Mar 22 19:07:38 I've done that already, i replace the key appropriately whenever i sign with release key. The problem that that would cause would be nothing drawing in the map at all just an empty box Mar 22 19:07:48 For me it actually draws the map just no pins on it for any locations Mar 22 19:07:59 honestly I faced this too Mar 22 19:08:14 I feel like I'm watching my doppelgänger. Mar 22 19:08:18 I had the appropriate key on the console and still when using the signed apk it would not function as the debug key Mar 22 19:08:35 but back then I left it cause it wasnt something I needed to get done, but I am still sure that this is the only way to do it Mar 22 19:08:38 is there a way to temporarily change the navigation icon on a Contextual Action Bar Mar 22 19:10:47 funny enough tacticaljoke i'm a twin irl Mar 22 19:11:11 oh god I didnt notice Mar 22 19:11:15 Tacticalmind, TacticalJoke :o Mar 22 19:11:19 I thought he said Im watching my doppleganger Mar 22 19:11:20 haha Mar 22 19:12:24 that's a really nice didge Mar 22 19:12:54 the maker seems like a pro Mar 22 19:13:16 oh that's you JesusFreke Mar 22 19:13:17 lol Mar 22 19:13:25 Odaym: hah, thanks :p Mar 22 19:13:32 man how'd you do that Mar 22 19:13:41 seems very difficult and needs tools Mar 22 19:13:45 well, I describe it in painstaking detail in the instructable :p Mar 22 19:13:50 yea 17 steps :P Mar 22 19:13:55 one guy did it though Mar 22 19:14:03 a few have, I think Mar 22 19:14:20 17steps1guy Mar 22 19:14:31 you have a house near trees and everything Mar 22 19:15:04 Well, a condo. And that was like 1 of 2 trees in the common area out back. lol Mar 22 19:15:10 Don't live there anymore though Mar 22 19:18:46 you program with the same care and knowledge? Mar 22 19:18:52 Are you guys into classical much? I saw Kissin playing at the Barbican on Friday: Beethoven (Waldstein), Prokofiev, Chopin, Lizst, etc. Was awesome. :) Mar 22 19:19:04 Liszt* Mar 22 19:19:15 Theres one piece by Liszt I really like Mar 22 19:19:29 I like Einaudi, not really sure if you can call him classical though Mar 22 19:19:36 I like madame butterfly! Mar 22 19:19:47 La Campanella thats the one Mar 22 19:19:52 Yeah, Einaudi is nice. Mar 22 19:20:10 Kissin playing La Campanella: https://youtu.be/M0U73NRSIkw Mar 22 19:21:10 Hmm Mar 22 19:21:17 He seems to bounce between certain keys. Mar 22 19:21:25 Gives it an odd character Mar 22 19:22:06 I say bounce. I get that the music has that character to it, but he seems to exaggerate it more than some ive seen Mar 22 19:22:19 Dat technique at the end doe. Mar 22 19:22:44 Haha how he appears to just be slapping the piano? Mar 22 19:22:54 Yeah. lol Mar 22 19:23:22 Imagine how many words per minute he could get hahhaa Mar 22 19:24:19 TacticalJoke: more neo-classical than ye olde classical :) Mar 22 19:24:25 That's the kind of piece that can injure a pianist. lol Mar 22 19:24:26 e.g. ymusic Mar 22 19:24:44 https://www.youtube.com/watch?v=semrHlvUpTc Mar 22 19:24:44 I like some neo stuff. :) Mar 22 19:25:26 This is... different. :D Mar 22 19:26:31 That poor trumpet player though. He's obviously losing his chops by the end of the piece Mar 22 19:27:50 haha Mar 22 19:31:16 When I google "la campanella difficulty" I see forums full of people saying "It's not that hard". Srsly? That looks like a pure-virtuoso piece to me. Mar 22 19:31:22 It'd be interesting to hear those people playing it. Mar 22 19:31:34 Hahaha, my response would be "Go on then..." Mar 22 19:31:44 I guess there is playing it, and playing it well. Mar 22 19:33:41 Yeah. I kinda feel that almost anyone could be trained to play the right note at the right time for pretty much anything. Mar 22 19:33:59 Though we'd have to make exceptions for things like some of the Chopin etudes. Mar 22 19:35:31 I dont have a musical bone in my body. I can repeat what someone does on a keyboard, but that is it. Mar 22 19:35:40 A good example is that K545 by Mozart. It's known as a beginner's piece, and there are countless beginners on YouTube claiming to be able to play it. But it's a very advanced piece, and it takes someone really good to even begin to play it well. Mar 22 19:37:04 try playing Bouree on guitar Mar 22 19:37:08 "as a beginner" Mar 22 19:37:08 hehe Mar 22 19:37:11 so difficult Mar 22 19:37:12 Another favorite of mine (on piano): https://www.youtube.com/watch?v=LNyJ96w7A7U Mar 22 19:37:19 This is an interesting conversation to come into... Mar 22 19:37:32 Radther_: yeah, we've.. uh. strayed a bit off-topic. lol Mar 22 19:37:34 Try playing Shostakovich on Triangle Mar 22 19:37:41 #android-offtopic is a hassle to go to Mar 22 19:38:04 I understand, offtopicness can't be forced, it just happens. Mar 22 19:38:11 yep Mar 22 19:39:03 So how's everyone? :) Mar 22 19:39:27 not millionaires yet Mar 22 19:39:29 so we're still here Mar 22 19:39:47 Ok thanks, trying to work out a good way of handling logging users into an app (password), handling sending it, receiving it, comparing to a database and storing in a database Mar 22 19:39:52 Everyone has a different answer Mar 22 19:39:58 Don't lie. Even if you were millionaires you'd still be here. Mar 22 19:40:30 Depends on how much of a millionnaire. Mar 22 19:40:30 Can't get enough android development. Mar 22 19:40:33 come into work 9 AM as the CEO of some big overnight app company, fire up IRC and come here to ask about resizing an image Mar 22 19:40:34 haha Mar 22 19:41:23 9am? Mar 22 19:41:23 You'd have all the money in the world, but a nagging voice will be saying in your head "you need to fix that bug" Mar 22 19:41:25 You are CEO! Mar 22 19:41:28 9:15 earliest! Mar 22 19:41:44 that voice Mar 22 19:42:00 you never really respect yourself until you fix all bugs Mar 22 19:42:03 lol Mar 22 19:42:42 Alas, it is impossible to fix them all. Mar 22 19:43:10 Anthaas: What about using google authentication. Saves a lot of the hassle. Mar 22 19:43:15 in my previous company there is still one bug that I know which I didnt get around to fixing Mar 22 19:43:33 That must be the worst, knowing it's still there. Mar 22 19:43:40 yea its still there Mar 22 19:43:44 Radther_: Can you explain? Mar 22 19:43:54 yea why are you worrying about logging in Mar 22 19:43:59 login with google, done Mar 22 19:44:30 Anthaas: https://developers.google.com/accounts/docs/MobileApps Mar 22 19:44:40 Anthaas and watch this https://www.youtube.com/watch?v=8ZtInClXe1Q Mar 22 19:44:42 Can that be done iOS side and web? Can users register their own username etc? Mar 22 19:44:50 they dont need to, man Mar 22 19:45:10 you just keep track of their name and email address which you will be able to extract when the login is done Mar 22 19:45:34 memorion: the only better computerphile video is the one about dates Mar 22 19:45:37 Oh. That'd be good, actually. Mar 22 19:45:50 thepoosh yeah that's awesome Mar 22 19:47:25 Just disconnected. Not sure what happened there. Mar 22 19:48:21 This video about passwords is pretty good. Mar 22 19:51:33 if i'm using a token for my rest api, is there a reason not to use is at the password in http basic auth? the connection is https with a pinned cert so no concerns about cleartext. Mar 22 19:51:42 Hey guys! I cannot get the application that I wrote in Android Studio to launch on my android device. Here is a log from the Run: http://paste.ubuntu.com/10654800/ Mar 22 19:52:04 It says there is a permission denial. I don't know what tht it supposed to mean Mar 22 19:53:00 wilornel: did you put MAIN and LAUNCHER intent filters into your android manifest for activity SettingsActivity? Mar 22 19:53:24 two entry points Mar 22 19:53:38 http://stackoverflow.com/questions/4162447/android-java-lang-securityexception-permission-denial-start-intent Mar 22 19:53:53 wilornel: This may help. http://stackoverflow.com/questions/4162447/android-java-lang-securityexception-permission-denial-start-intent Mar 22 19:54:14 Oh, looks like we posted the same link Odaym... Mar 22 19:54:23 yea, first result Mar 22 19:54:24 haah Mar 22 19:54:42 shouldn't posted anything, he should be googling that Mar 22 19:54:46 shouldn't have Mar 22 19:54:51 shouldn't've Mar 22 19:54:51 didn't know about exported, that's useful to know Mar 22 19:55:05 shouldn't've'en Mar 22 19:55:13 I mean, there's no direct answer in that SO post Mar 22 19:55:18 I saw it but nothing there works Mar 22 19:55:18 yea there is Mar 22 19:55:27 the second answer is correct Mar 22 19:55:34 cause it has 83 Mar 22 19:55:38 insta-win Mar 22 19:55:46 You see it as second? Mar 22 19:55:49 strange Mar 22 19:55:56 but yeah, I DO NOT have android:exported="true" Mar 22 19:56:03 that's not the second answer Mar 22 19:56:04 wait let's see Mar 22 19:56:18 please use eyes and judgement Mar 22 19:56:21 wilornel: do you have more than one intent filter for MAIN and LAUNCHER? Mar 22 19:56:53 myke: I have no idea, I just created a new project Mar 22 19:57:03 It's my first time using Android Studio. I used to use eclipse Mar 22 19:57:33 wilornel: doesn't matter, you have to learn what goes into your manifest Mar 22 19:58:13 you either don't have those intents for your SettingsActivity (did you rename your starting activity but not in the manifest?) or multiple intent filters Mar 22 19:59:03 every activity has to be in the manifest, and the one that's supposed to start first needs an intent filter with both MAIN and LAUNCHER permissions Mar 22 19:59:16 I was thinking about what you said last night TacticalJoke , about ground-up devs and "us" Mar 22 19:59:27 i think you are right that our restriction is time Mar 22 19:59:33 resources Mar 22 19:59:43 not knowledge or lack of know-how Mar 22 20:00:04 myke: oooh Mar 22 20:00:05 I get it Mar 22 20:00:10 yeah I do not have a "default activity" Mar 22 20:00:28 its not default, its the main activity, the one that the app starts on Mar 22 20:00:31 the entry point to your app Mar 22 20:00:36 the gateway to your amazing app idea Mar 22 20:00:38 none is defined Mar 22 20:00:40 the key to your success Mar 22 20:00:43 haha Mar 22 20:00:43 yeah yeah Mar 22 20:01:01 yea there should only be one of those that have MAIN and LAUNCHER inside them Mar 22 20:01:18 not sure how "default" and "main" are different...it's called MAIN in the intent but it is colloquially the "default activity" Mar 22 20:01:34 yeah, got the filter in there Mar 22 20:01:41 theres is no such thing as default Mar 22 20:01:45 you just invented it Mar 22 20:01:49 and it launched! And now it's waiting for the debugger Mar 22 20:01:52 Ogaym Mar 22 20:01:53 Odaym Mar 22 20:01:55 WAT Mar 22 20:01:59 that was on purpose Mar 22 20:02:03 Run > Edit configurations Mar 22 20:02:12 > Activity > Launch default activity Mar 22 20:02:18 Odaym: yes that's how language works. if you talk about "starting my default activity" in a group of android devs they'll all know you mean MAIN Mar 22 20:02:31 dude Mar 22 20:02:41 launch default activity in that window you're talking about, what does that mean? Mar 22 20:02:42 other than obstinate pedants Mar 22 20:02:47 to you as a user of the IDE, it means the default Mar 22 20:02:49 Those password things are a massive help guys, thanks. Mar 22 20:02:53 So, quick question. Mar 22 20:03:01 but in code there is no default, there is main activity which has a launcher and main tag inside it Mar 22 20:03:05 Could an iOS implementation also use Google Sign in? Mar 22 20:03:08 And same with a website Mar 22 20:03:12 Alright, fine Mar 22 20:03:16 from code you say what needs to happen, not from the IDE Mar 22 20:03:17 Thanks tons for the help guys Mar 22 20:04:18 haha i didn't even know you could set it from the menus in AS, nor that it was called "default" there Mar 22 20:04:28 yea no one goes there.. Mar 22 20:05:21 Anthaas yes you can, but on iOS not everyone has a google account so you might have to offer more than one choice, twitter facebook and google all work Mar 22 20:05:46 Oh of course, I would provide the 3 you just mentioned :-) Mar 22 20:08:41 Thanks :D Mar 22 20:09:31 Anyone know of a good first tutorial for retrofit? There are a few online but I was wondering if anyone has a personal favorite. Mar 22 20:11:58 g00s: sup? Mar 22 20:12:06 hey thepoosh Mar 22 20:12:14 g00s: You left #kotlin. ;o Mar 22 20:12:14 just saw this: https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xfa1/v/t1.0-9/11070786_10153217623605917_907752400566863147_n.jpg?oh=473a00db388ae6e4fdba20ea3865f82c&oe=55767C88&__gda__=1438417667_d18bf3f826b53c03f71a8b32f492eae6 Mar 22 20:12:55 Hm.. Where is my Settings Activity taking the information needed to know how to display itself on screen? There should be a layout file in the project. There's none. Does it mean settings Activity do not need any layout? Mar 22 20:13:01 thepoosh lol Mar 22 20:13:07 yes Mar 22 20:13:25 TacticalJoke somehow i doubt using it any time soon Mar 22 20:14:09 my project is mostly done, i'm not rewriting it ;) Mar 22 20:14:47 Yeah, I can't see myself changing really soon. Mar 22 20:15:00 i dont know if there will be any more android projects for me, time to do some other things Mar 22 20:15:05 Radther: http://inaka.net/blog/2014/10/10/android-retrofit-rest-client/ Mar 22 20:15:20 lasserix: Thanks. Mar 22 20:15:29 What will you move to next, g00s? Mar 22 20:15:31 Just being nosy. :D Mar 22 20:15:36 Aww g00s - always stay with us! Mar 22 20:16:04 Theres always room for a little project :D Mar 22 20:16:54 hi Mar 22 20:17:43 what's a simple way of writing a server for an Android app without having to learn a lot of webserver related technology e.g. nodejs, php or java jsp Mar 22 20:18:03 without learning you can't Mar 22 20:18:13 are there any online services that help with typical relaying for instance? Mar 22 20:18:35 give you the server and ask you what you need it to do whenever your app wants to talk to it? Mar 22 20:18:46 really doubt it Mar 22 20:19:07 would be cool to have something like that though Mar 22 20:19:23 go implement it, become a millionaire Mar 22 20:19:42 wilornel: there should be a layout and usually setContentView() Mar 22 20:19:47 to like to connect two clients together pretending one of the clients are the host, and have them be able to send messages to each other Mar 22 20:19:53 TacticalJoke no idea really, i started android in 2010 so its been half decade and still feel like an idiot :) Mar 22 20:20:27 Odaym, lol ok thanks Mar 22 20:20:46 i'd like to learn signal processing and some other things Mar 22 20:21:02 that's really really fun by the way Mar 22 20:21:16 i feel like i've been chasing rabbits on stack overflow for 5 years Mar 22 20:21:26 and my brain has rotted Mar 22 20:22:00 you must've done drugs this weekend Mar 22 20:22:02 time to hit the books again, learn a new topic in a systematic way Mar 22 20:22:11 Hi. Anyone have experience with LVL? I'm wondering if it's possible to give specific users a license for free and/or at a reduced price? Mar 22 20:22:18 from ground up, first principles - no hacking / SO ;) Mar 22 20:22:27 Odaym lol Mar 22 20:22:31 seriously Mar 22 20:22:40 they make you rethink things, sometimes not in a good way Mar 22 20:22:54 we were just talking about this hardcore-ing you're mentioning, last night Mar 22 20:23:02 that we all just stick and glue things that others have written Mar 22 20:24:01 even when i put the next version of my app on play its still going to require plenty of upkeep, i'm sure i'll still be asking questions :D Mar 22 20:24:08 I can understand that. I'm guessing that I won't ever make a second Android app. Mar 22 20:24:39 see I dont like to take decisions like that Mar 22 20:24:55 i thought about hardware startups, embedded systems, linux kernel development Mar 22 20:25:02 for me personally I have one goal, to become one of the best at whatever it is that I happen to take up and start "doing" in my life Mar 22 20:25:22 so if you point that motive towards anything, might as well point it towards where life has dropped you already Mar 22 20:26:50 Yeah, I tend to agree with that. Mar 22 20:26:50 Odaym did you see scott adam's last book? he argues against having goals, instead have a system Mar 22 20:26:59 I think it's good to identify what we're good at (e.g., programming) and spend time there. Mar 22 20:27:02 Im pretty sure that all of those people who do other things did not go out of their way to step into their fields, they were just dropped there Mar 22 20:27:12 the reason they became "gurus" is becuase of that motive Mar 22 20:27:21 http://www.amazon.com/How-Fail-Almost-Everything-Still/dp/1591847745 Mar 22 20:27:21 they would've become excellent wood choppers if life threw them there.. Mar 22 20:27:25 I find it hard to balance hobbies, though. I go all in with one (and only one) thing. Mar 22 20:27:49 * JesusFreke hands TacticalJoke a unicycle Mar 22 20:27:54 :D Mar 22 20:27:56 have fun! :D Mar 22 20:27:57 I've learned over the years that the things I do, do not care about what I feel or how much I give them attention Mar 22 20:28:30 I just do what pleases me the most, if things get left behind it's because they were not worthy enough to become the center of my attention Mar 22 20:28:36 This sounds a bit depressing, but when I attend a funeral I think "What would I like to have achieved if this were my funeral?". Mar 22 20:28:46 And it's always the same answers. Mar 22 20:28:55 when I read Masters of Doom.. Mar 22 20:29:01 I was depressed for like a week Mar 22 20:29:16 how will I ever become like Carmack, life has already passed me, I dont know anything, etc... Mar 22 20:29:21 it's such bullshit Mar 22 20:29:32 its just excuses for yourself Mar 22 20:29:45 Aren't we all really good at something, though? Mar 22 20:29:56 not better than the next guy Mar 22 20:30:02 and that's FINE Mar 22 20:30:16 i'm not good at android, i think thats why i got burned out ;) Mar 22 20:30:25 and we are? lel Mar 22 20:30:31 i could spend another 20 years and probably still not be good at android Mar 22 20:30:33 this is called the imposter syndrome, look it up Mar 22 20:31:07 So TacticalJoke, how's TacticleReddit coming along? Mar 22 20:31:11 the other day I was looking for a library to shows items in a shelf kind of UI. I came across a library that romain guy wrote, and I was looking at the code and totally not able to follow what's going on or which files were of interest Mar 22 20:31:24 I looked at the date when that code was written, it was 6 years ago Mar 22 20:31:34 Radther: It's going well but I've been so busy lately. I get stressed when I haven't worked on it much recently. Mar 22 20:32:08 then I looked further into the issues of the library, Mark Murphy was asking that romain guy how to do XYZ, Mark Murphy is CommonsGuy on SO, the guy we think is so pro and ultra hacker Mar 22 20:32:10 Still no estimation on a release date then Mar 22 20:32:13 6 years ago he was crap Mar 22 20:32:35 life.explain() bro Mar 22 20:32:36 Yeah, no estimate yet. Mar 22 20:32:44 Asking a question is not "crap" :) Mar 22 20:32:59 yes yes I know but I mean he was not COMMONSGUY OMG SO SUPER HERO Mar 22 20:33:15 he had just begun with the plan to write that book of his Mar 22 20:34:49 here's the proof http://www.curious-creature.com/2009/01/19/shelves-an-open-source-android-application/comment-page-1/ Mar 22 20:34:59 in the comments Mar 22 20:36:59 i wonder if mathiask88 is matthias kappler Mar 22 20:37:11 even SimonVT, last time he was asking me how to draw on a canvas Mar 22 20:37:20 I told him now, no big deal man! Mar 22 20:37:23 how* Mar 22 20:37:36 lol Mar 22 20:38:16 android-offtopic is *dying* Mar 22 20:45:23 Amazing how people acquire knowledge over time, instead of just waking up one day and knowing everything there is to know Mar 22 20:45:32 Tho I have a hard time imagining I'd ask you questions Mar 22 20:46:31 lol Mar 22 20:47:08 thank you for saying that, its usually exported as an end result that some guy did this amazing thing Mar 22 20:47:33 and silicon valley and startups and all that hubbub Mar 22 20:59:00 how to i fix the userdata.img error? Mar 22 20:59:05 http://s10.postimg.org/yjlmuoc21/Screenshot_from_2015_03_22_15_52_42.png Mar 22 20:59:10 change the partition size? Mar 22 20:59:18 #android-root Mar 22 21:02:35 oh sorry Mar 22 21:15:59 The number of times I have to run "adb connect 192.168.1.64" is too damn high. Mar 22 21:17:31 make an alias :p Mar 22 21:18:24 True, but the IP address changes now and then (though I guess I could configure that). Mar 22 21:18:42 make the alias to something meaningful too like fuck-this Mar 22 21:19:12 you'll run adb connect and the extra bonus of stress relief Mar 22 21:19:15 adb over wifi too damn slow anyways :[ Mar 22 21:19:42 once I got everyones phones in the office and connected them to my pc through wifi Mar 22 21:19:47 I've found it fast for what I need. :) Mar 22 21:20:09 fun times Mar 22 21:20:23 if what you need is 5 minutes of waiting, then i agree, its perfect :D Mar 22 21:20:35 TacticalJoke yeah , i hate when i kick off a build and that dumbass dialog shows up with no selections because adb dropped - i'm thinking christ, just fucking reconnect and get on with it Mar 22 21:20:40 too slow for my 30mb app + adb install -r Mar 22 21:20:45 takes like 2 minutes Mar 22 21:21:16 30mb app? Mar 22 21:21:23 It would literaly make my pc blow up Mar 22 21:21:36 25mb images :/ Mar 22 21:22:42 porn apps are against google play store regulation man :/ Mar 22 21:22:58 ;) Mar 22 21:26:00 My Google-fu is failing me. Anyone know if it's possible to give your paid app to certain users so they can download it from Playstore for free/at reduced price? Mar 22 21:27:28 as far as I know no Mar 22 21:27:55 hi sir m can we use negative request code in pending intent Mar 22 21:28:57 hashbash, 1) takes 1 minute to test it on your own Mar 22 21:29:02 2) why would you want that Mar 22 21:29:26 ok sir i will test it first and then get back to you Mar 22 21:32:48 Chamooze there are no promo codes yet Mar 22 21:33:07 people have been asking for years but google is slow Mar 22 21:33:26 you can only destribute the apk on another way for that Mar 22 21:33:44 the way humble is doing it for example Mar 22 21:33:46 Do people still have to buy the app, if you add them to the beta channel or whatever it is? Mar 22 21:33:54 JesusFreke, yeah Mar 22 21:33:56 JesusFreke, afaik Mar 22 21:34:01 * JesusFreke nods Mar 22 21:34:15 it MAY be possible to make a new app, only publish a beta apk Mar 22 21:34:16 Hmm ok, thanks guys Mar 22 21:34:23 make it $0.01, let people join, and then raise it for release Mar 22 21:34:29 I don't know though, never tried it Mar 22 21:34:34 Dont think you can raise prices can you? Mar 22 21:34:36 Only lower? Mar 22 21:34:44 when i had friends testing my paid stuff I just said I'd buy them coffee or something Mar 22 21:34:56 Anthaas, you can't make a free app non-free; didn't know you couldn't raise prices Mar 22 21:35:07 not saying you're wrong Mar 22 21:35:24 I wouldnt have thought you could because that is technically raising prices? Mar 22 21:35:29 [citation needed] Mar 22 21:35:35 (on my comment) Mar 22 21:36:20 Anthaas, I thought you could adjust prices either way. I know you can't make an app free and then make it paid - i knew that was explicitly called out in the ToS Mar 22 21:36:30 Anthaas, but I've never tried, so, I dunno Mar 22 21:36:39 Might be my misunderstanding! Mar 22 21:37:16 Yes, you can raise prices on paid apps Mar 22 21:38:52 You can't make it $0.01 tho.. I think the minimum is .99 Mar 22 21:39:13 Humm, actually.. Beta/Alpha and setting them up as License tester might work Mar 22 21:41:02 Limit of 400 users though. I'm looking to give away free copies of a new app to all existing customers of a previous app. :D Mar 22 21:42:05 Pretty sure there's no way around them buying it Mar 22 21:42:08 i have to learn pros/cons of using google+ vs google groups for beta testing setup Mar 22 21:42:17 You can probably refund it after they buy it tho :) Mar 22 21:42:38 i dont think you want to do that often, i thought it impacted your placement Mar 22 21:43:15 Hmm, but if I refund, won't LVL get a not_licensed response? Mar 22 21:43:53 I don't know, but I assume you're going to test it before you settle on an approach Mar 22 21:44:06 Yeah but they cant redownload after a refund without buying it again Mar 22 21:44:14 im not even sure if they would get updates in that case Mar 22 21:45:22 I honestly believe android-studio has some heavy memory leaks Mar 22 21:46:07 b.android.com Mar 22 21:46:09 I was thinking some customization of LVL, but then realized I'd have to send updated apks manually to everyone which would suck. Mar 22 21:46:30 hi guys, anybody playing with setting static NFC UID ? looks like this is problem in AOSP core, that UID is re-generated with each transaction Mar 22 21:47:17 found another BLE bug :( when i disable the BT adapter and then enable it again , br/edr devices BluetoothDevice.getName() works fine - but BLE devices return null Mar 22 21:48:00 ahh so sad Mar 22 21:48:22 Hello, does 'adb backup' do the app backup for: 1) all users 2) or current active user 3) or the 'owner' user ? Mar 22 22:14:24 anyone know how to use static map api key ? Mar 22 22:16:01 How come throwing a new runtime exception can take the place of returning a value in a method? Mar 22 22:16:27 It's another way out of a method. Mar 22 22:16:45 Doesnt it just give a popup on the screen saying that the app crashed Mar 22 22:17:48 drose379, only if its not catched Mar 22 22:18:40 at the moment u throw an exception, its exiting the method and traverses back through the stacktrace until its catched or you are at the top most method (main) Mar 22 22:19:24 What if im throwing it inside of a catch Mar 22 22:19:55 it will leave catch Mar 22 22:20:31 And go to where Mar 22 22:21:06 outer block Mar 22 22:21:08 drose379: http://docs.oracle.com/javase/tutorial/essential/exceptions/definition.html Mar 22 22:21:27 Thanks Mar 22 22:22:09 The basic idea behind exceptions is that they're better than returning error codes. Mar 22 22:23:34 Returning error codes is tedious and horrible because error-handling code is *not* centralised: it's all over the place. Mar 22 22:25:22 Does anyone know what the name to use for static maps when setting api key in manifest? Mar 22 22:25:53 Exceptions are also pretty slow and expensive compared to other handling mechanisms Mar 22 22:25:54 Well I know how to use exceptions Tactical Mar 22 22:26:12 But I just didnt get why I can replace returning with a Runtime exception Mar 22 22:26:25 And when an exception is thrown, it just stops and runs the code in its catch block, rihgt Mar 22 22:27:33 throwing is just something like "return somthingWentHorriblyWrong;" Mar 22 22:33:48 TacticalJoke haha http://www.reddit.com/r/AskReddit/comments/2zxs8e/reddit_now_that_mothers_day_is_almost_over_what/ Mar 22 22:33:48 a runtime exception is not some kind of magic exception that skips everything and makes the app crash Mar 22 22:33:59 its just another kind of Exception Mar 22 22:34:09 g00s: lol Mar 22 22:34:36 java is just dumb and makes a category of a exceptions unchecked Mar 22 22:34:56 (all exceptions should be unchecked) Mar 22 22:35:47 yeah. this just makes people believe "noting can go wrong here, yeah!" Mar 22 22:35:52 hi Mar 22 22:42:18 I've never had to worry about exceptions being slow, as far as I can think. Unless we're throwing them in a tight loop (which would be weird), would they ever be a performance concern? Mar 22 22:42:30 (For app programmers, I mean.) Mar 22 22:58:51 I just spent my weekend doing an app :D Mar 22 22:58:55 if you start playing a sound clip on the main activity thread. does that clip have to complete playing before you can do more stuff on the main thread Mar 22 22:58:56 30 hours of work Mar 22 22:59:11 I like the result, ofc it could be better, but its not too shabby Mar 22 22:59:26 njcomsec, yes, thats why you should use a handler Mar 22 23:01:03 I understand. I am just making a turn based game and I want it to be as simple as possible so I am only using one thread(the main activity one). I will limit the sounds to very short fx then Mar 22 23:03:27 ya, but doing a handler really doesnt hurt :D Mar 22 23:03:32 hey guys i have a question Mar 22 23:04:27 no.. but i don't feel comfortable using multiple threads yet because I have heard about the dangers of them... so I want to wait until I know much more about multithreading before i do that.. but i want my game out way before then Mar 22 23:04:46 if you use the built in mediaplayer it handles that partly for you http://developer.android.com/guide/topics/media/mediaplayer.html Mar 22 23:05:15 njcomsec: android pretty much requires you to get at least some concurrency/multithreading knowledge Mar 22 23:05:37 thanks mem will check it out Mar 22 23:06:24 so in my android app Mar 22 23:06:30 i have successfully implemented gps Mar 22 23:06:47 the only problem is, the gps takes some time to load on every phone Mar 22 23:06:51 but my app works oncreate Mar 22 23:06:59 how do i get around this step? Mar 22 23:07:25 DeathCode http://developer.android.com/training/articles/perf-anr.html Mar 22 23:07:26 my app needs the long and latitude form the gps but the app attempts to do this before gps data is gathered Mar 22 23:07:29 i need to set a wait time Mar 22 23:18:23 DeathCode, are you using the google services api? Mar 22 23:18:29 to handle the gps calls Mar 22 23:18:31 no Mar 22 23:18:39 i'm using locationlistener Mar 22 23:18:50 I have found its wrapper around the devices locatino functionality to be very useful Mar 22 23:18:51 i just want the app functions to wait until Mar 22 23:18:56 the app gets the gps Mar 22 23:19:07 know any java code that lets you wait Mar 22 23:19:11 you have to learn about threads Mar 22 23:19:14 until a certain event is accomplished Mar 22 23:19:17 you can't just wait Mar 22 23:19:28 you should probably look into a Service Mar 22 23:19:31 or a thread Mar 22 23:19:31 I sent you the link which describes what you need Mar 22 23:19:41 does anyone know if there's a list somewhere of all the headers that OkHttp interprets? I'm specifically curious if it respects the "Age" header, but also just generally curious. Mar 22 23:19:43 well to be honest a service is just a specific type of thread Mar 22 23:20:03 wtf is the Age header Mar 22 23:20:42 The age the object has been in a proxy cache in seconds Mar 22 23:20:43 heh. my second question was going to be "does Age even apply directly to cache-control max-age, or is it just a general info-dump header?" Mar 22 23:21:03 it does nothing with the Age header because that's not part of the RFC Mar 22 23:21:04 http://en.wikipedia.org/wiki/List_of_HTTP_header_fields has Age listed, and it's in responses from S3. Mar 22 23:22:42 "because that's not part of the RFC" <- makes sense, thanks :) Mar 22 23:25:55 alas. this means I have to modify a cache-control header :| it claims a max-age of a year, though it can (and occasionally does) update, and I need it to be fresh for everything to be consistent :| Mar 22 23:27:53 you can tell OkHttp to ignore the cached value Mar 22 23:28:53 it'll do a conditional get in that case, using the cached value if the server says that it's still fresh Mar 22 23:30:54 yeah. slightly easier to set it to something more sane and forget about it, since I need to either a) attempt the request to get the cached response (with the max-age value) and then decide if I should force a second that ignores the cache, or b) store my own list of url -> "real" expiration date to decide without firing off the first attempt. Mar 22 23:31:05 (if I don't set it to something saner, that is) Mar 22 23:42:20 Hello everyone. I understand the reason why this forums dont usually help with homework, but I've been banging my head with this issue for a few days now and cant find a solution. Im working on the classic Tic Tac Toe game. All the requested issues have been taken care of, except for the fact that my app is not getting the saved preferences. I beg of you to please take a look at me code... Mar 22 23:42:22 ...(http://pastebin.com/NBrPTviY) and help me resolve this issu. TIA! Mar 22 23:43:06 DeathCode: you can use an async task, just set a flag you switch when gps comes Mar 22 23:43:43 nimbiotics: thats a lot of code can you specifiy the rpoblem? Mar 22 23:44:25 nimbiotics: onsaveinstance state isn't called if the user explictly quits(presses back button) Mar 22 23:44:59 lasserix: Im noit getting any errors, it is just that my saved preferences are not being retrieved Mar 22 23:45:10 lasserix how do i learn about this? i didnt use google play or anyhting just regular locationmanager and locationlistener Mar 22 23:45:26 DeathCode: look up async task Mar 22 23:45:32 on java? Mar 22 23:45:34 you need to call getSingleLocation in doInBackground Mar 22 23:45:37 no android Mar 22 23:45:45 ok lasserix listen to me Mar 22 23:45:58 i just want to make it so that the function sleeps until a double gets a variable Mar 22 23:46:05 nimbiotics: onSaveInstance state is only for saving state between user pressing home button, and system kills app. not for general purpose saving Mar 22 23:46:19 nimbiotics: ie, not for implementing "Save game" functionality Mar 22 23:46:33 DeathCode: you can;t Mar 22 23:46:38 what do i use for this. i dont need all that fancy schmancy things. i just need a condition sleep type thing, where it just wakes up when a variable gets a value. can java do that? lasserix Mar 22 23:46:41 you cant make the UI thread sleep Mar 22 23:46:55 use an async task Mar 22 23:47:00 i'm not trying to. just trying to make my program sleep Mar 22 23:47:08 untill a variable gets a value Mar 22 23:47:25 is that too much to ask Mar 22 23:47:31 DeathCode: you are being ignorant. "just make my program sleep = ie make UI thread pause" which you cant do Mar 22 23:47:43 :'( Mar 22 23:47:44 ok Mar 22 23:47:45 the easiest way to do what you want is implement an Async task Mar 22 23:47:51 i just like things simple is all Mar 22 23:48:14 call getSingleLocation from doInBackground then pass the result to onPostExecute where you can set the flag to "hasGps" or whatever Mar 22 23:50:23 hello i got a question, i create an application class for my project , but it doesnt load data from the database when activity is created., i try with out it works without any problem. Can some 1 give me some info why it doesnt load the database if the application . and why it does without? Mar 22 23:52:49 john67: your question is too vague you need to post some code Mar 22 23:53:36 lasserix: Thanks. The reason IM using onSaveInstanceState and onRestoreSystemState is so I can restore the state when user changes orientation, for example. The problem Im having has to do with variables playerX and playerO; which are meant to be initialized to the saved vales, yet, they are not, even though the valuers are being properly saved and kept Mar 22 23:54:36 nimbiotics: again, onSaveInstanceState is only called under certain circumstances, it is not the place to generally implement save game function Mar 22 23:56:05 nimbiotics: also you seem to reset your preferences everytime oncreate is called Mar 22 23:56:16 which i am guessing would overwrite your x/o Mar 22 23:56:57 lasserix: I just noticed what you meant about onSavedInstance Mar 22 23:58:03 lasserix: guess the reset will have to be done at onResume ... will check that Thanks! Mar 22 23:59:14 why are you reseting preferences everytime oncreate is called? Mar 22 23:59:17 weird... android studio is being unbelievably slow in syncing with the gradle files, and compiling. i.e. performing a sync just took almost 30 minutes, with zero downloads. Mar 22 23:59:37 nimbiotics: and you should differentiate between user preferences and game state Mar 22 23:59:47 this is the codes http://pastebin.com/hgFpfdEu and http://pastebin.com/UeYXVeU7 Mar 23 00:02:54 john67: your problem is when you add the db code in application class it crashes when you start? Mar 23 00:04:02 lasserix: yeah, the db isnt loaded, Mar 23 00:04:21 have you measured how long it takes to load? Mar 23 00:04:54 it doesnt take long without the application class, Mar 23 00:05:04 you shouldn't be doing that in your application class, you shouldnt do anything that is labor intensive in application Mar 23 00:05:13 lasserix: Thanks a bunch!! actually, the worst thing I was doing was mixing games state variable nameswith saved prefernces names. It is now (almost) working as expected Mar 23 00:05:18 and if you do, you should do it in background thread Mar 23 00:05:26 lasserix: Thanks a BUNCH!! Mar 23 00:06:02 np Mar 23 00:06:31 lasserix:i see, then when shud we use application class? Mar 23 00:06:40 you can use it Mar 23 00:06:50 but start a backgroudn thread to do your database stuff Mar 23 00:08:19 also is create db copying a db from assests? Mar 23 00:09:08 If you copy a database from assets you should really check out sqlite-assethelper. Awesome library Mar 23 00:09:09 yeah Mar 23 00:09:25 im doing copy asset Mar 23 00:09:38 just as a reality check, you only copy it once right? Mar 23 00:10:08 yeah Mar 23 00:10:26 so you might set a flag Mar 23 00:10:28 like Mar 23 00:10:31 "datbaseCopied" Mar 23 00:10:43 which is false initially, then set it to true after the database finishes copying Mar 23 00:10:55 when it is already copied, you can automatically set it it true Mar 23 00:11:09 then use that flag to wait toa ccess the databse in your activity Mar 23 00:12:40 Im at a crossroads in my head, deciding if I should store a remote database to a device to remove the need for networking Mar 23 00:12:48 And update once every X hours Mar 23 00:12:54 (and when user requests) Mar 23 00:13:10 or do I just not, and network everything. Mar 23 00:13:56 I was in that situation and decided to store as much as possible localy Mar 23 00:14:16 if i get what u mean , this http://pastebin.com/i9cFmjdv for the application class? Mar 23 00:14:27 Hmm, but Im not sure if users want to do a huge download on a database and have it saved on their phone. Mar 23 00:14:32 (Its a food and drink app) Mar 23 00:14:38 so essentially recipes Mar 23 00:15:03 joh john67 yeah that is the idea Mar 23 00:15:59 You should probably not store everything. You should cache previously viewed recipes Mar 23 00:16:52 When you say cache Mar 23 00:16:53 arkaros: i dont get u Mar 23 00:17:00 Save into local database, and delete after X period of time? Mar 23 00:17:34 @john67 talking to anthaas Mar 23 00:17:50 oki Mar 23 00:18:24 Anthaas: delete x after a number of rows perhaps Mar 23 00:18:45 Hmm, not a bad idea Mar 23 00:18:54 Keep maybe the 50 most recently viewed recipes cached Mar 23 00:19:15 To be fair, each recipe wont be huge, Im using URLs for images and things rather than base64 strings or whatever Mar 23 00:19:47 lasserix: u were talking about setting flag, i didnt get that concept Mar 23 00:20:54 Maybe 50 is too low actually Mar 23 00:21:08 Way too low Mar 23 00:22:34 Anthaas: you can allways tweak the number of pages you cache Mar 23 00:24:14 Hmm, do you know of anywhere where I might see code of somebody implementing this well? Mar 23 00:24:34 Easier to grasp that way (Im not a copy/paste coder - I like to try to understand my code well) Mar 23 00:25:32 I am using same layout for my cards, is there a way to just create a layout once and then re-use it multiple times and change the text inside it ? Mar 23 00:25:44 include? Mar 23 00:26:01 Hmm, perhaps not. Not sure Mar 23 00:26:05 Sounds like a fragment thing Mar 23 00:26:10 Could your card not just contain a fragment? Mar 23 00:26:17 and have that fragment define the layout? Mar 23 00:29:19 Anthaas: It's a bit tricky to say since i dont really know much about your code and your specific problem. I would say try to get going on your own. If you run in to a specific problem come back and ask again Mar 23 00:29:56 Anthaas, i have two textViews inside the card, i just need to change them, other then that everything else is the same. Mar 23 00:30:05 And i am not sure about the fragments. Mar 23 00:32:31 nightwalker: not sure if this is helpful in your specific issue but it sounds like you are looking a listview using a viewholder pattern Mar 23 00:34:22 Looking for a* Mar 23 00:37:11 lasserix: thnx , Mar 23 00:37:16 bye bye to all Mar 23 01:03:37 I have a custom attribute defined for resource. It's format is "dimension|fraction". When I"m trying to extract the file from the AttrributesSet/TypedArray, how do I detemine which format was specified? (dimension or fraction) Mar 23 01:11:00 dcorbin_ you have to look at TypedValue.type Mar 23 01:12:01 TypedValue t = typedArray.peekValue(R.styleable.myweirdthing) Mar 23 01:12:36 if (tv.type == xxx) { blah = tv.getFloat() } else { } Mar 23 01:13:24 if (tv.type == TYPE_FRACTION ) { } Mar 23 01:15:13 just proves code can be poetry as well Mar 23 01:15:59 no one has yet really captured the potential of showing code as art itself, maybe we are not ready for it yet. Mar 23 01:16:26 What proves that code can be poetry? Mar 23 01:16:58 well, prove might be too strong a word, but I did like the way g00s was naming stuff. Mar 23 01:18:04 i forgot to sprinkle it with foo, bar, and baz Mar 23 01:18:16 doStuff(); Mar 23 01:18:32 I have just always thought the functional and kinetics elements of code could be used to make poetry that is both physical, abstract and subtle to the point of being sublime, but perhaps the genius that will find this balance has not been born yet. Mar 23 01:18:44 kinetic* Mar 23 01:19:02 baz? thats a new one. Mar 23 01:19:07 Ive seen clazz for class. Mar 23 01:19:09 and frob Mar 23 01:19:53 Need a name to publish under. Mar 23 01:19:56 Dont want to use my name Mar 23 01:20:10 Anthaas Incorporated. Mar 23 01:20:26 Ha! Mar 23 01:20:29 Something Inc. Mar 23 01:20:30 awww http://i.imgur.com/skj4EM8.jpg Mar 23 01:20:31 how about Steve Jobs? he is not using the name anymore after all. Mar 23 01:20:32 Some people use " Creators" or something. Mar 23 01:20:37 Carbonflux: HAHAHA! Mar 23 01:20:47 There has to be someone using that name still. Mar 23 01:20:54 :) Mar 23 01:21:07 g00s: Toucan? Mar 23 01:21:22 human toucan Mar 23 01:21:34 Toucan play at that game: http://warnerboutique.com/wp-content/uploads/toco_toucan-normal.jpg Mar 23 01:21:43 you could try anagrams of your name I guess. Mar 23 01:21:58 I might use " Producers" or something. Mar 23 01:22:07 I hate putting my real name on the Interwebs. Mar 23 01:22:22 Hmm, dont really want it linking back to the app either. Mar 23 01:22:26 I want to publish more than one app! Mar 23 01:22:32 Oh. Mar 23 01:22:41 Creators of Foo, Bar, and Baz. :D Mar 23 01:22:55 Haha BooFar Mar 23 01:23:14 How about your initials or something? Mar 23 01:23:20 My package name contains mine. Mar 23 01:24:25 Hmm. I am doing a project with a friend, so it should be something that isnt directly linked to me >.< Mar 23 01:25:28 Not linked directly to me, and not linked directly with the project - those are the criteria haha Mar 23 01:25:51 If we all put our heads together I think we can come up with something that doesnt make me want to run my nuts slowly through a meat grinder. Mar 23 01:25:52 I guess you could make up a nickname. Something like CodeRobot. Mar 23 01:26:10 I always assumed you were female, for some reason. :D Mar 23 01:26:15 Hahaha Mar 23 01:26:21 Nuts = boobs Mar 23 01:26:24 Look at ma boobehs Mar 23 01:26:26 Nah Im a guy. Mar 23 01:26:26 Okay. lol Mar 23 01:26:32 But thanks - nice to know I come across as a woman. Mar 23 01:26:34 People have mistaken me for a woman online before. Mar 23 01:26:38 lol Mar 23 01:26:41 You're welcome. Mar 23 01:26:45 Rule #1 of the Internet. Everyone is male. Mar 23 01:27:36 DelegatedFunctions Mar 23 01:27:38 Haha Mar 23 01:27:41 Bad name :/ Mar 23 01:27:44 Refactorer Mar 23 01:27:59 Would it be an -er noun? Mar 23 01:28:04 Implies Im a bad coder - what are you saying :O Mar 23 01:28:11 I'd prefer not :( Mar 23 01:28:20 Refactoring is what good programmers do all the time. :p Mar 23 01:28:31 The best get it right first time :P Mar 23 01:28:37 (I know thats not practical haha) Mar 23 01:30:08 Couldn't you use your first initial, an ampersand, and your friend's first initial? Mar 23 01:30:17 Like "M&S". Mar 23 01:30:20 Links back to us as people though :( Mar 23 01:30:22 Perhaps with whitespace. Mar 23 01:30:30 I like the idea of it being like a company nmae Mar 23 01:30:30 name Mar 23 01:30:31 You'd still be anonymous! Mar 23 01:30:34 Okay. lol Mar 23 01:30:36 :P Mar 23 01:30:50 Something witty, code-related. Mar 23 01:32:11 Anthaas: Do you like Yiruma? Mar 23 01:32:15 Kinda Einaudi-like. Mar 23 01:32:21 I do Mar 23 01:32:25 Where is it from? Mar 23 01:32:38 I mean the music. (I was changing subject. :D) Mar 23 01:32:46 Oh haha Mar 23 01:32:52 Bugger, thought you had a good name then! Mar 23 01:32:53 Never heard. Mar 23 01:33:13 Check it out: https://youtu.be/XsTjI75uEUQ Mar 23 01:33:40 Haha. You can hear the pedal changing in that. Mar 23 01:33:48 Why do people leave that in recordings? Weird. Mar 23 01:33:56 It's like an amateur mistake. Mar 23 01:34:18 Giving it a listen now Mar 23 01:34:42 Anthaas: I can only suggest thinking of a category. I usually name my apps after gemstones (e.g., Topaz, Sapphire, Emerald, etc.). Mar 23 01:34:57 Oh I have an app name Mar 23 01:35:05 Yeah, I know. I just meant in general. Mar 23 01:35:06 Just need a name to publish it under haha Mar 23 01:35:10 Oh I see Mar 23 01:35:22 You could use Topaz McSapphire. Mar 23 01:36:30 Kidding, but there might be value in using some kind of category. Mar 23 01:37:03 Hmm, Im trying to think of coding related names Mar 23 01:37:09 Like I said before DelegatedFunctions Mar 23 01:37:16 But better because that leaves a bit to be desired haha Mar 23 01:37:28 Hey guys, anyone use a video screen capture tool they can recommend to create an app walkthough video? Mar 23 01:38:32 I think this Yiruma music by the way Mar 23 01:38:42 s/think/like Mar 23 01:39:18 Yeah, it's a nice piece. Easy to play, too. (I like pieces that take little effort and offer big benefits.) Mar 23 01:39:34 It's like the opposite of a Prokofiev piece. Mar 23 01:40:10 zizzl: I haven't tried it, but have you seen this? http://developer.android.com/tools/help/adb.html#screenrecord Mar 23 01:43:09 Topaz is a photography suite Mar 23 01:43:13 TacticalJoke no I haven't.. really just looking for an app. Mar 23 01:43:32 zizzl: It was a rhetorical question. :D Mar 23 01:43:58 zizzl: You could use Stream Screen Mirroring (app) and then record what it shows to your computer Mar 23 01:44:10 g00s: I dont suppose you have any ideas? >.< Mar 23 01:44:24 nah no ideas as usual Mar 23 01:44:36 g00s helped me to name my app. :) Mar 23 01:44:55 heh Mar 23 01:49:23 Anthaas: How about something simple like "CodeFactory"? Mar 23 01:49:51 Or use the word "Expert" somewhere. Mar 23 01:50:08 Seems a bit generic? Mar 23 01:50:22 Im so awkward, Im sorry. Mar 23 01:57:36 that android studio has this really annoying bug about "stopping to take inputs from the user" Mar 23 01:57:44 happens ever 15-20 minutes... Mar 23 01:57:50 you type and nothing happens Mar 23 01:57:55 have to restart the whole ide Mar 23 01:58:11 quite unpleasant... Mar 23 01:58:28 haven't seen that Mar 23 01:58:36 on linux... Mar 23 01:58:42 have you updated the ide Mar 23 01:58:42 and i've seen quite a bit :) Mar 23 01:58:48 yeah it's fully up to date Mar 23 01:59:04 i've also looked it up a while back... im not alone Mar 23 01:59:14 but im surprised it hasnt got fixed Mar 23 01:59:19 humm bugzwugzy Mar 23 01:59:22 DrBenway if you have lots of memeory, maybe edit studio.vmoptions to give it more space .... Mar 23 02:04:49 If I create a project with the "Company Domain" as example.com I can change it later can't I? (Android Studio) Mar 23 02:05:53 yea Mar 23 02:06:30 How fast is Lollypop catching on? Mar 23 02:06:40 If I want MaterialDesign, do I have to be at API 21? Mar 23 02:06:54 yes and no Mar 23 02:07:12 not much faster than edible underwear Mar 23 02:07:26 You can use AppCompat to get a material look on <21. Mar 23 02:07:37 lasserix lol ! Mar 23 02:07:44 (And material on >=21.) Mar 23 02:07:51 Is it worth just going for 21 then if I am just starting out now? Mar 23 02:08:04 I don't think so, Anthaas. Mar 23 02:08:05 Anthaas http://en.wikipedia.org/wiki/Android_version_history#/media/File:Android_historical_version_distribution_-_vector.svg Mar 23 02:08:08 no Loli is onl ~3% Mar 23 02:08:11 should give you a good idea of the rate Mar 23 02:08:21 https://developer.android.com/about/dashboards/index.html Mar 23 02:08:33 Ages then Mar 23 02:08:39 But this probably wont be done for a good while Mar 23 02:08:51 Its a side project for me and another PhD student (as a break from PhD things) Mar 23 02:08:54 Are you talking years? Mar 23 02:09:04 Not necessarily, but possibly haha Mar 23 02:09:25 Its literally, doing a little bit here and there on evenings or weekends when we can be bothered. Mar 23 02:09:36 Most people recommend setting minSdkVersion to 15 or 16. Mar 23 02:09:44 the reality is probably wont update till the next thing comes along that really necesitates an update since kikkat is good enough Mar 23 02:10:00 You could always raise it later. I guess it's harder to lower it later. Mar 23 02:10:10 it going to very very, very awkward for google going into i/o if only 5% has Lollipop Mar 23 02:10:32 g00s: Maybe they'll announce a Kotlin strategy to cover up that uncomfortable fact. :D Mar 23 02:10:47 AS claims now that <1% will be hit if I choose Lollipop Mar 23 02:10:49 No need to fear; Kotlin is here. Mar 23 02:11:10 The dashboard has it at 3.3%. Mar 23 02:11:44 God, Gingerbread is still at 6.9%. Will that thing ever die? Mar 23 02:12:04 Why Kotlin Mar 23 02:12:31 and no - there are so many people who live by the "it works still..." way of life. Mar 23 02:12:42 It's a programming language that compiles down to Java bytecode. It's a nicer Java, basically. Mar 23 02:12:55 Windows ME works still, doesn't mean Im going to choose it as the OS my computer runs on Mar 23 02:13:04 Yeah, I see that, but why. Mar 23 02:13:09 What do you mean? Mar 23 02:13:20 Why should I use that instead of Java, what makes it "nicer"? Mar 23 02:13:29 it's a new puppy Mar 23 02:13:36 Jetbrains if Im right? Mar 23 02:13:42 and everyone cuddles with the puppies Mar 23 02:13:51 First-class functions, extension functions, null safety, conciseness, etc. Mar 23 02:13:54 I forget the list. lol Mar 23 02:14:34 I happen to like Java Mar 23 02:14:36 It's mo' bettah, basically. Mar 23 02:14:48 Plus, I dont see this being more than one of those languages thats around but nobody uses Mar 23 02:15:38 It hasn't hit 1.0 yet, but it's looking very promising (especially for Android developers). Mar 23 02:15:44 If it *doesn't* take off, I will be surprised. Mar 23 02:15:53 £5 says it doesn't. Mar 23 02:15:57 lol Mar 23 02:16:04 We'd have to define "take off". Mar 23 02:16:10 I'd probably put it at £50 or so, too. Mar 23 02:16:14 Ok, how would you define it? Mar 23 02:16:38 New devs arent going to be picking it up, i.e. Uni's etc won't be teaching it. Mar 23 02:16:49 There is a lot more code out there that needs to be worked with etc than Kotlin Mar 23 02:16:55 New devs and unis aren't really what I'm thinking of. Mar 23 02:16:56 Too much going against it, Java is too well established. Mar 23 02:16:59 More like "high-profile devs". Mar 23 02:17:14 Right, but why would they choose that over something they have a lot more experience with etc? Mar 23 02:17:16 lol @ "it" Mar 23 02:17:36 It being the take off of the language, not the language itself haha Mar 23 02:17:37 Anthaas: It's easy to move to from Java. Mar 23 02:17:42 Easier to stick with Java Mar 23 02:17:46 You can use it alongside Java. Mar 23 02:17:54 Easier to find solutions to problems, etc. Mar 23 02:18:12 Java is cool but it's getting old now. People are demanding something modern. Mar 23 02:18:21 Read: C++ Mar 23 02:18:26 People also want lambdas on Android. Mar 23 02:18:28 Old as the hills, and more fragmented than them. Mar 23 02:18:32 And function references, etc. Mar 23 02:19:08 There is no good reason why in today's day and age there can't be a language as fast as C++, offering all that C++ does, without being so bloody fragmented. Mar 23 02:19:15 How about Rust? Mar 23 02:20:00 Again, how popular is this Mar 23 02:20:19 When I say popular, I would mean % overall use, and % increase quarterly in its use Mar 23 02:21:37 Anthaas: BTW, on the Kotlin thing, you should check out JW's write-up: https://docs.google.com/document/d/1ReS3ep-hjxWA8kZi0YqDbEhCqTt29hG8P44aA9W0DM8/edit?hl=en-GB&forcehl=1&pli=1 Mar 23 02:22:08 Its like Swift, apart from it being used only on Apple products, the only way it will kick off is if Apple stop supporting Obj-C which Im told by an iOS Dev they are planning on doing Mar 23 02:22:12 Dont know how correct that is mind Mar 23 02:24:16 the obj-c bridging stuff combined with iOS frameworks certainly makes swift less appealing than it should be Mar 23 02:27:45 Anthaas i wouldn't normally be excited about kotlin, but what makes it nice is that its the best alternative of android because of its low footprint, tie-in to the tooling, etc Mar 23 02:28:32 Hmm, Im reading JakeWharton's write up, and while its clear the guy knows a shit tonne more about anything you can do with a computer keyboard than me, I still dunno. Mar 23 02:28:41 having read the kotlin stuff on JN over the years, the common sentiment is that its "not enough" compared to the other alternatives. but we're talking android, and the others don't really work well on android Mar 23 02:28:45 *HN Mar 23 02:29:13 who gives a shit what the bickerers on some random website think? Mar 23 02:29:25 i doubt they'd be pleased by anything Mar 23 02:29:43 i dont give a shit what anyone thinks ;) Mar 23 02:30:25 It just seems that the whole argument seems to be based around "Oh, with Kotlin its easier to do X" when if we are honest, its not really that hard to do a lot of those things anyway Mar 23 02:30:45 i agree with most of that Mar 23 02:31:00 Might just be me, but I find Java fairly easy to do a lot on anyway, and easy to read. Mar 23 02:31:25 I also agree Mar 23 02:31:35 There are tangibles Kotlin brings beyond syntactic sugar Mar 23 02:31:47 Anthaas yeah, thats the "not enough" bit Mar 23 02:32:16 Kotlin's offering would be a lot less appealing if we have Java 8 on Android, but we don't (even with Retrolambda). Besides, with M11, JetBrains is now adding specific features to the Kotlin toolchain targeted at Android developers, which makes it even more appealing than it was before Mar 23 02:32:29 I was just about to say that Mar 23 02:32:40 Anthaas: I know. I read thoughts. Mar 23 02:32:42 The main problem here is Android not supporting later versions of Java. Mar 23 02:33:11 I'm currently writing a series of blog posts about Kotlin + Rx + Android by the way Mar 23 02:33:13 even the things coming in Java 10 aren't enough Mar 23 02:33:38 And as your post said, if Java 10 is coming, and we aren't likely to see Java 8 any time soon on Android, what are Google doing? Mar 23 02:33:49 (that latter part wasnt in your post, obviously) Mar 23 02:34:13 Are they trying to force the move away from Java? Mar 23 02:34:17 they're decoupling themselves from the Oracle Java toolchain Mar 23 02:34:22 Yeah. Mar 23 02:34:43 JakeWharton: How do you mean? Mar 23 02:34:43 So, is Kotlin developed with Google support? Mar 23 02:34:51 They partnered up for AS Mar 23 02:34:58 Why not for a new language to go with it? Mar 23 02:35:09 CedricBeust_: jack and jill Mar 23 02:35:19 I doubt Kotlin is being developed with Google's support but it wouldn't surprise me if bugs filed by JetBrains were looked at in priority by Google Mar 23 02:35:26 JakeWharton: Ah Mar 23 02:36:11 CedricBeust_: Do you think JetBrains is concerned by Jack and Jill? Mar 23 02:36:28 StackOverflowError Mar 23 02:38:22 haha Mar 23 02:39:06 Either way, I fail to believe it would take Google several years to provide Java 8 support for Android. Mar 23 02:39:17 Anthaas: You are so hard to convince. :D Mar 23 02:39:27 CedricBeust_ are your posts up ? Mar 23 02:39:34 Anthaas: why? it took Oracle several years to develop it Mar 23 02:39:44 it's not like they can copy/paste the implementation Mar 23 02:39:45 g00s: Not yet, still working on them Mar 23 02:40:40 How long has it taken JB to develop Kotlin? Mar 23 02:40:50 it would be nice if kotlin emitted dalvik bytecode as another target :D Mar 23 02:41:02 a language that compiles to bytecode is completely different Mar 23 02:41:55 i could probably write a simple one in a week Mar 23 02:42:29 And a simple one that compiles to a JVM? Mar 23 02:42:39 to run on a* Mar 23 02:42:40 CedricBeust_ so it will go here when done http://beust.com/weblog/ Mar 23 02:42:43 g00s: Interesting thought, wouldn't surprise me if the JetBrains guys have this in mind, although probably not a priority at this stage Mar 23 02:42:45 bytecode runs on a JVM, yes Mar 23 02:42:54 g00s: Correct. Subscribe now! Mar 23 02:42:55 dex would also happily accept it so I could use it on Android Mar 23 02:43:06 g00s: 50% off if your subscribe now! Mar 23 02:43:58 does this enter me into the publishers clearinghouse sweepstakes ? Mar 23 02:44:07 Ok, here is a question. What do you think it would take for people to stop using Java for Android? Mar 23 02:44:28 I know its possible to use other languages that compile to JVM, but people still use Java. Mar 23 02:44:34 Not Go, Dart, or JS, that's for sure. Mar 23 02:44:48 Yeah, none of these are appealing to me either Mar 23 02:45:13 Anthaas google would have to officially say we're using X now. until then, java. and kotlin Mar 23 02:45:28 Anthaas: Java is a very good match for Android, hard for me to think of what other language would stand a chance besides Kotlin (and Kotlin itself is a pretty far shot right now because it's not even out) Mar 23 02:46:09 CedricBeust_ are you going to include any performance data in your blog post? because mobile, battery, etc :) Mar 23 02:46:12 Java has it pretty good, because its an easy to read, easy to use language that has a lot of popularity even off of Android. Mar 23 02:46:31 g00s: Not my plan right now, just giving an overview of concepts Mar 23 02:46:32 As someone was saying the other day, if Android used C++ (for the most part rather than just NDK), it just wouldn't have kicked off. Mar 23 02:46:34 g00s: comparing bytecode is all that's required for that Mar 23 02:46:36 g00s: Premature optimization etc... Mar 23 02:46:39 that's why I put it in my doc Mar 23 02:46:48 if the emitted bytecode is about the same, then those are the same Mar 23 02:46:57 fair enough Mar 23 02:47:09 if there's massively different bytecode then it would make sense Mar 23 02:47:33 but thankfully I haven't been surprised by what's come out of kotlinc Mar 23 02:49:12 I think it's important to keep bytecodes in mind but also be realistic about the fact that a lot of the code that's written with Rx, Kotlin, Retrofit, etc... is hardly every CPU bound (networ/IO access, UI updates, etc...) Mar 23 02:49:15 Interesting read on Jakes post that IntelliJ was written using Kotlin (unless I have misunderstood) Mar 23 02:49:26 some of it is Mar 23 02:49:33 IDEA is mostly written in Java last I heard Mar 23 02:49:38 indeed Mar 23 02:49:42 althought the JetBrains guys definitely believe in dogfooding Mar 23 02:54:24 completely java Mar 23 02:54:49 doesn't seem the rxjava guys really documented RefCountSubscription or MultipleAssignmentSubscription Mar 23 02:55:12 like, look in jetbrains github Mar 23 02:55:15 it's all java Mar 23 02:55:32 pfn where are the kotlin bits ? Mar 23 02:56:20 for intellij? I wouldn't know Mar 23 02:56:33 I'm sure the Kotlin support is written in kotlin though Mar 23 02:56:48 like the scala support in intellij is completely written in scala Mar 23 02:57:55 ah, i thought maybe they were doing something like mozilla (side project / experiment) with rust+servo Mar 23 02:58:57 Wow, theres ~40% difference in the number of devices that are active between 4.1(JB) and 4.3(JB) Mar 23 02:59:29 Between 4.1, 4.2, and 4.3 there are almost 20% intervals **** ENDING LOGGING AT Mon Mar 23 02:59:59 2015