**** BEGIN LOGGING AT Sat Oct 19 02:59:58 2013 Oct 19 03:03:09 so. scala then? since I am not great with java anyway should I learn it instead for android? Oct 19 03:12:48 pfn: most people are drinking? :) or wishing we were... Oct 19 03:13:50 zmuser3, if java is beyond your skill level, you would be hopeless with scala Oct 19 03:13:57 did I say that? Oct 19 03:14:30 that's what you said implies Oct 19 03:14:35 I see what you mean Oct 19 03:17:28 especially if you want to apply it to android Oct 19 03:18:08 you would have to be very strong at being able to understand the reference docs on d. android without needing code examples Oct 19 03:18:24 ah Oct 19 03:20:24 odd Oct 19 03:23:44 I tried to fix bias from random Oct 19 03:24:02 random 0-800 say tend to be in middle due to bell's curve Oct 19 03:24:39 I tried by randomizing 100 times normal width then mod % 800 Oct 19 03:24:47 but effect dont seem to work Oct 19 03:29:56 % does not produce even distribution Oct 19 03:31:34 XXCoder Oct 19 03:31:41 yeah> Oct 19 03:31:47 pfn I hoped it would be close enough Oct 19 03:31:56 % does definitely not produce a normal distribution ("a bell curve") Oct 19 03:32:00 but it also does not Oct 19 03:32:04 produce an even distribution Oct 19 03:32:19 how do I do even distribuation? Oct 19 03:34:07 The accepted answer on http://stackoverflow.com/questions/13104478/uniformity-of-random-numbers-taken-modulo-n Oct 19 03:35:09 oh yeah Oct 19 03:35:14 However, if your mod is as high as 800, depending what you're doing the effect might be insignificant Oct 19 03:35:23 I had forgotten that usinbg low bits on random us very bad Oct 19 03:35:27 for example, if this is graphics related, you wouldnt expect to visually notice a difference Oct 19 03:35:41 I can because edges isnt getting much effect Oct 19 03:35:49 while center get a lot Oct 19 03:41:24 hello Oct 19 03:41:34 hey aspire one Oct 19 03:41:57 this is going to be a fairly subjective question, but could you recommend a bunch of android tutorials? Oct 19 03:42:22 Following the "First App" ones on the Android developer site Oct 19 03:42:30 When you get stuck Oct 19 03:42:38 Do further reading on SO, blogs etc. Oct 19 03:42:50 i want to it be fairly organized, i just dont want to learn random pieces Oct 19 03:42:59 and somehow try to fit them together Oct 19 03:42:59 Then follow the Android developer site ones Oct 19 03:43:14 aspire: get a book Oct 19 03:43:18 well i was thinking of watching the android development tutorials for thenewboston Oct 19 03:43:18 Or that Oct 19 03:43:26 TheNewBoston is pretty good Oct 19 03:43:30 Not sure how outdated it might be though Oct 19 03:43:36 they are outdated now Oct 19 03:43:39 Yeah Oct 19 03:43:40 what does that mean Oct 19 03:43:43 but the tuts are solid Oct 19 03:43:47 It is not up to date Oct 19 03:43:47 outdated? Oct 19 03:43:51 The information/code is old Oct 19 03:43:51 watch the marakana tuts Oct 19 03:43:59 but its still valid, right? Oct 19 03:44:05 it doesn't cover fragments Oct 19 03:44:18 and 4.X methodology Oct 19 03:44:28 watch the marakana tutorials Oct 19 03:44:29 Does anyone know a tech support channel? My headphones say there is no driver installed in device manager, but looking for an update says the most up to date are installed. Oct 19 03:44:34 so you would suggest looking up some 4.x tutorials as opposed to just general android dev vids Oct 19 03:44:38 and ok i will search now darken Oct 19 03:44:40 DarkSlay3r Oct 19 03:44:53 I GET NO SOUND! :( Oct 19 03:45:22 #windows Oct 19 03:45:22 Anthaas: USB headphones? Oct 19 03:45:24 DarkSlay3r are these video tutorials? Oct 19 03:45:28 Yeah Dark Oct 19 03:45:31 Yes Oct 19 03:45:41 but my first choice would be books Oct 19 03:46:17 im not a huge fan of reading Oct 19 03:46:28 better learn Oct 19 03:46:34 You aren't gonna love programming much then hahaha Oct 19 03:46:43 you will be reading the reference manual like holy text soon Oct 19 03:46:48 DarkSlay3r: Yeah they are Oct 19 03:46:58 im just a visual learner Oct 19 03:47:32 Anthaas programming is fine Oct 19 03:47:43 Anthaas: have you tried turning it off and on again? Oct 19 03:47:50 DarkSlay3r: Windows 101, yep :/ Oct 19 03:48:01 is it on? Oct 19 03:48:09 Yep - talking to you from it now Oct 19 03:48:13 Oh the headphones Oct 19 03:48:17 They are plugged in Oct 19 03:48:59 unplug, turn off, take a short walk, turn it back on, wait 2 mins and plug it back in Oct 19 03:48:59 video tutorals is worth paper its printed on to me. Oct 19 03:49:07 Done that Oct 19 03:49:10 this is interesting DarkSlay3r Oct 19 03:50:37 great Oct 19 03:52:03 Darn... i hate when i have two windows stacked and i try to close one and end up closing both Oct 19 03:52:15 DarkSlay3r Oct 19 03:52:21 i think it would be better if i looked at the tnb tutorials first Oct 19 03:52:34 Good luck then Oct 19 03:52:34 i doubt there are very large sdk changes Oct 19 03:53:00 android surprises people Oct 19 03:53:17 although there is still backwards compatibility Oct 19 03:53:18 good random function facts http://eternallyconfuzzled.com/arts/jsw_art_rand.aspx Oct 19 03:53:28 The tnb tuts are still valid Oct 19 03:53:36 not going away any time soon Oct 19 03:54:27 Unable to load class 'com.android.idle.common.res2.MergingException'. Oct 19 03:54:37 Anyone familiar with Android Studio and creating a new project ? >< Oct 19 03:54:51 DarkSlay3r its scary because all of the comments are suggesting that these tutorials are old Oct 19 03:54:56 but just cos theyre old doesnt mean theyre wrong Oct 19 03:55:26 'A real fix is to work with the distribution rather than try to circumvent it" - There is a small probability that this could never happen and the program just sits there Oct 19 03:55:41 imply call rand() until you get a number that fits within your selected range: Oct 19 03:56:08 unfortunately java Math.Random() is [0,1) Oct 19 03:56:08 aspire: Just pick one Oct 19 03:56:22 relax, everything you learn is useful Oct 19 03:56:24 well DarkSlay3r these videos are gaining quite a reputation http://www.youtube.com/playlist?feature=playlist-comment&list=PLLnpHn493BHF33bSvIA0ySchxXkrib8TK Oct 19 03:56:25 old or new Oct 19 03:56:36 I updated my Android Studio and now I'm unable to create new projects. Anyone else have same problem? Oct 19 03:56:47 its sad that those videos probably is future. Oct 19 03:56:50 i'm not in a position where i can access youtube Oct 19 03:56:51 i think watching the tnb videos would be far more informative than this Oct 19 03:56:54 oh Oct 19 03:57:00 ok, fair enough Oct 19 03:57:37 I dont know Oct 19 03:57:47 I found TNB to be good if you already understood what was going on Oct 19 03:57:53 Nobody said TNB was wrong Oct 19 03:58:12 Just Android has changed a lot since then, and more up to date tutorials would show that. Oct 19 03:58:19 aspire: Think of it this way. Oct 19 03:58:25 2.x had stuff Oct 19 03:58:29 I still can't get my feckin' sound working. Oct 19 03:58:34 4.x added new stuff Oct 19 03:58:40 lots of new stuff Oct 19 03:58:50 regardless of what you learn Oct 19 03:58:55 you still learn stuff Oct 19 03:59:08 yes but i dont want to learn obsolete stuff Oct 19 03:59:13 id like to keep it as recent as possible Oct 19 03:59:16 Then start 4.x Oct 19 03:59:21 Which is what was recommended Oct 19 03:59:32 follow the marakana tutorials Oct 19 03:59:45 the bro talks about some of the changes Oct 19 03:59:45 Vogella also has some good stuff Oct 19 03:59:58 Vogella always has good stuff Oct 19 04:00:18 Is there a tech support channel? Oct 19 04:00:21 Anyone? Oct 19 04:02:30 something that i would kind of be looking for is android dev tutorials that dont actually involve xml layouts Oct 19 04:03:17 ....huh? Oct 19 04:03:42 Thats like saying "I want to learn programming, but don't really want to have to use a computer." Oct 19 04:03:55 You can, but its kinda pointless. Oct 19 04:04:13 Anthaas: That's what Dijkstra used to do.... Oct 19 04:04:17 aspire: xml is your friend Oct 19 04:04:23 embrace it Oct 19 04:04:40 gavilan2: Dijkstra was wrong :P Oct 19 04:04:46 Anthaas you can do android dev without using xml layouts Oct 19 04:04:53 Anthaas: Yet he invented many useful things Oct 19 04:04:53 particularly the ability to preview the layout Oct 19 04:04:54 and DarkSlay3r idk i used to do android dev a long time ago Oct 19 04:05:02 i disliked the xml portion of it Oct 19 04:05:12 no one likes gui very much Oct 19 04:05:13 well Oct 19 04:05:14 it was a bitch and a half to position everything Oct 19 04:05:26 ada lovelace programmed without a compter Oct 19 04:05:26 but things that make things easier to do are welcome in my book Oct 19 04:05:39 aspire: I know you can, but XML is what defines the Android UI Oct 19 04:05:47 Anthaas: You would do well to learn it. Oct 19 04:05:50 lady Ada is a champion Oct 19 04:05:54 i like xml Oct 19 04:06:00 see the difference? Oct 19 04:06:00 indeed Oct 19 04:06:13 I wonder what computing would be like if not for her Oct 19 04:06:14 XXCoder: yeah, but her UIs were terrible, to be fair Oct 19 04:06:23 lol Oct 19 04:06:29 XXCoder: actually.... not much different Oct 19 04:06:39 The hacker culture however... Oct 19 04:06:51 probably in the gutter Oct 19 04:07:10 maybe. maybe nobody thought of programming for 50 more years Oct 19 04:07:33 aspire: What is it you want to do then? You ask for help finding a tutorial, but say you don't want to use the ones we recommeneded, and then said you don't want to do one that has XML despite it being fundamental to Android. It would be easier for us to help if you tell us what you do want to do. Oct 19 04:07:56 all android apps has minium one xml file Oct 19 04:07:59 manfest Oct 19 04:08:02 ^ Oct 19 04:08:04 the only xml file required is AndroidManifest.xml Oct 19 04:08:10 Yep Oct 19 04:08:23 you could avoid using xml for layouts Oct 19 04:08:25 Not so much an app than a background service if thats all you have though Oct 19 04:08:34 Oh you want to hard code the entire UI? Oct 19 04:08:37 a Oct 19 04:08:38 ya Oct 19 04:08:41 ...... Oct 19 04:08:44 insane Oct 19 04:08:46 Why? Oct 19 04:08:52 Why would you ever do that? Oct 19 04:09:02 because i prefer it Oct 19 04:09:08 i feel more "in control" Oct 19 04:09:11 You don't, you just don't know it yet. Oct 19 04:09:32 im kind of relating to whether or not to use a gui builder Oct 19 04:09:38 throughout my programming experience, i never used a gui builder Oct 19 04:09:50 Its hard to see how. You do all the positioning etc in XML, which gets rid of a bulk of your code, and then do the things that need to be in java in java. Oct 19 04:10:05 aspire: Using a GUI builder makes things a lot easier - but that still translates to XML. Oct 19 04:10:07 yeah vastly higehr maintainability Oct 19 04:10:20 using a gui builder is a horrible idea Oct 19 04:10:22 higher Oct 19 04:10:28 I would also argue, though, that unless your app will have 0 feedback whatsoever, you still need more than 1 strings file. Oct 19 04:10:46 Exactly. Oct 19 04:10:59 Not using it is a far worse idea. Oct 19 04:11:10 Programming all of your UI in Java is a ridiculous idea. Oct 19 04:11:14 Hello! How do I measure the size a button will have on screen? Oct 19 04:11:22 not at all, thats wat ive been doing for the past 5 years Oct 19 04:11:30 So, while I will have a decent UI up and running in a couple mins, you will be there for hours. Oct 19 04:11:47 You will be nowhere near as constructive as those who do use one. Oct 19 04:11:49 do you really believe that is accurate? Oct 19 04:12:01 Yes. Oct 19 04:12:15 really? Oct 19 04:12:17 Yes. Oct 19 04:12:29 does getMeasuredWith() include padding? Oct 19 04:12:30 well ya, no it is not accurate at all Oct 19 04:12:52 It is. Oct 19 04:13:14 Lets take this down to a really simple level. Oct 19 04:13:16 how could you possibly believe that a couple mins using a gui builder translates to a couple of hours of handcoding? Oct 19 04:13:17 i dont get it Oct 19 04:14:01 I want a textview sat in the middle of a vertical linear layout in the middle of a screen, and I want it to say "Hello, World" - from the strings.xml file (which is important because I want to translate my strings later). Oct 19 04:14:04 I could do that in a few clicks Oct 19 04:14:11 How many lines of code would you have to write to do that. Oct 19 04:14:32 Ok, hours was perhaps a little exaggerated, but it would take you a massive proportion of time longer than me. Oct 19 04:14:50 lots fun troubleshooting Oct 19 04:14:51 theres not much of a time difference for such simplistic layouts like that Oct 19 04:15:04 Yes there is. Oct 19 04:15:06 aspire: Do you like swing/AWT? Oct 19 04:15:19 not at all Oct 19 04:15:24 and DarkSlay3r as opposed to wat Oct 19 04:15:36 As opposed to everything else Oct 19 04:15:48 which includes? Oct 19 04:15:57 Then why would you want to do your UI in pure java? Oct 19 04:16:00 Everything that isn't Swing/AWT... lol Oct 19 04:16:05 such as? Oct 19 04:16:13 Oh i dunno Oct 19 04:16:16 JavaFX Oct 19 04:16:22 QTJambi Oct 19 04:16:23 wat do you think javafx uses Oct 19 04:16:25 just out of curiosity... Oct 19 04:17:40 Ok, aspire, I'll put it this way, do it however you want, find a tutorial which floats your boat, but your development time is going to be higher, and your maintainability is going to be lower. You are shooting yourself in the foot. Do it in XML with a GUI builder and everything is easy to chop and change, but if you really think that that is not the case, go ahead. Develop a fairly big app and Oct 19 04:17:47 when a big change is needed, don't come moaning on here lol Oct 19 04:18:10 You came here for advice on tutorials etc, we gave it to you. Oct 19 04:18:33 dilbert of course http://search.dilbert.com/comic/Random%20Number%20Generator Oct 19 04:19:04 XXCoder: hahaha Oct 19 04:19:25 mhm, well i suppose you guys are supposedly the android devs here Oct 19 04:19:36 Seen the classic: "private void generateRandomNumber() { return 4; //this number was generated by a dice roll and is guaranteed to be random } Oct 19 04:19:37 so sure : ) Oct 19 04:19:47 yeah saw that while googling too Oct 19 04:21:05 ok ty Anthaas and DarkSlay3r for your suggestions Oct 19 04:21:07 much appreciated Oct 19 04:21:58 aspire: np - as much as you might not like it, and I know I have been there, the GUI builder will save you more time on Android development than you'd think at first. I never used to use it, started with java, then with coding XML, now with the builder. Saves SOOO much time. Oct 19 04:24:33 Now, does anyone know about a tech support irc channel? Oct 19 04:27:06 hey all Oct 19 04:29:22 Hey Oct 19 04:30:39 how are u matey ? Oct 19 04:32:03 damn cant figure this Oct 19 04:32:10 currently randoms all biased Oct 19 04:32:13 XXCoder ?? Oct 19 04:32:37 5~ Oct 19 04:32:41 oops Oct 19 04:42:23 trying SecureRandom Oct 19 04:42:26 see if any better Oct 19 04:47:04 XXCoder: make sure you use it right... Oct 19 04:47:22 sr.nextInt(drawme.getWidth()) Oct 19 04:47:28 dont sound like complex Oct 19 04:50:12 Take the time Oct 19 04:50:19 Get its md5 Oct 19 04:50:29 multiply it by secureRandom Oct 19 04:50:38 The divide it by random Oct 19 04:50:43 then** Oct 19 04:51:03 or just take a Qbit... Oct 19 04:53:14 ... all sound horrible Oct 19 04:54:53 p_l: He wanted something complicated... Oct 19 04:55:16 simple is complex usually ;) Oct 19 04:55:45 p_l agree. Oct 19 04:57:02 average android dev revenue per month $4700 Oct 19 04:57:09 Let's over complicate things! Oct 19 04:57:30 zmuser3: my average is about $0 Oct 19 04:57:39 give or take a few cents Oct 19 04:57:47 heh Oct 19 04:57:54 I would be very happy with that hahaha Oct 19 04:58:20 Sit on my ass all day and get paiiiiiiiiiid Oct 19 04:58:21 hahaha Oct 19 04:58:26 Anthaas: I'd be happy to swap revenue streams Oct 19 04:58:32 you can have mine Oct 19 04:58:39 The way to not make money: in app ads Oct 19 04:58:45 there is lots of $0 to go arround Oct 19 04:58:57 You get pittance, the advertising platform gets loads. Oct 19 04:58:58 Not worth it Oct 19 04:59:10 i've decided to never use ads Oct 19 04:59:14 Same Oct 19 04:59:19 mine is around 0$ nowadays, Oct 19 04:59:28 I don't want to be that much of an asshole to my end users. Oct 19 04:59:34 hoping it'll be 5000$ one day Oct 19 04:59:39 tonyMontana9099: You used to make money? Oct 19 04:59:46 yes. Oct 19 04:59:50 you must be some kind of genius Oct 19 05:00:02 quit my job. working on start up. fingers crossed. Oct 19 05:00:15 Good luck Buddy Oct 19 05:00:28 if things go wrong (i know they wont) i can always get back. Oct 19 05:00:38 i was a system admin in a 500 employee company :/ Oct 19 05:00:40 commit to that Oct 19 05:00:50 Things will go wrong Oct 19 05:00:54 power through that Oct 19 05:01:00 DarkSlay3r does waking at 6am count :P ? Oct 19 05:01:03 Murphy's Law Oct 19 05:01:09 and grow that company Oct 19 05:01:16 If anything can go wrong, it will. Oct 19 05:01:21 Anthaas murphy was a douche :D Oct 19 05:01:28 The best commentary on that said that Murphy was an optimist hahaha Oct 19 05:01:35 Anything can go wrong, even if it can't go wrong. Oct 19 05:01:51 everything goes wrong Oct 19 05:01:55 thanks matey DarkSlay3r Oct 19 05:01:56 http://www.murphys-laws.com/ Oct 19 05:01:58 if it can go wrong Oct 19 05:02:02 dr house = murphy Oct 19 05:02:03 it will go wrong Oct 19 05:02:13 if it can't go worng Oct 19 05:02:23 if will go wrong Oct 19 05:02:24 Itll definitely go wrong. Oct 19 05:02:32 Everything goes wrong Oct 19 05:02:37 even the wrong stuff Oct 19 05:02:46 if the wrong stuff go wrong, it means they go right ? Oct 19 05:03:45 Nope they usually produce undefined behavior Oct 19 05:03:49 No, they just get worse haha Oct 19 05:04:21 no they go right. or left :p Oct 19 05:04:31 just twitted this hahaha as 'morning thought' Oct 19 05:04:54 Undefined behavior == they go upwards in the wrong physical space Oct 19 05:05:45 hehehehe Oct 19 05:05:53 whatever that means, its most probably right. Oct 19 05:06:02 but since it can be wrong, it is. hrhrhr Oct 19 05:06:08 I bet apple could market it Oct 19 05:06:20 like they are doing the new mac pro Oct 19 05:06:25 yep Oct 19 05:06:44 if they can make a fruit the most famous logo, the heck they can market this Oct 19 05:06:48 well Oct 19 05:06:54 I did a ugly hack on this Oct 19 05:07:05 XXCoder: let me guess Oct 19 05:07:31 double width, then move it back half width then clip ends (if below 0, set 0 stuff) Oct 19 05:07:43 it gets rid of edges Oct 19 05:07:57 i totally guessed that Oct 19 05:08:07 sure.. Oct 19 05:08:31 tonyMontana9099: i think the new mac pro looks like Darth Vaders trash can Oct 19 05:08:43 hey star wars is awesome lol Oct 19 05:08:50 nooo, dont say that Oct 19 05:09:05 i agree its something eccentric and bizarre for a computing machine.. Oct 19 05:09:15 I would totally play paper toss with it Oct 19 05:09:17 I always thought star wars trash compactor was weird Oct 19 05:09:28 expecially since they have more fancy techlogies Oct 19 05:09:31 DarkSlay3r are u a fan of that game ? Oct 19 05:09:55 XXCoder: It's like how computers in star trek are fat as hell Oct 19 05:10:08 tonyMontana9099: It's something to pass the time Oct 19 05:10:15 and exploding consoles. dont forget that Oct 19 05:10:17 tossing papers from a cubicle Oct 19 05:10:30 DarkSlay3r it is. i play temple run Oct 19 05:10:46 thinking of DLing the star wars series Oct 19 05:10:50 Temple run is good Oct 19 05:10:58 the films it is Oct 19 05:11:16 tonyMontana9099: you've got to watch the series once every 3 years Oct 19 05:11:18 or the dark side wins Oct 19 05:11:21 http://tvtropes.org/pmwiki/pmwiki.php/Main/ExplosiveInstrumentation Oct 19 05:11:40 DarkSlay3r arent we already on the dark side hahhhahah Oct 19 05:12:33 XXCoder: That has ruined Star trek for me Oct 19 05:12:53 btc going nuts again Oct 19 05:13:09 Now i will just find it stupid when a console explodes and kills someone Oct 19 05:13:14 dark you should read sev trek, but I have to disrecommand that Oct 19 05:13:18 DL started !! Oct 19 05:13:24 a pack that has all the films owow Oct 19 05:13:24 their website is awful awful peice of shit Oct 19 05:13:27 no Oct 19 05:13:36 thats giving shit bad name Oct 19 05:16:02 tonyMontana9: it was never about the fruit Oct 19 05:17:12 Does anyone know how to convert a bitmap to BitSet object? Oct 19 05:17:26 any help will be much appreciated Oct 19 05:17:45 lasserix i know Oct 19 05:18:03 read the book, watched the movie, and every single bit you can find on internet. Oct 19 05:18:10 :) Oct 19 05:21:57 hey ayone familiar with taking a picture from the phone? I keep getting a "takepicuture failed" I noticed an error in the log: W/QCameraHWI﹕ Unknown sendcommnad Oct 19 05:22:01 any suggestions? Oct 19 05:22:43 zquad: Generally create a file pointer and pass it to the camera intent Oct 19 05:22:51 that is what I have done before Oct 19 05:23:07 mmm do you have a gist somewhere? Oct 19 05:23:22 cause I dont think this should be this difficult Oct 19 05:23:26 ok let me get some code from I PC Oct 19 05:23:39 awesome :) Oct 19 05:24:27 i didn't know there was an original meme Oct 19 05:24:40 1 meme to rule them all Oct 19 05:25:49 zquad: https://gist.github.com/subinsebastien/7051947 Oct 19 05:25:57 and in the onActivityResult() Oct 19 05:26:23 create a inputStream from the file and read the content Oct 19 05:26:36 k Oct 19 05:26:38 checking Oct 19 05:27:01 the getOutputMediaFile() function is just a utility funtion that returns a unique file pointer Oct 19 05:27:16 I used the unix millis to name the image if I remember correctly Oct 19 05:27:54 got it Oct 19 05:37:06 napster: this is all you do to capture an image? Oct 19 05:37:14 yeah Oct 19 05:38:05 maybe Im over thinking this, let me try it your way. Oct 19 05:38:09 and that isn't even its final form Oct 19 05:41:49 wow, that was fast (0.6.3) Oct 19 05:53:43 ls Oct 19 05:53:50 hahaha i can't believe i just typed that Oct 19 05:54:04 anyway i wanted to ask if you guys know how publishing an app works Oct 19 05:54:11 does all the beta stuff get thrown away? Oct 19 05:54:20 or do ratings and comments stay? Oct 19 06:06:18 navetz do you get ratings for apps in alpha or beta? Oct 19 06:06:32 Does anyone know how to convert a bitmap to BitSet object? Oct 19 06:06:43 seand: yea only 1 though, i'm just curious Oct 19 06:06:50 in beta Oct 19 06:07:02 oh so that's the difference between alpha and beta? Oct 19 06:08:16 seand: i think they both act the same, alpha is for hardcore testers and beta is when you think something is ready for production but you want a group of people to test it ahead of time Oct 19 06:08:36 beta is pre-release, alpha is pre-beta Oct 19 06:09:31 i'm familiar with the concepts of alpha and beta, i was wondering the differences in google play specifically Oct 19 06:09:49 gotcha Oct 19 06:11:06 f2prateek nice explanation ! Oct 19 06:11:23 there are even subdivisions inbetween those.. rare but they do Oct 19 06:11:25 ah okay, well i don't think there are any real differences in the developer console Oct 19 06:11:26 Greetings, folks! Can anyone say me how can I make ToggleButton to change color on changing "checked" state? I already have both drawable and color XMLs in appropriate directories and when I change state background changes OK while color stays the same. Oct 19 06:11:48 navetz: but did you say alpha doesn't have reviews but beta does? Oct 19 06:13:13 seand: I'm not sure about alpha, I promoted my app to beta and got comments then. I assume it works the same way but can't confirm Oct 19 06:13:22 oh Oct 19 06:13:53 what app did you make, if you don't mind me asking Oct 19 06:14:03 For info: background drawable is set from XML layout (I'm inflating multiple of this kind in the code), but in the code for different circumstances there are few of colors set to this ToggleButton Oct 19 06:16:19 Anyone know how to get the length of the area the red line shows? http://i.imgur.com/sZ0NdCT.png Oct 19 06:16:36 I'm using getWindowManager().getDefaultDisplay() but it's giving me everything including the title Oct 19 06:19:35 seand: it's just a image viewer for cats. I can add you to the beta if you'd like? Oct 19 06:19:51 no thanks Oct 19 06:20:01 i'm just always curious what everyone's working on in here Oct 19 06:20:17 ^ Oct 19 06:20:44 actually is there a good place around here to get beta testers for apps? Oct 19 06:20:49 i never thought about it Oct 19 06:21:23 navetz: are they adorable pictures of cats? Oct 19 06:21:35 seand: oh yea Oct 19 06:21:47 navetz: then try making a post in reddit.com/r/aww maybe? Oct 19 06:21:58 seand: great idea. Thanks! Oct 19 06:22:10 i should head over to reddit.com/r/cats too i suppose lol Oct 19 06:23:22 oh yeah, perfect Oct 19 06:25:20 hey napster Oct 19 06:27:02 good morning Oct 19 06:27:28 hey shadej Oct 19 06:29:04 I have four icons in a a relative layout and I want the icons to fill the screen no what the size of the screen is which measurement should i use? Oct 19 06:32:45 why are you using relative layout for them ? Oct 19 06:32:53 are their positions proportional ? Oct 19 06:33:23 tonyMontana9099: sorry I was away Oct 19 06:34:02 tonyMontana9099: yeah they are proportional Oct 19 06:34:58 shadej use, lineear layout with weights Oct 19 06:35:18 and put this new layout wherever u want inside the bigger relative layout Oct 19 06:35:40 ok Oct 19 06:36:21 tonyMontana9099: I will try Oct 19 06:36:56 anyone here have experience with Rajawali? Oct 19 06:39:02 hello Oct 19 06:39:10 Hello Oct 19 06:39:26 frankdrey-pc: Can't say I've heard of it, sorry. Oct 19 06:39:55 no frankdrey-pc Oct 19 06:48:37 Hello, I am publishing an android app for the first time and a bit confused. While building the app, I created an API key to use Google Maps. Oct 19 06:49:43 Can I add another SHA1 with the same package name for the release mode? Oct 19 06:50:30 The key is the keystore you use to create the API key Oct 19 06:50:38 You should have used the debug.keystore when developing Oct 19 06:50:45 and yourapp.keystore when publishing Oct 19 06:53:44 ahh thanks anyway, good night :) Oct 19 07:06:17 hi all Oct 19 07:06:21 pfn: scala seems like it was designed for perl people. so I am set Oct 19 07:07:05 ... lol Oct 19 07:07:14 i'm new to developing, so i'll keep this simple: Oct 19 07:07:56 just ask, if someone knows they will answer Oct 19 07:08:02 is there a way for me to map keyboard events to a usb game controller, plugged into an android? Oct 19 07:12:43 zmuser3, not even remotely Oct 19 07:12:53 sure looks like it Oct 19 07:13:07 so far anyway Oct 19 07:13:48 I guess it's because zmuser3 haven't encountered certain other languages... (Haskell, at the very least) Oct 19 07:14:20 your language experience is limited if the parallel you draw is perl Oct 19 07:14:34 well true that Oct 19 07:15:35 when it comes to sigils, I'm pretty sure I could make Haskell accept (limited set, but still) japanese sentences as valid programs as long as they were written in kanji. Same with Common Lisp, would just need a custom reader and maybe few macros Oct 19 07:16:11 you can write perl in whitespace. your point? :) Oct 19 07:17:04 sorry had a few jaeger shots, almost bedtime Oct 19 07:17:16 zmuser3: the thing is, Perl required more work to make that well, work, iirc Oct 19 07:17:32 ... with Haskell, I'd just define functions named with kanji Oct 19 07:17:52 or random arbitrary unicode Oct 19 07:18:21 it's also quite annoying because it's so impossible to type Oct 19 07:18:24 2² <--- making that work as 2^2 sounds... pretty easy Oct 19 07:23:43 2^2 = 0 Oct 19 07:24:35 ;-) Oct 19 07:25:45 bitsch! Oct 19 08:22:59 Alright, I made a VM and redesigned my blog.. what else can I do to avoid working on this app update. Oct 19 08:56:56 hi everyone! Oct 19 08:57:28 I need some advices regarding a problem that I have with my application Oct 19 08:58:37 Here is the code of my Activity: http://pastebin.com/dKVTx2Hk Oct 19 08:59:34 This Activity is made of a DrawerLayout that will show a Fragment as the main view. the user can change the Fragment by using a ListView that is in the drawer Oct 19 08:59:54 ( something very 'basic', simple navigation list and Fragment switch ) Oct 19 09:00:55 but here is my problem: at the beginning, I want to show a specific Fragment, so I call a method in the Activity onCreate that performs the FragmentTransaction for showing the initial Fragment Oct 19 09:01:53 it's working, BUT, if I quit the application by using the BACK button and relaunch it, it will create an exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState Oct 19 09:03:00 the os tells me that I will become stateloss in this scenario. But I noticed that if I remove the call to showPage ( please see the source code http://pastebin.com/dKVTx2Hk ) in onCreate, I don't have this exception anymore Oct 19 09:03:33 so my question is: how to show a given Fragment at startup without doing the FragmentTransaction? Oct 19 09:04:36 I tried using commitAllowingStateLoss instead of commit but the error is still there. Oct 19 09:17:31 I just published an alpha version of my app, and signed up as a tester. The "Download from the Play Store" link is broken. Does it take a while to be accessible? Oct 19 09:27:44 hi all Oct 19 09:37:36 i have problem with the android fragment viewpager. Basically I have fragment pager with 3 fragments containing list views and the data loaded in the listviews is stored in some datas structure and in the database. Everything is working, but when I minimize the activity, use other applications or leave the phone idle, after some time when i resume the activity with the fragment pager - all of the fragments are empty. This doesn't happe Oct 19 09:37:36 ns immediately. If I minimize the application and resume it after several minutes all the fragments are filled with content. Seems like the data structures containing the data for the listviews in the fragments are cleared or something. I tried to load check if they are empty and load them from the database in onResume() but it doesn't help. Can anyone suggest what might be the problem? Oct 19 09:41:46 I am also struggling with Fragments actually Oct 19 09:42:23 kolarski_: what happen when you change the orientation of your device? Does your Fragment loose some datas? Oct 19 09:42:51 the orientation is fixed to verical Oct 19 09:42:57 *vertical Oct 19 09:43:23 i see Oct 19 09:44:02 I suspect the OS to delete the instances after some time and so, you loose your datas and when you relaunch your application the Fragment appears empty Oct 19 09:44:37 yes Oct 19 09:44:47 i think so Oct 19 09:45:12 are you overriding the onSaveInstanceState methods? Oct 19 09:46:57 no Oct 19 09:47:01 ok Oct 19 09:47:09 let me explain 1-2 small concepts Oct 19 09:47:23 if I say something wrong, please, someone, correct me Oct 19 09:48:22 when you leave an Activity or a Fragment, and if you may come back to it after some time, you should store the datas somewhere in order to be able to see them again the next time you will show the Activity or the Fragment Oct 19 09:48:54 when you leave the Activity/Fragment, the onSaveInstanceState method will be automatically called. Oct 19 09:49:25 This method has a Bundle object as parameter Oct 19 09:50:00 this Bundle object is a structure that will be stored somewhere in the Android OS where you can store temporary datas related to the Activity/Fragment you left Oct 19 09:50:21 so you must put the datas you want to persist in your Activity/Fragment in this Bundle Oct 19 09:51:29 exemple, in my application, I have a ListView and a filter that is used to show a particular dataset in the list. When I leave this fragment, I want to be able to see again the dataset that was shown at the moment I left the Fragment Oct 19 09:51:58 for that, I will store the filter index in the bundle object, in the onSaveInstanceState of my Fragment Oct 19 09:52:11 like this: savedInstance.putInt(SELECTED_FILTER, getSupportActionBar().getSelectedNavigationIndex()); Oct 19 09:52:33 ( in my case, the filter is located in a dropdown box in the action bar ) Oct 19 09:53:22 so, when I come back in the Fragment, if the instance is not retained, the Fragment will be recreated Oct 19 09:54:01 if you see the signature of onCreate, you will notice that there is a Bundle object as parameter. this object will contain the datas you have stored the last time you left the Fragment Oct 19 09:54:48 so, in the onCreate method, you must check if this bundle object is not null, if it not null, then it contains datas and you can get them back and apply them to your fragment in order to show the previous dataset Oct 19 09:55:02 like this: mCurrentFilter = savedInstance.getInt(SELECTED_FILTER); Oct 19 09:56:06 I asked you before if you can rotate the screen, before during a rotation, the Activity is destroyed and recreated (because the dimensions change), so you may loose your datas, exactly like your issue Oct 19 09:56:16 is it more clear? Oct 19 09:56:55 i am not using onSavedInstanceState, but in the onResume() method of the fragment pager activity I am checking if the data structure is empty and if it is I am loading it from the database. I am not using onSavedInstanceState, because I have tree of composite objects, not a single in or string. Oct 19 09:57:28 did you try to persist the fragments? Oct 19 09:58:25 you can persist the fragment by adding that in its onCreate method: setRetainInstance(true); Oct 19 09:58:40 doing that will cause the Fragment not to be destroyed Oct 19 09:59:13 i should put this in the onCreate method of each fragment ? Oct 19 09:59:28 yes, you can try Oct 19 10:00:14 hey using Environment, how do I access the dcim folder Oct 19 10:00:16 ? Oct 19 10:00:49 ok, I will try. Oct 19 10:01:05 But I will need some time to see if its working :) Oct 19 10:01:16 Thank you very much for the help! Oct 19 10:01:19 no probs, Oct 19 10:01:25 no problem, I hope it will help you Oct 19 10:01:48 i also have a problem with fragments actually Oct 19 10:01:51 hehe Oct 19 10:02:11 :) what is it? Oct 19 10:03:01 i get this exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState Oct 19 10:03:37 let's say I have a single Activity that can display one Fragment at a time Oct 19 10:04:05 the first fragment is a ListFragment. if I click on an item, I show another Fragment that displays the details of the clicked data Oct 19 10:04:41 have you tried to remove the super.onSavedInstance() call? Oct 19 10:05:21 if I touch the back button, it will quit the application. Then I relaunch it and click again on an entry of the listfragment and bam! i got this exception. Oct 19 10:05:45 no I didn't try to remove super.onSaedInstance. is it something known? Oct 19 10:07:06 I've seen this exception before Oct 19 10:07:48 removing super.onSaveInstanceState doesn't change the problem ( and looks strange to me ) Oct 19 10:07:55 but thx anyway ;) Oct 19 10:09:24 There was a workarround for this in some post in stackoverflow Oct 19 10:10:11 hum i will try to find it, thx Oct 19 10:10:30 but i want to understand why i get the exception instead of doing a quick fix also;) Oct 19 10:11:19 http://stackoverflow.com/questions/6787071/android-fragment-how-to-save-states-of-views-in-a-fragment-when-another-fragmen Oct 19 10:11:55 thank you! Oct 19 10:12:07 hope this helps Oct 19 10:31:13 Hi all, does somebody know a good tutorial for downloading a pdf document? Oct 19 10:35:14 it is not different than downloading a file Oct 19 10:56:59 guys I am bit confused about authetication to youtube I found this http://developer.android.com/google/play-services/auth.html where they use oAuth and they i checked yt-direct-lite-android where they use GoogleAccountCredential Oct 19 10:57:05 which one to use? Oct 19 11:26:41 JakeWharton: I think the android-support-v4.jar packaged with the .zip download of ABS is broken. I think it's this bug: https://code.google.com/p/android/issues/detail?id=30755 Oct 19 11:27:13 Not on a PC right now, I'll verify later. Oct 19 11:27:28 The joys of projects that copy .jars around manually. Oct 19 11:30:25 Hi, just starting out with Android development and have a question. Trying to get my head around contexts. I have a class that has nothing to do with the UI, but it does need to read and write some preferences. Should I be passing around references to contexts everywhere? That seems to be wrong. Oct 19 12:09:28 MarkG1234: you could use application context for that Oct 19 12:10:17 what do I need to do in my class to get the applicatin context? Oct 19 12:10:37 getApplicationContext() is always undefined Oct 19 12:15:04 guy s I am constatly getting [2013-10-19 14:14:47 - OAuth] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/api/client/extensions/android/AndroidUtils;when tryng to run my project Oct 19 12:15:04 aried3r: It's not broken, it's an old revision Oct 19 12:15:23 Replace it with a new version, or use a proper build system that lets you pull dependencies from maven central Oct 19 12:16:29 SimonVT: I do, I am merely maintaining this project. Oct 19 12:17:02 SimonVT: And it should still ship with the latest version, no? Oct 19 12:17:22 The latest version isn't in central Oct 19 12:17:24 I just went from ABS 4.1.0 to 4.4.0 and only with the support lib from 4.4.0 this happened. Oct 19 12:17:27 ABS is a maven project Oct 19 12:17:37 And the .zip is generated from that? Oct 19 12:17:56 The zip is generated by github from the master branch Oct 19 12:19:01 Which means the support-lib in the repository is outdated. Oct 19 12:19:11 It does indeed Oct 19 12:19:48 Well, I personally use maven/gradle, but if a .zip file is offered with the latest version of ABS, I'd also package it with the latest support lib. Oct 19 12:20:17 It packages the version it's being built against and tested against Oct 19 12:21:42 So there's no way to have it being build against a more recent version? Oct 19 12:22:11 You can replace the jar Oct 19 12:22:35 That's what I thought, but you mentioned that the latest version isn't in central. Oct 19 12:22:39 What will it be? Oct 19 12:23:00 I thought you were using maven now, how are you using the newest version of the support library? Oct 19 12:23:25 You'd usually just push it to your local repo Oct 19 12:23:30 I am using maven for my own projects. Not this one I am currently updating. Oct 19 12:24:10 Well, if you're not using maven, why worry about what's in centrall Oct 19 12:24:13 Just move jars around Oct 19 12:25:18 We're not getting anywhere. I am moving jars around, all I'm saying is that I didn't expect ABS 4.4.0 from July 2013 to come with a support-lib from January. Oct 19 12:26:04 I already fixed it, I just don't want anyone else to encounter the same problem. Oct 19 12:26:22 And yes, they should use Maven, Gradle w/e, but not everyone does. That's why there's the .zip file in the first place. Oct 19 12:26:50 "GitHub.com is currently unavailable for emergency maintenance." Oct 19 12:26:54 Guess I'll send that PR later ;) Oct 19 12:27:08 It'll get closed Oct 19 12:27:13 Just sayin Oct 19 12:27:48 Why? Oct 19 12:28:02 I explained why abs packages an older revision Oct 19 12:28:09 THat's why Oct 19 12:28:47 So if people using Maven can't have it, people copying files around can't? Oct 19 12:28:51 This isn't something unique to ABS. You can't expect every library to update every time the support library is updated. When the next revision hits, you'll have to move jars around manually anyway Oct 19 12:28:56 Exactly Oct 19 12:29:12 Great Oct 19 12:30:19 Absolutely how it should be. Oct 19 12:31:34 Does Google plan to update Central or will they continue to ship their own repo with the SDK Manager? Oct 19 12:32:11 On the slim chance that an Android dev said anything about it in here. Oct 19 12:33:00 Google doesn't plan to maintain the one in central Oct 19 12:33:11 They didn't upload it in the first place Oct 19 12:33:25 So every Maven project is stuck? Oct 19 12:33:32 What about Gradle? Oct 19 12:34:16 Maven projects are stuck unless they push new revisions to their local repo, or the android plugin is updated to pull from the sdk repos Oct 19 12:34:20 Gradle pulls from sdk repos Oct 19 12:36:16 ABS is also a Gradle project from what I've gathered. Can't look right now, because github is down. Oct 19 12:36:32 Wouldn't it be time for it to move to Gradle and make use of the latest libraries? Oct 19 12:36:51 At least once IntelliJ hits 13. Oct 19 12:37:20 It has gradle build files, yeah. It even pushes an aar to central Oct 19 12:37:34 But it tests with Maven on Travis? Oct 19 12:38:01 Yes Oct 19 12:38:21 There were various issues with moving completely to gradle when the build files were added, no idea if that's fixed yet Oct 19 12:41:24 Fair enough. Oct 19 12:41:52 Android Studio and Gradle are in a really bad state still IMHO. Not much works without indepth knowledge of hand editing Gradle build files. Oct 19 12:42:10 Might not happen tho, ABS is pretty much at end of life Oct 19 12:42:35 I know, I'm not sure how interested Jake is in further maintaining it. Oct 19 12:42:52 For new apps, I go minSdk=15 anyway. Oct 19 12:43:27 Hi, when using Volley and the ImageLoader with LruCache, will Volley also cache requests to disk ? Oct 19 12:44:19 More people should do that Oct 19 12:45:17 Hopefully people will get lots of new devices for christmas Oct 19 12:53:24 SimonVT, yes Oct 19 12:54:07 My earnings went up 65% last December Oct 19 12:54:20 Anywhere near that would be welcome this year Oct 19 13:13:31 i need some help with dataproviders Oct 19 13:13:42 super anoyed with it now Oct 19 13:13:51 it seems that not all tables are being created Oct 19 13:14:39 i have 2 tables both inheriting form SqliteOpenHelper Oct 19 13:14:46 and only 1 table is being created Oct 19 13:19:43 as far as i understand using that class should create a new table if it doesn't exist Oct 19 13:22:23 SQLiteOpenHelper is per database, not per table Oct 19 13:22:48 If the database doesn't exist, onCreate is called. If the version number is incremented, onUpdate is called Oct 19 13:24:26 Simon you win!! Oct 19 13:24:39 i forgot that Oct 19 13:25:06 so i have to have 1 SQLiteOpenHelper for my db and create all the tables in there Oct 19 13:25:12 man how stupid do i feel Oct 19 13:53:32 is there some method like findViewFromLayout ? Oct 19 13:55:49 Sicp: you first have to inflate your layout Oct 19 13:57:01 is there a method similar to findViewFromLayout? Oct 19 13:57:31 because I have this list that pops up when a button is clicked, and this list is a layout which also has a button inside it, above the list. And I want to add a clickListner to that button Oct 19 13:57:52 I'm trying to get a ref to that button after the layout is created, but I keep coming up null Oct 19 13:58:48 Call findViewById on the inflated view Oct 19 13:59:56 yep, I was just looking at inflator, I have not called the layout from the inflator, just did new Dialog accounts, and then accounts.setContentView(my layout) Oct 19 14:00:18 SimonVT, thnx alot that made immediate sense when you said its per db .. i have no idea why i thought per table .. Oct 19 14:01:31 sicp are you doing that inside an activity, if so findViewById() can be called in the onCreate of the activity Oct 19 14:02:56 Dialog has findViewById Oct 19 14:04:23 yea, worked to just say accounts.findViewById Oct 19 14:07:01 anyone have bitcoin acount? Oct 19 14:08:40 I wished... Oct 19 14:11:20 anyone got good examples of how to efficiently handle scrolling a grid of images or a listview of images Oct 19 14:11:26 preferably using recycling ? Oct 19 14:15:32 well, even though I was able to create (and have the button show up on the screen) with dialogInstance.findViewById (button inside list layout), I am not able to set clickListener on it Oct 19 14:15:41 or well, it isn't responding to the click Oct 19 14:15:48 hello! Oct 19 14:15:57 I have a question regarding FragmentTransaction Oct 19 14:16:08 because the listener was added inside the case of the button that spawned this list and its contents Oct 19 14:16:53 well it doesn't sound wrong.. Oct 19 14:17:31 it is said (in some forums) that FragmentTransaction should be only done in onCreate and in response to user inputs. But if we perform FragmentTransactions on user inputs, like a touch event, it will be commit after the onSavedInstance and give the stateloss exception, is it correct? Oct 19 14:17:45 I really have issues with that actually... Oct 19 14:30:09 hi al i am looking in to changing my app to a side navigator . this means i have to use Fragments.. whitch is just fine, however. the examble i have founed wants me to do Fragment fragment = new MyFragment(); is there a way to do this without MyFragment having to be defined in the same file as the class that is trying to use it ? having to add all the fragments in that location would make it a huge file.. Oct 19 14:32:52 fanno, create other java file where you declare your fragments and then just import/use them in your activity Oct 19 14:33:10 it makes: MyActivity.java, MyFragment.java, ... Oct 19 14:33:30 and in MyActivity.java you will have import ....MyFragment; Oct 19 14:34:59 don't define your Fragments in the same file than you Activity class, because if you want to reuse your Fragment in another Activity, it will be difficult and bad designed;) So use a separate file for each Fragment Oct 19 14:37:08 shibakaneki: how excactly would i then be able to add this fragment ? Oct 19 14:37:20 eclipse reports missmatch error Oct 19 14:40:12 all it took was to set the listView to wrap_content on height and now the button responds?.. Oct 19 14:41:23 shibakaneki: miss patch is on line 3 (i understand why it is miss patch tho.. ) i just dont understand what to do about t.. as line 9 complains that input must be fragment. Oct 19 14:41:23 http://pastebin.com/yBxZJSX0 Oct 19 14:45:03 try to write: SettingsFragment fragment = new SettingsFragment Oct 19 14:45:18 Fragment fragment = new SettingsFragment(); Oct 19 14:46:00 shibakaneki: i tried that then i get error on line 9 Oct 19 14:46:26 i get the error: The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, SettingsFragment) Oct 19 14:47:09 what is the error Oct 19 14:48:14 The method replace(int, Fragment) in the type FragmentTransaction is not applicable for the arguments (int, SettingsFragment) Oct 19 14:50:19 does SettingsFragment extends Fragment? Oct 19 14:52:18 shibakaneki: ye Oct 19 14:52:19 *yes Oct 19 14:52:28 hum then i dont know Oct 19 14:52:52 You're using a support fragment with a native fragment transaction, or the other way around Oct 19 14:55:29 hey Oct 19 14:55:40 ah, good point SimonVT Oct 19 14:55:41 whats the best way of caching http:// images Oct 19 14:56:15 its avatars Oct 19 15:11:42 SimonVT: correct =P Oct 19 15:11:51 what one should i be using ? Oct 19 15:12:08 android.support.v4.app.Fragment or android.app.Fragment Oct 19 15:15:41 Maybe off-topic: But does anyone know some place to get worldwide stock quotes (scraping/API)? Oct 19 15:16:30 google maybe? Oct 19 15:17:10 oh,no longer available Oct 19 15:17:28 sonOfRa, and yahoo doesn't provide quotes for some countries :( Oct 19 15:17:37 fanno, v4.app.Fragment Oct 19 15:17:45 and getSupportFragmentManager Oct 19 15:18:43 have any of you used Picasso image cache? Oct 19 15:18:46 is it anygood? Oct 19 15:27:05 lemonxah: thanks =) Oct 19 15:27:43 lemonxah: i take it i should also be using FragmentActivity ? Oct 19 15:27:50 yes Oct 19 15:27:57 actually Oct 19 15:28:20 what library are you using? AppCompat or sherlock? Oct 19 15:29:09 it should be the relavent activity form that library Oct 19 15:32:36 what would be the best way to develop an app that would just scale no matter the resolution? Oct 19 15:32:43 what kind of layout, i guess? Oct 19 15:34:08 itd be nice if there was something as simple as windows forms for android Oct 19 15:34:30 drag and drop ui elements, nice set of properties options like anchoring and stuff Oct 19 15:34:58 svchost: all the layouts scale pretty sanely. You can also make specific layouts for very large factors Oct 19 15:35:15 ie all the phones are going to more or less look the same, if you do a decent job of things, and when you put it on a tablet, make a tablet UI Oct 19 15:36:00 seems unnecessary for what i am designing. why cant it just scale? lol Oct 19 15:36:10 how to calculate 58dp on sgs3 phone :/ Oct 19 15:36:24 svchost: because pixel scaling looks like shit? Oct 19 15:36:27 in windows forms or something, if i have a textbox, i can make it so it locks on one side, but stays fixed on another Oct 19 15:36:28 also forget thinking about resolution as soon as you can. Think about the physical dimensions rather. How much text can you fit in, say, 10 cm? It is surely less than you can fit in 20 cm. This consideration should drive your layouting. Oct 19 15:36:46 svchost: you can do that here: set left margin, set to fill parent Oct 19 15:37:12 svchost: gives you a fixed offset (and if you use dp like you should, you'll get scaled offset) from the left, expands to fill available area on the right Oct 19 15:38:12 the base size of widgets will scale with the screen density as well Oct 19 15:38:42 does anyone know if the Samsung Galaxy S3 is hdpi or xhdpi Oct 19 15:38:46 is there anything better than eclipse Oct 19 15:38:49 for android development? Oct 19 15:39:01 no, eclipse is the best tool there is Oct 19 15:39:30 possibly android studio, but it's in early days. tehre's also intelli-j which AS is based on. If you're starting out and don't know what you're doing yet, stick with eclipse - all the tutorials are written for it. Oct 19 15:39:33 is there anything a little easier? Oct 19 15:39:49 crashes like a prealpha release, but yes, the best one though Oct 19 15:40:01 yes svchost android studio Oct 19 15:40:16 svchost: I recommend vim Oct 19 15:40:23 is that the one that started out as like.. a weird lego android programming type thing? Oct 19 15:40:28 Android Studio doesn't actually crash for us that much at all Oct 19 15:40:35 where it was like.. stupidly simple, no actual coding at all? Oct 19 15:40:41 * Leeds in late-night troll mode Oct 19 15:40:41 no Oct 19 15:40:57 what was that one? you remember that one? Oct 19 15:41:07 it was like a university or something that started and then google bought it or something? Oct 19 15:41:27 Will the Android SDK work with openJDK 1.7 ? I guess on linux (suse 12.3) the openJDK devel package is also needed Oct 19 15:41:48 yes and no Oct 19 15:42:05 not all language features available in 1.7 are also available on android Oct 19 15:42:32 svchost: you're talking about app inventor, and it's somewhat abandoned, and isn't - and was never - designed for building real-world apps Oct 19 15:43:05 but with openJDK? I guess there could be problems from the difference of implementations Oct 19 15:43:07 im gonna check out android studio Oct 19 15:43:08 looks interesting Oct 19 15:43:11 Aiena yes it works with openJDk Oct 19 15:43:17 guiys any easy simple tutorial on how to autheticate to youtube services and upload video? only thing I found is https://github.com/youtube/yt-direct-lite-android which is great but there is bunch of code which is not needed. Oct 19 15:43:20 i just wish there was something as easy as making just a normal c# windows forms app Oct 19 15:43:24 where it did the hard work for you Oct 19 15:43:34 you could like.. drag a button.. then click that button, and it would make the handler for you Oct 19 15:43:48 but android sdk recommends oracle jdk 1.6 Oct 19 15:43:49 and you could just type in what you wanted it to do.. make your own methods and classes and stuff Oct 19 15:44:01 svchost there is Oct 19 15:44:17 lemonxah will 1.7 cause issues I know 1.6 (java 6) is safe my distro comes only with (Jaba 7 and the JAve devel packages for 1,7) Oct 19 15:44:19 okay.. what is it? Oct 19 15:44:25 *java Oct 19 15:44:45 also something that will let you just drag a button onto the screen, size it how you want, edit the properties from a properties setting grid super easily Oct 19 15:44:47 lemonxah Ok Oct 19 15:44:55 Aiena, openjdk 1.7 doesn't work that great with eclipse iirc but android studio is less of an a hole Oct 19 15:45:19 svchost you know all of what you are explaining allready exists? or are you just trolling? Oct 19 15:45:48 i dont. i havent tried coding since like.. version 2.x and i remember it being much more difficult than windows forms stuff Oct 19 15:45:53 cause what you are saying makes no sense .. its not recommended to use the wysiwyg cause the layouts might be slow Oct 19 15:46:04 Aiena: get the bloody Oracle JDK Oct 19 15:46:14 download Andorid Studio Oct 19 15:46:16 why is that, lemonxah? Oct 19 15:46:43 its downloading right now. i didnt know it existed. looks like android studio might be what i was hoping/looking for Oct 19 15:46:45 why is what? why should you download android stupid? Oct 19 15:46:57 dont draw the layouts type them by hand Oct 19 15:47:03 performance for lists Oct 19 15:47:06 Leeds I could but I am worried about conflicts on Linux Oct 19 15:47:14 specially if you are not using relativelayouts is slow Oct 19 15:47:17 "its not recommended to use the wysiwyg cause the layouts might be slow" - that was what i was asking what about.. Oct 19 15:47:21 then put it in its own bloody directory Oct 19 15:47:27 you'd think it would just write the code instantly for you Oct 19 15:47:32 and it wouldnt be any slower Oct 19 15:47:37 when it doubt do exactly what the directions say. then when your code doens't work you know it isn't because of some wacky-ass dependency somewhere. Oct 19 15:47:54 svchost, wysiwyg is bad since view hiarchy is bad should be 1 level deep Oct 19 15:48:12 drawing it with the wysiwig can make it 3-10 levels Oct 19 15:48:20 i see Oct 19 15:48:27 weird Oct 19 15:48:45 svchost the wysiwyg works as designed .. its the user that drops a view somewhere incorrectly or what ever Oct 19 15:48:49 my app shouldnt be too taxing anyway.. its going to be heavily database driven though.. Oct 19 15:48:54 Relativelayouts isn't hard to learn Oct 19 15:48:59 do you know wpf? Oct 19 15:49:05 svchost: it comes down to efficiency. When you have to handle all contingencies as a universal wysiwyg whatever, it will never be as efficient as designing it properly for the use case you need. This is why autogenerated / drag and drop app development has NEVER been more than a toy on any platform. it can help, it can generate stub functions, but you're never going to get something as integrated or as well done as writing it for the task you wan Oct 19 15:49:05 t it written for. Oct 19 15:49:12 never worked with wpf Oct 19 15:49:28 i did some silverlight progrtamming for school though Oct 19 15:49:50 yeah, I did HTML programming and now I'm a wizard. Oct 19 15:50:09 svchost while waiting for the download .. read up on relative layouts Oct 19 15:50:18 k Oct 19 15:50:31 i remember trying to make that stuff, and it being difficult and annoying to do what i wanted it to do Oct 19 15:50:45 but again, that was like.. when 2.2 came out Oct 19 15:50:47 maybe 2.1 Oct 19 15:51:08 it hasn't changed much since then. Oct 19 15:51:26 i havent done any normal programming in a long time either :-/.. i do data migration development, which is mostly sql and vbscript for my company.. Oct 19 15:51:37 so its like.. i'm very rusty on regular coding Oct 19 15:52:21 android studio is loading now Oct 19 15:53:08 what do most people target as a min requirement these days? Oct 19 15:53:14 are a lot of people still rocking 2.x devices? Oct 19 15:53:17 2.3 Oct 19 15:53:22 actually 2.2 Oct 19 15:53:41 API15 Oct 19 15:53:41 there is a min sdk and a target sdk. difference? Oct 19 15:53:46 or 14 Oct 19 15:53:50 as play services supports 2.2 and GCM is in play servicies Oct 19 15:54:10 Some people on here seem to get so aggressive towards those who don't know as much as they do. Oct 19 15:54:20 Stop being so bloody condescending. If you don't want to help people, don't answer. Oct 19 15:54:40 Anthaas, ... i dont see people not being helpful Oct 19 15:54:45 why the comment Oct 19 15:54:54 Anthaas: there are dumb questions, which deserve dumb answers Oct 19 15:54:57 I've been reading up - some people seem so....passive aggressive. Oct 19 15:55:30 Leeds: mhmm, but theres a difference between dumb and uninformed. Oct 19 15:56:01 Anthaas: uninformed generally means "hasn't made any attempt to find an answer elsewhere" Oct 19 15:56:19 no, that would be "ignorant" Oct 19 15:56:19 no googling Oct 19 15:56:22 ^ Agreed, often, but perhaps some people would be better off then suggesting a search phrase, or a specific page. Oct 19 15:56:32 about 25% of the marketplace is pre-4.x Oct 19 15:56:33 Yes pragma. Oct 19 15:56:36 Thats a better word. Oct 19 15:56:52 I don't consider 3.x a valid target anymore since everything that had it (all like... 2 devices) as gone 4.x ... except google tv. and I don't care about gtv. Oct 19 15:57:11 google wishes honeycomb never existed Oct 19 15:57:24 the funny thing is though Oct 19 15:57:24 ^ Only came out on the Xoom, didnt it? Oct 19 15:57:31 when you google, you usually run across people asking the question Oct 19 15:57:33 Anthaas: xoom, gtv, maybe or or two others Oct 19 15:57:41 so why dont they ever yell at that person Oct 19 15:57:50 for asking a stupid question without googling? Oct 19 15:57:55 ^ Oct 19 15:57:59 Also true Oct 19 15:58:13 that said, i've gotten much worse from people Oct 19 15:58:25 Anthaas its also anoying having to google for others Oct 19 15:58:27 But the same would then apply to then Oct 19 15:58:31 them* Oct 19 15:58:31 i remember going into c++ channels back in the day and practically being spat at thru the computer screen Oct 19 15:58:33 svchost: ask google first, and then we'll tell you why Oct 19 15:58:43 lemonxah, indeed, but then you would just suggest a search phrase or page first? Oct 19 15:58:51 Thats still true svc Oct 19 15:59:08 Thats what I see as a problem in the programming world, everyone wants to look smarter than the next guy. Oct 19 15:59:30 "Oh you programme through command line? I write it in binary, I like to be "in control". Oct 19 15:59:36 It goes on. Oct 19 15:59:43 Anthaas: you have too many emotions to be a good programmer. Oct 19 15:59:59 We are in a world where computing is seen as a core science, etc. and is being taught to kids. I think this attitude needs to be kicked out first. Oct 19 16:00:08 less empath/whinging, and more programming. Oct 19 16:00:18 Anthaas, only kids and newly self aclaimed genius programmers act that way i think Oct 19 16:00:24 does the package name matter? Oct 19 16:00:28 pragma-: That is another one of those statements that should be kicked out. A good programmer has nothing to do with emotions. Oct 19 16:00:35 like.. it doesnt have to be unique to anything else, right? Oct 19 16:00:36 cause the only stuff they can comment on is newby questions Oct 19 16:00:44 Without going completely off topic for the channel, there are at least several factors: 1) anyone here for any length of time is constantly bombarded by people who refuse to do any research, leading to hypersensitivity. 2) Presenting no evidence you've done any research and expecting everyone else to do it for you is a crappy attitude, combat it by saying "i've looked at x, y, z, couldn't figure it out". Personally I'll never turn away someone w Oct 19 16:00:44 ho has shown they've put in the effort to ask an intelligent question Oct 19 16:00:55 like if i want it to be com.mfe.appname (mfe being initials), it can be, right? Oct 19 16:00:58 pragma-: I'm not being "emotional" etc, I just think a large attitude change is needed in the area for things to go forward as people might like Oct 19 16:01:00 3) people can be jerks, deal with it Oct 19 16:01:02 even if somebody else is using mfe Oct 19 16:01:11 Anyway, thats my £0.02, Im off out hahah see ya guys! Oct 19 16:01:15 that sounds stupid, right? Oct 19 16:02:04 dragorn: Thats a fair stance, but then it would be good for someone to say "Well, have you researched X, Y, and Z?" rather than "Oh for crying out loud, do you even know how to use a computer or did someone else do that for you too?" Oct 19 16:02:15 Anyway - as I said, just some food for thought - take it easy guys Oct 19 16:02:17 svchost the packagename is java package name its like C# namespace Oct 19 16:02:26 and is noramlly a reverse of the domain you own Oct 19 16:02:34 like google's package name will be com.google Oct 19 16:02:39 cause they own google.com Oct 19 16:02:47 it's considered bad practice to use a namespace you don't own (own as in own the domain name for) in public code. On the market, using anothers name space could be considered suspicious/hostile by google leading you you being suspended from the market; read the ToS Oct 19 16:03:11 in your own code, go nuts, it doesn't matter. Just don't publish it because it's tantamount to claiming authority under anothers namespace Oct 19 16:03:49 what does 'foreground scaling' mean? can i cahnge that after the fact if i pick the wrong one, in android studio? Oct 19 16:03:52 file under the subheading "don't be shitty/weird about conventions in public and you'll be fine" Oct 19 16:04:03 you could use your public repository hosting domain, e.g. com.github.youraccount.yourapp Oct 19 16:04:42 pragma-: true; then it's clearly under your own container Oct 19 16:04:53 pragma-: I think that fits in the general auspices of "don't be weird and shitty" :P Oct 19 16:07:24 so if i dont own a com, i would use something else? Oct 19 16:07:42 like net.mydomain.app? Oct 19 16:07:55 or does it have to be com? Oct 19 16:08:06 this code supposed to turn music on/off with a togglebutton; but it does not act like it is in a loop, it just mutes the sound one time, how to solve it? http://paste.debian.net/59540 Oct 19 16:08:24 svchost: of course it doesn't have to be .com Oct 19 16:11:46 already completely lost Oct 19 16:11:53 lol @ mirc's facebook page. Oct 19 16:12:04 i created a new application.. nothing Oct 19 16:12:18 soemthing about gradle Oct 19 16:12:24 which sounds like a mashup of gravy ladle Oct 19 16:12:34 svc nice Oct 19 16:12:38 * Leeds sees someone demanding a lot of handholding in the near future Oct 19 16:12:42 svchost * nice Oct 19 16:12:50 Leeds sup mate Oct 19 16:13:04 nearly bedtime! Oct 19 16:13:10 Hmm. Is there some kind of scrollview with both horizontal and vertical scrolling and pinch-zooming? Or I have to create one myself? Oct 19 16:13:16 you? good weekend? Oct 19 16:13:26 do i need to make a new module now? Oct 19 16:13:30 i'm so confused :-P Oct 19 16:13:50 im gonna go watch a tutorial Oct 19 16:14:04 guiys any easy simple tutorial on how to autheticate to youtube services and upload video? only thing I found is https://github.com/youtube/yt-direct-lite-android which is great but there is bunch of code which is not needed. Oct 19 16:14:24 Leeds well, kind of boring mate.. was at work... and apparently i have more work Oct 19 16:14:34 never ends... Oct 19 16:14:46 Leeds working for yourself, ppl think its fun and you are ur own boss.. while actually is more work. Oct 19 16:15:34 more flexible, though Oct 19 16:15:34 tonyMontana9099: it's amazing how much less time I have, for less money, and less hours actually working, doing contracting ;/ Oct 19 16:15:36 Trudko why not email, get in touch with the authors ? Oct 19 16:15:54 dragorn is it bad or good ? Oct 19 16:16:15 tonyMontana9099: I preferred being salaried Oct 19 16:16:18 tonyMontana9099: because why bother them when problem is most likely my unability to find some good tutorial Oct 19 16:16:23 tonyMontana9099: but maybe I just suck at finding good gigs Oct 19 16:16:32 for example... its around 7pm now, and i still have not decided to go out or stay in and work Oct 19 16:16:39 so listen, i dont meant to be racist, but.. Oct 19 16:16:41 tonyMontana9099: in negotiations on a new one now that might a) not suck b) pay well and c) go full time Oct 19 16:16:53 why is it always brittos and indians making programming tutorials on youtube? Oct 19 16:16:56 where all the americans at? Oct 19 16:17:02 tonyMontana9099: are you frellancer? Oct 19 16:17:10 svchost seriously,, thats a gem u just said Oct 19 16:17:26 Trudko nop. formed a startup, working on a single project Oct 19 16:17:45 theres a lot of vaguely swedish people too Oct 19 16:17:48 your first experince working on your own? Oct 19 16:17:55 could be any of those swedish kind of countries... like norway Oct 19 16:17:57 finland Oct 19 16:17:59 Trudko yes. Oct 19 16:18:08 those are all basically sweden, right? Oct 19 16:18:14 they are called scandinavian countries mate :P Oct 19 16:18:21 yeah, thats what i'm saying Oct 19 16:18:23 norway, finland, sweden, danmark Oct 19 16:18:25 they're all basically sweedish-ish Oct 19 16:18:26 nordic Oct 19 16:18:34 how is working for you so far? I thought about startup but I dont think i would be able to commit so much to one project Oct 19 16:18:36 or as i like to call it, sweed-ish Oct 19 16:18:47 Trudko its a huge risk. Oct 19 16:19:02 my income in the past 5 months is 0$. Oct 19 16:19:14 i'm just saying, between indians, british and scandanavians.. they dominate the programming tutorials on youtube Oct 19 16:19:15 any sentence starting with "I don't mean to be racist" is going to be a gem :P Oct 19 16:19:20 yeah cant afford that yet. I want to freelance while working and slowly switch to full time freelancing / doing some small products. Oct 19 16:19:27 i can see myself like that for the next 2 months. Oct 19 16:19:43 Trudko i thought doing the same... but it was going to be waste of time. Oct 19 16:19:47 i want to freelance Oct 19 16:19:49 margins will get too low, every1 will do it. Oct 19 16:19:52 but i'm still a n00b Oct 19 16:19:55 why do you thbink so ? Oct 19 16:20:03 well with pure freelancing most likely Oct 19 16:20:06 my skills are too specific to freelance in anything Oct 19 16:20:13 i pretty much can only do my job Oct 19 16:20:18 svchost thats even better. Oct 19 16:20:19 svchost: i wish i had skills Oct 19 16:20:29 if you have a targetted niche, with few ppl, Oct 19 16:20:29 thing is I live in slovakia with low cost of living so I hope I woul dbe able to get some project from uk which wouldnt require me being in uk full time Oct 19 16:20:30 i can do etl programming basically Oct 19 16:20:32 thats about it Oct 19 16:20:44 ull make a name for urself.. Oct 19 16:20:53 svchost make urself king in that domain Oct 19 16:21:07 tonyMontana9099: i would like to be an king Oct 19 16:21:13 and whenever someone hears etl he should think svchost directly. Oct 19 16:21:18 i suppose i could branch out to anything database related, but i'd have to get a real job that would expand my capabilities, not some freelance gig.. Oct 19 16:21:27 DarkSlay3r you already are :D Oct 19 16:21:33 so my cost of living is like 500€ a month Oct 19 16:21:37 something where they would let me fail for a little while Oct 19 16:21:40 svchost depends on ur perspective and future plans Oct 19 16:21:46 with everything(Phone , going out etc) Oct 19 16:22:05 right now i'm too ill to have future plans for much of anything Oct 19 16:22:09 Trudko fair enuff Oct 19 16:22:15 though amazon wanted to interview with me this month Oct 19 16:22:16 svchost :( Oct 19 16:22:25 Seriously though... i wish i were in a position where i could learn to be awesome Oct 19 16:22:39 DarkSlay3r you are. you just think you are not. Oct 19 16:22:44 i'm just stuck trying to polish my own rock Oct 19 16:22:55 no way to branch out and learn from experts Oct 19 16:23:00 DarkSlay3r: what do you mean? Oct 19 16:23:06 a move to seattle though woudl probably be too much. i'm on fmla and i have to leave work at least once every few weeks randomly Oct 19 16:23:18 you have internet heh Oct 19 16:23:21 sometimes they let me work from home too.. it would be a bad time to get a new job Oct 19 16:23:22 I guess he means he works alone Oct 19 16:23:40 svchost well, such jobs are all on the cloud these days Oct 19 16:23:41 so no chance to see other people work Oct 19 16:23:45 i see Oct 19 16:24:02 for me best way to learn is see other people work too Oct 19 16:24:02 i donno, it all depends Oct 19 16:24:17 i think its easier in countries where you can do better with less costs.. like Trudko Oct 19 16:24:25 crap such agreat discussion and i have to leave -_- Oct 19 16:24:26 while you need the triple of that in usa Oct 19 16:24:34 i have too leave too.. Oct 19 16:24:56 XXCoder, cant agree more. Oct 19 16:25:02 XXCoder watch masters at work. Oct 19 16:25:15 yeah well from what I see i could get 250 - 300 € on contract in london a day where rightz now before tax i would get like 75 a day Oct 19 16:25:19 Trudko: basically i have to keep teaching myself until i have enough skill to sell Oct 19 16:25:37 Then i could be afforded the opportunity to learn from others Oct 19 16:25:40 thats why I always pay attention to gr8 developers in here, and take their advice.. each word can make a diff Oct 19 16:25:46 DarkSlay3r: and what do u do now? still in work or freelancing already? Oct 19 16:25:52 zyeah Oct 19 16:25:58 I work in an unrelated field Oct 19 16:26:10 DarkSlay3r, you dont need to know everything about something,, just start.. and the rest comes Oct 19 16:26:11 me too. I work at vend services. yay. Oct 19 16:26:15 thatsa why I have to leave my work ASAP full of average and poor programmers Oct 19 16:26:20 I want to code professionally but no money to get training Oct 19 16:26:51 XXCoder you dont work as a programmer ? Oct 19 16:26:52 get good at a bunch of stuff, then get people to pay you :P Oct 19 16:26:56 sadly no Oct 19 16:26:57 Trudko: your current position is my current objective Oct 19 16:27:04 ok guys would love to talk to you about this more because right I am wokring on doing my own company. Oct 19 16:27:10 I'm good at the "do a bunch of stuff" thing; i've got way too many things percolating right now, but getting paid... sigh. Oct 19 16:27:11 a nice hint would be : less mirc, more reading/testing tutorials Oct 19 16:27:17 hopefully will talk to you later, see you meanwhile. Oct 19 16:27:30 aiight Trudko, laterz Oct 19 16:27:31 less mirc? good that I dont even use mirc. ;) Oct 19 16:27:35 anyway good luck to all of you Oct 19 16:27:39 thanks Oct 19 16:27:39 ooops, i mean IRC Oct 19 16:27:44 XXCoder im on mirc :P Oct 19 16:27:52 :) thats what I guessed Oct 19 16:27:59 XXCoder what client u use ? Oct 19 16:28:04 hexchat Oct 19 16:28:18 aha, (never used/heard/seen) Oct 19 16:28:37 i'll probably be the only one to say this here Oct 19 16:28:39 its fork from xchat2 Oct 19 16:28:44 I use thunderbird Oct 19 16:28:45 lol Oct 19 16:28:51 DarkSlay3r hahahah seriously ? Oct 19 16:28:54 get him!! Oct 19 16:28:56 jk Oct 19 16:28:57 lolll Oct 19 16:29:02 Reading all of this really helps me feeling less alone in my own issues knowing other people are on the same boat Oct 19 16:29:08 i was gonna buy a client for my ipad.,, didnt.. Oct 19 16:29:18 DwordKnight :))) Oct 19 16:29:26 CS is always last to fall in falling ecomony, and last to recover Oct 19 16:29:32 so it may be while Oct 19 16:29:44 XXCoder, it wont fall at least for the next 10-15 years Oct 19 16:29:52 bad programmers will have less place tho... Oct 19 16:30:08 tonyMontana9099: Until the singularity... Oct 19 16:30:19 When computers can program themselves Oct 19 16:30:31 and programming is taught at the elementary level Oct 19 16:30:34 anyways guys, im out.. laterz Oct 19 16:31:48 possible Oct 19 16:31:58 some parts certainly can be automated Oct 19 16:32:44 grrr Oct 19 16:32:52 i cant see the stuff this guy sees in his project Oct 19 16:33:09 i dont see any of the folders in android studio Oct 19 16:33:32 i only see the build.gradle,gradlew, gradlew.bat, local.properties, settings.gradle, and external libraries Oct 19 16:34:57 svchost: android studio isn't released, just a preview version - it's quite possible that the tutorial was made for an earlier build and things have changed since Oct 19 16:35:18 intellij ftw Oct 19 16:35:43 confusing choices of IDEs FTL Oct 19 16:36:26 such is life Oct 19 16:37:53 this is stupid leads Oct 19 16:37:55 this view is stupid Oct 19 16:38:05 how am i supposed to do anything? Oct 19 16:38:13 complain less and do more? Oct 19 16:39:11 alankila ++ Oct 19 16:42:48 there has to be something wrong with mine Oct 19 16:42:56 every tutorial ive seen shows these folderas in there Oct 19 16:43:19 if your having to go over tutorials, you don't understand it well enough yet :) Oct 19 16:43:43 and you might want to reconsider using an unreleased preview build of a complex development tool Oct 19 16:43:59 there is no setting to get these to show up Oct 19 16:44:03 god, this is infuriating Oct 19 16:44:17 but presumably you clicked through something to that effect when you downloaded it, so there's no point repeating it Oct 19 16:45:09 I still don't know what they plan to do with android studio. Couldn't they unfuck whatever was fucked with ADT? Is there a rationale for this anywhere? Oct 19 16:45:34 eclipse blows Oct 19 16:45:46 haven't noticed. Oct 19 16:46:03 :| Oct 19 16:46:12 intellij >>>>>>>> eclipse Oct 19 16:46:17 not even in the same league Oct 19 16:48:50 Well, let's try installing 0.3.0 and see if it can import any projects I have yet Oct 19 16:49:32 intellij > android stupdios Oct 19 16:49:33 studios Oct 19 16:49:48 * jug6ernaut has no intention of beta testing gradle Oct 19 16:51:06 Doesn't look like it works. Complains something about me using gradle 1.7 but it wants 1.8. I've never installed gradle to my knowledge so I've no idea what's wrong. Oct 19 16:51:48 meh Oct 19 16:51:49 gradle Oct 19 16:52:18 "Use customizable radle wrapper" started downloading something. Of course, it ends with "Resolve error", this time about gradle 1.6 Oct 19 16:52:44 Utterly hopeless. Trying again next month. Oct 19 16:54:03 the whole android studio seems to me like it might be all about the worst java ideas that exist, like maven and reliance on external tools and all that crap. I prefer simple, integrated and braindead over something fancy and complex. At least ADT always worked, this thing can't seem to sort out the versions which I think it's managing itsef Oct 19 16:56:01 huh? Oct 19 16:56:11 never mind Oct 19 16:56:51 are you bashing maven now to? Oct 19 16:56:57 I just hate the entire java culture Oct 19 16:57:13 lol... Oct 19 16:57:21 haters gonna hate... Oct 19 16:58:19 aln needs to drink more java? ;) Oct 19 16:58:24 I love java, but I don't like what's done to it Oct 19 17:02:58 jesus, this thing is like alpha Oct 19 17:02:59 its that bad Oct 19 17:03:06 theres so much crap that doesnt work right Oct 19 17:03:30 in my ABS app, the home button spans the icon and activity name on 4.x, but only the icon on 2.x - is that a bug or a feature (or an outdated version of ABS)? Oct 19 17:03:53 I just bought a mobile and If try to install ANY application by google appstore, it downloads it and while installing it, says "error: invalid download URI". This this also happened when I tried to update skype. but only "google search update" did worked and got installed. What can be wrong? Oct 19 17:04:03 Ge0rG: That's JB behavior, ABS is based on ICS Oct 19 17:04:41 SimonVT: thanks. is there a way to get it to consistently use the title as well? Oct 19 17:04:55 No, the native action bar is used on ICS Oct 19 17:04:58 Can't change how that works Oct 19 17:05:24 bummer Oct 19 17:08:00 hi folks; newbie question: is there a way to get all the elements in a RelativeLayout to scale by the same amount when the layout shrinks to fit inside its parent? Oct 19 17:08:13 at the moment the largest element in the layout shrinks to fit, but the smaller ones don't and the whole thing ends up mangled Oct 19 17:17:57 Is google analytics available from the google repository? What's the artifact name? Oct 19 17:19:36 f2prateek you mean the google analytics app source code? Oct 19 17:20:14 Like how you can use com.google.android.gms:play-services:3.1.36 Oct 19 17:22:26 oh you're trying to integrate play service into your app? Oct 19 17:22:32 google analytics requires another jar i think Oct 19 17:23:57 I just bought a mobile and If try to install ANY application by google appstore, it downloads it and while installing it, says "error: invalid download URI". This this also happened when I tried to update skype. but only "google search update" did worked and got installed. What can be wrong? http://www.whatmobile.com.pk/Qmobile_Noir-A30 Oct 19 17:24:00 Yeah I have the jar, just wondering if I can use an artifact from the google repo instead Oct 19 17:24:43 f2prateek: Nope, not in any repo Oct 19 17:25:02 Thanks for confirming Oct 19 17:25:21 Google repos are just folders in the sdk btw, you can just check what's in them Oct 19 17:25:56 extras/(google|android)/m2repository Oct 19 17:26:13 oh sweet Oct 19 17:26:33 well they have analytics_sdk_v2 in that! Oct 19 17:26:46 Not in m2repository they don't Oct 19 17:27:01 oh right Oct 19 17:32:23 is there really no way for a relativelayout to equally resize its children in XML? Oct 19 17:33:18 (do i really have to programatically go through and resize the children based on how much the largest child has been rescaled?) Oct 19 17:38:20 yes Arathron Oct 19 17:38:21 but Oct 19 17:38:47 what you can do if there isn't a lot of redrawing Oct 19 17:38:58 you can put a linear layout inside the relative layout Oct 19 17:39:38 right Oct 19 17:40:03 my problem is that I have many children inside the relative layout - all stacked on top of one another Oct 19 17:40:27 if the largest child gets shrunk to fit, the others don't get rescaled Oct 19 17:40:32 the just say layout_below Oct 19 17:40:44 and have them all be wrap_content on height Oct 19 17:40:56 then changing 1's hight will affect all of the ones below it Oct 19 17:40:57 hm, they already are wrap_content on height Oct 19 17:41:00 wont resize Oct 19 17:41:01 aah, interesting Oct 19 17:41:15 is anybody famiilar with setting up android studio on a mac? Oct 19 17:41:19 * Arathorn reads up on layout_below Oct 19 17:41:19 but they will be propperly below Oct 19 17:41:20 thanks :) Oct 19 17:41:47 Arathorn, there is layout_toRightof _toLeftOf _below _above Oct 19 17:42:12 ah, i think i've been unclear; when i say 'stacked on top of one another' i mean centered vertically & horizontally Oct 19 17:42:14 like a bullseye Oct 19 17:42:37 i.e. stacked in the z-axis Oct 19 17:42:46 rather than the y-axis, which seems to be what layout_below is for Oct 19 17:42:46 in that cause do this Oct 19 17:43:00 layout_alignTop _alignBottom etc. Oct 19 17:43:12 so at the moment they have layout_centerInParent="true" Oct 19 17:43:14 then chaning the topone Oct 19 17:43:21 will change all of them Oct 19 17:43:44 know what i mean arathron? Oct 19 17:43:45 hm, so scaling propagates to the children if you specify an _align? Oct 19 17:43:51 yes Oct 19 17:44:02 okay, will try - thanks :) Oct 19 17:52:39 Hi :) Oct 19 17:53:12 Is it possible to use adt over additional hub where i will use also keyboard? Oct 19 17:53:34 i'm trying to import a project from eclipse with gradle, but i get the error that I am using an old, unsupported version of gradle and I should use at least 1.8. I looked into Android Studio.app (on mac) und the only gradle jars, that are there are -1.8 suffixed... so why is not using it? Oct 19 17:54:16 any good application that attends the call after some rings and plays a pre recorded message, then records the call message. hangs up. ? what keywords to search this thing ? Oct 19 17:58:29 Quest: I don't think it's possible with Android APIs (at least the normal ones) Oct 19 17:58:52 certain devices have quirks that make such operation possible with some invasive code, but some don't Oct 19 18:04:09 p_l, well, why not. an app can answer a phone call. cant it. Oct 19 18:04:23 p_l, its just making events. Oct 19 18:06:17 Quest: what you described requires access to phone audio stream Oct 19 18:06:35 Quest: which, in fact, might be totally outside the *hw* that Android (as OS) can access) Oct 19 18:06:56 hw? Oct 19 18:06:59 (with only access to volume controls and calling/ringing) Oct 19 18:07:01 hardware Oct 19 18:07:22 I had a phone where the call audio never touched memory or cpu that Android could access Oct 19 18:07:25 Noob question: I am learning Android and I see onClick function shared between different controls and then a switch. Why is that? Oct 19 18:07:34 when a user picks a call. what happens? cant we make the same picking of call thing/event by the app Oct 19 18:08:08 p_l, then how calls are get recorded? Oct 19 18:08:13 p_l, then how calls are get recorded by many apps? Oct 19 18:08:34 Quest: most often through the mike Oct 19 18:08:47 Foxandxss: Basically, you are saying I have several views that can call onClick, but I need to know which view called the onClick so I can execute the appropriate code. If you switch on the ID of the view that called the onClick, I can put the code in a separate case statement. Oct 19 18:08:54 icedp, mike and headphone. right? Oct 19 18:09:18 Anthaas: that is what I saw in a SO question. But via XML you can define a concrete method for the event Oct 19 18:09:27 icedp, so how about the app picks the call. records the sound by earphone? and sends voice message by mike? p_l Oct 19 18:09:51 or even anonymous functions in the set listener Oct 19 18:09:53 interesting Oct 19 18:10:21 Foxandxss: Yes, in XML can you can define an onClick event, and whatever value you put in there is the method name that will get called when you click. For example, if I have a bunch of data to download, I put have a function called "downloadData()", I might want to call this when I click a refresh button or when the activity loads. This means I can use the same function for both. Oct 19 18:10:57 Quest: If you want shitty quality (that might even be filtered out, in fact). Also, I haven't seen many "good" call recording apps that were not specific to few devices and required root at that Oct 19 18:11:07 Quest: you probably mean record thru mike and plays thru speaker. yes it's possible. but it will be noisy Oct 19 18:11:07 yes, so I am not sure if I should go for the switch option or not Oct 19 18:11:29 I remember the old Java 6 + swing days where the events where anonymous functions due to java limitations (closures) Oct 19 18:11:51 Foxandxss: Its a simple way of doing things, obviously after implementing OnClickListener on your activity. Oct 19 18:12:17 Anonymous ones don't require the interface or the switch, but make your code a lot bulkier. Oct 19 18:12:19 Anthaas: I'll keep reading the book Oct 19 18:12:26 Indeed Oct 19 18:13:02 icedp, record the callers voice by earphone and play message to him by sending stream that mic sends Oct 19 18:13:04 Anthaas: I personally prefer the 'new View.OnClickHandler() { ... }' approach with final variables set in its environment which determine what the handler should do Oct 19 18:13:07 Anthaas: thanks btw Oct 19 18:13:17 Foxandxss: np Oct 19 18:13:24 p_l, icedp why so limitations on android? Oct 19 18:13:25 I hate switch-case statements Oct 19 18:13:28 alankila: There are many methods of doing it, to each their own. Oct 19 18:13:37 yeh, sure. Oct 19 18:13:51 alankila: In most cases, switch statement are short, clean, and easy to re-read. Oct 19 18:14:10 yes, but a big method with 5-10 cases is horrible Oct 19 18:14:43 Foxandxss: As are 5-10 anonymous objects, or 5-10 different methods where you have to check from the XML to see which is calling which. Oct 19 18:14:46 I am kind of biased against them. I think even 'if' statements shouldn't really exist though that's decidedly unrealistic. Oct 19 18:14:59 switch-case is completely beyond the pale for me in most cases Oct 19 18:15:12 yes, but 5-10 focused methods on one task Oct 19 18:15:20 alankila did you just say 'if' statements shouldn't exist? Oct 19 18:15:26 yes. Oct 19 18:15:30 get out Oct 19 18:15:34 lol Oct 19 18:15:36 heh Oct 19 18:15:50 switch is good, for its original purpose Oct 19 18:16:06 nvm Oct 19 18:16:07 :P Oct 19 18:16:10 I just don't like them. I prefer declarative style, where things already "know" what they should do next. they don't need to test anything. Oct 19 18:16:16 I Don't like java, but is better than objc :P Oct 19 18:16:17 Quest: "record by earphone" are you sure what earphone and mic are? Oct 19 18:17:04 Quest: I don't know, I guess it's not a priority Oct 19 18:17:05 seems like AS 0.3 is a bug-version.. Oct 19 18:18:45 anyway, android has really good things, I didn't research i18n, but with the strings.xml should be easy as pie Oct 19 18:18:48 that is wonderful Oct 19 18:19:28 icedp, earphone is the peace by which we hear voice of caller Oct 19 18:19:41 icedp, the speaker Oct 19 18:21:29 and gradle is speachless :) Oct 19 18:36:53 Q: When i have some activity where for with i set setOnKeyListener() and in layout don`t have any text field is it possible to get chars from keyboard ? Oct 19 18:37:52 or other scenario, let said that i have multiple text field in layout, is it possible to capture keys before they are stored in any of them? Oct 19 18:39:20 are they any icon packs that can be easily added into eclipse? Oct 19 18:41:07 hetii, you could create your own textfield and extend android's TextField, then override some methods that handle keys before calling the super function Oct 19 18:42:39 the point is that i don`t need to show for the user input field, and in backround i need capture keyboard event Oct 19 18:43:38 hey Oct 19 18:43:45 Or even worst scenario where user will type something to soft keyboard and in the same time its possible that he got some chars from real keyboard. Oct 19 18:44:20 And i need to split those two channels. Oct 19 18:44:35 i'm triyng to use NotificationCompat.builder Oct 19 18:44:47 and i can't run .build() on it Oct 19 18:44:52 anyone knows why? Oct 19 18:47:09 ? Oct 19 18:47:35 elichai2 error message? Oct 19 18:47:44 The method build() is undefined for the type NotificationCompat.Builder Oct 19 18:48:38 and code used? Oct 19 18:49:10 just a sec(eclipse crashed... :( ) Oct 19 18:49:25 d'oh Oct 19 18:51:44 leslie: http://pastebin.com/6hCmt97K Oct 19 18:52:33 ..... Oct 19 18:52:36 is that your exact code? because you're missing a ) at the end Oct 19 18:53:04 no, i have it Oct 19 18:53:10 soryy, my mistake Oct 19 18:53:36 any idea? Oct 19 18:54:31 You're using an old version of the support library Oct 19 18:58:14 sorry Oct 19 18:58:30 so any idea? Oct 19 19:00:34 update your support library apparently, elichai2 Oct 19 19:00:44 how? Oct 19 19:00:51 from SDK manager? Oct 19 19:00:55 yep Oct 19 19:01:14 SDK manager everything updated to latest version Oct 19 19:01:34 copy the .jar to your project Oct 19 19:01:53 then copy it into your project if not using gradle or maven Oct 19 19:01:58 or sbt Oct 19 19:02:06 sbt? Oct 19 19:02:17 where do i find it in my sdk folders? Oct 19 19:02:27 oh, you can use Scala on Android? didn't know Oct 19 19:02:57 leslie: you can use anything that works with normal java stuff without things like messing with bytecode at runtime Oct 19 19:03:08 ... how it will actually work is another thing entirely Oct 19 19:03:12 extras/android/support Oct 19 19:03:28 take v13? Oct 19 19:03:31 yeah. the only thing I really looked at was Groovy and I know that doesn't work Oct 19 19:03:34 or v7? or v4? Oct 19 19:03:49 probably 4 Oct 19 19:03:54 depending on your project Oct 19 19:04:06 leslie: what do you mean? Oct 19 19:04:38 it depends on what you're using from the support library Oct 19 19:05:33 there is things that in v4 and not in v13? Oct 19 19:05:49 other way around Oct 19 19:06:21 ok, i read this: http://stackoverflow.com/questions/9926403/android-support-package-compatibility-library-use-v4-or-v13 Oct 19 19:06:27 i will stay in v4 :) Oct 19 19:06:35 and its fixed my problem, thanks! Oct 19 19:06:44 last question: Oct 19 19:07:22 is there any good reason to use Notification.Builder for above API11 and NotificationCompat.Builder for under? Oct 19 19:07:31 or just use NotificationCompat.Builder for any version? Oct 19 19:07:41 just use the compat version for both Oct 19 19:07:55 leslie: there is no diffrence> Oct 19 19:07:57 *? Oct 19 19:08:19 hi. wondering whether anyone here could help me out. i'm currently having an argument with java. me and my text editor say my JavascriptInterface does have an isRunningJellyBean () method, while java insists that it's not there :/ Oct 19 19:08:22 I think the support library uses the 11+ stuff internally on supported platforms Oct 19 19:09:18 java, or rathewr javascript. who knows. TypeError: Object [object Object] has no method 'isRunningJellyBean' Oct 19 19:09:37 RobinJ did you add the annotation to the method? Oct 19 19:09:50 annotation? Oct 19 19:10:14 @JavascriptInterface Oct 19 19:10:32 heh? never had to do that to get it to work Oct 19 19:10:35 let's see Oct 19 19:10:42 it changed in 2.2 Oct 19 19:11:04 that would be javascript error Oct 19 19:11:16 usage of @JavascriptInterface is needed for API level JELLY_BEAN_MR1 and above, Oct 19 19:11:19 and that would explain why Oct 19 19:13:29 thanks, leslie Oct 19 19:13:45 np Oct 19 19:14:09 appear to have been googleing all the wrong things xd Oct 19 19:15:41 how can i call manually a broadcast reciever? Oct 19 19:15:46 *broadcastreceiver Oct 19 19:16:12 (for debugging the broadcastreceiver) Oct 19 19:19:16 ok quick question .. START_STICKY will the OS restart it if it stops? Oct 19 19:19:33 i thought i read that somewhere but its not happeneing? Oct 19 19:19:33 :/ Oct 19 19:21:40 The OS restart it eventually if it killed the process for some reason Oct 19 19:23:44 hmm Oct 19 19:26:43 maybe i am starting it wrong Oct 19 19:26:45 let me go google Oct 19 19:29:23 hmm ou wait Oct 19 19:29:30 if i start it sticky and then bind to it Oct 19 19:29:38 does the unbind stop it? Oct 19 19:34:00 you probably need the start on boot intent Oct 19 19:36:34 alankila what do you mean with boot intent? Oct 19 19:36:44 start on boot intent Oct 19 19:37:01 this is what you want to receive if you need to run as soon as android boots Oct 19 19:43:54 hey, its me again :) Oct 19 19:44:04 another question LOL Oct 19 19:44:29 i want to dissmiss an notification from "addaction()" and i found this: http://developer.android.com/training/notify-user/expanded.html#activity Oct 19 19:44:52 opsss Oct 19 19:44:55 http://developer.android.com/training/notify-user/expanded.html#big-view Oct 19 19:44:59 ah kk thnx alankila Oct 19 19:45:17 the problem is i don't know what wrote in the PingService.class Oct 19 19:45:19 :( Oct 19 19:46:01 Hello! How do I measure the size a button will have on screen? Oct 19 19:47:12 ok lets make it simple Oct 19 19:47:54 i want to make an "dissmiss" button in notification with "addAction()" the problem is how i create an pending intent that dismiss my notification? Oct 19 19:49:31 please? Oct 19 19:50:29 ... Oct 19 19:51:48 ? Oct 19 19:52:45 Don't be annoying. Ask your question, then wait for an answer. If you have no received an answer after some time (like 20-30 minutes or something), ask your question again Oct 19 19:53:46 Adding "please?", "...", "?" or anything like that after each question will just get you kicked Oct 19 19:54:49 kk sorry Oct 19 19:57:42 also make sure you've already searched for the question on stackoverflow Oct 19 19:58:22 seand: i did.... Oct 19 20:02:31 Can my lockscreen app access NFC and allow data transfer when phone is locked? I know its impossible on default lockscreen but maybe I can bypass this security check by having my own lockscreen app? Oct 19 20:04:15 Hi there. I want to increase internal memory of Samsung Galaxy Y Pro B5510. I'm following http://www.androidnectar.com/how-to-increase-internal-memory-of-samsung-galaxy-y-pro-b5510/, but I'm stuck on step 4: One must install a custom recovery image particularly for his Android device. To do this, you should download ClockworkMod Recovery and must install it over your device.. I installed "ROM Manager" package, but when I clicked on "ClockworkMod Reco Oct 19 20:04:15 very" I got a "Device not listed above". I can extend or not the memory on this model? Thanks Oct 19 20:04:48 caraconan: Go to #android-root Oct 19 20:05:01 Thanks Oct 19 20:08:32 i want to make an "dissmiss" button in notification with "addAction()" the problem is how i create an pending intent that dismiss my notification? Oct 19 20:13:53 a broadcast to a receiver that will dismiss Oct 19 20:16:25 pfn: explain please? Oct 19 20:20:49 Hi folks. I have a table on my layout and one of the rows contains a image which may or may not be visible (this can change). Everything works great, except when the image visibility changes and the table is redrawn, it jumps to its new size. Is there a way to get the table to smoothly change to its new desired size? I note ScaleAnimation but I'm not sure this is what I need Oct 19 20:27:13 Are you setting the imageview visibility to invisible or gone? Oct 19 20:27:21 Gone Oct 19 20:27:22 lovethang_, use scale animator to scale the item to new size, then change visibility at the end Oct 19 20:27:41 The item being the image or the table? Oct 19 20:27:52 Change visibility to invisible, not gone Oct 19 20:28:06 lovethang_, the table Oct 19 20:28:13 lovethang_, since you must resize it to fit the image no? Oct 19 20:28:13 I don't want the image to occupy any space when not visible Oct 19 20:28:17 Gone makes the parent layout act as if it is not there at all, invisible acts as if it is there, but you can't see it. Oct 19 20:28:40 Yes, I wish it to act as if it was gone, not just as if it's invisible and its space is reserved still Oct 19 20:29:01 Oh I see what you want Oct 19 20:29:08 I dont know is the short answer Oct 19 20:29:12 OK sorry if I wasn't clear enough on this Oct 19 20:30:20 I was thinking something like this. Starting from a visible state, the image would instantly be set as gone. The table row that occupied it would initially remain at the previous height, but then over a few milliseconds smoothly reduce to nothing Oct 19 20:30:55 In the reverse, the table row would start from nothing and then smoothly open up to the final height required to show the image, which would then just appear in the newly created space Oct 19 20:37:35 i love when people ask for good resource for learning android Oct 19 20:37:41 The internet. Oct 19 20:37:41 resources* Oct 19 20:37:44 An acceptable response. Oct 19 20:37:52 i want to smack them in the face over the internet Oct 19 20:38:36 the android developers site is seriously the best resource for any framework i've ever used Oct 19 20:38:50 Agreed, so far. Oct 19 20:39:03 I think the Qt project resources are pretty awesome Oct 19 20:39:04 Java and its frameworks are always so well documented. Oct 19 20:39:54 i've used qt too and i still think this is better Oct 19 20:40:14 but maybe they've improved the docs since i've used it... it has been a few years Oct 19 20:44:40 Can I get some help Oct 19 20:45:12 Why ask to ask? Just ask :) Oct 19 20:45:48 How do I fight a DMCA complaint? Oct 19 20:45:56 With swords Oct 19 20:46:06 One of my apps was taken down for almost no reason' Oct 19 20:46:40 Mavrik: Anthaas: Thanks for the suggestion, I'm setting it to invisible, scaling the size, then making it gone, and doing the opposite in reverse. Exactly what I needed. Thanks for the tips Oct 19 20:46:50 Red_Hood, what was that no-reason? Oct 19 20:47:44 I made a theme based on Apple's iOS 7, but in no way infringed, all the work was mine Oct 19 20:48:24 oh no, did apple patent flat now ? Oct 19 20:48:34 I guess so. Oct 19 20:48:43 *.* Oct 19 20:48:43 first the round corners … saw it coming Oct 19 20:49:14 The person that filled the complaints doesn't even have any ties to Apple so they can't legally request a DMCA takedown Oct 19 20:49:24 I didn't even use round corners Oct 19 20:49:29 They were square Oct 19 20:50:41 did you have apple or ios in your title? Oct 19 20:51:12 Ya it said ios Oct 19 20:51:13 anyone know why a Fragment's onCreateView() is been called twice in a row on app startup ? Oct 19 20:51:35 because you create/add the fragment twice Oct 19 20:51:41 nope Oct 19 20:51:55 that's what you think Oct 19 20:52:10 Damo2k: Are you instantiating the class twice by accident? Oct 19 20:53:01 lovethang_: I can't see anywhere I am.. only once Oct 19 20:53:06 I think im missing something silly Oct 19 20:53:14 Well post some code if you want some help lol Oct 19 20:56:15 Apple doesn't own the trademark for iOS though. It's been around too long by Cisco. Is there a number I can call to get this fixed? Oct 19 20:58:19 ah i think its due to fragment entry in layout xml usibng android:name pointing to fragment class Oct 19 20:58:33 and me adding fragment to FragmentManager also Oct 19 20:59:02 Instantiating twice Oct 19 21:03:29 I have a list view each cell being a relative layout, and then I have a relative layout within that relative layout. I'm getting some super jank as a result of this, (I believe Romain Guy mentioned this becomes an exponential complexity because OnMeasure is called twice for each relativelayout). I'm just wondering what the alternative is to do here? I need a bunch of elements to display within a box with a yellow background (a price tag) Oct 19 21:04:19 inside of each cell Oct 19 21:06:21 i'm not too sure about my layout's efficiency either, it would be nice to see several complex layout examples that optimized for display Oct 19 21:08:31 neer you should draw your layout in ms paint or something Oct 19 21:08:55 and use arrows or something to signify how each element should scale Oct 19 21:09:24 seand: is this to clarify my problem? or for my own usage Oct 19 21:09:46 i most likely won't be able to help but it might help clarify the problem for others Oct 19 21:11:48 seand: ah ok thanks Oct 19 21:11:50 will do Oct 19 21:26:35 i noticed a few of the gradle examples have a file called AllTests.java; this simply has a class with one method: public static Test suite() { return new TestSuiteBuilder(AllTests.class).includeAllPackagesUnderHere().build(); } . is this really necessary? When i exclude this from my gradle build, all the tests anyhow Oct 19 21:27:07 err, all the tests run anyhow (without that file) Oct 19 21:28:04 last build of android studio is very good Oct 19 21:29:18 the gradle plugin has gotten much faster; from cmdline when daemon running around 2.98 seconds Oct 19 21:29:31 for a build of my library project Oct 19 21:30:51 it still seems much slower from AS though Oct 19 21:31:00 does anyone know why android studio adds those extra folders to the project structure? it goes: src/main/java instead of just src/ Oct 19 21:31:18 seems like maven convention Oct 19 21:31:41 Can someone explain to me what Gradle and Maven are? Oct 19 21:31:46 its well thought out, stick to that convention Oct 19 21:31:53 Anthaas google can :) Oct 19 21:31:54 I've googled, but nothing really easily understandable came up. Oct 19 21:32:00 why is it well thought out? i hate it Oct 19 21:32:18 I don't really want to know the ins and outs of how to do whatever, I just want to know what they are and what they are for. Oct 19 21:32:27 seand you can override it if you want Oct 19 21:32:32 * g00s shrugs Oct 19 21:32:33 hi, I'm looking for an android camera tutorial. Have anyone found a particularly good one? Oct 19 21:34:44 i thought AS used gradle, not maven Oct 19 21:34:58 yup Oct 19 21:35:23 i want to try recreating Camera.apk. I'm not looking to trigger Camera.apk (i.e. with startActivity()) Oct 19 21:54:38 * Damo2k is having a hot wiskey... fuckers! Oct 19 21:55:40 why do you need a tutorial... Oct 19 21:55:53 if you want to recreate it, look at the source for it in aosp Oct 19 21:55:56 and then work from there Oct 19 21:56:00 if you're hopelessly lost Oct 19 21:56:34 Ok, so my understanding of Grade is that is a alternative building platform which is optimal when building larger projects? Oct 19 21:56:47 has nothing to do with size of projects Oct 19 21:56:52 it just has better dependency management Oct 19 21:56:53 Gradle* Oct 19 21:57:00 Ahhh Oct 19 21:57:07 and it's easier to script Oct 19 21:57:12 If I ever need this, will it become obvious? Im fine with things as they are? Oct 19 21:57:15 and it's a little bit needer than xml Oct 19 21:57:29 if there are features of gradle you want, sure Oct 19 21:57:36 but if your build works, it doesn't really matter Oct 19 21:57:43 gradle is easier to extend than ant Oct 19 21:57:47 that's about it Oct 19 21:57:55 Thank god for that haha Oct 19 21:59:19 How does one go about creating a backend server for an app? What protocol is used and how does a phone talk to the server. Sorry I'm new to andorid dev. Oct 19 21:59:29 the same as any other client server Oct 19 21:59:36 ^ Oct 19 21:59:43 sounds like you're new to development period Oct 19 21:59:44 However you want really Oct 19 21:59:56 Client/server dev yes Oct 19 22:00:15 then pick the protocol of your choice and run with it Oct 19 22:00:20 I've not tried setting up a tuple-space (JavaSpace I guess for Android) system yet though - would be interesting... Oct 19 22:00:32 based* Oct 19 22:01:09 pfn do you TestSuiteBuilder for your unit tests ? Oct 19 22:01:19 *use :) Oct 19 22:01:41 gr72: what are you trying to do? Oct 19 22:01:48 pfn: O.k. Thanks. Oct 19 22:02:11 seand: I'm just trying to figure out the best way an app can pull data from my server. it will mostly be plotting data. Oct 19 22:02:12 did you ever receive a mail from Daniel Miller who wants to promote your play store app? Oct 19 22:02:33 seand: Long's Lat's etc. Oct 19 22:04:25 gr72: the basic idea is you create endpoints on the server for your app to access and send the data in whatever format you want. a lot of places are using json, i would recommend that Oct 19 22:04:41 gr72: then you access the endpoints on android using something like http://developer.android.com/reference/java/net/HttpURLConnection.html Oct 19 22:04:52 It is also possible to use XML, which is what I do Oct 19 22:05:01 I like it because its easily hierarchical. Oct 19 22:05:06 xml gross Oct 19 22:05:07 Well, obviously hahaha Oct 19 22:05:15 Its hierarchical which is what I want/need Oct 19 22:05:24 what does that mean Oct 19 22:05:35 Oct 19 22:05:41 Oct 19 22:05:43 ffs Oct 19 22:05:46 formatting doesnt work Oct 19 22:05:46 Hmm Oct 19 22:05:47 one sec Oct 19 22:06:00 if you're just talking about nesting, you can do that with json Oct 19 22:06:44 It can be, but not as clean and easy to read Oct 19 22:06:46 Out of interest Oct 19 22:06:52 Why gross? Oct 19 22:07:37 too much text required Oct 19 22:07:44 json is clean and to the point Oct 19 22:07:53 Don't see how that matters? Oct 19 22:07:57 seand: thanks. That helps a lot. Oct 19 22:08:02 JSON is a lot harder to read with larger feeds Oct 19 22:08:10 you're sending the data over the internet, i'd say it's pretty important Oct 19 22:08:22 why do you need to read it? Oct 19 22:08:25 I still don't? Oct 19 22:08:40 XML (RSS) can be used for more than passing data to my device Oct 19 22:08:45 I can use for a website I might want to set up. Oct 19 22:08:49 Same feed etc then. Oct 19 22:09:01 I can also set up feeds for interactivity with other pages etc Oct 19 22:09:08 who cares about rss Oct 19 22:09:15 XML and JSON times are pretty much the same Oct 19 22:09:19 The difference is negligible. Oct 19 22:09:25 [citation needed] Oct 19 22:09:26 RSS is an XML feed.... Oct 19 22:09:29 One sec Oct 19 22:09:37 I did a bunch of reading on this before choosing to go with XML Oct 19 22:10:21 [just need to find where I was reading from... haha] Oct 19 22:12:32 Here is an interesting post from SO (not where I was reading at the time) Oct 19 22:12:32 http://stackoverflow.com/questions/4862310/json-and-xml-comparison Oct 19 22:12:46 THe first answer by Felix Kling Oct 19 22:14:37 that supports my point Oct 19 22:22:33 hi i have this code using to decrypt a encrypted text with the same secret key , please tell me what i am doing wrong as it does not do anyhting , neither it toasts the message i have toasted here is the code http://pastebin.com/YpWabWBP Oct 19 22:22:49 sorry my session keep on shutting down so pasted the old question again Oct 19 22:22:57 not spaming though :) Oct 19 22:23:31 hi Oct 19 22:23:40 anybody please take a look at my problem Oct 19 22:24:34 decrypt function is not working , neither shows any error Oct 19 22:25:17 For android hierarchy viewer I'm getting this cryptic error: http://pastebin.com/z5cpapzh when I try to inspect my app's UI Oct 19 22:26:02 anybody ? Oct 19 22:26:45 You've asked your question, give it some time. No need to start spamming useless messages Oct 19 22:28:02 g00s, no, I just use single classes, and why care about testsuite builder Oct 19 22:29:29 pfn i saw TestSuiteBuilder.includeAllPackagesUnderHere() used in a few places; i thought it was a convenience method for something i had to do; but everything still works without it Oct 19 22:29:51 testsuitebuilder is just used for organization, and maybe some scaffolding Oct 19 22:30:35 ok, don't need it then :) Oct 19 22:30:53 i first saw it in apidemos and gradle-examples Oct 19 22:30:56 nm Oct 19 22:31:16 Hi, I'm having a problem with my VideoView, to stop it from rebuffering when locking the screen I added android:configChanges="orientation|screenSize" in the manifest. This works pretty good, however when pressing the home button the VideoView stops working at all and the screen goes dark gray. Oct 19 22:36:06 dragorn check this out :) http://www.kickstarter.com/projects/920064946/oscilloscope-watch?ref=card Oct 19 22:41:41 hi i have this code using to decrypt a encrypted text with the same secret key , please tell me what i am doing wrong as it does not do anyhting , neither it toasts the message i have toasted here is the code http://pastebin.com/YpWabWBP Oct 19 22:42:09 hi Oct 19 22:42:12 anybody Oct 19 22:42:31 g00s_: intwewatinf Oct 19 22:42:37 bah interesting Oct 19 22:58:51 man this is awesome... i wish i had CM https://plus.google.com/110558071969009568835/posts/WmNPa9cbkSN Oct 19 23:00:04 nice Oct 19 23:00:10 I do have cm :D Oct 19 23:15:25 why don't you install cm, then? Oct 19 23:15:32 it seems like most phones support cm Oct 19 23:15:39 or rather, vice versa is true Oct 19 23:21:41 JakeWharton if you're around; in a multi-project build, if the sub-projects use either "android" or " android-library" plugins, i suppose its not possible at the top level in allProjects { } to specify the common android { } configuration? i get an error like 'bad closure', probably because the top level doesn't specify any plugin? Oct 19 23:42:30 Is C++ poorly supported in the Android NDK? Oct 19 23:45:00 pfn: i hear rooting your phone voids the warranty, i don't want to do that Oct 19 23:48:40 Nvm, found the info I needed in the docs Oct 20 00:00:30 hi; when using android.support.v7.app.ActionBarActivity does anyone know how to make the narrow blue titlebar go away on 2.3? Oct 20 00:01:25 i'm expecting to only see the actionbar, but there's an ugly old-style blue bar with the app name in it :( Oct 20 00:03:08 The appcompat theme removes it Oct 20 00:03:58 ah, ok - will check; thanks Oct 20 00:11:23 SimonVT: looks like i'm already inheriting everything from @style/Theme.AppCompat.Light. Do you hapen to know what the right name for the old-style title bar is so I can hunt it down? Oct 20 00:15:04 Isn't google's gcm keeping the radio active by constantly pinging google's server? Oct 20 00:16:00 Run on an emulator to make sure it isn't a device issue Oct 20 00:16:18 ok, although i'm seeing it on both galaxy ace & galaxy s2 running 2.3 Oct 20 00:16:23 Pretty sure the title bar isn't blue on stock android Oct 20 00:16:24 although could be samsung brokeness i guess Oct 20 00:16:40 If it's still there on the emulator, something's wrong with your usage or your build Oct 20 00:17:02 the actionbar itself is correct, although it's showing the icon rather than the logo... and the text of the app in the nasty blue bar Oct 20 00:17:06 will try on the emulator; thanks. Oct 20 00:22:32 am I invisible? Oct 20 00:23:12 Yes Oct 20 00:25:34 zquad: the base station (or wifi) can push data to the handset; the packets are pushed from google through to the handset, rather than it having to poll all the time. Oct 20 00:26:03 so all it needs is a data bearer that supports that, which they all do. (how else would your phone receive calls?) Oct 20 00:30:03 so how is gcm more special that making a http client call, wont it also go over wifi? What do I not get? Oct 20 00:31:37 gcm is no different to making a very long-lived http client call. Oct 20 00:31:57 zquad: for wi-fi there is a setting on the phone whether to keep it on during sleep, if it's off push messages will be delayed. it's no magic. radio should be on but it's quite efficient Oct 20 00:32:32 the radio will go to sleep (as much as it ever does) when waiting for the response to an HTTP request if it takes a long time, and wake up when it arrives Oct 20 00:33:00 same for GCM. the only difference is that GCM is (probably) more efficient than HTTP Oct 20 00:33:24 and abstracts away all the stuff about keeping the connection to the server open, unlike HTTP. Oct 20 00:34:29 mmm ok Oct 20 00:34:56 sounds like the only downside of not using gcm is push delay Oct 20 00:37:13 the downside of not using gcm is that you'd have to implement the whole push system yourself, whilst adding additional background utilisation to the phone to do something which the phone's almost certainly already doing. Oct 20 00:38:04 k sounds good Oct 20 00:38:10 thanks Arathorn Oct 20 00:44:58 zquad: btw, this is how push magic works http://apple.stackexchange.com/questions/56645/how-do-push-notifications-work-from-a-networking-point-of-view/56686#56686 Oct 20 00:45:57 interesting Oct 20 00:48:51 Hey guys, I'm trying to unclip a child view, it works in the editor but not on the device. I'm just playing with relative layouts and negative margins. I have clipChildren and clipToPadding set to false. Any ideas? Oct 20 01:17:06 seand, it doesn't void warranty, and for that matter, how often do you warranty anything these days Oct 20 01:38:12 It's the bootloader unlocks that void warranty, I think. Oct 20 01:41:04 hey guys.. first time using android studio. how do i add a project library? Oct 20 01:50:57 nice... really helpful. i guess noone likes to develop at saturday night :P Oct 20 01:55:28 either that or nobody uses android studio. Oct 20 01:57:32 luist you add it as a module Oct 20 01:57:44 then in module settings, make sure "is library" is selected Oct 20 01:57:57 then just import it just like any other library Oct 20 02:00:17 ok ill give a try thanks Oct 20 02:00:32 Arathorn, any bad things about it? Oct 20 02:00:54 gradle Oct 20 02:01:20 jug6ernaut, explain better? :) Oct 20 02:01:34 gradle, google/androids new build system Oct 20 02:01:39 its extremely beta Oct 20 02:01:50 but when u create android projects in android studios it forces gradle on you Oct 20 02:01:52 ok so should i start with eclipse? Oct 20 02:01:58 no Oct 20 02:02:02 eclipse is horrible Oct 20 02:02:04 what then Oct 20 02:02:12 i use intellij Oct 20 02:02:16 which android studios is based on Oct 20 02:02:40 pretty much all the good from android studios but no gradle, plus everything else awesome form intellij Oct 20 02:03:14 jug6ernaut, sounds good.. community edition? Oct 20 02:03:37 community edition or the early access preview of 13 ultimate Oct 20 02:04:57 jug6ernaut, is ultimate much better? debugging sounds cool.. and i want to run the apps directly on my nexus 7 to test Oct 20 02:06:05 yes, tho not really for android Oct 20 02:06:08 what os luist Oct 20 02:06:10 r u on Oct 20 02:07:01 jug6ernaut, i usually use Mac OS but ill send my macbook for maintenance this week so.. windows Oct 20 02:07:22 http://download.jetbrains.com/idea/ideaIC-132.637.exe windows Oct 20 02:07:32 http://download.jetbrains.com/idea/ideaIC-132.637.dmg osx Oct 20 02:08:47 jug6ernaut, what version is that? i was downloading 12.1.6 :P Oct 20 02:08:56 luist the newest Oct 20 02:09:02 its the "early access preview" Oct 20 02:09:07 but its stable Oct 20 02:09:11 pretty stable Oct 20 02:09:12 lol Oct 20 02:09:18 i never have issues Oct 20 02:09:21 ooh i was smelling something unstable but.. Oct 20 02:09:35 ill give it a try Oct 20 02:09:49 for android its worth it to use the eap, it has all the newest ui features Oct 20 02:10:19 i have to integrate it with the android SDK right Oct 20 02:16:34 jug6ernaut, i want that dark theme from the screenshot :P Oct 20 02:16:45 i believe its default Oct 20 02:17:01 jug6ernaut, not for windows, it seems Oct 20 02:17:11 its in settings then Oct 20 02:17:14 not sure where tho Oct 20 02:17:16 let me see... Oct 20 02:18:04 settings/appearance/theme/dracula Oct 20 02:19:36 jug6ernaut, worked.. i feel inspired now.. Oct 20 02:19:47 lol Oct 20 02:20:15 working on integrationg google play services multiplayer to my game Oct 20 02:20:33 wheneber i call startActivityForResult() it opens the activity fine. but my game exits or crashes Oct 20 02:20:44 jug6ernaut, so i import the library as a module, right? Oct 20 02:20:52 yup Oct 20 02:21:05 ugh, for some reason, gapps from goo.im won't play nice with gms update from play store Oct 20 02:21:17 logcat doesnt give much in way of helpful hints Oct 20 02:22:56 jug6ernaut, what file exactly i have to import? on android studio i had to import build.gradle i think Oct 20 02:23:36 luist library projects are just regular projects really, you import it like any other project Oct 20 02:24:44 jug6ernaut, well theres no .project here.. just .gradles Oct 20 02:26:13 i believe only eclipse uses .project Oct 20 02:26:33 (can't remember, been a while since I've used eclipse) Oct 20 02:26:38 intellij shouldn't care Oct 20 02:28:34 jug6ernaut, strange... have you used jfeinstein10 SlidingMenu? Oct 20 02:29:20 nope Oct 20 02:29:36 but i just looked at it on github, it already has a the intellij project file Oct 20 02:29:43 so you should be able to just reuse it Oct 20 02:34:02 jug6ernaut, i was trying ActionBarSherlock... which is mentioned in the setup Oct 20 02:34:44 jug6ernaut, but i imported the .project from the sliding menu... but i didnt see any option "as library" in the process Oct 20 02:36:04 luist Module Settings, Modules, w/e module/ Android/ "Library Module" Oct 20 02:40:27 jug6ernaut, i dont see any Module Settings :T Oct 20 02:41:53 oh i found it i guess Oct 20 02:43:44 :) Oct 20 02:44:38 jug6ernaut, hmm couldnt find that option.. the only Module Settings i found was under Project Structure, is that it? Oct 20 02:44:59 eh? Oct 20 02:45:05 thats where your modules are yes Oct 20 02:45:09 ooh i found the library check Oct 20 02:45:54 jug6ernaut, the guide says i need to generate the binaries for the lib...? Oct 20 02:46:07 .... Oct 20 02:46:08 no Oct 20 02:46:34 once a library project is referened in your main project you don't need to do anything else with it Oct 20 02:48:19 ok.. i just got an IDE internal error :P Oct 20 02:49:57 they happen some times Oct 20 02:50:03 i ignore them Oct 20 02:50:04 lol Oct 20 02:50:14 * jug6ernaut did forget about them Oct 20 02:53:52 haha Oct 20 02:54:18 jug6ernaut, what if the lib has target android-16 and my project android-18? Oct 20 02:55:09 pretty sure it all compiles under w/e ur main project is under Oct 20 02:55:32 so the project target is probably ignored, not 100% sure on that tho Oct 20 02:57:15 jug6ernaut, and how do i add the lib as a dependecy? Oct 20 02:58:14 module settings/modules/module/dependencies/ add dependancy Oct 20 02:58:27 module dependency **** ENDING LOGGING AT Sun Oct 20 02:59:58 2013