**** BEGIN LOGGING AT Wed Mar 13 02:59:58 2013 Mar 13 03:25:19 hey guys Mar 13 03:31:12 jasiofaewiof Mar 13 03:33:03 what? Mar 13 03:33:55 canadiancow: i need some help with my app, it's just not working Mar 13 03:34:15 it's not sending writing the text in the TextField to the NFC tag Mar 13 03:34:29 canadiancow: does anyone know a lot about buying firearms in the US? Mar 13 03:34:34 woops Mar 13 03:34:48 let's not discuss that here? Mar 13 03:35:23 canadiancow: http://pastebin.com/2JdseRkP Mar 13 03:35:35 canadiancow: that was the wrong paste hence the 'woops' Mar 13 03:35:44 i was meant to show you that pastie ^^ Mar 13 03:39:04 canadiancow: you dont know Mar 13 03:43:44 help Mar 13 03:54:53 so I was asking about this earlier, does anyone know how to send HTTP POST requests with android without URLencoding the post data? Mar 13 03:56:04 basically, I my app is doing the equivalent of this: Mar 13 03:56:53 curl -i -X POST http://${URL}/${1}/${2} --data-urlencode "username=${USERNAME}&password=${PASSWORD}" Mar 13 03:56:58 and I want it to do this: Mar 13 03:57:08 curl -i -X POST http://${URL}/${1}/${2} --data "username=${USERNAME}&password=${PASSWORD}" Mar 13 03:58:09 agargiulo: no Mar 13 04:03:36 agargiulo: you could use a simple Socket connection ;) Mar 13 04:06:33 bankai_: i need some help too Mar 13 04:07:19 hum. I have a static utility class holding all my constants, and I want it to return different constants depending on the "debuggable" - flag Mar 13 04:07:31 how do I get an ApplicationInfo in a static class? :-/ Mar 13 04:07:41 (or that flag, for that matter...) Mar 13 04:09:06 are we able to reply to comments yet (on the play store) ? Mar 13 04:09:08 nononono Mar 13 04:09:14 tinloaf: no stop! Mar 13 04:09:36 can't stop won't stop... Mar 13 04:09:45 anyway, anyone with useful comments? Mar 13 04:09:59 tinloaf: no Mar 13 04:11:02 bankai_: If that's the only solution, that's slightly retarded. Why is android urlencoding the POST data anyway? That should never be the default Mar 13 04:20:58 g00s: just fixed my first linux driver issue :) Mar 13 04:21:19 ugh. its wasting your time already :/ Mar 13 04:21:51 I wetn to bestbuy and officedepot, all of the wireless adapters were not supported :/ Mar 13 04:21:56 had to use ndiswrapper Mar 13 04:22:13 hah, that pos still exists Mar 13 04:22:15 every time a find some code snippet on the net and try it out i have to increase the api level. can i avoid doing that? Mar 13 04:22:16 and my old adapter had a weird bug with linux so it was over heading Mar 13 04:22:23 heating8 Mar 13 04:22:58 g00s: i have this great idea for an app/game though :) Mar 13 04:23:14 have you ever watched megaman? Mar 13 04:24:47 Trinsta: no ... Mar 13 04:25:07 i watch megag00s Mar 13 04:25:16 haha, well its something like that :) Mar 13 04:25:32 going to try to see if i can get a mini-prototype done by next week Mar 13 04:25:43 :) Mar 13 04:27:01 is there some tool online that i can use to replace new functions with old ones that do the same thing? Mar 13 04:27:18 wut Mar 13 04:28:26 for when the api level is too high Mar 13 04:29:00 The API level …. is too damn high ! Mar 13 04:29:52 lol Mar 13 04:32:08 m crap, i took 1GB worth of crappy pictures today Mar 13 04:32:51 when I add google play services etc with a 4.x project to my eclipse project, it never does auto complate or finds the javadoc to for instance google maps how do I get that to work properly? Mar 13 04:33:45 g00s, that's a good thing Mar 13 04:34:02 <1% of your photos will be worth keeping Mar 13 04:34:06 just keep clicking Mar 13 04:34:13 .01% :D Mar 13 04:34:25 no thats not the answer Mar 13 04:34:32 the answer is to compose first and shoot second Mar 13 04:34:36 not shoot thoughtlessly Mar 13 04:34:42 alex_PP: i went through your whole album on deviant art, there is some great stuff there ! Mar 13 04:35:07 i'm at a 10% shot ratio of things that are worth keeping up from my old 3% but my favs are a lot more like .1% Mar 13 04:36:50 Dorky, by kee clicking i ddin't mean throughtless clikcing Mar 13 04:37:02 you're right Mar 13 04:37:24 well i do think you have to shoot a lot more or less but not thoughtlessly Mar 13 04:37:36 it depends what's going on Mar 13 04:37:48 for a model shoot I might shoot 300 in an hour but thats different poses and facial expressions Mar 13 04:37:58 for architecture or whatever i would never fire away at the kind of clip Mar 13 04:38:10 maybe 2 per minute at the most, so 100/hr Mar 13 04:38:24 and probably more like 1 every 3 minutes is more my current tempo Mar 13 04:39:06 i meant to imply taking more in general Mar 13 04:39:16 i need help Mar 13 04:39:17 right more in general is good only up to a point though Mar 13 04:39:17 i need help Mar 13 04:39:20 whereever you go Mar 13 04:39:28 take a camera Mar 13 04:39:38 it all adds to your experience Mar 13 04:39:44 i need to finally print out some poster sized prints of some of my shots so i can use up some wall space Mar 13 04:39:50 alex_PP: that's called a cell phone ;) Mar 13 04:40:04 yeah, i find myself using my phone more and more Mar 13 04:40:22 i need help Mar 13 04:40:26 my compact has been fairly abandodned Mar 13 04:40:40 alex_PP: here is a picture i took today. it was nighttime, and i was experimenting lighting the subject with 2 LEDs. there was a barrel cactus behind the flower. my mistake here, was that i didn't have the depth of field and some of the pedals are out of focus. i could not see this easily when i was composing on the LCD, though. http://i.imgur.com/WsHvmEp.jpg Mar 13 04:40:44 well my dslr has been fairlyu abanded Mar 13 04:40:49 i need help Mar 13 04:41:33 now i use my sx 20 hs for jus about everything its really incredible Mar 13 04:41:56 what kind of LED setup did you use? its not too bad lighting overall Mar 13 04:42:05 oh, just 2 flashlights Mar 13 04:42:22 both zebralights; one with XP-G the other with XM-L Mar 13 04:42:33 they had different color temperatures :/ Mar 13 04:42:40 whats xp-g or xm-l? Mar 13 04:42:50 those are the types of Cree emitters Mar 13 04:43:08 the xp-g has a better color render index than the xm-l Mar 13 04:43:27 i switched my office bulbs to 5000K cfls and its SOOO much nicer on the monitor Mar 13 04:43:33 since now my environment and monior color temp are the same Mar 13 04:43:37 the primaries are unreal now Mar 13 04:43:43 and fleshtones are awesome Mar 13 04:43:54 no point in color balancing a monitor without putting daylight bulbs around it Mar 13 04:44:09 topics irrelevant out of 10 Mar 13 04:44:20 you need help coco89 Mar 13 04:44:27 anyhow, the pic has other issues; lots of noise; some blown out highlight. still learning ;) Mar 13 04:44:27 Dorky: yes. Mar 13 04:44:38 so get help Mar 13 04:44:48 * unreal is primary. Mar 13 04:45:00 i'm trying if you weren't jacking it over cameras Mar 13 04:45:10 no you aren't trying Mar 13 04:45:16 you are being a jerk and just keep saying you need help Mar 13 04:45:21 say what the fuck you want help with eh? Mar 13 04:45:33 i said what i wanted help with and noone helped me but i'm not whining about it Mar 13 04:46:18 i did 10000 billion times Mar 13 04:46:29 before Mar 13 04:47:07 I have a web view that I use to allow the user to login to a site. That site has a 5 minute timeout policy. So, for instance say the user logs in looks at something and then closes the app. The web view will still have the user logged in, so they won't be forced to re-authenticate if they make it back to the app within 5 mins. I want to stop this. But, even if I completely kill my Process the session is persis Mar 13 04:47:07 ting. I tried to delete the cookies stored in the cookie manager but that doesn't seem to do it either. I can I force the user to re-login through the web view, without redirecting them to the login page. I have to take into consideration a user with a bad internet connection. Mar 13 04:47:17 wow, that is a huge wall of text, my bad Mar 13 04:48:33 my current solution is to loadUrl(logout_url) Mar 13 04:48:45 but that won't work well if a user has a bad internet connection. Mar 13 04:49:08 so how many people are android consultants? I'm wondering what the going rate is for android Mar 13 04:49:18 dorky same as ios Mar 13 04:49:21 i've been charing around $90/hr in california but I think that's too low Mar 13 04:49:25 wordToDaBird: which is what? Mar 13 04:49:29 $150/hr? Mar 13 04:49:34 if you're good Mar 13 04:49:45 great* Mar 13 04:49:49 well good is relative but I've never seen android stuff go for $150 Mar 13 04:49:50 never charge a client to learn Mar 13 04:50:07 the highest android proj i've seen was $125 Mar 13 04:50:16 everyone is always learning there is always new apis coming out Mar 13 04:50:22 I do both and I charge the same for both Mar 13 04:50:31 i'm just curious what the range is for android Mar 13 04:50:40 especially for people that don't do both -- pure android Mar 13 04:50:54 of coures if you do both there is no incentive to do anything for less than the highest you can charge Mar 13 04:51:05 so that changes the numbers i'm just talking about straight android Mar 13 04:51:41 my latest potential client I quoted $110 but I think I should have said $130 Mar 13 04:52:05 anyway you havent said what you're charing wordToDaBird you could be charging $75/hr for both ios and android so... Mar 13 04:52:20 it depends on the project. Mar 13 04:52:31 Complexity, time-frame for delivery Mar 13 04:52:32 so give a range then Mar 13 04:52:40 I don't always use the standard hr model Mar 13 04:52:47 I often do a flat rate for the project Mar 13 04:53:03 90+ is my starting range. I have at the most charge 120 Mar 13 04:53:11 charged* Mar 13 04:53:20 per hour? Mar 13 04:53:25 * wordToDaBird nods Mar 13 04:53:30 and what would you charge on a flat rate for say a 1 month project? Mar 13 04:53:35 i never do flat rate but i'm curious Mar 13 04:53:35 as if any of you know how to codee you can't even find out what's wrong with minee Mar 13 04:53:38 it just seems to risky Mar 13 04:54:00 and are you going thru recruiters wordToDaBird or just ord of moth etc? Mar 13 04:54:45 the client just seemed to say "ok" to quickly when i said $110 Mar 13 04:54:47 depends on complexity? If it is just a simple project that doesn't require me to bang my head 10k is my starting rate. I will not do any project for less than 10k if that takes a month. k.. Mar 13 04:54:49 i feel like i left money on the table Mar 13 04:54:54 110 is decent Mar 13 04:54:59 $10k a month is like $70/hr Mar 13 04:55:05 or less even Mar 13 04:55:12 $90/hr is $14.2k Mar 13 04:55:16 I didn't say 10k a month I said I won't do a project for less than 10k Mar 13 04:55:23 ok Mar 13 04:55:31 well i'm just wondering, say you charge $100/hr for simple math Mar 13 04:55:40 then 4 weeks would be $16000 Mar 13 04:55:42 ok? Mar 13 04:55:57 but say for a fixed project, would you quote them $20k or $25k or around $16k or what? Mar 13 04:56:03 k, but say I spend 2 weeks busting my ass to get it working and then hand it to client and they are happy Mar 13 04:56:08 the only way to mitigate the risk on flat rate is to wildly overprice it Mar 13 04:56:09 g00s: im srsly getting really pissed off at ubuntu -.- Mar 13 04:56:24 trinsta, why? remember computers do what you tell them to, not what you want Mar 13 04:57:04 unfortuatly canological told gis computer to use unity Mar 13 04:57:06 i think its pretty hard to do any android project in less than a month unless its really easy and runs on only a handful of devices orjust 1 devic Mar 13 04:57:07 *his Mar 13 04:57:31 Dorky_: i finished my simple workout app in 6 hours :) Mar 13 04:57:48 well maybe it's really simple and runs on 1 device Mar 13 04:57:52 wordToDaBird: because my wireless adapter worked nicely with Windows but overheats on Ubuntu Mar 13 04:57:55 i'm talking about a commercially useful and viable app Mar 13 04:58:00 Dorky_: its compatible with all devices Mar 13 04:58:12 then it's really simple and basic Mar 13 04:58:16 Trinsta, wouldn't you want to blame the wireless adapter manufacturer then? Mar 13 04:58:20 Dorky_: besides design, it holds all of the features of commercial workout apps Mar 13 04:58:33 sure , *besides design* Mar 13 04:58:39 meaning, its not really viable Mar 13 04:58:48 sure you can have it write to console output :) Mar 13 04:58:57 wordToDaBird: no, because I went to BestBuy and all 4 of their "wireless adapters" arn't supported Mar 13 04:59:07 but to get some slickness and layouts and all that is gonna be weeks more work Mar 13 04:59:08 drivers? Mar 13 04:59:18 thats expected so I suppose i'd use Ndiswrapper Mar 13 04:59:33 but there are "bugs" in 1.57 so i Mar 13 05:00:07 Trinsta: life is too short for that shit, get a mac :) Mar 13 05:00:15 fuck a mac Mar 13 05:00:17 i'd have to install the RC 1.58 version. Add onto that Archive Manager has errors when I run it when I do download the drivers so i'd have to use my Windows 7 computer to first run the .exe files so I can grab the .inf file Mar 13 05:00:24 as I say this from a mac Mar 13 05:00:31 hehe Mar 13 05:00:37 additionally, ndiswrapper is telling me im missing modules when I do in fact have those modules Mar 13 05:00:53 *rant done* Mar 13 05:01:06 i wrestled with ndiswrapper in 2005 :D Mar 13 05:01:15 Dorky: what do you mean its not viable without design? I can use my app. it just doesn't look visually appealing Mar 13 05:01:31 Trinsta, computers do what you tell them to, not what you want. I am sure there is a logical reason as to why there is an issue. What that issue is, is another question entirely. You can go with a mac, but these overpriced pieces of shit aren't worth it IMHO Mar 13 05:01:42 if I didn't do iOS dev, I wouldn't even have one. Mar 13 05:01:47 They are shinny and pretty though. Mar 13 05:01:55 wordToDaBird: yea i know, i need to learn linux either ways if i want to learn how to manage my CentOS System Mar 13 05:02:19 but in a way im sure i'd be relieved and happy for the experience once i get this damn thing to work Mar 13 05:02:20 don't use a wireless mouse, usb or ps2? Mar 13 05:02:36 its wireless adapter Mar 13 05:05:14 how great! my current working wireless adapter exceeded 50kbps so it overheated! Mar 13 05:05:51 wonder if there is something like ipfw for wireless adapaters Mar 13 05:15:16 so what does your 8 hr workout app do Trinsta? is it a scheduler? pedometer? ANT+ integration? mapping? workout app could be anything Mar 13 05:15:26 i've worked on some cycling specific apps in the past (VR cycling) Mar 13 05:15:43 but the client was a flake and i dropped them :( Mar 13 05:16:13 JEfit is an awesome 'workout app', use it all the time!! Mar 13 05:18:06 Dorky: it tracks my weight, fat%, muscle%, TBW%, Bone denisty lb; specifies what my workout for today is and also predetermines the warmup sets i should use Mar 13 05:18:18 my workout however is based on Starting Strength Mar 13 05:18:53 so you have to enter all those data points by hand right? and how does it determine warmup sets? for what sort of exercise? lifting? aerobics? Mar 13 05:18:58 it outputs it into a .txt file on my sd card and I can use that to import it into an excel file to get graphs there or see it via my app Mar 13 05:19:12 Dorky: for lifting and cardio Mar 13 05:19:24 right well to be a "real app" it needs to push that to a web page and get graphs from there Mar 13 05:19:28 just like fucking instagram Mar 13 05:19:35 anyone could make a camera that gave it a 70s look Mar 13 05:19:36 even me Mar 13 05:19:45 but instagram got big with their web integration Mar 13 05:19:54 its two simple things put together that made it big Mar 13 05:19:54 lifting is quite simple, 1 set of 45lbs, 1 set of (previous weight) *.2, *.4, *.6, *.8 Mar 13 05:20:21 right well thats a start Mar 13 05:20:28 i've been too fat for too long Mar 13 05:20:32 i finally started cycling again Mar 13 05:20:38 Dorky, our discussion resided on you stating that it was hard to finish any project in less than a month :) Mar 13 05:20:59 Trinsta: yes and by that I mean a commercially viable product and that still stands Mar 13 05:21:06 hard doesnt mean impossible Mar 13 05:21:34 well my application is commercially viable though LOl Mar 13 05:21:39 but any client that thinks their going to do someting meaningful on a bunch of devices in a couple of weeks is a) dreaming and b) even if they aren't, a waste of time Mar 13 05:21:51 Trinsta: so send it to me and i'll tell you if it is...hard doesnt mean impossible Mar 13 05:22:01 i have around 6//TODO comments that i can finish, upload it onto startingstrength.com Mar 13 05:22:23 so i can download the apk from there? Mar 13 05:22:27 and boom, its a commercially viable application that can be used by all of the noobie bodybuilders Mar 13 05:22:48 Dorky, well i never said mine was a commercially viable application :) only an "android project" that i finished in less than a month Mar 13 05:23:04 but clients don't hire me to do things that aren't commercially viable Mar 13 05:23:06 but sure, ill be done with my current "commercially viable" application this thursday so if you're still around... you can download it Mar 13 05:23:23 from that website? startingstrength? Mar 13 05:23:35 so you can download my hobby app on saturday :) Mar 13 05:23:40 ok so fine Mar 13 05:23:49 ill give you the package name Mar 13 05:23:54 how many hours did it take to make GTA3 on android? 8? 8000? Mar 13 05:24:24 either, com.synaion.startingstrength or com.synaero.startingstrength Mar 13 05:24:27 every client thinks they can have an app in 3 weeks...a lot of apps these days take months to write Mar 13 05:25:10 Dorky: write a framework. use that framework for every app thats similar and charge extra for those that take more time Mar 13 05:25:32 every app i work on is different Mar 13 05:25:43 still, a framework speeds things up Mar 13 05:25:48 sure there are little methods i use across them but there isnt a framework to do the stuff i do Mar 13 05:25:56 example? Mar 13 05:26:12 example: hooking an android to be the front end of a heart monitor or EKG machine Mar 13 05:26:24 you gonna use that framework on some social networking apps? Mar 13 05:26:41 no Mar 13 05:26:48 other stuff i do is camera, video, related Mar 13 05:26:54 it's not just a bunch of retreads Mar 13 05:27:48 but if anyone knows any good graphing packages for android besides androidplot and chartdroid i'd love to know cuz they are both sort of ok but ultimately not enough for commercial without a lot of rewriting/hacking Mar 13 05:28:34 Dorky: i know what you mean, they look ugly. was thinking about writing one myself Mar 13 05:28:54 they look ugly and they are not ful lfeatured enough Mar 13 05:29:01 i really *love* the graphing in WiFi analyzer Mar 13 05:29:15 but i dunno what they used... i emailed the author (farproc) about licensing it and he never got back to me Mar 13 05:29:22 it seems graphing would be really important on android....? Mar 13 05:29:51 also are there ANY commercial widget packages? like on C#/.NET there are infragistics and all these vendors..any commercial stuff for android as far as graphing etc packages or it's all opens ource? Mar 13 05:31:08 i could decompile wifi analayze but this is for a big client and dont want to get fucked with lawsuits want something clean Mar 13 05:31:40 Dorky: https://lh4.ggpht.com/pkvHsg53hTyuat7gRQLyBQdxg-vtBtwvITnHhvBC75brOpdclS1ka-w6YPA5SZX41S0 is that the one youre talking about? Mar 13 05:32:01 Dorky: nvmd found it, https://lh6.ggpht.com/JOFGKxHoqBM6Fu5QAupOxcEh6W3n-UC0x91QZa8k4DZT1zIgbXsbmKDjxrftHbBE4w Mar 13 05:32:08 i'd say though that the first one looks better Mar 13 05:43:19 well thats the program yeah Mar 13 05:43:27 but those arent really the best examples of it Mar 13 05:43:47 if you download it you can set it to a different graph mode which has transparent parabolas Mar 13 05:43:51 but i need those line graphs too Mar 13 05:43:56 but for instnace i need to Mar 13 05:44:09 a) customize label position etc (right versus left which most don't do) Mar 13 05:44:21 b) display on white bkgnd for daytime visibility (whcih most dont do) Mar 13 05:44:42 c) ideally have the gummy bear graphs (transparent/filled) which some of them do Mar 13 05:44:43 etc etc Mar 13 05:44:59 d) graphs must be able to be discontinuous (some of them do) Mar 13 05:45:00 etc etc Mar 13 05:46:16 so then you say oh its not so hard to modify but then you have to gut all the code which forks it from the mainline so then merging updates is a project Mar 13 05:46:21 do you know if the current graph libraries use canvas or opengl to draw? Mar 13 05:46:33 they are all half baked..why cant it be that i can set label color? Mar 13 05:46:47 they ones i've used are all canvas based and also you (usually) have to disable HW accel Mar 13 05:46:56 graphview is the other one i've been using Mar 13 05:47:03 androidplot chartdroid and graphview Mar 13 05:47:08 i mostly use graphview right now Mar 13 05:47:09 dorky: any reason why hw accel needs to be disabled? Mar 13 05:47:24 Trinsta: yes because if you don't the graphs don't update properly Mar 13 05:47:27 all android devices support GL ES 1.0+ Mar 13 05:47:40 so tell that to the graph authors Mar 13 05:48:11 like i said i havent found one i liked considering how ubiquitous the need is Mar 13 05:48:16 let me know if you find something better and/or commercial Mar 13 05:48:35 but i'm suffering along with graphview at the moment Mar 13 05:49:03 Dorky: write one yourself add it to your own library :) Mar 13 05:49:11 that isn't my job Mar 13 05:49:16 my job is to write this application Mar 13 05:49:26 writing a graph library is something i will do if I *have* to Mar 13 05:49:47 i'd much rather find something off the shelf I have plenty of stuff to write on the app without dicking around writing commonly used things Mar 13 05:49:49 lol, well those opensource projects you mentioned... its not the job of the authors to write those libraries just for you, you know? Mar 13 05:50:05 no, it isn't so that is why i asked about commerical libraries Mar 13 05:50:18 on windows 8, wpf, etc I could find dozens of commercial libraries Mar 13 05:50:26 on android ? zero? come on someone should make something good Mar 13 05:51:06 but it's stupid for the OS libraries to write "libraries" where they hard code in the label color values and positioning Mar 13 05:51:15 if they are going to make something OS at least make it something that's usable Mar 13 05:51:26 not something that only happens to work with their app but they OS it anyway that just wastes my time Mar 13 05:52:15 dang, your time must really be important Mar 13 05:55:25 Dorky, do you enjoy programming? Mar 13 05:56:20 Dorky: i always write my own stuff Mar 13 05:56:47 Dorky: or i use win8 rt and use the tons of libraries that are available Mar 13 06:07:57 well i havent done any win rt stuff, but have done plenty of WPF, which can be used by W8 and, there are tons of awesome libraries Mar 13 06:08:15 of course I enjoy programming but I don't enjoy reinventing wheels I enjoy creating new things Mar 13 06:08:39 doing a graph library is just reinventing a wheel, something that should be commodotized or available as a library, commercial, free, built in or otherwise Mar 13 06:08:59 i have months worth of work to do on the app itself let alone 2-3 weeks to do a really good graph library Mar 13 06:09:31 and, since you are saying it's "my problem" essentially, or, I'm SOO lazy Mar 13 06:09:57 even if I DID write a graph library, it would be for the client, not open source, not a commercial library, and thus nothing that the android community could benefit from Mar 13 06:10:12 however the android comm could benefit from a GOOD free or even *gasp* commercial library that's all Mar 13 06:10:27 if ther is one lemme know :) if not there's a market oppty for you if you have spare cycles :) Mar 13 06:11:19 Dorky: link to the library you are currently using ? Mar 13 06:11:39 https://github.com/jjoe64/GraphView Mar 13 06:11:50 ah yes, i've heard of that one Mar 13 06:12:02 there is one commercial one from artfulbits - at least there was Mar 13 06:12:03 it's the best overall but it's still craptastic Mar 13 06:12:08 lemme chk Mar 13 06:12:22 i have no idea if its good. it could even suck more Mar 13 06:12:34 well i think there should be lots of libs out there Mar 13 06:12:39 maybe its a mkt oppty for me i dunno Mar 13 06:13:09 i tried androidplot, and .. well, that lib was being actively maintained - and then it changed "owndership" when the authors got tired of it and wanted to do something else Mar 13 06:13:10 but even a "spinner" numeric entry, the one in android sucks and no real good third party I have intense requirements around a good "spinner" not drop down like android calls a spinner but i mean numeric Mar 13 06:13:43 right androidplot seems to volatile and half baked but has cool elements and chartdroid is intent based and not really usable to me Mar 13 06:13:54 androidplot was one of the libs that you had to turn off hw accel on HC Mar 13 06:14:03 all of them you have to turn of hw accel Mar 13 06:14:13 same with that jjoe chartview Mar 13 06:14:18 even if they dont say it in the readme Mar 13 06:14:20 really? wtf i dont get it Mar 13 06:14:29 me either i havent had tiem to get into the guts of it Mar 13 06:14:31 is it an android bug Mar 13 06:14:38 my thing does custom USB and all sorts of shit Mar 13 06:14:42 I really have limited cycles Mar 13 06:15:13 soon to switch form USB OTG to using it by sending it via ADB as a device if you know anything aobut that would be handy Mar 13 06:15:46 yeah, i understand. android is a tough platform from a ROI standpoint. like you said, you wind up reinventing a lot of wheels - or - in my case, i want an awesome UX but spend a lot of energy getting shit looking first class from GB - JB. Mar 13 06:16:02 GB-JB? Mar 13 06:16:08 gingerbread - jellybean Mar 13 06:16:17 right Mar 13 06:16:24 all that polish you see on apps is $$$$$$$$ Mar 13 06:16:27 stuff like drag and drop, etc Mar 13 06:16:33 so like i said what kind of rates are you getting? Mar 13 06:16:45 me? heh, i'm not working now. $0 Mar 13 06:16:53 hell there isnt even databinding in deafult android like you get with WPF so much tedious bullshit in the create and all that and moving data in and out Mar 13 06:17:01 maybe some adapters help but not if you onpause or resume Mar 13 06:17:05 its really snake biting out there Mar 13 06:17:43 i dont mind charging clients but i hate to charge them to write something i could have got off the shelf Mar 13 06:17:46 call me honest i dunno Mar 13 06:17:51 the guys making tier 1 apps - FB, Instagram, Twitter - yeah, have huge teams, don't give a shit about anything but UX because the app is free anyhow and just enabling their service Mar 13 06:18:24 so how much are those tier1 guys paying their devs? and what about tier 2 and 3? i just want to know what pricing i should be quoting Mar 13 06:18:28 i'm not god but i am good Mar 13 06:19:07 i dunno, honestly Mar 13 06:19:12 guys please help me on this http://stackoverflow.com/questions/15362137/facing-issue-with-setcustomanimations-while-replacing-fragments Mar 13 06:20:45 Dorky: my app has targetSdk=8 and for the most part, it works fine on everything. there was one update i had to put out - crashed on JB as something changed, but it works. problem is, the more you care about UX - and UX is more than just putting an actionbar on the top - the more the costs add seemingly exponentially Mar 13 06:21:39 when you want to look awesome on the newest versions of android. god knows what will happen with android 5 - i'm sure there will be yet even more cool stuff Mar 13 06:22:02 available … if you want to work really hard to get it in your app i guess (and still support gingerbread) Mar 13 06:24:03 gingerbread is still alive at 48% :) Mar 13 06:24:21 fuck Mar 13 06:24:21 not going to be happening anytime soon Mar 13 06:24:47 43.9%* my mistake Mar 13 06:25:05 Trinsta: you realize, that those results are likely skewed also Mar 13 06:25:22 b/c as it explains, its devices that have accessed Play in the last 14 days i think Mar 13 06:25:24 I just got a call a week ago from T-Mobile though that I can change phones. even though my 2 year contract for my old in the ocean Nexus S hasn't expired Mar 13 06:25:32 i bet lots of people with GB don't access Play any more Mar 13 06:25:38 g00s: yea, so if anything more users are below GB Mar 13 06:26:03 don't know if that t-mobile call has anything to do with android trying to push out more 4.0+ api phones :/ Mar 13 06:26:05 g00s: but then your app won't reach those people anyway ;) Mar 13 06:26:06 it's not clear if that means they opened up the play store manually, or it means the google background service connected to the play servers Mar 13 06:26:21 tinloaf: yeah, there is a point to your argument Mar 13 06:26:41 put maybe those people would have purchased something if they had more recent version of android, dunno Mar 13 06:26:59 i see minimum = gingerbread for a lot of things Mar 13 06:27:06 g00s: and then there is the argument of... why would they purchase a $1-3 app if they don't have an updated phone? Mar 13 06:27:13 ^ part of the apple vs android argument Mar 13 06:27:15 I think that with new awesome features in 5, there will be a wave of people upgrading from gingerbread. Because, you know, your friend has this really awesome thing, and your phone is looking aged... Mar 13 06:27:26 then, ICS is the 'legacy'.. and I can live with that, I think. ;) Mar 13 06:27:53 well ICS is far better then 2.1 Mar 13 06:28:06 exactly my point Mar 13 06:28:11 e.g. for a 3-5 years support Mar 13 06:28:19 that wouldn't be possible. ICS barely has 1% in dashboards Mar 13 06:28:27 most 2.3 devices are capped at 2.3 Mar 13 06:29:02 the only possibility would be for the majority of GB users to purchase android 4 or 5 Mar 13 06:29:04 well we are developing for a boxed enviornment without any playstore support Mar 13 06:29:19 but the devices will be in use for 3+ years Mar 13 06:29:23 say, GB was what? 2 years ago? shouldn't the contracts be over soon? Mar 13 06:29:52 well 2 years a go there where 480x240 devices (!) Mar 13 06:30:04 sry 340x240 Mar 13 06:30:38 there is so little ICS devices? Well, then JB becomes the legacy. Even better. ;) Mar 13 06:31:06 tinloaf: would be interesting for them to skip ICS completely Mar 13 06:31:11 there are still 320x240 phones on the market Mar 13 06:31:34 ICS has like 30% Mar 13 06:32:07 kevinb: how is it 30%.... dashboards shows it clearly at 0.3% + 0.9% Mar 13 06:32:20 oh im an idiot thats 3.0 :) Mar 13 06:32:39 yeah, honeycomb has nothing Mar 13 06:33:10 well, nexus s was released jan 10, 2010 Mar 13 06:33:35 its been 3 years, still not a lot of upgrades :/ Mar 13 06:33:58 kevinb: well, honeycomb was more or less tablet-only. ... while no one had Android tablets back then... ;-) Mar 13 06:34:56 yeah. i almost wonder if that was for the better though, as 3.0 was decent but still needed a lot more work. if it was popular right now we might be talking about a honeycomb min, whereas ICS min is so much better Mar 13 06:35:32 gb versus ics is almost a non issue Mar 13 06:35:36 there are compat libs Mar 13 06:35:44 but the far bigger issue is things like: Mar 13 06:35:46 1) resolution Mar 13 06:35:57 2) internal or external back etc buttons (see #1) Mar 13 06:36:09 3) linux build and codec support (a bitch for video) Mar 13 06:36:09 etc Mar 13 06:36:26 it really is crazy Mar 13 06:36:52 at this point i tell clients: 1) pick 3 devices then 2) pick 5-10 devices of the latest devices and mostly fuck the old people unless it absolutely has to support them Mar 13 06:37:14 if it's a pay app screw old devices...it's new ppl that will pay for the most part Mar 13 06:37:44 i finally checked that artful bits but didnt see any graph libs Mar 13 06:37:53 yeah, there's a question of quality of user Mar 13 06:38:10 also vendor skins on Gingerbread were much much worse than on ICS. trying to use system widgets with a consistent look and feel is nearly impossible. Mar 13 06:38:33 well right so why arent there 3rd party libs for all that? Mar 13 06:38:51 xamarin is selling monotouch and there is phonegap and various payware Mar 13 06:38:59 why not just a commercial android lib of widgets? Mar 13 06:39:14 another problem is: even if you are able to build it so it runs on your ancient GB device, chances are that the device is simply not powerful enough to run your app... Mar 13 06:39:15 like on angry pigs, they have that drag and drop to build your car/airplane Mar 13 06:39:18 how much did that cost? Mar 13 06:39:24 there's one, DroidUX or something? but i think it's mostly repackaged apache license libraries. Mar 13 06:39:42 right it's not commercial it's just an amalgamation of flakeware Mar 13 06:39:46 yeah Mar 13 06:39:47 so why no commercial? Mar 13 06:39:55 make one Mar 13 06:40:02 i guess i could Mar 13 06:40:07 that's not my business model at the moment Mar 13 06:40:14 right now i'm just looking for off the shelf Mar 13 06:40:21 and what i'm hearing is there isnt much Mar 13 06:40:32 i've chcekd out openintent i think that might be what you are talking about but its not much Mar 13 06:41:00 http://www.androidviews.net/ has a good collection of free libraries Mar 13 06:41:08 anyway that angry pigs drag and drop must have cost a shitload of $$$ to make Mar 13 06:41:14 and it's somethign that should be standard in the OS Mar 13 06:41:47 <[SP]JESTER> is there a way to comment on a smali or xml file like php, you can say you edited this Mar 13 06:42:07 :o Mar 13 06:42:07 i don't know what angry pigs is (angry birds? games usually use all custom anyway though) but there is a drag and drop API introduced in honeycomb or so Mar 13 06:42:18 <[SP]JESTER> using or w.e, or some thigns is just # blah blah Mar 13 06:42:23 err maybe it's called bad piggies Mar 13 06:42:33 someting like thati dont remember Mar 13 06:42:51 xml comments starts with so yeah, they are same thing than # in python for example Mar 13 06:42:52 point is that there shouldn't be a game library built into the OS Mar 13 06:43:01 https://play.google.com/store/apps/details?id=com.rovio.BadPiggies Mar 13 06:43:08 it isnt a game library it's just drag and drop Mar 13 06:43:15 <[SP]JESTER> so in the smali file it would be like # Mar 13 06:43:20 that happens to be used by a game Mar 13 06:43:22 no, it's really not just drag and drop Mar 13 06:43:24 http://developer.android.com/guide/topics/ui/drag-drop.html Mar 13 06:43:32 by the way, what is the correct way to rename my application in Eclipse? just renaming the package seems not to update the name in the manifest... Mar 13 06:43:45 it's drag and drop but the drag and drop elements are animated...so? most things are now Mar 13 06:44:07 tinloaf: most manifest editing you have to do by hand at least from what I can tell Mar 13 06:44:28 Dorky: also the launcher is open source and has a drag and drop setup with nice animations even Mar 13 06:44:42 hum, OK. It's a bit tedious to have the development and production version on the same device. :-/ .. lets see if this works Mar 13 06:45:24 the launcher has drag and drop that suits the launcher thats different from having a drag and drop lib taht supports various use cases Mar 13 06:45:57 yeah the link i sent is the standardized API for any app to use Mar 13 06:46:38 so is it in the compat lib or how would bad piggies use it on GB which they support? Mar 13 06:46:41 seriously, if you want to do game UI stuff, there are a bunch of engines out there Mar 13 06:46:54 games do not use native widgets Mar 13 06:47:19 sure ok in the GAME world, there is a lot of payware libraries Mar 13 06:47:28 but in the standard android world, there aren't Mar 13 06:47:58 people will pay for Unity3D but there isn't the ecosystem for straight 2d apps Mar 13 06:48:13 okay, you're just making no sense Mar 13 06:48:38 k Mar 13 06:49:39 so is there an "easy" way of having development and production version on the same device? Mar 13 06:49:55 because now, i would have to start renaming permissions, and god known what... Mar 13 06:50:22 tinloaf, two packages? Mar 13 06:50:30 tinloaf: two devices? :P Mar 13 06:50:36 ^ or that :P Mar 13 06:52:38 Trinsta: yeah, but renaming the packages is really painful.. :-/ Mar 13 06:53:04 and I'm afraid at some point in time I will forget renaming a permission or something when producing a production APK... Mar 13 06:53:48 you could make a library project that has all your logic and two application projects that use the library, one for dev and one for prod Mar 13 06:54:15 http://stackoverflow.com/questions/7427906/android-testing-vs-production-version Mar 13 06:54:43 tinloaf: i meant another app project Mar 13 06:55:23 Dorky, he needs to change permission Mar 13 06:55:27 Dorky: yep, he's also proposing the library thing... Mar 13 06:55:40 perhaps I'll give that a shot ... Mar 13 06:57:24 hum.. can i reference string resources in the manifest? Mar 13 06:57:40 then i could so something like @string/dev_package or so in there.. Mar 13 07:00:21 tinloaf, yes you can iirc Mar 13 07:00:37 Trinsta: yeah, but I cannot concatenate :-/ Mar 13 07:01:08 so something like (@string/package).permissions.WHATEVER is not possible Mar 13 07:02:03 at least according to the internet.. Mar 13 07:08:48 Dorky: i think your argument about 3 engines is right on. the economics surrounding that is different. if you use unity, you can theoretically port your app to 10 platforms. as far as other things like widgets, its more of a hodge podge and knowing exactly what widgets are in demand. Mar 13 07:09:09 ARGH, eclipse! Mar 13 07:09:30 sure. a git reset --hard HEAD does *not* make my failed refactoring undone... Mar 13 07:10:20 Dorky: did you find this? http://www.artfulbits.com/products/android/aicharts.aspx Mar 13 07:11:13 well chking it out now Mar 13 07:11:14 id it met my needs - i probably still wouldn't buy it, heh - since i probably would not even recover the cost Mar 13 07:11:23 $300 Mar 13 07:11:27 the SS and the whole web site seems amazingly cheezy Mar 13 07:11:29 fuck tht Mar 13 07:11:39 if you look at SS #3 it looks like charlie browns shirt Mar 13 07:11:42 #fail Mar 13 07:12:06 yeah. i think writing a charting library is very difficult. so many ways to customize it for everyone. Mar 13 07:12:08 omg ss #9 total fail Mar 13 07:12:14 imagine what the codebase to gnuplot looks like Mar 13 07:12:15 now transparency Mar 13 07:12:23 this looks like some russian bilkware Mar 13 07:12:41 $300 meh Mar 13 07:12:52 hum. does anyone know how to re-generate the stuff in the gen/ folder in an android eclipse project? Mar 13 07:12:52 graphview does most of that aside from the pie charts for free Mar 13 07:13:09 yeah Mar 13 07:21:19 !topic Mar 13 07:22:38 It's been a long time since I've developed anything for Android; "way back" to the Froyo days. I'm wondering how difficult it would be to make an Activity w/ ActionBar function like the Google+ app does; such that when you press the icon/logo on the action bar while at the top of the heirarchy, a side menu appears. Mar 13 07:23:11 Would this require a completely custom ActionBar/Activity implementation, or is there a simple way to achieve this effect while maintaining the "built-in" ActionBar/Activity API setup? Mar 13 07:24:17 nmschulte: you can use ABS + a few sliding menu libs Mar 13 07:24:30 come on now... a graph library wouldn't be that hard... Mar 13 07:24:45 shouldnt* Mar 13 07:24:52 Trinsta: it has to be very customizable. customizable = hard Mar 13 07:25:07 so if an edittext is set to be numeric, on ics, the keyboard popup has (), and a lot of unneccessary chars on it..why is that and how to make it just 0-0.? Mar 13 07:25:16 g00s: I'm not sure what ABS is. Mar 13 07:25:23 actionBarSherlock Mar 13 07:25:28 thank you Mar 13 07:25:41 g00s: hmm, well regardless, i dont like any of the open libraries out there so i guess im going to have to see how hard it is :) Mar 13 07:25:54 i thought by now the google actionbar would be out - remember that one from the last I/O :P Mar 13 07:26:08 i hate the actionbar -.- Mar 13 07:26:22 isnt the action bar in the compat libs now? Mar 13 07:26:23 Trinsta: why, feel like you're using windows 95 ? Mar 13 07:26:24 i'd be okay with it if it was on the bottom of the screen Mar 13 07:26:32 Dorky: no Mar 13 07:26:34 Trinsta: it is, sometimes Mar 13 07:26:42 depends on the OS where it winds up Mar 13 07:26:44 becuase my thumb can't reach up to the top right corner on my tablet -.- Mar 13 07:27:08 well i gues that why ABS so popular my curent app is 4.+ only so.. Mar 13 07:28:02 and its a hassle especially if im holding the tablet with one hand to go back up -.- Mar 13 07:29:05 oook. my app just crashed the launcher. how did I do that? o.O Mar 13 07:29:23 widgets can do that Mar 13 07:29:50 g00s: I don't see anywhere on the website anything about a license; is this public domain? Mar 13 07:30:20 there should be a license, maybe in the zip ? its probably apache, dont worry Mar 13 07:30:52 Ah yes; Apache 2 Mar 13 07:33:30 So, another one: I only have a 2.3.3 device, but would like to emulate >= 4.x Mar 13 07:34:01 Has the emulator changed much since my time? Is it still QEMU based? Mar 13 07:34:33 Or rather; is there a better alternative? Mar 13 07:41:04 kerrick_: i just learned: doing UI stuff in an AsyncTask is bad. ;) Mar 13 07:44:38 tinloaf, I just learned that EA asked users to "update router drivers and firewall configurations and open ports 80 and 8080" in response to the SimCity server overload Mar 13 07:44:43 which is laughable Mar 13 07:47:21 s/laughable/DRM fucking over legitimate users as usual/ Mar 13 07:49:53 how is that even a viable solution... Mar 13 07:50:05 any sane router is going to already trust outgoing connections. Mar 13 07:50:21 Are they wishing to allow incoming connections to some http(s) server they stand up? Mar 13 07:50:25 nmschulte: "bullshit users to save face" Mar 13 07:50:37 yeah, that's ridiculous Mar 13 07:50:43 aka "shift the blame" Mar 13 07:50:51 by now though, even non-tech-savvy users know that that's just a run-around Mar 13 07:51:19 non-tech-savvy that aren't naive simply understand that EA screwed them ;) Mar 13 07:51:29 yeah Mar 13 07:52:01 So, I've created an AVD w/ "x86" architecture. When I load the avd (emulator -avd ); I get the skin with the button interface, but a blank display. Mar 13 07:52:31 nmschulte: did you wait long enough for it to boot to anywhere useful? Mar 13 07:52:44 I don't know. Mar 13 07:53:15 peeking at htop leads me to believe not. Mar 13 07:53:30 android emulator is really slow Mar 13 07:53:37 to boot Mar 13 07:53:43 yeah Mar 13 07:53:48 androvm.org Mar 13 07:53:59 Okay. Does using an x86 arhcitecture AVD help at all Mar 13 07:54:28 nmschulte: its pretty fast. doesn't have play service or google apis though Mar 13 07:54:55 it's only fast with hardware VM acceleration Mar 13 07:55:11 oh, yeah - i thought that was understood :D Mar 13 07:55:15 (so you need intel's haxm, or run linux with KVM) Mar 13 07:55:30 my MBP is from 2009 - a fucking Cure 2 Duo - and it works Mar 13 07:56:24 androvm is great Mar 13 07:56:38 I'm pretty sure this box supports it; debian sid, on an AMD Athlon 64 X2 (w/ AMD-V) Mar 13 07:57:02 monsti: can you go into why its better than x86 image + haxm ? Mar 13 07:57:12 it's lightspeed Mar 13 07:57:19 i'm curious - maybe i will switch Mar 13 07:57:38 vbox can export a display Mar 13 07:57:56 it has libhudini wich adds arm compatibility Mar 13 07:58:06 it has the google aps instaled Mar 13 07:58:06 apps Mar 13 07:58:10 Well, it's been about 5 minutes and still a black screen. Mar 13 07:58:17 there is full opengl support Mar 13 07:58:18 hello all. I've got a query in opening an activity. I created an ImageView on Activity1,wherein the onTouchEvent triggers a new Intent and starts that activity on the onTouchEvent function. This works, however it seems that the second view, displays, then for a quick instant, the first view flashes again. Mar 13 07:59:31 monsti: oh - do play services and google apis work on it ? Mar 13 07:59:40 (maps, etc) Mar 13 07:59:51 play service maps v2 or whatever its called now Mar 13 08:00:22 g00s: yeah Mar 13 08:00:30 well, I just have seen instructions for installing all other than GoogleTTS Mar 13 08:00:32 oh my :) Mar 13 08:00:44 g00s: i have full access to the playstore Mar 13 08:01:07 monsti: ok, crazy q : does it have bluetooth support :) Mar 13 08:01:07 also arm stuff works Mar 13 08:01:08 and it's "rooted" Mar 13 08:01:26 i didn#t test this but it might work Mar 13 08:01:35 you have to assign the BT dongle to the virtual box Mar 13 08:02:07 oh, says they are working on it Mar 13 08:02:41 well it's 4.1 and not 4.2 but who cares.... Mar 13 08:02:47 there are no 4.2 devices out, yet Mar 13 08:03:18 http://pastebin.ca/2331679 Mar 13 08:03:32 I don't see anything obviously wrong. Mar 13 08:03:47 well, thats important actually monsti . because if they don't have 4.2, than I obviously won't be able to use it for 5.0 Mar 13 08:04:02 (for quite some time possibly) Mar 13 08:05:13 g00s: well i have a nexus7 and i doN#t really care for 4.2 - there is no "must" stuff in 4.2 Mar 13 08:07:51 kerrick_: ahahahaha Mar 13 08:07:55 that's great. :-D Mar 13 08:09:40 Is there anyone else here who can't wait until I/O tickets go on sale?! Mar 13 08:10:29 EGamerHDK: better get them quick :) Mar 13 08:51:12 is there a bug with gcmintentservice and wakelock by processing the messages while keyguard is locked? http://stackoverflow.com/questions/15372721/gcmintentservice-stuck-at-onmessage-while-keyguard Mar 13 08:53:55 g00s: what irc client you using ? Mar 13 08:54:06 StingRay_: colloquy Mar 13 09:21:38 is there a bug with gcmintentservice and wakelock by processing the messages while keyguard is locked? http://stackoverflow.com/questions/15372721/gcmintentservice-stuck-at-onmessage-while-keyguard < is it because i dont use NotificationManger and just process the onMessage in an asynctasc? Mar 13 09:26:06 misterli: just a guess, but gcm probably only holds a wake lock until it has delivered the message to you. After that if you want to continue to keep the device awake you have to hold your own wake lock. Mar 13 09:35:45 ehh, Mirror API doesn't look that yummy Mar 13 09:35:56 * p_l wants Android API with more direct control! Mar 13 09:42:49 <[SP]JESTER> hey guys how can i edit the settings database with sqlite for tether, aka com.android.providers.settings, but not from using the phone Mar 13 09:42:58 <[SP]JESTER> trying to make it a permanent fix when installed Mar 13 09:43:22 <[SP]JESTER> any idea where it might be located Mar 13 09:43:36 you can't edit system databases without a rooted phone Mar 13 09:43:40 [SP]JESTER: #android-root Mar 13 09:45:07 <[SP]JESTER> asking over there then Mar 13 09:46:18 <[SP]JESTER> but what im trying to really find out Mar 13 09:46:21 <[SP]JESTER> is where does the database come from Mar 13 09:46:24 <[SP]JESTER> so i can edit that Mar 13 09:46:28 <[SP]JESTER> so when the phone creates it Mar 13 09:46:32 <[SP]JESTER> its already the correct way Mar 13 09:53:31 hello world! Mar 13 09:53:58 Hello you :) Mar 13 10:12:06 have any of you ever tried to put the new mapfragment (maps api v2) over a surfaceview that already contains an openGL context? Mar 13 10:24:58 Is the HTC Desire a good testing phone? Mar 13 10:25:10 bit old now... Mar 13 10:25:53 Leeds: Would you say too old? Would the s1 be a better option? Mar 13 10:26:04 they're about equal imo Mar 13 10:26:06 that's also pretty old Mar 13 10:26:41 What would you guys recommend? I already have a nexus 7 so I'm looking for something old but not too old :) Mar 13 10:26:48 For 2.3 testing? Mar 13 10:27:42 I had good experiences with an HTC Desire and a custom AOSP ROM (Stock Android). Once overclocked a bit, it is really smooth to use. Mar 13 10:28:09 The 800x480 screen makes it worthwhile. But if you can grab a Nexus S, that would work too if you wanted to test 2.3 Mar 13 10:30:19 Galaxy S would be fine for 2.3, I should think Mar 13 10:30:55 Don't have any experience with it. Mar 13 10:31:07 I have installed SensorSimulator on Ubuntu but although I can handshake between the desktop side and the emulator I can't trigger acelerometer effects on the installed AccelerometerPlayActivity SDK sample that I have installed on the emulator. I mention that using a USB connected device I can "shake" inside the AccelerometerPlayActivity application. Any hint why I can't reach to use SensorSimulator? Mar 13 10:31:11 Both HTC Desire and Nexus S are a breeze to root, too. Mar 13 10:31:30 Galaxy S and Nexus are very similar, hardware wise Mar 13 10:31:35 Nexus S* Mar 13 10:31:47 So, a classical question but I've googled my head into a set of mashed potatos... I extend FragmentActivity, add two fragments within onCreate using SupportFragmentManager and set their tags. After a e.g. poweroff/rotate/poweron I check for a saved instance state, the activity is recreated, then a call to find the fragments by getSupportFragmentManager().findFragmentByTag("customtag_one") returns null. What am I doing wrong? Mar 13 10:32:37 I might be better of getting a newish phone and not worry about testing that far back, perhaps the s2 would be the best comprimise Mar 13 10:32:50 *compromise Mar 13 10:33:09 That far back? What else are you gonna test if you already own a 4.x device? Mar 13 10:33:22 2.3 is still 45% of the market. Mar 13 10:33:41 Galaxy S2 shipped with 2.3 Mar 13 10:34:22 Yeah, but what does he mean by "that far back" then? Hardware wise? Mar 13 10:34:43 kakazza: Sorry kakazza thats a good point, I'm still trying to get my head around all of this :) Mar 13 10:35:07 (my app got rejected so I'm trying to get a phone to test on asap) Mar 13 10:35:14 Especially the 2.3 people usually have weaker hardware, so getting an appropriate phone of that era would serve you well. But try to not spend a fortune on those phones. Mar 13 10:35:20 Why did it get rejected? Mar 13 10:36:07 kakazza: Not fitting the screen properly - I made it for the tablets and had to guess for the phones, so it will also be good to have a phone for future testig. Mar 13 10:36:09 *testing Mar 13 10:36:25 kakazza: good point about the price, I'll stick to the desire or s1 Mar 13 10:36:47 can't you just use the emulator for that, apple741 ? Mar 13 10:36:49 Couldn't you still release it now, but only for tablets using https://developer.android.com/guide/topics/manifest/supports-screens-element.html ? Mar 13 10:37:11 It wouldn't work properly on my mac it kept freezing every time leslie Mar 13 10:37:27 huh, strange. are you lacking ram? Mar 13 10:37:41 Do you have Little Snitch installed? For some reason, the Emulator freezes up in combination with LS sometimes. Mar 13 10:37:50 At least for me it does. Mar 13 10:38:36 I'm on a late 2012 MacMini with SSD and 16GB RAM. Using the x86 Emulator with GPU Acceleration. And man, I wish my actual device was as smooth as the emulator ;) Mar 13 10:38:39 I have 8gb so don't think its that, don't have little snitch installed either. I think getting a phone would be a good investment for the future anyway. Mar 13 10:38:47 nice lol Mar 13 10:39:02 I'm on a HTC Desire HD on 2.3.5 :\ Mar 13 10:39:21 Do you guys have a preference between the desire and s1? I can't tell the difference lol Mar 13 10:39:56 I can only speak for the Desire and Nexus S. I only really know one person owning a S1, he also uses it as his testing device for 2.3 Mar 13 10:40:09 No specifics there, though. It seems to work for him. Mar 13 10:40:44 I might get a Nexus 4, if I can figure out how. Google is making it difficult Mar 13 10:41:00 If you were in my position what would you go for? Mar 13 10:41:35 I'm in the US now, but if I go to the store while logged in, it redirects me to the US site. and my credit card has a UK billing address which it rejects, so the only thing I can think of is using a prepaid gift card. Mar 13 10:41:41 UK* Mar 13 10:42:19 hi guys, I am trying to build https://code.google.com/p/kwaak3/wiki/BuildInstructions with the latest ndk and I can never get it to work, am I missing something? I've pointed it to the ndk dir and pointed CC to the arm compiler in toolchains/prebuit/windows? Mar 13 10:42:21 Something thats not going to become useless in the next for month etc. Mar 13 10:44:21 sarkie, what errors do you get? Mar 13 10:44:31 apple741: Hard to tell, really. But the Nexus S at least has official images for 2.3, 4.0 and 4.1 and most probably cyanogen mod for 4.2. But yes, it is old hardware, but we've been using it and it has not shown wear so far. Mar 13 10:44:54 Also, iirc it has NFC? You should verify, because out of the three mentioned, I think it's the only one that has. Mar 13 10:45:00 Might be interesting for you, or not :) Mar 13 10:45:31 Thanks I'll look into that, my friend highly recommended the HTC Desire HD ? Mar 13 10:45:35 Nexus S has NFC, yeah Mar 13 10:46:23 I have the Desire HD. It feels good, because it has an aluminium body an dnot plastic. But the screen is meh. When you compare the colors with other screens it really stands out as kind of pale. Mar 13 10:47:05 leslie, http://pastebin.com/73nADukx Mar 13 10:47:07 The Desire has a far better screen than the Desire HD iirc. Mar 13 10:47:41 kakazza: Thats ok as I always have my nexus 7 which has great , would you recommend it in my case for testing? Mar 13 10:48:15 you said your app got rejected, apple741. who by? Mar 13 10:48:31 Look into all three devices. I doubt they all have the same availablility on ebay etc. Mar 13 10:48:42 My recommendations go out for the Nexus S Mar 13 10:54:49 Thanks guys, what would you pick that kakazza ? Mar 13 11:00:09 dont forget io registration Mar 13 11:00:22 ? Mar 13 11:01:04 nevermind Mar 13 11:02:42 ooh, that's today, mikedg. forgot about that... Mar 13 11:04:50 damnit why am i nice Mar 13 11:07:13 do you pay full rate or student rate? Mar 13 11:14:33 full Mar 13 11:14:38 i am not a student Mar 13 11:15:26 If I get the s1 for testing how long until it becomes completely redundant? Mar 13 11:15:34 *nexus s Mar 13 11:15:56 it's already been dropped from updates, apple741 Mar 13 11:16:24 but out of the devices you mentioned, it has the most recent Android version officially available Mar 13 11:16:31 oh wow, I seriously have no idea what I'm doing leslie :) Mar 13 11:16:32 the Galaxy S is stuck at 2.3.6 Mar 13 11:16:38 What would you get? Mar 13 11:16:46 Nexus S, probably Mar 13 11:21:17 leslie: theres not much of a price difference between the s1 and s2? Mar 13 11:21:19 http://www.amazon.co.uk/GOOGLE-NEXUS-UNLOCKED-CELL-PHONE/dp/B004GQSO9I/ref=sr_1_1?ie=UTF8&qid=1363173580&sr=8-1 Mar 13 11:21:27 http://www.amazon.co.uk/Samsung-I9100-Galaxy-Free-Smartphone/dp/tech-data/B004QTBQ2C/ref=de_a_smtd Mar 13 11:22:33 apple741: http://compare.ebay.co.uk/like/290849082102?var=lv<yp=AllFixedPriceItemTypes&var=sbar&cbt=y Mar 13 11:24:10 can i control an activity via ADB shell? like listen for some intents and make a click button action or something? Mar 13 11:25:10 StingRay_: Thanks! For an extra £50 wouldn't it be worth getting a new s2 for testing? Mar 13 11:25:28 oh it's I/O ticket lottery day Mar 13 11:25:49 apple741: a galaxy s2 Vs a Galaxy Nexus device , no Mar 13 11:26:24 Galaxy Nexus is closer to the norm and future norm/average than a s2 Mar 13 11:26:35 higher res screen etc Mar 13 11:26:44 google images available for it Mar 13 11:26:52 not really a comparison Mar 13 11:27:40 Thanks StingRay_ I was just worried about getting it and 6 months from now needing a new device to test on. Mar 13 11:27:59 apple741: oh then get a nexus 4 Mar 13 11:31:23 StingRay_: https://play.google.com/store/devices/details?id=nexus_4_8gb&feature=microsite&hl=en ? Mar 13 11:31:23 I have an Activity styled as Theme.Dialog. How can I setCanceable(false) on that? Mar 13 11:32:35 yes, apple741 Mar 13 11:33:08 Perhaps its not possible? Mar 13 11:33:27 That seems the best fit :) Thank you leslie , StingRay_ , kakazza :) Mar 13 11:33:52 Its really hard to know what you're doing coming into something new like this :) Mar 13 11:34:10 apple741: well, if you dont read up on stuff yeah Mar 13 11:34:23 generally speaking Nexus devices are what you want if you care about updates Mar 13 11:34:38 is there any tutorial/doc mentioning step by step process for setting up unit-tests for C++ code written via ndk in Android ? Mar 13 11:35:06 hi,how can i use a serial device as a keyboard on my app? Mar 13 11:36:01 mndo, not sure that's doable. You can use a USB keyboard in 4.0+ though Mar 13 11:36:09 or do I need to ask somewhere else for ndk related queries ?? Mar 13 11:36:27 correct me, if I asking on wrong channel Mar 13 11:36:43 abhinavmehta: channel is right, this here is everything about app developements (sdk or ndk) Mar 13 11:36:50 here is probably fine, abhinavmehta, but I have little experience of the NDK Mar 13 11:37:16 leslie, i have a scanner connected and if on a terminal i type cat /dev/ttyO1 i can get what the scanner is reading Mar 13 11:37:42 ok mndo, but I think it's outside the scope of this channel Mar 13 11:37:45 timroes: ok Mar 13 11:37:49 leslie: np Mar 13 11:38:08 can i pass message to an activity via adb? Mar 13 11:38:41 leslie, where should i go besides android-dev? I am trying to develop an android app that uses a serial input Mar 13 11:38:56 reenignEesreveR: you mean deliver intents to an activity? Mar 13 11:38:56 reenignEesreveR: http://en.androidwiki.com/wiki/ADB_Shell_Command_Reference Mar 13 11:39:09 and i already have the device working i just need to read from it Mar 13 11:39:10 reenignEesreveR, I believe you can send a broadcast via adb Mar 13 11:39:12 see I'm amused of getting no response on the topic which is so usual in nature(writing unit tests); So I thought, guess may be I'm on wrong channel Mar 13 11:39:25 well, i am not sure what is the exact difference between an intent and a mesasge? Mar 13 11:39:46 anyway read the link StingRay_ gave you, its the right thing to do :) adb shell am Mar 13 11:39:47 what I want to do is, tell the activity to call the function associated with a particular button click Mar 13 11:40:08 (and activity is mine, i can change the source code) Mar 13 11:40:25 it somehow sounds you want to set up an UI test ? Mar 13 11:40:51 sort of yes Mar 13 11:41:14 because there are ui testing toolkits for that :) Mar 13 11:41:30 http://developer.android.com/tools/testing/testing_ui.html Mar 13 11:43:18 not exactly like that Mar 13 11:43:37 its more like i wanna control an app from adb for some automation Mar 13 11:43:40 hard to explain scenario Mar 13 11:44:22 could i get sample code for receiving and processing broadcasts? Mar 13 11:45:39 http://developer.android.com/guide/components/intents-filters.html Mar 13 11:51:08 adb logcat Mar 13 11:51:08 Unable to open log device '/dev/log/main': No such file or directory Mar 13 11:51:19 ? Mar 13 11:53:41 Any clue hwat can i do to have logging working? Mar 13 12:04:40 I have an Activity styled as Theme.Dialog. How can I prevent clicks outside the dialog? Mar 13 12:04:58 I am using onKeyDown to prevent the back key Mar 13 12:05:21 what's your rationale, Quacked ? Mar 13 12:05:47 Why I would want it? Mar 13 12:06:02 yes Mar 13 12:06:12 hetii: what device is that? Mar 13 12:06:43 The dialog pops up to say Countdown complete. If user clicks OK, the alarm sound stops. But if user clicks outside the dialog, the alarm doesnt stop. Mar 13 12:07:10 I don't want accidental clicks outside the dialog Mar 13 12:07:20 ah, hmm Mar 13 12:07:46 I previously used a builder, and then it was possible to just use setCancelable(false) Mar 13 12:13:48 found a solution :) Mar 13 12:14:01 boolean onTouchEvent, and MotionEvent.ACTION_OUTSIDE Mar 13 12:17:23 appel1: Its Huawei U8815, after dial *#*#2846579#*#* and configuring logging and rebboting now i see those logs ;) Mar 13 12:18:07 hetii: that's different.. heh Mar 13 12:24:26 If I get a nexus 4 for testing, which has an aspect ratio of 1.667 and I already have a nexus 7 with 1.6. Will the difference be big enough to test how many graphics fit on different screens? Mar 13 12:25:05 apple741, the emulator is still the easiest way of testing different screen sizes and ratios Mar 13 12:25:31 Ah ok thanks leslie , I'll work on getting that sorted next :) Mar 13 12:31:41 apple741, what leslie said and if you want to test on your n7: https://plus.google.com/107708120842840792570/posts/cz5TxuoNDfG Mar 13 12:32:33 thanks EPG , I'll check that out too :) Mar 13 12:38:39 Morning android dev's. What method is used by Button Saviour to display an activity above all applications including the home screen? Mar 13 12:41:38 guys, any idea why the bytes I get from encrypting in android is different from when i encrypt them on my computer? http://pastebin.com/Fd3nqNWd Mar 13 12:43:24 you don't do the same thing on the different platforms Mar 13 12:44:44 Xerixe: you might do it on a windows platform? Mar 13 12:45:14 getBytes() give you the bytes for the default platform charset, what afaik ist on windows != android, windows != rest of the wordl Mar 13 12:45:21 timroes: Yea. Need them to both get the same results Mar 13 12:45:30 .getBytes('UTF-8"); Mar 13 12:45:32 The notificaton icon for my application is sometimes displayed magnified, I am talking about the small version displayed on the status bar header of the phone. Mar 13 12:45:55 Ok what is the best place where i will start all my services like for network handling and so on. I mean about something global when application start and when its closed(to stop them), I don`t mean about onCreate() in Activity cause those services need to work in background even when activitiy is not in first plain. Mar 13 12:45:58 timroes: Oh, so that would fix it? Thanks a bunch! Mar 13 12:46:03 *plan. Mar 13 12:46:05 not sure, if its that Mar 13 12:46:17 but afaik default charset on windows is not utf-8 (since they suck :D) Mar 13 12:46:35 so its just guessing, you need to try it out Mar 13 12:46:43 Mmkay. Hope it works. Been trying to get it to work since forever. Thanks! Mar 13 12:46:52 Or maybe I'll just set the bytes instead of using a string Mar 13 12:46:53 default charset on windows is UCS-2, IIRC Mar 13 12:46:56 but in general you should specify the charset if you do such things (isn't there even a lint warning for it) Mar 13 12:47:07 hetii: why not start them when you need them to do whatever it is they do and stop them when they're done? Mar 13 12:47:28 timroes: nope. mmkay. thanks for the tip :) Mar 13 12:48:32 they cannot be stopped cause they need wait fro network event and based on those event they will show proper activity Mar 13 12:48:41 *for Mar 13 12:48:53 timroes maybe I've missed this somewhere obvious, but it has always annoyed me to no end that Charset.UTF_8 and Charset.US_ASCII don't exist Mar 13 12:49:05 "UTF-8" seems like an accident waiting to be missspelled Mar 13 12:49:08 hetii: network event? why not use gcm? Mar 13 12:49:33 Chainfire: i genral don't like it if methods take strings aas parameters like that Mar 13 12:50:03 yeah same here Mar 13 12:50:06 don't know how its implemented, but is the carset handling really be done native and not by the JVM? Mar 13 12:50:20 so that there is at all the need for a string parameter (and yeah if its needed definately a constant would be great) Mar 13 12:50:43 windows is said to be CP1252 by default btw Mar 13 12:50:50 und mac -> macRoman (thought mac uses utf-8 too) Mar 13 12:51:10 thats interesting, as Windows handles everything as UCS-2 natively Mar 13 12:51:23 does it still? Mar 13 12:51:37 as far as I know Mar 13 12:51:47 thought i handles everything internally even as utf-8 in newer versions, just the api does that uc-2 (or whatever) thing Mar 13 12:51:47 I've been out of the Windows world for a while now though Mar 13 12:51:55 but I doubt they went from UCS-2 to CP1252 ;) Mar 13 12:52:16 (and don't know how the java stuff is linked to it, i am also out of windows world for quite some time :D) Mar 13 12:52:44 but iirc someone told me, that internally utf-8 is now used, what makes it even more ridicolous that the api is by defualt not utf-8 Mar 13 12:52:57 hah yeah Mar 13 12:53:29 still it would surprise me Mar 13 12:53:42 as the standard API then supports two different charsets, and the internal API uses yet another one Mar 13 12:53:50 though I guess Win32 is fully deprecated nowadays Mar 13 12:54:14 lets hope it :) Mar 13 12:54:30 and then what? we'd only have managed APIs :X Mar 13 12:54:47 yeah :D Mar 13 12:54:50 i like that Mar 13 12:55:03 see how well that worked with Android... 5 years after release, we can finally run a basic three screen app without running out of memory :/ Mar 13 12:55:04 c# ftw :) Mar 13 12:55:17 appel1: well my application need to work with custom device where i implement server. I first hear about GCM. Maybe i will be able to use it as well but i`m not sure if it could be used on my case Mar 13 12:55:33 hetii: ah, ok Mar 13 12:55:34 Chainfire: yeah but c/c++ for application development is quite dead Mar 13 12:55:52 true Mar 13 12:55:58 but sometimes its handy to be able to use it Mar 13 12:56:00 it still have its usage, but for a frontend application, ther eis just no nead to manage the whole memory yourself Mar 13 12:56:09 ofc you should know what you do (in java as in native languages) Mar 13 12:56:39 one of the things that annoys me is all the code duplication Mar 13 12:56:52 but in my opinion taking care about doing it right is very important, and java gets you kind of more out of the way then c does, so you have more time in getting it right and in c i often see ppl using most of the time in getting it working at all Mar 13 12:56:55 didn't I write this in C++ years ago? Oh you'll have to rewrite in Java or C# now Mar 13 12:56:57 fuuu Mar 13 12:57:00 and then we are far away from working right and good Mar 13 12:57:16 but there microsoft comes in handy with managed c++ :) Mar 13 12:57:33 though i don't like microsoft or use windows, c# is imo a way better language than java Mar 13 12:57:40 except that if somebody has used c++, most likely it'll violate some rule about managed c++ ;) Mar 13 12:57:53 agreed Mar 13 12:57:54 and i hop ejava will catch up with it sometime (at least lamda methods in java8 are soooo late) Mar 13 12:58:11 I still use Windows though. But I don't code for it anymore. Mar 13 12:58:16 i guess its what annoys me most about java: missin lambda expression Mar 13 12:58:24 and 2nd most (in contrast to c#) missing properties Mar 13 12:58:30 you clutter your code with getters and setters Mar 13 12:58:39 yup Mar 13 12:58:48 Anders took a nice page from Object Pascal there Mar 13 12:59:00 yeah i dont even use windows anymore since .. 5 years its now i guess Mar 13 12:59:14 only maintained it in the meanwhile as sys admin Mar 13 12:59:32 appel1: if i will use GCM is it possible to decide for with device i send a message and then for if my application is not running then start it and launch some activity depends on message ? Mar 13 12:59:56 hetii: that's the whole point of gcm Mar 13 13:00:19 hetii: every device has an own registration id it gets from gcm (and send it to yoru server) so you can decide which registration ids to send messages Mar 13 13:00:24 hetii: of course starting an activity is generally frowned upon since it interrrupts the user Mar 13 13:00:38 and the built in event handling that can handle multiple event subscribers... *nom* Mar 13 13:03:13 hetii: but if your custom device does not include the google apps gcm wont work Mar 13 13:03:15 appel1: The user will need to work only on activity that i launch for him by message. And in my case the end user is even not allowed to do something else then i prepare for him. Mar 13 13:04:33 well i need to do research about this protocol and check if its possible to use it with devices that use just python. Mar 13 13:06:37 downloading 16gb android sources again... argh why is there a concept of multiple computers fo rone perosn.. Mar 13 13:08:03 ok but meantime back to my origin question about place where i can start once my services. Is there any ? Mar 13 13:08:23 that will be independent from activity Mar 13 13:09:13 Link to that overview of most common android versions? Mar 13 13:09:34 google: android dashboard Mar 13 13:09:43 http://developer.android.com/about/dashboards/index.html Mar 13 13:09:44 hetii: if you want the app to always be running you could start your service as a foreground service at boot :) Mar 13 13:09:49 just to tell you how i always find it :D Mar 13 13:09:52 Thanks, timroes Mar 13 13:09:54 good tip Mar 13 13:10:14 appel1: where can i read more about how to do this ? Mar 13 13:10:30 35 minutes to sign in to I/O registration page ... Mar 13 13:10:55 hetii: foreground need a notification that you start with startForeground, and it will always have an icon in your "status bar" Mar 13 13:12:43 hetii: http://developer.android.com/guide/topics/manifest/receiver-element.html perhaps Mar 13 13:13:32 hetii: http://developer.android.com/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED Mar 13 13:14:39 Quacked: In my case the foreground process will need to care about that my application is always running and restart it when died. The icon is not the problem as long as my application will work on fulscreen Mar 13 13:15:49 what a pain in the ass, having hyper v installed prevents haxm from using vtx Mar 13 13:16:57 mikedg, hmm, vmware has vtx capabilities Mar 13 13:17:22 hetii: if you just need Service to restart when Android kills it you could to return START_STICKY; instead of START_NOT_STICKY Mar 13 13:18:21 Hello guys. Is firing multiple AsyncTask in a service a good idea if I want to to fetch some data through http? There are many ways and I was thinking what's the easiest and most popular way to handle such tasks. Mar 13 13:18:26 kaneda^: how can that help me :) Mar 13 13:18:34 im tryign to do wp8 and android dev on the same machine Mar 13 13:18:41 mikedg, install vmware ofc Mar 13 13:18:49 it will do intel vtx Mar 13 13:18:52 ill probably turn hyperv back on and just use arm emu Mar 13 13:19:12 I guess I will see soon, but what kinda data does Google give on users installing your apps? Mar 13 13:19:30 Quacked: https://gist.github.com/finnjohnsen/3654994/raw/fec4c8412994266c7a721a950f3b9c3b1f244bad/UDPListenerService i use this code and as we can see the START_STICKY is returned in onStartCommand() Mar 13 13:19:43 do they show how many have the app installed or just how many downloads? Mar 13 13:22:03 Hello all, I've been using my actual Nexus 4 for running / debugging apps so far. I am still fairly new to Android. I am using Eclipse 4.2.2 with the Android ADT plugins installed and running. Using the Android SDK Manager I've installed SDK,NDK for 4.2.2 and 2.2 APIs. Along with this also the utilities and tools. I've ensured that the required ARM EABI v7a,Atom x86 and MIPS System Images are installed under Android 4.2.2. When I create a Virtual devic Mar 13 13:22:53 I must be missing something, any ideas on what it could be? Mar 13 13:23:28 Coded1 your message was cutoff at "When I create a Virtual devic" Mar 13 13:23:42 When I create a Virtual device using 4.2.2 API CPU/ABI shows "No system Images installed for this target" but it does populate for 2.2 API Mar 13 13:23:51 :) Mar 13 13:25:01 Number5 usually an IntentService is used for these things (if I understand what you want). I'd generally advise against using AsyncTask in a Service in the first place. Mar 13 13:25:21 Hi anyone use Adobe Air to create Android apps? What is the advantage? Thanks Mar 13 13:26:41 Chainfire, I'm already familiar with Service and had some threads running there. But I thought of AsyncTask to do some stuff and report back for every request. Seems a simple solution to me, unless there might be some future pitfalls. Mar 13 13:27:39 That's why I ask whether it's an ok solution or a design failure. Mar 13 13:28:11 my bones tingle with delight at the prsopect of io reg Mar 13 13:28:51 The AsyncTask looks simple, do some stuff and report back when done. Mar 13 13:29:34 and in its simplicity you'll likely introduce subtle bugs into your app Mar 13 13:30:23 bugs that would have gone way worse if he would have used java threads ;) Mar 13 13:30:23 If I put AsyncTask in the Activity, the user can leave the activity leaving AsyncTask floating around, that's why I want it in the service, the results can be fetched by the activity anytime. Mar 13 13:30:53 JakeWharton, can you give me an example of such a bug? Mar 13 13:30:57 Number5 I'm not sure what you report back and to whom (the main service thread? activities?) but AsyncTasks always work in cooperation with the main thread, and I personally avoid doing anything on the main thread in a service, aside from spawning a new thread ;) Mar 13 13:31:07 the countdown has begun Mar 13 13:31:08 Why when i add to broadcastIntent() - Toast.makeText(getApplicationContext(), "UDP: "+ senderIP + ", message: " + message, Toast.LENGTH_LONG).show(); Mar 13 13:31:11 28 minutes Mar 13 13:31:11 i got then 03-13 14:30:01.939: I/UDP(6796): no longer listening for UDP broadcasts cause of error Can't create handler inside thread that has not called Looper.prepare() Mar 13 13:31:12 Number5: the one you already epxlained. keeping link to an context that doesn't exist anymore Mar 13 13:31:26 inner class AsyncTask, Thread.sleep(20 * 1000);, rotate your phone 10 times very quickly Mar 13 13:31:49 when i don`t use Toast, then all works... Mar 13 13:31:55 timroes, aah, so you have to pass the Activity's context to AsyncTask? Ok, I see. Mar 13 13:32:18 you don't have to, but if you do, keep it in a WeakReference Mar 13 13:32:22 you know you can cancel an asynctask if your activity goes away Mar 13 13:32:41 asynctask is perfectly fine if yu want to throw away data Mar 13 13:32:55 cancel is just going to cancel the Future though which doesn't actually stop background execution Mar 13 13:32:57 Number5: you don't but asynctask automatically takes the handler of the current thread to run the postExecute method on Mar 13 13:33:28 so if your context changes before asyn task finished (what JakeWharton described above) you try to post UI methods to a non existing (or non valid) handler Mar 13 13:33:57 hetii: the error message makes it quite obvious no? you can't show a toast from a thread without a looper Mar 13 13:34:00 timroes, that is in case you have to pass Activity's context. Mar 13 13:34:29 someone tell me that there's no way to detect within the application that the user has had it installed before but uninstalled it and then installed again later?, right? Mar 13 13:34:45 Zharf: correct Mar 13 13:34:51 mikedg, thanks Mar 13 13:34:54 you can still do some funkiness with butchering their sd card Mar 13 13:35:05 or writing bad data to their sms content provider Mar 13 13:35:09 or contacting a server Mar 13 13:35:27 yeah Mar 13 13:35:59 contacting a server is the only viable solution imo Mar 13 13:36:10 im camping out in front of the moscone center for my tickets Mar 13 13:36:51 Zharf: but take care about what you send to the server for identification, don't use some hardware id stuff Mar 13 13:37:15 timroes, I know, I'm just telling them that I'm NOT doing that Mar 13 13:37:16 :p Mar 13 13:37:33 timroes: as pretty much everyone else does? ;) Mar 13 13:37:39 it was a whine from the client that the stupid tracking system tracks the reinstall as a new install Mar 13 13:37:51 appel1: because lots of ppl doing stuff wrong, means everyone else should do it wrong too? Mar 13 13:38:03 timroes: seems to be the android way sometimes :) Mar 13 13:38:07 use the users social security number as thunique identifier Mar 13 13:38:11 so there are a whole bunch of crappy designed app out, so better not starting good designed ones? :D Mar 13 13:38:25 appel1: but ther eis especially (i gues from api 8 or 9 onwards) the android id Mar 13 13:38:36 timroes: perhaps it'll get so bad that Google will be forced to fix Android? :) Mar 13 13:38:38 that also resets when the mobile is factory resetted, and as such won't break problems e.g. when you sell your device Mar 13 13:39:16 on that subject, does anyone know if ro.serial changes between resets ? Mar 13 13:39:21 *factory resets Mar 13 13:39:33 and i already sold 2 of my devices, so I would be pretty pissed of as the buyer, if i cannot use a demo or such anymore, because the previous owner used it once Mar 13 13:40:14 timroes: I like games such as Ruzzle that lets you automatically login based on the device IMEI ;) Mar 13 13:40:27 brilliant solution.. lol Mar 13 13:40:35 is there a how-to on setting up virtual devices that could help me with my problems? (API 4.2.2 doesn't have option of CPU for virtual device, but API 2.2 does) Mar 13 13:40:36 oh so i buy a new device i ofc don't want to play that game anymore :) Mar 13 13:40:46 since i couldn't use my old login Mar 13 13:40:57 timroes: you can :) but the new owner can also use your account Mar 13 13:41:00 but ofc i want the buyer of my used phone to play with my account as much as pobbisle :) Mar 13 13:41:08 timroes: without knowing your username or password Mar 13 13:41:17 and best even can chang my password or so :) Mar 13 13:42:27 i think that is really one of the larger flaws in otherwise pretty good android apps, that they won't use ANDROID_ID but imei or something similiar Mar 13 13:42:45 Android is built on the asumption that developers will bother to do the right thing, and a lot of developers assume that if it compiles it must be the right thing to do Mar 13 13:42:55 ;) Mar 13 13:44:28 Is it per logged in account you can only search once? Or only should search ones Mar 13 13:44:32 (IO tickets) Mar 13 13:44:36 also, for the lolz: http://imgur.com/ZbC7RPv.png Mar 13 13:48:02 I have a popup saying "Countdown completed after: 6m." Suggestions for a better rephrase? :) Mar 13 13:48:30 6m to go Mar 13 13:48:43 CompletED :) Mar 13 13:48:50 The 6 mins have already gone Mar 13 13:49:10 I see Mar 13 13:49:22 then just "Done" Mar 13 13:49:43 I want to notify which countdown that is done Mar 13 13:50:59 this is not cool! i can't get along with designing UI in eclipse. there's no alternative? Mar 13 13:52:26 im biting my nails in anticipation Mar 13 13:52:53 heh Mar 13 13:53:37 hamid, intellij idea Mar 13 13:54:02 IntelliJ has ADT now? Mar 13 13:54:27 no, but it has a designer Mar 13 13:55:13 hmm it can handle better( at least in drag and dropping items )? Mar 13 13:55:35 IntelliJ does literally everything better than Eclipse Mar 13 13:55:42 jrajav, it does Mar 13 13:55:43 word Mar 13 13:55:47 If it has even halfway workable tooling for Android and ADT, I'm going to try it Mar 13 13:55:52 hamid, I can't really compare it to eclipse, I haven't used eclipse in like 5 years Mar 13 13:56:01 (I only just got back into Android dev) Mar 13 13:56:09 jrajav, yes you should use idea :) Mar 13 13:56:36 and use my nifty plugin while you're at it :) http://plugins.jetbrains.com/plugin?pr=idea_ce&pluginId=7146 Mar 13 13:56:43 Zharf, i must give a shot then. thanks. Mar 13 13:56:59 xorgate: Ew tabs. Nasty things. Mar 13 13:57:07 To get back to the AsyncTask in Service question, it's quite valid to execute an AsyncTask in a Service. The UI-thread is actually the Main-thread of the application process. Since Service also run on the Main-thread, it's actually perfectly valid to execute AsyncTasks there. The advantage is, it's independent of any availability of the activity. Mar 13 13:57:14 jrajav hence my plugin! Mar 13 13:57:16 I never have more than 2-3 windows open and I try to keep them separate Mar 13 13:57:37 i always have around 20 open Mar 13 13:58:00 Yeah one of my coworkers basically goes through this exponential tab growth every day Mar 13 13:58:03 but now, switching between them is a joy. Thanks, tabswitcherextreme! Mar 13 13:58:06 No matter how often you change orientation... the result of AsyncTask is passed back in the Service. Mar 13 13:58:11 If it's a good day he'll have half his project open in tabs Mar 13 13:58:29 I always use ctrl+shift+n to switch between files Mar 13 13:59:18 is anyone registering right now? Mar 13 13:59:22 (i assume everyone is...) Mar 13 13:59:28 nope Mar 13 13:59:35 I wouldn't pay for such bullshit Mar 13 14:00:26 That was an odd turnaround Mar 13 14:00:27 lol Mar 13 14:00:40 or especially travel to that country! for any price! Mar 13 14:00:49 waiting for an available ticket... pah Mar 13 14:01:02 An error occurred while trying to fulfill your request. Mar 13 14:01:02 Error: 500 Server Error Mar 13 14:01:03 wtf Mar 13 14:01:03 and server error, woot Mar 13 14:01:05 got logged out Mar 13 14:01:08 i like the Don't "Hammer the JavaScript endpoints using the JS Console" Mar 13 14:01:33 anyone got a ticket? Mar 13 14:01:35 no surprise really with the server error Mar 13 14:02:23 Just got the "Try again. We couldn't find you a ticket, but there still might be tickets left!" Mar 13 14:03:17 wtf with the tickets becoming available as well... is Sergey hand drawing them ? Mar 13 14:03:35 Oh, you're talking about I/O Mar 13 14:03:41 DON'T REFRESH :-P Mar 13 14:03:44 I thought Rockmaninoff was referring to IntelliJ Mar 13 14:03:44 :P Mar 13 14:03:52 I've already had 3 server errors Mar 13 14:03:54 <.< Mar 13 14:03:58 I'm all 200s :/ Mar 13 14:04:11 I'm not even trying to get a ticket Mar 13 14:04:21 I got a Nexus 4 fairly early - used up all my Google luck. Mar 13 14:04:39 Yay queuing Mar 13 14:04:47 how can I determine in the onCreate() method of an activity whether a service is running or not? (service belongs to that app) Mar 13 14:05:11 mystiiq, why do you care? Mar 13 14:05:19 if you need to use the service, just bind to it Mar 13 14:05:28 Anyone here gotten a ticket? Mar 13 14:05:35 my office hasn't Mar 13 14:05:40 not here marcab Mar 13 14:05:43 Zharf: I want to set the switch button to correct state Mar 13 14:05:55 button which starts/stops the service Mar 13 14:06:11 Hallelujah :) Mar 13 14:06:16 requeued Mar 13 14:06:34 mystiiq: you wont get an answer until registration is over Mar 13 14:06:48 f2prateek1 got one? Mar 13 14:06:53 yup Mar 13 14:06:58 ooh Mar 13 14:07:13 up to like 10th couldnt get you a ticket please try again Mar 13 14:07:16 mystiiq, I don't think you can know without binding to the service and asking it if it's running, in which case I'd say it is running... though of course you could keep an internal state within the service to see if it's been started with startService... Mar 13 14:07:21 mystiiq, but I could be wrong :) Mar 13 14:07:24 this google io ticket registration stuff sucks Mar 13 14:07:32 yup Mar 13 14:07:39 I mean... is it really queueing if you can get kicked out? Mar 13 14:07:40 hey TachyonDev Mar 13 14:07:44 yo guys Mar 13 14:07:50 TachyonDev: if you get 2, you owe me one Mar 13 14:07:50 mystiiq try this https://gist.github.com/anonymous/b1d9fda2da8ad5eeeabb Mar 13 14:07:52 :D Mar 13 14:07:56 haha seriously Mar 13 14:08:11 though I hear transfer ability is pretty much gone this year Mar 13 14:08:14 lol Mar 13 14:08:18 that's good though Mar 13 14:08:41 my spinners be going Mar 13 14:08:43 Wait for 5 minutes, get kicked out. awesome Mar 13 14:08:44 google needs to build their io registration system to scale Mar 13 14:08:47 like the rest of their shits Mar 13 14:09:05 don't refresh my pants Mar 13 14:09:12 this is so painful Mar 13 14:09:14 man! how many are trying to get in though?entire woorld? Mar 13 14:09:16 hey nseidm1 Mar 13 14:09:27 howdie homies Mar 13 14:09:28 ikr, just a few hundred thousand at the same time, I'm sure Mar 13 14:09:43 few hundred thousand vying for 5000 tickets Mar 13 14:09:54 xorgate: tried something similar yesterday, my app crashed for some reason. does this require any special permissions? Mar 13 14:10:13 Google has never been that good at short-term scaling Mar 13 14:10:16 no, if it did logcat would tell you Mar 13 14:10:26 at least it wasnt that cold fusion server from 2 years ago Mar 13 14:10:28 that was a joke Mar 13 14:10:30 Any really bursty events to a single system of theirs just explodes Mar 13 14:10:48 spin baby, spin! Mar 13 14:10:56 this is like waiting for my exam results. pretty sure its going to be bad. Mar 13 14:11:18 I'm actually expecting not to go Mar 13 14:11:29 I kinda need to pee Mar 13 14:11:32 lol Mar 13 14:11:37 noooooooo, don't pee Mar 13 14:11:37 I need another coffee Mar 13 14:11:40 Somehow dreamed I would have a ticket already Mar 13 14:11:41 yeah and since we got to preorder glass last year, they said they want more people to experience it Mar 13 14:11:47 that was not very bright of me Mar 13 14:11:50 i just got a ticket Mar 13 14:11:54 i wonder if they are looking to actually not allow people from last year to go Mar 13 14:12:07 doubtful Mar 13 14:12:38 Spinning on two comps, but same google acc. Would the second comp reset the first one I wonder Mar 13 14:13:11 They alluded to that, but can't really know for sure Mar 13 14:14:11 Zooklubba: it says not to do that right on the waiting screen Mar 13 14:15:05 TachyonDev it just mentioned browser or tab. I first read that like same comp Mar 13 14:15:13 but you are most likely right Mar 13 14:16:23 we might have one Mar 13 14:16:28 1 minute timeout on wallet Mar 13 14:16:32 and its spinning Mar 13 14:16:33 :( Mar 13 14:16:48 Napalm|work: me too Mar 13 14:16:51 bah Mar 13 14:16:54 i signed in with all my google accounts in different browsers Mar 13 14:16:55 (╯°□°)╯︵ ┻━┻ Mar 13 14:17:27 Napalm|work: check wallet.google.com Mar 13 14:17:41 payment time ranout :| Mar 13 14:17:42 my payment window looks like it's dead, but the transaction shows up there Mar 13 14:17:43 this is stupid Mar 13 14:17:55 I just want a payment window Mar 13 14:17:59 ┬─┬ ノ( ゜-゜ノ) Mar 13 14:18:51 :(((((( Mar 13 14:18:58 waiting again Mar 13 14:19:09 god help us.god help us all. Mar 13 14:19:41 waits Mar 13 14:19:45 and waits Mar 13 14:19:50 google i/o registration overloaded??? Mar 13 14:19:51 payment window spinning Mar 13 14:19:57 no way Mar 13 14:20:45 come on wallet, you can do it! Mar 13 14:20:48 other people have tickets now? Mar 13 14:21:02 fuck yeah Mar 13 14:21:03 got it Mar 13 14:21:05 no no no, i want one :'( Mar 13 14:21:12 TachyonDev: aply for another.. you owe me dude Mar 13 14:21:19 im working on it Mar 13 14:21:23 but it dont think it will work Mar 13 14:21:24 I think he has to be on your G+? Mar 13 14:21:25 wtf Mar 13 14:21:30 non transferable right? Mar 13 14:21:31 my second browser on my second pc Mar 13 14:21:36 shreesh: right Mar 13 14:21:39 fuuu TachyonDev :( Mar 13 14:21:48 got a ticket :) Mar 13 14:22:13 So just me and a couple of hundred thousands who's still left in the cold Mar 13 14:22:13 meh Mar 13 14:22:16 my boss still hasn't been able to get one Mar 13 14:22:25 TachyonDev: question.. did you use the same google account as last year? Mar 13 14:22:30 yeah Mar 13 14:22:36 but i got transferred in Mar 13 14:22:42 wait why wont the site say it worked Mar 13 14:22:43 wtf Mar 13 14:22:46 its in wallet Mar 13 14:22:49 still giving me a timer Mar 13 14:23:06 i have a cancelled charge at wallet.google.com but am trying again. :( Mar 13 14:23:19 I give up, next time it times out I'm not even retrying Mar 13 14:23:26 back in the queue! Mar 13 14:23:27 going to pay again Mar 13 14:23:29 with another card Mar 13 14:23:42 nseidm1: dont give up Mar 13 14:23:42 worst case, i get a credit Mar 13 14:23:50 fine, 1x more Mar 13 14:23:53 so the window never goes away for me Mar 13 14:24:35 anyone trying for google io ticket? Mar 13 14:24:41 wait huh, TachyonDev the pay a ticket window? Mar 13 14:24:44 the whole thing is suck a waste of time :( Mar 13 14:24:45 I suspect thousands are ;) Mar 13 14:24:47 dvdh: i just got one Mar 13 14:24:51 nice Mar 13 14:24:53 my payment screen timed out, but Wallet shows the transaction as Pending Mar 13 14:24:55 the pay window for this gets stuck Mar 13 14:24:56 anyone else? Mar 13 14:24:56 just got two others here at work get tickets Mar 13 14:24:58 but not me Mar 13 14:25:07 dvdh: definitely nobody here is trying for tickets Mar 13 14:25:08 wallet just times out for 2 tickets now :( Mar 13 14:25:08 i have a pending charge in wallet Mar 13 14:25:11 haha Mar 13 14:25:24 I'm making a custom style for a button, and I use #fff3f3f3 as value for the . But I can still see a tiny difference between that fff3f3f3 I use as border and the background. Why is that? Mar 13 14:25:26 can several google accs have the same CC? Mar 13 14:25:33 Is it the wrong value? Mar 13 14:26:17 Quacked: definitely an awkward time to have a question. We're all geeking out right now hardcore. Mar 13 14:26:40 i have a feeling i got one and its all backed up Mar 13 14:26:43 Google are evil, they won't even say sorry couldn't find tickets. Mar 13 14:26:47 why can't they just do preorder and save people some time :( Mar 13 14:26:50 I have a successful pending charge on my corporate amex in wallet Mar 13 14:26:53 so what's with the canceled wallet? Mar 13 14:27:12 screw it, Im going for it Mar 13 14:27:15 bathroom break! Mar 13 14:27:36 * timroes enjoys not having this stress, and watching i/o over stream Mar 13 14:28:10 Zooklubba: yeah, i think its already "sold out" time. Mar 13 14:29:22 that sucks Mar 13 14:29:31 a coworker just got one about 30seconds ago Mar 13 14:29:33 they are not sold out Mar 13 14:29:39 you're a lying liar Mar 13 14:29:42 the wallet just keeps timing out and people go back to queue Mar 13 14:29:52 i got a ticket, but the wallet thing just timed out Mar 13 14:29:55 motherf... Mar 13 14:29:59 he said his wallet is timing out on him Mar 13 14:30:02 happened twice now Mar 13 14:30:03 more internal errors Mar 13 14:30:21 so, there are tickets in queue, just no one is able to pay for one :) Mar 13 14:30:33 lol Mar 13 14:30:40 dont say that Mar 13 14:30:55 ugh can't pay Mar 13 14:30:56 welp Mar 13 14:30:58 Can't pay Mar 13 14:31:00 Where can I find the default values for Widget.Holo.Light.Button? It looks like there is some gradient going on Mar 13 14:31:02 I just hope they fix wallet when I eventually get my ticket \o/ Mar 13 14:32:05 got a ticket but failed to pay Mar 13 14:32:48 Quacked: you could try downloading the android source to give you a good idea of whats going on Mar 13 14:32:48 yea seen that 3 times now Mar 13 14:33:25 Napalm|work you gotten a ticket thrice or just that 3 ppl had the wallet crap? Mar 13 14:33:54 at this point, four people in my team have seen ticket page, only one has gotten a ticket Mar 13 14:34:00 (wlalet issues) Mar 13 14:34:17 I want to see the holy graal, aka ticket page Mar 13 14:34:27 lol me too Mar 13 14:34:31 the great rush isn't for the tickets... its for a hotel Mar 13 14:34:32 Quacked: the android sdk has it Mar 13 14:34:39 under platform, in the data/res folder Mar 13 14:34:58 this trip is going to be expensive Mar 13 14:35:12 anyone here actually uses http://androidannotations.org/ with any success? I tried it out last night, but it still feels weird Mar 13 14:35:22 Can find some decent hotels through expedia etc bryanl. not that bad at least not previous years Mar 13 14:35:39 bryanl: hotel wasn't a big deal if you're willing to walk a few blocks. Mar 13 14:35:42 looks like I won't be getting a ticket, still stuck in queue Mar 13 14:35:46 well, not that bad compared to flights and shit, ofc depending on where you live Mar 13 14:35:54 same same pfn :( Mar 13 14:36:08 last year i was at the Fairmont, which was really nice, but up a huge hill so walking back after the sessions was really tiresome Mar 13 14:36:16 I had Parc 55 with a view room Mar 13 14:36:19 it sucked Mar 13 14:36:22 i don't remember what i paid the last few years. i just got a place at the westin. Mar 13 14:36:33 mold and shit Mar 13 14:36:36 i'll worry about the flight later Mar 13 14:36:38 switched rooms too. meh Mar 13 14:36:44 flights are such a ripoff Mar 13 14:36:54 i'm doing andevcon too Mar 13 14:37:58 Economy for a 12h flight or whatever it is Mar 13 14:38:12 We found you a ticket Mar 13 14:38:15 i think i have enough virgin america points for a free flight Mar 13 14:38:27 lagann: thanks, but can't see data under platform Mar 13 14:38:56 if this is the right place: https://android.googlesource.com/ Mar 13 14:39:01 Quacked: you have to choose the platform version Mar 13 14:39:07 the resources change per version Mar 13 14:39:10 for instance Mar 13 14:39:44 android-sdk/platforms/android-17/data/res/values/themes.xml Mar 13 14:39:46 Can I press the X Mar 13 14:39:52 that's the themes for sdk 17 Mar 13 14:39:52 and do the pay with google wallet again? Mar 13 14:39:55 or should I just wait Mar 13 14:40:25 you'll want to look in the themes.xml and styles.xml to find all the default values for things Mar 13 14:40:25 ive still got this pending $900 charge in wallet, but im back in line Mar 13 14:40:32 TachyonDev: me too Mar 13 14:40:39 I don't know if I have a ticket or not Mar 13 14:40:42 right Mar 13 14:40:46 I cant press start now button. meh Mar 13 14:41:13 If you have a pending charge you almost certainly have a ticket, no? Mar 13 14:41:24 you would think Mar 13 14:41:56 So Mar 13 14:41:56 i got a call from the bank Mar 13 14:41:57 FYI Mar 13 14:41:57 How should i register BroadcastReceiver to be able to process data from https://gist.github.com/finnjohnsen/3654994/raw/fec4c8412994266c7a721a950f3b9c3b1f244bad/UDPListenerService ? Mar 13 14:42:01 pressing the X does not work Mar 13 14:42:07 It just grayed out the entire page Mar 13 14:42:47 Back to the queue! Mar 13 14:42:56 lagann: got it, thanks Mar 13 14:43:05 Quacked: you're welcome Mar 13 14:44:17 ok i have it by: registerReceiver(receiver, new IntentFilter(UDPListenerService.UDP_BROADCAST)); Mar 13 14:44:24 i forgot to set the intent filter... Mar 13 14:44:29 omg Mar 13 14:44:36 wallet is just sitting here waiting Mar 13 14:44:41 Napalm|work had that too Mar 13 14:44:45 nooo Mar 13 14:44:49 5 minute passed, back to the queue :'( Mar 13 14:45:00 declined my mastercard straight away, and visa is just waiting Mar 13 14:45:06 oh Mar 13 14:45:09 I couldnt even press buy Mar 13 14:45:13 it might be an issue with googles connection to the visa gateway Mar 13 14:47:20 im like the only person who has never seen the ticket page Mar 13 14:47:39 i'd like to at least fail on wallet Mar 13 14:48:15 doldrim: don't worry, my boss and a coworker have never seen it Mar 13 14:48:16 doldrim: count me in. Mar 13 14:48:28 sucks :/ Mar 13 14:48:32 doldrim it's not cool. It's just grayed out and you get all depressed when the timer runs out Mar 13 14:49:24 got a ticket Mar 13 14:49:38 wtf Mar 13 14:49:39 sold out Mar 13 14:49:46 i think i got the last ticket Mar 13 14:49:47 fu google Mar 13 14:50:35 :) Mar 13 14:50:35 totally expected Mar 13 14:50:36 mine still says searching Mar 13 14:50:52 2 of 3 stopped searching Mar 13 14:51:18 https://developers.google.com/events/register/noticket/ lall Mar 13 14:51:50 i've gone 3 years in a row Mar 13 14:51:59 they should just grandfather me in to ION Mar 13 14:52:56 I've not gone three years in a row Mar 13 14:53:10 fuck! sold out Mar 13 14:53:17 goddamnit google Mar 13 14:53:18 hang on Mar 13 14:53:19 you suck Mar 13 14:53:23 dudes Mar 13 14:53:30 last year some went back in the queue later Mar 13 14:53:30 sonofabitch Mar 13 14:53:33 you never know Mar 13 14:54:24 I hate io's ticket system, wtf bullshit is this Mar 13 14:54:30 yeah mine will probably end up back in the queue Mar 13 14:54:36 because it charged my card but didnt give me a ticket Mar 13 14:54:40 this sucks Mar 13 14:54:51 i just called amex and they said there is nothing wrong with the charge Mar 13 14:54:54 I'm still entering the queue with the old link. screwit Mar 13 14:55:32 the not being able to pay bug is however shit. Just watching the counter and seeing it dissappear Mar 13 14:56:30 Zooklubba: old link? Mar 13 14:56:43 ticketsearch link Mar 13 14:56:47 I still get the spinner for a while Mar 13 14:56:56 always redirected to the noticket page tho :P Mar 13 14:57:02 after a while Mar 13 14:58:20 http://i.imgur.com/G4IOlR5.png that was as far as I got with wallet Mar 13 14:59:09 Zooklubba: my trick... when that happened the second time.. i opened google wallet in a new tab and then made the payment on the pending transaction from there and it worked Mar 13 14:59:52 I opened a new tab and got a bit closer. had http://imgur.com/Un9hCb1.png a long time Mar 13 15:00:00 TachyonDev: my charge is still pending, so is another persons that i work with Mar 13 15:00:10 yeah Mar 13 15:00:18 amex said it looks fine to them Mar 13 15:00:27 so i guess wait and see and bitch at them Mar 13 15:00:39 I was able to get through the full regiration just now. Confirmation code and everything. Declined my CC but it liked my ATM for some reason. Mar 13 15:00:54 what are the core expectancies of IO this year? Mar 13 15:01:03 So question is, just sit here and be angry. Hope that they release some more Mar 13 15:01:11 or go home from work and drink a beer and cry Mar 13 15:01:18 a compute cloud we can actually use? Mar 13 15:01:49 jayd16: this lady from google called me every day for two weeks to get us to use their compute cloud. Mar 13 15:01:50 TachyonDev: I'm pretty sure you got a ticket Mar 13 15:01:57 FUCK Mar 13 15:02:03 charge just got cancelled Mar 13 15:02:07 jayd16: i finally just told her we weren't interested Mar 13 15:02:18 Napalm: looks like we're boned Mar 13 15:02:26 :-( Mar 13 15:02:47 hum Mar 13 15:02:50 opening the claim page Mar 13 15:02:55 I get redirected to a form Mar 13 15:02:58 register form Mar 13 15:03:00 11:01:01 < belgianguy> what are the core expectancies of IO this year? Mar 13 15:03:08 Google launches a few new things, everyone gets swag. Mar 13 15:03:14 I got redirected to the reg page last time I tried that Mar 13 15:03:17 Also, some developer talks or something but no one cares about those Mar 13 15:03:23 half the conference leaves after getting the swag Mar 13 15:03:29 bryanl: what do you do? We were one of the biggest GAE users but we wanted raw boxes. Went to IO last year and the compute cloud guys told us it was just academic right now, so we went to ec2. No calls from google. Mar 13 15:03:33 ahh nvm Mar 13 15:03:52 lov you forgot standing outside of Moscone selling the swag Mar 13 15:03:54 lov: lol, yeah, as long as there's SWAG we'll be fine Mar 13 15:03:54 jayd16: one of my products does simulations for diseases and other things Mar 13 15:04:16 jayd16: and we are definitely not academics. i like to get paid Mar 13 15:04:55 do many Europeans attend IO? Or is it exclusively American? Mar 13 15:05:04 I would've attended it Mar 13 15:05:09 if I had gotten a ticket Mar 13 15:05:12 belgianguy I've met a handfull of Swedes the times I've been there Mar 13 15:05:16 No ticket this year tough Mar 13 15:05:19 th Mar 13 15:05:25 met several other Europeans last year as well Mar 13 15:05:39 ahh, good to know Mar 13 15:05:49 hey Chainfire, did you get a ticket? Mar 13 15:05:58 bryanl: Still though, its CPU bound simulation, which is what they want to show off... We just do a midly impressive amount of consumer facing type stuff Mar 13 15:06:02 lov: did you get a ticket? Mar 13 15:06:21 im in bitches, fuck you all im better than God Mar 13 15:06:22 no, I did not get a ticket. Payment timed out on me. I have a pending transaction in wallet, but I don't think I'm getting anything for that. Mar 13 15:06:38 jayd16: my stuff is CPU bound as well. not sure why we got a call back. hopefully they fix their issues and open it up wider Mar 13 15:07:02 bryanl: no I mean your stuff is CPU bound, we aren't Mar 13 15:07:06 ah Mar 13 15:07:15 Chainfire: pending transactions are getting killed Mar 13 15:07:20 I dont even have a pending transaction. Mar 13 15:07:23 Napalm|work: I made a token registration attempt but I didn't plan on going anyway Mar 13 15:07:25 jayd16: ah. i see Mar 13 15:07:36 mikedg just the transaction, I hope Mar 13 15:07:40 so Google IO...I hope I get another minamlist glowing orb to put next to my Q Mar 13 15:07:40 i want to go pick up this google glass i signed up for last year at IO Mar 13 15:07:45 that's all i really want Mar 13 15:07:48 lov: you don't need a ticket, with all the "favours" you do ;) Mar 13 15:07:56 jayd16: my Q sits under my tv. never to be turned on again Mar 13 15:08:00 belgianguy: I'm not blowing anyone for a ticket. Mar 13 15:08:04 bryanl I wasn't allowed to sign up :( Mar 13 15:08:08 My Q just collects dust Mar 13 15:08:10 I like mine! I use it all the time Mar 13 15:08:12 actually, let me rephrase; I'm not blowing anyone, period. Mar 13 15:08:17 i found my Q on the floor in the corner of my office Mar 13 15:08:20 i dont know how it got there Mar 13 15:08:23 lov: that's ... better ;p Mar 13 15:08:26 that's would be a neat meme. Nexus Qs collecting dust Mar 13 15:08:29 mikedg: haunted Q. Mar 13 15:08:32 But all the weird transactions, any expect more tickets to be released or so? hum Mar 13 15:08:34 Q in your cube Mar 13 15:08:52 fuck this im out.. Mar 13 15:08:54 Zooklubba: very doubtful. There's a hard cap due to fire regulation limits Mar 13 15:09:12 Yeah, just thought if tickets were booked and were to be released or whatevs. Mar 13 15:09:17 This blows Mar 13 15:09:33 Well here events sometimes have a "waiting list" Mar 13 15:09:39 but I assume IO doesn't have that? Mar 13 15:09:48 not really. Mar 13 15:09:56 the wait list is called ebay. Mar 13 15:10:09 there are more way to get tickets Mar 13 15:10:20 ha, no tickets on ebay. yet. Mar 13 15:10:22 ah, that sucks, I think they made such options illegal here (wrt festivals) Mar 13 15:10:22 I'm sure there'll be a competition or two where you can win a chance to buy a teicket Mar 13 15:10:36 non-transferamble but I guess you could make a generic Google+ account and sell the account on ebay Mar 13 15:11:41 Didnt they sell tickets outside moscone like the day before 2011? Mar 13 15:11:57 well, that sounded like a random thing. If I know remember correctly Mar 13 15:11:57 watch out for scammers Mar 13 15:12:14 by "they" you mean "scalpers" Mar 13 15:12:51 no lov, as in google. Mar 13 15:12:58 what Mar 13 15:13:16 I don't remember that at all. Mar 13 15:13:38 I dream a lot :/ Mar 13 15:14:01 this will be my 4th? or 5th? io Mar 13 15:14:04 i dont remember Mar 13 15:14:15 numbah 5 Mar 13 15:14:47 I so wanted to go to my third :'( Mar 13 15:17:37 mikedg: any expectations? Mar 13 15:17:53 mikedg: did you get a tiket? Mar 13 15:17:54 ticket Mar 13 15:18:48 he did Mar 13 15:19:20 i expect that we will see Google Glass applications in industrial uses like porn Mar 13 15:20:04 TachyonDev: did you? Mar 13 15:20:09 my transaction is still pending Mar 13 15:20:09 Glass would be ideal to watch porn without people snooping over your shoulders Mar 13 15:20:18 "Your purchase is processing." Mar 13 15:20:20 belgianguy, couldnt they...ya know...see it anyways? Mar 13 15:20:24 and just get some reflective glasses Mar 13 15:20:28 Napalm|work, still processing? suck Mar 13 15:20:35 belgianguy: you're a weird dude. Mar 13 15:20:37 io registration so broken Mar 13 15:20:39 every friggin' year Mar 13 15:20:48 lov: thanks, I guess Mar 13 15:21:01 I guess I'm just not going to give a shit about google io anymore Mar 13 15:21:04 no i didnt Mar 13 15:21:08 i got fucked Mar 13 15:21:14 wallet bent me over Mar 13 15:21:19 same Mar 13 15:21:23 my last transaction was just cancelled Mar 13 15:22:32 QQ Mar 13 15:22:36 I bet it's easier to get into the developer sandbox than get a real ticket Mar 13 15:22:48 lov: I just meant that content consumption would be more private, like headphones vs speakers Mar 13 15:22:50 so get your fancy Glass based start ups going Mar 13 15:23:18 you now have Glass vs an LCD Mar 13 15:23:31 belgianguy: that's true, but I'm still not watching porn while anyone else is around. Mar 13 15:23:41 lov, agreed Mar 13 15:23:51 lov: that's a good principle Mar 13 15:24:18 otherwise you're going to say something like "and it's like that our 3rd quarter fuckass will be oh shoot sorry sorry guys" Mar 13 15:25:13 for the love of god turn it off! Mar 13 15:25:19 porn streaming to your presentation Mar 13 15:25:35 kaneda^: lol, through a Hangout Mar 13 15:25:44 different kinds of hangouts. Mar 13 15:25:51 bangouts, as mikedg said Mar 13 15:25:58 LOL Mar 13 15:26:07 now there's a Startup idea Mar 13 15:26:14 belgianguy, i'd join that startup in a heartbeat ;) Mar 13 15:26:38 kaneda^: hi5 Mar 13 15:26:42 it's actually catching on Mar 13 15:26:51 mikedg, o/ Mar 13 15:27:06 canncelled Mar 13 15:27:10 OMG Mar 13 15:27:11 wtf Mar 13 15:27:20 my big prediction for IO is that pictures of the nexus 8 leak mere minutes before its announced Mar 13 15:27:37 mikedg: would that be Moto's X Phone? Mar 13 15:27:49 i thought the nexus q leak last year was a joke until it was actually announced Mar 13 15:27:57 though it still was kind of a joke... Mar 13 15:28:20 it looked nice, but didn't really have a purpose AFAIK Mar 13 15:28:37 they should work on making phones that dont break when you drop them in the toilet Mar 13 15:28:42 ugh shitty day Mar 13 15:28:45 im already sick Mar 13 15:28:47 im leaving Mar 13 15:28:59 TachyonDev, you're always leaving, in the opposite direction in time Mar 13 15:29:00 damn Mar 13 15:29:01 so many people ragging on the Q. I like it. They should have dropped the amp (or had an ampless version) and dropped the price way down. Mar 13 15:29:24 i gotta a ticket and i already feel sick Mar 13 15:29:34 jayd16: I liked the Q, but it just disappeared so quickly from the radar Mar 13 15:29:53 mikedg: lol, rubbing it in some more :D Mar 13 15:30:24 mikedg: i might have to rob you of that ticket :D Mar 13 15:30:26 hehe Mar 13 15:30:33 yeah, it must have been a problem inside google as well. They killed it so quickly. Mar 13 15:30:50 perhaps more will come into the market Mar 13 15:31:48 jayd16: well yeah, if they did something like that now, they'd probably have to compete with the Ouya etc Mar 13 15:32:40 they still haven't done much with google tv either Mar 13 15:33:15 More like the Ouya would have to compete with them, but yeah. The other issue is they should actually update googleTV stuff with media streaming the Q and then the Q hardware just becomes a novelty. Mar 13 15:33:15 I'm slightly dissappointed in Google TV as well, as an offshoot of Android, they could have done quite some more with it Mar 13 15:33:49 GoogleTV is still on 3.something! Mar 13 15:34:12 because atm Samsung and friends are pushing AllShareCast etc, instead of having an Android WiFi Direct implementation Mar 13 15:34:30 or is it called Miracast Mar 13 15:34:49 this year will be a bad year. Mar 13 15:36:08 I think interdevice connectivity could be big Mar 13 15:36:33 Hey, I created an in-house app that used a VideoView to play an MP4 video file over HTTP. It worked wonderfully. Now, I have a new set of hardware with a different processor, and the VideoView is only throwing errors on this MP4 file. Mar 13 15:36:53 I am now reading online that VideoView does not support streaming over HTTP? Mar 13 15:36:58 Can anyone verify this? Mar 13 15:37:16 but then again, they're doing a lot with thier fiber service. Does that use GoogleTV code for the set top box or is it something different entirely? Mar 13 15:37:48 jayd16: no idea, but Fiber is indeed very impressive Mar 13 15:38:20 FFS Couldn't get a Google IO ticket Mar 13 15:38:54 hwrd|work you are welcome to my place for whisky and bitch about how stupid the registration path was this year. Mar 13 15:39:15 Zooklubba: It wasn't stupid, I just wish it would have… worked Mar 13 15:39:24 well, I call it stupid if it didnt work Mar 13 15:39:30 hopefully they just pack in some fiber with the swag bags. Maybe have a big roll. =p Mar 13 15:39:51 I mean, I write shit that doesn't work all the time. But I'm also not a team of the worlds best engineers with multiple years of practice. Mar 13 15:39:54 Wouldnt let me press buy button. Just spinning until the timer ran out Mar 13 15:40:08 i never write stuff that doesnt work Mar 13 15:40:22 i'll write something that wont work perfectly, but it wil ALWAYS work somehow Mar 13 15:40:26 Does anyone know how to lift the 'safe-for-streaming' limitation in an app? Mar 13 15:40:39 kaneda^: writing a service that supports what is effectively a DDoS is difficult. Mar 13 15:41:04 lov, i'm familiar with DDoS mitigation techniques and (D)SDoS attacks Mar 13 15:41:10 i'm not sure if that helps though Mar 13 15:41:38 hi guys, why my code http://codepad.org/HVxqSLhB does not show anything on the imageview? Mar 13 15:41:39 kaneda^: Probably not, since it still happens to google Mar 13 15:41:46 hwrd|work, there's only so much you can do Mar 13 15:42:18 lov: Not sure its a ddos… Its not like hundreds of millions of people were trying to register... Mar 13 15:42:31 no, just hundreds of thousands, in the span of 5 minutes. Mar 13 15:42:45 which is a LOT of concurrent traffic Mar 13 15:42:57 you'd need a hundred or more instances to effectively manage it Mar 13 15:42:59 your resources are also limited because this is only important for an hour, so it's not like you're going to build massive infra around this. Mar 13 15:43:05 right Mar 13 15:43:24 lov: yeah, but you still would think they have it… seeing as they launch products all the time and fuck it up Mar 13 15:43:43 do they launch products that are only supposed to be available for an hour? Mar 13 15:43:48 well, it surprises me that with as much band as they own that they cant redirect some of that traffic on the fly Mar 13 15:44:01 lov, well, they are a high availability company Mar 13 15:44:13 lov: The nexus 4 sold out somewhere around that timeframe Mar 13 15:44:15 * lov shrugs Mar 13 15:44:20 my basic idea is just simply like this http://codepad.org/nLVclhGR, I tried this in a test project, and it works, but dont know why it failed to work in my previous paste Mar 13 15:44:29 hwrd|work: yeah, but that's an anomoly since no other nexus ever came close to selling out Mar 13 15:44:33 :D Mar 13 15:44:36 hope anybody could have a look.. Mar 13 15:45:19 anomaly? Mar 13 15:45:58 what? Mar 13 15:47:57 zhangxaochen: you're drawing to a canvas, but you're never actually forcing a redraw? Mar 13 15:48:21 lov, do you have to force a redraw? Mar 13 15:48:28 yes. Mar 13 15:48:33 _debugDrawView.setImageBitmap(_ Mar 13 15:48:34 lov, erm, never mind taht, i repeatedly fill a buffer so it's not the same Mar 13 15:48:42 this only sets the imageview to the current bitmap. Mar 13 15:48:45 it doesn't update the image. Mar 13 15:49:46 lov, but this http://codepad.org/aQgHnyaQ could really draw a line on the screen. Is that wrong? Mar 13 15:50:11 i tested it just now Mar 13 15:50:47 zhangxaochen: there's more than you pasted there that actually caused the line to be drawn. Mar 13 15:51:52 lov, the whole file contains nothing else i think... http://codepad.org/BLZfQO9g Mar 13 15:52:15 so do i really need a force redraw? Mar 13 15:52:21 aha. Mar 13 15:52:28 it actually does, you just don't realize it. Mar 13 15:52:45 you haven't actually drawn your layout by this point yet, iirc Mar 13 15:52:57 so you're giving your imageView a bitmap, which it will then later use to actually do the drawing Mar 13 15:53:10 hmm, you usually have a Paint and a Canvas right? Mar 13 15:53:18 and you drawBitmap ont he canvas with the paint, and you're done Mar 13 15:53:27 regardless, the general flow is that you draw into the bitmap, and THEN you call setImageBitmap. Mar 13 15:53:42 I don't know. It's been a while since I've done this. Mar 13 15:53:54 If you're doing realtime drawing, strongly consider using a SurfaceView instead. Mar 13 15:54:06 that's much more suited to doing arbitrary drawing via canvas Mar 13 15:54:43 yes, a SurfaceView is waht i use actually Mar 13 15:54:49 a GLSurfaceView i believe Mar 13 15:55:31 it's really easy to make overlays this way Mar 13 15:55:45 ok thx for your advice guys.. i didnt know that Mar 13 15:56:37 when is the layout drawn? after onCreate? Mar 13 15:56:50 or during? Mar 13 15:57:28 After Mar 13 15:58:43 ugh may is going to be travel hell week Mar 13 15:59:23 i'm looking forward to a bit of travel for interviews, i've pretty much decided not to accept the conditions of renewal of my current contract Mar 13 15:59:23 may 14-18 io, may 20-22 st louis, may 24-26 atl Mar 13 15:59:50 omg look everyone mikedg is going to io Mar 13 16:00:05 shut your butt :| Mar 13 16:00:25 i wanted to go to SXSW Mar 13 16:00:34 everybody take note of those dates--that's when you'll be able to to clean out mikedg's house Mar 13 16:00:41 evanc, good call Mar 13 16:00:51 my dog will be there Mar 13 16:00:57 mikedg, dogs love me Mar 13 16:00:58 guarding my stash of android figures Mar 13 16:01:02 he's evil Mar 13 16:01:11 he doesn't love anythign except licking his asshole Mar 13 16:01:16 mikedg: what are you doing in atl? Mar 13 16:01:21 mikedg, noted Mar 13 16:01:24 friends wedding Mar 13 16:01:29 ah Mar 13 16:02:01 we're based in atlanta Mar 13 16:02:28 i think he's askin you out on a date Mar 13 16:02:35 * lagann blushes. Mar 13 16:02:55 if anyone's in the frozen north, i'm looking for work in the montreal area Mar 13 16:04:03 lol Mar 13 16:04:11 kaneda^: we are hiring in new york Mar 13 16:04:16 america is good Mar 13 16:04:19 just ask canadiancow Mar 13 16:04:28 mikedg, if you had said boston i'd be interested Mar 13 16:04:37 i couldnt live in NY Mar 13 16:04:39 we have an office in boston Mar 13 16:04:47 im going to boston next week Mar 13 16:04:51 i'm actually from MA originally, i moved to montreal 6 years ago Mar 13 16:04:52 st louis and then boston Mar 13 16:04:54 mikedg needs ninjas Mar 13 16:04:57 but at least i get to take a train to boston Mar 13 16:05:05 erm, anyone who writes "ninja" on their resume gets put int he trash IMO Mar 13 16:05:29 i dont want to see "coding ninja/jedi", i want to see "proficient in android ndk" Mar 13 16:05:38 kaneda^: but it's a theme office, you take an elevator down to a cave Mar 13 16:05:40 I only accept resumes with at least 20 apps published to the Play Store Mar 13 16:05:43 mikedg, no shit?? Mar 13 16:05:47 excuse my language Mar 13 16:05:48 inside are developers dressed as ninjas sitting at computers Mar 13 16:05:56 nseidm1, damn, i dont qualify, not even close Mar 13 16:06:06 mikedg, you had me at cave Mar 13 16:06:15 mikedg with all the trolling you do, I have doubts you even got an I/O ticket :P Mar 13 16:06:20 :D Mar 13 16:06:21 I wanna work in a cave! Mar 13 16:06:49 nseidm1, i'm still junior, so i've had 3 apps in the play store, two for work, one personal Mar 13 16:07:10 and i havent maintained the personal one for 3 years... Mar 13 16:07:44 personal/work most irrelevant, I wanna see the comments and the stars Mar 13 16:07:54 io registration asked for links to your apps and websites Mar 13 16:08:05 maybe they are gonna kick people out Mar 13 16:08:14 nseidm1, heh, given that it was made to work with android 1.5, the comments/stars paint an ugly picture of a lack of maintenance ;) Mar 13 16:08:43 lack of maintenance is a deal breaker unfortunately Mar 13 16:09:19 nseidm1, eh, it was a uni project, the code's online if anyone wants to maintain it Mar 13 16:09:38 besides, google maps added the functionality needed to replace the app Mar 13 16:09:56 Google Play Services are indeed bad ass Mar 13 16:10:12 I have G+ login cookin right now Mar 13 16:10:30 i wrote the app because google maps didnt allow you to save offline directions back in 1.5/1.6 Mar 13 16:10:36 they introduced it and i stopped caring about that app Mar 13 16:12:37 New app publications should not support less than 2.2, anyone running a 2.1 device (for many reasons) is much more likely to post a negative review for irrelevant reasons Mar 13 16:12:57 nseidm1, indeed, keeping in mind i released it just as 1.6 was becoming popular Mar 13 16:13:11 How do I avoid an EditText from getting focus right when an activity starts? Mar 13 16:13:20 i have an app with 1 5-star rating that i'm proud that i made for work, but i definitely dont get a lot of exposure this way Mar 13 16:13:23 My point is a digression not specific to your publication Mar 13 16:13:47 nseidm1, https://play.google.com/store/apps/details?id=com.merchlar.wcit&hl=en Mar 13 16:13:57 it's actually pretty damn cool if you have the trackable image Mar 13 16:14:25 totic: you want left focus? Mar 13 16:14:42 hi. I want a clickable textview to give optical feedback while clicking (such as the entries in menues) How can i do this? Mar 13 16:14:54 Stummi, with a selector Mar 13 16:15:02 nseidm1: I want to just not be selected when the activity starts, but have the user select it if he wants to Mar 13 16:15:16 is there not a setSelected(bool b)? Mar 13 16:15:29 focusable:false Mar 13 16:15:55 will they still be able to focus it in later? Mar 13 16:15:57 hrm, wont that make it impossible to select nseidm1? Mar 13 16:16:21 give it a try should take 2 seconds to write android:focusable="false" and hit run Mar 13 16:16:44 nseidm1, i'm actually working in straight C/C++ today, no android stuffs so i dont have the environment up Mar 13 16:17:16 nseidm1: I guess programatically I can make it focusable after Mar 13 16:17:31 touching it will give it focus Mar 13 16:18:27 there's also focusable in touch mode as well, not sure if that's usefuol Mar 13 16:18:36 make that false also Mar 13 16:18:44 but... I like the edit text getting focus Mar 13 16:18:50 you just don't want the keyboard opening Mar 13 16:18:53 use: android:windowSoftInputMode="stateAlwaysHidden" Mar 13 16:19:02 nseidm1, nice Mar 13 16:19:02 on the activity tag in the manifest Mar 13 16:19:18 this is such a classic question Mar 13 16:32:08 What is the best way to convert a date that looks like Mon, 11 Mar 2013 01:00:00 +0000 to something more useful and store it in a sqllite database Mar 13 16:33:54 nseidm1, i tried this now: http://sprunge.us/bFRY but this doesn't seem to work. I expect the text changing its color when I touch it Mar 13 16:35:02 kaneda^: what resources do you use when working in the NDK? Mar 13 16:35:20 I have a hard time finding things usually Mar 13 16:35:46 or find out flag X or directive Y is since deprecated Mar 13 16:37:24 good thing OpenGL ES 2.0 shaders are growing on me Mar 13 16:39:00 belgianguy, adt + eclipse Mar 13 16:39:23 kaneda^: yeah, I use that too, seems now the debugging is integrated Mar 13 16:39:23 and a lot of code examples Mar 13 16:39:23 :D Mar 13 16:39:31 erm, the NDK debugging is shit still Mar 13 16:39:39 you have to jump through hoops to get an actual segfault stack trace Mar 13 16:39:47 no more magic with Seqoiay and ndk-gdb Mar 13 16:39:58 you can get allocs and stuff for the native thread easily Mar 13 16:40:01 heh, multiple apps Mar 13 16:40:06 i work full time on a single app Mar 13 16:40:24 I still have a JNI project, where I have to start the Java debugger first, and then have to kick in the ndk-gdb at the right moment Mar 13 16:40:26 lagann, i'm working on android and web services simultaneously, but my job also entails sys admin and dba Mar 13 16:40:43 belgianguy, yuck, i just use ddms and it works more or less for what i need Mar 13 16:40:46 lots of work Mar 13 16:40:54 i'm the unofficial sysadmin at my company Mar 13 16:40:56 lagann, you're tellin me, part of the reason i dont want to renew my contract here Mar 13 16:41:09 kaneda^: and to think this is just something to add to my resume Mar 13 16:41:15 * kaneda^ bbl, lunching for reals Mar 13 16:41:20 i tried to get someone to help me but everyone is too lazy/not knowledgeable enough Mar 13 16:41:36 i guess that's what comes with having real sysadmin job experience Mar 13 16:41:50 lagann, exactly the same here, no one wants to help for whatever reason so i end up doing even menial tasks Mar 13 16:41:58 ugh Mar 13 16:42:01 anyways, bbl Mar 13 16:42:09 it's nice that nothing changes without me, though Mar 13 16:42:10 every single "black box" automation framework actually requires access to code. Mar 13 16:42:14 yeah, I've got to play sysadmin for a week on a fresh VPS Mar 13 16:42:15 that way i don't get a frantic email saying something broke Mar 13 16:42:26 why call it "black box" if you need to know the package name class name or something else in code? Mar 13 16:42:26 what a piece of work that was Mar 13 16:42:35 do people just like to lie? Mar 13 16:43:49 ranorex, monkeyrunner, monkeytalk, robotium and a few others claim to be "black box" while requiring information such as com.somepackage.in.code or class names or other in code information Mar 13 16:43:57 sucks Mar 13 16:44:00 don't try the NDK, it's glued together with tears Mar 13 16:45:02 if it's black box, you don't require someone to know the code.. if you automate the browser black box, you aren't required to know c++ firefox stuff Mar 13 16:45:12 why so much lying Mar 13 16:46:25 dogarrhea: I steer clear from any frameworks that aren't officially supported Mar 13 16:46:34 tech support nightmares ahead Mar 13 16:47:19 esp if I see what passes along on Hacker News each day, you'd be switching frameworks each day Mar 13 16:48:01 true that Mar 13 16:48:03 dogarrhea: are you still here about this Mar 13 16:48:11 dogarrhea: just fucking make your own BB testing christ Mar 13 16:48:36 "just do something that takes up too much of your time" Mar 13 16:48:46 in the time you spent bitching about this you probably could have done this start to finish. Mar 13 16:48:47 What is a "testing christ"? Sounds like he would save a lot. Mar 13 16:49:08 "just write your own selenium framework from scratch" Mar 13 16:49:09 Jonathan_Eyre: his process dies for your sins Mar 13 16:49:09 does the new developer console allow responding to comments? i've read in a few places it does - but i can't find that :/ Mar 13 16:49:12 so easy man. yes Mar 13 16:49:15 Jonathan_Eyre: http://www.imdb.com/title/tt0095497/ Mar 13 16:49:31 dogarrhea: Sorry that people aren't spending their own free time making a free framework for you to use for free I guess Mar 13 16:49:53 How dare they make money on their free time. Mar 13 16:49:59 they are writing some framework that doesn't do waht it says, expecting me to beta test it and do qa for free for them Mar 13 16:50:11 no, no one is expecting you to do anything. Mar 13 16:50:19 this guy again... Mar 13 16:50:21 dogarrhea: you're free to write your own Mar 13 16:50:25 the same way that no one expects you to take a cigarette butt off the street and smoke it Mar 13 16:50:28 but IIRC, you've been here before Mar 13 16:50:41 i'm still hoping i'll find one that's useable, to save me time Mar 13 16:50:42 I mean you can do it, but if you do please don't complain that it tastes like ass Mar 13 16:50:55 when i read a feature list saying "black box" Mar 13 16:51:05 and then you spend half an hour installing and configuring on poor documentation Mar 13 16:51:19 and find out you need com.shitty.package.name.because.its.not.black.box Mar 13 16:51:23 dogarrhea: roll your own, unit testing isn't new, nor is it hard Mar 13 16:51:32 just don't reinvent the round thing Mar 13 16:51:34 it's not unit testing belgianguy :/ Mar 13 16:51:46 unit testing is white box, haven't you been following along Mar 13 16:51:57 dogarrhea: I absolutely haven't Mar 13 16:52:06 I've got like work Mar 13 16:53:49 dogarrhea: you can use a unit testing for black box - if you treat it that way, right? or am i just a retard Mar 13 16:53:57 *unit testing framework Mar 13 16:54:18 unit testing traditionally means testing code. testing functions classes etc. Mar 13 16:54:34 unless somehow this term has been redefined somehow Mar 13 16:55:27 "This method of test can be applied to virtually every level of software testing: unit, integration, system and acceptance. It typically comprises most if not all higher level testing, but can also dominate unit testing as well." Mar 13 16:55:33 sure, you can use junit as a framework to contain non unit testing tests as is the case for selenium, but it's still fundamentally black box user interaction testing, not unit testing Mar 13 16:55:50 oh, you are after interaction testing Mar 13 16:56:18 dogarrhea: give it to someone and tell them they get a free beer if they break it? Mar 13 16:56:32 heh. the manual process. Mar 13 16:56:50 yeah, manual testing sucks Mar 13 16:57:17 we're automating as much of our manual testing as we can, because it's stupid to have 10 people just pressing the same button over and over again, and expensive too. Mar 13 16:57:23 did you hear that mikedg is replacing Andy Rubin as head of Android?!? Mar 13 16:57:30 I'm not surprised. Mar 13 16:57:44 did you hear that Andy Rubin is replacing mikedg as resident shitty troll? Mar 13 16:57:56 lol Mar 13 16:57:58 so true Mar 13 16:58:01 JakeWharton, close Mar 13 16:58:59 Coming from a WP7 background, should I assume that everything in Java/Android is blocking unless the function name indicates otherwise? Mar 13 16:59:21 probably? Mar 13 16:59:31 also, unless the documentation indicates otherwise Mar 13 16:59:36 vesicant: you should just regard the documentaiton of the method :D Mar 13 16:59:37 for example, startActivity is implicitly asynchronous Mar 13 16:59:40 to see if its blocking or not Mar 13 16:59:47 lov, how are you doing this? Mar 13 17:00:08 dogarrhea: through the magic of Testing Engineers Mar 13 17:00:20 so you don't know what they are doing then Mar 13 17:00:36 I know what they're doing at a high level, but it's exactly what you're getting butthurt about so it's not helpful to you. Mar 13 17:00:49 we're (gasp) using activity names, etc. Mar 13 17:00:51 how effective do you say they are at automating? Mar 13 17:01:13 Pretty effective. Mar 13 17:01:19 dogarrhea: i thought i heard of a startup doing something like this with robotics ! Mar 13 17:01:42 it was within the last few days. its a service - lemme see if i can find it Mar 13 17:01:43 What is the "+0000" in the date Mon, 11 Mar 2013 01:00:00 +0000 Mar 13 17:01:49 g00s, your idea is already taken by that shitty sauce labs founder Mar 13 17:01:55 timroes, lov, ah. Ok :/ Mar 13 17:01:58 droiddev32: timezone offset Mar 13 17:02:07 so +0000 is UTC Mar 13 17:02:12 g00s: see angry birds playing robot by jason huggins Mar 13 17:02:29 it's stupid and useless but yea that's his stupid idea for automating phone apps Mar 13 17:02:50 attaching qtips to legos toys he buys from toys 'r us Mar 13 17:04:46 i thought appthwack was doing it Mar 13 17:05:24 any russian dudes around? Mar 13 17:05:26 if you want robots to do blackbox testing, where is the problem with regular uI testing? Mar 13 17:05:43 (automated UI testing) Mar 13 17:05:45 xorgate: take it to #nohomo Mar 13 17:05:59 :> Mar 13 17:06:11 dogarrhea: meh, i can't find it Mar 13 17:06:29 let me find it for you Mar 13 17:06:57 not the science project with qtips Mar 13 17:07:11 anyhow, have other things to do. hope you find a solution Mar 13 17:07:31 http://www.youtube.com/watch?v=x2e73HraePY Mar 13 17:07:57 jason huggins is the founder of saucelabs/the primary pay for selenium service out there. Mar 13 17:08:06 and this is all he's capable of lol Mar 13 17:08:52 considering that he did this for fun, I'm sure there are better methods. Mar 13 17:09:31 lov have you seen part 1 Mar 13 17:09:41 he "hopes to do this full time" Mar 13 17:09:52 I'm not sure if you've learned about this thing called "humor" Mar 13 17:09:59 look it up sometime Mar 13 17:10:12 as I said, have you seen part 1 Mar 13 17:10:21 his demeanor doesn't seem too humorous :/ Mar 13 17:10:30 you must be a blast when april fools rolls around Mar 13 17:10:30 they would not hire a keynoter to do stand up comedy Mar 13 17:10:43 https://www.youtube.com/watch?v=dYBjVTMUQY0 Mar 13 17:10:52 let me know if you think that's real too. Mar 13 17:11:13 dogarrhea: the point of the talk isn't that "this is how we're going to do testing" the point is "Anything is possible with this framework, even making a robot play angry birds" Mar 13 17:11:25 what framework? Mar 13 17:11:44 his legos and qtip framework that merely moves a qtip in a sin wave and no more? Mar 13 17:12:01 Selenium and Jenkins Mar 13 17:12:08 * birbeck is not going to IO :-( Mar 13 17:12:11 his joke is "You can do acceptance testing with robots and q-tips" Mar 13 17:12:20 is there a difference at all between blah(int... a) and blah(int[] a) ? Mar 13 17:12:36 sounds pretty mickey mouse. Mar 13 17:12:46 selenium is for the web anyways. it's not for native application testing Mar 13 17:12:59 xorgate: as far as the public contract goes, yes Mar 13 17:13:02 * lov shrugs Mar 13 17:13:03 birbeck, last year they ahd a code jam competition where you could win the opportunity to buy a ticket Mar 13 17:13:05 jenkins is a build tool as well. how does that relate to native phone ui testing Mar 13 17:13:17 birbeck how do you mean? Mar 13 17:13:20 dogarrhea: continuous integration as part of your build. Mar 13 17:13:24 If the tests fail, the build is broken. Mar 13 17:13:25 xorgate: int is not int[], the method then would have int[][] Mar 13 17:13:40 o.O? Mar 13 17:13:41 birbeck no int... as param def Mar 13 17:13:45 birbeck: uh Mar 13 17:13:58 xorgate: behind the scenes, no. varargs is just syntactic sugar. Mar 13 17:14:24 I find the "..." lazy, and confusing Mar 13 17:14:27 ok then other q, i have an enum param but apparently i can also just stuff an int in there? Mar 13 17:14:48 an enum is not an int, this is not c Mar 13 17:15:32 i have a method with param MyEnum[] but no errors when i put ints Mar 13 17:16:56 So any particular reason Android chooses to inflict threading pain on developers as opposed to async api's? :P Mar 13 17:17:14 vesicant: sadism Mar 13 17:17:14 hmm never mind apparently the checker went haywire because of other errors Mar 13 17:17:32 lov: -.-' Mar 13 17:17:40 vesicant: also, the requirement that things work with the J6SE API Mar 13 17:18:00 hi Mar 13 17:18:05 there are plenty of convenience classes for asynchronous tasks, such as the (aptly named) AsyncTask. Mar 13 17:18:07 something I wondered, can Android evolve with Java 7 or 8 ? Mar 13 17:18:19 new here and new to android (in general and development) Mar 13 17:18:21 or are you stuck on 6, forever? Mar 13 17:18:25 lov: That's what I'm using, but I don't see a way to notify the UI thread "Hey, I finished and here's some data" Mar 13 17:18:26 belgianguy: with that whole "lawsuit" thing who knows. Mar 13 17:18:34 vesicant: onPostExecute Mar 13 17:18:36 belgianguy: it evolved from 5 to 6 Mar 13 17:18:48 belgianguy: i truly hope so Mar 13 17:18:53 8 would add Lambdas Mar 13 17:18:55 no closures and lambda expressions? Mar 13 17:18:57 i would cry Mar 13 17:19:00 :D Mar 13 17:19:01 can someone point me into the direction on how to get the http response which is json-encoded? Mar 13 17:19:10 belgianguy: it is enough if dalvikvm would evolve to 7 Mar 13 17:19:26 in fact lambda expressions and closures don't require new bytecode (its just a compilter thing) Mar 13 17:19:37 yeah, davlik is the only blocker Mar 13 17:19:43 so you could compile with an java 8 compiler and use it as long as java7 is supported by the dalvikcm Mar 13 17:19:50 mkozjak: https://developer.android.com/reference/java/net/HttpURLConnection.html and https://developer.android.com/reference/android/util/JsonReader.html Mar 13 17:19:53 same like you can already use several java7 aspects in android Mar 13 17:19:54 timroes: ahh, good to know Mar 13 17:20:02 the ones that doesn't support new bytecode Mar 13 17:20:09 lov: thank you :) Mar 13 17:20:15 I hope Larry Ellison spontaneously combusts Mar 13 17:20:32 and Microsoft too for filing an amicus brief in this ridiculous case Mar 13 17:20:56 belgianguy: namlly you can use: diamond operators, string switched, multiple catch, underscore in number literals and binary literas Mar 13 17:21:10 timroes: you can O.o ? Mar 13 17:21:16 timroes: I've seen some of that IIRC Mar 13 17:21:25 g00s: yeah none of this is using new bytecode mechanisms Mar 13 17:21:30 isn't the conditional try also a part of that? Mar 13 17:21:33 it all compiles down to java6 compatible bytecode Mar 13 17:22:19 http://stackoverflow.com/a/13550632/1044403 scroll down a bit for the list (I actually didn't check it, if the list is 100% correct, but for some items i know) Mar 13 17:22:52 belgianguy: what do you mean by conditional try? Mar 13 17:23:10 (haven't done lot of java7 yet, since I nearly only work with android :D) Mar 13 17:23:39 When I style an Activity as Theme.Dialog, is it possible to have some padding around the window? I don't want it to fill the width of the screen Mar 13 17:25:04 In Java 8 they also fix the Date and Time API, which I'm most happy about. Mar 13 17:25:12 belgianguy: and the invokedynamics feature in java7 is what you need for closures and lambda expressions :) Mar 13 17:25:25 Hi every body Mar 13 17:25:58 though it ofc only really benefits if you have (especially I would say collection) library rewritten to use ldambda expressipons. that ofc you won't have until android officially supports java8 Mar 13 17:26:28 timroes: I hope KLP supports java 8, although that's probably a pipe dream Mar 13 17:26:35 I am maybe not the first one, but I would like to know how can I take a photo with MediaStore.ACTION_IMAGE_CAPTURE without saving this pic on the gallery Mar 13 17:27:01 in some phones, the camera save a copy of my picture on the gallery Mar 13 17:27:11 how can I disable that ? Mar 13 17:27:27 and the reselling of tickets has begun... :/ Mar 13 17:27:47 belgianguy: thats very unlikely I would say, since java8 isn't totally finished yet(?) and some rumors say KLP will be announced on I/O :) Mar 13 17:28:01 Chainfire: what took so long? Mar 13 17:28:03 timroes: KLP? Mar 13 17:28:07 key lime pie Mar 13 17:28:09 key lime pie Mar 13 17:28:13 it's the only plausable K dessert Mar 13 17:28:36 Chrome lime pie Mar 13 17:28:52 lov: Kielbasa Mar 13 17:28:55 *Khrome Mar 13 17:29:02 Maybe they'll go healthy and call it Kiwi :p Mar 13 17:29:13 Google I/O tickets must be used by the original registrant and are non-transferable. Tickets may not be sold, bartered, auctioned, or transferred in any way and doing so may result in Google rendering the ticket null and void without any responsibility to Google. Mar 13 17:29:23 sounds good Quacked Mar 13 17:29:29 evanc: that's not a dessert. Mar 13 17:29:39 king pie? Mar 13 17:29:50 king cake* Mar 13 17:29:54 Quacked: they only check your id for swag. Mar 13 17:30:53 hi, any idea why this is reading nothing? http://pastebin.com/u1X7iztT Mar 13 17:31:08 sorry Mar 13 17:31:21 it is printing nothing Mar 13 17:31:31 between >< Mar 13 17:32:37 gmag: and what did it say how many bytes read? Mar 13 17:32:43 1024 Mar 13 17:32:45 Quacked: I went last year using my Presidents badge. He just met up with me to get the swag (which he kept) Mar 13 17:33:21 @timroes Mar 13 17:33:35 gmag: look at the content in the debugger; is it all 0s or something? Mar 13 17:34:46 does the new console allow responding to comments? Mar 13 17:35:06 g00s: only for top developers right now, but they want to extend it Mar 13 17:35:09 someday Mar 13 17:35:24 i read a few places it was enabled; i guess thats bogus Mar 13 17:35:27 lov, gonna check that Mar 13 17:35:48 g00s: oh might be too :) Mar 13 17:36:24 well i can't find it. but it was announced so long ago :| Mar 13 17:37:11 Question, in regards to display independent pixels, how do they work? Do you have a different number of DP units to work with when you've got a larger display? Mar 13 17:38:20 Yes Mar 13 17:38:25 Or, how high does the number of DP go? I assume you can't assume you've got a large screen and put in a value like "android:layout_width="1000dp" Mar 13 17:38:32 160dp = ~1 inch Mar 13 17:38:43 jdawes: you can put in match_parent Mar 13 17:38:45 So that'd depend entirely on the screen size Mar 13 17:39:01 timroes: I know about that, thanks I'm working with Relative layouts. Mar 13 17:39:24 So, what if I'm making multiple XML files for multiple resolutions, and I know the display size before hand. Mar 13 17:39:35 You don't know the display size before hand Mar 13 17:39:38 How would I do the conversion if I know the pixel perfect positions? Mar 13 17:39:47 you don't do pixel perfect positioning :D Mar 13 17:39:52 ^ Mar 13 17:40:09 http://developer.android.com/training/multiscreen/index.html Mar 13 17:40:25 birbeck: whats happening at google i/o to be worth 900 bucks? Mar 13 17:40:33 I think I'm being misunderstood. If I've got a picture of what my screen should look like, how can I transfer that over to a RelativeLayout? Mar 13 17:40:43 Using dp units. Mar 13 17:41:15 With one screen size being targeted, I won't ever do that this is hypothetical. Mar 13 17:42:10 You wouldn't do that Mar 13 17:42:20 OK Mar 13 17:42:54 You'd choose the appropriate layout(s) for the ui you're doing Mar 13 17:43:04 And not use absolute units Mar 13 17:43:29 /positioning/whatever Mar 13 17:43:34 Even though they're DP units in a RelativeLayout? Mar 13 17:43:42 All right. Mar 13 17:43:45 timroes, lov, Im not being able to debug because (I'm newbie...) I'm importing a lib from another project of mine. When I run the debugger it opens a new tab asking me to tell it where to find the code. It asks for a zip or jar file... Should I build the other project in some different way to create that zip or jar? Mar 13 17:44:04 if an edittext is set to numeric the popup keyboard has a lot of non numerics on it like ()+- on ICS how can I make it just numbers no . ()+-? Mar 13 17:45:30 should I rephrase my last question, probly too confusing... Mar 13 17:50:04 "I finally had the option to buy one around 7:27am and the purchase kept failing. They charged the card once and then canceled it. " Mar 13 17:50:20 google has problems with ecommerce :/ Mar 13 17:50:37 buy one of what? Mar 13 17:50:42 I/O ticket Mar 13 17:50:48 same here. Google Wallet is very not ready for mass-usage Mar 13 17:50:57 ah Mar 13 17:51:32 I recall hearing something about "Play store having issue with non-digital items that have limited availability" ;) Mar 13 17:51:52 timroes, lov, AHAAH I'm getting some problems with debugging but I was able to check the buffer content and it DOES have :D the file content Mar 13 17:52:14 so the reading process is ok Mar 13 17:52:41 yeah, I am in a hate-hate situation with google over this io registration debacle Mar 13 17:53:02 I camped their shit since 6:30am... Mar 13 17:53:21 * p_l suspects the code responsible for N4 issues is the same as the one with I/O tickets Mar 13 17:53:49 I didn't even get assigned a ticket after waiting in the stupid 6 minute "queue" like 10 times Mar 13 17:53:55 wtf kind of bullshit queue is it Mar 13 17:54:21 UnPriorityQueue Mar 13 17:55:16 I did get 503 error multiple times today, while trying to get my ticket :) Mar 13 17:55:59 pfn you can complain here: https://plus.google.com/111395306401981598462/posts/2MMB26ubG5C . They "apologize" (in no more words than "we apologize") Mar 13 17:56:06 I even get a ticket from pool, but Google Wallet is failed to accept my payment :) Mar 13 17:56:37 what has AdbBackend been changed to? Mar 13 17:56:52 i know google has probably changed it because it can't find this reference in all of the android SDK path Mar 13 17:57:02 the reading process is ok. How can I get the data inside the buffer to a string? Mar 13 17:59:20 my method seems not to be working as the logcat output had nothing printed when I call fileBuffer.asCharBuffer().toString() Mar 13 18:00:42 Chainfire, yeah, helps to vent, I suppose Mar 13 18:01:00 lov: Hello, i attempted to resolve my problem but seems that i don't understand how to handle this objects. I made a sample project if you want to check Mar 13 18:08:58 it's kind of bad for Google Wallet, if they can't ensure their own Google event can withstand the brunt of an (involuntary) DDOS, then what will happen if a festival of tens of thousands wishes to use it Mar 13 18:09:05 eg TomorrowLand etc Mar 13 18:09:41 If there was one thing I thought Google had, it was cloud capacity and load balancing level 100 Mar 13 18:09:58 ok, now I'm getting all these fancy characters (I clear()-ed my buffer) 捰甠′㌴㤸‶㠲″㘸㠳‹㜲㜵ㄵ‱〹㜷‱㈠㌶ㄳ‰‰‰੣灵〠㘳㜴‱㈸‹㌰ㄠ㈴㌱〰㈠㜱㘴‰‶㐲‰‰‰੣灵ㄠ㐳㈱‱㈴‷㘸㤠㈴㌳㌷〠ㄳ㠹‱〠 Mar 13 18:10:45 it seems to be an encoding issue Mar 13 18:11:03 the bytebuffer has ascii data# Mar 13 18:11:20 gmag: I've fought with character encodings Mar 13 18:11:23 and it's a pain Mar 13 18:11:37 Java deals with UTF-16 IIRC Mar 13 18:12:00 and I had to fight with MySQL and PHP to stop changing it, or it all imploded Mar 13 18:17:03 ok finally figure it out Mar 13 18:17:11 need to play with my monkey Mar 13 18:17:22 well, use monkey runner in python to automate truly black box Mar 13 18:19:44 dogarrhea: so what was it then, a misunderstanding? Mar 13 18:19:58 as you did mention monkey runner up front, right? Mar 13 18:20:44 dogarrhea: or uiautomator http://developer.android.com/tools/testing/testing_ui.html (what i btw mentioned already several hours ago :D) Mar 13 18:21:38 I'm using NAVIGATION_MODE_LIST, and have the navigation callbacks assigned, but I've missed something - no item appears in the actionbar as the current selected item. Mar 13 18:22:38 belgianguy, it's really frustrating... I am stuck on a text file reading tasks. I really like python. I can't believe that reading a simple text file can be so hard... Mar 13 18:23:11 is this a Java problem or is it me that I'm a complete ignorant? Mar 13 18:23:54 if you're gonna be unpolite don't unsware my rhetorical question :) Mar 13 18:24:04 gmag, file reading isn't quite the same in android Mar 13 18:24:27 http://stackoverflow.com/questions/5209842/read-write-file-to-internal-private-storage Mar 13 18:24:34 kaneda^, am I doing anything android specific? Mar 13 18:24:35 it's very close, except that you write to and from your private storage usually Mar 13 18:24:45 gmag, i'm not sure, take a look at that thread Mar 13 18:25:43 kaneda^, ok, reading it Mar 13 18:27:09 in fact, my onNavigationItemSelected callback isnt being triggered at all.. :| Mar 13 18:27:34 kaneda^, seems good, gonna try that Mar 13 18:29:11 hi Mar 13 18:29:39 Fun fact: If you give an ArrayAdapter for setNavigationCallbacks a List instead of an array, you can change its contents and have those changes propogate to your navigation list Mar 13 18:29:53 unfortunately, any items you add are useless and don't get hooked for the callback, lol Mar 13 18:30:39 in the Service guide from android website in the topic "running the service in the foreground" is written this Mar 13 18:30:41 startForeground(ONGOING_NOTIFICATION, notification); Mar 13 18:30:59 can anybody explain me what is ONGOING_NOTIFICATION Mar 13 18:31:10 uragano2: I forget what your problem was. Mar 13 18:31:23 nep1x: its the id of your notification iirc Mar 13 18:31:23 I mean it is a constant from a class Mar 13 18:31:33 ok Mar 13 18:31:37 nep1x: take a look at the NotificationManager and/or the notification tutorial Mar 13 18:31:42 ok Mar 13 18:31:44 kaneda^, I have a little problem, I'm running this code inside a Thread. How can I have access to Activity context here? Mar 13 18:31:47 got it Mar 13 18:31:54 thanks Mar 13 18:31:58 do I have to pass it as argument to constructor? Mar 13 18:32:01 gmag, a common way is to make the thread an inner class to the activity Mar 13 18:32:08 depends on your desired architecture Mar 13 18:32:29 sounds like a great way to leak your activity :P Mar 13 18:33:04 anonymous threads and AsyncTasks are evil. Use Executors. Mar 13 18:33:08 kaneda^, oh that makes my stomach hurt to put a class inside another one Mar 13 18:33:17 gmag: unpolite? Had you preferred I interacted from on the toilet? Mar 13 18:33:31 ah, I see, :p Mar 13 18:33:36 I didn't read the next rulee Mar 13 18:33:57 gmag: how about an AsyncTask? Mar 13 18:34:15 Pure threading has brought many dev to tears Mar 13 18:34:15 nseidm1, why? Mar 13 18:34:53 belgianguy, I'm doing very simple things. Using Thread seemed to work, that is not a problem right now (I think...) :P Mar 13 18:34:53 consolidating and organization, where you want to exit your app and interrupt all threads all you need to do is shutdown the Exeutor Mar 13 18:35:22 g00s, what is a great leak? Passing as argument or creating class inside class? Mar 13 18:35:34 nseidm1: true, the "clean exit" paradigm I never got with AsyncTask Mar 13 18:35:42 gives you a single access point to manage and interrupt all running threads. Mar 13 18:35:53 it has a cancel /Cancelled thing and then you need to handle that Mar 13 18:36:43 does anyone here know much about NFC development? Mar 13 18:36:44 but for the purpose of learning, AsyncTask will do fine Mar 13 18:36:58 NFC is literally like 5 lines of code to implement :-P Mar 13 18:37:15 nseidm1, i see, when i've used an asynctask so far it required no cleanup or anything Mar 13 18:37:24 Why would your thread even need a reference to the activity? most stuff that I can think of, you'd want to pass back to the activity anyway Mar 13 18:37:38 use Handler :p Mar 13 18:37:49 but AsyncTask has these nice functions Mar 13 18:38:02 that even designate in what state your thread is Mar 13 18:38:17 nseidm1: .. no? i'm giong through this guide. copied everything still doesn't work? http://www.tappednfc.com/wp-content/uploads/TAPPED-NFCDeveloperGuide-Part2.pdf Mar 13 18:38:21 AsyncTask is fine for learning, but dangerous for the unexperienced Mar 13 18:38:37 depending on what you need to do, just having an observer might work Mar 13 18:38:57 all AsyncTask provides is UI callbacks wrapped around a serial ExecutorService Mar 13 18:39:43 nseidm1: what are the rotten parts of AsyncTask then? Mar 13 18:40:00 no way to shutdown the underlying ExecutorService Mar 13 18:40:28 While we are on the topic of threads - what is the right way to do a persistent network connection? Mar 13 18:40:29 And I'm pretty sure it's limited to a 128 thread pool Mar 13 18:40:59 in overview, I need to maintain connections to a few servers which will send a constant stream of data while my app is connected Mar 13 18:41:08 nseidm1? Mar 13 18:41:12 and when not connected, should be trying to connect Mar 13 18:41:30 I'm currently just using Threads~ Mar 13 18:41:58 enneract|laptop, way too vague. What you're trying to do is extremely complicated to get done correctly. Mar 13 18:42:18 I've spent the last month coding a robust way to do exactly what you want to do Mar 13 18:42:20 and I'm still not done Mar 13 18:42:47 nseidm1: I've been there as well, and I've turned Services, IntentServices and Threads inside out Mar 13 18:43:01 ah, well, for what it is worth, this is a udp stream which is always expected (and only 'supported') on a lan connection, which simplifies a lot of the network side Mar 13 18:43:21 constant connections aren't *that* hard Mar 13 18:43:22 IntentServices can be useful, but ultimately can be baked into a more robust general use Service that's available always Mar 13 18:43:42 you just need a Service for lifecycle management Mar 13 18:43:50 pfn, howdie homie :-P Mar 13 18:43:57 everything else should be handled within your own thread pool management Mar 13 18:43:59 it's truly an art to handle data connectivity on mobile Mar 13 18:44:01 I ultimately hacked a Fragment to persist its data Mar 13 18:44:07 does anyone know about developing NFC? Mar 13 18:44:19 (you can set it to keep its state on orientation change) Mar 13 18:44:39 nseidm1 in what way? Mar 13 18:44:58 nseidm1: can you clarify as to what is too vague? Mar 13 18:45:01 your constantly going in and out of service and the lovely state where you have service but no connectivity Mar 13 18:45:20 exponential backoff Mar 13 18:45:53 the only real annoyance is testing all the possibilities of states Mar 13 18:45:54 nseidm1 right so you just need to retry everthing but thats true of normal internet connectivity too just not as often Mar 13 18:46:11 i think iOS does a lot of that transparently arent there libs that wrap that retr stuff nseidm1? Mar 13 18:46:15 pfn, exacomundo. Luckily I take the train daily Mar 13 18:46:27 does anyone know about developing NFC? Mar 13 18:46:40 nobody knows nfc Mar 13 18:46:50 either ask your actual question, or just move on Mar 13 18:46:58 haha Mar 13 18:47:06 man coco89 taking it up the azz from pfn Mar 13 18:47:24 i said the same thing last night Mar 13 18:47:27 i came back to another eclipse project and all of a sudden all of my regular C/C++ project configurations are "orphaned" Mar 13 18:47:37 why eclipse, why you abandon my project configurations Mar 13 18:47:54 good thing I never use eclipse Mar 13 18:48:05 Anyone use list navigation and have an issue where the selector doesn't move to the right side of the screen on orientation change Mar 13 18:48:16 kaneda^: because it's Eclipse Mar 13 18:48:20 what do you use insead of eclipse pfn? Mar 13 18:48:25 vim Mar 13 18:48:33 IntelliJ or bust Mar 13 18:48:33 Dorky, UrlConnections love to get stuck and aren't interruptable. I've always preferred HttpClient so I can abort the HttpPost using a post delated runnable. A guaranteed timeout. Mar 13 18:48:41 If I didn't have this stupid idea for NDK Mar 13 18:48:52 I was happily coding in IntelliJ Mar 13 18:49:00 i use the NDK frequently Mar 13 18:49:42 if I need ndk, I just run ndk-build :p Mar 13 18:49:44 kaneda^: It's my first project, and I finally got my 3D world to react to my sensors in C++ Mar 13 18:49:53 oh! Is there a Preference floating around with a simple integer increment\decrement? Mar 13 18:49:54 anyone? Mar 13 18:50:15 belgianguy, cool Mar 13 18:50:19 coco89: more details please, what exactly is it you are after Mar 13 18:50:42 I wish rfid technologies were more widely standardized Mar 13 18:50:48 kaneda^: I've had to experiment a lot though, the documentation isn't that great Mar 13 18:50:50 coco89, NFCizzzzNeee Mar 13 18:50:54 too many different islands of technology :( Mar 13 18:50:58 and the Google Groups has more questions than answers Mar 13 18:51:06 standards are for sheep Mar 13 18:51:12 THINK DIFFERENT, sheep Mar 13 18:51:18 xkcd comes to mind Mar 13 18:51:19 belgianguy, i've found some good stuff, but it's all written by devs, not google Mar 13 18:51:25 belgianguy: i'm to write an app to write to an NFC tag. i've followed a guide and it didn't work :( this is the guide http://www.tappednfc.com/wp-content/uploads/TAPPED-NFCDeveloperGuide-Part2.pdf Mar 13 18:51:47 okay, and what exactly is your error? Mar 13 18:51:54 Logcat, Exceptions etc Mar 13 18:51:58 http://developer.android.com/guide/topics/connectivity/nfc/nfc.html Mar 13 18:52:03 plenty of examples at the bottom Mar 13 18:52:11 kaneda^: if you want to share your sources, I'm always interested Mar 13 18:52:14 NFC is like 5 lines of code for the entire app Mar 13 18:52:27 belgianguy, i'm not doing 3D per se, not sure it would be useful to you Mar 13 18:52:30 wht about the connectivity issues nseidm1? Mar 13 18:52:36 belgianguy: i'm supposed to be writing a string from TextEdit to the tag when the button is clicked. The progress bar shows when it is clicked, i tap the device to the tag but nothing happens. I'll show you the log in just a bit one second Mar 13 18:53:06 what do you mean "nothing happens" Mar 13 18:53:06 kaneda^: I'm just freewheeling in NDK, so I'm always interested :) Mar 13 18:53:07 elaborate Mar 13 18:53:17 pfn: the string is written to the tag, it only makes that 'bleep' noise Mar 13 18:53:24 belgianguy, http://imrannazar.com/Augmented-Reality-with-the-Android-NDK%3a-Part-2 <-- this was useful Mar 13 18:53:40 the string is written to the tag... then something happened Mar 13 18:53:44 lov: i extended TextView because i need to have more variables in the object, but i can't get my custom variables. You said that the problem was that listview recycle. Here i created a sample project http://dl.dropbox.com/u/10541284/Example.zip Mar 13 18:53:56 pfn: sorry i meant the string isn't written to the tag Mar 13 18:54:16 uragano2: ah, right. Mar 13 18:54:22 uragano2: just pastebin the relevant code. Mar 13 18:55:58 kaneda^: thanks, doing AR? Mar 13 18:56:03 yep Mar 13 18:56:19 not for long though, due to some disagreements over the terms of the contract Mar 13 18:56:21 coco89, the bleep indicates something happened Mar 13 18:56:27 impressive, still Mar 13 18:56:40 pfn: this is the logcat http://pastebin.com/3GVH6EuC Mar 13 18:56:57 pfn: doesn't it just indicate that the tag has been detected Mar 13 18:57:12 belgianguy: http://pastebin.com/3GVH6EuC Mar 13 18:57:26 coco89: is that all it says? Mar 13 18:57:29 thread start is in red if that means anything Mar 13 18:57:32 your log is awfully short Mar 13 18:57:34 is it set to verbose? Mar 13 18:57:42 belgianguy: i'm not sure what that means Mar 13 18:57:53 n00b Mar 13 18:57:58 Dorky: thanks Mar 13 18:58:09 coco89: Logcat has different modes of logging Mar 13 18:58:15 belgianguy: i see Mar 13 18:58:22 coco89: using Eclipse? Mar 13 18:58:32 belgianguy: yeah using eclipse, and it is indeed set to verbose i just checked Mar 13 18:58:39 5 line logcat is epic Mar 13 18:59:25 when i quit of the app it says getSelectedText on inactive InputConnection but that's probably normal right? it's in orange Mar 13 18:59:46 kaneda^, I'm calling getApplicationContext() inside Thread and then calling mContext.openFileInput(). But I'm getting an IlegalArgumentException. Any idea why? The code: http://pastebin.com/qs3wCtM3 Mar 13 18:59:51 coco89: irrelevant really, after an error occurred the execution can be totally off Mar 13 19:00:04 find out where it shits itself, and go from there Mar 13 19:00:14 is this a threaded application? Mar 13 19:00:26 belgianguy: this is the code http://pastebin.com/nSB5MUep Mar 13 19:00:37 gmag: why in the world are you using context.openFileInput to reference /proc/stat? Mar 13 19:00:45 gmag: you should only be using context to reference app private files, etc. Mar 13 19:01:11 lov, I would like to read "/proc/stat", how can I do that? Mar 13 19:01:16 >_< Mar 13 19:01:27 just use a regular File object and use a FileInputStream. Mar 13 19:01:39 https://www.google.com/search?client=ubuntu&channel=fs&q=java+open+a+file&ie=utf-8&oe=utf-8 Mar 13 19:02:25 lov: mainActivity: http://pastebin.com/Fnj9UYDv Post.java: http://pastebin.com/NZ7kw9n9 Adapter: http://pastebin.com/eD9PfpD7. Problem is that i set postId, but when i get the value is null Mar 13 19:02:29 coco89: did you try placing breakpoints? Mar 13 19:02:40 and see which ones it "hits" and where it goes down? Mar 13 19:02:49 belgianguy: i'll try Mar 13 19:02:49 I have no NFC capable device, so I can't test it Mar 13 19:03:08 lov, do you suggest to read the file to a ByteBuffer? Mar 13 19:03:13 belgianguy: ahh i see, hmm i'll give it a shot, but what's more strange is the fact that it's really just copied directly out of a guide Mar 13 19:03:34 coco89: copy / paste is a Bad Code Smell Mar 13 19:03:35 unless it's something to do with the tag itself but that can't be right :S Mar 13 19:03:57 coco89: just get to the bare essence first, like the example guides that were posted here Mar 13 19:04:12 belgianguy: which example guides, sorry? Mar 13 19:04:14 lov, cause I was doing that and had lot of problems to get text from ByteBuffer Mar 13 19:04:22 once you _understand_ the how and why of thosen try expanding into this bigger app Mar 13 19:04:52 belgianguy: indeed, i thought this was a basic app, i was actually trying to do exactly that from this guide but that didn't work out Mar 13 19:05:11 belgianguy: do you have any better more simple guides for the regular NFC noob? Mar 13 19:05:26 coco89: I'm looking for them, someone just posted them here Mar 13 19:05:36 belgianguy: ah i see cheers Mar 13 19:05:44 nseidm1> http://developer.android.com/guide/topics/connectivity/nfc/nfc.html Mar 13 19:05:46 plenty of examples at the bottom Mar 13 19:06:26 belgianguy: that seems even more complicated but i'll read it and give it a shot Mar 13 19:07:03 it's really only a couple of lines of code for NFC, the tricky stuff is the intent filters Mar 13 19:07:14 well, kinda sorta only a lil tricky Mar 13 19:07:23 hey guys, I am trying to allow the user to select an image within a specified album only, using the Gallery, but can only get it to work with all of the albums in the gallery Mar 13 19:07:37 i have more info on my question at: http://stackoverflow.com/questions/15385563/android-limit-intent-action-pick-to-images-in-a-specific-gallery-album Mar 13 19:07:52 be very grateful if someone can help Mar 13 19:07:59 coco89: http://www.framentos.com/en/android-tutorial/2012/07/31/write-hello-world-into-a-nfc-tag-with-a/ Mar 13 19:08:08 savvyjack, you'll have to make your own Gallery gridview to pick from Mar 13 19:08:17 "Hello World" often leads to the bare basics to get something to show up Mar 13 19:08:25 sans bells & whistles Mar 13 19:08:31 belgianguy: ah perfect, thank you i will definitely learn from this Mar 13 19:08:41 belgianguy: thanks a lot, i appreciate it i'll let you know how i get on Mar 13 19:08:46 thanks nseidm1 :) I was wondering why was not working Mar 13 19:08:49 sorry for all the noobness i'm really new to nfc Mar 13 19:08:56 and android for that matter Mar 13 19:09:06 but i'm comforatble with android Mar 13 19:09:36 coco89: nm, everyone has to start somewhere Mar 13 19:10:32 gawd Mar 13 19:10:34 still angry. Mar 13 19:10:35 meh Mar 13 19:10:36 i haven't seen chromsOS yet, but i wonder if they would replace android's java framework with some presentation layer from that? but i guess thats html5 ? Mar 13 19:10:40 indeed Mar 13 19:10:56 Zooklubba, +1 Mar 13 19:10:59 uragano2: your adapter code is broken, straight up. Mar 13 19:11:04 hey nseidm1 Mar 13 19:11:10 lov, g00s Mar 13 19:11:13 uragano2: in particular, take a look at your codepath when you're recycling a view. You're not actually DOING anything with it. Mar 13 19:11:15 hey Napalm Mar 13 19:11:15 g00s: get a ticket? Mar 13 19:11:15 lov, wow you actually had the patience to look through it Mar 13 19:11:21 Napalm: no, ;) Mar 13 19:11:26 Napiznalmmmmmmm in the house Mar 13 19:11:32 nseidm1 but at least I have beer now. Mar 13 19:11:38 hey nseidm1 Mar 13 19:11:42 Let's see if I get relaxed or more angry, lolz Mar 13 19:11:44 uragano2: actually, no, that's not true, it's just really, really weird. You're giving the adapter a set of Views. Mar 13 19:11:58 just got home, i think today was a total waste of time Mar 13 19:12:06 Napalm: it would be nice to get a device; but i can watch the youtube of the announcements google may or may not follow up on ;) Mar 13 19:12:16 When is the best time in a) the lifecycle to traverse the cache-file-dir in order to remove obsolete items, and b) should i start a new thread for such a task? Mar 13 19:12:20 im going to go to my local I/O extended Mar 13 19:12:29 get to watch keynote and have some beers Mar 13 19:12:39 peroht, definitely async Mar 13 19:12:59 a, I dunno, you gotta decide Mar 13 19:13:38 peroht: building a game? Mar 13 19:13:46 Pretty sure no i/o extended is around here, so fuck it all Mar 13 19:13:59 uragano2: to be honest, I'm not even sure what your code is doing. I'd strongly recommend that you just rewrite it. Mar 13 19:14:13 belgianguy: no, it's a regular app that request data from a remote server and caches it locally, so not timecritical Mar 13 19:14:35 onStop maybe, but that won't be helpful is a user exists and re-enters right away Mar 13 19:14:47 uragano2: you might also want to use hierarchyviewer, and/or the debugger, to see what's actually happening Mar 13 19:15:24 uragano2: I DO notice that none of the views in your adapter will actually have the postId set, but frankly given your strange code I don't know what's actually happening here. Mar 13 19:15:26 nseidm1: yes i'm reading up on this now. and whyen reaching onDestroy the doc says that i should be sure that additional threads are destroyed Mar 13 19:15:30 peroht, you have to determine the threshold when the data becomes obsolete Mar 13 19:15:56 peroht, regarding concurrency? Mar 13 19:16:13 nseidm1: yes, the threshold is easy, it is the timing in the lifecycle I wonder about, and if tehre are any "best practises" Mar 13 19:16:17 before i hack away .. =) Mar 13 19:16:41 nseidm1: please elaborate on "concurrency" (english is not my mother tounge) Mar 13 19:17:38 concurrency is multi threading Mar 13 19:17:44 executing "stuff" at the same time Mar 13 19:17:51 nseidm1: as in seting up an async Mar 13 19:18:02 peroht: doesn't LoaderManager handle those things? Mar 13 19:18:08 with its Callbacks Mar 13 19:18:09 ahhhhhhhh Mar 13 19:18:09 don't say Async, my ears are bleeding!!!! Mar 13 19:18:18 belgianguy: I dont know Mar 13 19:18:27 belgianguy: i havent looked into that much Mar 13 19:19:25 nseidm1: arent you suppose to be working :P Mar 13 19:19:34 belgianguy: i've seen it being mentioned before but never got myself to extend it for my cause Mar 13 19:20:09 nseidm1: sorry for that :) Mar 13 19:20:18 Napalm, waiting on specs, mostly working on the background sync service Mar 13 19:20:40 trying to relax a bit :-) Mar 13 19:21:05 peroht, lol it's all good. I love concurrency: https://github.com/nseidm1/TaskExecutor Mar 13 19:21:07 belgianguy: Maybe it is time to read up on the topic Mar 13 19:22:28 Can anyone give me some advice on how to get a video capture device (Easycap) working? I can load the driver (build easycap.ko) but /dev/video is never created Mar 13 19:23:41 peroht: this Earthquake app uses it to update itself iirc Mar 13 19:23:41 nseidm1: i currently use intentservice to do the work Mar 13 19:23:42 Oops, should have asked that in android-root, sory! Mar 13 19:23:43 http://books.google.be/books?id=g3hAdK1IBkYC&pg=PT202&lpg=PT202&dq=android+loadermanager+refreshearthquakes&source=bl&ots=aqNyGP7DFR&sig=MSCNsQNAByxmGBzgJ5ejUuuRoHo&hl=nl&sa=X&ei=7NFAUY3OH8aZ0QW89oCABw&ved=0CEYQ6AEwAw Mar 13 19:24:27 peroht, IntentService is a very reasonable design pattern for concurrency Mar 13 19:24:57 other than being serial, I prefer pools Mar 13 19:25:02 Hi, how can I build C library (libvorbis) under Android GCC ? (prefferably under Eclipse) Mar 13 19:25:08 I guess it varies from situation to situation Mar 13 19:25:14 nseidm1: i can not judge which benefits i'd get by using the library you link to.. Mar 13 19:26:23 peroht, if you're accustomed to IntentService it's fine. I'd recommend looking into ExecutorServices for the fun of it. Mar 13 19:26:53 a cached thread pool executor is extremely efficient Mar 13 19:27:00 nseidm1: Yes, always good to learn more about it, i'll save the link for later use Mar 13 19:28:25 nseidm1: whers my name in the Readme.. dont i get a mention.. at least that of supportive role :D Mar 13 19:28:26 haha Mar 13 19:28:39 luckyneo: 1 Android NDK, 2 tears of an orphan, 4 portions of unobtanium Mar 13 19:28:59 belgianguy: I'll see what the code does. Thanks. Mar 13 19:29:08 belgianguy: so true Mar 13 19:29:38 i remember trying to compile ffmpeh/avconv for android.. that was a bad idea Mar 13 19:30:20 Rubin is out as Android head? Hmm... Mar 13 19:30:32 Napalm, readme updated :-) Mar 13 19:30:36 Ologn: sauce? Mar 13 19:30:42 Has anyone managed to change the contents, or modify data associated with, elements displayed on the actionbar at run-time? Mar 13 19:30:53 In this case I have a Spinner that I need to change the contents of Mar 13 19:31:01 belgianguy, http://googleblog.blogspot.com/2013/03/update-from-ceo.html Mar 13 19:31:07 nseidm1: oh yea, damn right.. that is awesome Mar 13 19:31:08 enneract|laptop, sure Mar 13 19:31:13 but I havent found any way to get a handle on any part of the actionbar except the navigation items Mar 13 19:31:15 so GOOG replaced the android main guy with the chrome os main guy but android is a success and chrome is not Mar 13 19:31:37 https://github.com/nseidm1/TaskExecutor oh yea, readme is now 10x cooler Mar 13 19:31:38 ;) Mar 13 19:31:56 nseidm1: what should I be looking at? I'm grabbing the menu at onCreateOptionsMenu, and trying to extract the actionbar menu from that? Mar 13 19:32:00 hi there. I'm new in the android world. I've tried to run an example application without success because the android emulator is really, really slow for my pc Mar 13 19:32:05 Dorky: come on, everybody knows the future is Glasses ;) after all, the phone is emasculating ! Mar 13 19:32:06 just getting a bunch of NPEs tho Mar 13 19:32:12 what can you suggest to me in order to test my application? Mar 13 19:32:16 belgianguy: I do have Android NDK, but when I hit build button I get two errors: Program "g++" not found and Program "gcc" not found. I already have path to ndk in PATH variable. Mar 13 19:32:16 enneract|laptop, for a navigation mode spinner? Mar 13 19:32:20 jewels: the emulator is really really slow for anyone Mar 13 19:32:21 just change the data backing it Mar 13 19:32:34 nseidm1: this is unrelated to navigation, unfortunately. I'm using tabs for navigation Mar 13 19:32:39 so there isn't a method in order to test the application? Mar 13 19:32:46 I haven't a smartphone :( Mar 13 19:32:46 jewels: use hardware Mar 13 19:32:48 jewels, a phone and logcat Mar 13 19:32:58 luckyneo: what OS are you running? Mar 13 19:33:00 luckyneo: ever build a c/c++ program from the commandline? Mar 13 19:33:06 it's missing a rather vital part Mar 13 19:33:11 or at least can't find them Mar 13 19:33:13 enneract|laptop I haven't a phone. Mar 13 19:33:23 jewels: then use the emulator and deal with the slow Mar 13 19:33:40 jewels: there really isnt any options other than get hardware or use the emulator Mar 13 19:33:52 really??? Mar 13 19:34:02 Maybe Google wanted to announced who the new Android head is before the Vatican announced who the new pope is Mar 13 19:34:04 it's quite annoying isn't it? Mar 13 19:34:11 So as not to get lost in the news cycle Mar 13 19:34:11 Ologn: OS X 10.8.2 Mar 13 19:34:13 Dorky: what to watch for next is where Dianne Hackborn goes Mar 13 19:34:21 jewels: on Windows/Linux the accelerator can be made quite fast Mar 13 19:34:32 the emulator* Mar 13 19:34:36 can be accelerated* Mar 13 19:34:38 jewels: developing software for hardware that you dont have access to is notoriously troublesome Mar 13 19:34:44 belgianguy really? Mar 13 19:34:48 how can I do that? Mar 13 19:34:55 enneract|laptop is for a project for the university Mar 13 19:34:58 jewels: what OS are you on? Mar 13 19:34:59 belgianguy: maybe once or twice Mar 13 19:35:13 I don't want to buy a device that I won't use Mar 13 19:35:26 after the development of the program Mar 13 19:35:30 jewels: I can understand that - I took an iOS class without opening a crapple product, that was interesting Mar 13 19:35:54 jewels: do you know anyone who might let you use theirs, or has an old one? Mar 13 19:35:59 luckyneo: I'm on Ubuntu, here I can just use repositories to install gcc Mar 13 19:36:12 even a really terrible android device is better than no android device in this context Mar 13 19:36:15 I don't know how they do that on an Apple, or if you're allowed to do so, at all Mar 13 19:36:23 that would be a sign of Free Will etc Mar 13 19:36:30 and violates quite some Apple rules Mar 13 19:36:53 it's a big problem Mar 13 19:36:54 belgianguy: good idea, I'll try it on my Ubuntu laptop Mar 13 19:37:06 https://www.manymo.com/pages/documentation/command-line-tool Mar 13 19:37:11 nobody has ever used it? Mar 13 19:37:20 luckyneo: there it's sudo apt-get install gcc, but maybe it's there already Mar 13 19:37:28 nseidm1: well maybe i'll just keep it simple and fire up a service during onStop based on some month-interval condition Mar 13 19:37:34 Eclipse you can download from the Android site, it's a package that has ADT included Mar 13 19:38:10 luckyneo: btw that Apple stuff wasn't true, I was joking, you can install gcc on a Mac... Mar 13 19:38:16 belgianguy: i am just caching the xml's straight away atm, not formatting to a sqlite db Mar 13 19:38:38 luckyneo, Android NDK contains its own g++ and gcc Mar 13 19:38:40 so, our eclipse build reached the limit on methods Mar 13 19:38:51 it's because of all the big bloatey libraries everybody keeps putting out Mar 13 19:39:11 belgianguy: would the loadermanager be possible to use in such a scenario? Mar 13 19:39:13 luckily, proguard strips out so much of that crap Mar 13 19:39:19 belgianguy: or is it customized for e.g. cursors Mar 13 19:39:26 but you can't run proguard on debug builds unfortunately Mar 13 19:39:32 luckyneo: d'oh, yeah it's in the NDK download (is seperate from the SDK's) Mar 13 19:43:30 peroht: http://helpmeco.de/2012/3/using-an-android-cursor-loader-with-a-content-provider Mar 13 19:44:08 guys, any idea why when i decrypt the bytes i get from the app, it gives me BadPaddingException? It works most of the time, but sometimes it throws that exception. Mar 13 19:44:10 http://pastebin.com/w3TqFZAz Mar 13 19:44:48 make a while loop around it, repeating it until it worked, if it works sometimes Mar 13 19:44:55 ;) Mar 13 19:45:15 belgianguy: What command should I use to build C code? There are few executables in NDK folder - ndk-build, ndk-gdb, ndk-stack etc. Mar 13 19:45:53 luckyneo: ndk-build should usually do the trick Mar 13 19:46:19 luckyneo: but it's a fickle bunch, nowadays Eclipse has Native Application integration Mar 13 19:46:26 so it too should be able to do that Mar 13 19:46:39 are you building a full Native app or a JNI app? Mar 13 19:46:49 Hi, I have quite a few years of experience coding Java, do you have a tutorial/series of tutorials suited for someone who knows the java language well but needs an introduction to android concepts only? Mar 13 19:47:13 timroes: I mean it works most of the time for different bytes, but some times, it wouldn't. Mar 13 19:47:20 Xabster: http://d.android.com (specific http://d.android.com/training) Mar 13 19:47:35 you find everything you need in the official docs Mar 13 19:47:49 Xerixe: yeah i won't be a help there :D Mar 13 19:48:29 belgianguy: I'm trying to compile libvorbis as an .so library to make it work under Mono for Android. Mar 13 19:48:49 timroes, at first glance a lot of that is introduction-style information for eclipse and coding in general Mar 13 19:49:01 luckyneo: I'd say go with Hello World first, compiling another library just like that isn't easy Mar 13 19:49:11 and possibly requires some flags in your makefiles Mar 13 19:49:15 Xabster: not at all Mar 13 19:49:30 the basic trainings cover setting up the sdk to develop for android Mar 13 19:49:35 and then doing your first android applications Mar 13 19:49:35 so the only way in order to test an android's application is to launch it on a device? Mar 13 19:49:38 really? Mar 13 19:49:56 if you don't like tutorial like trainings, you can also go to the API guides, and read them (a bit more reference like not tutorial like) Mar 13 19:49:58 jewels: what in the word emulator did you not understand? Mar 13 19:49:58 Nobody has tried to do something like this without using a device? Mar 13 19:49:59 well, the first page shows how to create a project Mar 13 19:50:03 or if you are hardcore, just read the real reference :D Mar 13 19:50:10 Xabster: an android project Mar 13 19:50:17 belgianguy, the emulator is slow for my pc unfortunately. Mar 13 19:50:50 jewels: then there is noth mutch to do Mar 13 19:50:52 Xabster: so since even if you have java experience, you haven't yet used the minimum sdk, target sdk and themes Mar 13 19:50:53 jewels, what OS? Mar 13 19:50:55 thats why it is explained Mar 13 19:51:35 Windows has HAXN IIRC, Ubuntu et al have KVM Mar 13 19:51:45 to get the emulator up to hw speeds Mar 13 19:52:29 jewels: it's called HAXM for windows, not HAXN Mar 13 19:52:51 for windows 7 Mar 13 19:53:25 jewels: http://software.intel.com/en-us/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-microsoft Mar 13 19:53:49 jewels: you need an Intel CPU though Mar 13 19:53:56 AMD won't fly with this Mar 13 19:55:10 google maps done with html/javascript have really bad performance on android or im doing it wrong ? Mar 13 19:55:18 thank you a lot :) Mar 13 19:55:25 I really appreciate Mar 13 19:55:56 Anyone know how to adjust the alignment of an element on the actionbar? The one element on my split actionbar is being set to the center, I'd like it to one side or the other Mar 13 19:56:00 tibbi: I know of the Maps SDK V2 Mar 13 19:56:14 iirc that was just a component Mar 13 19:56:31 Android Maps SDK V2 to be correct Mar 13 19:57:14 belgianguy: excellent quick intro to the topic. however i wont share the data, is it overkill or should one generally consider to implement a custom contentprovider for the data in applications? Mar 13 19:57:29 im working on an app thats mostly around maps and it will be made for ios too, so i tried html/js Mar 13 19:57:38 but the performance is really not comparable to java Mar 13 19:59:46 How do I add v13 support library to my project if I already have v4? Mar 13 20:00:45 belgianguy: kind of implementing crud-handler for all data, makeing it work internally as well as well as taking into account future external accesses by other apps. Mar 13 20:02:00 Does anyone know how to set the background on actvities using a them? So anytime I create an activity it will already have the background set? Mar 13 20:03:00 peroht: I don't know the prerequisites Mar 13 20:03:09 so I can't really give an answer to that Mar 13 20:03:21 belgianguy: sorry, i was thinking out loud. thanks you for the help and links. Mar 13 20:03:26 re :) Mar 13 20:03:55 peroht: np Mar 13 20:03:57 belgianguy: i am all set for my implementation Mar 13 20:04:18 nseidm1: thank you too. Mar 13 20:04:24 * belgianguy is off for tonight, see you later Mar 13 20:05:00 nm I found it windowBackground Mar 13 20:05:01 Oh. v13 includes v4. Mar 13 20:06:00 in this tutorial http://www.vogella.com/articles/AndroidBroadcastReceiver/article.html in point 1.4 After the onReceive() of the BroadcastReceiver has finished, the Android system can recycle the BroadcastReceiver. Therefore you cannot perform any asynchronous operation in the onReceive() method. If you have potentially long running operations you should trigger a service for that. Mar 13 20:06:19 How i should understand that ? Mar 13 20:07:11 as i see the onReceive() is fired all time when i call sendBroadcast(intent); Mar 13 20:11:54 what's NavUtils? Mar 13 20:13:17 clear Mar 13 20:13:28 hetii: do you know what an asynchronous task is ? Mar 13 20:13:55 StingRay_, it's badddd, very badddd Mar 13 20:14:10 ohhh hail the evil AsyncTask Mar 13 20:15:02 Just wondering what the best platform for android and java development is Mar 13 20:15:14 best is a matter of choice Mar 13 20:15:41 What do you use would be the correct question here then Mar 13 20:15:47 Spine: subjective Mar 13 20:16:30 Well, lets put it this way. If someone is using something other than Eclipse or IntelliJ they are not common. Mar 13 20:17:06 nseidm1: thanks! now what OS is preferred Mar 13 20:17:12 Debian Mar 13 20:17:23 Thank you. Mar 13 20:18:15 nseidm1: lol Mar 13 20:18:55 Well, soon there'll be a new stable at least. Mar 13 20:19:34 StingRay_: Yes, i know but why i cannot run it them there or operation that takes long period of time? Mar 13 20:19:47 Is it called by main thread and block the rest of application ? Mar 13 20:20:02 Wow, heh Mar 13 20:20:18 figured out a way to force alignment on a single-element bottom actionbar Mar 13 20:20:29 add a blank element before or after it. Mar 13 20:20:37 would probably work for top too Mar 13 20:21:15 If I have a nexus 7 for testing , is there any benefit in getting a nexus 4, I'm looking for an excuse to press 'buy' :) Mar 13 20:21:42 apple741: its awesome? Mar 13 20:21:50 besides, you need to test for handset targets too Mar 13 20:22:24 gotta get that mdpi device for testing asap Mar 13 20:22:48 enneract|laptop: True :) Would there by much difference between a handset and tablet (apart from screen size) Mar 13 20:22:53 ^for testing Mar 13 20:23:04 apple741: yes Mar 13 20:23:29 well, screen size is a big one - the main thing is that depending on how you've done your layouts, 4" and 7" screen trigger different layout types Mar 13 20:24:00 like on master/detail -> 4" gets the handset model with the 1-frag container activity, while 7" gets the 2-frag container Mar 13 20:25:11 True but couldn't you also do that on the emulator? I thought both devices have a similar aspect ratio anyway? 1.6 vs 1.67 (I think) Mar 13 20:28:03 apple741: I think it's time for you to do what you want Mar 13 20:28:16 I think your right :) Mar 13 20:28:27 Sorry for all the trouble guys :) Mar 13 20:28:28 unless you can think of another way to ask the same question, but I think you have used them all up now Mar 13 20:28:30 :) Mar 13 20:28:42 This might sound like a silly question, but I want to create a Splash Screen that is beyond the usual fade-in, fade-out, translation animation stuff. Is it possible to create a video and use that as a splash screen? Mar 13 20:29:36 Or something to the same effect. Mar 13 20:30:06 splash screen bad Mar 13 20:30:12 bad bad boy Mar 13 20:30:23 1994 called, they want their splash screens back Mar 13 20:30:48 I know I know Mar 13 20:31:00 Its more of a box ticking thing than an actual implementation Mar 13 20:31:09 tho, to be fair, I don't know which is more bad - a splash screen, or an a momentarily unresponsive app on startup Mar 13 20:31:17 ^ Mar 13 20:31:22 That is the only reason I use them. Mar 13 20:31:27 progressbars and concurrency! Mar 13 20:31:35 I would, personally, rather a splash screen than a progress bar in my face on start up. Mar 13 20:31:36 ui lag has no excuse Mar 13 20:31:45 load your views Mar 13 20:31:46 You don't really have a choice regarding concurrency in Android. Mar 13 20:31:48 load everything Mar 13 20:31:51 You can't network on the main thread lol Mar 13 20:32:10 I don't see why anyone would want to network on the main thread Mar 13 20:32:17 Agreed Mar 13 20:32:33 today, 50% of "The Joy of Clojure" from Manning :) Mar 13 20:32:34 unless they love ANR dialogs that much :-P Mar 13 20:32:37 Either way, I was more after an answer the question than a lecture of stuff I already do on a daily basis at work. Mar 13 20:32:41 :P Mar 13 20:32:49 It is a box ticking thing for my course. Mar 13 20:33:02 your course wants you to do a splash screen? Mar 13 20:33:16 Hahaha noooo. Mar 13 20:33:17 tell them it's not appropriate for Android Mar 13 20:33:19 instant A+ Mar 13 20:33:22 My course wants me to improve something at work Mar 13 20:33:26 (Im on Placement) Mar 13 20:33:37 My work needs to improve on the current implementation of a splash screen Mar 13 20:33:41 As per clients request Mar 13 20:33:45 I was asked to improve this. Mar 13 20:33:50 oh Mar 13 20:33:55 And I FECKING HATE fade-in, fade-out shit Mar 13 20:33:59 For the record, though. I agree. Mar 13 20:34:02 damn clients Mar 13 20:34:07 Exactly. Mar 13 20:34:16 Developing would be easy if you didn't have to do it for other people. Mar 13 20:34:22 in onCreate do overridePendingTransition(xx, xx); Mar 13 20:34:28 you can set any animations you want Mar 13 20:34:33 mine has made me make a UI based around literally copying a physical control panel, with this horrendous blue background, its awful Mar 13 20:34:54 I do page folds sometimes when I get bored Mar 13 20:35:10 or a horizontal page flip for the iOS lovers at work Mar 13 20:35:12 nseidm1: I was looking for less of a sticky feel if that makes sense? Mar 13 20:35:15 hi, how would I go about making my own resource defs, similar to android.R.drawable, i would like to have myRes.R.drawable Mar 13 20:35:16 Something a little more fluidic Mar 13 20:35:42 porten, http://developer.android.com/guide/topics/resources/drawable-resource.html Mar 13 20:36:32 Anthaas, let your activity load completely and then you can use ObjectAnimator, or ViewProperyAnimator on some sort of fullscreen view Mar 13 20:37:07 nseidm1: Opening up the Android Dev Res on those two classes now. Mar 13 20:37:11 Overlay a fullscreen view over the screen using a relative layout and animate that bad boy till the sky falls down Mar 13 20:37:12 Cnseidm1: Cheers Mar 13 20:37:57 nseidm1: Im thinking that the animation I'm after is beyond the capabilities of XML and Java though Mar 13 20:38:02 Or at least my XML and Java hahaha Mar 13 20:38:32 fade, flip, rotate, anything you think of can be done Mar 13 20:38:43 Anyone know of an easy way to persist spinner states? Mar 13 20:38:44 how about fade, flip, and rotate at the same time Mar 13 20:38:45 How much BroadcastReceiver i should have in my applicat ? Currnetly i have two. One start my application after system reboot and the second i use to processes events from network service Mar 13 20:38:46 AnimatorSet Mar 13 20:39:51 But i got some error in logcat that i have leaked IntentReceiver and i should unregister it. Mar 13 20:40:04 unregister in onPause please Mar 13 20:40:17 ^ Mar 13 20:40:21 And register in onResume Mar 13 20:40:36 So many times Ive had a colleague ask "Why isn't my receiver receiving" Mar 13 20:40:43 BECAUSE ONCREATE WAS NEVER FUCKING CALLED!!!! Mar 13 20:40:46 Mar 13 20:42:15 thats why in my case i plan to use BootUpReciever to setup my application and start all others services threads and so on. Mar 13 20:42:57 I`m not sure if its a good way to do it also If i had such BootUpReciever should i also unregister it ? Mar 13 20:43:14 Not entirely sure I'd want my application doing EVERYTHING on first load Mar 13 20:43:30 I prefer my downloads/services etc only start when they are needed. Mar 13 20:43:44 Anyone know of a Preference that accepts a numeric input and has up\down incrementor buttons? Before I go make one? Mar 13 20:44:39 enneract|laptop i'm looking for someting like that but not for preferences....that can also restrict inputs to a discontinuous range what dont you make one or if you find one paste one if you make one make it open source and paste Mar 13 20:44:42 nseidm1: Turns out that that kind of animation isn't quite what Im after Mar 13 20:44:46 Im almost after a video Mar 13 20:44:51 Ill try find an example Mar 13 20:45:49 Anthaas: sure those services that are required for eg by Activity can be stopped when don`t needed. But will have also services that need to work 24h/ 7 days and they cannot be stopped. Mar 13 20:46:50 Dorky: I can't, on work time :( Mar 13 20:48:21 NumberPicker can do that Mar 13 20:48:56 lol, wait, what? Google IO tickets are $900? nothingtodohere.gif Mar 13 20:49:04 SimonVT: i've tried numberpicker and yes it can do discontinuous lsits Mar 13 20:49:26 SimonVT: but I need to go from say 25-3000 with some skips and number picker is REALLY slow to scroll through that many numbers Mar 13 20:49:40 Use a MultiSelectListPreference? Mar 13 20:49:55 Somewhat faster but still a pain? Mar 13 20:50:02 SimonVT: so that's why I want something that has +/- buttons but are holdable for faster scrolling...acceleration? Mar 13 20:50:06 SimonVT: yea, going to implement a DialogPreference with a numberpicker backing it Mar 13 20:50:14 Anthaas, what kind of animation do you want to do? Mar 13 20:50:22 numberpicker is only good for say <15 choices Mar 13 20:50:24 I'm not sure any kind of picker is really the best choice for that large a range Mar 13 20:50:25 Dorky: mine wouldnt do that anyway, I only need to select between 1-25 or so Mar 13 20:50:30 ok Mar 13 20:50:44 well the number picker sucks so hard google isn't even using it on the clock alarm settings anymore Mar 13 20:50:52 at least not on my nexus 7 Mar 13 20:50:58 might have some sort of selector bar for range changes, with something like a numberpicker for fine adjustments Mar 13 20:51:07 nseidm1: Not entirely sure animation is the right word. It pretty much would be a video splash screen. I dont want some sort of linear movement etc Mar 13 20:51:25 or, have a picker for each digit Mar 13 20:51:39 Ugh, fuck the splash screen, they can shove it up dey ay holes Mar 13 20:51:41 idk what numberpicker even looks like Mar 13 20:51:46 To be fair, it was kind of annoying to use numberpicker for picking a time Mar 13 20:51:51 Its like a number in the middle Mar 13 20:51:52 Use it when appropriate Mar 13 20:51:55 With buttons above and below. Mar 13 20:51:57 Make custom implementation when not Mar 13 20:52:00 Or just use an edittext Mar 13 20:52:01 And you pick. Mar 13 20:52:19 Like a timepicker, but with one number rather than a time. Mar 13 20:52:38 SimonVT: sure i can make a custom implementation but it'd be good if there were more core widgets or thrid party widgets so everyone isnt reinventing wheels all the tem Mar 13 20:52:45 It looks like one of these: https://developer.android.com/images/ui/pickers.png Mar 13 20:52:52 Without the up and down arrow on 4.2 Mar 13 20:53:23 you know, every time someone says 'there should be more third party widgets', I want to respond with 'why dont you make some, then?'~ Mar 13 20:53:26 <3 pickers that arent pre-holo haha Mar 13 20:53:37 ^ I have Mar 13 20:53:43 A self-validating edit text Mar 13 20:53:46 nice Mar 13 20:53:48 tickets still available: https://developers.google.com/events/io/register/ticketsearch Mar 13 20:53:50 Because Im fed up of seeing shite code Mar 13 20:53:59 Im working on them now Mar 13 20:54:08 I made an IP input widget the other day, I should release it Mar 13 20:54:16 enneract|laptop: becaues thats not my business model doh...i do apps for clients i don't do core stuff --- Mar 13 20:54:24 ^ same Mar 13 20:54:25 And I hate it Mar 13 20:54:35 enneract|laptop: someone should do some tho....if I wanted to make it a business enterprise i'd have to give that a lot of consideration Mar 13 20:55:05 So what you're saying is, someone else should do the work for you, so you can earn more money Mar 13 20:55:08 eh, it doesnt necessarily have to be a 'buisness model'. If you make one, open source the widget and release it Mar 13 20:55:32 I can't make one and open source it when I'm charging the client to make it Mar 13 20:55:39 it's just that simple Mar 13 20:55:45 so like I said itd have to be a change of business model Mar 13 20:55:59 I'm just surprised there isn't more of an ecosystem of "common" android controls both OS and commercial Mar 13 20:56:00 why not? its just the widget, they are paying for a complete app, no? Mar 13 20:56:05 most of the OS ones ar half baked Mar 13 20:56:19 does anyone know how to reload the network stack in android without rebooting? ifconfig rmnet0 down had no affect, nor did airplane mode (unless this is a symptom of the problem too) Mar 13 20:56:29 There are tons of open source android widgets Mar 13 20:56:29 enneract|laptop: I'd have to ask them and even if I did, I would only do the bare minimum of what's necessary for THIS app, and that's like all the sucky OS controls Mar 13 20:56:33 unless the contract has bits about all the parts belong to them - in which case, sign better contracts Mar 13 20:56:38 SimonVT: sure and most of them sucks Mar 13 20:56:43 I might just make a set of widgets and release them Mar 13 20:56:57 Anthaas: sure let me know if you do Mar 13 20:57:05 Ill start now lol Mar 13 20:57:08 Fuck all else to do Mar 13 20:57:19 there are lots of half baked OS widgets where it only solves their problems and aren't broadly usable Mar 13 20:57:23 Dorky, all I'm saying is that if you don't do the bare minimum, you get to use it again later, and could release it that way. Negotiate up front with your clients about framework elements belonging to you, no them, etc Mar 13 20:57:45 enneract|laptop: I focus on two things on my contracts: high rates, fast payment times Mar 13 20:57:48 if you frame it right, it isnt a problem Mar 13 20:57:54 I spent my effort there, not negotiating open source rights Mar 13 20:57:57 spend Mar 13 20:57:58 ^^ Mar 13 20:58:09 thats your call then, but dont ask other people to open source their work Mar 13 20:58:16 if you arent willing to do the same Mar 13 20:58:20 I'm not asking other people to open source their work Mar 13 20:58:20 just sayin Mar 13 20:58:25 you did lol Mar 13 20:58:33 what I'm asking for, is, a commercial company to get into the market Mar 13 20:58:43 the OS widgets can be problematic for commercial apps anyway depending on license Mar 13 20:58:46 How it would it be profitable for them to do that though? Mar 13 20:58:49 i'd rather see a compnay step in Mar 13 20:58:49 (1:44:36 PM) Dorky: enneract|laptop i'm looking for someting like that but not for preferences....that can also restrict inputs to a discontinuous range what dont you make one or if you find one paste one if you make one make it open source and paste Mar 13 20:58:56 Right, we are going to pay developers to make stuff and give it away. Mar 13 20:59:01 right IF he makes one Mar 13 20:59:07 I didnt ASK him to make one Mar 13 20:59:26 the companies could make money by selling the libs to devlopers just like gaming stuff like Unity Mar 13 20:59:31 :| Mar 13 20:59:35 Plus, if he is on company time, 90% chance that it would belong to the company and he would get sacked for making it open source lol Mar 13 20:59:36 if there was a $500 widget pack that had lots of great stuff I'd buy it in a heartbeat Mar 13 20:59:40 the point, it flies over your head Mar 13 20:59:48 likewise Mar 13 20:59:57 Right Mar 13 21:00:02 Ill sell it once I've made it then Mar 13 21:00:04 What Ill do Mar 13 21:00:05 no, I get that you think that some company should jump in to make some money of making a widget framework Mar 13 21:00:07 i'm asking for commercial widgets mostly Mar 13 21:00:10 It take ALL the things off of github Mar 13 21:00:12 ...lol Mar 13 21:00:21 what i need to include to have getSystemService ? I want to call it in some common class not in activity. Mar 13 21:00:28 Pass a context Mar 13 21:00:33 then do context.getSystemService Mar 13 21:00:35 Anthaas: there is one already the open intent library is a bunch of github flakeware Mar 13 21:00:53 enneract|laptop: so why hasn't one then? it seems crazy that there hasn't been one Mar 13 21:01:14 there are commercial enviornments like phonegap monotouch etc but no commercial widges for android its just odd Mar 13 21:01:17 what I'm saying, is that while that would be great, but generally things would suck less if individual developers published their boilerplate widgets when they reinvented the wheel Mar 13 21:01:46 enneract|laptop: I disagree because there are a lot of half baked boilerplate widgets already and they are tedious to go through onl to find out they suck Mar 13 21:01:48 ymmv tho Mar 13 21:02:06 yea lots of them suck, fair enough Mar 13 21:03:04 to be honest Mar 13 21:03:07 wtf is boilerplate Mar 13 21:03:22 uh, 'standard' Mar 13 21:03:26 more or less Mar 13 21:03:33 copypaste Mar 13 21:03:36 ^ Mar 13 21:03:37 Oh right Mar 13 21:03:47 to be honest Mar 13 21:03:53 Chances are these widgets that Ill create will suck Mar 13 21:04:02 And there will be 2983472093847 instances of the same thing out there Mar 13 21:04:07 But I will have learnt doing it Mar 13 21:04:08 a boilerplate is a template Mar 13 21:04:13 It will be my own code - so easier to change Mar 13 21:04:18 but its not necessarily full featured Mar 13 21:04:19 and it will solve a problem for me Mar 13 21:04:25 mode code written these days is copypaste boilerplate anyway Mar 13 21:04:26 right there are tons of those half baked widgets out there Mar 13 21:04:27 most* Mar 13 21:04:33 I like writing my own code. Mar 13 21:04:37 anyway i'd pay for a commercial library Mar 13 21:04:47 maybe i'll get some VC and that'll be my next business who knows Mar 13 21:04:53 if thre really isn't one Mar 13 21:05:02 which seems hard to believe but i havent found one so maybe there really isnt Mar 13 21:05:06 if it exists, it must suck because nobody is using it Mar 13 21:05:10 I need a decent sized monitor Mar 13 21:05:14 There was a commercial widget pack at some point Mar 13 21:05:15 or its like fucking fight club Mar 13 21:05:25 SimonVT: the russian crapware one? Mar 13 21:05:26 First rule about Code Club. Mar 13 21:05:27 artfulbis? Mar 13 21:05:31 Increment your indexes. Mar 13 21:05:33 the artfulbits stuff is a sham Mar 13 21:05:40 Dorky Mar 13 21:05:45 Write your own in your spare time? Mar 13 21:05:46 i'm surprised telerik and rad controls havent gotten into it Mar 13 21:05:48 No, doesn't sound familiar Mar 13 21:05:50 i dont have any spare time Mar 13 21:06:01 so no Mar 13 21:06:26 nseidm1: I was trying to make a android library application with its own resources Mar 13 21:06:27 anyway it could be a business oppty Mar 13 21:06:28 They had stuff like carousel views and stuff back when that was the shit Mar 13 21:06:32 so is there a way to reload the network stack in android without rebooting? Mar 13 21:06:41 right that should be another open source control or payware Mar 13 21:06:43 Think I saw it first in 2.2 or something Mar 13 21:06:45 something that was reusable between applications Mar 13 21:06:53 carousels, gridviews, graphing, various pickers Mar 13 21:06:59 customizable Mar 13 21:07:09 Turns out theres a short cut to close a channel, and I just pressed it... Mar 13 21:07:12 i think you could charge $500-$1500 Mar 13 21:07:12 What did I miss? Mar 13 21:07:40 anyway it's time for me to have my beer break Mar 13 21:07:57 if you findz and gud controlz for numeric entry and graphing pm me Mar 13 21:08:00 any Mar 13 21:08:05 LGPL or better Mar 13 21:09:09 Question Mar 13 21:09:35 When creating a self-validating edit text, it seems kinda obvious to allow the user to enter their own regex to validate against Mar 13 21:09:43 But at the same time, do I want to allow the users to break themselves? Mar 13 21:09:50 so does anyone know if i can make my own android library application with my own references to resources so that i can reference them in other android apps? like myRes.R.drawable or something like that Mar 13 21:10:12 Create an application with all the code you want Mar 13 21:10:17 Export it to a .jar file Mar 13 21:10:22 then import it like any other library? Mar 13 21:10:33 Anthaas: but do i need always pass the context or can i for eg get it globally for eg. by getApplicationContext() ? Mar 13 21:10:56 hetii: getApplicationContext() is only available for subclasses of Application (Such as Activity) Mar 13 21:11:06 Pass the context in to your class through a constructor Mar 13 21:12:16 You mean subclasses of Context Mar 13 21:12:16 well. but if i have few activitys is it means that each of them have own context (instance) ? Mar 13 21:12:37 SimonVT: Yes hahaha Mar 13 21:13:20 hetii: Yes (Which would be given by MyActivity.this) but that isn't a good idea as it could lead to memory leakage. Always use getApplicationContext() when possible. Mar 13 21:13:29 Activity doesn't have their own context instance, Activity IS a context instance Mar 13 21:14:38 ok, some example. Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); Mar 13 21:14:54 Anthaas, i disagree Mar 13 21:15:04 only use getApplicationContext() when that instance may outlive the activity Mar 13 21:15:28 hetii: Nearly: Vibrator v = (Vibrator)context.getSystemService(Service.VIBRATOR_SERVICE); Mar 13 21:16:12 canadiancow: Yes, true. But it is an easy rule to follow to avoid leakage. Mar 13 21:16:26 sure, but why i cannot get is from some global context but instead from instance of activity ? Mar 13 21:16:32 there are cases where the application context behaves differently than the activity context Mar 13 21:16:49 canadiancow: Interesting. Elaborate? Mar 13 21:16:57 hello, maybe one android developer is bored? :> Mar 13 21:17:49 themes and such Mar 13 21:18:01 like you probably dont want to instantiate a TextView with the application context Mar 13 21:18:11 but again, a TextView shouldn't outlive the activity, so it's not a problem Mar 13 21:18:28 could someone change some lines in rom, to make center clock in status bar? please D: Mar 13 21:18:58 konradb: this isn't really the channel for that Mar 13 21:19:06 evanc: nope? Mar 13 21:19:34 no Mar 13 21:19:59 konradb: see if you can find a channel for the mod Mar 13 21:20:09 Hmm, ok its a bit twisted this idea with context. Mar 13 21:20:16 canadiancow: So really, only use activity context if you want to pass a specific context for a specific purpose? Otherwise application is fine? Mar 13 21:21:16 I'm beginning android development and was hoping for some suggestions. I'm planning to us Eclipse with the ADT plugin (a'la google's getting started with Android). Which version of Eclipse is recommended? Are there any other recommendationa for new Android developers (I will happily accept links to pages) Mar 13 21:21:42 zanberdo: read the topic :) d.android.com is your best starting resource :) Mar 13 21:21:59 http://developer.android.com Mar 13 21:22:06 Best guides i have used Mar 13 21:22:08 evening all. I'm trying to use a preloaded read-only SQLite database. So far all the examples I can find make use of the android SQLiteDatabase API, which forces databases to be in a certain location in a certain format (so the database file gets copied unnecessarily, primary key needs renaming to _id, etc). This is unacceptable for my situation. I want to use the SQLite file as it is, the way SQLite is normally used. Does anyone kn Mar 13 21:22:08 ow of any examples of this? I've been looking for alternative SQLite libraries, but it seems they all involve binaries for some reason so no Android. Any hints? Thanks. Mar 13 21:22:14 zanberdo: get the latest ADT Bundle. Mar 13 21:22:17 from intalling eclipse to more in depth Mar 13 21:22:19 bankai_, thank you Mar 13 21:22:34 SystemParadox: Create an SQLite .db file, and save it to assets Mar 13 21:23:04 Anthaas, I didn't see an ADT bundle at eclipse.org but I'll check out the documents as suggested by bankai_ before wasting anymore time Mar 13 21:23:16 Anthaas, I have a db file in assets already, but can't find an SQLite library that will let me access it. Mar 13 21:23:16 zanberdo: google "Eclipse ADT Bundle" Mar 13 21:23:21 its one donwload for everything Mar 13 21:23:53 Anthaas, that's exactly what I was looking for. I will do just that. Cheers! Mar 13 21:23:59 ok some other example: Toast.makeText(getApplicationContext()..).show() will render box with message even when my main activity is not on first plan, but is it mean if i do Toast.makeText(this, ..).show() then it will be rendered only when activity is showed ? Mar 13 21:24:26 SystemParadox: http://stackoverflow.com/questions/2605555/android-accessing-assets-folder-sqlite-database-file-with-sqlite-extension Mar 13 21:26:53 Anthaas, that also copies the file, which is totally unnecessary. Mar 13 21:32:21 anyone know if the dev edition of the htc one is actually see through? If so i may want one lol Mar 13 21:32:27 it isnt Mar 13 21:32:41 damn Mar 13 21:32:47 getting my hopes up Mar 13 21:32:58 how cool would that be Mar 13 21:33:06 epic Mar 13 21:33:22 as it stands ill probably wait for nexus 5 Mar 13 21:33:38 hopefully of which will have a 5" screen Mar 13 21:35:44 hi ! a question: is possible to use more than one receiver for same intent in same manifest ? Mar 13 21:36:26 should be fine Mar 13 21:37:17 two different receivers registered to receive events for the same intent? Mar 13 21:38:43 Hmm can i use static import ? So instead call MyClass.beep() just do beep()? Mar 13 21:38:51 yes, I'm adding a new feature to an existing part so: http://pastebin.com/RJEDaNdT Mar 13 21:39:24 wow thats a lot of activities Mar 13 21:39:42 at intent MEDIA_MOUNTED is already attached the receiver CPUReceiver but I would like to add new also LCDReveiver Mar 13 21:39:58 "According to several sources, Google has started sending notifications to developers with ad-blocking software in the Google Play Store regarding these apps’ removal. Players like AdBlock, AdAway, AdFree and more are being whisked away." <-- are these standalone apps? I thought AdBlock was a plugin for browsers Mar 13 21:40:10 shineworld yea should be fine Mar 13 21:40:19 g00s yea saw that earlier, I'm glad. Mar 13 21:40:33 seem don't enver never in LCDReceiver Mar 13 21:40:45 huh Mar 13 21:40:48 i'm surprised they allow adblock on the borwser considering what their revenue model is Mar 13 21:40:55 jug6ernaut: ok, i get they blocked adds - but from where or what context ? Mar 13 21:41:18 what do you mean Mar 13 21:41:22 lov: i win, i found the mistake in my brain and i solved it, then i was able to solve my problem. Thanks, you win a beer! Mar 13 21:41:51 So can anyone tell me of what ways there are for updating UI elements from a Thread(a class that extends thread). Mar 13 21:41:52 jug6ernaut: well, i guess i never tried one on android … again, were these browser plugins or standalone apps? and if the latter, how did they work? Mar 13 21:42:09 g00s oh, they were stand alone apps Mar 13 21:42:18 that blocked specific ip's usually Mar 13 21:42:21 Uh, anyone know what the button theme that is used in holo preference dialogs like edittext? Mar 13 21:42:27 blocking ads system wide Mar 13 21:42:32 most of the adblock apps worked by modifying the hosts file (requiring root) to point ad sites to localhost Mar 13 21:42:39 ah, ok … jug6ernaut maybe changing hosts - but that would require root, right ? Mar 13 21:42:42 i think adblock plus was the exception that worked as a proxy server Mar 13 21:42:52 hwat means 03-13 22:41:19.359: E/dalvikvm(2130): GC_CONCURRENT freed 1548K, 20% free 9287K/11491K, paused 24ms+2ms Mar 13 21:43:01 diki: It is not possible, you have to tell the main thread to update UI Mar 13 21:43:03 What Mar 13 21:43:04 g00s correct, there was one other method that I've heard about, but i don't recall specifically. Mar 13 21:43:34 loffa:really? :(. I wanted to avoid placing any while loops that check if they should update or not. I've done it before and it made my code really ugly. Mar 13 21:43:50 jug6ernaut: i'm pretty sure the whole point of Glasses is to pop an add in my face when i go past a store or something :) Mar 13 21:44:02 haha Mar 13 21:44:06 meh, fuck all this stuff Mar 13 21:44:19 it's beer goggles on steroids Mar 13 21:44:27 converts ugly bitches to sexy ones while you boink em Mar 13 21:44:33 and then pops up valtrex ads Mar 13 21:44:37 diki: Im not that good in threading so i cant help you more. Bot I solved it myself without while loops Mar 13 21:44:52 loffa:really? do share :) Mar 13 21:45:01 Hey guys. I'm having trouble with a webview. It's in a viewpager, but when it slides in, the graphics inside the webview take some time to load it seems. Might be a memory consumption "feature" of the WebView, is this likely? Mar 13 21:45:08 diki, use AsyncTask Mar 13 21:45:18 isn't it for progressbars though? Mar 13 21:45:19 not sure what ur doing, but its usually the answer :P Mar 13 21:45:28 you can Mar 13 21:45:32 but you don't have two Mar 13 21:45:34 diki: Can't do... dont have that code here now Mar 13 21:45:42 loffa: asynctask, handlers or View.runOnUiThread Mar 13 21:45:46 asynctask is for all the things, except that it's recommended to use executors apparently Mar 13 21:46:10 asynctask uses an executor lol Mar 13 21:46:14 think I used asynctask Mar 13 21:46:27 The contents of the webview are loaded in the Activity.onCreate, and the WebView isn't the main view in the Activity. The problem doesn't affect the whole page inside the WebView, just the furthermost edge when sliding in. Mar 13 21:46:28 diki what are u trying to do Mar 13 21:46:32 ehh diki* that above was for you Mar 13 21:47:18 hmm Mar 13 21:47:24 jug6ernaut:Well, in my thread I basically fetch a page from the internet(could be a slow process depending on my 3g speed and size of html page) then I parse and extract certain values. Then I display these values in a single Textview, but I also add some small images via a spannablestring Mar 13 21:47:56 Hey guys, I've been struggling with creating an app that just blinks from white to black every 1 second. Does anyone think they can help me out? Mar 13 21:48:06 sounds like a perfect opportunity to use an asynctask Mar 13 21:48:14 EGamerHDK, sounds like a seizure Mar 13 21:48:32 I actually posted the question on stack overflow awhile ago to no avail. Would it be alright to link you to it? Mar 13 21:48:34 EGamerHDK, when you're done give me a link - I need just that Mar 13 21:48:42 diki: look at the android developer site for a guide to asynctask if it exists Mar 13 21:48:43 jug6ernaut:I've heard that AsyncTask is used for fast things Mar 13 21:48:47 EGamerHDK, sure Mar 13 21:48:54 http://stackoverflow.com/questions/15392763/blinking-screen-activity-android Mar 13 21:48:58 EGamerHDK, although if it went unanswered on stack overflow you're probably asking the wrong questions Mar 13 21:49:39 diki you've heard? As far as i know there is no time limit to there background execution... Mar 13 21:49:40 EGamerHDK: Make a timer of some sort that shanges background color? Mar 13 21:49:45 I just get it to change colors, but it won't continue. I think I need a loop, but from the comments it seems like I don't need a loop. Mar 13 21:50:07 EGamerHDK, you do not need a loop Mar 13 21:50:19 the update 2 stuff looks pretty good Mar 13 21:50:23 Elaborate? That confuses me why I don't need a loop. Mar 13 21:50:35 EGamerHDK, because you have it in a handler with delayed executino Mar 13 21:50:40 it wil execute this every second from the code yuo pasted Mar 13 21:50:43 why would I keep getting connection refused when opening opening a server socket and then connecting to that phones IP address? Mar 13 21:51:04 liquidMittens, are you sure your attempt to open the socket succeeds? Mar 13 21:51:11 liquidMittens, knock on that socket Mar 13 21:51:12 kaneda^: That's what I mean, update 2 seems like it should work, but it doesn't... Mar 13 21:51:19 liquidMittens: from where do you connect to that ip address? Mar 13 21:51:26 EGamerHDK, update2 looks pretty good after a cursory look through Mar 13 21:51:45 yeah my server socket creates successfully and then i call accept and wait Mar 13 21:51:55 EGamerHDK, so it turns from WHITE to BLACK but not back to WHITE? Mar 13 21:52:09 then from my client I open a socket with the other phones Ip address and same port # and it hangs on "new Socket()" Mar 13 21:52:11 liquidMittens, once you do this, is it possible for you to check what's bound on the system? Mar 13 21:52:31 liquidMittens: you are on WLAN? Mar 13 21:52:47 The default color of the layout is black, So it turns white. But it won't turn black again. Just keeps white. Mar 13 21:53:04 im using just the 3G connection right now Mar 13 21:53:07 EGamerHDK, can you put a log inside of each statement and see if it's being invoked? Mar 13 21:53:08 not connected to a router Mar 13 21:53:24 I am not sure if I've got all of it, but I don't think asynctask will work.. Mar 13 21:53:32 liquidMittens: don't know if it applies to your carrier, but here you can't just host servers on phones :) Mar 13 21:53:52 i have verizon if that changes your answer at all Mar 13 21:53:54 problem is, that a lot of mobile devices share the same ip adress at the Basic station controller, so server hosting is often disabled Mar 13 21:54:15 liquidMittens: not at all, since i am not living in US and have no experience with your carriers :D Mar 13 21:54:21 oh come on that blows. Hmmm what about bluetooth to perform a similar action? Mar 13 21:54:42 but i know that here (in germany) carrier even had blocked udp totally (except dns and basic stuff) some time Mar 13 21:55:07 but how would they be able to block the connection? Mar 13 21:55:09 liquidMittens: what is the minimum platform level you are targeting? Mar 13 21:55:22 9 Mar 13 21:55:44 liquidMittens: ehhmm like every firewall? they just don't forward packages to your mobile, for a not established connection? Mar 13 21:55:56 as far as i know the socket classes are within java. Mar 13 21:56:00 yeah? Mar 13 21:56:06 AsyncTask will not work, because my code in the thread has an infinite while loop. AsyncTask requires to be started from the UI thread, which means it requires user interaction.. Mar 13 21:56:07 ohhh i see like the actual phone is causing the blockage Mar 13 21:56:11 fucking firewalls, how do they work? Mar 13 21:56:14 also, magnets Mar 13 21:56:17 no sorry i meant the carrier :) Mar 13 21:56:21 not the phone Mar 13 21:56:31 well that really puts a damper on my app idea Mar 13 21:56:44 just use a server to which both clients connect Mar 13 21:56:44 i need to be able to talk between phones and send data (music etc...) between them Mar 13 21:56:49 and communicate over the server Mar 13 21:56:52 yah, there's an iptables implementation for android i'm sure Mar 13 21:56:56 thats how i guess most networking is done Mar 13 21:57:00 liquidMittens: you're trying to connect to the other phone's 3G IP address/? Mar 13 21:57:02 which would not allow you to communicate in that direction to the phone, most likely Mar 13 21:57:24 theres a function that gets the localIP address i get that on the server phone and give it to client to connect to Mar 13 21:57:29 for future message passing Mar 13 21:57:32 most phones are behind carrier grade nat on the cell ip, too Mar 13 21:57:40 but the connection always returns "connection refused" Mar 13 21:57:43 though lte is, in theory, ipv6 end to end Mar 13 21:57:48 liquidMittens: how does it give it to the client? :D Mar 13 21:57:49 liquidMittens: while it's using cellular data? Mar 13 21:57:53 i.e. not wifi? Mar 13 21:58:09 correct. Not wifi and im hardcoding it to get the base down for now :) Mar 13 21:58:22 the IPs that carriers give out are almost always NATted, or at least heavily blocked Mar 13 21:58:29 You generally can't directly connect to them from outside Mar 13 21:58:38 JesusFreke, that would make sense Mar 13 21:58:45 crap. is it the same for bluetooth? Mar 13 21:58:48 JesusFreke, although my understanding is that things like skype punch through the NAT Mar 13 21:58:54 so there must be a way Mar 13 21:59:00 bluetooth doesn't run IP. Mar 13 21:59:04 i mean would i be able to start a connection with one phone and connect from another phone Mar 13 21:59:20 liquidMittens: bluetooth ofc can do direct communication Mar 13 21:59:24 but not via tcp/ip Mar 13 21:59:26 im pretty sure you can actually because a friend sent me a episode of its always sunny one time Mar 13 21:59:30 kaneda^: skype is outbound; i wouldn't expect them to have the same supernode/p2p stuff on a mobile Mar 13 21:59:42 liquidMittens: you can also use 3g network to send stuff beside each other Mar 13 21:59:45 dragorn, it's not ONLY outbound, you receive call and video data inbound Mar 13 21:59:55 @timroes how so? Mar 13 21:59:56 but you need a server both phones connect to to exchange the data Mar 13 22:00:01 kaneda^: almost definitely via an open connection to their server or via push Mar 13 22:00:07 same way everythoing works on your device? Mar 13 22:00:11 dragorn, i think they all run through skype servers now, actually Mar 13 22:00:14 ohh like a server id have host Mar 13 22:00:15 dragorn, they dropped a lot of the p2p stuff Mar 13 22:00:16 email Mar 13 22:00:38 i know on higher API theres a p2p library but i wanted to target a lot of phones Mar 13 22:00:46 kaneda^: there's lots of ways that look like an incoming connection to the user, which aren't an incoming IP connection to the device Mar 13 22:00:58 true Mar 13 22:01:10 so maybe ill look into bluetooth. I really didnt even think about the carriers blocking it. Mar 13 22:01:15 i guess thats why tether apps are rooted? Mar 13 22:01:16 skype somehow does magic, they get out of every nat and firewall somehow :D Mar 13 22:01:20 Ok, I'll use a log statement. Thanks. Mar 13 22:01:31 liquidMittens: what the hell has that to do with tether apps :D Mar 13 22:01:32 liquidMittens: you can do this pretty efficiently with MQTT; this is what FB uses for its chatting function Mar 13 22:01:34 timroes: they just look like https, last I read Mar 13 22:01:48 timroes: as well as negotiating a lot of other ports Mar 13 22:01:57 because tether apps are like routers if i cant even send a message how are they able to basically act as a router Mar 13 22:02:03 or am i talking shit? lol :) Mar 13 22:02:14 liquidMittens: you're confusing local and internet communications. Mar 13 22:02:17 dragorn: in the last communication congress, someone (i don't remember anymore what exactly it was about) said, if you really fail getting out of some endpoint, just tunnel via skype, they get out everywhere :) Mar 13 22:02:33 liquidMittens: a theather app is a NAT Mar 13 22:02:35 maybe i should email skype and ask for protips Mar 13 22:02:40 True. Skype is truly scray in that way. Mar 13 22:02:55 liquidMittens: you can be a server on wifi just fine if you have the internet permission. you can also nat outbound connections just fine (if you have the privs, which a non-rooted device does not) Mar 13 22:02:56 liquidMittens: you liquidMittens on wlan you can ofc receive incoming requests on a mobile (in general not saying the software supports it) Mar 13 22:03:21 timroes: that works pretty much fine, you just can't bind < 1024 Mar 13 22:03:26 thats why i asked your minimunm version, since from api 14 onwards you have wifi-direct as a 'better' alternative to bluetooth if you are anyway just trying to communicat ein wlan range Mar 13 22:03:31 So the only way for my code to theoretically work would be if both phones were on wifi Mar 13 22:03:43 otherwise its blocked by the 3G carriers, most likely? Mar 13 22:03:47 or just use a server like everyone else :D Mar 13 22:03:56 aint nobody got money for that. Mar 13 22:03:57 oh baksmali, i love you :) Mar 13 22:04:09 currently this is my BootUpReceiver http://pastebin.pl/75193 but i`m not sure if i do it right Mar 13 22:04:31 liquidMittens: i don't know how expencise servers are over there in US but the cheapest stuff you get from a few < 5 € a month Mar 13 22:04:37 (virtual servers) Mar 13 22:04:51 in general you want to use a server. If you try to run the server locally on the phone you either a) keep the cell radio on all the time or b) keep the wifi on all the time. Neither is good, and your users won't much appreciate either. Mar 13 22:04:52 im american what does that equate to in real money ;) Mar 13 22:05:01 Look at c2dp, polling, etc Mar 13 22:05:16 you mean in weak currency Mar 13 22:05:18 lets ask googl Mar 13 22:05:25 anyone know how to hide the title of a dialogpreference Mar 13 22:05:29 i mean the receiver will start only after reboot Mar 13 22:05:32 6,50$ Mar 13 22:05:43 @dragorn the connection is not permanent, that is the message/data is sent and then closed its doesnt persist for the life of the app Mar 13 22:06:04 liquidMittens: doesn't matter - if you're accepting an incoming connection at an unknown time Mar 13 22:06:13 e.g. http://www.interserver.net/vps/ Mar 13 22:06:19 liquidMittens: then you need the interface to be up. If the modem or the wifi is in power save, you won't get the incoming request Mar 13 22:06:25 how can i trigger it also when application restart ? Mar 13 22:06:36 liquidMittens: look at c2dp etc. Mar 13 22:06:42 both people would know there is a request its like a data sharing app. Mar 13 22:06:56 sorry if im misunderstanding what you're trying to say. Mar 13 22:06:59 how would both people know there is a request if the server isn't listening Mar 13 22:07:01 jasta: heh Mar 13 22:07:21 you may only be sending data for a brief time, but if you try to run the server on the phone the phone has to be awake all the time to get the incoming socket Mar 13 22:07:22 are we talking about an actual server or the phone acting like a server? Mar 13 22:07:31 beacuse i havent thought about the actual server method at all yet. Mar 13 22:07:52 i am at least talking about an actual server :D Mar 13 22:08:08 but dragorns last explanation was meant for phone acting as a server Mar 13 22:08:19 bbl Mar 13 22:08:22 timroes is telling you it's cheap to get a real server. I'm telling you it's impractical to run a server on a phone and that you should go with a real server and a push (or at least an intermittent poll) mechanism Mar 13 22:08:54 @dragorn okay that actually sounds a lot better, i guess its good i wasnt able to do it this way. Mar 13 22:09:00 in 3g network we are not talking about impractical but impossibl ein general :) Mar 13 22:09:15 timroes: ignoring carrier filtering Mar 13 22:09:20 sleep time bye! Mar 13 22:09:24 timroes: it'll nuke the battery in a few hours Mar 13 22:09:27 ill look into server hosting then because that sounds like a most efficient way to go Mar 13 22:09:36 anyone know some good ones though? just curious Mar 13 22:09:40 liquidMittens: and if you anyway get a real server, give GCM a look for push messages and try to prevent polling stuff Mar 13 22:09:53 polling is never a good idea Mar 13 22:09:58 only know german hosters, don't have any servers in the us anymore :) Mar 13 22:10:20 polling as in "is there stuff yet? How about now? What about now?" Mar 13 22:10:23 Hey Kenda I introduced a log statement at the begining of my method and it only gets called once. I think I need a loop. Mar 13 22:10:26 evanc rather polling is always a bad idea ;) Mar 13 22:10:53 liquidMittens: yeah pollin in that way Mar 13 22:11:19 also im curious why would a real server work but not the phone? is it just because i can connect without blocking but not act as the actual server due to limitations? Mar 13 22:11:58 liquidMittens: you can only make connections *out* from the phone. so your phone can connect to a server, but nothing can connect directly to your phone Mar 13 22:12:12 gotcha Mar 13 22:12:27 nor should anything connect directly to your phone Mar 13 22:12:43 makes sense i guess. Cant believe it cant be done. Mar 13 22:12:56 so, the place I work at IPOd today, too bad I don't have any options Mar 13 22:13:14 huh? Mar 13 22:13:20 Anyways thanks everyone for the help! :) back to the drawing board for a minute Mar 13 22:13:31 liquidMittens: partly because your server has a 'unique' static ip adress meaning, it will always stay with your server and only stay with your server. Your phones ip adress is NAT'ed and as such shared with many other phones, what would require the route (in this case the basic station controller/transmitter, not sure which one exactly does the routing) to forward incoming calls for a special port to YOU (and why not to anyon Mar 13 22:13:44 skype works by both connections connecting into a gateway server which bridges the connections Mar 13 22:13:55 to get across NAT and inbound etc Mar 13 22:14:09 I wrote a server like that for similar purpose Mar 13 22:14:20 and i would be able to make that connection to my server while not on wifi? just using 3G? Mar 13 22:14:56 you can always make outgoing requests from your device Mar 13 22:15:02 say hey i want to connect to that server Mar 13 22:15:08 or hei I want to connect any ip adress Mar 13 22:15:30 Is there a reason why the emulator might be taking so long to load/is so laggy? I have 8gb ram and not many other programs running. Mar 13 22:15:42 apple741: because its an emulator? Mar 13 22:15:52 you use ARM image? Mar 13 22:15:53 awesome. Thanks time and dragorn and everyone else Mar 13 22:15:54 fuck the emulator Mar 13 22:15:59 dont be so cheap and go buy a device Mar 13 22:16:18 yeah i always like to buy every device out there, to test it under any possible configuration ... ;) Mar 13 22:16:37 the emulator does not emulate every device configuration, not by a long shot Mar 13 22:16:39 timroes: I am , is that wrong? Mar 13 22:16:50 the emulator at best will let you play around with resolutions a little bit Mar 13 22:16:56 devices have their own custom roms etc Mar 13 22:17:02 apple741: no its not wrong, but in that case the emulator has to emulate ARM architecture on your x86 chipset Mar 13 22:17:06 ofc thats not the fastest :) Mar 13 22:17:08 apple741: if it's the first time you've run it, it will take a long time Mar 13 22:17:20 you can use the intel atom image (available via sdk manager) it just need to be virtualized Mar 13 22:17:22 limit the number of devices you support and have one of each Mar 13 22:17:28 compared to emulating arm: rocking fast Mar 13 22:17:38 apple741: After that it will be quicker. It will be very much quicker if you configure it to use host-based graphics acceleration (platform dependent, so check the developer site for info) Mar 13 22:18:25 apple741: and to compare, i am using 32gb ram and core i7 with 8x 3,6ghz and ARM image is always laggy and not very smooth Mar 13 22:18:40 its just emulating, you can't help it, try the intel atom image :) Mar 13 22:18:54 (as long as your cpu support virtualization, what i guess it does) Mar 13 22:19:14 Thanks guys really appreciate all the advice, will try those things right now :) Mar 13 22:19:39 might be a stupid name due to your nick, but you are not running under windows? :) Mar 13 22:22:20 timroes: I'm on a mac mini :) Mar 13 22:22:42 yeah i guess you don't need any additional settings Mar 13 22:23:18 but not sure, someone using mac here might know :) Mar 13 22:23:23 Seems to have worked kind of , the emulator opens but I got an error when trying to install my apk - Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE] Mar 13 22:25:16 but the emulaator starts up all fine? Mar 13 22:25:31 try starting the emulator outside of eclipse Mar 13 22:26:37 I thought it did but I got this error: emulator: Failed to open the hax module Mar 13 22:26:37 HAX is not working and emulator runs in emulation mode Mar 13 22:27:43 okay go to your sdk manager and look very down at the list if the HAX stuff is installable for you Mar 13 22:27:52 (thought it's only windows, but might also be needed for mac) Mar 13 22:28:12 Intel x86 Emulator Accelerator (HAXM) Mar 13 22:30:45 ok i stuck, Where can i define all services that should restart when system boot up, application restart/update etc... Mar 13 22:32:19 I suppose such action should be undependable from activity or ? Mar 13 22:34:23 timroes: hmm..it says its installed? Mar 13 22:34:54 okay Mar 13 22:35:03 yeah you will need to ask someonw with a mac :) Mar 13 22:35:56 apple741: You did not install it. You barely downloaded it. Mar 13 22:36:00 Which is my guess. Mar 13 22:36:40 Look in platforms/extras/intel/Hardware_Accelerated_Execution_Manager/ Mar 13 22:36:48 Execute the .dmg, follow the instructions. Mar 13 22:37:53 Thanks kakazza it looks like you're right :) Mar 13 22:43:27 if I get the docs right, there is no way to retrieve a notification that your app has issued, right? Mar 13 22:43:31 or some tag, or something? Mar 13 22:44:07 i want to add something to my notifications... and it would be stupid do have to do all the "housekeeping" of remembering what I wrote to that notification, clearing that space wenn the PendingIntent is invoked, etc. Mar 13 22:50:33 tinloaf: if you set a tag properly, you can make a second notification at a later time Mar 13 22:50:38 tinloaf: and it will replace the last one Mar 13 22:51:07 but adding text to it, would need you to remember what it had last Mar 13 22:53:06 i think instead of remember what you last put in there, have a method that can generate the current desired text given a state (the state could be an enum, some json, a set of variables, values from shared preferences, etc). and then you keep track of your state and your housekeeping is just updating the notification with the text for the current state Mar 13 22:57:00 kevinb: yeah, that works Mar 13 22:57:12 the way i'm using it, i only display the last message in chat Mar 13 23:01:54 clever: I know, I'm currently using the 'replace' thing Mar 13 23:02:12 but i want something like "xyz has happened" -> "xyz and abc has happened" Mar 13 23:03:01 but for this to work I would of course have to know whether the notification has already been cleared (in that case, write only "abc has happened") or not Mar 13 23:03:18 feels like something android should support. :-/ Mar 13 23:04:00 tinloaf: you can set a second intent for the clear event Mar 13 23:04:39 http://developer.android.com/reference/android/app/Notification.Builder.html#setDeleteIntent(android.app.PendingIntent) Mar 13 23:05:18 clever: and then additionally send a broadcast from the 'click' intent? Mar 13 23:05:24 yeah, that sounds like the only way... Mar 13 23:05:25 thanks Mar 13 23:05:59 each pending intent would have data in it saying what to clear (abc or xyz) Mar 13 23:06:13 Ok so now when I try to install my api in the emulator with adb install applicationPath nothing happens? Mar 13 23:06:27 and you also need to be carefull to not get the same pending intents, they are tricky like that Mar 13 23:06:36 Before it said it was loading damon tools or something like that. Mar 13 23:07:02 clever: hum, I guess I'll just make the service creating the notifications hold a list of items Mar 13 23:07:13 and on the "clear notifications" broadcast, discard that list Mar 13 23:07:33 so yeah, that "loses" stuff when the service restarts... :-/ Mar 13 23:07:35 you can also just use a shared preference Mar 13 23:07:43 so the app can die and not loose it Mar 13 23:08:01 yeah but that feels wrong, this is not really a preference... :-/ Mar 13 23:09:28 Anyone know how to have a Dialog not show the title at the top? Mar 13 23:10:07 oh, hum. clever: couldn't i retrieve the pendingintent with PendingIntent.getActivity(... FLAG_NO_CREATE)? Mar 13 23:10:25 the PendingIntent should be gone when the notification was dismissed, shouldn't it? Mar 13 23:10:42 and I should be able to attach extra stuff to a PendingIntent? Mar 13 23:11:07 tinloaf: you can attach extra stuff to the Intent contained within Mar 13 23:12:34 so I have a PreferenceActivity which takes its XML by inflating the preferencescreen.xml layout, now I want to customize the layout of that PreferenceScreen, so what I've done was that I created a new style and applied it to that Activity (in the manifest) as a them, I set its background; but now all I get when I access that screen is the background and it's as if the xml was overriden by the theme Mar 13 23:12:42 enneract|laptop: Ideally, you'd want to create your own dialog layout, create a dialog, and set that to the content of the dialog. Mar 13 23:12:46 hum.. but then PendingIntent.getActivity() would catch *all* pending Intents that want to launch that activity, right? Mar 13 23:12:48 enneract|laptop: OR, create your own Dialog subclass. Mar 13 23:12:57 hey Mar 13 23:13:06 not just the ones created for notifications... is there any way to filter these? Mar 13 23:13:20 when creating a dev account, will the e-mail and account be somewhat public? Mar 13 23:13:39 try and see Mar 13 23:13:41 No, you can provide an email address for your application when submitting it. Mar 13 23:13:42 hehe Mar 13 23:13:51 Either way Mar 13 23:14:01 Good practise to have a separate development account for that kind of stuff :D Mar 13 23:14:08 hehe Mar 13 23:14:27 maybe... Mar 13 23:15:50 oooh... is that what the "requestCode" is used for in the PendingIntent? Mar 13 23:15:58 but the docs say "currently not being used" :-/ Mar 13 23:16:17 so.. hum.. can I only have one PendingIntent of each type at one moment? Mar 13 23:16:41 no Mar 13 23:16:57 it's just that extras aren't used when determining if two PendingIntents are equal Mar 13 23:17:33 tinloaf: if you want two that differ only in terms of extras, set different dummy URIs on them ("content://fake/uri/" + System.currentTimeMillis() or whatever's appropriate for you) Mar 13 23:18:39 evanc: so if I have two PendingIntents, say for the same activity, PendingIntent.getActivity() just arbitrary returns one of them? Mar 13 23:19:22 "Google Reader will not be available after July 1, 2013" , holy shit - WTF Mar 13 23:19:48 huh. Good thing I migrated to my own RSS aggregator.. Mar 13 23:20:54 anybody know of a great rss reader for mac :) Mar 13 23:21:10 g00s: so sad : ( Mar 13 23:21:25 tinloaf: er, no, that's not how it is at all Mar 13 23:21:55 tinloaf: if you have Intent i = new Intent();, then two calls to PendingIntent.getActivity(i) will return the same object; it won't create two PendingIntents Mar 13 23:22:10 balls Mar 13 23:22:13 I love my google reader Mar 13 23:23:46 Can I lower and api min reguired for an app that I uploaded Mar 13 23:23:55 will google allow me to do that? Mar 13 23:23:57 evanc: ah, that's what i was asking. so.. even if the intents have different extras? Mar 13 23:24:14 Quacked: this seems so bizarre - i used Reader on Android too Mar 13 23:24:38 so now i have to find something for desktop and android :| Mar 13 23:24:51 tinloaf: correct. If you look at the code in Intent.java that determines if it's equal to another Intent, it doesn't look at Extras :/ Mar 13 23:25:11 tinloaf: so set a distinguishing URI for each one when you change the extras Mar 13 23:28:33 just started using eclipse for android development. I've imported a project and am building it, but I'm not seeing any output in the console so I have no idea how far along the build is, etc. Is there a way to display more detail in the console so I can have some clue as to the state of the build? Mar 13 23:28:38 maybe i should just stop reading news altogether Mar 13 23:29:07 I've asked in #eclipse but was bounced to here. sorry if it's off-topic. Mar 13 23:29:08 zanberdo: system.out.print Mar 13 23:29:16 and put that after the line you want Mar 13 23:29:21 g00s: I've considered that Mar 13 23:29:22 if it excecutes it reaches it Mar 13 23:29:32 or log.d Mar 13 23:29:51 system.out.println is better no imports needed Mar 13 23:29:57 no, sorry, you misunderstand (or I'm not articulating). I'm looking for the output from a project build. Errors, warning, general log details. Something that tells me that A) it's building and B) that it's done building. Mar 13 23:30:02 zanberdo: window > preferences > android > build > verbose Mar 13 23:30:07 thanks evanc Mar 13 23:30:17 :( sorry Mar 13 23:30:57 agy2154, no prob. thanks for the effort. evanc caught what I needed. cheers! Mar 13 23:31:29 evanc: thanks for that tip Mar 13 23:31:59 evanc: but it looks like it's not possible to retrieve the Intent from a PendingIntent anyway, so I have no way of getting to the Intent's extra stuff from the PendingIntent. :-/ Mar 13 23:32:17 okay, now this is a total noob question: once the build is complete what should I expect to find in my project folder? Typically I would look for a WAR file (when I was doing java dev with JSP). I'm new to android though. Should I find an .ADK or something? Mar 13 23:33:15 zanberdo: you mean when you export? Mar 13 23:33:24 zanberdo: or just savea change? Mar 13 23:34:25 "g00s maybe i should just stop reading news altogether" Mar 13 23:34:38 I was just thinking that Mar 13 23:34:38 :P Mar 13 23:34:43 Hi! Mar 13 23:34:59 agy2154, sorry, I think I may have been mistaken in my expectation of a build. Instead of spamming the channel I will see if I can google it first. Mar 13 23:35:16 always google first Mar 13 23:35:30 I always google first never get an answer Mar 13 23:35:39 agy2154: I also prefer sysout because it doesnt need import :P Mar 13 23:35:55 tinloaf: you get it when the intent is delivered (to the service, activity, or BR) Mar 13 23:35:55 and the sysout - ctrl - space shortcut in Eclipse is nice Mar 13 23:37:13 Quacked: never heard off it (I Mar 13 23:37:21 (I'm a noob) Mar 13 23:37:26 ohh system out Mar 13 23:37:27 lol Mar 13 23:37:30 sorry im stuipd Mar 13 23:37:47 Also works with 'syso' Mar 13 23:38:38 And I'd still prefer to use Log.v/i/d/w/e/wtf Mar 13 23:38:43 i need to go back a few APIs... I'm not reaching enough people Mar 13 23:39:13 What's your current minsdk? Mar 13 23:40:07 I have very rookie question Mar 13 23:40:18 I am going to develop an application Mar 13 23:40:30 android:minSdkVersion="11" Mar 13 23:40:37 I want to go back to like 9 Mar 13 23:40:39 and I want to release it with my customer as the developer Mar 13 23:40:52 And you get errors when going down to 9? Mar 13 23:41:17 nope Mar 13 23:41:32 Do I need to create an account on his behalf, or I just "fill" developer's data when releasing? Mar 13 23:42:26 evanc: i know, but I need it when I create the next notification. :-/ .. This is just broken. :-/ Mar 13 23:42:33 kakazza: I can probably use api 1 Mar 13 23:42:54 Highly doubt that. Mar 13 23:43:06 kakazza: the reason I went up to 11 is because I wanted to set the text as selectable to be copied throguh the xml but I just set up a long click listener instead Mar 13 23:43:27 tinloaf: it sounds like you need to restructure your logic Mar 13 23:43:41 hmm i try use : http://code.google.com/p/android-youtube-player/wiki/OpenYouTubePlayerActiviyInstructions Mar 13 23:44:17 but i got Could not find class 'com.keyes.youtube.OpenYouTubePlayerActivity'... Mar 13 23:45:23 lol... I change from persisting strings to ints... and my settings activity starts launching as a dialog, wtf Mar 13 23:45:31 The jar is added in my eclipse and also the path to library as well, also the manifest file was updated. So what else can be ? Mar 13 23:45:53 I dont even know where to start Mar 13 23:47:52 any help? Mar 13 23:48:05 I want to publish my app as free but later add possibility to pay for a widget Mar 13 23:48:20 Is it then normal to have a pro version of the app or to have some kinda in-app buy? Mar 13 23:51:15 Quacked: Hmm... Mar 13 23:51:29 Quacked: I think a pro version would make it more visable Mar 13 23:51:39 evanc: well.. I just want to accumulate data in the notifications. Mar 13 23:51:46 Quacked: Since It would it be hard to actually upgrade A widget Mar 13 23:51:47 agy2154: I agree Mar 13 23:52:03 Quacked: By making a pro version you can have an extra spot in the play store Mar 13 23:52:05 I don't see how to do this without either (a) getting data back from the Notifiation or (b) holding the data in the service Mar 13 23:52:13 (b) is problematic because the service could restart Mar 13 23:52:22 So.... More visability overall Mar 13 23:52:25 agy2154: the widget would be an extra feature, not the app itself though, but I get what you mean Mar 13 23:52:31 good point Mar 13 23:53:25 Quacked: Ohh yeah and just a tip.... you might want to call the free version basic to kinda deter people from it in order to distinguish it more from the pro version Mar 13 23:53:39 Man, I remove a redundant resource, and I start getting NPEs in stuff that has absolutely nothing to do with it... Mar 13 23:54:15 Quacked: Should I put advertisments on my app? Not like those annoying ones but just a banner on the bottom? Mar 13 23:55:49 so who got an i/o ticket :/ Mar 13 23:55:59 I have absolutely no idea what is going on. I removed a string array from my values.xml, and am now getting NPEs due to findViewById failing to find something on launch... Mar 13 23:56:15 its like my R is bad Mar 13 23:56:18 myn: i wish Mar 13 23:56:39 Maybe in 2 years when i turn like 19 Mar 13 23:56:46 thats exactly waht it was, cleaned project lol Mar 13 23:56:52 myn: too poor Mar 13 23:57:03 so, i trust everyone is going to io? Mar 13 23:57:13 too poor Mar 13 23:57:15 I heard Andy Rubin is now in charge of Google i/o registration Mar 13 23:57:19 enneract|laptop: Too young here.... Mar 13 23:57:34 reading through what happened, i'm so glad i got to register early Mar 13 23:57:42 Do you get the devices which are showcased? Mar 13 23:58:25 last year they gave out a lot Mar 13 23:58:33 they'll probably give out something this year too Mar 13 23:58:36 how much is a ticket? Mar 13 23:58:46 it sucks though, everyone wants to go for the swa Mar 13 23:58:47 swag Mar 14 00:01:18 what swag Mar 14 00:01:28 wtf? $900 Mar 14 00:01:32 nexus 7, galaxy nexus, that Q thing last year Mar 14 00:01:39 I gotta start saving my lunch money Mar 14 00:01:47 funkbox: oh right Mar 14 00:02:55 btw, any of you use donation links in your apps and in description on play store? do you ever get donations? Mar 14 00:03:09 agy2154: they're already sold out. if you don't have a ticket yet, you won't be getting one Mar 14 00:03:19 if you're providing value then charge for it Mar 14 00:03:22 they sold out very quickly Mar 14 00:03:29 JesusFreke: i know Im talkign abotu a year or two down the road Mar 14 00:03:30 as usual :) Mar 14 00:03:35 agy2154: ah, gotcha Mar 14 00:03:40 Does this work: Mar 14 00:03:40 Is it morrally wrong to put banner ads on my applications? Mar 14 00:03:46 no Mar 14 00:03:47 File save = new File(getFilesDir()+"/level1.save"); Mar 14 00:04:00 JesusFreke, last year there was a code jam competition where like 350 people won the opportunity to buy a ticket Mar 14 00:04:06 Because something in my code is causing a null pointer exception Mar 14 00:04:12 Man, java error messages are so unhelpful Mar 14 00:04:14 canadiancow: ah, didn't know that Mar 14 00:04:34 If this was python, you'd get all kinds of info, right down to the line the error occured. Mar 14 00:04:44 uh Mar 14 00:04:48 you get that with java Mar 14 00:04:48 funkbox: it's just a simple tool, and since its my first app Im more interested in lots of downloads than a few bucks Mar 14 00:04:56 Not on this screen Mar 14 00:05:04 look in logcat Mar 14 00:05:06 Quacked: you won't get any money probably Mar 14 00:05:08 Yeah Mar 14 00:05:09 No line Mar 14 00:05:11 Just big red Mar 14 00:05:14 EXCEPTION Mar 14 00:05:15 errors Mar 14 00:05:26 but I've made a few Opera extensions with a few thousand downloads, and not once have I gotten a donation (even though they were quite good extensions) and had donation links in settings Mar 14 00:05:41 so say 0 donations for 5000 downloads Mar 14 00:05:44 Does anyone here put advertisments in their applications? Mar 14 00:05:53 Quacked do you? Mar 14 00:06:08 I dont in the 0 apps I have published :) Mar 14 00:06:27 funkbox: you've tried donationware for any apps? Mar 14 00:06:28 Probably nobody checked the settings Mar 14 00:06:33 no Mar 14 00:06:36 because it won't work Mar 14 00:06:49 Meron: fair point, but a few of time rquired settings to even work :P Mar 14 00:06:52 Quacked: would you thoguh. Idk if I shuold I mean i worked really hard on my app but some people said it won't be right to put ads Mar 14 00:07:07 How come you guys know so much about android and not publish applications? Mar 14 00:07:41 agy2154, I thought about it, but for my first app I'm more interested in seeing if anyone downloads it at all Mar 14 00:07:50 BufferedWriter saver = new BufferedWriter(new FileWriter(save)); Mar 14 00:07:53 Does that work? Mar 14 00:08:05 agy2154: I just signed up for a dev account to publish my first app now Mar 14 00:08:12 Quacked: you don't want users. they constantly want stuff and complain about things like "bugs" Mar 14 00:08:18 haha Mar 14 00:08:21 Or can somebody point out where java tells you the line the error occurs? Mar 14 00:08:31 Quacked: I developed one two years ago and I lost the api key so it can't be updated and its stuck without ads (15k downlaods and 5k active) Mar 14 00:09:11 agy2154: I reckon the ads pay you for hits, so if the app is rarely opened you don't get much $ ? Mar 14 00:09:45 Quacked: correct. Unless you do notification ads which I will never do... Mar 14 00:09:55 that sounds horrible :) Mar 14 00:09:59 Quacked: I also kinda want to avoid AdMob Mar 14 00:10:24 Does annnnybody know anything about writing to files? Mar 14 00:10:31 All I want is to write to a new line in a fil;e Mar 14 00:10:36 in python this would be like three lines Mar 14 00:10:36 I got clickbombed on adsense and got banned so i don't know if I can get aproved Mar 14 00:10:43 Meron: did you pastebin that exception stacktrace? Mar 14 00:10:47 Why in Java, make it ten and include extra ridiculous modules Mar 14 00:11:21 And ,non-iterable strings! Mar 14 00:11:27 Are we from the sixties?! Mar 14 00:12:35 File save = new File(getFilesDir(),"level1.save"); Mar 14 00:12:39 does that even make sense? Mar 14 00:12:40 agy2154: but how much can you expect to get if those 5k active (does active simply mean they have it installed?) open your app once a day? Mar 14 00:12:57 Active means installed yes Mar 14 00:13:04 I don't know how accurate that is Mar 14 00:13:19 But all apps start to take off... it still gets 30 downloads a day and 10 uninstalls a day Mar 14 00:13:21 would be nice to know how often it is used :P Mar 14 00:13:32 agy2154: neat Mar 14 00:14:13 agy2154: but have you done any calculating on ads? how much it would earn for 5000 hits a day (5000 users, 1 hit each per day) Mar 14 00:14:20 Quacked: I can't belive the application got that many downloads in the first place because its just a biology lesson i happened to have in 9th grady Mar 14 00:14:32 hehe.. funny Mar 14 00:15:03 I did some calculations with the eCPM and hwo many are active .... how many will click the average i think for mobile is 0.0125 or 0.0135% and I would get $25 daily Mar 14 00:15:14 grr Mar 14 00:15:17 i fucking hate java Mar 14 00:15:34 But once again I can't upload it again because I lost my key file used to sign it.... so Quacked remember to backup your key before you upload I learned to do that now. Mar 14 00:15:37 Meron: me too Mar 14 00:15:52 Useless error messages and archaic design Mar 14 00:16:02 Why on earth are we still using it? Mar 14 00:16:11 gonna put my key in dropbox :P Mar 14 00:16:31 Meron: not the right place to complain about it I don't think :) Mar 14 00:16:41 it still sucks Mar 14 00:16:48 how do i make sense of these logcat messages Mar 14 00:16:56 they don't even tell you the line the error occurreed Mar 14 00:17:07 Btw, how important is the strength of the password you set for key and for app? And should pass be different for app and key? Mar 14 00:17:19 Meron: they do, why dont you pastebin it? Mar 14 00:17:35 i just want to know how to read them myself Mar 14 00:17:46 or to find out why bufferedwriter isn't working Mar 14 00:17:53 if strings were iterable i would have solved this hours ago Mar 14 00:17:57 but no, this language is stuck in the past Mar 14 00:18:02 it would be so much easier for everyone to explain how you should read it if you pastebined it Mar 14 00:18:38 Quacked: i think it can't be bruteforced....i put mine in evernote Mar 14 00:19:44 agy2154: you use the same for the key file and for app? Mar 14 00:20:05 for the keystore I mean Mar 14 00:20:07 lol, forced back to having to randomly comment out bits of coded Mar 14 00:20:53 I use an individual keystore for every app because i want them to have a unique alias Mar 14 00:21:31 agy2154: uhh, what? unique alias? Mar 14 00:22:23 bruteforce tool here: http://code.google.com/p/android-keystore-password-recover/ Mar 14 00:22:23 hehe Mar 14 00:22:39 lol Mar 14 00:22:40 yeah Mar 14 00:22:49 use some special characters then Mar 14 00:22:58 actually put it in a truecrypt container lol Mar 14 00:23:07 yeah, but what do you mean about unique alias? Mar 14 00:23:27 Quacked: Is there any way to extract the keyfile from the app itself Mar 14 00:23:38 Quacked: its what you name the keystore Mar 14 00:23:59 Hmm Mar 14 00:24:20 I don't follow. Why not have one keystore for all apps? Mar 14 00:25:02 Quacked: you actually can i never knew that. http://stackoverflow.com/questions/10514597/android-multiple-apps-multiple-customers-one-keystore Mar 14 00:27:44 please just tell me Mar 14 00:27:50 how do I get bufferedWriter to write a file Mar 14 00:27:53 in the internal directory? Mar 14 00:27:55 NOTHING Mar 14 00:27:56 explains this Mar 14 00:27:59 NOTHING Mar 14 00:28:03 Does it even support it? Mar 14 00:28:32 Have you checked tutorials? Mar 14 00:28:42 yes Mar 14 00:28:49 The only support seems to be for fileoutput stream Mar 14 00:28:53 which is so ridiculously primitive Mar 14 00:28:58 http://developer.android.com/guide/topics/data/data-storage.html Mar 14 00:28:59 that I can't even use it Mar 14 00:29:01 no shit Mar 14 00:29:10 it only provides examples for file output stream Mar 14 00:29:14 which is pretty worthless Mar 14 00:29:34 and fileoutput stream works nicely with the internal storage Mar 14 00:29:46 Any way to force an actionbar item in the top while have split action enabled? Mar 14 00:29:47 How many years you set your app validity to? :P Mar 14 00:30:05 it always places the file into the main location Mar 14 00:30:13 but how do I use a buffered output? Mar 14 00:31:48 Meron: Make a new bufferedoutput Mar 14 00:31:54 i mena Mar 14 00:31:56 buffered writer Mar 14 00:31:58 let me see Mar 14 00:32:02 lol Mar 14 00:32:02 give me a coupel of minutes Mar 14 00:32:11 logcat messages only give you errors to the nearest ACTIVITY? Mar 14 00:32:41 Meron: What do you want to save? Mar 14 00:32:43 texdt? Mar 14 00:32:53 oh mark murphy. you so crazy :) Mar 14 00:33:04 i want to save just a string Mar 14 00:33:06 onto a new line Mar 14 00:33:07 every time Mar 14 00:33:47 File save = new File(getFilesDir(),"level1.save"); Mar 14 00:33:48 THIS Mar 14 00:33:49 doesn't Mar 14 00:33:50 WORK Mar 14 00:34:23 uuugghh Mar 14 00:34:28 this would take max of five minutes in python Mar 14 00:34:29 PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("file.out"))); Mar 14 00:34:32 but in java, hours and hours Mar 14 00:34:39 the shit is a printwriter Mar 14 00:35:04 What does it write? Mar 14 00:35:12 BufferedWriter text = new BufferedWriter("cool"); Mar 14 00:35:24 text.newLine() Mar 14 00:35:34 text.write(String s, int off, int len) Mar 14 00:37:11 what Mar 14 00:37:13 is "cool" Mar 14 00:37:19 cool.txt Mar 14 00:37:24 i think it should be the name of the output Mar 14 00:37:26 then what is file.out? Mar 14 00:37:32 nvm Mar 14 00:37:37 it is a writer name Mar 14 00:37:44 you have to use a writer in there Mar 14 00:37:45 what writer name? Mar 14 00:38:07 Meron: Writer name = new Writer()l Mar 14 00:38:23 BufferedWriter text = new BufferedWriter(name ); Mar 14 00:38:37 wtf Mar 14 00:38:37 text.newLine() text.write(String s, int off, int len) Mar 14 00:38:37 askfjlaskdf Mar 14 00:38:40 lol Mar 14 00:38:40 why is java so shiiiit Mar 14 00:38:48 NONE of this should be necessary Mar 14 00:38:54 What a terrible language Mar 14 00:39:13 Hey. I don't know a lot of java so don't get me wrong... also Im only a junior in high school Mar 14 00:39:16 Is there any way to iterate through strings? Mar 14 00:39:32 not that I know of Mar 14 00:39:39 Do you have any alternative programming language? Mar 14 00:40:06 Python Mar 14 00:40:15 A language that is several hundred times better than Java Mar 14 00:40:37 I mean, holy shit, going from Python to Java is like going from a brand new sports car to a worn out truck with one wheel hanging off Mar 14 00:41:05 hahaha funniest analogy i've ever seen Mar 14 00:41:13 Meron: Do you have to do garbage stuff manulaly in python? Mar 14 00:41:21 "I don't understand how to use my tools to do something" != "the tools suck" Mar 14 00:41:22 I hope its not like c# bullshit Mar 14 00:41:23 just sayin' :) Mar 14 00:41:31 So I have this textview. I had it filled with a string before, and centered it based on that, but when the string got shorter, the position moved a bit to the left. Any way I can counter this? Mar 14 00:41:42 Meron: http://stackoverflow.com/questions/196830/what-is-the-easiest-best-most-correct-way-to-iterate-through-the-characters-of-a Mar 14 00:41:46 what c# bullshit? Mar 14 00:41:53 diki: do it thgouth java Mar 14 00:42:07 agy2154:what? Mar 14 00:42:17 diki: like the name of the textview.setGravity(Gravity.CENTER); Mar 14 00:42:46 that centers the text in the middle of my screen, this includes vertically as well Mar 14 00:42:50 so I don't use that Mar 14 00:42:56 Meron: like collecting garbage... I don't really know what that is i think its like int and strings like deleting them and all that after you are done using them... is that right? if im wrong someone please correct me Mar 14 00:43:12 diki: You only do stuff in the xml? Mar 14 00:43:29 agy2154:Well, yeah. I currently use a single layout of type relativelayout Mar 14 00:45:08 Meron: Writing with a BufferedWriter to a FileOutputStream: http://pastebin.com/YxEKfqq7 don't forget to close the streams and handle the exceptions Mar 14 00:45:24 diki: thats going to be a problem then.... maybe try using a relative layout Mar 14 00:45:35 Actually, you just made me remember Mar 14 00:45:39 Meron: Javas IO system uses the decorator pattern which allows some neat things: http://stackoverflow.com/questions/6366385/decorator-pattern-for-io Mar 14 00:45:42 multiple layouts can be used in the same xl Mar 14 00:45:51 no Mar 14 00:45:54 replace your curent one Mar 14 00:46:05 What I did now, was created another relativelayout and made the textview a child of it, with a height of x pixels Mar 14 00:46:10 doing it in the java is super easy Mar 14 00:46:27 so gravity:center doesn't put it in the middle of the screen now and I was able to make it work exactly like I wanted. Mar 14 00:46:50 gravity="center" Mar 14 00:47:41 Alright guys I have to go its getting a bit late... paece Mar 14 00:52:41 say my string is 05500 Mar 14 00:52:47 each char would be an integer Mar 14 00:52:51 "0" "5" etc Mar 14 00:52:58 how do i convert these into real integers Mar 14 00:55:14 lol Mar 14 00:55:19 the conversion seems to be Mar 14 00:55:23 one line of python Mar 14 00:55:25 = ten lines of java Mar 14 00:55:59 Integer.parseInt() Mar 14 00:56:22 Doesn't work Mar 14 00:56:23 OKAY Mar 14 00:56:24 I HAVE Mar 14 00:56:26 a string Mar 14 00:56:28 of numbers Mar 14 00:56:34 i need to iterate through this string Mar 14 00:56:38 isolate each number Mar 14 00:56:42 and compare it to another number Mar 14 00:56:51 WHY is there not an easy way of doing this? Mar 14 00:58:14 yeah, nevermind Mar 14 00:58:42 don't feel like writing your code for you :) Mar 14 00:58:48 Meron: didnt I just link you a method? Mar 14 00:59:19 No Mar 14 00:59:24 It doesn't do what I want Mar 14 00:59:52 if I split "2013" Mar 14 00:59:55 into chars Mar 14 00:59:56 meh, things noone has though of: taking screenshots of notifications m( .. the notification bar collapses when i hold power.. *isgh* Mar 14 01:00:11 I would expect "2" and "0" and "1" and "3" Mar 14 01:00:37 If that's not what you get, then you're doing it wrong :) Mar 14 01:00:43 BUT Mar 14 01:00:48 They're returned as "chars" right Mar 14 01:01:25 How do I THEN Mar 14 01:01:35 check if each char is equal to another number? Mar 14 01:01:38 so I have an integer 1 Mar 14 01:01:44 and a "char" of "1" Mar 14 01:01:48 how do I compare? Mar 14 01:01:50 (05:55:59 PM) JesusFreke: Integer.parseInt() Mar 14 01:02:11 convert the char to a number, and compare with whatever number you want to compare with Mar 14 01:02:35 Integer.parseInt(char?) Mar 14 01:02:52 that doesn't work Mar 14 01:02:59 chars can't have the parseint thing done to them Mar 14 01:03:02 apparently Mar 14 01:03:20 and there's absolutely no way you can convert a char to a string? ;) Mar 14 01:03:36 Are you fucking serious Mar 14 01:03:40 This is how retarded java is Mar 14 01:03:48 To convert from a char to an int Mar 14 01:03:55 It has to be first converted into a string?! Mar 14 01:03:59 alternately, you could subtract 0x30 from the char value Mar 14 01:04:09 Why the FUCK is this so complicated Mar 14 01:04:19 why not just char.toInt() ?! Mar 14 01:04:27 Int(char) Mar 14 01:04:28 Character.toString(charData) Mar 14 01:04:53 FINALLY some sense Mar 14 01:05:05 "(06:03:20 PM) JesusFreke: and there's absolutely no way you can convert a char to a string? ;)" Mar 14 01:05:21 Meron: Int(char) isn't going to work Mar 14 01:05:22 Character.getNumericValue('9'); Mar 14 01:05:36 JesusFreke: he needs spoonfeeding or a kick in the ass Mar 14 01:05:50 Tropid: nice. I didn't know about that one, actually Mar 14 01:05:51 I come from a way more refined language than java Mar 14 01:06:18 This shit is like going back to using a stone axe and a pebble for a hammer Mar 14 01:06:39 I should introduce you to smali Mar 14 01:06:52 you would love it Mar 14 01:07:44 UGH Mar 14 01:07:48 does anyone actually code in smali for serious reasons ? Mar 14 01:07:53 more nullpointerexceptions Mar 14 01:07:57 AKA the most useless error message ever Mar 14 01:08:01 i give up for now Mar 14 01:08:04 bankai_: doubtful. they would have to be crazy :) Mar 14 01:08:14 what kind of retarded language requires four hours to solve a one line problem with python Mar 14 01:08:17 Meron: NullPointerException is one of the easiest things to diagnose Mar 14 01:08:27 not when you're using JAVA! Mar 14 01:08:30 yes, it is Mar 14 01:08:33 go use python then, ya zealot ! Mar 14 01:08:38 It basically spits a bunch of 99% useless information at you Mar 14 01:08:44 you get the line number. you see what could possibly be null on that line Mar 14 01:08:56 often it's only one thing Mar 14 01:08:56 How about, it highlights the LINE that causes the error, along with maybe the function Mar 14 01:09:01 and then you figure out why the heck it's null Mar 14 01:09:01 Well, I'm not getting a line Mar 14 01:09:02 JesusFreke: he cant find the line number.. hes complained for hours Mar 14 01:09:10 I'm getting errors in stuff I haven't written Mar 14 01:09:12 Meron: logcat. like I had mentioned previously Mar 14 01:09:20 ..es Mar 14 01:09:24 Lets see Mar 14 01:09:26 Is it possible to save the instance of my class, and obviously everything else that is instantiated in that class, so that when my activity gets recreated in landscape mode, I can resume everything? Mar 14 01:09:30 Error AT blah.blah.blah.blah.onKey Mar 14 01:09:40 short question: an Intent(MyActivity.class) always calls the startActivity() method of MyActivity? Mar 14 01:09:40 Okay, congratulations, it's been narrowed down to an entire method Mar 14 01:09:43 good job java Mar 14 01:09:47 but when I say "my class" I mean any arbitrary class Mar 14 01:09:52 Meron: for the third time, why dont you pastebin? Mar 14 01:09:57 even if my activity is already in the foreground? Mar 14 01:10:00 Meron, show your stack trace Mar 14 01:10:09 That thing which is "not your code" is probably a stack trace... what about pastebin? Mar 14 01:10:25 http://pastebin.com/2P5wbC5R Mar 14 01:10:44 kevinb: thumbs up :D Mar 14 01:10:56 kevinb, lol Mar 14 01:11:12 diki: like this - http://stackoverflow.com/questions/5913130/dont-reload-application-when-orientation-changes ? Mar 14 01:12:03 bankai_:Well method 1 looked nice, but it involved saving variables etc Mar 14 01:12:25 I was looking to save the instance of a class I instantiated, which does some HTTP POSTs to login to website Mar 14 01:12:43 Obviously, I do not wish to re-login on every orientation change, it could be considered spam by the server and ban me Mar 14 01:13:20 http://pastebin.com/dwnVZneM Mar 14 01:13:21 here Mar 14 01:13:24 look at that bullshit Mar 14 01:13:28 see how 99% of it is useless Mar 14 01:13:41 Meron: holy crap. it's right there in front of you Mar 14 01:13:43 Level1.java:86 Mar 14 01:13:46 diki: if you are trying to save _state_ then it's not recommend to keep the class itself alive as there are other situations that can cause activity recreation and you should just save the state using onSaveInstanceState . if you are saving data as a cache, like bitmaps or something, then you can use onRetainNonConfigurationInstance (or the fragment version of it) or statics Mar 14 01:13:47 " at *.*.skyispy.Level1$1.onKey(Level1.java:86)" Mar 14 01:13:55 line 86 file level1.java Mar 14 01:14:06 well you could have SAID Mar 14 01:14:09 it's line 86 in level1.java Mar 14 01:14:11 that it was in brackets or some shit Mar 14 01:14:20 Why does it bother dumping all the other useless crap? Mar 14 01:14:23 if that's all you need? Mar 14 01:14:29 Meron: that's the full call stack Mar 14 01:14:32 so you can find it Mar 14 01:14:36 so you can get an idea of the full context of the call Mar 14 01:14:51 guys, don't feed the troll, seriously.. Mar 14 01:14:51 just like python prints the full stack Mar 14 01:15:04 kevinb:I'm only looking to save the instance of a custom class which uses httpclient. When my app is started it, I do some http posts and get some session cookies stored. Mar 14 01:15:34 for (int f=0; f how can this cause a null pointer exception Mar 14 01:15:46 So instead of re-logging on every orientation change, I can use the same instance as before, which would hold the cookies and I wouldn't need to do anything else. Mar 14 01:16:16 Meron: correctString is null. That was easy. But this is not a Java 101 - channel Mar 14 01:16:18 correctString is null? Mar 14 01:16:31 diki: saving the cookies and creating a new httpclient with those cookies would be more by the book. though if it really is more of an optimization and won't cause the user to have dataloss then onRetainNonConfigurationInstance might work for you Mar 14 01:16:44 Moron, please rtfm java first... Mar 14 01:16:53 * Quacked facepalms Mar 14 01:17:33 kevinb:as of now, this app is strictly for personal use :) Mar 14 01:18:04 Personally, as long as I can get the results I want, to the letter, I don't care how inefficient my code is or anything. Mar 14 01:20:05 oh Mar 14 01:20:12 i commented out the bit that made that Mar 14 01:20:23 is there any way to cut out allll the useless bits out of logcat? Mar 14 01:20:38 i don't need some crappy full call trace that obscures the real reason Mar 14 01:21:39 diki, if you don't need to update resources or layout on orientation change, you can ignore recreating activity, just add android:configChanges="keyboardHidden|orientation|screenSize" to your activity in AndroidManifest Mar 14 01:22:04 Meron, you can filter logcat in most IDEs Mar 14 01:22:06 Meron: you can filter it on tags or by logging level Mar 14 01:22:25 vovkab:well as it stands, my layout gets pretty screwed up when going from portrait to landscape, that's why I had to make a separate layout for it as well Mar 14 01:24:55 ahh i wish more people did that, usually people just lock a specific layout *grr* Mar 14 01:24:55 another aproach is to save data that you need, when you recreate activity. There are a few ways Mar 14 01:25:19 use onsavedinstance state, or you can add retained fragment in your activity and store data there Mar 14 01:26:27 if(Character.toString(save)==number.toString()){ Mar 14 01:26:31 still doesn't work Mar 14 01:26:40 where character.toString(save) returns "1" Mar 14 01:26:43 maybe try equal? Mar 14 01:26:45 and number.toString also returns 1 Mar 14 01:26:53 wouldn't that set one equal to the other? Mar 14 01:27:14 Meron:what are you trying to do? Mar 14 01:27:20 compare those Mar 14 01:27:23 see if they are the same Mar 14 01:27:30 use equal Mar 14 01:27:32 string or numbers? Mar 14 01:27:34 strings Mar 14 01:27:53 Character.toString(save).equal(number.toString()) Mar 14 01:28:17 I use equalsIgnoreCase if case sensitivity does not matter Mar 14 01:29:17 i'm trying that now Mar 14 01:30:17 is the result you are expecting not happen? Mar 14 01:30:31 Meron: yeah, don't use == for string comparisons Mar 14 01:30:42 Meron: because == does reference equality, not value equality Mar 14 01:30:50 Afaik, only php supports string comparison with == Mar 14 01:30:54 and the two strings are not the same object, even if they do have the same value Mar 14 01:31:08 hi guys, i am wanted to copy some text from the browser and paste it into my edittext... but my edittext doesn't remember the new line \n) character, so everything looks like a clobbed up in the edittext after i pasted... any idea how to fix this? Mar 14 01:31:17 * JesusFreke waits for rant on how string comparison in python is so much better Mar 14 01:33:21 * Quacked decides it is better to wait for a more peaceful #android-dev and goes to sleep instead Mar 14 01:33:23 gnite Mar 14 01:35:47 I might get bashed for this, but as much as Android is good in terms that you can make apps fast and easy, it totally lacks a good design in threading when it comes to UI updating. Mar 14 01:38:30 Whaaat Mar 14 01:38:36 how can a boolean cause a nullpointer Mar 14 01:44:35 how the fuck Mar 14 01:44:35 can Mar 14 01:44:40 if(bool == true) Mar 14 01:44:44 cause a null pointer exception Mar 14 01:44:55 bool is null Mar 14 01:44:57 bamb Mar 14 01:45:08 Hi, I would like to consult with someone who has experience dealing with in-app purchases (Billing v3). It is specifically related to the TrivialDrive sample. In it there is a class called SkuDetails. I wanted to know what is the difference between String mItemType and String mType. Mar 14 01:45:21 but Mar 14 01:45:22 it's not Mar 14 01:45:27 It's declared right afterwards Mar 14 01:45:51 source Mar 14 01:46:03 i think i left some random shit commented out Mar 14 01:46:07 i'm done for now Mar 14 01:46:09 cya Mar 14 01:46:16 ! Mar 14 01:46:21 hum. is there a guarantee that startActivity() is called when I start my Acitivty via some intent? Mar 14 01:46:35 ... Mar 14 01:46:46 tinloaf, startActivity is used to start an activity Mar 14 01:46:48 um Mar 14 01:46:49 yes Mar 14 01:46:53 it is guaranteed Mar 14 01:46:59 becuase that's how you start an activity :) Mar 14 01:47:04 lol Mar 14 01:47:06 jug6ernaut, canadiancow: even if my activity is already in the foreground? Mar 14 01:47:06 xS Mar 14 01:47:17 canadiancow: that sounds too easy. :-P Mar 14 01:47:28 you're asking if X occurs when X occurs Mar 14 01:47:34 oh, ok. I see that my question was incorrectly phrased Mar 14 01:47:38 let me rephrase that Mar 14 01:47:39 tinloaf startActivity is not called in your activity when it started, it is used to start an activity. Mar 14 01:47:54 I have a PendingActivity that is fired when the user clicks a notification. Mar 14 01:47:56 the intent flags you use may have something to do with it Mar 14 01:48:16 now, what method inside the activity is called when the user does that *and* the activity is already in the foreground? Mar 14 01:48:50 depending on the flags, maybe onResume or onRestart Mar 14 01:48:58 tinloaf http://developer.android.com/images/activity_lifecycle.png Mar 14 01:49:14 Or it may make a duplicate activity and just call on create Mar 14 01:49:28 the flags matter Mar 14 01:49:33 jug6ernaut: i know that flowchart, but that is not handling what happens if an intent arrives, right? Mar 14 01:50:02 intents don't arrive to an activity Mar 14 01:50:16 oh, ok. So they are silently ignored when the Activity is already running? Mar 14 01:50:20 as mobydev was saying it depends on the intent flags what happens Mar 14 01:50:30 ok, let me have a look, thanks Mar 14 01:50:41 those flags are confusing to use, i think Mar 14 01:50:52 tinloaf what scenario are expecting Mar 14 01:51:34 anyone with billing and in-app purchase experience available for chat ? Mar 14 01:51:51 chat no, but u can ask here :) Mar 14 01:51:55 hum, ok, so I could restart the activity, or start a second one... Mar 14 01:52:23 tinloaf what scenario are expecting Mar 14 01:52:42 jug6ernaut: the scenario is: my app is displaying a list of objects. there is a notification telling you "there are new objects". I want to mark these objects as "viewed" (in the database) when you click or dismiss the notification Mar 14 01:52:53 well, i was going thought the trivial drive example. in the skudetails class there are 2 strings I want to know the difference between: mItemType and mType. Mar 14 01:53:17 tinloaf u also want it to bring up your activity? Mar 14 01:53:28 I'm already sending a broadcast in the case the user dismisses the notification (and have a BroadcastReceiver marking stuff as seen) Mar 14 01:53:30 jug6ernaut: yes Mar 14 01:53:59 so basically what I want is: If you tap the notification, send the "Clear stuff"-broadcast *and* bring my activity to the front Mar 14 01:54:53 is there an afk chat command ? Mar 14 01:55:52 u have the clear stuff broadcast being sent on dismiss right? Mar 14 01:56:14 .me afk Mar 14 01:56:18 * mobydev afk Mar 14 01:56:28 lol Mar 14 01:56:33 * jug6ernaut doesn't do it Mar 14 01:56:39 probably just /away Mar 14 01:56:45 ill give that a go Mar 14 01:57:03 skdfjka Mar 14 01:57:12 hmm Mar 14 01:57:49 right after i type /away my irc client immediately displays the message "You have returned from away". Don't know if that is a bug or what Mar 14 01:58:00 Jucato: yes Mar 14 01:58:02 err Mar 14 01:58:04 jug6ernaut: yes Mar 14 01:58:17 jug6ernaut: i can add a "send on dismiss"-Intent to the notification, that works fine... Mar 14 01:58:36 but that only fires if the user *explicitly* dismisses the notification Mar 14 01:58:49 tinloaf u could just call getIntent() in your onResume() and check for an extra, if the extra is there clear w/e data it says to(same as ur dismiss intent) Mar 14 01:59:24 the extra being added to the intent used to call the activity from the broadcast Mar 14 01:59:27 hum.. yeah, actually, onResume() should always be called, right? Mar 14 01:59:34 yup Mar 14 01:59:51 even if my activity is created, it should call onCreate() and onResum().. Mar 14 01:59:57 yup Mar 14 02:00:00 yeah, that sounds like it should work. thank. :) Mar 14 02:00:10 np Mar 14 02:00:43 not the most elegant solution in the world, but it should work. Mar 14 02:01:13 * jug6ernaut thinks Mar 14 02:01:34 i mean, i could just make the intent in the notification send a broadcast Mar 14 02:01:45 and then have this broadcast start the activity Mar 14 02:01:50 *and* mark stuff as seen Mar 14 02:02:05 but that gives me another broadcastreceiver and stuff.. Mar 14 02:02:18 ideally u wouldn't want the two linked Mar 14 02:02:38 at least i wouldn't want to Mar 14 02:02:43 well, but it sounds sane to mark stuff as seen when the activity is displayed ;) Mar 14 02:02:52 lol Mar 14 02:02:53 true Mar 14 02:17:44 Does anyone else have an issue with cut-off text in LogCat (or anywhere) in Eclipse Juno on OS X? Mar 14 02:17:52 I have a ListView with an android:id/empty view that was working fine, but now that I've added a rotation animation to the empty view, it stays visible above the ListView once the cursor is loaded with items. Why would that be? Do I have to kill an animation before a view can be hidden or something? Mar 14 02:19:07 there are many issues with eclipse in everything Mar 14 02:31:00 Bah. Yeah, adding an animation to my empty view keeps it from being hidden. I tried using getEmptyView().setVisibility(View.GONE) onCursorLoad also, but that wouldn't get rid of it. What's the "proper way" to create a loading spinner image for a ListView then? Mar 14 02:37:57 Well clearAnimation() before setting visibility works. **** ENDING LOGGING AT Thu Mar 14 02:59:58 2013