**** BEGIN LOGGING AT Thu Mar 08 02:59:59 2012 Mar 08 03:04:26 man, I'm trying my hand at iPhone -- it's like alternate realiy Mar 08 03:14:35 So, this is kind of a question of opinion maybe, ive attempted a bit to get into game programming, but the Java tutorials I have found have been.. well meh. Considering the NDK would be super duper beneficial when it comes to number calculations with games, would I be better off learning how to make games in C++? Mar 08 03:16:41 yes ;) Mar 08 03:16:49 or get a 3rd party tool Mar 08 03:16:53 where ist all been done Mar 08 03:16:59 DrPenguin: I'm no gamedev but I guess so Mar 08 03:17:02 speaking of which unity basic is free right now Mar 08 03:17:15 http://unity3d.com/ Mar 08 03:17:18 or use unity or whatever else is out there to help you with the mess Mar 08 03:17:20 grab a free copy Mar 08 03:17:22 lol Mar 08 03:17:26 yeah Mar 08 03:17:29 ;) Mar 08 03:17:31 ios and android basic version are free for a while I guess Mar 08 03:24:25 hey guys how do you subtract a vector from a vector? Mar 08 03:25:04 JavaLover: get their effective values and subtract those, creating a new resultant Vector object Mar 08 03:25:31 penguin i'm coding an opengl first person view Mar 08 03:25:40 and it requires i subtract my view vector from my position Mar 08 03:25:44 thats DrPenguin to you sir Mar 08 03:25:45 :P Mar 08 03:25:51 k Dr Penguin Mar 08 03:26:02 so how do I subtract? if the vector i have is it's own class Mar 08 03:26:09 so it has x,y,z as variables Mar 08 03:26:20 how would I go about subtracting this? Mar 08 03:26:21 Vector objects should allow you to get the values out of it to subtract Mar 08 03:26:34 and if I do Mar 08 03:26:36 ssay it's 1,2,3 Mar 08 03:26:40 and the other object is 4,5,6 Mar 08 03:26:50 and i subtract what will happen? Mar 08 03:27:01 whateer happens in normal VEctor Arithmetic? Mar 08 03:27:09 oh Mar 08 03:27:15 so do I do like 1 - 4 & then 1-2? Mar 08 03:27:19 or do i add up & subtract? Mar 08 03:27:22 I think you two are talking about diferent stuff Mar 08 03:27:29 DrPenguin is talking about the Vector class Mar 08 03:27:40 JavaLover seems to be talking about a math vector Mar 08 03:27:51 isnt' that the same thing though? Mar 08 03:27:52 DallaRosa: well he said Vector Object Mar 08 03:28:01 I knwo ;) Mar 08 03:28:01 the tutorial i'm using is from C++ Mar 08 03:28:04 and it requires a vector Mar 08 03:28:11 Wait.. Is this Vector like an STL Vector? Mar 08 03:28:12 but i grabbed one for android Mar 08 03:28:15 I thought the same thing Mar 08 03:28:18 that sounds accurate Mar 08 03:28:35 i just have to reproduce the subtraction & i'm done Mar 08 03:28:39 JavaLover: be careful with the semantics Mar 08 03:28:44 wait lets stop for just a second Mar 08 03:28:52 is this the STL Vector your talking about Mar 08 03:29:13 this vector is featured here Mar 08 03:29:22 http://www.gamedev.net/page/resources/_/technical/math-and-physics/a-simple-quaternion-based-camera-r1997 Mar 08 03:29:36 *sigh* you cant just tell me wtf it is? Mar 08 03:29:37 and in the guys code he says to subtract the view vector from the position vector Mar 08 03:29:44 i would if I actually knew Mar 08 03:29:58 but just to be sure i recommend search for View on that page Mar 08 03:30:14 It looks like hes doing Pseudo Code Mar 08 03:30:23 mmm Mar 08 03:30:40 his stuff compiles though Mar 08 03:30:43 Because a Vector is aContainer Class in c++ Mar 08 03:30:48 DUDE What stuff Mar 08 03:30:52 his code Mar 08 03:31:00 i copied it over & it compiles accept the subtraction of vectors Mar 08 03:31:01 I dont see any code Mar 08 03:31:02 that's the only one Mar 08 03:31:10 if you look closely Mar 08 03:31:14 he wrote out functions Mar 08 03:31:32 *sigh* Pastebin what you ve Mar 08 03:31:34 s/ve/have/ Mar 08 03:31:46 but it's not code Mar 08 03:31:51 it's simply i need to subtract 2 vectors Mar 08 03:31:51 WTF Mar 08 03:32:06 Am I stupid here or something?? YOU JUST SAID you copied code that COMPILES Mar 08 03:32:07 it's not a compiler error it's a "how do you subtract 2 vectors" question Mar 08 03:32:13 yes his code is fine Mar 08 03:32:16 SHOW ME THAT Mar 08 03:32:19 serious? Mar 08 03:32:26 ... not anymore Mar 08 03:32:30 multiply(View - Position); Mar 08 03:32:32 figure it out yourself Mar 08 03:32:35 ahahahah Mar 08 03:32:41 why are you raging? Mar 08 03:32:48 it's a simple question how do you subtract 2 vectors? Mar 08 03:32:51 because your insufferable Mar 08 03:32:57 i mean Mar 08 03:33:02 And you have yet to tell me wtf this vector is Mar 08 03:33:17 well based on his tutorial Mar 08 03:33:21 i'm assuming it's a standard vector Mar 08 03:33:26 If this is C++ then it COULD be an STL Vector, or some other custom "vector" class that could be named differently hats COMPLETELY custom that I would have no knowledge about Mar 08 03:33:43 oh Mar 08 03:33:52 well i know it's purpose is to hold 3 variables, x,y and z Mar 08 03:33:55 and Ive asked you, repeatidly, if this is an STL Vector Mar 08 03:34:04 and i'm using it for 3D view calculation Mar 08 03:34:17 hi to all Mar 08 03:34:27 and it uses glulookat() in order to calculate Mar 08 03:34:27 some one can help me with KSOAP2? Mar 08 03:34:38 sup daniel what problem are you having with ksoap? Mar 08 03:34:43 i've used it a bunch in the passed Mar 08 03:34:44 cool story bro, dont care anymore, you're not capable of answering a simple question Mar 08 03:34:46 works like a charm Mar 08 03:34:55 that's cuz I don't know what an STL vector is Mar 08 03:35:03 kinda hard to tell you if it is one Mar 08 03:35:09 can you read this please http://stackoverflow.com/questions/9610665/android-ksoap2-cookie-handle? Mar 08 03:35:12 sure Mar 08 03:35:19 thanks :) Mar 08 03:35:22 well then if you showed me the code, like ive asked you to, MAYBE I could tell you Mar 08 03:36:30 JavaLover, your 3 points math vector is not an STL vector, an STL vector is a list of element Mar 08 03:36:35 JavaLover: when I say be careful with the semantics it's because Mar 08 03:36:46 Multiplying the values in a Vector class Mar 08 03:37:02 DarkRift awesome name btw Mar 08 03:37:02 means just multiplying the values in each element Mar 08 03:37:16 by the equivalent position in the other Mar 08 03:37:19 do you know how it's done, the subtracting of 2 vectors I.E. View - Position Mar 08 03:37:23 and to substract 2 math vector, you just need to substract all elements by the other same element (v1x -v2x, v1y - v2y, v1z -v2z) Mar 08 03:37:32 aww there we go Mar 08 03:37:35 ok... it looks like he might be using (as what DarkRift and DallaRosa hinted to earlier) vector from #math, posibly Vector3.. Vector2 overrides -, so maybe Vector3 Also does it Mar 08 03:37:35 that's what I thought was happening Mar 08 03:37:38 but vector multiplying is different Mar 08 03:37:40 but i wasn't sure if you add them together Mar 08 03:37:46 i have a function for the multiplying Mar 08 03:37:58 DallaRosa: he shouldnt have to worry about that, it looks like the Vector Classes handle that stuff Mar 08 03:37:59 kk cool Mar 08 03:38:05 it's kinda sketch I did piece stuff together Mar 08 03:38:06 really? Mar 08 03:38:16 atleast for scaler Mar 08 03:38:21 but one guy made an android version for quaternions Mar 08 03:38:24 and this other guy did it in C Mar 08 03:38:27 it just happens that Vectors are the best thing to represent a math vector Mar 08 03:38:32 so i'm sorta combining it together Mar 08 03:38:34 oh Mar 08 03:39:04 tbh if I could just use quaternions i'd do that Mar 08 03:39:07 but i'm a noob to all this Mar 08 03:39:10 first 3D game & all Mar 08 03:39:48 if you're serious about doing that Mar 08 03:39:51 either use a library Mar 08 03:40:07 i do have a library i'm using min3d Mar 08 03:40:12 to do operations on matrices Mar 08 03:40:17 but based on what i've read quaternions are unique Mar 08 03:40:35 so i grabbed a quaternion class Mar 08 03:40:36 or you should go read on how to work with matrix operations Mar 08 03:40:42 and then this is just the function to use the quaternion Mar 08 03:41:06 that's the problem with kids nowadays. they have a problem, they go to the netz and grab a classz Mar 08 03:41:08 idk if my test fails i'll resort to plan b Mar 08 03:41:20 sounds like a solution to me haha Mar 08 03:41:21 to do stuff for them without trying to understand the underlying problemz Mar 08 03:41:31 DallaRosa Mar 08 03:41:33 ;) Mar 08 03:41:36 how many 3d games are there? Mar 08 03:41:46 problem is that you don't understand what you do when you just go sarch for a class that do what you want Mar 08 03:41:55 that's not true though Mar 08 03:42:03 took me what 5 minutes to understand this Mar 08 03:42:08 overall I get what's happening Mar 08 03:42:30 if there wasn't such a huge library for 3d Games Mar 08 03:42:33 i might research it Mar 08 03:42:39 but considering everyone has already done this shit Mar 08 03:42:52 to the point where people are like "dude really...they make millions of dollars only the top minds can work there" Mar 08 03:43:04 so the way I see it, why learn i'm late as it is Mar 08 03:43:10 might as well just grab a class & use it Mar 08 03:43:11 that's what I mean. It's all on the netz, why learn how it's done (by no means I'm saying to implement the library yourself) Mar 08 03:43:16 i'll learn after it makes money Mar 08 03:43:30 but I did learn Mar 08 03:43:32 I read this guys tut Mar 08 03:43:35 that's learning Mar 08 03:43:38 lol Mar 08 03:43:50 ok. I give up :D Mar 08 03:47:49 lol Mar 08 04:06:38 hey so, question about how google admob works, it has an activity that you have to add to the manifest right, but you don't actually use that activity yourself, but you do make AdViews, so what's going on in it? Mar 08 04:37:15 so i got my google tv hooked up to my home theatre Mar 08 04:37:21 got google music running on it (finally!) Mar 08 04:37:25 but its not playing out the rear speakers Mar 08 04:40:24 thought you said you bricked it? Mar 08 04:40:34 JakeWharton Ping. Mar 08 04:42:04 damn this quickaction menu is driving me nuts Mar 08 04:42:25 works fine in my app but I can't get it to position properly in my dialog (Theme.Dialog activity that I launch from my widget Mar 08 04:43:02 wut Mar 08 04:43:05 H'WHAT?!? Mar 08 04:43:09 Pong Mar 08 04:43:21 WHOA MAN! Calm donw Mar 08 04:43:38 you know, to allow entry from a widget... you launch an activity with Theme.Dialog and I launch an alert dialog within that activity to ask user for input Mar 08 04:44:01 need to give user more options (3) so I was going to reuse my quickactionmenu, doesn't work so well though Mar 08 04:44:22 QubeZ: what about PopupWindow? Mar 08 04:44:49 I backported ICS's ListPopupWindow Mar 08 04:45:00 you're free to steal if from ABS if you adhere to the Apache 2 license Mar 08 04:45:05 COOL STORY BRO (seriously cool) Mar 08 04:45:10 the entry box is already a popup since Widget cant support EditText so I dont want another popup on top of that Mar 08 04:45:28 JoeTheGuest, wut Mar 08 04:45:34 brb, im gonna eat then talk about this more. Need sustenance and a dictionary because I think I spelled sustenance wrong. Mar 08 04:45:35 QubeZ: dont make me do a Yo Dawg xzibit thing Mar 08 04:45:58 JakeWharton You backported a some of the ICS stuff right? Mar 08 04:47:11 depends on your definition of 'some' Mar 08 04:47:29 i'm thinking more like a truckload Mar 08 04:47:47 JakeWharton I tested in on a thunderbolt running gingerbread and it threw a method not found exception. Mar 08 04:47:53 JakeWharton: how much is a "truck load" in terms of pounds? Mar 08 04:48:06 DrPenguin, depends on what planet you're on Mar 08 04:48:11 Lets say Endor Mar 08 04:48:12 on Pluto it's 100,000,000,000 pounds Mar 08 04:48:18 well played, sir. well played. Mar 08 04:48:25 JakeWharton - E/AndroidRuntime(14701): java.lang.NoSuchMethodError: android.support.v4.app.FragmentActivity.getActionBar Mar 08 04:48:33 ooh good crowd Mar 08 04:48:37 getActionBar is 11+ Mar 08 04:48:42 ABS provides getSupportActionBar Mar 08 04:48:49 I'm using getSupportActionBar Mar 08 04:48:52 The ICS library. Mar 08 04:48:54 Err Mar 08 04:48:57 Your library Mar 08 04:49:13 something is calling getActionBar Mar 08 04:49:21 I'll take another look. Mar 08 04:49:27 Might have goofed. Mar 08 04:49:35 are you using v3.5? Mar 08 04:49:42 you might as well just wait 4 hours until v4 is released Mar 08 04:49:44 rc4 Mar 08 04:49:48 Or the latest one Mar 08 04:49:56 rc1 Mar 08 04:50:09 getYourMommasActionBar() Mar 08 04:50:13 OH SNAP Mar 08 04:50:18 NO HE DIDN'T Mar 08 04:50:26 Lol. Mar 08 04:50:27 you started new place yet? Mar 08 04:50:28 OH YES HE DID Mar 08 04:50:33 first week Mar 08 04:50:36 nice Mar 08 04:50:52 alright Mar 08 04:50:56 trying to release ABS v4 Mar 08 04:50:57 I am actively seeking employment but still dont know if I can uproot my family and move to sf Mar 08 04:50:58 leave me alone! Mar 08 04:51:04 oooooooooo really Mar 08 04:51:37 haha Mar 08 04:51:45 shit hit the fan big big big time last couple days Mar 08 05:00:04 back Mar 08 05:00:16 can I show a quick pic of how the quickmenu shows up on my widget? Mar 08 05:01:48 http://imgur.com/Rufeo Mar 08 05:02:27 what's with the border? Mar 08 05:02:57 ya i need to get rid of that Mar 08 05:03:09 but the quickaction is what im trying to fix right now Mar 08 05:03:12 anyone here worked w Xcode? Mar 08 05:03:32 I has Mar 08 05:03:34 code works fine in a fullscreen activity, calcuating where it needs to be but in this widget/home screen view... all messed up Mar 08 05:03:41 QubeZ: using dialog theme? Mar 08 05:03:47 DallaRosa: yes Mar 08 05:04:01 that's the window:background for the dialog theme Mar 08 05:04:15 JakeWharton have you backported the drop down menu from ICS? Cleint is asking, he is a fan of that. Mar 08 05:04:15 DrPenguin: dude! what's the deal w downloading XCode? Seems like I have to upgrade my OS? Mar 08 05:04:24 ya thats how it is... guess not sure I can even get rid of it but thats not critical Mar 08 05:04:35 i just hate how this quickaction menu shows up on the bottom Mar 08 05:04:37 10.7 for newest xcode Mar 08 05:04:42 shipit: thats Apple for you dude Mar 08 05:04:50 I tried asking on #iphonedev, they're bunch of fanbois Mar 08 05:04:51 but since 10.7 is a whole 30$ at most :P Mar 08 05:04:52 if you want to use latest software, have to keep your OS X up to date Mar 08 05:04:55 JoeTheGuest, yes Mar 08 05:05:08 ist not like you pay for xcode Mar 08 05:05:11 QubeZ: you can create a transparent background and set it replacing the original background Mar 08 05:05:18 TheBunny: I've got a good set of apps that work perfectly well on 10.6 Mar 08 05:05:18 are we really discussing xcode? Mar 08 05:05:23 yes Mar 08 05:05:33 but with 10.7 the core OS is all64bit Mar 08 05:05:36 and apple wants to move on Mar 08 05:05:54 most machines 4+ years old can run it Mar 08 05:05:55 I don't want to spend the *time* than the money on mucking around w my computer to run Xcode Mar 08 05:06:05 there no reason to stay on 10.6 for most people Mar 08 05:06:10 DallaRosa: where do I set the background? in the manifest or in the activity? Mar 08 05:06:18 go track down xcode 3 Mar 08 05:06:23 fuck Mar 08 05:06:23 and get the right SDK Mar 08 05:06:27 shrug Mar 08 05:07:00 to understand, xcode can use the ios4 sdk? Mar 08 05:07:13 ugh Mar 08 05:07:35 xcode3, can use sdk4, to target all the way to ios5? Mar 08 05:07:49 i would figure ud need sdk 5 for iOS 5 Mar 08 05:08:26 the SDK are just frameworks the compiler part should not matter Mar 08 05:08:35 but Im not sure how easy it is to get the old one now Mar 08 05:08:45 xcode4 is 2 years old Mar 08 05:08:48 y, this doesn't work - http://adcdownload.apple.com//Developer_Tools/xcode_4.2_for_snow_leopard/xcode_4.2_for_snow_leopard.dmg Mar 08 05:08:49 TheBunny: uhh.. compiler certainly doesmatter! Mar 08 05:08:49 10.7 is a year old Mar 08 05:09:01 why? Mar 08 05:09:10 "Access Denied" Mar 08 05:09:19 I used xcode 3 to ship apps up till xmas of a year ago Mar 08 05:09:23 no problems Mar 08 05:09:38 ok, thanks a lot TheBunny! Mar 08 05:09:42 I'll poke around Mar 08 05:09:54 y'all are more helpful than #iphonedev Mar 08 05:09:57 :) Mar 08 05:09:57 FSS just update the OS Mar 08 05:10:00 you had a year :P Mar 08 05:10:02 its cheap Mar 08 05:10:07 DallaRosa: nvmd, got it. thanks. easy enough to fix. Mar 08 05:10:10 and from there on everything gets nice and happy Mar 08 05:10:13 now back to quickactionmenu Mar 08 05:10:19 as you get xcode4 from MAS for free Mar 08 05:10:27 TheBunny: I do lot of hack work in Linux VMs and VMWare Fusion Mar 08 05:10:29 QubeZ: how did you fix it? Mar 08 05:10:34 I don't want to re-setup all that Mar 08 05:10:45 wait the VM die ? Mar 08 05:10:47 i fixed the theme issue Mar 08 05:10:52 :) Mar 08 05:10:54 usually the VMs are just disk images you can copy around Mar 08 05:10:57 DallaRosa: like you said, transparent background Mar 08 05:11:00 :) Mar 08 05:11:01 good Mar 08 05:11:20 TheBunny: yeah, but you want more than just the disk.. the vmx file too atleast Mar 08 05:11:24 TheBunny: VMWare Fusion had/has issues w 10.7 Mar 08 05:11:28 im looking at options to display well... Options in a widget view dialog. Mar 08 05:11:31 gonna go grab some lunch (GMT +9 here) be back later :) Mar 08 05:11:33 then I'll have to mess with that too Mar 08 05:11:43 I'll lose a day+ easy w all this nonsense Mar 08 05:11:44 shipit: use Workstation, I have a 10.7 VM that works fine Mar 08 05:11:58 maybe a day Mar 08 05:12:00 I just want to write and compile some code :/ Mar 08 05:12:07 I updated a bunch of dev boxes recently to 10.7 Mar 08 05:12:16 only issue I had was old PPC code will not run Mar 08 05:12:21 and I had a few apps that old Mar 08 05:12:29 damn son Mar 08 05:12:37 everything else was generally horribly painless Mar 08 05:12:44 PowerPC is nostalgia Mar 08 05:13:11 shipit: Mar 08 05:13:11 http://img444.imageshack.us/img444/4022/upshoth6lzhnbl.png Mar 08 05:13:22 I just FORWARD ported this from 1998 to now Mar 08 05:13:28 now it SDL + GL Mar 08 05:13:33 TheBunny: I believe you, but I'll probably get a new laptop and then setup everything from scratch Mar 08 05:13:35 and header for MAS and ios and mobile etc Mar 08 05:13:52 damn!!! that's awesome! Mar 08 05:14:48 shift: Mar 08 05:14:49 http://chrisdillman.com/images/pmarcade.jpg Mar 08 05:14:58 was out at apple at some point 10+ years ago Mar 08 05:15:01 I guess Mar 08 05:15:10 never could track the damn thing down and get it shipped to me Mar 08 05:24:30 hey guys Mar 08 05:24:50 has anyone tried a barcode scanner that's built in inside the app Mar 08 05:25:06 i've looked at zxing but the scanner was not so friendly Mar 08 05:25:38 what about it wasn't friendly? Mar 08 05:25:43 I've used it and it works great. Mar 08 05:25:47 maybe you need some hints? Mar 08 05:26:20 zxing admittedly works better when its installed as a separate app, but I've made it work as a library before too. Mar 08 05:32:20 I'm actually working on a zxing project right now. Mar 08 05:33:07 http://campevans.net/getting-zxing-into-an-existing-android-applic should help. Mar 08 06:05:41 google play :\ Mar 08 06:06:16 What aspects of android do you really appreciate? Mar 08 06:06:37 most of it Mar 08 06:06:46 I find myself hating android & java programming, but I like the platform somehow Mar 08 06:07:09 I want to grind my teeth less Mar 08 06:07:26 (perl background) Mar 08 06:07:32 Java can be rather verbose, but I've gotten used to it. Mar 08 06:08:05 android has lots of long method names which can be odd but it's probably for the better Mar 08 06:08:23 do you ever use inline web interfaces instead of native android views? Mar 08 06:08:52 I did once Mar 08 06:08:54 back Mar 08 06:09:25 everytime you use a WebView a god kills a puppy Mar 08 06:09:46 I don't believe in puppies Mar 08 06:09:54 I have a puppy Mar 08 06:10:07 could someone help point me to a tutorial on dynamically replacing fragments in a view pager? Mar 08 06:10:10 zpmorgan, BLASPHEMY! Mar 08 06:10:28 jayne_wayne, that's probably not smart Mar 08 06:10:35 ViewPager caches views internally Mar 08 06:10:47 unless you're replacing them whilst offscreen you're going to wreak havoc Mar 08 06:11:06 and by offscreen I mean page-2 or page+2 (assuming you have the default page cache number in ViewPager) Mar 08 06:11:18 wreak havoc - haven't heard that phrase in a while Mar 08 06:11:21 JakeWharton: so are they supposed to be static? Mar 08 06:11:45 the contents of the fragment can change Mar 08 06:11:56 but the actual outermost View cannot be changed Mar 08 06:12:04 you cannot wholesale replace the currently selected fragment either Mar 08 06:12:54 JakeWharton: well i have ListView within X number of fragments on a ViewPager, and i simply update the adapter on each list view Mar 08 06:13:00 JakeWharton: does that work? Mar 08 06:13:14 yes Mar 08 06:13:26 the ListView will take care of updating itself when you change the adapter contents Mar 08 06:13:33 as long as you call notifyDataSetChanged() Mar 08 06:13:49 JakeWharton: ok Mar 08 06:13:56 is it bad to have a bunch of linearlayouts? Mar 08 06:14:04 i've heard they are a bit resource intensive Mar 08 06:14:16 how can i force my app to go into suspend mode? Mar 08 06:14:27 or "stop" mode Mar 08 06:14:30 dandaman, the flatter the view the better Mar 08 06:14:42 jayne_wayne, press home? Mar 08 06:14:55 i need to test this because when a user comes back to my app it sometimes crashes Mar 08 06:16:29 you get v4.0 launced JakeWharton? Mar 08 06:16:42 i still have 99 minutes Mar 08 06:16:53 :) Mar 08 06:17:01 This is when we all start spamming him asking for ETA's Mar 08 06:17:01 thank the gods for PST!! Mar 08 06:17:04 What aspects of android do you really appreciate? <-- Its documentation Mar 08 06:17:05 rc1 still the newest? Mar 08 06:17:09 11:55PM PST Mar 08 06:17:11 that's your ETA Mar 08 06:17:19 rc1 is ancient Mar 08 06:17:23 unless you pull from 4.0-wip branch on github Mar 08 06:17:24 :) Mar 08 06:17:32 that branch is gone! Mar 08 06:17:37 :O Mar 08 06:17:45 MOVIN' AND SHAKIN' Mar 08 06:17:55 lol Mar 08 06:18:04 Hurry, distract him more. Mar 08 06:18:15 distract this! Mar 08 06:18:21 Lol. Mar 08 06:18:43 ryden, thank you! You made me feel better for what it's worth Mar 08 06:18:56 0:) Mar 08 06:23:48 Hi all...I would like to add app widgets in my own custom home screen.Can someone please throw some light on it. thanks Mar 08 06:24:23 chithra1, http://developer.android.com/guide/topics/appwidgets/index.html Mar 08 06:24:38 hmm... idea doesn't work so well with intelliJ Mar 08 06:24:50 errr Mar 08 06:24:52 html Mar 08 06:25:06 :jeppy thanks for the link Mar 08 06:25:11 can't seem to make a project for just a website Mar 08 06:25:20 it's intelliJ not intelliH Mar 08 06:25:23 chithra1, np Mar 08 06:25:35 :( Mar 08 06:25:46 xD Mar 08 06:26:14 like a full fledged website or simple stuff? Mar 08 06:26:38 I'm still used to writing web pages with a text editor Mar 08 06:27:35 I mainly want it for easy github intergration Mar 08 06:27:52 and because it does have html auto complete Mar 08 06:28:51 I haven't done a web page on github. I would imagine you could use just about anything besides scripts Mar 08 06:29:36 tomless, are you a ui developer? Mar 08 06:29:43 not really, no Mar 08 06:29:53 darn Mar 08 06:30:01 since a fragment also has a lifecycle, if it is within a viewpager that is within an activity, which gets instantiated first? is it outer to inner or inner to outer? (from fragment to activity or activity to fragment)? Mar 08 06:30:41 it's outer to inner for activity and fragment, but idk how viewpager fits in there Mar 08 06:31:27 hrm.. thanks Mar 08 06:31:59 market only looks at versionCode right? Does it care if your apk uploaded is called app.1.5.0.apk ? Mar 08 06:32:35 just did the first market-ready build of To Do Mapr. Excited... tomorrow should be a fun day :) Mar 08 06:32:57 jayne_wayne, this might help: http://developer.android.com/guide/topics/fundamentals/fragments.html#Lifecycle Mar 08 06:33:27 to do mapr? Mar 08 06:33:39 and yes, version code is what it looks at Mar 08 06:34:00 jeppy: www.todomapr.com Mar 08 06:35:08 my invitation expires in 0 hours and 0 minutes :( Mar 08 06:35:31 jeppy: it's still up if you want to try it but I have the build that I'll be putting into the market tomorrow if you want it now Mar 08 06:35:33 jeppy: thanks Mar 08 06:35:35 its signed so you can upgrade later Mar 08 06:36:21 hmmm Mar 08 06:36:53 so it's to map routes with multiple stops? Mar 08 06:37:13 and where did you get your icons? Mar 08 06:37:17 yes and allows you to set final dest so it'll do optimal path and still get you to the your final place last Mar 08 06:37:33 jeppy: graphic designer, my business partner in Controlled Senility, LLC Mar 08 06:38:06 I'm going to need some icons for my app. Mar 08 06:38:21 it also maps by Due Date / Time via Settings if the user prefers to forego the optimal route and needs to go in sequence Mar 08 06:38:31 doesn't google maps route multiple points? Mar 08 06:38:41 jeppy: he did the website and the UI ofthe app mockups in illustrator. I just did my best to make that into the app with xml/code Mar 08 06:39:12 it looks good. Mar 08 06:39:27 thanks, still a major newb. I'm learning and UI 2.0 will be nice. Mar 08 06:39:35 but we need some users to drive the app first hehe Mar 08 06:39:47 Released!?! Mar 08 06:39:51 web service coming online at the end of this month to allow sharing of tasks and delegation among teams Mar 08 06:40:05 t0mless: tomorrow night, im waiting for the graphic designer to update the website and images Mar 08 06:40:09 not you Mar 08 06:40:11 JakeWharton Mar 08 06:40:13 :p Mar 08 06:40:19 oh darn, thought you were excited lol Mar 08 06:40:22 but congrats none the less Mar 08 06:40:25 QubeZ btw Mar 08 06:40:25 i think i'm about done Mar 08 06:40:28 tomorrow is my birthday Mar 08 06:40:30 time to polish Mar 08 06:40:37 thanks, its been 7 months... lots of lost sleep Mar 08 06:40:41 t0mless: happy birthday Mar 08 06:40:42 I need two more watchers on GitHub to make 700 Mar 08 06:40:46 700 on the 7th Mar 08 06:40:50 not going to release until I get it Mar 08 06:40:59 QubeZ, I don't usually have that many errands to run but it looks interesting so i'll give it a try Mar 08 06:41:08 but i can wait until it's released Mar 08 06:41:29 jeppy: its not just errands, it does non-destination based tasks like "call dave @ 3pm" or whatever and gtasks sync (that actually works) lol Mar 08 06:42:25 I think I'm watching, or maybe just following Mar 08 06:42:47 good i use gtasks Mar 08 06:44:01 699 Mar 08 06:44:50 i crossed 666 yesterday Mar 08 06:44:51 i'm on eastern time so happy bday Mar 08 06:45:28 why the hell am i watching my own repos? Mar 08 06:45:34 and I looked up myself on Square's DB to see what my user ID was and I signed up 666 days ago as of today Mar 08 06:45:44 jeppy, you automatically watch your own Mar 08 06:46:35 I know, it didn't seem to make sense until I realized that that only puts updates on the main page Mar 08 06:46:48 i dont get on that site often enough Mar 08 06:46:48 can you unwatch your own repos? Mar 08 06:46:53 on GitHub? Mar 08 06:47:00 man, I have a GitHub tab pinned :) Mar 08 06:47:04 best social network evar Mar 08 06:47:04 lol Mar 08 06:47:07 yes Mar 08 06:47:47 alvin_s Mar 08 06:47:54 pinned? Mar 08 06:48:24 where exacly? Mar 08 06:48:33 exactly* Mar 08 06:49:00 as a tab in the browser? Mar 08 06:49:21 l2chrome / firefox Mar 08 06:49:54 ah like bookmarks bar Mar 08 06:50:20 i was imagining several possibilities Mar 08 06:51:51 i only used firefox briefly, i loaded it full of extensions until it bogged my old computer down Mar 08 06:52:10 how can I force intelliJ to show a folder in the project files Mar 08 06:52:24 but chromium is great Mar 08 06:53:54 bookmarks bar? no, you can right click on a tab header and pin it Mar 08 06:54:10 that way it'll stay there over shutdown cycles Mar 08 06:54:35 wow i never tried that Mar 08 06:54:54 interesting... Mar 08 06:55:09 JakeWharton Done yet? Mar 08 06:55:15 does the windows version do that too? Mar 08 06:55:22 i will literally reach through the internet and stab you in the face Mar 08 06:55:30 :) Mar 08 06:55:34 I can tweet you to if it helps. Mar 08 06:55:45 that smiley face is only so the FBI thinks i'm joking Mar 08 06:56:18 60 mins and counting Mar 08 06:56:20 probably less Mar 08 06:56:41 No rush though. Mar 08 06:56:49 got 65 mins? Mar 08 06:56:54 Bug Free > Bugs Mar 08 06:56:55 not* Mar 08 06:57:00 it's not going to be bug free Mar 08 06:57:05 but the big ones are mostly gone Mar 08 06:57:36 and i'm sick of people using 3.5.1 Mar 08 06:57:42 because it's horrid Mar 08 06:57:46 Lol. JakeWharton 57min Mar 08 06:57:51 Counting to the last second. Mar 08 06:58:09 has to be tagged today Mar 08 06:58:18 and the build takes a few minutes Mar 08 06:58:27 therefore 11:55PM is the very last minute Mar 08 06:58:30 you're going to release it on international womens day Mar 08 06:58:46 I'm going to release it on the 1 year anniversary of the 1.0 tag Mar 08 06:59:50 nice milestone Mar 08 07:00:35 yeah and time is running out Mar 08 07:00:37 JakeWharton put a count down clock on your site. Mar 08 07:00:48 that would take too long Mar 08 07:01:02 Search github for a clock Mar 08 07:01:10 Copy/paste Mar 08 07:02:30 still need 1 more watcher on the repo too Mar 08 07:03:12 is there a benefit of pinning tabs over having multiple home/startup pages? Mar 08 07:04:12 the pinned tabs never can leave Mar 08 07:04:15 they take up less space Mar 08 07:04:41 is it on each window instance? Mar 08 07:05:00 Anyone want to do my C++ homework for me? Mar 08 07:05:30 * SeligArkin chews on JakeWharton's power cord for his router / desktop ( Covering my bases because if I say "power cable for computer" I know it'll turn out to be a laptop. :P ) Mar 08 07:05:45 tis a laptop Mar 08 07:05:55 and i have enough battery on my laptop and phone that I could tether and release Mar 08 07:06:02 haha Mar 08 07:06:04 and i'm 4 min from work Mar 08 07:06:07 so I could run in Mar 08 07:06:25 Dedication. Mar 08 07:06:27 I like it. Mar 08 07:06:54 but then i'd have to use macs! Mar 08 07:07:08 Mac > PC Mar 08 07:07:13 Lies Mar 08 07:07:15 both run linux Mar 08 07:07:17 :) Mar 08 07:07:19 Mac > Linux > PC Mar 08 07:07:24 Double lies Mar 08 07:07:27 apples to oranges ther Mar 08 07:07:31 e Mar 08 07:07:37 Mac is luxory linux. Mar 08 07:07:45 luxury* Mar 08 07:07:56 Pile of Rocks > Mac < PC Mar 08 07:08:18 and PC < Linux Mar 08 07:08:19 :D Mar 08 07:08:27 I love being able to use normal programs that aren't open office and picaso while having a unix based system. Mar 08 07:08:32 Unix > ALL Mar 08 07:09:26 i dual boot ubuntu and windows on two ssds Mar 08 07:09:42 JoeTheGuest, that's why i don't mind my mac Mar 08 07:09:46 I boot mac on an SSD so I don't have to dual boot Mar 08 07:09:49 CLI + Photoshop Mar 08 07:09:59 Once you go Unix, you can't go back. Mar 08 07:11:01 I just like the OS and the laptops Mar 08 07:11:05 I would never buy a mac desktop Mar 08 07:11:15 To easy to hackintosh it. Mar 08 07:11:42 But really, who wants to do my C++ homework so I can bug JakeWharton. Mar 08 07:12:00 oh noes i broke the Jenkins build Mar 08 07:12:08 within the hour of release Mar 08 07:12:25 lies Mar 08 07:12:51 https://jakewharton.ci.cloudbees.com/job/ActionBarSherlock/ Mar 08 07:12:55 JoeTheGuest, fix it Mar 08 07:13:34 oh Mar 08 07:13:35 What's wrong Mar 08 07:13:38 it's because i deleted that branch Mar 08 07:13:42 haha Mar 08 07:13:45 Lol. Mar 08 07:23:12 hello Mar 08 07:23:36 chups Mar 08 07:23:43 almost forgot to turn of debug logging Mar 08 07:23:57 alvin_s Mar 08 07:23:58 haha Mar 08 07:23:59 welcome Mar 08 07:24:00 :) Mar 08 07:24:05 yun Mar 08 07:24:09 :) Mar 08 07:24:15 thank you Mar 08 07:25:47 JakeWharton according to that, you're late Mar 08 07:25:54 also, what is cloud bees? Mar 08 07:26:02 cloudhosted shit Mar 08 07:26:07 +space Mar 08 07:26:26 I don't want to run my own server with Jenkins so I use them to host it for me Mar 08 07:26:47 how much that cost? Mar 08 07:26:54 for open source projects it's free Mar 08 07:26:59 neat Mar 08 07:27:37 you can get 300 mins/month for free for yourself too Mar 08 07:28:21 yeah that too Mar 08 07:28:26 but limited plugins Mar 08 07:29:25 not bad Mar 08 07:29:54 THIS IS BRAD! Mar 08 07:30:14 I hate progressive Mar 08 07:30:23 and I sell their insurance -_- Mar 08 07:30:38 * SeligArkin should brush her teeth and such,get ready for bed... Mar 08 07:30:50 really I just started a policy with them today Mar 08 07:30:54 Unless you're referring to not the progressive commercial Mar 08 07:30:55 It's only 02:30 Mar 08 07:31:11 no, that just came on, I just like it Mar 08 07:31:27 I just like his face when he says it. :P Mar 08 07:31:43 progressive gave me the better deal out of many Mar 08 07:33:44 they're good if you don't have a home to bundle and/or have a poor driving record Mar 08 07:33:45 t0mless, why hate progressive? Mar 08 07:33:52 or are getting the least amount of coverage Mar 08 07:34:16 partly because we can't intergrate our management system with them for more automation, but that's not totally their fault. Mar 08 07:34:21 but their snapshot thing is also stupid Mar 08 07:34:36 and their agent support is also terrible Mar 08 07:34:55 yeah i used snapshot Mar 08 07:35:02 but it gave me money back Mar 08 07:35:33 and they're ranked #15 in the state Mar 08 07:35:39 about 20% off actually... whats wrong with it? Mar 08 07:35:48 well, in california Mar 08 07:36:11 but that's all biased because I have to deal with their poor support often Mar 08 07:36:13 I'm in ohio, i just had my policy transfer from michigan and it was dropped in half Mar 08 07:36:41 you could move from one zip to another and have your cost drop Mar 08 07:36:47 it's all rated based on zip codes Mar 08 07:36:53 here we go Mar 08 07:37:11 still need one more watcher Mar 08 07:37:12 oakland and LA are terrible zip codes for insurance in CA Mar 08 07:37:19 i thought it might have something to do with michigan being a no fault state Mar 08 07:37:31 but that's good to know Mar 08 07:37:39 that probably helped :) Mar 08 07:37:41 i moved to a rural area, maybe that's it Mar 08 07:37:57 I kept my car rated here at my parents zip while I was living in the bay Mar 08 07:38:11 smart Mar 08 07:38:29 I've just built android from source sdk-eng and make sdk. How can I copy the resulting out/.../ dir into android-sdk.../platforms in such a way that the sdk manager in eclipse will recognise the directory as a new platform? Mar 08 07:38:31 FFS SOMEONE WATCH JAKEWHARTON! Mar 08 07:38:53 * t0mless already is Mar 08 07:39:00 * t0mless stares 0.0 Mar 08 07:39:04 hii Mar 08 07:39:10 cp -r doesn't seem to be enough. I think there is a source.properties file missing. Any idea where that might come from? Mar 08 07:39:25 im getting this json date return: /Date(1304671565000+0200)/ Mar 08 07:39:30 good thing I did a dry run of the release Mar 08 07:39:33 already found a problem Mar 08 07:39:46 ive never seen the +0200 thing? what that? : /Date(1304671565000+0200)/ Mar 08 07:39:47 tick tock buddy :P Mar 08 07:39:59 time zone thing I think Mar 08 07:39:59 GMT +2hrs Mar 08 07:40:01 time zone Mar 08 07:40:04 aha Mar 08 07:40:05 you in Europe somewhere? Mar 08 07:40:09 yez Mar 08 07:40:13 somewhere Mar 08 07:40:14 :D Mar 08 07:40:59 so what should i do with it? can i ignore it..and just slice it out? Mar 08 07:41:01 can I run the abs update script thingy to get the new version? Mar 08 07:41:01 bestKoderEver isn't the bestDocReader Mar 08 07:41:04 jeppy maybe it's just california, but progressive rate's aren't that great, and we offer 4 of the top 10 companies in the state which normally have better rates Mar 08 07:41:10 ignore it probably Mar 08 07:41:12 unless they have like a dui Mar 08 07:41:23 all date and time parsers should handle it just fine Mar 08 07:41:32 strip it out and you'll be 2hrs out Mar 08 07:41:49 :facepalm: Mar 08 07:41:54 don't ignore it Mar 08 07:41:57 uniscript whaat.. Mar 08 07:41:58 i had a couple of tickets in the past 3 years so everyone else was jacking it way up, progressive just jacked it up less so i chose them. Mar 08 07:42:27 well the +0200 is saying that the time is local time (probably) and that it is 2hrs ahead of GMT Mar 08 07:42:41 so strip it and you shift the time to GMT which will be 2hrs different to what you thought it was Mar 08 07:43:22 where's lov to say something like "this isn't #android-insurance"? Mar 08 07:43:24 could i just add 2 h in milisec..= fine Mar 08 07:43:42 depends if the time is localtime or globaltime I can't remember Mar 08 07:43:51 ill try! Mar 08 07:44:15 i will see if it gives me 2h +- from my watch.. Mar 08 07:44:20 swatch! Mar 08 07:44:30 * SeligArkin calls in a favour with a preditor drone, shoots up JakeWharton's house Mar 08 07:44:38 SUCCESS! Mar 08 07:44:45 \o/ Mar 08 07:44:58 oki thankz guys.. il B back. terminating Mar 08 07:44:59 I'd like to play 24 looping audio tracks simultaneously, and set the volume for each one 15 times per second. Not sure how to do it. Should I just use 15 audiotracks in an asynctask? Mar 08 07:45:03 bestKoderEver, users of your app may be in different time zones. That could mess it up for them Mar 08 07:45:07 JakeWharton you ever play the card game dominion? Mar 08 07:45:31 jeppy your right..but the wont..i will think about that though. Mar 08 07:45:35 s/use 15/use 24/ Mar 08 07:45:45 release is go Mar 08 07:46:13 did you merge to master yet? Mar 08 07:46:26 or you going to leave that as 3.5? Mar 08 07:46:55 i'll merge once the release is finished Mar 08 07:47:04 zpmorgan, sounds like your trying to induce seizures Mar 08 07:47:17 jeppy, that's actually a possibility Mar 08 07:47:38 jeppy, I'm working on artificial synesthesia Mar 08 07:48:01 artificial? Mar 08 07:48:43 yes, so maybe blind folks will sort of unduce hallucinations from 'listening' to image data Mar 08 07:48:44 you want to make android taste yellow? Mar 08 07:48:59 mmm... yellow... Mar 08 07:49:02 hmm Mar 08 07:49:04 well the tag was created Mar 08 07:49:07 but the release failed Mar 08 07:50:15 OH FUCK Mar 08 07:50:16 idot Mar 08 07:50:37 zpmorgan, i dont think asynctask is the way to go. asynctask is not for long running operations. Mar 08 07:51:03 but i'm not sure if each track would need a thread or not Mar 08 07:51:36 jeppy, I'm at a total loss then.... would SoundPool work? Mar 08 07:51:52 zpmorgan, tried handler.postAtTime()? Mar 08 07:51:58 tbh, i have no idea Mar 08 07:52:03 in a new thread Mar 08 07:53:37 alex_PP, that certainly looks like it would help. I'm more concerned with mixing sound loops Mar 08 07:55:15 honestly... why do I have such a hard time spelling jekyll... Mar 08 07:55:59 second release failure Mar 08 07:56:04 lucky number three? Mar 08 07:56:05 better be Mar 08 07:56:08 time is running out Mar 08 07:56:13 can anyone help me with getting my built sdk to be included in the list of sdks on my system? Mar 08 07:56:28 that is viewable from within eclipse along with the other sdks I have downloaded Mar 08 07:57:12 wtf... the ctrl+shift+arrows doesn't work for html files in intellij?? Mar 08 07:57:12 how many sdks does one need? Mar 08 07:57:42 well it would be nice to be able to switch between them rather than having to change the place to search directory and have all my virtual machines go blank all the time Mar 08 07:58:03 I have an android-sdk/platforms dir with one dir per platform Mar 08 07:58:26 is there some way to get my new sdk build to become a subdir there so that eclipse sees it along with the other sdks there? Mar 08 07:58:57 * jeppy is confused Mar 08 07:59:16 I have android-sdk/platforms/android-10 android-11 android-12 Mar 08 07:59:34 how can I add an android-15 from and sdk I have just built myself? Mar 08 07:59:36 eclipse supports having multiple versions of the sdk? I guess I just dont see the point Mar 08 07:59:55 so you can run up different versions of the sdk for testing Mar 08 07:59:56 yea, he means api levels Mar 08 08:00:10 yeh one version of sdk per api level Mar 08 08:00:10 you need to do something with the targets Mar 08 08:00:14 I think you can add one Mar 08 08:00:19 using the android command Mar 08 08:01:44 t0mless: are you secretly Flo from the commercials? You are aren't you! I KNEW IT! Mar 08 08:01:55 haha Mar 08 08:01:58 lol Mar 08 08:02:01 Sorry, it's very late and I'm tired. :P Mar 08 08:02:01 FloBot Mar 08 08:02:33 flo is cool Mar 08 08:03:05 i bet she makes a lot of money Mar 08 08:03:39 JakeWharton ABS 4.0 for my birthday! Mar 08 08:03:48 \o/ Mar 08 08:03:52 close Mar 08 08:04:07 2012-03-07 11:57:57 Mar 08 08:04:15 Boo Mar 08 08:04:54 well ABS4.0 for the end of my dad's birthday Mar 08 08:04:59 Now I only have to write a blog post and migration guide.... Mar 08 08:05:04 yay for a long night Mar 08 08:05:12 t0mless, tell progressive to pay you to do programming Mar 08 08:06:13 I tell them a lot of things Mar 08 08:06:16 they don't listen Mar 08 08:06:29 heh Mar 08 08:08:21 I do need to finish my app's project webpage so that I'm not a total liar on my resume Mar 08 08:08:43 i'm going to experiment with pinned tabs and see how it works for me. i usually have several windows with several tabs each open Mar 08 08:09:46 I used to use them more often Mar 08 08:10:00 but then I also would clear my cache and cookies/etc on close Mar 08 08:10:11 so the tabs would be logged out and not work right on next load Mar 08 08:10:21 why not just use incognito mode? Mar 08 08:10:30 because I'm kinda lazy Mar 08 08:10:37 lol Mar 08 08:10:47 ctrl+shift+N Mar 08 08:11:00 sometimes I leave all the cookies to keep me logged in to certain things Mar 08 08:11:05 but like I said Mar 08 08:11:06 lazy Mar 08 08:11:28 i just assume i have no privacy Mar 08 08:11:38 * t0mless shrugs Mar 08 08:11:47 agreed Mar 08 08:11:53 there's nothing too incriminating in my cookies Mar 08 08:12:21 not like the 4tb of tv shows/movies... Mar 08 08:12:32 I mean... I don't have anything illegal Mar 08 08:12:45 riiiiiiiiiight... Mar 08 08:14:28 i dont think it will work out that well because I would want different windows to have different pinned tabs Mar 08 08:15:10 like a set for email and accounts, a set for android stuff, a set for random surfing... Mar 08 08:15:53 well personal stuff more than accounts Mar 08 08:16:30 you can do groups with chrome at least Mar 08 08:16:37 not sure if you can switch the pinned tabs that way Mar 08 08:17:44 groups? Mar 08 08:17:49 i dont see that one either Mar 08 08:17:58 I don't either, but it exists Mar 08 08:18:03 I think that's chrome anyway Mar 08 08:18:16 i like that you can select multiple with ctrl or shift Mar 08 08:18:16 might actually be ff Mar 08 08:18:38 and drag them off... Mar 08 08:18:50 where do i gt that library to use googlemaps in my app again? Mar 08 08:19:08 I'm upping my app from 3.0.1 to 4.03 Mar 08 08:19:16 commons-net something Mar 08 08:19:30 use the api level WITH google apis Mar 08 08:19:34 oh Mar 08 08:23:22 i have a newby question on java - I have a condition to play different sound files based on selection - the file only plays if i step through the code - do i need to add a wait() condition? Mar 08 08:23:39 ah forgot Mar 08 08:23:40 Blou_Aap there isn't a library, you just need an API key and if you're going to use an emulator make sure it has the Google APIs image loaded Mar 08 08:23:50 you have to use it instead of the 15 Mar 08 08:23:57 ye t0mless Mar 08 08:24:01 just remembered Mar 08 08:24:04 :) Mar 08 08:24:05 how Mar 08 08:24:21 i haven't used it in a while, so it was just there Mar 08 08:24:40 so i upped straight to 4.0.3 instead of google api level15 Mar 08 08:24:43 peterretief are you using SoundPool or MediaPlayoer? Mar 08 08:24:48 Player* Mar 08 08:26:47 SoundPool t0mless Mar 08 08:28:50 I assume that it uses it's own thread but I'm not sure tbh Mar 08 08:28:54 haven't used soundpool much Mar 08 08:29:32 its a very short sound in th raw / Mar 08 08:32:25 i am going to try something with wait() Mar 08 08:35:58 I have a 10" Android tablet (Onda Vi40) and a HID mouse works via USB OTG - all point & Click. Mar 08 08:36:24 My HID compliant USB pen-tablet works in WIn7 as HID compliant. Mar 08 08:36:32 On the Android tablet - nothing. Mar 08 08:36:48 Noob question: how do you stop a USB debug session in Eclipse? Mar 08 08:37:03 Are there any HID drivers for Android that might pick up at least the mouse functions of the usb graphics tablet? Mar 08 08:37:24 whats a reasonable camera with android 4.0? Mar 08 08:37:43 erm phone Mar 08 08:37:56 peterretief: I doubt you need to wait, there must be something else going wrong Mar 08 08:39:04 appel1: its weird, i put a notify() after the play() and it seems to be working ?? Mar 08 08:39:26 peterretief: notify? Mar 08 08:40:30 appel1: mSoundManager.playSound(1); Mar 08 08:40:32 mSoundManager.notify(); Mar 08 08:40:39 has anyone here done anythink with android ADK / accessory mode stuff? Mar 08 08:41:04 but then it threw a runtime a bit later appel1 Mar 08 08:41:10 erk Mar 08 08:41:40 peterretief: have you ensured that your sounds has been loaded before you call play? Mar 08 08:42:34 appel1: that may b eit Mar 08 08:42:40 romainguy_: Is there any intention to autovectorise Renderscript before the bitcode stage? It doesn't really look like something LLVM supports directly, but it's a stage that doesn't seem to go well in the back end. Mar 08 08:43:08 i was loading the files i the try block Mar 08 08:43:43 That 'levels' blog post is a good example of why it's necessary. Mar 08 08:43:58 * Gumboot wonders how many of those words were right. Mar 08 08:45:17 Sorry if my graphics tablet/HID question is in the wrong forum - tried everywhere else and wondered if you boffins might give me a quick heads-up. :-) Mar 08 08:45:18 'Levels in Renderscript'. Mar 08 08:48:04 * iivvoo wonders how development with an adk board works in practice Mar 08 08:48:28 I mean, if it's hooked up to your phone, your phone won't be hooked up to your pc, so how do you debug things? Mar 08 08:51:52 appel1: thanks - thats seems to have been the problem - just some runtime errors to catch now ;) Mar 08 08:52:02 t0mless, you around? Mar 08 08:52:10 mebbe Mar 08 08:52:22 can you try the apks on the GitHub download page please Mar 08 08:52:57 on github or on actionbarsherlock.com? Mar 08 08:53:05 they're the same Mar 08 08:53:35 github is loading slow as fuck on my tablet Mar 08 08:54:19 i think i forgot a DEFAULT activity Mar 08 08:54:27 or whatever Mar 08 08:54:50 but that's not what i'm worried about Mar 08 08:54:56 I apparently don't know my password Mar 08 08:55:05 you shouldn't need it Mar 08 08:55:26 thought it might be easier since I have you watched anyway Mar 08 08:55:36 and the upload was listed right there on my feed :) Mar 08 08:55:51 ah yeah Mar 08 08:56:04 anyone know how to make an icon selectable and be highlighted by the default system like it is in the actionbar other than using [XML] selectors Mar 08 08:56:10 hrm... install might fail Mar 08 08:56:21 gotta uninstall the other one I have signed with my debug cert Mar 08 08:57:14 hello Mar 08 08:57:39 JakeWharton seems to launch fine Mar 08 08:58:36 all of them? Mar 08 08:58:39 what OS? Mar 08 08:58:43 i have managed to filter cursorLoader powered listview by typing text in textbox. everytime i type a letter cursrorLoader is destroyed and initialized with new selectionArgs. probles is, whet the list refreshes i lose focus in the edittext. any idea? Mar 08 08:58:44 JakeWharton seems to launch fine Mar 08 08:58:57 so, JakeWharton's boot bug has been fixed? Mar 08 08:59:05 mmhmm Mar 08 08:59:15 i had a problem trying to launch JakeWharton Mar 08 08:59:23 just now Mar 08 08:59:29 JakeWharton you want me to go through all the samples and launch them? Mar 08 08:59:55 oop Mar 08 08:59:58 there's one Mar 08 09:00:07 ActionProviders Mar 08 09:00:58 http://pastebin.com/G0gfi8Vw Mar 08 09:01:10 yeah WTF Mar 08 09:01:20 i got that with the fragments Mar 08 09:02:25 i'm remaking all three Mar 08 09:03:46 Hi Mar 08 09:04:44 Is there any one who knows or has heard about java.lang.VerifyError exception Mar 08 09:06:22 jimmy_lo_chen_fe: judging by the 191000 hits on google I'd say yes Mar 08 09:07:05 haha Mar 08 09:07:52 I see you're busy, JakeWharton Mar 08 09:08:01 what are the video types that android support natively? I read in the docs that mp4 is supported but it doesn't (I get Completed command PLAYER_SET_DATA_SOURCE status=PVMFErrNotSupported) Mar 08 09:08:01 a bit Mar 08 09:08:03 :) Mar 08 09:08:08 =) Mar 08 09:08:21 Dropping support for 3.5 now? Mar 08 09:08:31 officially, yes Mar 08 09:08:43 unofficially it was dropped when v3.5.1 landed Mar 08 09:08:50 That's good Mar 08 09:09:15 Hehe alright Mar 08 09:09:26 elye: http://developer.android.com/guide/appendix/media-formats.html Mar 08 09:10:45 elye: mp4 is just the container format Mar 08 09:11:15 elye, i think h.264/x264 is supported Mar 08 09:11:19 and aac too Mar 08 09:12:06 Zharf, but I get that error with my videos (H.264 / AVC) Mar 08 09:12:12 zhongfu: h.264 is only supported in android 3.0+ Mar 08 09:12:22 elye: what version of android are you testing on? Mar 08 09:12:23 elye, get a better irc client ;) Mar 08 09:12:32 appel1, ah okay Mar 08 09:12:39 2.3.4 Mar 08 09:12:43 elye, Mar 08 09:12:45 zhongfu: h.264 is only supported in android 3.0+ Mar 08 09:12:48 try x264? Mar 08 09:13:48 Zharf, sorry :) Mar 08 09:13:51 appel1: what? Mar 08 09:13:58 zhongfu, elye: I was wrong :) H.264 AVC should work, it is encoding that only works on android 3.0+ Mar 08 09:14:05 Leeds: I need more coffee :( Mar 08 09:14:13 oh appamatto Mar 08 09:14:16 appel1* Mar 08 09:14:17 lol Mar 08 09:14:26 i found that weird Mar 08 09:16:12 elye: could it be a profile issue? Mar 08 09:16:30 zhongfu, ok I will try with x264 Mar 08 09:16:54 k Mar 08 09:17:22 Hi - has anyone encountered a lot of instability with the camera on a Samsumng Galaxy Nexus? Just tested an old app, and it crashes out when trying to take a picture - doesn't seem to call the mJpegPictureCallback, or even the raw data callback. Mar 08 09:17:23 elye: have you encoded the videos yourself? Mar 08 09:18:09 appel1, no its the designer Mar 08 09:19:09 elye: ensure that they were encoded using the Baseline Profile. Mar 08 09:19:24 if not, try and see if it makes a difference Mar 08 09:19:39 okay Mar 08 09:23:32 yes! jesus, finally, adding android:windowSoftInputMode="adjustPan" to activity in manifest solved my problem Mar 08 09:24:05 morning Mar 08 09:33:32 Morning! :) Mar 08 09:33:56 Late afternoon here in China! :) Mar 08 09:35:13 ohi Mar 08 09:35:44 almost pub time here in China! Mar 08 09:36:08 (actually, dinner at a private club with some young ladies...) Mar 08 09:36:18 sololololar flare Mar 08 09:36:52 <[deXter]> Oh wow Mar 08 09:38:53 Anyone here going to mdevcon 2012 in Amsterdam this Saturday? Mar 08 09:39:52 nope, going to Disneyland on Saturday :) Mar 08 09:39:58 Nice too ^^ Mar 08 09:40:09 I'm importing some projects with eclipse, and for some reason, it's automatically adding com and com.mamlambo under /src in the project explorer, does someone know why ? Mar 08 09:41:20 maxagaz: I don't know about eclipse importing, but isn't that the standard (maybe required?) way to lay out a Java source tree? Mar 08 09:42:10 also, in my properties/libraries, I don't have Android x.x jar, so I get an exclamation mark next to the project name, why ? Mar 08 09:44:32 Man I hate Eclipse - really need to find a better IDE... Mar 08 09:44:43 +1 Mar 08 09:45:01 seriously hate google for making me use eclipse Mar 08 09:45:07 Pub time is tomorrow for me :) Mar 08 09:45:25 CallumTaylor: <3 eclipse Mar 08 09:45:26 :P Mar 08 09:45:27 Yeah, it's unstable, slow, and big-ridden Mar 08 09:45:38 you're just trolling Mar 08 09:46:44 ahhhhhhhhhhhhhhhhhhhhhhhh Mar 08 09:46:52 why is android:adjustViewBounds="true" not set to true by default Mar 08 09:47:06 god damn it wasted so much time Mar 08 09:47:26 Nwotnot: where in China? Mar 08 09:47:49 Suzhou Mar 08 09:48:12 Anyone inteerted Unity3D Android plugin is now FREE for a limited time!!! Mar 08 09:48:33 okay, I don't know where that is, but Google tells me it's near Shanghai :) Mar 08 09:49:01 >unity3d Mar 08 09:49:05 25 mins by fast train, 15 minutes by faster one :) Mar 08 09:49:16 pity the maglev doesn't go that far Mar 08 09:49:29 300+km/hr of gliding goodness :) Mar 08 09:50:05 They're planning on extending it, I understand. Mar 08 09:50:17 * Leeds moves the conversation Mar 08 09:50:51 hey all... Im having a problem using DisplayFragment and/or ContentFragment Mar 08 09:51:10 Ive added the compability library but it still says that they cant be resolved to a type Mar 08 09:51:19 any ideas? Im tearing my hair out over this Mar 08 09:52:27 You probably have to create them first Mar 08 09:52:28 Untouchab1e: are you using the compatability version in your imports or the native? Mar 08 09:53:17 Untouchab1e: and what DisplayFragment / ContentFragment? There's nothing in the sdk about either? Mar 08 09:53:54 hi Mar 08 09:54:08 whenever i boot the avd i get the video source popup (for webcam or something) Mar 08 09:54:29 SeligArkin: trying to follow this: http://developer.android.com/guide/practices/tablets-and-handsets.html Mar 08 09:54:34 toxicFork: android's emulator can now simulate a camera using your webcam Mar 08 09:54:37 how to disable that? i already removed the camera property from avd, didn't work, removed the avd alltogether, didn't work, made a fresh one Mar 08 09:54:45 but I don't want the popup every time i boot it :( Mar 08 09:54:52 and I cant find the import for neither of them in native or compability Mar 08 09:55:11 Untouchab1e: I think you're supposed to create them yourself? Mar 08 09:55:14 Untouchab1e: Those are Fragments you have to display yourself Mar 08 09:55:24 toxicFork: I am pretty sure you can't, short of changing whatevber is poppin git up Mar 08 09:55:55 but what is popping it up? Mar 08 09:56:18 no clue, sorry Mar 08 09:56:32 * toxicFork rages silently Mar 08 09:57:01 SimonVT: *facepalm*.. thanks Mar 08 09:57:29 s/display/create/ Mar 08 09:57:43 mh... looks like a webcam driver software causing the popup Mar 08 09:57:51 so yeah... i thought it was part of the avd manager handling it Mar 08 09:58:07 makes sense now that you don't know what's popping it up :P Mar 08 09:58:23 but strangely it wouldn't popup before i enabled the camera... i doomed myself! Mar 08 09:58:29 SeligArkin: however, I cant do import android.app.FragmentManager Mar 08 09:58:43 SimonVT: and since it doesnt find android.app.FragmentManager, I am kinda stuck anway Mar 08 09:58:48 anyway' Mar 08 09:58:59 Import the support version Mar 08 09:59:53 SimonVT: hmm, how? and why? Mar 08 10:00:12 Didn't you say you added the support package? Mar 08 10:00:54 ah, nvm.. android.support.v4.app.FragmentManager; Mar 08 10:00:57 got it, thanks for the help guys Mar 08 10:01:39 mhm... the pop up is started by emulator-arm.exe Mar 08 10:02:32 anyway.. gotta go to lecture. :P Mar 08 10:12:26 goddammit Mar 08 10:12:38 why does the gh-pages not render the same as when I do it locally Mar 08 10:14:42 ok better question... why does it fuck up in chrome and not IE Mar 08 10:15:20 clear cache = fixed Mar 08 10:15:22 dammit Mar 08 10:24:05 Is there any official recommendation how long you should wait for a gps to give a location, to with reasonable certainty get a signal if it is available? Mar 08 10:27:37 Hi all Mar 08 10:28:00 hi all Mar 08 10:28:13 Hi All Mar 08 10:28:33 I've been working with android for about a year now and was wondering if anyone has found a nice way to cleanly layout code ? Mar 08 10:28:47 xml or java Mar 08 10:28:52 Java Mar 08 10:29:03 i have a pretty nice code layout Mar 08 10:29:06 i think anyway Mar 08 10:29:17 https://github.com/scruffyfox/X-Library Mar 08 10:29:33 I'm finding especially listview activities are messy and hard to maintain Mar 08 10:29:37 MickeySoFine: can you please define clean layout? Mar 08 10:29:41 ah Mar 08 10:29:46 i think ive nailed list views Mar 08 10:30:07 http://blog.callumtaylor.net/archives/72 Mar 08 10:30:24 thats how i do list views Mar 08 10:31:25 nice post Mar 08 10:31:30 thanks ^^ Mar 08 10:31:35 CallumTaylor, how do you do them when you need a custom listitem layout? Mar 08 10:32:16 the same way, but i pass the ID of the list item view to the array adapter, and inflate that when getView is called Mar 08 10:33:22 I guess its cos I work with other languages I cant help but feel that there’s a lot of redundancy in that Mar 08 10:33:54 yeah i know what you mean Mar 08 10:34:00 but this is the best way ive found so far Mar 08 10:34:14 I wonder if theres a way to make a list view that can take a data source and a custom view and just build with those two inputs ? Mar 08 10:34:43 theres no data bindings with xml like there is in WP7 unfortunatly Mar 08 10:34:51 just so you dont have to keep writing that over and over again Mar 08 10:34:53 you have to manually set the values of the views in code Mar 08 10:35:16 well if your using the list view in multiple activies and they are all similar, you could make this a super class Mar 08 10:35:29 Once you have your layout and dataset it takes 10 minutes to put together an adapter Mar 08 10:35:45 mhm Mar 08 10:36:45 true but I just feel wound up about having to do similar looking processes for what seems like forever :D Mar 08 10:37:02 welcome to android :D Mar 08 10:37:07 lol Mar 08 10:37:19 where its better to write your own custom classes then it is to use the standard controls Mar 08 10:37:38 I guess I'm just going to have to build a generic 'custom listitem' listview lol Mar 08 10:37:56 try to group the views together as much as possible Mar 08 10:38:04 if they have any similarities, make them share the adaper Mar 08 10:38:18 then just hide/show what you dont need for that specific class Mar 08 10:38:27 indeed Mar 08 10:39:52 Guys, a lot of you are waking up - and it's been two hours since I posted. Does Android support HID compliant pen devices (USB OTG) - My mouse works on my 10" tablet, but not my USB writing/pen tablet - which is HID compliant in Windows. (Plug & Play mouse functionality). Mar 08 10:41:00 18:40 here in China :) Mar 08 10:41:39 Nwotnot: this is not the right place for that question, anyway Mar 08 10:41:51 whatever time it may be in China Mar 08 10:42:07 try #android Mar 08 10:42:56 Ah! Thanks for letting me know. I wondered - but google hasn't been my frinds, and you guys are way smarter. But I understand.I'll keep searching :) Mar 08 10:43:12 Done. No answer. But I'll leave you devs in peace :) Mar 08 10:44:04 should i be using FragmentActivity instead of Activity from now on? Mar 08 10:44:40 ListFragment instead of ListAvtivity etc Mar 08 10:45:01 1. If you're using the support lib 2. yes Mar 08 10:45:19 ActionBarSherlock v4.0 has been released: http://jakewharton.com/actionbarsherlock-four-point-oh/ Mar 08 10:45:24 enjoy fellow nerds Mar 08 10:45:30 woohoo! Mar 08 10:45:37 * Leeds enjoys nerds Mar 08 10:45:41 alright, so steer away from standard activities from now on Mar 08 10:48:54 ^_^ Mar 08 10:49:39 V_V Mar 08 10:50:56 i'm still a little puzzled about asynctasks used in activities.. Mar 08 10:52:04 Hello all, newbie here, starting to develop android app for my local language and want some help with fonts. Can you guys please help me? Mar 08 10:52:13 an activity can execute a asynctask in the onCreate method for example. but then the user decides to back off of that activity. the asynctask just keeps on running right? Mar 08 10:52:32 tapas" yes Mar 08 10:52:44 its async to the whole application, it runs even if the application has ended Mar 08 10:52:54 my project contains AndroidManifest.xml, res and src folders, what else do I need to be able to import it into eclipse ? Mar 08 10:53:17 .project, project.properties and default.properties usually Mar 08 10:53:19 project.properties Mar 08 10:53:19 CallumTaylor: ok, followup question: the onPostExecute is executed in the thread's context where it was started? Mar 08 10:53:26 night all Mar 08 10:53:41 JakeWharton: hey you Mar 08 10:53:52 err dont think it needs a context Mar 08 10:53:53 hi Mar 08 10:53:54 it's 3am Mar 08 10:53:56 i need sleep Mar 08 10:53:58 hi, i need to integrate zxing natively in my app. I've checked out the barcode scanner app from zxing, but it is just too complicated for what i need (batch qr code scanning). Anyone know of a tutorial on how to use zxing's core.jar ? Mar 08 10:53:58 JakeWharton: I was just working on something you did yesterday evening Mar 08 10:54:07 did i break something? Mar 08 10:54:08 Is it possible in anyway to use Google Transliteration API in Android? Mar 08 10:54:33 JakeWharton: no, nothing, just using something you made Mar 08 10:54:40 neelpulse, http://code.google.com/p/android-translate-api/ Mar 08 10:54:42 JakeWharton: :) Mar 08 10:55:05 oh, excellent then Mar 08 10:55:27 so what is the canonical pattern for an activity which has to start a lengthy computation before it can really be used? Mar 08 10:56:01 i thought i would start the asynctask in oCreate(), show a progressdialog in onPreExecute() dismiss the dialog in onPostExecute and also update the views in onPostExecute Mar 08 10:56:10 but the activity might be long gone at that point.. Mar 08 10:56:11 hmm Mar 08 10:56:16 well id do it in a async task and have a listener that gets called when the task finishes, define that in your activity Mar 08 10:56:21 then do what ever in the result Mar 08 10:56:28 or the user might have backed out of it and restarted it again.. Mar 08 10:56:48 then you have a volatile boolean that gets set when the application finishes Mar 08 10:56:59 and do a check in the asynctask if its set to true, dont do anything Mar 08 10:57:16 i normally do public volatile boolean ActivityFinished = false; Mar 08 10:57:24 then set to true in onDestroy() Mar 08 10:57:42 hmmm Mar 08 10:57:50 and in your postexecute method do a check if (!ActivityFinished) Mar 08 10:57:50 {} Mar 08 10:58:06 but you can cancel the task anyway Mar 08 10:58:10 .cancel() Mar 08 10:59:28 hm, all this sounds terribly fragile.. Mar 08 10:59:51 asynchronous threads are always a bitch to manage Mar 08 11:00:41 hello guys Mar 08 11:02:06 if i have 2 classes (both with seperate xml-layout) and i am in "Screen A" ---(ButtonClick)--> Screen B ... and now by a new button back to screen A can i have the same "layout" as when i left it towards screen B ? Mar 08 11:04:40 or would i have to do this by using the "back" button of the phone ? Mar 08 11:04:54 Just finish activity b Mar 08 11:05:04 yeah it just gets added onto the stack Mar 08 11:05:12 activity a is preserved until its destroyed by going back Mar 08 11:05:18 from that activity Mar 08 11:05:31 How can I find out if the current thread is a Looper thread? Mar 08 11:05:46 what do you mean "finish activity b" ? ... Mar 08 11:06:06 inside activity b, when the button is pressed, call finish(); Mar 08 11:06:34 this.finish() (in the onClick method ? or just finish() Mar 08 11:06:44 finish() Mar 08 11:07:04 because this.finish will try and find a method inside the listener which wont exist Mar 08 11:07:16 ok great thanks CallumTaylor Mar 08 11:07:22 np Mar 08 11:08:13 and the other question i have is concerning a SQLiteDB ... is it "better" to have one class per Table (inside the DB) or put all Tables in the same "DB class" ? Mar 08 11:09:11 lapdis: Apart from the ui thread, no threads are loopers by default Mar 08 11:09:42 Im doing an API and would like to throw an exception if a method is called by a non-looper thread. Can I do this? Mar 08 11:10:14 The framework will already do this iirc Mar 08 11:10:23 If you try to create a handler Mar 08 11:11:04 http://developer.android.com/reference/android/os/Looper.html#myLooper() Mar 08 11:11:09 hello ppl... sorry to bother you with what may seem a really simple problem: I cannot seem to install additional packages using my sdk manager without updating my sdk-tools and sdk-platform-tools first Mar 08 11:11:11 i need to specify -libraryjars in proguard.cfg file, but i can't figure out how to give the path relative to the projects directory? Mar 08 11:11:53 bakkes: I suggest you update sdk tools and platform tools Mar 08 11:11:55 however, I do not want to update those, because I am afraid that those updates may cause problems with the custom commandline build scripts we use Mar 08 11:12:24 I just want to add the google-api addon to my installed packages.. nothing more Mar 08 11:17:24 CallumTaylor ... that "finish()" works perfect ... now is there a way to "make buttons visible" as soon as i get back from Activity B ? Mar 08 11:17:37 i know how to make them (in-)visible ... but Mar 08 11:17:47 about the "timing" where do i put that code? Mar 08 11:18:12 How does Looper actually work? Is it a queue that androids Thread-implementation checks regularly, or is it something like new thread that runs in parallell? Mar 08 11:18:46 It's a message queue Mar 08 11:18:52 You post to it, it executes Mar 08 11:20:16 like an singlethreaded executor Mar 08 11:20:23 Surfer2010: setVisibility(View.VISIBLE) Mar 08 11:21:02 i know that readme thanks, but i am "comeing back" from a different activity and once i do that i wanna have those additional buttons Mar 08 11:21:10 put the code in onResume() Mar 08 11:21:14 Surfer2010: startActivityForResult, onActivityResult Mar 08 11:21:16 ahh :) Mar 08 11:21:36 SimonVTs answer might make more sense, depending on your specific flow. Mar 08 11:22:47 lol i tried the onResume ... and they're there from the beginning :D Mar 08 11:23:32 onResume happens the first time as well, yeah. Mar 08 11:23:50 but it also happens whenever your activity is brough back into the foreground after another activity takes over the screen. Mar 08 11:24:00 SimonVT you mean ... make a new method in Act.a named "startActivityForResult" and then a second one onActivityResult ? Mar 08 11:25:33 Hey guys Mar 08 11:25:36 hai guise Mar 08 11:25:55 I am a little bit new to this stuff Mar 08 11:26:06 Surfer2010: no, he means that you should start activities with startActivityForResult, and then receive the result in your overridden onActivityResult. Mar 08 11:26:35 then in onActivityResult, you check the request code and make your buttons come back. Mar 08 11:27:20 Hi how can I install a new font in Android device through my application? Mar 08 11:27:58 readme what is the "int" i'm giving the startActivityForResult(intent, int) Mar 08 11:28:06 it's the request code Mar 08 11:28:10 isn't that in the documentation? Mar 08 11:28:13 neelpulse do u want a font on your own app or in the entire system? Mar 08 11:28:13 I am actually working on an android tablet(Slate) which is HSG MIDX5A Telechips TCC 8902 aka copy Kyros MID7005 (ARM 11 ) Mar 08 11:28:19 i'll go and check Mar 08 11:28:50 lapdis: only my application will suffice, only to display text in my native language. Mar 08 11:28:56 Just keep a tab open to the documentation at all times Mar 08 11:29:20 neelpulse I create a assets/fonts-directory at the root of my project and add the .tff-files Mar 08 11:29:36 then for example textviews has methods and attributes to apply a font Mar 08 11:29:39 sry gotta go, gl :) Mar 08 11:30:45 so what I want is use ADB but I have the M57TE drivers missed so how can get these drivers . However I`ve searched for 3 hours but every time I reach a dead end like the links are deleted Mar 08 11:35:15 Fianlly I found some guy on androidtablets.net is suggesting to edit the android_winusb.inf found in the usb_driver folder Mar 08 11:38:14 readme: thanks a lot :) works great and i've learned something totaly new again today ^^ Mar 08 11:39:14 np Mar 08 11:40:42 Alright just to be clearer ; How to install drivers for your android device on windows 7 ? Mar 08 11:44:26 anyone ? Mar 08 11:46:11 o.o Mar 08 11:48:18 Aba_Albra: most devices install them for you when you plug them in.. but if that doesn't happen, go to the manufacturers website and search for an installer. Mar 08 11:49:37 but what if I went there and did not find the manyfacturer website there cause I already did Mar 08 11:50:52 sorry I mean did not find the drivers on the manufacturer website :( Mar 08 12:08:21 \leave Mar 08 12:08:35 \leave #androd-dev Mar 08 12:08:52 \list Mar 08 12:08:58 you see neel Mar 08 12:09:16 you should use / instead of \ Mar 08 12:20:42 Hey fellas! Mar 08 12:21:16 I have a problem with downloading a file to SD card and I suspect the reason is something I don't know about input/output streams or something about Android. Mar 08 12:21:51 I end up with files of size 0 on the SD card and I don't understand why. If I copy the download code directly in the first onCreate method, it downloads flawlessly. Mar 08 12:22:23 UnbertKant: and where do you run it in the case that it fails? Mar 08 12:22:28 So I suspect SOMETHING is interfering with the download input stream when I try it at a different place in the app. But what could it be? Mar 08 12:22:47 UnbertKant: impossible to help you unless you provide an example Mar 08 12:22:48 Well, it's where I need it: When I switch to the tab of the app that shows something like a catalog. Mar 08 12:23:39 UnbertKant: paste code :D Mar 08 12:23:52 I have no clue what could be causing the input stream to look empty. I think I don't know enough about input streams / downloading. What could cause troubles when I try to download a jpg from an URL using input streams? Mar 08 12:24:25 I tried several codes copied from the web. They all work when I simply run them in the first onCreate method of the app, but fail at the place where I actually need it. Mar 08 12:24:48 I mean, are there any circumstances which can cause troubles with input streams? Mar 08 12:25:53 UnbertKant: the question is too general imho.. show us code and stuff gets concrete suddenly :D Mar 08 12:26:57 ok, one sec... Mar 08 12:27:55 I use something like this: http://www.helloandroid.com/tutorials/how-download-fileimage-url-your-device Mar 08 12:28:05 which actually works, when nothing else happens. Mar 08 12:29:09 What could cause the input stream in that link to be empty (-1)? Mar 08 12:29:54 UnbertKant: if the filename is invalid for example Mar 08 12:30:02 the filename is valid. Mar 08 12:30:09 UnbertKant: use Log.d to log relevant stuff in your app or use a debugger Mar 08 12:30:34 why don't you just show us YOUR code? Mar 08 12:30:35 I did. Currently, I can't step into input stream, because I don't have the source but I guess I have to get it. Mar 08 12:30:37 guesswork is fun for noone Mar 08 12:30:48 tapas: Well, it's company code. I'd have to change some stuff. Mar 08 12:30:55 But the download part really is that simple. Mar 08 12:31:31 UnbertKant: well, what does differ between onCreate() and being called in a e.g. onClickListener Mar 08 12:31:48 the first thing that comes to mind is the class the code runs in Mar 08 12:31:49 See, I tried 4 different download codes from the web and its all the same: works great when nothing else happens, doesn't work at the place in the app where I actually need it. And at that place, a lot of stuff is happening, so I'd like to narrow it down to things that could actually interfere with downloading. Mar 08 12:32:01 this gives rise to all kinds of errors if you want to access members of the outer class, etc.. Mar 08 12:32:31 or whatever method you choose to equip the downloader code with the relevant filenames, etc.. Mar 08 12:33:30 Well, what the code does is get a URL. This works, it's the correct URL. The URL points to a public jpg on the web. I then try to save it to the SD card. It shows up on the sd card with the correct name, but size 0. This code is not really depending on anything else, so I'm clueless about what causes the inputstream to be empty. Mar 08 12:34:01 I guess I'll have to read about input streams. Mar 08 12:34:24 It also throws no exceptions, it's just that the input stream.read() says -1 right at the start. Mar 08 12:47:57 hey guys i'm using quaternions for the first time Mar 08 12:48:08 and my camera works but when it hits 89.99 it turns around & starts going in the other direction Mar 08 12:48:14 any idea why this happens? is this a part of quaternion math? Mar 08 12:48:51 hi Mar 08 12:49:40 can I add an url into an editTextPreference ? in summary and defaultvalue ? Mar 08 12:50:19 my value is save in strings.xml like https://domain.com/ Mar 08 12:51:06 How can I prevent my TimePickerDialog from remembering the entered values for hour and minute? Mar 08 12:55:45 JavaLover: keep in mind that quaternions are a double cover of the rotation group SO(3) Mar 08 13:00:20 Alright, the problem was that the urls were http which were just redirects to the same url with https. This only worked sometimes. Problem solved. :) Mar 08 13:01:49 Hey friends, i have this problem, my layout has a tablelayout in a scrollview(not the root element) and i want the first tablerow not to be scrolled when the user is scrolling. is there a way to accomplish this? also, is using the tablerow for table heading the right practice? Mar 08 13:18:46 if i want to have a search in my SQL-DB (Search for String nick in column KEY_NICK) it i used this Cursor cFP = unsreDatenbank.query(table, columnscomplete, KEY_NICK + "=" + nick , null, null, null, null); Mar 08 13:19:09 anyone know if the zxing BarcodeScanner app's CaptureActivity you start via an intent can have a custom layout? Mar 08 13:19:11 why is this not working? ... columnscomplete is a StringArray with all the column-names in it Mar 08 13:21:04 Should I put my code that I would've put in my onCreate() for an Activity in the onResume() of my Fragment, or the onCreateView()? Mar 08 13:25:53 Surfer2010: you could try putting literal quotes around nick, but you would be better off using parameter binding: ...KEY_NICK + "=?", nick... Mar 08 13:27:12 wongk: like this? Cursor cFP = unsreDatenbank.query(table, columnscomplete, KEY_NICK + "=?" + nick , null, null, null, null); Mar 08 13:27:45 Surfer2010: I think it's the next parameter, but I'm not 100% sure (wongk?) Mar 08 13:27:56 Or wait, no, my bad. Mar 08 13:28:03 * n20 hides in the corner. Mar 08 13:28:24 this i just posted gives me an exception caught Mar 08 13:31:18 SQLiteException: near "Flo": syntax error: ,while compiling: SELECT ....*all the columns i have*... FROM peopleTable WHERE persons_nick=?Flo (Flo value of the String nick) Mar 08 13:31:50 and there definatly is a row that has "Flo" in the column KEY_NICK Mar 08 13:33:06 Well Mar 08 13:33:16 The problem itself is the ?Flo Mar 08 13:33:18 http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#query(java.lang.String, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String, java.lang.String, java.lang.String) Mar 08 13:33:21 that ? would seem a bit weird if you ask me Mar 08 13:33:48 it's the 4th parameter, and it's actually new String[] { nikc } Mar 08 13:34:01 Ok Surfer2010, third parameter should be KEY_NICK + "=?", and forth should be new String[] { nick } Mar 08 13:34:34 okay ?! ... wow that book i got to learn android from has obviously more than one mistake Mar 08 13:35:05 most books do Mar 08 13:35:18 i feel like my app should use more actionbar Mar 08 13:35:25 storkme: Tell me about it Mar 08 13:35:34 * n20 feels like their apps should use more actionbar Mar 08 13:35:52 more actionbar! Mar 08 13:36:02 i like actionbar Mar 08 13:36:22 A bar of actions. Mar 08 13:36:31 Sounds like a legend. Mar 08 13:36:42 it's pretty easy to include, unless you have to retrofit it into a bunch of activities Mar 08 13:36:55 well we have an equivalent iphone app Mar 08 13:37:03 if we use actionbar they'll look rather different Mar 08 13:37:15 Android and iOS looks rather different Mar 08 13:37:22 that's probably a good thing Mar 08 13:37:29 Using Service to tell user when certain elements have timed out, like a ticket.. What's the normal way of giving the service access to such data? Mar 08 13:37:29 yeah Mar 08 13:37:38 except we went about the project entirely the wrong way Mar 08 13:37:45 and ddecided we should make them look similar Mar 08 13:37:46 the elements are normally stored in the application that starts the service Mar 08 13:37:53 lesson learnt: ios and android are different Mar 08 13:38:16 it's not really necessary as the only ones seeing they are different are you :-D Mar 08 13:39:09 XeruX: the Intent Mar 08 13:39:24 Can make documentation of the UI a bit easier though I guess... Mar 08 13:39:43 But documentation is rarely necessary either... Mar 08 13:40:19 wongk + n20: thanks for the help the cursor no "works" ... but in the next line right here i get an OutOfBound Exception PlayerID = Integer.parseInt(cFP.getString(0)); Mar 08 13:41:00 might redesign the app to use MORE ACTIONBAR and pitch the changes to my boss Mar 08 13:41:08 does the cursor point at the last once he is created? Mar 08 13:41:49 Surfer2010: cursor.moveToFirst(); Mar 08 13:41:51 ? Mar 08 13:42:04 Surfer2010: I'm not sure if this makes any difference, but you could try it. cFP.moveToFirst(); int PlayerID = Integer.parseInt( cFP.getString( cFP.getColumnIndex(KEY_NICK) ) ); Mar 08 13:42:10 ok yeah i tried that works :) Mar 08 13:42:31 strange that it doesn't point at the first rightaway Mar 08 13:42:31 probably good to find a good SQLiteDatabase turorial, there are several Mar 08 13:42:49 i'll look for them thanks wongk and n20 :) Mar 08 13:44:01 Is there a way to reuse a surfaceview when switching between a mediaRecorder object and a mediaPlayer object? I've got the recording etc. working but hwne I try to play it back I get an error telling me that setvideosurfacetextexture failed because the surface view is already connected.... how can I disconnect the media recorder from the surface view in order to attach the mediaplayer to it? I've run mediaRecorder.stop(); mediaR Mar 08 13:45:49 wongk: but I need to give the service access to more than floats,integers and whatnot Mar 08 13:45:54 :s Mar 08 13:46:31 Is it normal to have static variables (i.e arraylists with objects) in a service-class? :P Mar 08 13:47:17 XeruX: there's a good chance someone made them static because they plan to access them from Activities using global scope instead of doing it the clean way. Mar 08 13:47:29 XeruX: Parcelable is your friend Mar 08 13:49:31 hi Mar 08 13:50:24 i know c2dm does not has any guarantees, but... excactly NO message ever reaches the handset Mar 08 13:50:26 wongk: and once the user adds a new element in the app, the service should also have access to this element Mar 08 13:50:49 i can see the google server answers with 200 OK, and gives me the message id back. no error there. but the message is NEVER delivered. any idea how one can debug this? Mar 08 13:50:51 XeruX: is the service sticky? Mar 08 13:50:56 thana: perhaps you've turned of background data on the handset? Mar 08 13:51:03 wongk: yes Mar 08 13:51:21 XeruX: sound like you just need a method to access the service instance Mar 08 13:51:54 XeruX: or perhaps the listener pattern if that makes sense, depending on your use case Mar 08 13:52:32 I know you can re-use surface views between camera preview and mediarecorder recording, how can you reuse that same view to then play the video? Mar 08 13:55:53 i'm trying to run a python script remotely to my emulator. SL4A is running on the emulator and I've forwarded ports with adb and i have the android package in my dev dir and imported, but no dice. gaierror: [Errno 11001] getaddrinfo failed Mar 08 13:56:06 It's not finding AP_HOST or AP_PORT Mar 08 14:01:47 appel1: crap. the emulator does not receive anything regardless of wether the background data is enabled or not. but on the real handset is was disabled, yes, and when its enabled i do receive something Mar 08 14:02:02 meh Mar 08 14:02:14 Does anybody have a clue on how to sort an JSONArray ? Mar 08 14:03:52 that depends, how do you want to sort it? :P Mar 08 14:04:26 DashCC: I'm not sure you can really change its order in-place, so you'd probably need to extract it to an OrderedHashMap or something Mar 08 14:04:30 (at least the top level) Mar 08 14:04:42 what's the best way to turn off the actionbar+titlebar? I don't want to override a theme as that seems to screw up dialog theming Mar 08 14:04:51 yeah Im at the same point, but that sounds like an awful lot of work Mar 08 14:04:58 QQ Mar 08 14:05:21 You can, of course, dig into the JSON classes and see how they're ordered and/or whether anything allows you to modify their structure in place Mar 08 14:05:29 couldn't you just read it into a list of Pojos, then sort that? Mar 08 14:05:34 if you can't actually modify their order/structure in-place, you have no choice BUT to extract them to other datatypes Mar 08 14:05:38 then convert it back into a jsonarray if ou like Mar 08 14:05:54 wongk: service instance? like, if I bind to the service? Mar 08 14:06:09 then I can let the service know about the newly added elements and whatnot? Mar 08 14:07:02 XeruX: yes' Mar 08 14:07:06 storkme: Well, the NoActionBar/NoTitleBar themes are probably the best way to go Mar 08 14:07:17 Or simply add the attributes they introduce to your own theme Mar 08 14:10:19 ok what i did is set my application theme to a custom theme which has 'Theme.NoTitleBar' as a parent, then made a values-v14/styles.xml with the same theme that inherits from Theme.DeviceDefault.NoActionBar Mar 08 14:10:41 i guess i should do the same for v11, so it uses holo.. Mar 08 14:17:40 wongk: so, then it would be acceptable to have an arraylist of objects IN the service-class, and access it through binding to the service? Mar 08 14:18:22 XeruX: sure, as long as you consider the impact of threading on shared resources Mar 08 14:22:10 the location listener callbacks are called in the main thread, right? Mar 08 14:24:39 nope Mar 08 14:24:46 actually hmm Mar 08 14:24:50 I'm not sure offhand Mar 08 14:24:54 I think they might be in fact Mar 08 14:25:03 set a breakpoint and find out what thread it stops on :> Mar 08 14:25:50 XeruX: just remember that the service will be bound to by 0 or more clients who may operate on your data simultaniously, so handle threading appropriately. Mar 08 14:31:38 ah, lov - thanks, used a TreeMap Mar 08 14:31:43 in the end Mar 08 14:33:17 lov: well, that's no guarantee Mar 08 14:33:41 lov: ok, i assume that since the documentation doesn't say anything about the thread it runs in, i will make no assumptions either Mar 08 14:34:20 well, no. Mar 08 14:34:26 take a look at what thread it gets called on Mar 08 14:34:38 if it's on the main thread, it is VERY unlikely that this will change without notice, since it would break existing apps Mar 08 14:35:02 if you're curious, take a look at the LocationManager source; it uses its own loopers and handlers and stuff, but I don't knwo if it ends up sending things on the UI thread or not. Mar 08 14:40:12 SHould I return List or ArrayList from my methods? Mar 08 14:40:43 Unless you depend on ArrayList functionality, return List Mar 08 14:40:48 if you need arraylist specific features use the former Mar 08 14:41:31 Probably nothing specific, however I can't pass List<> via intent it seems? :D Mar 08 14:42:46 Then return arraylist Mar 08 14:42:48 sounds like you have an actual need for ArrayList then, and should use ArrayList Mar 08 14:43:11 lov: expressed differently: if i code the app in such a way that it doesn't matter in which thread the callback is called i'm on the safe side Mar 08 14:45:28 tapas: that's fair and always safe, but you may be losing some efficient, especially when you have a pretty good guarantee that certain things work a certain way Mar 08 14:47:50 hi Mar 08 14:50:15 use Vectors Mar 08 14:50:31 this way when some fucking idiot touches your code, he cant screw it up when he breaks all your threads Mar 08 14:51:30 mikedg speaks from experience Mar 08 14:52:10 Also, collections are bad for drunk coding Mar 08 14:52:20 so make it so you return one at a time Mar 08 14:52:26 and you clal the method multiple times Mar 08 14:52:55 i'm trying to run a python script remotely to my emulator. SL4A is running on the emulator and I've forwarded ports with adb and i have the android package in my dev dir and imported, but no dice. gaierror: [Errno 11001] getaddrinfo failed. Not sure what I'm doing wrong Mar 08 14:56:05 johnharris85: I have no idea what you're doing, but are you requesting the INTERNET permission? Mar 08 14:57:16 johnharris85: i can help you but i need some funding for my MMORPG Mar 08 14:57:26 lov I'm doing this - http://code.google.com/p/android-scripting/wiki/RemoteControl but to an emulator instead of an actual device Mar 08 14:57:56 did you do the forwarding? Mar 08 14:58:00 are those ports all good Mar 08 14:58:02 i've registered for the android google groups and posted something (to the moderator), it's been several days and no response (my post doesn't show), any ideas? Mar 08 15:00:03 mikedg yes and yes Mar 08 15:01:10 anyone here played with GridLayout? Mar 08 15:02:57 hi Mar 08 15:03:03 i want Help Mar 08 15:03:10 any one Help me Mar 08 15:03:40 I have Samsung Galaxy YP-G70Cw how can i Use Mirc ? Mar 08 15:03:43 help:) Mar 08 15:03:59 i have a question:) Mar 08 15:04:02 where can i download ? Mar 08 15:04:17 CellOne: for user questions you should ask in #android Mar 08 15:04:41 CellOne: and as far as I know there's no mirc for android, there are other irc clients though Mar 08 15:04:49 my software buttons disappeared when running an activity. Is there a switch to enable them again? Mar 08 15:06:17 kevinwatt: look in your code for that activity and compare it to other activities where it doesn't happen, perhaps that can give you some clue Mar 08 15:06:34 appel1: there's only one activity at the moment :( Mar 08 15:07:44 what does "my software buttons" mean Mar 08 15:07:54 CellOne: go to #android please Mar 08 15:08:06 if i make my locationListener a member of the activity using it, once the activity gets destroyed, will the listener go away, too? Mar 08 15:08:29 i.e. is the reference that one passes to requestLocationUpdates a weak reference? Mar 08 15:08:35 yes Mar 08 15:08:37 well Mar 08 15:08:40 no, sorry Mar 08 15:08:46 one more question: if i do mCamera.autofocus(this); to start autofocus and give it a callback, shouldn't the camera constantly autofocus to get the focus correct? Mar 08 15:09:00 the listener won't actually unregister itself, so you need to make sure to take care of that in your lifecycle Mar 08 15:09:08 ok, thanks. Mar 08 15:09:18 additionally, if the listener is an inner class, and thus has a reference to the activity, it might leak it. Mar 08 15:09:20 i just found removeUpdates(LocationListener) Mar 08 15:09:32 hmm Mar 08 15:09:48 generally you'll want to do something like requestUpdates in onStart, removeUpdates in onStop Mar 08 15:09:59 if you want the listener to run while the user isn't looking at your app, consider using a service Mar 08 15:10:52 lov: nah, i think using the onStart and onStop is exactly what we want. Mar 08 15:11:20 im trying to parse a date using SimpleDateFormat. according to the exception it cant parse the timezone CET.. any idea why? im using 'z' here in the format pattern... Mar 08 15:11:25 good morning Mar 08 15:15:25 does anyone get notices when someone purchases their app? Mar 08 15:15:28 i'm not getting notices Mar 08 15:16:38 snooplsm: it might take several days Mar 08 15:17:07 so much for giving every 10th purchase for free Mar 08 15:17:17 heh Mar 08 15:17:28 i'd go over 10% for tht Mar 08 15:17:36 how would you even do that? Mar 08 15:17:46 just manually refund the purchase in Checkout/Wallet? Mar 08 15:17:50 evancharlton: yea Mar 08 15:17:54 Im trying to produce a GridLayout of views where some views span multiple columns/rows. I have been able to get the spanning of rows working but not columns, any ideas? Diagram + specs: http://pastebin.com/eMbppErZ Mar 08 15:17:54 yeah I can see that SORT of working for in-app purchases, somehow, maybe. Mar 08 15:18:04 They'll have to rebuy it for updates tho Mar 08 15:18:05 that seems like it wouldn't scale Mar 08 15:18:08 yeah Mar 08 15:18:12 thana: whats the format of the timezone Mar 08 15:18:20 you can refund partially Mar 08 15:18:24 MysT_DooM: just "z" Mar 08 15:18:44 so the incoming timezone string is exactly formated like z? Mar 08 15:18:48 lov: you can purchase to remove ads in my njtansit app now Mar 08 15:19:44 lov: just wait until 9 other people buy it Mar 08 15:20:26 MysT_DooM: the incoming timezone is "CET" Mar 08 15:22:35 what is the exact pattern of the timezone that is going through SimpleDateFormat() Mar 08 15:23:02 i.e the exact thing that is being passed in your example above that can't be parsed Mar 08 15:23:09 not the format syntax of z Mar 08 15:24:05 ie the input string Mar 08 15:24:14 ex) 2010-09-06T15:30:00+02:00 Mar 08 15:25:49 Here is the diagram of what I'm trying to achieve with GridLayout, the layout Specs that I'm using, and a diagram of what I'm getting: http://pastebin.com/Yp2gsxri Mar 08 15:26:43 MysT_DooM: the ecat format is "MMM d, yyyy HH:mm:ss z" which is supposed to parse "Mar 8, 2012 15:26:13 CET" Mar 08 15:30:09 the camera.autoFocus(cb) method, does that only once focus the camera? Mar 08 15:32:30 kevwilde i would suspect that, but try it Mar 08 15:33:10 snooplsm: adblock doesn't show them (hooray), but I bought that on principle already :) Mar 08 15:35:21 my app should show an add to show an add Mar 08 15:36:33 s/add/ad/ Mar 08 15:37:51 /g Mar 08 15:40:02 snooplsm: i sell an app that will notify you when someone buys your app (among other things), if you're interested in that Mar 08 15:40:45 is that something you might be interested in? Mar 08 15:41:59 snooplsm: i am confused by your reply Mar 08 15:42:07 entourage Mar 08 15:43:33 guys how to use the push command with Adb ? Mar 08 15:43:53 adb push Mar 08 15:44:05 adb push passwd /sdcard/ Mar 08 15:45:26 sorry hokkaido so If I have my android device connceted I open the Cmd then I make a cd where the adb.exe existed then I typr Mar 08 15:45:41 I type adb push c:/ Mar 08 15:45:46 bro, add it to your path Mar 08 15:45:55 yea that will work brandroid Mar 08 15:46:35 adb push c:\file.apk /system/apps/ ? Mar 08 15:46:56 yeah bro Mar 08 15:47:05 adb install -r file.apk Mar 08 15:47:11 that works Mar 08 15:49:34 cause my tablet won`t let me to install through the market but in the same it is rooted and it does not show /system/apps/ directory so basically I did some googling I found that it might be to a two files called downloadproviderui.apk and downloadprovider.apk which I should copy them to this directory /system/apps Mar 08 15:50:10 Aba_Albra: just do adb install Mar 08 15:50:16 and by talbet you mean kindle fire? Mar 08 15:50:20 what app you trying to install? Mar 08 15:50:52 Aba_Albra: is the /system partition mounted as writable? Mar 08 15:50:55 is the device rooted? Mar 08 15:51:05 Aba_Albra: I VERY strongly suggest you go to #android-root, it will be more helpful Mar 08 15:51:14 adb install should work fine Mar 08 15:51:17 no it is X5A kind of Telechip tablet Mar 08 15:51:18 he doesn't need root Mar 08 15:51:26 It is already rooted Mar 08 15:51:38 .... nnngg, it's some cheap knockoff garbage Mar 08 15:51:38 apps go in /data/app or /data/apps i think Mar 08 15:51:48 lov you are right Mar 08 15:51:49 Aba_Albra: #android-root Mar 08 15:51:54 this is DEFINITELY not the right place Mar 08 15:52:14 #android-root and/or xda-devs Mar 08 15:52:14 i sort of think you are trying to install my companies app. Mar 08 15:52:27 well sure just wanted to know how to push these to files into /system/apps/ Mar 08 15:52:51 snooplsm where do you work ? Mar 08 15:53:02 mlb Mar 08 15:53:10 is not push like copy ? Mar 08 15:53:20 hello Mar 08 15:53:23 Aba_Albra: please go to #android-root Mar 08 15:53:29 well as a developer when we want to side load, we just do adb install "name of apk" Mar 08 15:53:38 Aba_Albra: please go to #android-root Mar 08 15:53:42 sure Mar 08 15:53:59 thanks again lov and snooplsm for help Mar 08 15:54:02 np Mar 08 15:55:52 haha, had to flex those guns, lov Mar 08 15:56:33 anyone experience this issue http://stackoverflow.com/questions/9526509/xmlhttprequest-double-posting-issue-in-android Mar 08 15:56:50 I have the same problem on an app I have developed and can't figure out what is causing it Mar 08 15:58:43 Anyone have any insight into the design pattern of admob? (I'm not making an a competitor but the pattern might be useful for what I am making) Mar 08 15:59:01 any insight onto the issue I posted would be greatly appreciated. Mar 08 15:59:46 like I know you have to declare an activity, but you never directly create one, only AdViews, so I wonder what it does with the activity... Mar 08 16:05:33 some one can help me with KSOAP2? Mar 08 16:05:44 What is better/easier? I want a bunch of 'buttons' from top to bottom. Every button has its own color, but they take up the entire width. (So they end up like being a rainbow) Mar 08 16:05:52 Should I use a lot of buttons, or a listview ? Mar 08 16:06:51 DigitalKiwi: I would guess the Activity is probably used for analytics purposes Mar 08 16:07:07 So, should I make my own open file dialog? Mar 08 16:07:24 If I'm going to let the user choice a map file to import Mar 08 16:07:36 JeroenDL: depends on how many you have, I guess Mar 08 16:08:16 listviews are typically used for sets of repeating items which are basically identical whose length approaches infinity Mar 08 16:08:27 Ok, I'll use buttons Mar 08 16:08:29 if you have ten buttons, don't bother with a listview Mar 08 16:08:54 readme: hrm Mar 08 16:10:01 DigitalKiwi: doing an experiment, 1 sec. Mar 08 16:10:39 hello. i'm about to write a thesis about developping an android app using best practices for solving common/default crosscut concerns of an ordinary android app.. Mar 08 16:10:42 is there any document or quotable source that defines such crosscut concerns for an ordinary app? Mar 08 16:13:33 capcom: is there a document that defines crosscut concerns, period? Mar 08 16:14:07 what is crosscut concerns? Mar 08 16:14:38 ah nice pushing unity3d example to my phone reboots it Mar 08 16:15:08 capcom: sounds like i18n is an example, android's resources system actually works really, really well for languages, i18n, and multiple device configurations Mar 08 16:15:15 xorgate: sounds pleasant >.> Mar 08 16:15:23 i reckon it was too big to fit Mar 08 16:15:33 DigitalKiwi: requirements or specifications that any app development guide should handle or describe Mar 08 16:15:52 .... Mar 08 16:16:09 requirement: runs on android. Mar 08 16:16:13 specification: runs on android Mar 08 16:16:16 http://en.wikipedia.org/wiki/Cross-cutting_concern Mar 08 16:16:18 I'm really not sure what you're fishing for here Mar 08 16:16:26 that? Mar 08 16:16:35 I looked at the wiki page that DigitalKiwi just mentioned, but that doesn't ring any bells outside the aformentioned i18n Mar 08 16:17:14 it sounds a helluva lot like your question can be distilled to "what are some common problems that people have developing android"? Mar 08 16:17:34 so speaking of resource systems Mar 08 16:17:37 im disappointed Mar 08 16:17:47 for google tv, i was told to use large-land-notouch Mar 08 16:18:15 capcom: what are some crosscut concerns for developing on PC, or on linux? Mar 08 16:18:31 Android is an OS and a framework, so you're really kind of putting an extremely general question out here. Mar 08 16:18:31 hello on my jenkins system i want to install the android sdk via command line, is it possible to install just one api level with basic components just for building a project? i can't find the options for that he is just installing everything but i have to limit it because of available space Mar 08 16:18:45 i'm looking for an official and therefore quotable source that says for example, when describing the development of an ordinary android app, you must think of... authentication, authorization, localization, whatever Mar 08 16:18:55 capcom: http://developer.android.com/guide/index.html Mar 08 16:19:01 capcom: http://developer.android.com/guide/index.html Mar 08 16:19:07 have you even clicked on d.android.com yet? Mar 08 16:19:15 yes Mar 08 16:19:32 some one can help me with KSOAP2? Mar 08 16:19:48 http://developer.android.com/guide/topics/security/security.html Mar 08 16:20:10 http://developer.android.com/guide/topics/ui/index.html Mar 08 16:20:16 http://developer.android.com/guide/topics/resources/index.html Mar 08 16:20:24 there paper research over, start writing up your thesis. Mar 08 16:20:50 ... lol Mar 08 16:20:55 XD Mar 08 16:21:16 there are described how to solve these things, and i'll need this also later in my thesis, but i need a piece of text where these thinds are defined as requirements :) it's a bit of nonsense but thtat's studying ;) Mar 08 16:21:52 welp, looks like you'll have to do some work instead of copy and pasting someone else's words Mar 08 16:21:55 ok i'll have a look on these links, thanx Mar 08 16:22:42 hello on my jenkins system i want to install the android sdk via command line, is it possible to install just one api level with basic components just for building a project? i can't find the options for that he is just installing everything but i have to limit it because of available space Mar 08 16:22:58 DigitalKiwi: this is my guess, expressed in code https://gist.github.com/2001895 Mar 08 16:24:04 Im trying to produce a GridLayout of views where some views span multiple columns/rows. I have been able to get the spanning of rows working but not columns, any ideas? Mar 08 16:24:06 Here is the diagram of what I'm trying to achieve with GridLayout, the layout Specs that I'm using, and a diagram of what I'm getting: http://pastebin.com/Yp2gsxri Mar 08 16:24:08 drindt: I don't know if there are any command line only methods. You can always just install an SDK instance on linux, only install one thing to it, then zip it up and move it over. Mar 08 16:24:37 canadiancow|work: Isn't there a -tv qualifier? Mar 08 16:24:50 lov, the gui i know, but i have now just cmdline available... thanks Mar 08 16:24:52 Or is that just dpi Mar 08 16:25:27 SimonVT - no Mar 08 16:25:39 ;| Mar 08 16:27:31 readme: how does a browsertimeractivity/adactivity get started? Mar 08 16:27:43 lov, contents of the platforms folder is what you mean? Mar 08 16:27:56 drindt: no, the entire sdk. Mar 08 16:27:58 if i call AsyncTask.cancel(false) in my onStop() method, I guess the app will block until the Task has been cancelled? Mar 08 16:28:12 just install the sdk from d.android.com, run it, install the appropriate target you need, then zip the whole thing up and move it. Mar 08 16:28:22 there's no registries, no strange dependencies, it's all self contained. Mar 08 16:28:30 lov, hu i just need the api 14 level for building Mar 08 16:28:47 lov, ok will work also Mar 08 16:28:49 drindt: I DON'T CARE. Mar 08 16:28:54 11:28:18 < lov> just install the sdk from d.android.com, run it, install the appropriate target you need, then zip the whole thing up and move it. Mar 08 16:28:59 lov, yeah understand! Mar 08 16:29:22 for someone named love you sure have a lot of hate! :P Mar 08 16:29:35 It's tough lov Mar 08 16:30:00 Hehe :p Mar 08 16:30:55 DigitalKiwi: maybe it's baked into the view's onClick Mar 08 16:31:15 ahh, makes sense Mar 08 16:31:18 that way you can transparently do this timing without making the user of the API implement it Mar 08 16:31:25 anyway, a guess Mar 08 16:32:00 is there any way to get the market on the sdk emulator? Mar 08 16:32:01 maybe i'm going about this backwards and should just say what i'm trying to build >.> Mar 08 16:32:17 i need to poke around at an apk that's not available for direct download Mar 08 16:35:11 Hi all Mar 08 16:35:30 I'm making some xmpp client that you can just drop in and provide some views for and then be able to chat with a specific user/server combination Mar 08 16:36:08 I need to make a delete query in the android db: is there a way to use "IN (...)" in the where clause? Mar 08 16:36:22 cool Mar 08 16:37:11 btw, I'm using the DB.delete(table, where-clause, null); Mar 08 16:37:16 I have something that kind of works but I think it should maybe run as a service or something, i dunno Mar 08 16:39:31 MysT_DooM: it seems android 2.2.3 just does not know the timezone CET... Mar 08 16:39:45 anyone? Mar 08 16:41:05 some one can help me with KSOAP2? Mar 08 16:41:10 The reason for creating Toasts using the applicationContext is that they survive the death of the activity that triggered them, right? Mar 08 16:41:11 or with google maps? Mar 08 16:43:33 Daniel_g: if you took the time you spent asking about KSOAP2 in here and used it to figure it out on your own, you'd be able to rewrite KSOAP2 from scratch by now Mar 08 16:44:02 believe me i did Mar 08 16:44:40 specific questions are always good Mar 08 16:44:41 its just a stupid bug that i cant find out what it is Mar 08 16:45:19 ==readme Mar 08 16:45:20 i have a problem with managing session cookies in .Net services. Mar 08 16:45:35 that's neither specific nor a question Mar 08 16:45:54 omnomnom Mar 08 16:46:29 when i get the cookie: Set-Cookie ASP...=id; http... Mar 08 16:46:48 i take the id and sending back a header property that look like Mar 08 16:47:07 key = Cookie, value = ASP..=id Mar 08 16:47:22 that more specific? Mar 08 16:47:25 no Mar 08 16:47:49 http://stackoverflow.com/questions/9610665/android-ksoap2-cookie-handle Mar 08 16:47:56 please read this Mar 08 16:48:26 thank you Mar 08 16:48:52 you don't include a complete enough picture of the problem to get help Mar 08 16:49:01 MysT_DooM: http://code.google.com/p/android/issues/detail?id=13420 and thats the solution *sigh* Mar 08 16:49:15 what i need to include? Mar 08 16:49:17 http://catb.org/esr/faqs/smart-questions.html Mar 08 16:49:18 read that Mar 08 16:50:01 this is a just web service call. Mar 08 16:50:03 no where is the actualy problem stated Mar 08 16:50:38 Daniel_g: no kidding, but your question is not descriptive enough to get you help. Mar 08 16:50:46 I'm not trying to frustrate you, I'm serious. Mar 08 16:52:52 ive posted the relevant part of the code. you cant understand the question? tell me what you dont understand Mar 08 16:53:39 Daniel_g: First of all, in plain english, what IS the question beyond "Why doesn't it work?" Mar 08 16:53:51 You can't just paste a section of code and say "why doesn't it work" Mar 08 16:53:54 that doesn't qualify as a question Mar 08 16:54:24 believe me, there are plenty of talented people here who've already spoken to you and can definitely solve your problem, if you can articulate it. Mar 08 16:55:16 gotta love it when yo have to fight someone to help them :P Mar 08 16:55:20 i think that when i posting code you just need to use your knowledge and find out if there is a error Mar 08 16:55:38 is there any way to get the market on the sdk emulator? i need to poke around with an app whose apk is not available for direct download Mar 08 16:55:55 Does anyone know how I might be able to manually edit the data of an app? More specifically, I'm looking to edit the folder data of Zeam Launcher, I need to reassign an icon position to another app (Market changed to Play, but I want it in the same location)... since the launcher doesn't support rearranging. Mar 08 16:56:03 wongk: don't be a dentist if you don't like pulling teeth, same goes for helping people on irc ;D Mar 08 16:56:11 hah Mar 08 16:56:12 Daniel_g: Did you see the "smart questions" link I sent you? Mar 08 16:56:21 is it possible to bring a checkbox into a semi-selected state to indicate that not all, but not 0 of it's sub-elements(data) are selected? Mar 08 16:56:39 admittedly, it's a bit of a read, but you might be able to skim it and get the right idea. Mar 08 16:56:44 so does cancel() on an asynctask actually wait until the doInBackground has actually returned? Mar 08 16:56:46 Daniel_g: I looked at your SO post. You said it sometimes works and sometimes not. That's vague. What's a "working" output? what fails when it doesn't? Mar 08 16:56:46 readme do you know something about Ksoap2 or not? Mar 08 16:56:55 i.e. is it comparable to pthread_join() ;D Mar 08 16:56:56 Daniel_g: yeah, I've worked with it before. Mar 08 16:57:19 tapas: cancel() just sets a flag; it's up to your asynctask to check isCancelled() Mar 08 16:57:23 so tell me, what info do you need from me. try to be a good man and help me how to ask Mar 08 16:57:30 Daniel_g: if your question is adequate, how come it hasn't even had an attempted answer? It's on stackoverflow. Good questions get answered fast on that site. Mar 08 16:57:32 .w tapas Mar 08 16:57:44 You need to improve it. Mar 08 16:57:51 sorry to be the bearer of bad news. Mar 08 16:57:52 oops, thought this was #english Mar 08 16:58:09 TheMaverick`: #android-root please. Mar 08 16:58:16 readme Mar 08 16:58:27 Daniel_g: first of all, a complete test case Mar 08 16:58:36 Daniel_g: that means working code that demonstrates the problem Mar 08 16:58:40 not just a "relevant section" Mar 08 17:00:12 ok, so an asynctask really must not refer to to the activity that started it in doInBackground Mar 08 17:00:16 lov: Really? I didn't think that was a root-specific question (#android referred me here) Mar 08 17:00:33 because doInBackground might run longer than the activity's life Mar 08 17:00:45 TheMaverick`: the only way to get into the data settings of an app is to be rooted Mar 08 17:00:49 Daniel_g: how about this information: what is the expected result of the web request, and when it "doesn't work" what is the result? Mar 08 17:01:18 but: it's ok to refer to it in onPreExecute and onPostExecute, in the case that the avctivity's onStop() has called cancel() Mar 08 17:01:21 TheMaverick`: because each app is a different user. You can sometimes read, you can mess with stuff on SD, but to change an app setting like you want to do, you need to be root. Mar 08 17:01:30 for the AsyncTask will not call onPostExecute if the task was cancelled Mar 08 17:01:51 dragorn: Gotcha... Mar 08 17:03:06 Hi - anyone here use Eclipse+ADK on Linux? I'm wondering if the version of the JDK from the Ubuntu 11.10 repo will work, or whether I should download a version from the Oracle site Mar 08 17:03:46 Question: What is that layout for tablets again with a ScrollView on the left side and a ContentView on the right? Mar 08 17:04:05 fragment? Mar 08 17:04:20 i think so.. Mar 08 17:04:23 SmashCat: i think the android sdk docs specifically say you need to use oracle's ersion Mar 08 17:04:27 +v Mar 08 17:04:38 or at least they did when i installed it like 2 years ago Mar 08 17:04:52 SmashCat: I'm virtually positive it has to be the "official" java version. I know the IBM version won't work. Mar 08 17:04:54 is not other views, fragment that u search Mar 08 17:05:07 rigel: Ok thanks, I'll get that - I've always had problems with the "openJDK" or whatever it's called now Mar 08 17:05:11 SmashCat: i use it at home. i just install openjdk-7 or whatever the package is called Mar 08 17:05:17 on phones its two different view Mar 08 17:05:45 i got eclipse from the eclipse website though.. Mar 08 17:06:10 also a pitfall was the wrong language compliance checking settings. it was defaulted to 1.5 in eclipse which made Override annotations not work Mar 08 17:06:59 tapas: Ok thanks, I'll try the OpenJDK - if it doesn't work I'll go with the version from Oracle Mar 08 17:07:10 So... How do views work anyways? Mar 08 17:07:19 openjdk wont work for compiling apps Mar 08 17:07:34 i never got the whole concept of how android handles them etc Mar 08 17:07:36 and if it did, i would be erie of releasing an app compiled against openjdk Mar 08 17:07:48 wait wait wait Mar 08 17:07:48 SmashCat: yeah, uninstalling it is just one apt-get remove away anyways :D Mar 08 17:07:55 its ACTUALLY CALLED "The new iPad" Mar 08 17:07:57 wtfux Mar 08 17:08:03 lol Mar 08 17:08:08 *yawn* Mar 08 17:08:15 but openjdk-7 or whatever it is called IS the official version from oracle or sun or whoever maintains it these days Mar 08 17:08:40 openjdk is not the official version from oracle Mar 08 17:09:28 usually what i do is just download the latest 1.6 jdk from the oracle site and extract it (as well as eclipse, android sdk, maven, etc) to an opt folder in my home dir Mar 08 17:09:48 then set JAVA_HOME, ANDROID_HOME, etc environment variables to my local install Mar 08 17:09:54 screw apt repos Mar 08 17:10:34 canadiancow|work: what will they call the next one? The newer iPad? Mar 08 17:10:37 well I got Eclipse from the main site - heard the Ubuntu one is broken with the ADK Mar 08 17:10:42 exactly Mar 08 17:10:57 i hope nvidia sues them Mar 08 17:11:06 DigitalKiwi: it will just be like their current line of computers, it will be the iPad Mar 08 17:11:35 just like its the iPood, the Mac Poo, the Macbook Poo Mar 08 17:11:58 differentiated by their generation or year of release since there is only 1 refresh each year Mar 08 17:12:25 (that'll be my 3rd iPad ;-) ) Mar 08 17:13:01 ive had 0, and will always have 0 Mar 08 17:13:09 but i do have a xoom and a tab 10.1 Mar 08 17:13:35 NEW IPAD 3 NOW MADE WITH BETTER FREE RANGE SLAVERY THAT IS LIKE ORGANIC OR SOMETHING TOO Mar 08 17:14:10 Heh, I do like the iPad - also have a Xoom, Eee Transformer, Eee Prime, Galaxy Nexus, G1, and Galaxy tab - heh Mar 08 17:14:33 (I still like the old G1, to be honest) Mar 08 17:14:44 me too, it's just hellishly slow Mar 08 17:14:45 i have 2 g1's i still love em Mar 08 17:14:47 i has a xoom Mar 08 17:14:54 i just swapped it out for a gnex Mar 08 17:15:08 which i am mostly pretty happy with, though i still miss my 5-row kb Mar 08 17:15:21 and trackball Mar 08 17:15:22 how many of you are gonna be jealous if u said i have a Asus Transformer Prime Mar 08 17:15:23 L Mar 08 17:15:25 ?* Mar 08 17:15:39 iSeeDeadPixels: hmm, not i Mar 08 17:15:42 if i* Mar 08 17:15:46 though its a nice slate Mar 08 17:15:49 sorry, dvorak :P Mar 08 17:15:49 Not me, I've got one - hehe Mar 08 17:16:15 i got a Google Nexus S, Asus Transformer, Asus Transformer Prime :3 Mar 08 17:16:25 their site pisses me off Mar 08 17:16:40 now if it docked to run ubuntu, and was fast enough to do android dev, i would be jealous Mar 08 17:17:00 Asus prime is a quad+1 core tablet. Mar 08 17:17:05 http://eee.asus.com/eeepad/transformer-prime/features/ look at this crap Mar 08 17:17:07 so yeah, it's fast enough already Mar 08 17:17:23 but it doesnt dock to run ubuntu yet Mar 08 17:17:32 @iSeeDeadPixels I am looking at getting one, how do you like it? Mar 08 17:17:33 you can run ubuntu off of it though Mar 08 17:17:37 if it did, i would have one on my desk Mar 08 17:17:45 tmoskowite, it's my new girlfriend. Mar 08 17:17:47 I thought there was a hack to do that already - run Ubuntu when docked Mar 08 17:18:00 @iSeeDeadPixels awesome Mar 08 17:18:17 i'm trying to show an imageview that is locked aspect ratio size in the center of a view and then fill out the left and right with a one pixel wide image that i stretch horizontally to match the height of the image in the middle but i can't seem to get it to work Mar 08 17:18:32 any ideas? Mar 08 17:19:13 use a nine patch Mar 08 17:19:22 ya? Mar 08 17:19:27 The main thing that makes me use an iPhone/iPad more than my Android devices when I'm out is the better email app. The fact I can't zoom in the email on my Galaxy Nexus is ridiculous tbh Mar 08 17:19:51 get glasses? Mar 08 17:19:54 lol Mar 08 17:20:06 how would a 9patch help Mar 08 17:20:11 what email app are you using? Mar 08 17:20:24 wongk: The one that comes with it. Mar 08 17:20:39 ah Mar 08 17:20:42 ive never had a problem reading on any android device, but i could see how that could be a problem for some, and it is amazing that google hasnt put zoom support in gmail yet Mar 08 17:20:59 k-9 has zoom in/zoom out Mar 08 17:21:06 birbeck: Agreed Mar 08 17:21:23 and Gmail looks shocking on it. Seeing as it's a major app, it should really look a lot better on a Google handset Mar 08 17:21:27 Saq0: you could keep your image aspect the same regardless of orientation while allowing the sides to expand Mar 08 17:21:44 SmashCat: what do you mean? gmail looks fine o.O Mar 08 17:21:59 ic Mar 08 17:22:27 i wish you could adjust the properties of a background image Mar 08 17:22:33 that would fix it Mar 08 17:22:38 canadiancow|work: I mean the lack of zoom in Gmail on an Android phone means that any html emails that are too wide are unreadable and break the ui Mar 08 17:22:39 adjust the properties? Mar 08 17:22:54 like set a scaletype or something Mar 08 17:23:01 on the background Mar 08 17:23:10 you can set scaletype Mar 08 17:23:15 on background? Mar 08 17:23:56 in code… but for that just use a 9 patch Mar 08 17:24:02 ah Mar 08 17:24:08 you could also wrap it in another layout, or use a frame layout Mar 08 17:24:17 k Mar 08 17:24:18 but 9-patch is the best solution Mar 08 17:24:24 thank you Mar 08 17:24:32 Anyway, that's the only thing that makes me prefer an iPhone/iPad when I'm out, otherwise I use any device really - haven't really got a preference ;-) Mar 08 17:24:33 without knowing the full details of what you are doing Mar 08 17:25:27 SmashCat: i do 50+ emails a day on my nexus s on the train, works just fine, but to each their own Mar 08 17:25:51 SmashCat, why does my brightness fluctuate, even when it's not on Auto? Mar 08 17:26:59 could be a problem with the screen? Mar 08 17:28:00 birbeck: I guess,depends on the emails you receive I suppose. I get a lot of HTML crap, and got sick of having to keep scrolling left/right all the time to read the text off the edges of the screen Mar 08 17:29:02 well i more meant i compose 50+ emails daily, i dont read html emails at all Mar 08 17:29:42 only html emails i get regularly are amazon deal of the day stuff and those are usually deleted immediately if the subject doesnt interest me Mar 08 17:36:06 got an interesting email from amazon yesterday Mar 08 17:36:33 said the kindle team will be in town and would like to chat with me about opportunities Mar 08 17:36:54 however, they cant read my linked in profile very well, i moved 6 months ago Mar 08 17:37:11 yeah everyone gets those Mar 08 17:37:22 recruiters are the laziest fucks in the world Mar 08 17:37:27 ah Mar 08 17:37:46 ive gotten several, this one seemed different, but recruiters are always up to new tricks Mar 08 17:37:47 oh you have Android in your skills lets email you Mar 08 17:37:56 mikedg: and not very literate? Mar 08 17:38:11 even though you just started a new job, you are nowhere near them, you say you dont want to be contacted, and you dont even have your email address listed Mar 08 17:38:13 i got an email from a recruiter today Mar 08 17:38:20 i get really fucking nasty when they guess my work email Mar 08 17:38:29 i said "if you cant pay 150k, dont bother" Mar 08 17:38:39 i got another reply saying hed look into it Mar 08 17:38:43 I get phone calls from recruiters Mar 08 17:38:48 on my work phone which I have never given out Mar 08 17:38:50 and which I never use Mar 08 17:39:15 i dont have a work phone ;-) Mar 08 17:39:23 lov: too bad you cannot take your phone with you. Then you could introduce them to the bathroom Mar 08 17:39:41 I get sent all kinds of idiotic "opportunities" - they just match random keywords. My skillset is Android, iOS, Java, embedded (C/C++) but I get crap about C# all the time. I've never had that on my CV Mar 08 17:40:44 my monster.com profile says "DO NOT CALL ME… If your email even mentions ios you will be ignored, so dont waste my time or yours" Mar 08 17:40:55 you know how many calls i get for ios jobs? Mar 08 17:41:23 id say "learn to fucking read" Mar 08 17:41:23 birbeck: i got those also (from amazon). i just don't like what amazon is doing to android, so I didn't reply Mar 08 17:41:35 but g00s, you could make it better! Mar 08 17:41:36 yeah, not interested in kindle Mar 08 17:42:01 canadiancow: not really, product decisions are made from the top Mar 08 17:42:12 you have no idea how much shit i push back on Mar 08 17:42:17 Google are nice to work with though - a friend and I did one of the attractions at the MWC this year :-) (used Android+ADK+custom hardware) Want to get more of those projects Mar 08 17:42:41 does facebook still work with webviews if the user doesn't have fb installed on android? Mar 08 17:42:47 yes? Mar 08 17:42:50 i would work at google if it was on a cool team Mar 08 17:42:55 hm? any suggestions on how to disable all Android logging calls in release builds? When I enable proguard optimization even with very mild settings, it breaks dx, and I have to have optimization enabled to use -assumenosideeffects on android.util.Log calls. Any other approaches? Mar 08 17:42:58 i would work anywhere if it was a cool team... Mar 08 17:43:13 android apps, youtube, music, google tv, wallet, google @home, ... Mar 08 17:43:47 they definitely could use some help writing decent apps outside of the core gapps Mar 08 17:43:52 wyvern`: create your own Logging class which passes through to Log Mar 08 17:44:14 then, you can have those classes check whether the app is set as debuggable? Mar 08 17:44:20 * lov shrugs Mar 08 17:44:41 wyvern`: wrap them in a static final boolean Mar 08 17:44:46 birbeck: My friend went to the MWC (I didn't get to go due to work) and was chatting with Andy Reubin - nice guy apparently! Mar 08 17:45:08 is your friend a cat? Mar 08 17:45:20 i just shook his hand and said thanks, then took a picture at io Mar 08 17:45:28 mikedg: heh - more of an ass Mar 08 17:45:59 canadiancow|work: Ideally I'm looking for something a little tidier than that Mar 08 17:46:26 birbeck: He played on our machine (didn't win), so did Eric Schmidt (he didn't win either) hehe Mar 08 17:46:31 I'm surprised there isn't a built-in way to easily disable app-level logging Mar 08 17:47:11 @wyvern` these are calls you are making in your app? Mar 08 17:47:28 tmoskowite: yes, in addition to other logging calls from library code Mar 08 17:47:40 anything using slf4j or commons logging, for instance Mar 08 17:48:16 I could just figure out how to get proguard optimization to not break dx, in which case the proguard approach could work. I was hoping for something simpler, but googling comes up dry. Mar 08 17:48:17 the spinner text is overflowing http://imgur.com/NQS8M how do i solve this ?? Mar 08 17:48:47 wyvern`: simple way using only sdk is to wrap your log calls around Log.isLoggable(String tag, int level) Mar 08 17:49:01 birbeck: yeah, but that does nothing for library code Mar 08 17:49:16 that's also messy :/ so 90s Mar 08 17:49:24 wyvern`: as in and android library? Mar 08 17:49:29 an* Mar 08 17:49:33 as in any java library that uses logging Mar 08 17:49:42 ah, yeah Mar 08 17:49:51 strip those out with proguard? Mar 08 17:49:52 @SeaOrifice simplify your sentence? Mar 08 17:50:23 @wyvern` http://stackoverflow.com/questions/2446248/deactivate-any-calls-to-log-before-publishing-are-there-tools-to-do-this/2466662#2466662 Mar 08 17:50:34 tmoskowite: yeah, found that Mar 08 17:50:36 tmoskowite: check out the image.. the text in the spinner its overflowing.. i want to cut it so that it doesnt overflow Mar 08 17:50:39 @wyvern` figured =) Mar 08 17:51:42 @SeaOrifice http://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize Mar 08 17:52:16 @SeaOrifice oops that was text view Mar 08 17:54:28 what's the best way to add an action listener of some sort to a spinner so I can carry out actions based on a selected item? Mar 08 17:57:28 ninjai, an onClickListener Mar 08 18:00:27 wyvern`: i used pro guard to strip out logging, but had to comment out optimizationpasses Mar 08 18:00:42 g00s: afaict without optimization it won't strip Mar 08 18:00:45 also, i had to use 4.7 - the one that came with the adt was fucking ancient Mar 08 18:00:55 ah that could be part of the problem Mar 08 18:01:24 jeppy, I'm getting my spinner filled from database data, and from what I read the only way to do an action based on a clicked item is by making that clicked Item a TextView or something, and adding the action listener to the text view Mar 08 18:01:54 wyvern`: i commented out optimization passes, , then put it in with 1, 2, and 3 … and din't notice any difference between anything Mar 08 18:02:00 (size wise) Mar 08 18:02:08 good afternoon Mar 08 18:02:10 ninjai: why not make a button Mar 08 18:02:10 so i just said fuck it, and left it commented out Mar 08 18:02:17 oh well it defaults to 1 Mar 08 18:02:22 -dontoptimize if you want 0 optimization Mar 08 18:02:24 I need to create an alarm that starts firing an intent (periodically) automatically when the phone is turned on. Any help? The android documentation says "Registered alarms will be cleared if it is turned off and rebooted", so I don't know how I could do it... Mar 08 18:02:55 g00s: how did you override the version of proguard? Mar 08 18:03:06 ninjai, when they select an item, they have to click on it, no? Mar 08 18:03:31 wyvern: Think some people mod Eclipse to run Java files through a C preprocessor, so you can easily add switches for debug/live builds (and even switches for variations for different APIs) Mar 08 18:03:32 jeppy, yes. but I don't know how to add an action listener to the item they select, which is a string Mar 08 18:04:18 wyvern`: just get the new one and copy the lib/ dir into yours Mar 08 18:04:35 i see, so it will use that classpath. great Mar 08 18:04:55 tools/proguard/lib Mar 08 18:05:13 oh in the android sdk install Mar 08 18:05:19 yes Mar 08 18:06:33 ninjai, http://developer.android.com/reference/android/widget/Spinner.html Mar 08 18:06:55 * g00s wonders if this claim that the a5x is 4x faster than the tegra 3 holds any water Mar 08 18:07:01 ninjai, I think you can set the itemlicklistener in your adapter Mar 08 18:07:50 One instance of "com.android.ide.eclipse.adt.internal.sdk.Sdk" loaded by "com.android.ide.eclipse.adt" occupies 724,331,232 (93.86%) bytes. The memory is accumulated in one instance of "java.util.TreeMap$Entry" loaded by "". Mar 08 18:07:54 s/adapter/adapterview Mar 08 18:07:56 somethin tells me ADT is the fail Mar 08 18:08:57 ... *cries for the dead memory*( Mar 08 18:09:07 jeppy, that's the weird part, no setOnItemClickListener comes up in eclipse when I type . after my adapter Mar 08 18:09:31 is it an AdapterView? Mar 08 18:10:23 ah jeppy never mind, looks like my old code had some weird naming issues. I think I've figured it out, thanks Mar 08 18:10:46 "void setOnItemClickListener(AdapterView.OnItemClickListener l) A spinner does not support item click events." - huh? Mar 08 18:11:06 np Mar 08 18:11:47 Hey! I need to create an alarm that starts firing an intent (periodically) automatically when the phone is turned on. Any help? The android documentation says "Registered alarms will be cleared if it is turned off and rebooted", so I don't know how I could do it... Mar 08 18:12:05 SmashCat: I question the value of using CPP to exclude java code, since the code inside if statements that evaluate to false at compile time are not included in the binary, but it might be easier to read. CPP syntax, that is. Mar 08 18:12:44 mohadel something like https://www.google.com/search?q=android+launch+app+on+boot+OR+startup&nfpr=1 ? Mar 08 18:13:15 http://stackoverflow.com/questions/5739588/android-launching-app-when-system-boot etc Mar 08 18:13:20 oh jeppy I spoke too soon lol. "setOnItemSelectedListener cannot be used with a spinner" :(. My adapter cannot access that method either. Mar 08 18:14:15 ninjai wut, i use setOnItemSelectedListener on my spinner ... Mar 08 18:14:18 readme: Well you can exclude and include code. I think it's very useful - maybe more so for Java than C++. i do miss it at times, I know there are work-arounds, but they're not as clean, and harder to maintain IMV Mar 08 18:14:20 and it works Mar 08 18:14:49 (using api 10) Mar 08 18:14:53 SmashCat: oh, yeah if you had #include that would be nice Mar 08 18:15:07 toxicFork, weird, I'm on api 15 Mar 08 18:15:36 have you tried just a plain onclick listener? Mar 08 18:16:46 ninjai: afaik it's the click listener that can't be used with spinner Mar 08 18:16:56 jeppy, that seems to work I think.... Mar 08 18:18:29 10 to 15 shouldn't break setOnItemSelectedListener Mar 08 18:18:45 but... when do you want it to fire Mar 08 18:18:49 when you open the dropdown? Mar 08 18:18:55 or when you click an element from the dropdown Mar 08 18:19:27 because wouldn't onclick fire when you tap the spinner to open the dropdown? anyway... Mar 08 18:20:05 yeah but it might do both Mar 08 18:20:30 but it seems like setOnItemClickListener should work Mar 08 18:20:35 toxicFork, when I click the element Mar 08 18:20:46 "Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead" Mar 08 18:20:48 what api are you running it on? Mar 08 18:20:53 15 Mar 08 18:21:10 ninjai, element... click... yeah... you don't want a spinner? Mar 08 18:21:50 but i dunno what you want to happen so i could be misunderstanding :P Mar 08 18:22:52 Just to clear this up.. setOnItemClickListener =! setOnItemSelectedListener Mar 08 18:23:21 I don't know how this never worked last time (my eclipse is acting a bit weird with logcat), but I did "Spinner.setOnItemSelectedListener(new OnItemSelectedListener()..." and it seems to work. Maybe what SimonVT said is waht I was doing.. Mar 08 18:23:52 holy crap Mar 08 18:23:58 how long does it take for crash reports to show up in the dev console Mar 08 18:24:01 flurry reports them "live" Mar 08 18:24:04 but flurry gives crap info Mar 08 18:24:29 And noone ever uses the dev console Mar 08 18:25:18 well how do you get sensible crash reports? Mar 08 18:25:43 I use bugsense Mar 08 18:26:54 i'll try it out Mar 08 18:28:37 Got sick of how slow my laptop's old HD was - put a new 550MB/s SSD in there this afternoon - difference is night and day! There's like no boot time now! Mar 08 18:29:34 Hoping that this should mean the Android emulator will launch in under 10 minutes... we'll see Mar 08 18:34:37 Ubuntu for Android :) https://www.youtube.com/watch?feature=player_embedded&v=gRoYlgOC9z0#! Mar 08 18:34:54 https://www.youtube.com/watch?v=hSPFpNWJvJ4&feature=related Mar 08 18:35:56 Ubuntse Mar 08 18:37:21 <3 Mar 08 19:07:41 Hey guys just a small question my tablet (X5A Telechip ) wont let me to enter recover mode after rebooting it stays there at the booting green android but If I turn it on normally it goes fine ??? Mar 08 19:07:56 Aba_Albra: #android-root Mar 08 19:08:05 these questions are appropriate for #android-root Mar 08 19:08:29 when you ask a question here, ask yourself first: "Is this question about developing an Android application or working on the Android platform code?" Mar 08 19:08:31 lov I really need this cause I asked their they refer me here lol Mar 08 19:08:34 hey guys, I have an app that is getting a bunch of OutOfMemory Exception thrown by Bitmap.DecodeResource in an Activity.onCreate(). The weird part is that all the reports seem to be from Android 4.0.2. Has anyone seen something similar on Android 4? Mar 08 19:08:36 well they shouldn't Mar 08 19:08:48 #android-root sent you here for recovery mode questions? Mar 08 19:09:09 lov sorry again Mar 08 19:09:28 but that channel kind of dead Mar 08 19:11:18 https://plus.google.com/116031914637788986927/posts/ecVV7u8ngB6 Mar 08 19:12:02 oh. Mar 08 19:12:06 so they didn't actually send you here Mar 08 19:12:09 you just decided to come here instead? Mar 08 19:12:14 please don't. Mar 08 19:12:20 this channel is NOT APPROPRIATE for these questions Mar 08 19:12:55 jayd16: you're using too much memory :)) Mar 08 19:13:06 jayd16: note that Android 4.x runs on xhdpi devices Mar 08 19:13:11 so you might be loading really big bitmaps Mar 08 19:13:53 mine's bigger Mar 08 19:14:16 jokes aside, look into nine patches and xml drawables Mar 08 19:14:30 they use less memory :) Mar 08 19:15:00 lov is it allowed to ask about ADB commands ? Mar 08 19:15:02 or make sure you didn't put your assets in the wrong directory Mar 08 19:15:35 while(!success) { try { bitmap stuff; success = true; } catch (OutOfMemoryError er) { S;System.gc();System.gc();ystem.gc();} } Mar 08 19:15:37 that works too Mar 08 19:16:28 you use to be able to kill other apps in that loop to get more memory but they took that away cause users did dumb shit Mar 08 19:18:31 Aba_Albra: http://developer.android.com/guide/developing/tools/adb.html Mar 08 19:18:37 Aba_Albra: read this BEFORE you ask any question about adb. Mar 08 19:21:53 mikedg lol gc 3 times in a row Mar 08 19:22:19 thats to free the bitmap stuff... Mar 08 19:22:54 Hi, I get an error I just don't understand Mar 08 19:22:55 java.lang.NumberFormatException: unable to parse '201203081846' as Mar 08 19:22:58 integer* Mar 08 19:23:12 use a long Mar 08 19:23:13 Walui, integer is 2^31 Mar 08 19:23:24 minus 1 Mar 08 19:23:41 romanianguy: I thought about this but I dont have any xhdpi assets Mar 08 19:23:55 jayd16, so the system scales up your assets for you Mar 08 19:24:00 did thought int were that small Mar 08 19:24:04 thanks a lot Mar 08 19:24:45 toxicFork: sometimes it needs extra time, i dont know why, probably bugs in the android code Mar 08 19:25:15 because gc operates in cycles Mar 08 19:25:40 So when I began creating this app I used fragements in all my Activities to future proof my self. So currently each Activity just has a single fragment. But now I want to start doing a real tablet UI using these fragments. Anyone know of a good tutorial showing how to support both tablet and phone UIs in your code? Mar 08 19:25:41 although calling System.gc is quite worthless Mar 08 19:25:42 canadiancow|work: oh, then how would I fix this? Add in xhdpi assets that are the same as my hdpi assets? Mar 08 19:25:48 no Mar 08 19:25:55 use less memory! Mar 08 19:26:05 should I have a different activity for the Tablet that loads multiple fragments? Mar 08 19:26:07 [14:14:16] jokes aside, look into nine patches and xml drawables Mar 08 19:26:16 Wavesonics, i use one activity Mar 08 19:26:20 with different layouts Mar 08 19:26:31 that's why we need a c-based android spinoff Mar 08 19:26:44 ... Mar 08 19:26:47 :D Mar 08 19:26:57 it'd be fun. Mar 08 19:27:22 canadiancow|work, hhmm but how do u handle the fact that certain buttons would on a phone, launch a new activity, but on a tablet, just perform a fragement transaction Mar 08 19:27:23 http://developer.android.com/sdk/ndk/index.html gl hf gtfo Mar 08 19:27:51 Wavesonics: Check screen size Mar 08 19:28:07 programatically? hhmmm... sounds kinda dirty to me :/ Mar 08 19:28:10 lol Mar 08 19:28:15 it exists? i was just kidding Mar 08 19:28:17 i'm sorry! Mar 08 19:28:19 how do i override itemizedoverlay's marker touch detection method? when i override onTouchEvent(..) with an empty method, onTap is still fired. i also overrided hitTest(..) with an empty method, and it still worked Mar 08 19:28:27 Wavesonics: if (second fragment exists) { show in second fragment } else { startActivity(...); } Mar 08 19:28:40 ah thats not bad Mar 08 19:28:42 Or that Mar 08 19:29:13 argh. brought down a sample app that uses Google API 15, but I can't seem to make the build path stick. It always falls back to Android 2.2. I can pick Google APIs 15 and set target sdk to 15, but Eclipse seems to ignore it. Mar 08 19:31:14 It is clearly toggling the values in default.properties, but when I look at the build path it is falls back to 2.2. Mar 08 19:33:13 canadiancow|work hmmm my guess is its not a nine patchable asset. The biggest asset is the background which I might be able to tile but its not stretchable. I think you're right about the 'use less memory.' I shouldn't be distracted by the fact this. I should attack the memory issues elsewhere in the app and this should be fine? Mar 08 19:33:31 no, memory issues are almost always bitmaps Mar 08 19:33:35 if you can tile the background, do it Mar 08 19:35:58 jayd16: have ou tried my suggestion? Mar 08 19:36:14 sept10 Mar 08 19:36:17 mikedg: I missed it, let me scroll back Mar 08 19:36:23 oh, ok, dont try it Mar 08 19:36:27 its bukkake Mar 08 19:36:30 bunk Mar 08 19:37:44 yeah, this is when the layout is being drawn. Doesn't really fit the problem =p Mar 08 19:38:20 canadiancow|work, so for this to work with a single Activity. The 2nd fragment needs to be able to deal wit being empty Mar 08 19:38:52 that could be a problem :P Mar 08 19:39:23 canadiancow|work: : you going to i/o Mar 08 19:39:23 maybe I can have a placeholder fragment that I use just to know that I'm in a tablet UI mode. and then i replace that w\ my actual fragmenet when something is selected Mar 08 19:39:29 assuming you get tickets of course Mar 08 19:39:48 mikedg: yes Mar 08 19:47:14 Wavesonics: Eh no, just don't add it on phones Mar 08 19:48:31 SimonVT, but the idea is, using 2 XML layout files for the same activity. 1 file has a single Frag, the other file (xhdpi) has 2 fragements. And at run time you check for the presence for the other Fragement to know what action you should perform on button click Mar 08 19:48:51 Yes ? Mar 08 19:49:09 no Mar 08 19:49:11 not xhdpi Mar 08 19:49:28 Yeah, not xhdpi ofc Mar 08 19:49:30 Tablet sizes Mar 08 19:50:06 layout-xlarge Mar 08 19:50:10 sorry Mar 08 19:50:32 so if it loaded the layout-xlarge layout w\ 2 fragements in it. the 2nd fragement would be inflated when the activity is created right? Mar 08 19:50:40 yes Mar 08 19:51:14 ya, but the 2nd frag wouldnt know what to display yet (since its dependent on a selection in the first layout) Mar 08 19:51:38 So wait with adding it, and just check screen size Mar 08 19:52:03 ya idk... i really don't like the idea of checking screen size... Mar 08 19:52:10 so default it to "select seomthing on the left!" Mar 08 19:52:11 Why not? Mar 08 19:52:41 canadiancow|work, right, maybe I just have an "emtyp" fragment there at first Mar 08 19:52:49 and programatically replace it on selection... Mar 08 19:53:45 SimonVT, how do u check screen size at run time anyway? Mar 08 19:54:49 It's a field somewhere in Resources.getConfiguration() you & with a mask and compare to a constant Mar 08 19:55:07 ah ok Mar 08 19:55:22 i like the idea of letting Android handling which layout to pick Mar 08 19:55:24 seems more future proof Mar 08 19:56:32 checking screen size isn't a reliable way of determining if something's a tablet really - unless you get the physical size (resolution / dpi) Mar 08 19:57:04 If you put your layouts in layout-xlarge and you check if the screen is xlarge, I'd say it's pretty reliable Mar 08 19:57:15 tablet layouts* Mar 08 19:57:34 SmashCat: define "tablet" then Mar 08 19:57:49 right Mar 08 19:57:54 thats what I want to let Android to for me Mar 08 19:57:56 lov: I'll let the marketting depts do that Mar 08 19:58:00 define things like that :P Mar 08 19:58:44 is there a standard way of showing a column header for sorting? Mar 08 19:59:14 A tablet isn't based on the display resolution though. Mar 08 19:59:17 I have a textView right now, but I'm not sure how to represent ascending vs descending Mar 08 19:59:40 is this always done with an image? Mar 08 20:00:11 Who said it was? Mar 08 20:00:45 It's a statement, not a rebuttal Mar 08 20:01:18 DammitJim: well, think if it in these terms, with text you have to worry about translation, with an image you just have to worry about size Mar 08 20:01:32 DammitJim: as well as images don't require a person to be able to ready Mar 08 20:01:34 *read Mar 08 20:01:35 Seems like a pretty obvious statement Mar 08 20:01:36 herriojr, translation to another language? Mar 08 20:01:50 SimonVT: Glad you agree. Mar 08 20:02:03 Hey guys Mar 08 20:02:15 DammitJim: if you're using text, eventually you'll want to translate to other languages to increase your audience Mar 08 20:02:43 yeah, eventually in my case is in about 2 years Mar 08 20:03:10 but the bottom line is that using an image is no heavier, right? I mean, there is no reason I shouldn't use an image Mar 08 20:03:13 DammitJim: I'm assuming you're just doing a ListView with some button to allow ordering? Mar 08 20:03:23 DammitJim: define: heavier Mar 08 20:03:29 why can't I send to a constructor which is called from onCreate the context of the activity (i.e "this") ? Mar 08 20:03:44 you can. Mar 08 20:03:46 herriojr, yeah... the listview has many "elements" and I can sort the elements by clicking on the header (as if it was a table) Mar 08 20:03:57 sasson: you can, but if you cache that context you have the potential to "leak" the activity Mar 08 20:04:02 ==lov Mar 08 20:04:14 sasson: if you don't need the activity itself, strongly consider using context.getBaseContext, which will give the application context Mar 08 20:04:17 herriojr, heavier is not the right word (my apologies), I just meant, it's probably better to just use images, right? Mar 08 20:04:19 of which there shall only be one ever Mar 08 20:04:20 ctate == lov? Mar 08 20:04:26 DammitJim: depends Mar 08 20:04:27 canadiancow|work: hush, you. Mar 08 20:04:28 just like implants and your anus, leaking is bad Mar 08 20:04:34 canadiancow|work: you ever see The Dark Crystal up in canuckistan? Mar 08 20:04:36 it's sort of like that Mar 08 20:04:38 holy cow, mikedg Mar 08 20:04:47 ... Mar 08 20:04:48 mikedg: O_o Mar 08 20:04:48 Dammit DammitJim Mar 08 20:04:53 so i didnt sign an nda when i went to google yesterday Mar 08 20:04:54 LOL Mar 08 20:04:56 Dammit mikedg ! Mar 08 20:04:58 but they talked about all kinds of shit that isnt public Mar 08 20:04:59 mikedg never fails to entertain me :P Mar 08 20:05:04 thanks lov Mar 08 20:05:11 canadiancow|work: give us the deets :> Mar 08 20:05:11 canadiancow|work: did you get a visitor badge? Mar 08 20:05:14 * lov flashes his eyelashes Mar 08 20:05:15 yes Mar 08 20:05:22 there was NDA text in the visitor badge flow Mar 08 20:05:27 no there was not Mar 08 20:05:28 you didnt sign that form when you got the badge? Mar 08 20:05:31 ORLY Mar 08 20:05:36 so i went twice yesterday Mar 08 20:05:41 the second time, there was a hardcopy form to sign Mar 08 20:05:44 canadiancow|work: did you ever sign an nda? Mar 08 20:05:44 the first time, there was not Mar 08 20:05:52 DammitJim: who's your audience? Mar 08 20:05:56 now, im not going to talk about shit that shouldnt be discussed Mar 08 20:06:01 but i think its a pretty big flaw in the process Mar 08 20:06:06 because from a legal standpoint... Mar 08 20:06:16 also nothing they mentioned is too crazy Mar 08 20:06:21 lov, now I'm getting "context cannot be resolved to a variable" when using your solution Mar 08 20:06:26 not like "OMG JELLY BEAN HAS A FEATURE THAT ACTUALLY MAKES JELLY BEANS" Mar 08 20:06:27 .... Mar 08 20:06:27 canadiancow|work: who cares, you already told me that the next version of android is going to be called Ji... oh I was already told to tone it down Mar 08 20:06:32 sasson: think about what I wrote instead of copy/pasting it Mar 08 20:06:42 hint: an Activity is a Context Mar 08 20:06:49 yeah as if an NDA ever prevented anyone from leaking information Mar 08 20:06:49 k Mar 08 20:06:59 hint: d.android.com Mar 08 20:07:01 canadiancow|work: does your company have an NDA with google in place...? Mar 08 20:07:26 is there a way to color the area that is touchable for a view? Mar 08 20:07:33 i did enter "zynga" in the company field... Mar 08 20:07:34 hmm Mar 08 20:07:45 anyway, again, im only pointing this out because it seemed odd Mar 08 20:08:01 zynga and google are working together? Mar 08 20:08:05 my audience? uuummmm... probably VARs Mar 08 20:08:09 this means Google + Game Center Mar 08 20:08:11 we...have android apps Mar 08 20:08:16 I AM FURIOUSLY BUYING STOCK AS WE SPEAK Mar 08 20:08:17 and g+ apps Mar 08 20:08:17 BUY BUY BUY Mar 08 20:08:22 mikedg: it's a good be that .... ==canadiancow|work Mar 08 20:08:40 actually not VARs... more like hardware installers Mar 08 20:08:45 SELL SELL SELL Mar 08 20:09:12 lov it's already down 17 cents today Mar 08 20:09:14 please no more Mar 08 20:09:27 haha Mar 08 20:09:55 Hello, does anyone use appinventor here? Mar 08 20:10:05 read that as "down to 17 cents today" Mar 08 20:10:10 I was ready to actually buy some stock :P Mar 08 20:10:19 LOL Mar 08 20:11:15 N1tr0g3n: No, it's mostly developers in here Mar 08 20:11:18 trololol Mar 08 20:11:33 lov: save all your money for my kickstarter campaign Mar 08 20:11:40 Great, i know app development is more serious than just drag'n'drop Mar 08 20:11:46 i'm trying to raise $100,000 for my card game Mar 08 20:11:58 donate $100,000 and I give you an iPad! Mar 08 20:12:05 iPad? Mar 08 20:12:11 1 Mar 08 20:12:11 The new iPad? Mar 08 20:12:15 the new ipad! Mar 08 20:12:20 Something running Android please :) Mar 08 20:12:32 android doesnt have screens that are better looking than real Mar 08 20:12:40 N1tr0g3n: I know a guyy who made an app in appinventor.. For what it did it seemed overly complex, and not very flexible Mar 08 20:12:55 are popupwindows not technically considered part of an activity? Mar 08 20:13:08 SimonVT, well not all beginners can start just from coding Mar 08 20:13:10 killring: in what sense? Mar 08 20:13:46 mikedg: I've been banging my head against a wall trying to figure out how to use a fragment in a popupwindow and can't seem to get it to work Mar 08 20:14:08 oh why did i read that as dialog Mar 08 20:14:09 lol Mar 08 20:14:13 N1tr0g3n: You're probably not going to learn a lot of coding in appinventor either Mar 08 20:14:19 why a popupwindow? Mar 08 20:14:20 the only thing I can think of is that they're a different kind of beast in some way Mar 08 20:14:23 they are an abomination Mar 08 20:14:29 try dialogfragment? Mar 08 20:14:33 SinonVT if course I'm not, but as I don't know Java Mar 08 20:14:35 mikedg: not on a tablet they're not Mar 08 20:14:47 I thought i'd try some simplest apps with appinventor Mar 08 20:15:09 sure, dialogfragment works, but I want the more precise positioning of a popupwindow relative to the rest of my ui Mar 08 20:15:12 i forget what i was trying to do but popupwindow sucked ass Mar 08 20:15:28 oh, i was trying to use a fucking spinner in my popupwindow Mar 08 20:15:32 is there a way to color the area that is touchable for a view? Mar 08 20:15:43 broke like a damm Mar 08 20:15:45 on ics Mar 08 20:15:48 maybe honeycomb Mar 08 20:15:54 N1tr0g3n: do you know other programming languages? Do you know OO? If you know C#, it's basically Java. Mar 08 20:16:06 mikedg: yeah, I haven't gotten there yet but I can imaging it would be a problem since spinners are implemented as popupwindows afaik Mar 08 20:16:21 lov, not C#, but some noob level C++ Mar 08 20:17:04 N1tr0g3n: Java is actually easier than you think. It's MUCH easier than C++ in many ways. Mar 08 20:17:18 the hardest part about developing for android is developing for android Mar 08 20:17:21 N1tr0g3n: I'd strongly recommend that you just learn java; app inventor is meant for folks without any programming experience Mar 08 20:17:35 N1tr0g3n: Read up http://docs.oracle.com/javase/tutorial/java/index.html and http://docs.oracle.com/javase/tutorial/essential/index.html Mar 08 20:17:36 you know c++? then you know braces and can stop worrying about memory Mar 08 20:17:41 now you know java Mar 08 20:17:44 once you know that stuff, you'll pretty much be ready for most of android Mar 08 20:17:58 mikedg: well I wouldnt go so far as to stop worrying about memory Mar 08 20:18:04 lov, hmm i think i'll start that right now thanks for the advice Mar 08 20:18:09 no problem Mar 08 20:18:15 you just need not worry about deallocing anymore, but you still should be mindful that your not just allocating object after object in a messy manner Mar 08 20:18:16 just remember, pure java questions in #java please :) Mar 08 20:18:33 DrPenguin: thats why they have the garbage man Mar 08 20:18:40 you just call him when your memory is too big Mar 08 20:18:45 i pasted a great piece of code earlier Mar 08 20:18:52 what if you can't remember to call the garbage man Mar 08 20:18:58 your memory will never be fixed because you can't remember Mar 08 20:19:02 mikedg: well no, you dont, the idea of the GC is that you dont do anything with the GC Mar 08 20:19:04 lov: then your shit is gonna pile up Mar 08 20:19:07 oh man Mar 08 20:19:12 I think I saw this episode of hoarders : ( Mar 08 20:19:14 JakeWharton: is there any specific reason why context menu callbacks like onContextItemSelected in fragments don't use the ABS menu classes in ABS4? Mar 08 20:19:17 and JUST because you have a GC, doesnt mean you can just allocate object after object Mar 08 20:19:19 thats why you make him come on a biweekly basis Mar 08 20:19:32 DrPenguin: mikedg is trolling (shh) Mar 08 20:19:42 lov: loltroll Mar 08 20:19:48 veeti: They have nothing to do with the actionbar Mar 08 20:19:50 DrPenguin: ohhh, if you are that worried, every 5 minutes, call finish on all of your activities and set na alarm to relaunch them Mar 08 20:20:00 fuck finish Mar 08 20:20:01 System.exit Mar 08 20:20:08 :D Mar 08 20:20:10 run that process into the ground Mar 08 20:20:11 system.exit takes down your alarm Mar 08 20:20:16 what Mar 08 20:20:17 noob Mar 08 20:20:18 no it doesn't Mar 08 20:20:26 is there any programming language that takes in as a method the word f**k? LOL Mar 08 20:20:40 DammitJim: not sure if "brainfuck" uses "fuck" as a word Mar 08 20:20:46 you accept my challenge! Mar 08 20:20:47 there's probably some silly language Mar 08 20:21:06 lov: I doubt it does, brainfuck only has 6 syms Mar 08 20:21:13 + - right? Mar 08 20:21:16 and some other Mar 08 20:21:21 +-<> and 2 others Mar 08 20:21:33 maybe = and # dunno Mar 08 20:22:04 ahh its 8, +-<>,.[] Mar 08 20:22:07 LMAO Mar 08 20:22:37 am i wrong in assuming layout-land is a valid directory to put layouts in? Mar 08 20:22:50 no Mar 08 20:22:51 it is a perfectly valid place Mar 08 20:22:54 nah Mar 08 20:22:59 it is for layouts that apply only in landscape orientation Mar 08 20:23:07 hhmm doesnt seem to be picking up the layouts in there when i go to landscape Mar 08 20:23:07 layout-ocean ftw Mar 08 20:23:12 lol Mar 08 20:23:41 ndk + windows = fail :( Mar 08 20:23:52 Wavesonics: is your activity set up to reset on configuration changes? Mar 08 20:23:54 g00s: layout-horizon Mar 08 20:23:59 (if no, you'll have to re-set the content view) Mar 08 20:24:18 DrPenguin: layout-torus Mar 08 20:24:22 that is, did you register the activity to handle config changes for some things itself? Mar 08 20:24:37 <_lpc> canadiancow im trying to get it to work right now Mar 08 20:24:38 lov, by default it does that right? so yes it should be Mar 08 20:24:38 ctate: layout-beanbagchair Mar 08 20:24:57 so ctate, is K going to be Kulfi? :) Mar 08 20:25:01 oh! Mar 08 20:25:02 nvm Mar 08 20:25:04 it IS creating it Mar 08 20:25:07 just... not showing it. Mar 08 20:25:47 solved Mar 08 20:25:51 b/c i'm a boss Mar 08 20:25:53 ;) Mar 08 20:26:13 Wavesonics, you didn't set configChanges="orientation" did you? Mar 08 20:26:21 nope Mar 08 20:26:34 oh this is cool Mar 08 20:26:41 canadiancow|work: damfino Mar 08 20:27:32 what did you do Mar 08 20:28:05 he licked the stamp Mar 08 20:28:09 and now everything is cosmic Mar 08 20:28:34 K is going to be Kebab Mar 08 20:28:48 so in a PreferenceActivity, i change the underlying data directly but the Preference items don't update, and still contain the old data until i destroy and recreate the PreferenceActivity. how do i force a Preference to update it's data after the changes? Mar 08 20:28:57 or Kopporn Mar 08 20:29:31 ok so... w\ layout buckets like this, and fragements, tablet UIs really are freaking easy to make. So why in Jobs name is there not a twitter app w\ a tablet UI?! Mar 08 20:29:34 ctate: Looks like I get to answer my own question on whether any back-end stuff could be renderscript compute. Mar 08 20:29:55 i think the android compat lib needs to be previewed like the adt; so i can plan on new things to add to my app once it finally goes stable. Mar 08 20:29:55 ctate: what is that from Mar 08 20:30:07 wabz: im pretty sure there are, the official one just sucks Mar 08 20:30:13 the official one sucks in phone form too Mar 08 20:30:22 eh its OK in phone form Mar 08 20:30:28 but seriously Mar 08 20:30:28 it used to be better imo Mar 08 20:30:37 1 developer like... 3 hours. bam, tablet UI Mar 08 20:31:10 layouts aren't the hard part Mar 08 20:32:16 lov: it's from the fecund crevasses of my brain Mar 08 20:32:28 oh Mar 08 20:32:39 I assumed it was from the fecund crevasses of a book Mar 08 20:32:42 and wasn't THAT a disturbing turn of phrase Mar 08 20:32:57 Gumboot: "back-end"? Mar 08 20:33:02 killring, so what is Mar 08 20:33:04 Err... framework? Mar 08 20:33:15 wavesonics: though, yeah... tablet apps aren't nearly as hard to do as people make them out to be Mar 08 20:33:49 Gumboot: oic. i don''t know, honestly. check out the ICS source? :) Mar 08 20:33:54 looks like i'm gonna have to extend EditTextPreference... Mar 08 20:34:13 anyone developing on Linux? Mar 08 20:34:23 wavesonics: the main thing I'm finding is that I want to do things in ways that go beyond what seems to be currently supported... see my popupwindow question a while back Mar 08 20:34:44 that's where my time is being eaten up re: tablet apps Mar 08 20:34:54 killring, ah ya ok, i'm just not getting into really using fragements so Mar 08 20:34:55 ctate: pm because I don't know if it's public. Mar 08 20:35:02 havent run into the bug bears yet Mar 08 20:35:05 ... so much pm... Mar 08 20:35:22 fragments are good thing... where they work :-) Mar 08 20:35:37 but at the VERY least they could throw some layout-xlarge XML in for the phone Activities just so they don't fill the whole damn screen Mar 08 20:36:15 agreed... lots of phone apps don't even do the minimum to make sure they don't look horrible on larger form factors Mar 08 20:36:46 killring for that purpose they must use emulators? Mar 08 20:36:53 the android team has done a pretty good job of providing ways of dealing with most of those (at least for the apps I've tried) Mar 08 20:37:10 i mean to test the apps on big screens Mar 08 20:37:53 n1tr0g3n: that might partly explain why some of them are so bad... I gave up on the emulator a long time ago Mar 08 20:38:13 killring you dont test apps on the emu? Mar 08 20:39:00 other than for checking out basic layout, no... it's a waste of time Mar 08 20:39:07 killring: theres x86 emu you can use.. Mar 08 20:39:09 N1tr0g3n: the emu is a standin if you don't have the hardware or appropriate configuration. The actual device is significantly faster and better. Mar 08 20:39:28 especially for large screens; the drawing is generally the big killer in emu performance Mar 08 20:39:34 lov of course real devices are better but what can I do if i dont have a Gnex? Mar 08 20:39:45 the emu is a stand-in if you don't have an ostrich Mar 08 20:39:50 iswydt Mar 08 20:40:01 N1tr0g3n: you have to use an emulator then if you don't have the api level you want to test on, unfortunately Mar 08 20:40:07 I've found that the emulator doesn't even provide terribly accurate emulation of the ui in 3.x (it's much better for 4.x though) Mar 08 20:40:26 killring: oh god, I can't imagine even using the emu for HC; that's an exercise in frustration and rage Mar 08 20:40:36 lots of artifacts and general weirdness Mar 08 20:40:40 the biggest problem is that the emulator can't currently do hw-accelerated drawing Mar 08 20:40:48 and as of HC all the primary UI relies on hw acceleration Mar 08 20:41:00 ctate: is that a limitation of QEMU? Mar 08 20:41:01 lov: tell me about it... after a couple of afternoons trying, I threw up my hands and waited until I could get a device Mar 08 20:41:06 yeah, that's fundamentally a qemu thing Mar 08 20:41:37 well then, it could be said that if we had more x86 images (besides just for gingerbread) then we could leverage other hypervisors like Workstation which can do HW acceleration Mar 08 20:41:39 well they demo'd a HW accelerated emu at IO last year Mar 08 20:41:48 it definitely wasnt done, but it seemed pretty good Mar 08 20:41:52 @ctate: well the other part of the problem is the whole emulating arm on x86. for many types of apps, that isn't useful Mar 08 20:41:55 When you extend LinearLayout do you need to override onMesaure and/or onLayout? Mar 08 20:42:34 on the other hand, you know you're executing the same code that will execute on the phone. that turns out to be quite a powerful guarantee. Mar 08 20:42:35 * killring hopes that goog will begin releasing native x86 images soon Mar 08 20:42:51 for what native x86 phones? :) Mar 08 20:42:57 killring: we do have one, for Gingerbrea Mar 08 20:43:09 ok, I have another fragement question. My fragment that I will be adding to the layout using a fragement transaction, relies on data passed to it via an Intent, how can I pass data to a fragement w\o the onCreate() intent? Mar 08 20:43:13 the other thing about the emulator is that it runs *the same binary* that runs on the device Mar 08 20:43:21 killring: there's 4.0 x86 image for a tablet Mar 08 20:43:23 that is also a valuable property Mar 08 20:43:40 using a host-native simulated image is nice for performance but has other issues Mar 08 20:43:54 @ctate: that's only of value for people doing ndk and/or arm assembly apps (i.e. mostly games I'd guess) Mar 08 20:43:57 it was built with a different compiler so you can't be guaranteed about bug identity between the two environments Mar 08 20:44:01 ctate: hasn't been much of a problem on ios Mar 08 20:44:04 i was doing: Bundle bundle = activity.getIntent().getExtras(); Mar 08 20:44:05 for pure java apps, it's completely useless Mar 08 20:44:11 guess i need a new method... Mar 08 20:44:16 wyvern`: iOS doesnt do the same thing that Android does Mar 08 20:44:19 Wavesonics: setArguments Mar 08 20:44:25 o Mar 08 20:44:28 wyvern`: on iOS they have a different issue; something that is totally usable in the simulator may be impossibly slow on device Mar 08 20:44:40 wyvern`: iOS has a Simulator, not an Emulator. Mar 08 20:44:44 sometimes people don't find this out until they publish :) Mar 08 20:44:46 yes. I know. That's what I'm saying. Mar 08 20:44:53 right, which is great up until the point where it's Not. Mar 08 20:44:54 and makes recording screencasts from the emulator (a far more useful feature to many devs) pretty much impossible due to the arm emu + lack of gpu support Mar 08 20:44:55 It has not been a source of bugs, at leats for me. Mar 08 20:45:05 Wavesonics: I usually have a static newInstance which takes all the arguments I need, packages them in a bundle, and calls setArguments.. Then returns the instance Mar 08 20:45:07 ctate: you know what would be nice? developement-oriented image that could be dropped on something like beagleboard, with the OS having all the extra hooks like OProfile etc. and a nice interface over ethernet o drive it Mar 08 20:45:17 once the emulator supports hardware acclerated drawing it will be much more at par with device performance Mar 08 20:45:30 at which point it'll be really preferable to a simulator, in my experience Mar 08 20:45:59 some crypto that my app does is vastly slower in the emu, and that's not ui-drawing bound. Mar 08 20:46:02 ctate: itl be really nice that if we can get to that point, then from there, make the jump to be able to emulate specific devices, since we see all the time that people optimize apps for devices Mar 08 20:46:07 I'll bet it won't. it's still going to be emulating a single core arm processor and will be slow as hell Mar 08 20:46:15 Ideal would be a simulator for early development, then an emulator for performance testing at the end Mar 08 20:46:27 killring: why not build an SMP kernel then? Mar 08 20:46:57 sure, it will be far better than what we have now, but it's foolish to hold emulation up as some kind of across the board advantage when it obviously isn't Mar 08 20:47:11 SimonVT, for the fragementtransaction version that makes sense, but in the case where the fragement is created via a setContentView( somelayout )... hmmm Mar 08 20:47:13 killring: but, emulation is an advantage over simulatoin Mar 08 20:47:27 drpenguin: ... for some kinds of apps Mar 08 20:47:42 So it turns out that setting a highlight on 'wtf' doesn't trigger all that often at all. I'm disappointed. Mar 08 20:47:48 killring: I would say for any! Emulation gets you much closer to an actual device than a simulator does Mar 08 20:47:59 doesn't qemu run multi-core on SMP hosts? Mar 08 20:48:00 Wavesonics: Activity onCreate should be called before Fragment onCreate.. So still possible to set arguments Mar 08 20:48:01 Gumboot: its called wtf for a reason Mar 08 20:48:02 Even a simulator is far better than the dross that the emulator is now. It's worse than a simulator, as its performance is so bad that it's not a decent representation of any hardware. Mar 08 20:48:10 ctate: it depends on the kernel Mar 08 20:48:11 drpenguin: that's a load of crap Mar 08 20:48:36 the simulator right now doesn't behave the way that any device i've used does, either in handling input or performance or anything. Mar 08 20:48:39 ctate: for example, I have some Ubuntu Qemu images that arent SMP even though my host is, you have to tell it what to load Mar 08 20:48:40 er, emulator. Mar 08 20:48:40 SimonVT, so don't use a layout to instantiate the fragement, instead manually instantiate it and use setargument Mar 08 20:48:44 I can tell you with absolute certainty that the ios simulator kicks the living shit out of the android emulator Mar 08 20:48:50 ctate: the emulator binary doesn't do SMP arm Mar 08 20:49:01 aha Mar 08 20:49:04 Wavesonics: You can setArguments whenever you want Mar 08 20:49:04 killring: because.. its not running iOS, the emulator is actually loading an Android image Mar 08 20:49:10 and sure, any simulator will kick the shit out of any emulator Mar 08 20:49:21 unless your simulator is shit Mar 08 20:49:27 it provides a far more faithful reproduction of how an app will look and feel (granted, it has a problem in the other direction: it's too fast... what a nice problem to have!) Mar 08 20:49:35 killring: now thats a load of bull Mar 08 20:49:40 killring: Agreed. Even the old J2ME Java phone simulators from 10 years ago were more use. The current Android emulator is unusable for me Mar 08 20:49:51 killring: indeed. Mar 08 20:49:53 what? that it's too fast? that's pretty well documented Mar 08 20:50:01 * DrPenguin thinks people really dont understand the difference between virtualization, emulation, and simulation.. Mar 08 20:50:13 * wyvern` thinks DrPenguin hasn't done much iOS dev Mar 08 20:50:22 I have done iOS development thanks Mar 08 20:50:38 emulator will always be more faithful but slower Mar 08 20:50:40 :shrug: okay. Well, I guess you don't like the simulator. Most people do. Mar 08 20:50:42 DrPenguin: I think most people here understand the difference - however there's not much point in the current emulator. Mar 08 20:50:57 than a simulator Mar 08 20:51:11 herriojr: that's never been in dispute. What we're talking about is the tradeoffs of performance, etc between emu/simu. Mar 08 20:51:15 I am perfectly fine with the emulator, it works for me, maybe because I know how to use it? I dont know Mar 08 20:51:24 SimonVT, http://pastebin.com/62NhSJv2 Mar 08 20:51:46 wouldn't the fragement already be created at the point where setArguments() is called? Mar 08 20:51:54 herrioj: lol... tell me wtf is 'faithful' about the android emulator. seriously, even the desktop behaves differently than on an actual device Mar 08 20:51:59 or would it's onCreate() not have been called yet? Mar 08 20:52:07 there were huge problems with the ios simulator Mar 08 20:52:11 iirc its onCreate will not have been called yet Mar 08 20:52:15 ipad apps were a mess Mar 08 20:52:21 when the ipad first came out Mar 08 20:52:22 SimonVT, ok cool Mar 08 20:52:28 DrPenguin: It's not about knowing how to use it - if it runs at 1/2 the speed of an old G1, even on a fast rig, it's next to useless in my opinion. Mar 08 20:52:28 because noone had a fucking clue how it would perform Mar 08 20:52:39 wyvern`: got ya Mar 08 20:52:58 SmashCat: it has everything to do with knowing how to use it, you have to understandthat Emulating Arm on x86 is NOT going to be a great experience Mar 08 20:52:59 mikedh: sure, the simulator approach requires modifications any time something significant (i.e. the form factor) changes Mar 08 20:53:04 mikedg: how is that a problem that emulation would have solved? Mar 08 20:53:10 its COMPLETELY different than virtualizing x86 on x86 Mar 08 20:53:27 Is using a DashboardLayout the recommended way to have evenly distributed Icons on your mainscreen/dashboard? i.e. copying this to your app and using it: http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/widget/DashboardLayout.java Mar 08 20:53:34 DrPenguin: Then why do it, for Java development at least? Mar 08 20:53:49 SmashCat: why do what? Mar 08 20:53:55 drpenguin: I'll take a virtualized android image over an emulated one any day of the week Mar 08 20:54:13 killring: Ok, there are x86 Images you can use.. like I said early on.. Mar 08 20:54:16 to me, that would be the best comprimise between the current android and ios approach Mar 08 20:54:21 drpenguin: for ics? Mar 08 20:54:28 uh, yeah? p_l mentioned that too Mar 08 20:54:34 So, real quick, would it be fair to say that all Android user-agent strings will have "Android [version-number]" in it? Mar 08 20:54:39 DrPenguin: Why emulate a different architecture, imposing an enormous performance hit, when a developer is writing an app that will run on a virtual machine? Mar 08 20:54:40 while we are on emus and tools and stuff, http://www.fiercedeveloper.com/story/intel-expands-graphics-performance-analyzers-android/2012-03-05 Mar 08 20:54:40 on and alertdialog.builder, how can I remove the negative button? Mar 08 20:54:47 i have the satellite am728 with android 2.2.1 and i need to update to android 2.3.4 or later.. what are the steps? Mar 08 20:54:52 sorry... I only saw gingerbread mentioned Mar 08 20:54:56 SmashCat: because you CANT virtualize Arm on x86 Mar 08 20:55:03 * killring scrolls back up Mar 08 20:55:10 DrPenguin: You're missing the point. Mar 08 20:55:10 when going across architectures, you have to emulate Mar 08 20:55:16 ninjai, don't specify a negative button Mar 08 20:55:27 thx pfefferz Mar 08 20:55:28 pfn Mar 08 20:55:30 ** Mar 08 20:55:41 and iOS does neither for its simulator Mar 08 20:56:01 so its a null case, it doesnt give you an accurate view of how the app will perform Mar 08 20:56:23 I want to say JIT, here, but apparently I'm not allowed to... Mar 08 20:56:31 DrPenguin: I'm a Java developer. My code will run on a virtual machine. So, why emulate ARM, just to run a Java app? For the developer there's no benefit. Mar 08 20:56:50 kakazza: thats one way to do it; i ultimately got rid of my dashboard because i tool the design advice of 'putting data forward' and eliminating navigation only activities to heart Mar 08 20:56:56 SmashCat: Because not everyone is doing straight Java? You need the Emulator for NDK stuff Mar 08 20:56:57 the WP7 emulator is pretty solid Mar 08 20:56:58 s/tool/took Mar 08 20:57:11 DBT. I should say DBT instead. Mar 08 20:57:12 DrPenguin: As I said, I'm speaking about Java. Mar 08 20:57:23 Is that really such a low-performance method? Mar 08 20:57:24 SmashCat: and lets go a step further, in the end, you CANT rely solely on simulation, emulation, or virtualization. You still need a physical device to test stuff on Mar 08 20:57:28 I'm using addView when I actually want to change to a new view. can someone point me to the argment I'm looking for? Mar 08 20:57:33 Ravenheart: its pretty amazing what MS did since they started wp7 from scratch in nov 2009 Mar 08 20:57:54 well, of course they reused some stuff like silverlight components Mar 08 20:58:06 g00s: you odnt think they didnt use anything from Win Mo 6.5? Mar 08 20:58:20 DrPenguin: nothing from win mo 6.5 was used, nothing Mar 08 20:58:37 DrPenguin: Of course, but the fact the emulator is so slow means that I need to have a lot of devices to develop with tends to put a lot of people off of worknig with Android. Or at least making it seem a poor experience when compared to development with iOS (and probably Windows) Mar 08 20:58:37 Hello everyone - i have a preferences question: Mar 08 20:58:37 they had to decide on that Mar 08 20:58:39 g00s: not 100% sure if I can accept that as gospel, but I wont refute it ^^; Mar 08 20:58:54 what is the diff between sp and dp Mar 08 20:58:56 SmashCat: ok, then for the 10th time, use the x86 emulation/virtualization then! Jesus Christ Mar 08 20:58:57 DrPenguin: its documented, you can find it Mar 08 20:59:07 g00s: ill have to look at that Mar 08 20:59:09 i'm trying to preset a radiobutton based on a boolean value kept in SharedPreferences Mar 08 20:59:24 but I keep getting a null exception error when i try to preset the radiobutton as checked Mar 08 20:59:37 can anyone help me out ? Mar 08 20:59:51 SmashCat: we dont just solely have Arm to use here.. theres been the opensource Android-x86 project for months, plus now, Right from google, we have an intel x86 Gingerbread image Mar 08 21:00:52 g00s: I see, but there's no way of doing what DashboardLayout.java does in just .xml? Mar 08 21:01:02 I want to run a PC emulator on my MIPS tablet, and on that I want to run the android emulator so that I can do development on the move. Mar 08 21:01:05 p_l: can you post a link for the x86 4.0 image you're referring to... I'm very interested in looking into it Mar 08 21:01:15 kakazza: sure, look at iosched 2010. nested linearlayouts Mar 08 21:01:44 anyone ? Mar 08 21:01:44 But for some reason, they switched to the .java version in 20111 Mar 08 21:01:53 DrPenguin: Hmm, I wasn't aware that was stable yet. I'll take a look at that project, ta. Mar 08 21:01:55 havoc74: stack tace Mar 08 21:02:02 s/tace/trace/ Mar 08 21:02:31 Dr.Penguin: I don't follow Mar 08 21:02:32 kakazza: is it that big of a deal ? use whatever you like. maybe their custom layout allows for better positioning in different scenarios Mar 08 21:02:50 havoc74: *face palm* the "stack trace" what outputs in logcat when you have an exception? Mar 08 21:02:59 how are there still programmers who dont knwo what a stack trace is.. Mar 08 21:03:21 stack trace or gtfo Mar 08 21:03:36 DrPenguin: a NullPointerException on radiobutton.setChecked(true); Mar 08 21:03:44 havoc74: thats not a stack trace Mar 08 21:04:21 ok havoc74, if you cant figure that out, then like.... Mar 08 21:04:31 there is only one candidate for a null pointer in that line Mar 08 21:04:35 i'll give you a hint Mar 08 21:04:37 it's not "true" Mar 08 21:04:40 g00s: okay.jpg Mar 08 21:04:56 DrPenguin: One day programming languages will transcend stacks and then you won't have to worry. Mar 08 21:05:12 Gumboot: uh, cant see how thats possible Mar 08 21:05:13 hehe Mar 08 21:05:26 one day we will refer to salad dressing as .romainguy Mar 08 21:05:52 Different question, the android dev guide makes it clear to only make use of android:configChanges as your last resort. But it's just so much more work to do it programmatically than adding that single line to the .xml. I do nothing fancy on orientation change, I just don't want it to restart and thought about using android:configChanges="keyboardHidden|orientation" anyway :/ Mar 08 21:05:52 Gumboot: if ANYTHING, a stack is a very important Data Structure Mar 08 21:06:00 you know, i came here looking for help, not sarcasm, I can't help it if I'm new, we all have to start somewhere. Thank you for making my experience here unenjoyable. I won't be returning. Mar 08 21:06:01 That doesn't mean you can't do without it. Mar 08 21:06:12 havoc74: cool story bro Mar 08 21:06:34 Gumboot: right.. but there are circumstances that a Stack is either needed or a good idea Mar 08 21:06:35 Using AlarmManager to trigger stuff to happen i.e 4 hours into the future. How can I make sure the event is caught/received by the application? Is there a chance of the phone to fall into some sort of sleep-mode and never handle the event? Mar 08 21:06:48 DrPenguin: I don't see what good ideas have got to do with this. Mar 08 21:06:57 We're talking about the future, man! Mar 08 21:07:10 xD that was fun. but you people are really too sarcastic some times :P Mar 08 21:07:27 I think I've written stackless software before. Mar 08 21:07:38 duo_: I wasnt being sarcastic, i was dead serious. If you dont know what a stack trace is, then you shouldnt be programming (atleast here) Mar 08 21:08:11 Gumboot: so have I, but I have also written array less software, queueless, etc, should we get rid of those data structures too? Mar 08 21:08:39 DrPenguin: I don't think we need to make an argument out of this. I wasn't serious. Mar 08 21:08:42 SimonVT, nope... onCreate() for the Fragment is called when setContent() is called :/ Mar 08 21:08:49 oh well Mar 08 21:08:51 Gumboot: oh its not an argument, just a discussion Mar 08 21:08:58 It's just that I can't emote. I injected too much botox into my keyboard. Mar 08 21:09:01 pfn: how can I configure your plugin to use an existing proguard.cfg file? Mar 08 21:09:08 * DrPenguin face palms. Mar 08 21:09:22 DrPenguin: You'll do yourself an injury one day. Mar 08 21:09:31 Gumboot: Nah, I have a hard head Mar 08 21:09:50 SimonVT, well that sux, guess I have to remove it from the layout and add it programatically in order to pass it arguments? Mar 08 21:10:09 DrPenguin: i understand. people coming here always wants the solution on the silver plate, and most of the time they don't even bother to search in the google :P Mar 08 21:10:13 See what other callbacks you can use Mar 08 21:10:23 Maybe onActivityCreated, or onViewCreated or some shit Mar 08 21:10:29 duo_: yeah, but this was even worse.. a stack trace is a simple, but very important progarmming concept Mar 08 21:10:37 sometimes, when it's quiet in this channel, you can just sit and watch a steady stream of unanswered questions. Mar 08 21:10:40 hhmmm Mar 08 21:10:41 It looks kind of tragic. Mar 08 21:10:55 killring: android-x86.org iirc Mar 08 21:11:14 mind you, it's quirky as hell sometimes, but I ran their 3.2 image in VMware :) Mar 08 21:12:54 Actually, it can be worth doing away with stack. It's a good way to make reliable software. Mar 08 21:13:04 And not just because you're not able to write complex software. Mar 08 21:13:21 Actually.... mostly because of that. Mar 08 21:14:01 What is wrong with the stack? Mar 08 21:14:13 I mean, we use the stack even at the assembly level.. Mar 08 21:14:28 Well, that's not mandatory. Mar 08 21:14:35 Except when you have interrupts. Mar 08 21:15:19 I had an 8051 compiler which would pre-map all of your automatic variables to constant addresses. I think it still used the stack for calls, though. Mar 08 21:15:31 But you could make the return addresses static as well. Mar 08 21:15:34 p_l: thanks... I was just poking around there. didn't realize they'd caught up... downloading :-) Mar 08 21:15:44 SimonVT, ah... so onActivityCreate() is a good place to do it in theory, but setArguments() throws an exception if you call it AFTER the fragment has been attached to a parent Mar 08 21:15:57 Out of luck then Mar 08 21:16:03 killring: I believe the 3.2 image was done from some little known 3.2 tablet Mar 08 21:16:03 ya :/ Mar 08 21:16:11 can't be any more quirky than the current emulator :-) Mar 08 21:16:35 I'm really only looking for 4.x since I've got a 3.x tablet Mar 08 21:16:43 killring: emulator supports screen rotation... linux framebuffer in vmware, not necessarily Mar 08 21:17:03 it's funny testing with head at 90° Mar 08 21:17:17 anyone here using usb drivers on windows 8? couldn't get them to install, windows complains about a 'hash for the file not present in the catalog file' Mar 08 21:17:19 especially when you're using ThinkPad's pointing device :D Mar 08 21:17:40 that's ok... I haven't always had success with rotation in the emulator either (the thing is seriously flakey no the machine/os combinations I've used) Mar 08 21:19:37 wyvern`, read my latest commit message Mar 08 21:19:39 16:03:46 < havoc74> DrPenguin: a NullPointerException on radiobutton.setChecked(true); Mar 08 21:19:42 16:04:31 < canadiancow|work> ok havoc74, if you cant figure that out, then like.... Mar 08 21:19:45 I lolled Mar 08 21:19:55 :) Mar 08 21:19:56 lov: lollersauruxrex Mar 08 21:20:05 velolciraptor Mar 08 21:20:24 Can't we all just get along? Mar 08 21:20:30 NOPE Mar 08 21:20:34 Oh. OK then. Mar 08 21:21:24 wyvern`, (should probably git pull and sbt publish-local again) Mar 08 21:21:37 wyvern`, https://github.com/pfn/android-sdk-plugin/commit/624d78263d16980dcaee5266c95f0df176a7119f Mar 08 21:21:59 * Gumboot contemplates going and cleaning up his filthy code. Mar 08 21:23:25 lov: those were great WD hard drives Mar 08 21:26:52 pfn: cool, trying it Mar 08 21:28:24 wyvern`, oh, you also need to set useProguard in Android := true Mar 08 21:28:37 since it's not enabled by default Mar 08 21:29:45 pfn: http://pastie.org/private/ag1xyyramwx5mhi3gpk4na Mar 08 21:30:52 wyvern`, oops, at the top, import AndroidKeys._ Mar 08 21:32:08 ok that's progress Mar 08 21:32:24 looks like it's using old proguard though (4.6). i have overridden that to be 4.7 in my android sdk install Mar 08 21:32:31 let's see if 4.6 works with my config... Mar 08 21:33:51 pfn: interesting; it's a bit faster than the ant build also Mar 08 21:33:58 wyvern`, it's considerably faster Mar 08 21:34:05 wyvern`, for magic, do sbt ~android:package Mar 08 21:35:04 if you do that, it'll automatically generate an apk everytime you touch a .xml or .java file Mar 08 21:35:10 neat Mar 08 21:35:29 you can also manage dependencies like in maven if you want Mar 08 21:35:46 it's not going to get snippy at me for not using scala? :) Mar 08 21:35:52 or did you add in a bit of 'scala user attitude' ;) Mar 08 21:36:08 I made it work seamlessly for java and scala projects Mar 08 21:36:10 scumbag canon: updates their shitty apps for lion, but links are busted Mar 08 21:36:25 so i have an activity showing (A), that calls startACtivity for B. on B, there is a button in the top right corner. if i mash the top right corner of A before B shows up, the button triggers once B has shown up Mar 08 21:37:21 wyvern`, the plugin shouldn't care whether you have java code or not Mar 08 21:38:04 canadiancow: interesting Mar 08 21:38:18 wyvern`, but if you did want to mix in scala code, it'll just work Mar 08 21:38:20 canadiancow|work: is this a big problem for you? Mar 08 21:38:22 yes Mar 08 21:38:23 well Mar 08 21:38:31 we also have a button in the same place on A Mar 08 21:38:38 canadiancow|work: does the intent have a timestamp? can you tell when B is completely up Mar 08 21:38:47 onresume has been called Mar 08 21:38:51 onwindowfocuschanged has been claled Mar 08 21:38:52 canadiancow|work: and rewrite your onclicks to ignore intents before the main display considers itself up? Mar 08 21:39:58 how do i know when it's "up"? Mar 08 21:40:25 you could disable the buttons in the layout and enable them in onResume or some handler Mar 08 21:40:33 onresume has already fired Mar 08 21:41:00 ah Mar 08 21:42:35 canadiancow|work: is the problem that A or B's button is being hit? Mar 08 21:42:49 B's is being hit before B is on screen Mar 08 21:42:51 if it's B's button being hit, my assumption is that the layout is already THERE, it's just the layout animation still going Mar 08 21:43:01 you can still fully see A Mar 08 21:43:11 so your solution is to figure out when B's animation finishes Mar 08 21:43:28 obvious lov is obvious :X Mar 08 21:43:33 lol Mar 08 21:46:29 getting hackier, is it possible to send another event to the activity from onResume that will cause the buttons to enable after other queued events have finished? (I don't know android event processing very well) Mar 08 21:47:14 or, you could just pretend the issue doesn't exist! :P Mar 08 21:51:03 wyvern`, so everything works now then? Mar 08 21:52:30 close enough. IDE integration doesn't work but I don't think that's your plugin's fault Mar 08 21:52:45 idea is supposed to have sbt integration Mar 08 21:52:51 dunno how it works, though Mar 08 21:53:08 it doesn't seem to know about android stuff Mar 08 21:53:09 wyvern`, I'll probably add in ddmlib support next when I get bored Mar 08 21:53:25 oh... well, you can alias certain actions probably Mar 08 21:53:28 standard things like 'compile' work, but android:release-debug doesn't Mar 08 21:53:50 indeed Mar 08 21:54:41 anyway, thanks for the plugin. :) Much simpler than the ant wrangling i would have to do Mar 08 21:54:49 sure thing Mar 08 21:55:44 god damn it. this is frustrating, seem to get tripped up at every turn here... WHY can't you replace a Fragement that was statically declared in a layout?! Mar 08 21:55:45 wyvern`, if your proguard config is pretty standard, you could work off of my template instead and use proguardOptions in Android rather than proguardConfig Mar 08 21:55:56 it's pretty far from standard Mar 08 21:56:01 wyvern`, (makes mixing in scala easier later) Mar 08 21:56:04 i'm using guice and roboguice so proguard flips out Mar 08 21:56:08 indeed Mar 08 21:56:14 damn reflection :p Mar 08 21:56:23 yeah Mar 08 21:56:50 wavesonics: you want a framelayout in the layout file Mar 08 21:57:09 wyvern`, let me know if you need aidl, I haven't implemented it in my plugin yet Mar 08 21:57:15 nope, no aidl Mar 08 21:57:18 no aidl or renderscript building yet Mar 08 21:57:30 I have it stubbed out, but it's not integrated yet Mar 08 21:57:39 since I have no examples of it working and can't be bothered yet Mar 08 21:57:56 probably can find sdk examples... again, when I get bored, heh Mar 08 21:58:05 wavesonics: fragments essentially become static ui componenets once instantiated. you want a container that will let you add/remove fragments Mar 08 21:58:35 killring, ok giving this a try Mar 08 21:58:38 thanks Mar 08 21:58:48 I should say static once placed on screen Mar 08 21:58:56 np Mar 08 22:09:43 what are people using for drawing game grahics these days? Still android canvas? or is there something fancy? Mar 08 22:10:10 gl Mar 08 22:10:16 seems like everyone's doing gl these days Mar 08 22:11:01 that's an l isn't it, not the number 1 Mar 08 22:11:04 L Mar 08 22:11:08 though as of android 4 canvas should be hw accelerated Mar 08 22:11:44 is there a super simple library for drawing images and text you guys know of? Mar 08 22:12:24 canvas is pretty simple Mar 08 22:12:24 I'd rather not write my own texturing and vertex related code (booooring) Mar 08 22:12:27 heheh Mar 08 22:12:44 thetrav: there are some graphic libs available for android, including a port of SDL iirc Mar 08 22:12:51 yeah, I've done a couple of things with the canvas... Mar 08 22:12:58 guess I'll stick with it then Mar 08 22:13:38 dragorn: it existed in 3.x as well Mar 08 22:22:35 hmm Mar 08 22:22:52 it appears that drawPicture is not supported by canvas' hardware accellaration Mar 08 22:23:44 ahh ok, there's a drawBitmap Mar 08 22:39:05 I have a View containing EditTexts, TextViews,... inside a ListView. How can I make _all_ of it clickable? At this point, I can only click the View itself where no EditText is shown. Pressing the EditText does nothing (obv). Mar 08 22:39:54 Is there a way to make the EditText bubble up the click event to the parent view? Mar 08 22:42:28 When clicking on the notification I created.. Why doesn't it disappear? :P Mar 08 22:43:56 * ctate | To clear the status bar notification when the user selects it from the notifications window, add the "FLAG_AUTO_CANCEL" flag to your Notification. Mar 08 22:43:57 "A U.S. Bankruptcy Court judge on Thursday declared that Apple must not move forward with its patent suit against Eastman Kodak" bwahahaha Mar 08 22:44:08 read-ez les docs. :) http://developer.android.com/guide/topics/ui/notifiers/notifications.html Mar 08 22:44:40 F*cking docs, how do they work? Mar 08 22:44:54 the offline docs still suck, no search Mar 08 22:46:57 g00s: fwiw there's the dgrep() shell func in the platform source's envsetup.sh Mar 08 22:47:29 sweet, thx Mar 08 22:47:39 ctate: thanks Mar 08 22:47:53 ctate: s/read-ez/lisez/ Mar 08 22:47:54 (see also sgrep, jgrep) Mar 08 22:48:05 canadiancow|work: that's less amusing. Mar 08 22:48:23 our bathrooms are broken :( Mar 08 22:48:26 and i have to go pee :( Mar 08 22:48:29 that's MUCH less amusing. Mar 08 22:48:40 ... for you. Mar 08 22:48:45 :(:(:(:( Mar 08 22:49:32 more so for us... Mar 08 22:49:36 ;) Mar 08 22:50:05 indeed Mar 08 22:50:27 i have never seen a cow use a stall before, why now ? Mar 08 22:50:49 just head for the nearest pasture :) Mar 08 22:52:07 apparently the pasture is broken. Mar 08 22:52:30 canadiancow|work: man up. just use a cup in your cubicle. Mar 08 22:52:31 gah, wtf. almost got my Fragments sorted out, but now getting this: IllegalStateException: The specified child already has a parent. You must call removeView() on the Mar 08 22:52:43 but it's brandy new. no way it has a parent Mar 08 22:52:44 neekers: im considering it Mar 08 22:52:48 :) Mar 08 22:53:25 this is why Starbucks exist, right? Mar 08 22:54:03 yuck, starbucks Mar 08 22:54:13 Anyone familiar with Roboguice? Mar 08 22:54:18 im not leaving until i go home Mar 08 22:54:27 hmm, speaking of starbucks Mar 08 22:54:32 almost time to brew some awesome coffee Mar 08 22:54:36 * pfn ponders what to drink today Mar 08 22:54:43 espresso, cappuccino or asian-style Mar 08 22:56:04 Hey pfn. Mar 08 22:56:20 What's Asian-style? Mar 08 22:56:33 Thanks again for the help yesterday. I realized after I got home that I wasn't able to see the nested runnables for some reason, even though you were explaining it perfectly. Mar 08 22:56:33 maybe a Thai coffee? Mar 08 22:56:47 which are absol-freaking-lutely delicious Mar 08 22:56:52 *abso Mar 08 22:56:53 Just didn't occur to me that I'd nest the UI runnable inside the bg runnable. Mar 08 22:57:07 What tools do y'all recommend for obfuscating APKs? Mar 08 22:57:14 out of the box, does an android phone have a terminal emulator? Mar 08 22:57:16 proguard Mar 08 22:57:22 out of the box, usually not. Mar 08 22:57:27 usually? Mar 08 22:57:33 ..... seriously? Mar 08 22:57:53 tell me what segment of consumers want this hard enough that it's worth confusing and upsetting the vast majority of consumers Mar 08 22:57:56 humor me? :P Mar 08 22:58:03 need to know definitely Mar 08 22:58:15 oh no I wasn't questioning that Mar 08 22:58:25 I was questioning the very fact of its existence or otherwise Mar 08 22:58:26 the carriers don't want you to know that a shell exists, let alone that you can do things with it Mar 08 22:58:31 that leads to ~rooting~ Mar 08 22:58:36 so yeah Mar 08 22:58:43 basically 0 phones come with a console app Mar 08 22:58:50 most people don't understand a terminal app Mar 08 22:58:52 why include it Mar 08 22:58:54 there are plenty of apps on market you can use Mar 08 22:58:59 but none are preloads Mar 08 22:59:16 the thing is, my application offers a terminal emulator, and I want to be able to have that as an upperhand Mar 08 22:59:26 .... ok? Mar 08 22:59:30 yea Mar 08 22:59:34 so thanks for the answer Mar 08 22:59:51 yw Mar 08 23:00:23 sicp: surprisingly, very few android devices come with gcc preloaded either ;-) Mar 08 23:00:49 the real kicker is that almost none will come with "cp" either Mar 08 23:00:53 hey :) Mar 08 23:00:55 anyone have any tips on increasing the speed at which big files with lots of lines are loaded? Also, is Sax particularity bad at loading xml files with a lot of data? Because I tried embedding some files into the XML instead of just adding lines that point to their directories, and that took over 3 minutes to load as opposed to the 15 seconds it took to load before Mar 08 23:01:13 win\ Mar 08 23:01:18 I won at Android Mar 08 23:01:23 game over man Mar 08 23:01:24 ... Mar 08 23:01:25 ...15 seconds still being too slow Mar 08 23:01:36 AlexRamallo: I think you answered your own question Mar 08 23:01:42 fun fact: xml is pretty fucking bloaty Mar 08 23:01:43 If by "bad" you mean "takes up massive amounts of memory and runs horribly slow", then yes. Mar 08 23:01:59 if you're using XML for any other reason than "I have no choice but to use xml for some reason", consider using something else Mar 08 23:02:03 but 15 seconds is too slow Mar 08 23:02:11 the xml resources that you put in /res end up getting compiled to bytecode, they don't live as xml Mar 08 23:02:14 * zakwilson once had to use an EC2 cc1.4xlarge to load a few hundred megs of data using sax. Mar 08 23:02:34 this is what I'm working on, lov, and before Nmap gets implemented, I'm wondering whether the application really does yet offer something indispensable or not Mar 08 23:02:34 EC2Fast2Furious Mar 08 23:02:56 Sicp: having a terminal emulator bundled in your app isn't going to make it killer Mar 08 23:03:00 The files I'm loading aren't XML files. They're OBJ files for a frame based animation system. The XML file is just what ties all the frames together Mar 08 23:03:00 No... wait. I tried it on that box and it ran out of memory. I remember now... I had to use the high-memory one. Mar 08 23:03:04 xml parsing is hella slow Mar 08 23:03:05 anyone who actually knows what the word "nmap" is probably has a terminal app already Mar 08 23:03:18 it won't hurt in that you'll know that the user has one Mar 08 23:03:19 that is also true, yea Mar 08 23:03:33 but if your target audience is engineers and the like, it's probably not worth bothering Mar 08 23:03:56 what is not worth bothering Mar 08 23:04:04 what takes a long time isn't the xml, its the plain text OBJ files :-( Mar 08 23:04:09 the whole app? Mar 08 23:04:17 can anyone help me? can't find the problem here: http://pastebin.com/pMNJTjrR (+ Code http://pastebin.com/jHzBUnhX) problem in line 11 but don't know why Mar 08 23:04:29 Sicp: having a terminal as part of the app Mar 08 23:04:52 AlexRamallo: well, embedding anything into an XML file will only make it slower, so don't bother doing that. Mar 08 23:05:02 AlexRamallo: again, do you HAVE to use JSON? Mar 08 23:05:06 is there some sort of external dependency? Mar 08 23:05:13 are you pulling data from a webservice that only offers XML? Mar 08 23:05:22 if the answer is "No, I could use another format" then PLEASE DO. Mar 08 23:06:10 yeah, parsing HTML is a lot more fun Mar 08 23:06:16 I'm not using skin I'm using xml, and yes I do because my entire engine was already designed to use xml and I don't have enough time to change it before my deadline....and again, the xml part isn't the problem. Mar 08 23:06:40 (yes, it is) Mar 08 23:07:04 how are you parsing? Are you using a pull parser, or a DOM type model? Mar 08 23:07:07 sicp: terminal apps have been done as have most other low level dev tools Mar 08 23:07:21 could anyone check out my lovely null-pointer? ;) Mar 08 23:07:39 it isn't just a terminal app, I just didn't link to it here Mar 08 23:07:55 Surfer2010: line 11 being myfield.RotationID = 6 - iLaeufer; ? Mar 08 23:08:02 My guess is that "myfield" is null. Mar 08 23:08:40 but what is it about your app that requires a terminal app? any requirement for one will reduce your potential user base by ~99% unless it's specifically a dev tool Mar 08 23:08:50 yes Mar 08 23:08:52 but if it is, again, most of those have already been done Mar 08 23:09:04 I disagree Mar 08 23:09:18 lov: line 11 = line 52 in my code Mar 08 23:09:23 ok, best of luck to you :-) Mar 08 23:09:27 without retorting, of course Mar 08 23:10:01 . o O ( oooh, deutsche namen :) ) Mar 08 23:11:06 lov: looks pretty easy and i can't see anything wrong about it Mar 08 23:12:20 grr the play store 3.4.7 update killed my shortcut T_T Mar 08 23:13:43 no idea? Mar 08 23:14:32 "Hey, lets use threads to make it faster!" "Okay!" ... Later: "Hey, it's crashing with concurrent exceptions all over the place!" "Let's wrap everything with syncrhonized!" "Okay!" ... Profit? Mar 08 23:14:41 pragma_: ha ha sob Mar 08 23:15:23 no pragma_ Mar 08 23:15:27 system.gc() <- Mar 08 23:15:30 it saved my life Mar 08 23:15:54 i cant hold it anymore Mar 08 23:15:55 gotta go home Mar 08 23:16:15 short commute i hope Mar 08 23:16:21 Surfer2010: why not attach a debugger? Mar 08 23:16:48 don't know how to :$ Mar 08 23:17:08 using vi? lol.. Mar 08 23:17:12 the button is right there on the top Mar 08 23:19:22 it says the debug is allready running Mar 08 23:19:30 how can i look into the results? Mar 08 23:21:48 you have to switch the perspective Mar 08 23:21:52 top right Mar 08 23:21:58 there's Java, DDMS, Debug, etc.... Mar 08 23:22:00 choose Debug Mar 08 23:23:11 ok i did Mar 08 23:23:12 Eclipse FTW Mar 08 23:23:25 and.....you should see it Mar 08 23:23:30 do you know how to work a debugger? Mar 08 23:23:44 work itttttttttttt Mar 08 23:23:50 mmm mmmmmmmmm! Mar 08 23:26:24 ok it stopped where the error occurs ... and pauses Mar 08 23:26:28 someone needs to cut back on the pr0s surfing... Mar 08 23:26:35 pr0n* Mar 08 23:26:36 now you need to step into it Mar 08 23:26:47 ok Mar 08 23:26:49 with the arrow and >___ thing Mar 08 23:28:34 but now none of those things i see say anything to me :D :D :D i can step into it but Mar 08 23:28:36 uhm Mar 08 23:28:58 throwable.class opens for example if i setp in Mar 08 23:30:33 does that help ? http://pastebin.com/XYR9zRq9 Mar 08 23:34:13 Sicp: could you please help me? Mar 08 23:34:48 oh Mar 08 23:35:08 what is the error exactly? Mar 08 23:35:13 what's happening back there/ Mar 08 23:35:42 back where? Mar 08 23:35:55 what's causing you to have to resort to a debugger? Mar 08 23:36:05 http://pastebin.com/pMNJTjrR errorlog Mar 08 23:36:37 code: http://pastebin.com/jHzBUnhX <--- line 11 = line 52 in my real code Mar 08 23:36:45 something's coming up empty Mar 08 23:36:48 go to that line Mar 08 23:36:51 and see what it is Mar 08 23:36:54 i did Mar 08 23:37:20 myfield.RotationID = 6 - iLaeufer; myfield i initialized on very top Mar 08 23:37:42 iLaeufer is even printed in the errorlog first 2 lines Mar 08 23:37:45 do you know Log.d? Mar 08 23:37:49 oh, ok Mar 08 23:38:09 so you keep subtracting that value (iLaeufer) from 6? Mar 08 23:38:16 yes Mar 08 23:38:40 and it breaks if iLaeufer > 6 Mar 08 23:39:10 try >= Mar 08 23:39:20 so myfield.RotationID should be between 0 and 5 Mar 08 23:39:28 that's not what > does Mar 08 23:39:33 > says that it can be 6 Mar 08 23:39:34 but not 7 Mar 08 23:41:04 if (x > 6) {break} ..... breaks in the case of x = 7 and bigger correct? Mar 08 23:41:11 yes Mar 08 23:41:23 that's what i wanna have Mar 08 23:41:38 I SAID CHANGE IT! Mar 08 23:41:42 no just kidding Mar 08 23:41:47 i DID ... ;) Mar 08 23:41:49 hehe Mar 08 23:41:52 nothing different :D :-P Mar 08 23:42:06 hope someone more knowledgeable will step in.. Mar 08 23:42:07 i'm trying everything to get this stupid null-pointer away Mar 08 23:42:15 let's see the code, maybe Mar 08 23:42:41 it's strange because it's not a "complicated" codeline Mar 08 23:42:49 im sure it ins't Mar 08 23:43:19 line 10 is (as you can see in the errorlog) reached and printed in the log Mar 08 23:43:42 line 12 isn't :D ... so must be line 11 Mar 08 23:45:04 show the code Mar 08 23:45:06 you never know Mar 08 23:45:20 what do you mean? the pastebin link again? Mar 08 23:45:24 or all? Mar 08 23:45:33 the actual source code Mar 08 23:46:16 http://pastebin.com/1tuv0ymm Mar 08 23:46:35 line 52 ... also gives me an error ... so it must be the myfield.RotationID Mar 08 23:47:13 Where are you instantiating myfield Mar 08 23:47:32 nowhere Mar 08 23:48:11 Surfer2010: for these types of errors, the stack dump tells you exactly what line is failing and for what reason Mar 08 23:48:13 quite an eye, SimonVT, regardless if this is the cause or not Mar 08 23:48:17 so "myfield.RotationID" is guaranteed to crash Mar 08 23:48:56 what about lines 38,39 (completely unrelated), should that be startActivityForResult()? Mar 08 23:48:57 because myfield is null by default Mar 08 23:49:04 why not startIntent()? Mar 08 23:49:33 it should be for result if you need to get a result back from that activity Mar 08 23:49:43 arghllll :( Mar 08 23:49:45 myfield = new Field(Database.getTeams()[0], Database.getTeams()[1]); Mar 08 23:49:57 i added this and yeah it works :.... sorry ... :( Mar 08 23:50:07 no worries Mar 08 23:50:08 and then you need to deal wiht what happens if the user hits Back from that activity :) Mar 08 23:50:14 i think SimonVT has the sharpest eye in the channel when looking at people's code... Mar 08 23:50:21 yes, ctate ..that's what I'm suffering from; leaks Mar 08 23:50:24 :F Mar 08 23:50:27 :) Mar 08 23:50:52 I mean it has little to no significance on the runtime, but it does error with Leak when I go back Mar 08 23:50:56 Surfer2010: by the way, your Database.getTeams() functions seem very inefficient Mar 08 23:51:13 Surfer2010: if it's backed by an SQLite DB Mar 08 23:51:23 what do you mean herriojr Mar 08 23:51:27 no not a db Mar 08 23:51:34 Surfer2010: ok, scratch that Mar 08 23:51:38 there's no DB there Mar 08 23:51:58 my assumption is he was getting a cursor and copying to an array Mar 08 23:52:00 the db is in a different class nothing to do with field & such Mar 08 23:52:23 but for sure there is a lot of code waiting to be optimized ;) if you want herriojr :D :-P Mar 08 23:52:26 Im certain that with me it's the means of starting the acitivity is what's causing it to leak when backing up Mar 08 23:52:45 just kidding ;) (well there is but for now i'm happy if it runs) Mar 08 23:53:45 no but that brings me to another question .... i so far have 1 table ... which is a list of people with statistics in it for each person Mar 08 23:54:06 but now i wanna change that so i can have stats for each person each day ... Mar 08 23:54:44 i would have thought about a 3dim array ... but using SQLite ... i make 1 table for each person? Mar 08 23:54:53 and a extra table just all the persons in it? Mar 08 23:55:25 excuse me 3 dimensional array? Mar 08 23:57:11 in C you would use a 3-dim array Mar 08 23:57:19 but what about the question? Mar 08 23:57:38 I do not know Mar 08 23:58:26 herriojr Mar 08 23:58:39 yes? Mar 09 00:01:29 i got one SQLite table ... for people and stats each person has all in one Mar 09 00:02:12 now i wanna keep track of each persons stats per day ... so i was wondering if i now change it to having one table per each person and one extra for a list of people? Mar 09 00:02:21 or is there a "better" way for that Mar 09 00:08:47 no answer herriojr Mar 09 00:08:49 ? Mar 09 00:09:50 apparently not, Surfer2010 Mar 09 00:09:53 Surfer2010: sorry Mar 09 00:10:04 I actually have work things to do so I miss some things :P Mar 09 00:10:14 ok no prob :) Mar 09 00:10:20 Surfer2010: sorry, I need to stop my brain screaming "IT IS FULL of FUUUUUUCK" at that design Mar 09 00:10:29 full of fuck Mar 09 00:10:32 now that's creative Mar 09 00:11:01 what design are you talking about p_l ? Mar 09 00:11:06 Surfer2010: have you learned about 1 to N and N to N for databases and the like? Mar 09 00:11:12 my normalization ideas feel revolted at keeping single table for each person Mar 09 00:11:14 the way you have crammed everything into one table Mar 09 00:11:45 and..that.. Mar 09 00:11:46 lol Mar 09 00:12:08 p_l: you'd have "which person" as just a field in the record? Mar 09 00:12:16 * ctate is not DB-savvy. Mar 09 00:12:48 ctate: a key field which would contain reference to primary key in "people" table Mar 09 00:13:08 but isn't that the use of SQL to link tables each containing a specific part of all the data given? Mar 09 00:13:28 ALL persons have 1 table Mar 09 00:13:31 Surfer2010: sure, but there are good and bad ways to structure your database Mar 09 00:13:42 ALL stats have 1 table Mar 09 00:13:52 where good vs bad usually means fast vs slow, and sometimes small vs big Mar 09 00:13:55 each record of stat belongs to each record of person Mar 09 00:14:17 ok Mar 09 00:14:30 and how do i get the difference in "day" Mar 09 00:14:44 ctate: yes, but in this case, RDBMS based on certain ideas is used Mar 09 00:14:47 the difference between what? Mar 09 00:14:51 ctate: there are other database approaches Mar 09 00:15:01 same stats recorded for the same person Day1 day day 3 .... Mar 09 00:15:12 p_l: the same good vs bad axes tend to apply regardless :) Mar 09 00:15:33 you can have a Date field in the stats table Mar 09 00:15:39 ctate: there are times where you want to duplicate data Mar 09 00:15:45 and not for reliability Mar 09 00:15:48 p_l: i can believe that Mar 09 00:16:09 facebook's internal photo fs is an example Mar 09 00:16:19 I think this is the most actual Android-related talk I've seen in a while on this channel :P j/k Mar 09 00:16:22 you'd select from Stats the person who scored more than 1000 on 23 december Mar 09 00:16:49 person would be primary in Persons and foreign in Stats Mar 09 00:17:10 well, person ID Mar 09 00:17:18 so you'd have to grab it from Person as well Mar 09 00:17:26 hm not sure if we'Re talking about the same thing .... Mar 09 00:17:37 your game, someone scores, you save it Mar 09 00:17:38 right? Mar 09 00:17:47 yes Mar 09 00:17:50 then that's it Mar 09 00:17:57 and he scores 20 good, 3 bad and 15 neutral Mar 09 00:18:01 and the next day again Mar 09 00:18:20 you have to have them in the table in a way that you can understand Mar 09 00:18:29 and i wanna be able to get an all over (just the sum) and of each day seperate Mar 09 00:18:39 ah, easy then Mar 09 00:18:42 Surfer2010: you can do that with a query Mar 09 00:18:47 1 query Mar 09 00:19:17 20 minutes of reading after a good setup should do it Mar 09 00:19:22 yes 1 query ... but how do i store 20 stats each day seperated by day and person? Mar 09 00:19:25 just setup the tables correctly Mar 09 00:19:40 i know about querry and cursor and worked with that allready Mar 09 00:19:45 by setting up the tables correctly Mar 09 00:19:53 but the table-setup. .... i'm trying to find a good one :D Mar 09 00:20:00 that's the only hurdle Mar 09 00:20:10 Surfer2010: what defines a person in your database? Mar 09 00:20:10 that's why i'm asking ... so your saying 2 tables (person + stats) Mar 09 00:20:29 !gonnaSetupTablesForYou Mar 09 00:20:30 name, nickname, onField, Position Mar 09 00:20:53 and ID (autoincrem) Mar 09 00:21:00 ok good Mar 09 00:21:17 Surfer2010: now for each of those properties, how many are there per person? Mar 09 00:21:40 Surfer2010: basically, I'm just trying to get you to think through this Mar 09 00:21:43 just one per person :) Mar 09 00:21:55 so all in the "person-table" Mar 09 00:21:57 ok, now for stats, how many stats does a person have? Mar 09 00:22:15 per day 1 "set" = 20 integers Mar 09 00:22:28 and a not known number of days Mar 09 00:22:32 no, don't think about it in terms of integers Mar 09 00:22:45 20 different pieces of data Mar 09 00:22:57 don't worry about representation until later Mar 09 00:22:58 "one" stat ... then Mar 09 00:23:17 Surfer2010: define what a stat is for me Mar 09 00:24:02 Attack (Total, Good, Neutral, Bad) ... and now 5 different categories of this .... or what do you mean? Mar 09 00:24:24 the total is obsolete i know but i wanna have it there for now Mar 09 00:25:19 Surfer2010: so, where does the date fit in? Mar 09 00:25:30 Surfer2010: and you didn't really define what a stat is Mar 09 00:26:16 language barrier :D .... a stat is ...... has the properties .... Who, When, what ? Mar 09 00:26:54 so a Player ... on Date xxx ... got .... those yyyy stats ... is that what you mean? Mar 09 00:27:09 ok, so my understanding is you have a single person which can have N number of stats associated with that person Mar 09 00:27:26 correct? Mar 09 00:27:28 yes Mar 09 00:27:40 so it's a 1 to N relationship Mar 09 00:28:02 n = number of days ... basically ?! Mar 09 00:28:11 N means number of stats Mar 09 00:28:21 time is just a property of a stat Mar 09 00:28:25 ok Mar 09 00:28:29 okok yes Mar 09 00:29:14 so, you have your table of people (id, name, nickname, onfield, position) Mar 09 00:29:50 and a table of stats (id, id_of_person, date, rest_of_data) Mar 09 00:29:59 yes Mar 09 00:30:13 so you limit the data you want returned by the query Mar 09 00:30:24 and now by getting the stats of PersonA .... i use a query to "collect" all the stats of PersonA Mar 09 00:30:39 correct Mar 09 00:30:45 and that's a 1 to N relationship Mar 09 00:31:00 and the stats a day i would "search" for .... day xxx Mar 09 00:31:11 Surfer2010: correct Mar 09 00:31:29 ahhhh okay okay :D makes MUCH more sense now ... also your comment/question about 1 to N and N to N relationship :D Mar 09 00:31:48 yeah, N to N is a bit trickier because you need an intermediate table Mar 09 00:31:57 but in your case, it isn't necessary Mar 09 00:32:15 okay and now back to android ... do i put those 2 tables in ONE class ... or in 2 speperate? Mar 09 00:32:37 Surfer2010: what do you mean by that? Mar 09 00:33:09 right now i have one class creating one DB incl. 1 table and all the methods i need for it Mar 09 00:33:27 Surfer2010: it sounds like you're copying cursors Mar 09 00:33:41 which means you're taking 2 passes through the data set Mar 09 00:33:50 one to copy, and one to display Mar 09 00:34:06 uhm ? Mar 09 00:34:43 i have a class "TeamEdit" .... where i can edit and add players ... and one class holding the DB + methods Mar 09 00:34:57 Surfer2010: ok Mar 09 00:35:00 or am i missunderstanding you ? Mar 09 00:35:09 Surfer2010: I think I'm misunderstanding you Mar 09 00:35:14 lol ok Mar 09 00:35:46 now i create the second table in that same DB class i allready have correct? because only this way i can access both with the "same" cursor Mar 09 00:37:01 they will need to exist in the same database, correct Mar 09 00:37:21 Surfer2010: also, my suggestion is to use a ContentProvider to wrap access to the DB Mar 09 00:37:38 * shipit agrees with herriojr Mar 09 00:38:13 uhmmm :D :D :D :D .... i agree with that?! lol ... just kidding i don't know what you mean Mar 09 00:38:25 * g00s can't wait for the cutlet factory to come online http://www.gizmag.com/vegetarian-cutlet-factory/21763/ Mar 09 00:38:48 Surfer2010: http://developer.android.com/guide/topics/providers/content-providers.html Mar 09 00:39:37 g00s, are you vegetarian? Mar 09 00:39:50 * pfn wants to try out some of that gardein stuff Mar 09 00:40:13 herriojr: this is my DB so far needs to be changed now of course :) http://pastebin.com/6JPvTWhg Mar 09 00:40:13 I really can't get into "vegetarian meat" Mar 09 00:40:14 pfn: not really, but - meat here in the US has too many antibiotics ; there are plenty of reason not to eat meat w/o getting into a debate Mar 09 00:40:27 i eat turkey, but turkey is loaded with antiobiotics Mar 09 00:41:18 herriojr: i don't think i use a content-provider do i ? Mar 09 00:41:30 * p_l might have thought about not eating meat, but the non-meat stuff isn't... appealing to me (or involves a lot of stuff I do *not* eat) Mar 09 00:41:34 "It is capable of creating "one endless piece of meat" that is about one centimeter (0.39-inch) thick, and that can be formed into shapes such as morsels, slices, or entire cutlets. It can put out 60 to 70 kilograms (132-154 lbs) of "meat" per hour, or 300 to 500 kilograms (661-1,102 lbs) a day." <--- but can it make bacon ? Mar 09 00:41:43 interesting, but I'm not interested in not eating meat Mar 09 00:42:43 Surfer2010: no you don't Mar 09 00:43:16 Surfer2010: what do you use getData() for? Mar 09 00:44:05 uhmmm "printing" all the data i got in a scrowlable TextView ;) Mar 09 00:44:24 Surfer2010: you're mixing the data and display layer then Mar 09 00:44:47 yeah, use a ContentProvider, it will force you into a better model Mar 09 00:44:53 ? the getData is called by "TeamEdit" Mar 09 00:45:55 no no no nooooo :D .... i'm almost at a point where i can actually use my app after three really really hard weeks now of learning everything (still not enough i know) Mar 09 00:46:14 well, think about it for your next revision Mar 09 00:46:21 with is fluidinfo Mar 09 00:46:24 *wth Mar 09 00:46:40 anyways, good luck, I need to run Mar 09 00:47:02 i will do that after i learned what a Cont.Prov actually is and does ... because what is written in that link doesn't make a lot of sense to me :D :D Mar 09 00:47:04 yes , with content providers - its best to wish good luck and then *run* Mar 09 00:47:12 :) Mar 09 00:47:15 thanks a lot and thanks for the patience herriojr Mar 09 00:47:31 loool g00s why's that ? :D Mar 09 00:47:42 Surfer2010: not a problem Mar 09 00:47:51 they are cool in come ways but a pain in others :) Mar 09 00:48:23 g00s: actually, I'd stick around to hear in what ways you think they're bad (truly out of interest) Mar 09 00:48:54 people tend to use them when they don't need to, as well. Mar 09 00:49:14 herriojr: without getting in to much debate right now, i think this person hit the nail on the head Mar 09 00:49:16 http://groups.google.com/group/android-developers/browse_thread/thread/0d92afb667e5a4b7/ef3a6edb843c65dc?pli=1 Mar 09 00:49:16 not accessing your data from multiple *processes*? then why the hell are you writing a ContentProvider? Mar 09 00:49:19 this channel would be quiete if i would stop asking stupid noob questions :D : D Mar 09 00:49:26 the primary use-case of content-providers is using it across applications, yes? Mar 09 00:49:31 s/primary/ONLY/ Mar 09 00:49:46 but people persist in thinking that if they're using databases, they also need to use content providers Mar 09 00:49:53 even across processes, you don't necessarily need a CP if you have a good locking model on your data (assuming single app with remote processes) Mar 09 00:50:10 ctate: well, it sometimes makes sense (multiple processes in single app) Mar 09 00:50:32 this is why i said "processes" rather than "apps" in my microrant. Mar 09 00:50:37 true Mar 09 00:50:46 right, that's why I wonder why the qualification on processes Mar 09 00:50:48 rather than apps Mar 09 00:50:52 a lot of the helpers like Loaders use providers, so … if you aren't going to use a provider you do have to reinvent a a few things. there really should be a plain vanilla loader that doesn't take a URI. Mar 09 00:51:07 or asyncqueryhandler, or whatever Mar 09 00:51:07 since it's the same app, it can just access the same data... unless the locking constructs are too weak Mar 09 00:51:08 * p_l personally been considering adding leveldb on android Mar 09 00:51:32 p_l: how stable is that ? i could not figure out iof the JNI bindings were good Mar 09 00:51:43 pfn: well, if you don't know that the apps are hosted in the same process then you need to assume that they aren't, and use content providers to mediate access to the common data etc. Mar 09 00:51:54 g00s: no idea about JNI bindings Mar 09 00:52:21 the lib itself seems to be working okay, but there might be crazy issues on android related to lower-level stuff Mar 09 00:52:35 but if you're doing a system of servers & activities & so on that is co-hosted in one process, then YES you can just write your own leaner shared-access mechanism, quite fruitfully. Mar 09 00:52:36 even if they were designed for interprocess com, they're designed in such a way to be very useful within your own application Mar 09 00:52:49 i agree with dh, and use a hybrid model of CP + raw db access in my app, even though i do not share data across the process boundary atm Mar 09 00:52:58 i'm lost :D :D :D Mar 09 00:53:04 Surfer2010: just let it wash over you :) Mar 09 00:53:10 just don't use a CP unless you're sharing the data across processes Mar 09 00:53:12 but keep going ;) Mar 09 00:54:00 ctate: I think the sad truth regarding Android vs. iOS is that people just don't get Android Mar 09 00:54:31 well, and iOS's software environment is considerably simpler in certain ways Mar 09 00:54:58 hmmm i got another "problem" ... that's something i didn't quite "get" yet ... Mar 09 00:55:07 though it's been growing some complexity as they've been developing features like background tasks Mar 09 00:55:11 ctate: like being essentially a simplified OSX app :P Mar 09 00:55:44 how can i access to the same object over different classes? Mar 09 00:56:57 * g00s wonders if there is a generic CursorLoader that does not use providers Mar 09 00:57:48 how can you copy logcat stuff from eclipse? Mar 09 00:59:11 select it and copy ? :\ Mar 09 00:59:28 cant select or right click Mar 09 00:59:47 idk, i know how with adb, but it'd be nice if you could do it from eclipse Mar 09 01:00:04 cstat pfn ? how can i edit the very same object from different classes? Mar 09 01:00:06 you talking about copying stuff from a terminal ? Mar 09 01:00:12 anyways, goodnight Mar 09 01:00:30 Surfer2010: ehhh Mar 09 01:00:41 i know very very basic Mar 09 01:00:43 Surfer2010: I think you need a better grounding in Java Mar 09 01:00:55 i know i do ... right now working on it ;) Mar 09 01:01:00 I suspect this is your first time programming something in Java or Java-like language? Mar 09 01:01:37 yes it is and i've gotten pretty far if you wanna see :-P ;) and yes i still need a lot more basics :D Mar 09 01:01:58 i'm learning by doing ... and asking anoying easy questions :$ Mar 09 01:02:09 shame on me Mar 09 01:02:24 Surfer2010: first of all, you can return the data object from function to the caller Mar 09 01:02:31 which can be in different class Mar 09 01:02:45 no calling in this case Mar 09 01:03:04 and the best is to separate all the data-handling into separate classes, which would be called by classes implementing activities Mar 09 01:03:22 i need to access/edit a propertiy of the class calld field ... in 2 different classes Mar 09 01:03:59 uhh Mar 09 01:04:05 how can I fix "java.lang.IllegalStateException: DialogFragment can not be attached to a container view" on a DialogFragment that's being used as a normal fragment in the compat lib without screwing with the source? Mar 09 01:04:38 and i got some kind of work around by this http://pastebin.com/9Lg1y3nr Mar 09 01:04:40 does anyone know of a *goood* tutorial we can recommend to Surfer2010? I can't thanks to the rather weird way I learnt java, so it's hard for me to explain it Mar 09 01:05:00 ouch Mar 09 01:05:03 Surfer2010, read the book thinking in java Mar 09 01:05:24 doesn't cover generics, but that's not too hard to figure out Mar 09 01:05:54 http://www.mindview.net/Books/TIJ/ <--- free electronic version of it Mar 09 01:06:04 *legal* Mar 09 01:06:08 tutorials are pretty much the worst way to learn languages, imo Mar 09 01:06:12 they just encourage cargo cults Mar 09 01:06:28 pfn: well, by tutorial I meant "something to guide and teach" Mar 09 01:06:55 and programming cargo cults managed to get even into CS depts Mar 09 01:07:35 cs depts don't teach programming... Mar 09 01:08:08 pfn: I'm coalescing all of institutional teaching into that name right now Mar 09 01:08:24 i watched the new boston guy for a little Mar 09 01:08:36 * p_l doesn't want to enter a religious dog-fight about what a CS dept should be Mar 09 01:09:00 * pfn didn't finish school Mar 09 01:09:01 * pfn shrugs Mar 09 01:09:05 3 weeks ago i knew nothing about java and android ... and i think i've gotten pretty far now Mar 09 01:09:24 Surfer2010: definitely good progress Mar 09 01:09:40 Surfer2010: but right now, to go further you need something like the TiJ book Mar 09 01:09:54 lol but i would only show you the app ... not the source code ;) :D ... that must be a mess in "your" eyes :D Mar 09 01:10:18 Surfer2010: nah. I am not crazy RMS follower Mar 09 01:10:50 you don't have to show your source, but there's a few considerations to be made here Mar 09 01:10:54 It's fine if you want to keep the source code secret, though anyone you want to do deeper help is also free to requst money ;) Mar 09 01:10:56 1, we can't help you if you don't show it Mar 09 01:11:16 2, given your experience, the source is gonna be ... not valuable to most people Mar 09 01:11:22 i know i know ... i ment .... Mar 09 01:11:42 you looking at/thru my code would be a pain in the ass :D (for you) :D Mar 09 01:11:52 indeed Mar 09 01:11:54 but if you want to ... you for sure can ... ;) Mar 09 01:11:58 learn to condense issues into small problems Mar 09 01:12:09 write the minimum amount of code necessary to reproduce an issue Mar 09 01:12:13 * p_l meanwhile got to deal with a whole different can of "bad mojo" called bridging PHP to an advanced SOA-like IPC bus Mar 09 01:12:30 that doesn't sound very difficult Mar 09 01:12:34 just use stomp/ampq to talk to the bus Mar 09 01:12:35 it's not like i'm coding a very very smart app it's jsut keeping track of some sport-statistics :D Mar 09 01:12:35 problem solved Mar 09 01:13:12 pfn: the issue is that the PHP code is supposed to be the bridge Mar 09 01:13:22 saywhat Mar 09 01:13:55 JS <- HTTP -> PHP (originally Ruby w/ Sinatra or Rails) <- 0MQ and Protocol Buffers -> rest of the system Mar 09 01:14:16 why the move away from sinatra in this case? Mar 09 01:14:18 but it's a "software engineering" coursework, and some people suddenly woke up and started complaining Mar 09 01:14:24 ruby is undoubtedly more enjoyable to work with Mar 09 01:14:31 pfn: whining about "but we already know PHP and mysql" Mar 09 01:14:39 fuckers... Mar 09 01:15:43 despite the fact that a) decisions were taken 2 months ago and no one complained b) 2~3 weeks earlier I managed to provide all the software tools that weren't easy to get (proprietary stuff) and asked everyone to play around with the stuff to learn it Mar 09 01:16:07 wonderful Mar 09 01:16:36 pfn: it's still less annoying than my "WTF?" face after hearing suddenly the complaint about database not being SQL Mar 09 01:16:48 and I'm not talking about noSQL craze Mar 09 01:17:11 what kinda db? Mar 09 01:17:47 AllegroGraph, a RDF datastore (with indexing, querying, stored procedures and all that - including geospatial indexes) Mar 09 01:18:40 I also got from the same vendor Allegro Common Lisp so it would be easier to develop the DB-related stuff Mar 09 01:19:12 had to call across 8 timezones to get shit done Mar 09 01:19:21 (from UK to California) Mar 09 01:19:40 aren't you interviewing for a new job soon or something Mar 09 01:20:15 pfn: I am, unfortunately the coursework still needs to be finished (I'm still a student...) Mar 09 01:20:28 oh Mar 09 01:20:37 well, sounds like you only got a few months left Mar 09 01:22:15 unfortunately, I happen to apparently be the most experienced and well-read guy in a team, with two guys who are reasonable and actually do shit (One apparently was an army sergeant, which I guess helps with that ;)), one who got probably enough programming chops but not a bit *nix, and two who make me go "WTF" Mar 09 01:22:47 is this a school team or you're actually working at some kinda internship? Mar 09 01:22:59 pfn: school team Mar 09 01:23:04 I see Mar 09 01:23:05 and it's too late to call quits Mar 09 01:23:13 not to mention I don't like quitting Mar 09 01:23:17 senior project or something? Mar 09 01:23:21 pfn: kind of Mar 09 01:23:46 Hey all! Mar 09 01:23:47 for me, senior project is in year 4, this is year 3, and it's the major, compulsory software engineering course Mar 09 01:24:04 and due to small amount of AI-track students, there's only one AI team Mar 09 01:24:07 so you have a whole 'nother year to go Mar 09 01:24:14 booo Mar 09 01:24:14 (with people from normal course as well) Mar 09 01:24:36 pfn: before 4th year, I've got a full year for industrial placement (has to be at least 9 months long) Mar 09 01:24:47 (at one company) Mar 09 01:25:30 so I'm hoping my interviews go well and I get the job Mar 09 01:25:31 I need help understanding how to put a listview under a tabhost... Mar 09 01:25:34 here is xml http://pastebin.com/F72HrPqb Mar 09 01:25:41 so I can repay this ugly £650 debt Mar 09 01:25:56 and here is the class http://pastebin.com/D5D6xe2n Mar 09 01:26:18 what is happening is the listview that is called by intent is getting laid over the tabhost Mar 09 01:26:43 the listview needs to be added into the tabcontentprovider Mar 09 01:26:53 how do it put it (new activities called by the tabhost) into a nice little container Mar 09 01:27:10 that would be in my listview class ya? Mar 09 01:27:34 what's R.id.tab1-3? Mar 09 01:27:44 pfn: i'm trying to get a library project building through your plugin. http://pastie.org/private/l3umamx0rdbp5u8a4wn4a Mar 09 01:27:44 sounds like it should be added ok Mar 09 01:27:46 * pfn shrugs Mar 09 01:27:52 based on your gist Mar 09 01:27:57 ah, you looked at that Mar 09 01:27:58 awesome Mar 09 01:28:31 those are tabs i created. they work.. well im testing only one so fat and its one with a listview which overlaps the tabhost Mar 09 01:28:51 wyvern`, the object medigrambuild goes into project/build.scala Mar 09 01:30:26 wyvern`, the .sbt can only be used for single statements; stuff like that needs to go into a .scala file, in this case project/whatever.scala Mar 09 01:30:31 I see. Mar 09 01:31:05 I've successfully recycled a surfaceview from camera preview to mediarecorder capture and I'm trying to recyle it again into a mediaPlayer. When I try to connect my mediaPlayer object to the surface view, it dies with the error: [SurfaceView] connect: already connected Any idea on how I can "disconnect" from a surface view or recycle it into a player successfully? Mar 09 01:32:24 wyvern`, I hope that configuration works, I haven't tried anything like that yet (main project pointing to a library project in a subtree) Mar 09 01:32:37 I created mine as root-dir / { android-project, library-project } Mar 09 01:32:46 that's actually what i have Mar 09 01:32:47 and root-dir is just an empty container Mar 09 01:33:00 rather, root-dir defines the project defns for android-project and library-project Mar 09 01:33:03 i had set up the sbt stuff inside 'android-project' (in your case) Mar 09 01:33:09 i'm trying setting it up in root now Mar 09 01:33:36 basically put my gist in root-dir/project/build.scala; and do the addSbtPlugin(...) in root-dir/project/plugins.sbt Mar 09 01:33:48 that won't be necessary in either of the sub-projects Mar 09 01:33:57 where does build.sbt live then Mar 09 01:34:05 keep 1 build.sbt for android-project Mar 09 01:34:09 and 1 build.sbt for library-project Mar 09 01:34:34 root-dir/library-project/build.sbt (contents: name := ...; seq(androidBuildSettings:_*)) Mar 09 01:34:41 and don't change android-project's Mar 09 01:35:15 my example gist makes it so that you can do sbt package from the root-dir project to create a debug.apk Mar 09 01:35:28 and again, you can do sbt ~package to have it autobuild on source-changes Mar 09 01:35:33 (in either the library project or main project) Mar 09 01:36:02 do i need a build.sbt in root with import AndroidKeys._ Mar 09 01:36:08 no Mar 09 01:36:15 it's saying: Not a valid key: android (similar: aidl) android:package-debug Mar 09 01:36:28 in project/build.scala you'll need to import Mar 09 01:36:41 yeah i have that Mar 09 01:36:46 oh, sbt package Mar 09 01:36:48 and sbt package-debug Mar 09 01:37:04 I took off the android: prefix in the root project because I was too lazy to type it all the time Mar 09 01:37:09 ah Mar 09 01:37:40 if you wanted to type android:package, you could change packageT in Compile to packageT in Android Mar 09 01:37:41 okay well it doesn't fail now at least but it only builds the library package Mar 09 01:37:50 and it dexes it, which is unneeded Mar 09 01:38:16 do you have android.library=true Mar 09 01:38:20 set in any of the.properties files? Mar 09 01:38:43 pastebin your build.scala and the sbt output Mar 09 01:38:49 thanks guys (pfn, p_l, ctate, ..)i'll catch some sleep :) Mar 09 01:39:10 pfn: in project.properties, yes. Mar 09 01:39:25 do the pastebin Mar 09 01:39:27 on it Mar 09 01:39:52 wyvern`, in my example lite = app, common = lib Mar 09 01:39:58 (in case you got that backwards) Mar 09 01:40:14 hey guys, what exactly is the background color for holo light? Mar 09 01:40:20 isn't it white? Mar 09 01:41:14 pfn: ah, i simplified it because it looked like there were three things. perhaps I took it too far. Mar 09 01:41:22 pfn: http://pastie.org/private/aude6ar9fdxglicqnlujog Mar 09 01:41:23 anyone know of open source camera apps that go from preview to picture to viewer ? Mar 09 01:41:48 wyvern`, yeah, the 'root' object represented the root-dir Mar 09 01:41:50 needs to be there Mar 09 01:41:52 ahh i see. Mar 09 01:42:00 well now it makes sense why it's only doing one :) Mar 09 01:42:33 yeah, in your paste, it basically overrode the original packaging definition in medigramAndroid Mar 09 01:43:02 basically, the 'root' project allows you to call targets from the root directory, without having to be in a specific project Mar 09 01:43:37 in my example, in the future, I'd add a premium project, and then I can select which apks I want to generate and stuff Mar 09 01:44:04 I'm broadcasting "doommeer is live @stratum0 " live on @Ustream. Come watch and chat! - http://ustre.am/dx50 (2:38am) Mar 09 01:44:10 ok Mar 09 01:44:13 ... not Mar 09 01:46:48 pfn: http://pastie.org/private/ud9hidyjxpass4zsan3wa Mar 09 01:47:35 hrm, that's weird Mar 09 01:47:53 you still have medigram_android/build.sbt and it has seq(androidBuildSettings:_*) right? Mar 09 01:48:32 ah, got it. - vs _ in path confused it Mar 09 01:48:48 or, I should say, confused me. :) Mar 09 01:50:37 how long on avg does it take for an app to show up on Google Play? Mar 09 01:50:53 QubeZ, an hour Mar 09 01:51:52 prn, were you saying that in my listview activity, setcontentview to R.layout.main and put the listview in main.xml? Mar 09 01:51:55 pfn* Mar 09 01:52:17 no Mar 09 01:53:35 wyvern`, just so you know, the names don't have to be the same with the symbol name or directory, I was just being lazy in my examples Mar 09 01:53:59 the symbol, id and files can all be independent values Mar 09 01:54:11 then do you mean setContent of the tabspec to r.id.listview? Mar 09 01:54:26 Tricknology, no, I was just asking what is R.id.tabN Mar 09 01:54:57 pfn: yeah, i figured as much Mar 09 01:55:12 * pfn updates the gist with a little bit more info Mar 09 01:55:19 wyvern`, it's working now I hope? Mar 09 01:55:25 seems to be, still testing Mar 09 01:55:35 im sorry those werent for anythign since i remade the xml. its in a different xml file now.. ive commented that out Mar 09 01:56:17 * pfn ponders changing packageT in Compile to packageClasses in Android Mar 09 01:57:42 Got it.. ActivityGroups Mar 09 01:57:45 so that way the default package task can be used for generating an apk Mar 09 01:59:27 * Jug6ernaut ponders pondering Mar 09 01:59:29 Are Android 2.2+ devices guarenteed to support multiple EGL contexts? Mar 09 02:00:15 pfn: how does the plugin decide which vers of proguard to use Mar 09 02:00:31 i'm getting a runtime failure that I think may be proguard related but it doesn't happen when I build with ant, which uses 4.7 not 4.6 Mar 09 02:01:40 pfn: weird, the link to play.google.com with my pkg id shows up on my PC but I send that link to my wife and she can't view it on her pc Mar 09 02:01:49 wyvern`, it's defined in the plugin's own build.sbt Mar 09 02:02:13 wyvern`, you can try setting it in project/build.sbt libraryDependencies += "net.sf.proguard" % "proguard-base" % "4.6" Mar 09 02:02:17 wyvern`, change 4.6 to 4.7 Mar 09 02:02:19 I think that should work Mar 09 02:02:53 otherwise it might have to change in the plugin... which would suck Mar 09 02:03:09 hm, as usual with proguard, everytihng sucks. May be a red herring. Mar 09 02:03:39 pastebin the runtime error... might be a bug in the generated apk, shouldn't be though, since I've tried a bunch of different build outputs Mar 09 02:03:46 pfn: nah it isn't Mar 09 02:03:55 i think there's some sort of background image Mar 09 02:04:11 it's weird because it's different between the emulator and device Mar 09 02:05:36 @android:drawable/screen_background_selector_light Mar 09 02:05:39 @android:color/background_light Mar 09 02:05:41 * pfn shrugs Mar 09 02:05:46 * pfn heads home before it gets too dark and someone in a car hits his ass Mar 09 02:06:10 nah background_light is white Mar 09 02:11:31 is there a way on android to indicate that swipe is available? like swipe left, swipe right? Mar 09 02:11:44 a tab bar should be enough Mar 09 02:12:02 veeti: visual feedback Mar 09 02:12:29 well, the point is that action bar tabs should always be swipeable Mar 09 02:13:35 those are avail for non ics devices? Mar 09 02:13:57 http://actionbarsherlock.com/ and viewpager from compat lib Mar 09 02:21:13 anyone good with cross compiling? Mar 09 02:21:57 I finally got a listview working in FragmentActivity (ABS support.v4) but its displaying empty elements.... and im not sure why Mar 09 02:23:10 how are you populating it? Mar 09 02:23:53 listview.setAdapter(ma); Mar 09 02:24:08 ma is a MessageAdapter which extends ArrayAdapter Mar 09 02:25:04 arrayadapter has data in it ? ( test with DDMS ) Mar 09 02:25:20 http://pastebin.com/d73U2QyW Mar 09 02:26:15 well yeah, i believe so, if I have 2 things in the list, I get 2 empty list elements Mar 09 02:26:28 its just not displaying correctly Mar 09 02:27:41 what method do I need to call to prevent [SurfaceView] connect: already connected Mar 09 02:27:44 errors ? Mar 09 02:29:36 maybe an if check to see if your surface view is connected Mar 09 02:30:38 bankai_: where do you think my issue is, my adapter or xml? idk how to check the adapter to see if its populated Mar 09 02:31:11 AbelianHorizon: can you show me initData ? Mar 09 02:32:16 http://pastebin.com/AZeFwdLR Mar 09 02:32:28 super simple, just adding two test messages Mar 09 02:32:51 this will interface with sqllite later Mar 09 02:33:27 AbelianHorizon: how can I disconnect if it is connected ? Mar 09 02:33:54 codefriar: never used surfaceview before.. i'm here for help myself Mar 09 02:34:22 Any SurfaceView users here? Mar 09 02:34:24 not 100% sure how the arrayadapter works, does it call a toString on each element? humm ... Mar 09 02:35:16 you send the context, the xml defining the elements in each row, and the arraylist containing the data Mar 09 02:35:25 baaah Mar 09 02:35:37 i have this line coming back as null.. Mar 09 02:35:38 TabHost tabHost = (TabHost)findViewById(R.id.tabhost); Mar 09 02:35:54 but its there in the xml.. Mar 09 02:35:54 did you setcontentview Mar 09 02:35:57 yes Mar 09 02:36:12 android:id="@+id/tabhost" Mar 09 02:36:21 in the xml i set the content view to Mar 09 02:36:32 setContentView(R.layout.home) Mar 09 02:36:42 yep Mar 09 02:36:47 home.xml Mar 09 02:36:57 tabhost element inside home.xml Mar 09 02:37:30 i dont have a home.xml Mar 09 02:37:43 main.xml Mar 09 02:37:55 but yeah, it's the tabhost element that is in there.. the only one i have Mar 09 02:38:02 so then, setContentView(R.id.main) Mar 09 02:38:18 bankai_: http://pastebin.com/mL0VV0Ei Mar 09 02:38:21 AbelianHorizon: ahh yep, it calls the toString() method - chuck some logging in your initData method to print out each element of the sentMessages Mar 09 02:39:17 if i call system.out.println(sentMessages.getSize()); itll say 2 Mar 09 02:39:33 yeah, it's there.. puzzlign me Mar 09 02:40:15 Tricknology: no compiling errors? Mar 09 02:40:17 AbelianHorizon: yep, but what does the toString method print? Mar 09 02:41:14 System.out.println(sentMessages); that should call toString() right? Mar 09 02:41:47 nope Mar 09 02:41:55 yeah, why not Mar 09 02:41:58 java dude Mar 09 02:42:42 yeah yeah, same output with both Mar 09 02:43:08 No red underlines in eclipse, just at runtime i get NPE when i call tabHost.setup(); Mar 09 02:43:18 [303: test @: 3/30/90, 202: test2 @: 3/30/90] Mar 09 02:43:30 tabhost is null even after i call findViewById() Mar 09 02:44:14 anybody here work with arrayadapters? Mar 09 02:44:42 show me your code trick Mar 09 02:44:51 anyone good with cross compiling? Mar 09 02:45:12 royale1223: what are you trying to do Mar 09 02:49:03 yay, another day I haven't been runned over Mar 09 02:49:26 pfn: let's hope there's more to come :) Mar 09 02:49:47 AbelianHorizon: I'm trying to compile file for android. Mar 09 02:50:11 royale1223, use arm-eabi-gcc that's in the ndk Mar 09 02:50:18 easypeasy Mar 09 02:50:42 was it made for another system? why do you say cross compiling Mar 09 02:51:13 I assume you mean 'file' Mar 09 02:51:27 sounds like it should be very esy to do Mar 09 02:51:29 AbelianHorizon: http://www.darwinsys.com/file/ . I'm saying crosscompiling because I'm doing it from ubuntu. Mar 09 02:52:12 pfn: I cant get `./configure` right. Fails all the time. Mar 09 02:52:23 royale1223, so fix it so that configure works Mar 09 02:52:36 identify error, determine fix for said error Mar 09 02:52:37 rinse, repeat Mar 09 02:53:02 pfn: I use `./configure --build=arm-linux-eabi CC=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc LD=/opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc` Mar 09 02:53:28 and then? Mar 09 02:53:53 pfn: fails with `configure: error: C compiler cannot create executables`. Mar 09 02:54:13 so look at config.log and see why exactly that happened Mar 09 02:55:04 looks like `configure:3799: /opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc conftest.c >&5` Mar 09 02:55:14 /opt/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: crtbegin_dynamic.o: No such file: No such file or directory` is the culprit Mar 09 02:55:28 ok, now to figure out how to rectify that :p Mar 09 02:56:02 bankai_: my problem is that I started with ListActivity, and got everything working, but now need FragmentActivity for support. Not sure if I'm doing it correctly you know? Mar 09 02:56:03 pfn: This is my first attempt at cross compiling :P Mar 09 02:56:17 royale1223, this sort of thing happens in non-cross compiling as well Mar 09 02:56:43 AbelianHorizon: never used ABS, sorry :\ Mar 09 02:56:43 pfn: works fine when i try to compile natively. Mar 09 02:56:46 royale1223, perhaps try LDFLAGS=-L$ANDROID_NDK_HOME/platforms/android-N/arch-arm/usr/lib Mar 09 02:56:53 so garbage Mar 09 02:57:05 you hear that JakeWharton? Mar 09 02:57:10 :P Mar 09 02:57:15 AbelianHorizon, replace listactivity with listfragment, continue as usual Mar 09 02:57:16 pfn: lemme see. 1 min Mar 09 02:58:52 wyvern`, I take it everything's working? Mar 09 02:59:01 but this list fragment still needs to be inside of an activity? Mar 09 02:59:09 of course Mar 09 02:59:38 pfn: same error Mar 09 02:59:45 I'm using FragmentActivity, I was told ListFragment in support wouldnt work with an array Mar 09 02:59:54 i used `LDFLAGS=-L/opt/android-ndk-r7/platforms/android-4/arch-arm/usr/lib/` Mar 09 02:59:54 royale1223, look at config.log, run the same thing from commandline **** ENDING LOGGING AT Fri Mar 09 02:59:58 2012