**** BEGIN LOGGING AT Tue Jul 23 02:59:59 2013 Jul 23 03:01:27 ya voy Jul 23 03:01:38 Aafter uploading the app to the Google Play store in alpha release mode, where do I get the link to the App? Jul 23 03:42:59 <-- noob. Launched ddms. I only see one process under my device name. Is that normal? (http://imgur.com/sXcEh9Z) Jul 23 03:44:51 ahh, they're missing the debuggable flag? Jul 23 03:45:15 they ? Jul 23 03:45:19 the other apps Jul 23 03:45:23 processes Jul 23 03:45:23 yes Jul 23 03:46:35 can you toggle that on installed apps, without having to reinstall? Jul 23 03:46:45 no Jul 23 03:50:39 pfn wow, i wasn't expecting more people to be in #clojure than #scala Jul 23 03:50:57 thought #clojure would be tumbleweeds Jul 23 04:55:07 hi Jul 23 04:55:09 any? Jul 23 04:57:49 t0th_-: I think your missing a few words Jul 23 04:57:54 to complete a sentence Jul 23 04:58:15 thhanks Jul 23 04:58:28 uh ? Jul 23 04:58:28 i am run my activity with sherlock Jul 23 04:58:32 but i have same errors Jul 23 04:58:54 http://d.pr/i/16DC Jul 23 05:00:15 Did anybody here try to use Google Play alpha/beta testing? Even after publishing the App, the link provided by Google Play is broken. Jul 23 05:00:29 how to rotate my emulator ? Jul 23 05:00:31 mine is fine jwalker60 Jul 23 05:00:36 to landscape Jul 23 05:00:47 pranav: depends on OS Jul 23 05:00:49 read the docs Jul 23 05:00:57 shortcut keys are there Jul 23 05:01:07 any can help me? Jul 23 05:01:10 I am using nexus 7 Jul 23 05:01:11 Ctrl+F12 I think Jul 23 05:01:30 or F11 Jul 23 05:01:35 jwalker60: make sure you have a valid store listing Jul 23 05:01:54 StingRay_, do you use Google Groups or Google+ for the testers? Jul 23 05:02:00 G+ Jul 23 05:02:29 thanks Jul 23 05:03:13 I'm using google groups, maybe that's the problem. I have the link and logged in as tester, but when I click the link and Google Play opens, it says "item not found" Jul 23 05:03:45 jwalker60: takes a while I would think, and will never show if the listing is not 100% complete Jul 23 05:06:40 any can help me with these errors? Jul 23 05:10:23 t0th_-: just looks like it cant find styles.xml or is pointing to the wrong one for that lib Jul 23 05:10:47 as at your app rather than the lib ? Jul 23 05:10:48 styles.xml are exists Jul 23 05:11:09 I didnt say it didnt exist Jul 23 05:11:21 I'm sure you have a few Jul 23 05:12:51 sorry Jul 23 05:13:06 i have the shlock in my project Jul 23 05:15:19 t0th_-: is your build and order setup correct ? Jul 23 05:15:26 that may do it Jul 23 05:16:21 i am noob Jul 23 05:16:22 sorry Jul 23 05:16:47 have you gone through the training ? Jul 23 05:18:20 can you suggest to me a online course? Jul 23 05:18:24 i am from brazil Jul 23 05:18:42 all the offical docs/tuts/guides Jul 23 05:18:47 they are all good Jul 23 05:19:09 oks Jul 23 05:19:10 thanks man Jul 23 05:21:53 are you using android studio? Jul 23 05:22:04 currently yes Jul 23 05:22:53 but not sure the learning docs are updated for AS Jul 23 05:23:08 is for eclipse Jul 23 05:33:12 StingRay_ you went back to AS ? Jul 23 05:33:28 back to ? Jul 23 05:33:33 oh Jul 23 05:33:45 from what / Jul 23 05:33:46 ? Jul 23 05:33:54 i thought you went as -> plain Jul 23 05:34:19 thought about it a good number of times Jul 23 05:34:22 may still do yet Jul 23 05:34:23 :) Jul 23 05:34:36 i'm using gradle + plain Jul 23 06:03:22 hi g00s Jul 23 06:03:30 hey canadiancow ! Jul 23 06:03:59 how are things Jul 23 06:04:03 good Jul 23 06:04:04 busy Jul 23 06:04:07 etc Jul 23 06:04:12 ;) Jul 23 06:04:27 last weekend was my first weekend that i wasnt travelling, but i was sick, so i accomplished very little :P Jul 23 06:04:34 first weekend in about a month** Jul 23 06:05:09 how are you? Jul 23 06:05:21 canadiancow how, where all the traveling too ? Jul 23 06:05:36 or, work … or play :) Jul 23 06:06:03 g00s, not just play...Play :D Jul 23 06:06:53 i've been busy updating my app for ics; learning lua and clojure, etc Jul 23 06:07:01 all play and no work Jul 23 06:07:06 :D Jul 23 06:07:11 canadiancow, haha Jul 23 06:07:17 if you love Android development THAT much Jul 23 06:07:18 bravo :D Jul 23 06:07:27 g00s, what app, if I may ask? Jul 23 06:07:28 went on a trip for the hell of it, then i went to san diego to see friends, then i went to toronto, then i came back from toronto, then i went to vancouver Jul 23 06:07:43 narekb, i work on android every weekday :P Jul 23 06:07:47 on vancouver is probably nice Jul 23 06:07:50 i'd like to see that Jul 23 06:07:51 so forgive me for taking my weekends off ;) Jul 23 06:07:56 vancouver's actually really nice Jul 23 06:08:05 i also visited seattle Jul 23 06:08:08 it was.. less nice Jul 23 06:08:08 i hear real estate is expensive Jul 23 06:08:13 yeah i heard that too Jul 23 06:08:53 but it cant be worse than where i am now Jul 23 06:09:07 canadiancow, where? Jul 23 06:09:25 SF bay Jul 23 06:09:42 where in the bay ? Jul 23 06:09:45 SF Jul 23 06:10:05 yeah SF is rough Jul 23 06:10:16 im dreading when my lease is up Jul 23 06:10:20 SF is not rough; SF is fabulous. Jul 23 06:10:20 i foresee rent doubling Jul 23 06:10:35 then i'll be living on the street Jul 23 06:10:42 I ment in terms of rent Jul 23 06:10:53 Rent was a fabulous movie. Jul 23 06:11:05 the rent, is too damn high ! Jul 23 06:11:21 :D Jul 23 06:11:25 you'd think you'd make enough money at Google to pay the rent ... :D Jul 23 06:11:37 idk I lived in SF for a while decided to quit my job and move the eastbay Jul 23 06:11:39 I like it Jul 23 06:11:46 Move into the back rooms of a mall. Jul 23 06:12:52 it actually wouldn't surprise me if Google - or others - started providing subsidised accommodation... Jul 23 06:13:18 MS does in seattle Jul 23 06:13:22 it actually surprises me they don't Jul 23 06:13:24 (yet) Jul 23 06:15:06 when I started my first graduate job, part of the signing package was that they put us up for a month in a house near the offices, owned by the company - it was also used by colleagues visiting from the US... I guess it was cheaper for the company to maintain a house than pay for hotels Jul 23 06:15:20 Leeds its a delicate situation atm between the large tech companies, wages, rent, and everybody else getting screwed Jul 23 06:15:43 you could just move into your cubicle. Jul 23 06:15:48 from what I heard, SF is rather screwed up place anyway Jul 23 06:15:57 yeah, get a vw bus Jul 23 06:15:58 Leeds that's very common over here for high-wage short-term workers Jul 23 06:16:55 As for company accommodation, Google gives new hires some time at company-owned flats while you hunt for your own, afaik Jul 23 06:17:02 canadiancow maybe one of these http://www.gizmag.com/mini-shows-off-latest-concept-camping-gear/28378/ Jul 23 06:17:05 :D Jul 23 06:17:12 p_l: ah, so same deal then Jul 23 06:17:31 Chainfire, i think you underestimate how much rent is :p Jul 23 06:17:45 perhaps I overestimate how much Google pays ;) Jul 23 06:17:50 canadiancow is that why google feeds you guys ? Jul 23 06:17:54 no money left for food ? Jul 23 06:17:58 Chainfire: no, you underestimate how fucked up SF is Jul 23 06:18:07 p_l: when I was there they didn't but I didnt last long Jul 23 06:18:16 * p_l had checked this year it was... not good Jul 23 06:18:17 g00s, i dont have a car Jul 23 06:18:24 wouldn't 3k/month get you a decent downtown apartment ? Jul 23 06:18:28 dirtyzero: might depend on the 'where' Jul 23 06:18:30 canadiancow did you sell your car from canada ? Jul 23 06:18:34 Chainfire, ok yes it would Jul 23 06:18:37 I had the funny one that the HR lady who'd interviewed me was living in the company house, because she was seconded from HQ to cover someone's maternity... she scared me in my interview - it *was* a graduate position, first real job I'd had - but not so much after she'd woken me up at 3am to deal with a spider in her bed :) Jul 23 06:18:41 i thought you had a somewhat new one Jul 23 06:18:42 then what's the problem Jul 23 06:18:43 well actually Jul 23 06:18:45 im not sure it would Jul 23 06:18:50 its not like its cheaper in any other major city around the world Jul 23 06:18:52 ive heard prices have gone way up Jul 23 06:18:56 try living in london Jul 23 06:19:03 or barcelona Jul 23 06:19:08 toronto was cheaper :P Jul 23 06:19:13 US$3k wouldn't get you anything particularly 'decent' here in Hong Kong Jul 23 06:19:14 g00s, yeah i sold it Jul 23 06:19:15 Chainfire: London got better mass transit :> Jul 23 06:19:24 it wasnt worth having it here Jul 23 06:19:28 so i got rid of it before i moved Jul 23 06:19:33 Chainfire: even if complaints about Tube are real, at least it's there ;) Jul 23 06:19:47 well you got those cable cars in SF, don't you :P Jul 23 06:19:53 pfft Jul 23 06:19:53 ~_~ Jul 23 06:20:11 really no need to drive in SF proper Jul 23 06:20:16 but I love to drive which is why I moved Jul 23 06:20:32 yeah i enjoyed driving Jul 23 06:20:34 Leeds just goes to show all this talk about SF being expensive is overhyped ;) Jul 23 06:21:06 two years ago, i had a two bedroom apartment for 900/month Jul 23 06:21:15 ive now lost one of those rooms, and am paying almost 3x that Jul 23 06:21:24 so forgive me for calling SF "expensive" Jul 23 06:21:29 canadiancow: where ? Jul 23 06:21:35 waterloo :P Jul 23 06:21:41 * narekb thinksthe whole USA is too expensive Jul 23 06:21:42 ah lol Jul 23 06:21:42 :) Jul 23 06:21:50 why'd you move from that apartment then ? Jul 23 06:21:51 canadiancow, is that true that Canada is even more expensive? Jul 23 06:21:59 for work Jul 23 06:22:05 to be fair, I'm paying about US$1750 now, for an okay 2-bed place - and that's so cheap that people do double-takes when I tell them Jul 23 06:22:07 narekb, no, i just listed a price i paid in canada Jul 23 06:22:23 in a good area of toronto, i paid 1300 for a one bedroom Jul 23 06:22:26 oh I thought you meant your previous apartment in SF (due to your prices rising comment) Jul 23 06:22:31 hmmmm Jul 23 06:22:39 I had a 2 bedroom, 2 bathroom apartment for $720 Jul 23 06:23:08 Hey, I am wanting to make calls to update the android sqlite database every X amount of minutes, should I use services or something else? Jul 23 06:23:17 Now I'm paying $750 for a 1 bed/1 bathroom apartment. Oh well. Jul 23 06:23:19 pft I pay over $1000 for a fairly small apartment in the middle of nowhere, no major city in sight, and it's still considered cheap. Jul 23 06:23:37 It's in a nice gated community. Jul 23 06:23:47 Supermarket only 1 block away. Jul 23 06:23:57 around 1k for 3 bed 2 bath. Jul 23 06:24:25 and I've got a place rented out in London - approximately the same size as my place in HK, in better condition and furnished, but further away from 'stuff' - and I'm taking in less rent in London than I'm paying in Hong Kong Jul 23 06:24:26 Snicers-Home unless you want to be displaying something at the same time, you probably want a service, yes Jul 23 06:24:42 anyway, lunchtime - anyone need anything? :) Jul 23 06:24:52 sandwich plz Jul 23 06:24:52 sudo bring me a sandwich ? Jul 23 06:24:57 o/ Jul 23 06:25:00 Chainfire, nope, just update behind the scenes. Jul 23 06:25:01 http://www.numbeo.com/property-investment/city_result.jsp?country=United+States&city=San+Francisco,+CA <--- some numbers for SF Jul 23 06:25:13 no worries, there's a subway about 10 minutes walk away... Jul 23 06:25:32 p_l those are low Jul 23 06:25:34 why not go to a real sandwich place? Jul 23 06:25:55 pragma-: there are a couple of delis on the way as well... Jul 23 06:26:11 canadiancow: maybe. Those are all median numbers, and based on what is provided by users, so not sure about quality Jul 23 06:26:32 * p_l personally got the problem of finding new student accommodation :( Jul 23 06:26:34 i need to find a roomate Jul 23 06:26:35 or seven Jul 23 06:26:37 my neighbourhood is actually really well supplied with food places... Jul 23 06:32:18 Hello, how do I generate random int128bit? Jul 23 06:34:20 concatenate the results of this method four times: public int getRandomNumber() { return 4; } Jul 23 06:34:38 but seriously, i'd first take a look at the Random class Jul 23 06:36:20 canadiancow: But Random class can generate maximum 64-bit number (long). Jul 23 06:36:33 well that's probably becuase there are no primitives longer than that Jul 23 06:36:43 i dont know what you're doing with the number, but could you just take the bits from two longs? Jul 23 06:37:07 byte[] nonce = new byte[16]; new Random().nextBytes(nonce); // can this be a valid 128-bit number? Jul 23 06:48:23 canadiancow gmail guys using gradle ? Jul 23 06:59:07 Is there a way i can change the DEFAULT google account on my device without resetting it ? Jul 23 06:59:48 if you root it, from what I found Jul 23 07:03:03 Hey guys, can you see what is wrong here http://ideone.com/wA4NmA I'm just starting out in the android world and this is my first app... I can't se the error tho, but maybe I have just been staring myself blind? Jul 23 07:05:26 g00s no Jul 23 07:05:31 we use the android build system Jul 23 07:05:46 XDS2010_ there is no "default" account since like 2.2 Jul 23 07:06:01 just remove the account and add a new one Jul 23 07:06:03 or just add a new one Jul 23 07:06:19 it wont let me Jul 23 07:06:50 what wont let you what Jul 23 07:06:57 keeps saying i need to reset Jul 23 07:07:37 canadiancow: what!? Jul 23 07:07:59 what phone Jul 23 07:08:02 what version of android Jul 23 07:08:28 N1 CM7 Jul 23 07:08:54 cm7 is 2.3? Jul 23 07:09:11 yes Jul 23 07:09:11 YES Jul 23 07:09:15 just so happens i have a n1 on my desk Jul 23 07:09:26 so maybe it's 3.0 where you can do that :P Jul 23 07:09:32 is it Nexus One? Jul 23 07:09:55 sssh, 3.0 doesn't exist Jul 23 07:10:03 fine, 4.0 Jul 23 07:10:08 better :) Jul 23 07:10:13 why? Jul 23 07:10:14 i'm still using froyo :) Jul 23 07:10:18 canadiancow, it wouldn't let me do that on 4.0.4 either Jul 23 07:10:20 g00s, oh man Jul 23 07:10:22 why? Jul 23 07:10:39 I know why I am using Gingerbread, my phone is stuck on it, no ICS port for it Jul 23 07:10:42 but why you g00s Jul 23 07:10:44 ? Jul 23 07:11:01 i have the original droid-1 :D Jul 23 07:11:11 never got a new device; use the emu Jul 23 07:11:21 haha Jul 23 07:11:22 but Jul 23 07:11:23 why? Jul 23 07:11:29 I am sure you can afford it Jul 23 07:11:32 (can you?) Jul 23 07:11:42 thats a personal question Jul 23 07:11:45 actually, not right now but … we;ll see reviews of the n7 maybe Jul 23 07:11:55 hmm ok Jul 23 07:12:08 and sorry if I asked about stuff I shouln't have Jul 23 07:12:15 ;) Jul 23 07:15:41 By the way i own a HTC One, i just prefer my nexus one over it Jul 23 07:16:11 http://fitsnugly.euroskank.com/?rom=cm7&device=passion Jul 23 07:16:21 Thats what im running on the N1 Jul 23 07:18:09 http://googlesystem.blogspot.com/2013/07/the-8219321-android-bug.html , The latest version patches the bluebox bug Jul 23 07:22:43 XDS2010_, what's so cool about the Nexus One that makes you love it more than HTC One? Jul 23 07:22:49 the word Nexus? Jul 23 07:28:05 narekb: Pin based dock, fits perfectly in my hands, trackball, removable battery(yes i know other phones have this too), can easily be modded to include nfc. Its also one of the very few android devices with a fully open source GPU firmware Jul 23 07:28:28 XDS2010_, daaamn Jul 23 07:28:33 you may be the first person Jul 23 07:29:02 to prefer a phone THAT old over a brand new one Jul 23 07:29:24 narekb: not sure thats the case :) Jul 23 07:29:27 doubt im alone Jul 23 07:29:35 StingRay_, you too?! Jul 23 07:29:48 my brother also has a N1 and a SGS3 , he still prefers the N1 Jul 23 07:30:10 * narekb turns green Jul 23 07:30:33 Although i think he recently sold his S3 Jul 23 07:30:41 * narekb still green Jul 23 07:31:10 Have you guys seen the ubuntu edge ? Jul 23 07:31:16 yes Jul 23 07:31:21 ha ha ha ha ubuntu edge ha ha ha Jul 23 07:31:47 I don't like it however that SI graphene battery is interesting Jul 23 07:31:54 Leeds, ??? Jul 23 07:32:03 narekb: it's a joke Jul 23 07:32:08 but why? Jul 23 07:32:13 I like the platform Jul 23 07:32:18 too bad it wont have much audience Jul 23 07:32:42 I dont know about your countries Jul 23 07:32:59 but in case of Armenia, you first have to explain what Ubuntu is Jul 23 07:33:03 then what the word Edge means Jul 23 07:33:10 Actually i take that back. I *DO* like it. But it could be so much better. Jul 23 07:33:14 then explain that the phone is NOT an iPhone and NOT a Galaxy device Jul 23 07:33:24 well, ubuntu mobile/touch/phone/whatever is pretty lacking in credibility for a start... but trying to raise 3x any previous crowdsourcing project for a phone with unknown specs being sold a year in advance? not a frigging chance Jul 23 07:33:56 Leeds: the problem is they haven't properly communicated what their intentions are with the public Jul 23 07:34:04 In other words... Jul 23 07:34:16 they are trying to croudsource so much to show the world that they are worth it Jul 23 07:34:18 and carriers too Jul 23 07:34:40 I think they're trying to crowdsource because they've failed to attract carrier/vendor interest Jul 23 07:34:48 The say they want to add a "premium" catalyst to the smartphone market. But they haven't actually come out and say that is what they are trying to do. Damn them. Jul 23 07:35:14 XDS2010_: don't forget the waffle about F1 cards Jul 23 07:35:18 er, cars Jul 23 07:35:24 If that is indeed what they are actually trying to do. This thing better be 100% FOSS Jul 23 07:35:47 tbh, i WAS really interested from a user POV for unbuntu phone Jul 23 07:35:48 Radios and all Jul 23 07:35:51 XDS2010_, Ubuntu is Jul 23 07:35:53 Radios? Jul 23 07:35:53 then this happened https://www.youtube.com/watch?v=cBWP4h48sFQ&list=PL5EZPS3vvHOhg_1FWmrxPmaAIYaZfU6q4#t=2m46s Jul 23 07:35:55 what radios?' Jul 23 07:36:00 given their reluctance to actually release their non-PC stuff to the public, at all, I don't think that'll happen Jul 23 07:38:09 I don't know what it's going to cost them when the crowdsource campaign fails, but - unless they're planning for Mark to come in at the last minute and top it off - I assume they've planned that as a marketing cost Jul 23 07:40:43 narekb: the actual radio firmware Jul 23 07:40:56 XDS2010_, why would the yclose that? Jul 23 07:41:00 *they close Jul 23 07:42:25 MNO Security Jul 23 08:02:59 what's in transit in the androidosphere? Jul 23 08:16:42 Is there a way to compile java to smali without using eclipse? Jul 23 08:18:31 all the tools are there to build apps without an IDE Jul 23 08:22:22 Leeds, can you throw a hint? Jul 23 08:22:47 http://developer.android.com/tools/building/building-cmdline.html Jul 23 08:53:58 I want to do a staged rollout. But the Changes field in the listing is not related to a specific APK. Will those who are not part of the staged rollout see the old changelog? Jul 23 08:56:22 if you were to able to choose full time work between ios and android developer, what would you choose and why? Jul 23 08:56:48 is it possible to link all the google play store +1s of your app to the google+ app page? Jul 23 09:05:37 hi everybody Jul 23 09:06:12 i want to align the bottom action bar items to left and right. this is possible? Jul 23 09:08:31 u mean the splitActionBarWhenNearror? Jul 23 09:08:35 yes Jul 23 09:09:18 if u use icons for that the actionbar put these on left and right align.. But if u use text they will be "centered"... Jul 23 09:09:37 u haven't other chances to change this... or you write you own actionbar ;) Jul 23 09:10:15 yes :) Jul 23 09:10:30 can i put custom view to bottom actionbar? Jul 23 09:15:39 yes Jul 23 09:15:51 s.stefma.ws/84174a Jul 23 09:16:37 and there s.stefma.ws/18cfd8 Jul 23 09:17:30 i thought i can put an linearlayout in an realtivelayout with alignParentBottom Jul 23 09:30:05 StefMa, so if i use only icons i can align to left and right? Jul 23 09:30:12 how this work? Jul 23 09:30:50 use icons instead of text.. in menu.xml say icon="@drawable/icon" instead of text="@strings/text" Jul 23 09:31:14 I want to create a service that runs always. Any document or link..? Jul 23 09:31:19 thats okat, but how can i set up the alignment? Jul 23 09:31:24 folks, anyoen experienced with SQLite here? Jul 23 09:31:28 *anyone Jul 23 09:31:30 make android itself :D Jul 23 09:32:16 I read many tutorials but all of them do some complex stuff with ContentProviders and Cursors. now I wonder if I can replace all that with simple SQL queries with execSQL()? Jul 23 09:34:11 narekb: s.stefma.ws/772f01 Jul 23 09:34:52 I want to create a service that runs always. Any document or link..? Jul 23 09:35:47 thank StefMa that did it for me Jul 23 09:36:02 oh and btw, you have your own URL shortener? Jul 23 09:37:23 yes, i have.. :) and the app for that.. see kurly in play store ;) Jul 23 09:37:37 hmmm Jul 23 09:38:05 German? Jul 23 09:38:10 yes Jul 23 09:38:34 hmm nice app Jul 23 09:38:39 thank you Jul 23 09:42:48 Is HTML5 + Canvas still a bad idea on Android? I have a HTML5 game that I was thinking about converting to Android using phoneGap but all I read is that HTML5 games are terrible on android Jul 23 09:43:29 html5 games are terrible anywhere Jul 23 09:44:27 Zharf, that depends on the audience Jul 23 09:44:40 ;) Jul 23 09:44:50 them damn casuals Jul 23 09:45:04 indeed, and them minors! Jul 23 09:45:08 Maffelu: let's put it this way = Any desktop that runs HTML5 games well that have constant animation is like a supercomputer when compared to 99% percent of phones Jul 23 09:45:45 Has anyone informed google that HTML5 might be part of the future? Jul 23 09:45:52 I sure hope not Jul 23 09:46:08 I've managed to turn down every html5 job I've been offered so far \o/ Jul 23 09:46:11 never again! Jul 23 09:47:06 I'm not talking about working as a HTML5 developer (*shrugs*) but it is fast as h¤!# when it comes to making small simple apps that has to work on multiple platforms Jul 23 09:47:38 Maffelu: as long as said multiple platforms are limited to latest and shiniest browsers on reasonably powerful computers Jul 23 09:48:06 In general, it's possible, it's just... well, the usual aftertaste of phoneGap applications is bad Jul 23 09:48:08 Well I did convert it to FireFox OS and it was as smooth as my Windows 8 version of the app Jul 23 09:48:21 for various reasons, not all of them due to HTML5 but more to programmers behind it Jul 23 09:48:26 Sadly nobody used Firefox OS so it was pointless :( Jul 23 09:48:47 Maffelu: then it has a chance, I guess. Try by loading it in Firefox Mobile on Android phone? Jul 23 09:49:09 though FirefoxMobile might have better JS engine than some phones might offer to PhoneGap Jul 23 09:49:40 I will actually, this might prove interesting Jul 23 09:51:17 No, it was pretty poor on FirefoxMobile as well Jul 23 09:52:12 Maffelu, nobody used FFOS Jul 23 09:52:16 but I hope they WILL Jul 23 09:52:22 at some point, FFOS will gather popularity Jul 23 09:52:30 although it won't reach the majors Jul 23 09:52:36 iOS, Android, WP(to some extent) Jul 23 09:52:58 so you better go native on any platform Maffelu Jul 23 09:53:02 If WP didn't make it past 3% I'm having a hard time seeing FFOS making it better Jul 23 09:53:20 especially on games, because games require performance that only native development can give Jul 23 09:53:33 yeah correct about about the 3% thing :( Jul 23 09:54:43 Does anybody know though if using the "Click" event on a HTML5 app in Android is better or worse than using the Touch events? Jul 23 09:57:45 depends what you are doing, I guess. Haven't delved much in this area, though Click() will work for any single tap or mouse click (yes, there are android devices with mouse pointer, I even have one at home) Jul 23 09:59:15 my phone could not have ICS because every time someone tried there was that annoying pointer Jul 23 09:59:23 they couldn't remove it Jul 23 09:59:43 Maffelu: personnaly because of the tiemout on the onclick to check if there is a double click I use the ontouch event, its faster. Jul 23 10:00:43 narekb: sounds like a bug (or broken settings file somewhere) Jul 23 10:06:20 For though interested I did notice a performance boost when using "touchend" instead of "click" Jul 23 10:06:23 those, not though Jul 23 10:06:40 p_l, touch sensor driver problems Jul 23 10:06:45 hard life man, still stuck on 2.3.7 :D Jul 23 10:11:39 that's better than my previous phone :3 Jul 23 10:11:48 the last *official* update was 2.1 Jul 23 10:12:11 last one that could use GLES2 was 2.2, which involved a lot of frankenstein-worthy surgery Jul 23 10:12:33 2.3 involved half-done GL drivers supporting incomplete 1.1 :> Jul 23 10:15:36 haha p_l what phone was that? Jul 23 10:18:08 has anyone's android app here has scored more than 1 million users? Jul 23 10:34:26 does dalvik optomize for iterating through an array between doing int length = myArray.length; for (int i = 0; i < length; i++) or just for (int i = 0; i < myArray.length; i++) so they are the same ? Jul 23 10:34:57 err i guess they are different because technically the array could be reassigned Jul 23 10:36:44 Anyone willing to offer some help? I'm trying to create some elements with custom states. though it seems like it won't pick up the values i've defined as default in the activity_main.xml... i think i'm doing something wrong in my selector's xml Jul 23 10:37:54 When i'm using "xmlns:tabs="http://schemas.android.com/apk/res/com.Annihlator.testApp.activeTabs" " I keep getting a "No resource identifier found for attribute state_active_tab in package com.Annihlator.testApp.activeTabs ... Jul 23 10:38:15 i am using < com.Annihlator.testApp.activeTabs> elements though and a activeTabs.java file Jul 23 10:39:42 though when i remove the .activeTabs part in the xmlns reference, at least the default state is correctly selected again of the element itself (not taking into account activity_main.xml, just the selector's default) Jul 23 10:55:42 narekb: Galaxy Spica (i5700) Jul 23 10:56:16 2.3/4.x GPU drivers were done by a student based on reverse engineering Jul 23 11:07:58 Ok, worked around my issue differently... now setting all values programmatically from the start. Jul 23 11:14:30 Is any of you guys using Otto? Jul 23 11:35:49 does the new google play web site show the app permissions _anywhere_? Jul 23 11:36:59 Ge0rG: in the popup when you press the install button Jul 23 11:37:53 appel1: so no way to see them when not signed in? sigh. Jul 23 11:38:40 Ge0rG: don't think so :\ Jul 23 11:40:37 needless to say, I _love_ the new interface... Jul 23 11:41:43 ;) Jul 23 12:36:05 I love how the docs are filled with mentions of not trusting the default locale and whatnot, yet none of the widgets I've tried nor standard date/time formatting functions actually respect the 24 hour time display setting by default ... Jul 23 12:40:31 Chainfire: are you not supposed to use http://developer.android.com/reference/android/text/format/DateFormat.html that respect among other things that setting? Jul 23 12:42:16 appel1 well, SimpleDateFormat.getDateTimeInstance() or .getTimeInstance() sure as hell don't respect it. Neither does the TimePicker widget (you have to detect and set manually) Jul 23 12:42:27 let me give DateFormat a shot, see if that one works Jul 23 12:44:50 Chainfire: confusing, but probably because java.text.* needs to be compatible with the java implementation or something. Jul 23 12:46:19 Chainfire: and the TimePicker docs at http://developer.android.com/guide/topics/ui/controls/pickers.html tells you in the sample that you need to configure the am/pm settings ;) Jul 23 12:47:01 appel1 yes I know the docs state that Jul 23 12:47:04 it's still nonsensical Jul 23 12:47:18 the TimePicker can detect the current time on its own, but not the format? Jul 23 12:49:44 Chainfire: yes Jul 23 13:01:08 bye Jul 23 13:04:43 Hi! Is it possible to play raw .h264 files with the android player? Anyone who succeeded? At the moment I'm muxing then playing, just looking for confirmation that muxing is required. Jul 23 13:14:06 luc4: you could try not muxing and then playing and see what happens. Jul 23 13:14:14 i want to access json data. the name of the array is matchdata. Jul 23 13:14:15 e.getString("points_team1") it works! Jul 23 13:14:15 in this array matchdata is again a array called match_results. how can I access this second array? Jul 23 13:14:42 ehlo Jul 23 13:14:47 here is the url to the json: Jul 23 13:14:48 https://openligadb-json.heroku.com/api/matchdata_by_group_league_saison?group_order_id=20&league_saison=2010&league_shortcut=bl1 Jul 23 13:15:00 lov: tried that, but how do I start the player? I tried to start with an intent, but what mimetype should I provide in the intent? Jul 23 13:15:07 dot8: have you considered starting with https://developer.android.com/reference/org/json/JSONObject.html ? Jul 23 13:15:21 luc4: good question, I don't know, sorry. Jul 23 13:15:30 lov: thanks anyway ;-) Jul 23 13:16:08 lov: sorry, it works with http, https everywhere make it https Jul 23 13:16:32 dot8: I don't know why that matters. Jul 23 13:16:59 lov: ups, ok Jul 23 13:17:30 dot8: create a JSONObject ouf of the content of the link you gave me. Call getJSONArray("matchname") to get the array of whatevers. Jul 23 13:17:33 use the apis, etc etc etc. Jul 23 13:21:03 lov: i can access everything in matchname, but i can not access match_results->match_result[1]-> result_name Jul 23 13:21:12 why not? Jul 23 13:22:04 actually, did you actually use "matchname" since that doesn't exist on your page? Jul 23 13:22:41 lov: e.getString("result_name") does not work Jul 23 13:22:53 i want a new android version :( Jul 23 13:23:02 dot8: what is e? pastebin your code, I have no idea what you're actually doing. Jul 23 13:25:03 why is the fragment class implemented as static ? Jul 23 13:25:15 like i saw in the example in developers site: public static class FragmentA extends ListFragment { Jul 23 13:25:45 pranav: that's because it's an inner class Jul 23 13:25:51 lov: http://pastebin.com/R1b1cvcF Jul 23 13:25:56 it specifies the class scope; non-static classes are dependant on the outer class Jul 23 13:27:35 lov: so, it belongs to all activity class equally ? Jul 23 13:27:57 pranav: huh? Jul 23 13:28:09 pranav: you might want to do a search for "java static inner class" or something Jul 23 13:28:14 and/or ask about it in #java Jul 23 13:30:52 dot8: result_name isn't in that object. It's in a sub-object somewhere. Jul 23 13:31:11 use a beautifier like http://jsbeautifier.org/ and look at the json content you're using Jul 23 13:31:40 You want matchdata -> [0] -> match_results -> match_result -> result_name Jul 23 13:31:58 lov: yes Jul 23 13:31:59 er Jul 23 13:32:08 You want matchdata -> [0] -> match_results -> match_result -> [0] -> result_name Jul 23 13:32:20 lov: ;) yes Jul 23 13:32:31 Right, but right now you have matchdate -> [0] -> result_name. Jul 23 13:32:35 surprise, it doesn't work. Jul 23 13:32:43 what's the best way to get a unique identifier for an android device? Jul 23 13:33:00 Corporalist: Build.SERIAL if it needs to be consistant across reinstalls; otherwise, just make a GUID. Jul 23 13:33:23 lov: awesome. Thanks :) Jul 23 13:34:25 np Jul 23 13:36:24 lov: and how can I access the second array? Jul 23 13:39:09 getJsonArray() Jul 23 13:39:23 lov: If its static. we can use => AcitvityClass1.FragmentList1 acfl1 = new AcitvityClass1.FragmentList1(...) in AcitvityClass2 Jul 23 13:40:42 because static inner classes can be instantiated in any class using the Outerclassname.innerClassName() contructor ? Jul 23 13:41:07 dot8: https://developer.android.com/reference/org/json/JSONObject.html has very clear documentation on how to get a child JSONObject or get a child JSONArray *cough* Jul 23 13:41:31 pranav: yes Jul 23 13:41:41 lov: ok, thx. i try it Jul 23 13:41:56 pranav: that said, static inner classes are typically for things like enums, or things where you're using both Outer class and Inner class in some unrelated class. Jul 23 13:42:07 Consider whether it makes sense to extract the inner class to its own outer class. Jul 23 13:42:29 What should I store Java long's as in SQLite? Will INTEGER automatically expand to the correct number of bits to store a long? Jul 23 13:42:38 Ankhwatcher: yes. Jul 23 13:42:52 lov: ah, good Jul 23 13:42:58 Ankhwatcher: sqlite takes the stance that specifying datatypes in a database is actually a mistake, and will just store whatever you want. Jul 23 13:43:03 Ankhwatcher: read the sqlite docs for details. Jul 23 13:47:16 lov: .. by extract you mean instantiate. yup, it would not make sense. because its kind of same for the activity regardless of any method. so maybe its better its static. Jul 23 13:51:24 any info concerning the coming back of "featured image" on play store? Jul 23 13:54:55 it's still present in http://developer.android.com/distribute/googleplay/quality/core.html#listing which points to http://android-developers.blogspot.fr/2011/10/android-market-featured-image.html Jul 23 14:02:23 on the sgs2 wasn't there a shortcut for making a screenshot? Jul 23 14:06:21 do you maintain a new workspace for each individual app? Jul 23 14:06:32 or have you got one workplace with all you apps? Jul 23 14:06:37 your * Jul 23 14:07:43 workspace? Jul 23 14:08:03 depends how lazy I am Jul 23 14:08:23 Mavrik: yes Jul 23 14:08:43 what is the convention there. What is recommended? Jul 23 14:11:53 Leeds: how do you handle that for instance? :P Jul 23 14:12:16 I have a different directory for each app Jul 23 14:15:54 spobat, listen to nseidm1 Jul 23 14:15:57 ;) Jul 23 14:16:05 ok Jul 23 14:20:41 memand, simple, eclipse doesn't generate unnecessary files, if you want the build.xml files for ant, run android update project; or start off with android create project initially Jul 23 14:20:45 g00s, I'm surprised as well Jul 23 14:21:40 g00s, I think clojure gets more exposure on reddit Jul 23 14:21:59 memand, the naming and format of resources are relatively unimportant, at least from a project generation perspective Jul 23 14:31:45 How can I display the result of an Async task? Jul 23 14:32:48 you can use onPostExecute() to interact with the UI thread Jul 23 14:33:00 I know that, but I'm not sure how. Jul 23 14:33:20 you have to pass some context into the asynctask, for example your activity Jul 23 14:33:36 Ah. Jul 23 14:33:51 That makes sense. Jul 23 14:34:26 but once you do, you will be entering a world of pain concerning things like screen rotation and other gizmos Jul 23 14:34:47 for example, you pass your activity to a long running task, and turn your phone while it's still running Jul 23 14:34:55 Well, right now it's just a testing program to test my netcode. Jul 23 14:34:55 it will try to interact with a dead activity and crash Jul 23 14:35:26 So Async can only have one type of input? Jul 23 14:36:27 As in, "public class NetworkingThread extends AsyncTask"? Jul 23 14:38:42 I usually have the activity as a class attribute Jul 23 14:38:53 However, no idea if that is the correct way to go, I am in no way a professional Jul 23 14:39:06 What do you mean by a class attribute? Jul 23 14:39:31 (I am new to Android development). Jul 23 14:39:35 private Activity myActivity; Jul 23 14:39:40 just a plain java class attribute Jul 23 14:39:41 Ah, I see. Jul 23 14:39:52 Thought you meant somethign else Jul 23 14:40:14 pass that in when constructing the asynctask, new MyTask(this); (the activity is usually this, as you're calling the task from inside an activity) Jul 23 14:42:49 in android studio, can i go directly to the string xml file if I see the id? Jul 23 14:42:52 like R.string.titleItemsSeparator Jul 23 14:46:28 Great, that seems like it might have worked. Thanks for the help, sonOfRa! Jul 23 14:46:46 try turning your phone while the task is running! Jul 23 14:46:59 spoiler: it will probably crash Jul 23 14:47:08 I'm using an emulator right now. Jul 23 14:47:27 I don't think I have the connector cable with me Jul 23 14:55:34 how can i add the android docs to android studio? Jul 23 14:55:40 in eclipse this was awesome Jul 23 14:55:48 hovering over classes and it showed you the docs Jul 23 14:57:19 intellij doesn't hover doc by default, but there is a shortcut to show doc for the method your cursor is on Jul 23 14:57:31 Vs. which versions of Android do you guys test the apps ? Jul 23 14:57:51 The ones we support Jul 23 14:58:14 SimonVT, do you test vs. versions < 4.0.3 ? Jul 23 14:58:21 >2.3 Jul 23 14:58:28 yes of course, but in the 4.0 major version Jul 23 14:58:32 If the app supports <4.0.3 Jul 23 15:00:38 jwalker60: 4.0+ only nowadays, I no longer actively support 2.3 and lower devices Jul 23 15:03:38 Hi there, I wrote a question here an hour ago but my internet cut out and was not able to read the response so I am going to post it again I apologize for the spam. -> Hey guys, I am trying to make an Android mini-game, I am trying to load multiple textures using openGLES now when I load them without queuing an event they don't load at all but when I do load them with a queue event they work fine but opengl stops drawing my loa Jul 23 15:14:11 ugh, android studio has still a few bugs :S Jul 23 15:15:44 Did you expect it not to? Jul 23 15:18:32 so my applications are not running on my device today...this is the error i get when trying to run: Failed to install Network_Access.apk on device 'C8OKAS025686': timeout Jul 23 15:18:47 the device is connected to the computer as usual... Jul 23 15:22:23 csterling123: reboot the device. Jul 23 15:24:16 okay, trying that Jul 23 15:28:16 SimonVT: where can I report them? Jul 23 15:29:19 b.android.com Jul 23 15:29:27 ty Jul 23 15:31:26 Hello there Jul 23 15:31:34 I am having problems wirh admob... Jul 23 15:31:40 i cant make them towork on my cell phone :S Jul 23 15:34:20 lov- the android device chooser is having troubles recognizing my device. it is reading two devices, with the same serial number, target- unknown. whats up with that? Jul 23 15:34:27 i have read lot of guides and questions in stackoverflow but i stilll cant make them to work :S Jul 23 15:34:46 they work in the emulator, but i have Android 4.2.2 on my device Jul 23 15:35:26 csterling123 try restarting adb Jul 23 15:35:47 csterling123: yeah, restart adbd Jul 23 15:35:58 nekosama: that's unfortunate. Jul 23 15:36:00 sorry, whats that acronym? Jul 23 15:36:03 meh, silly idea, it won't render a for me Jul 23 15:36:40 what? Jul 23 15:36:58 itrs frustrating Jul 23 15:37:01 I've got 99 problems but an ad network ain't one. Jul 23 15:37:07 they work in android 2.x devices Jul 23 15:37:13 but not in > 4 :( Jul 23 15:37:17 i cant make them work Jul 23 15:37:22 ok. Jul 23 15:37:30 have you tried contacting admob? Jul 23 15:38:34 lov- what is adbd? is that adt? Jul 23 15:39:15 nop :S Jul 23 15:39:24 i just try lot of tutorials and read lot of questions... Jul 23 15:39:34 it seems that my app cant connect with admob Jul 23 15:41:21 It says that ALL webview must be call in the UI thread Jul 23 15:57:17 wut, anyone else's textual icon turn into a party hat :| Jul 23 15:57:35 :toot: Jul 23 15:57:44 happy birthday g00s! Jul 23 15:57:54 heh Jul 23 15:57:58 you've won another year of me not giving a shit about you Jul 23 15:58:04 \o/ Jul 23 15:58:13 o/ Jul 23 15:58:19 yay! apathy! Jul 23 15:58:26 o\ Jul 23 15:58:28 meh! apathy! Jul 23 15:58:31 hand rescinded. Jul 23 15:58:42 It's not about what happened in the past, or what you think might happen in the future. It's about the ride, for Christ's sake. There is no point in going through all this crap, if your are not going to enjoy the ride. And you know what... when you least expect something great might come along. Something better then you even planned for. Jul 23 15:58:57 of the channels i am on in#freenode, #android-dev is the grumpiest only behind #java - i think these shitty technologies really make you guys cranky Jul 23 15:59:09 it's not the technology that makes me grumpy Jul 23 15:59:16 also, -dev is much more laid back than ##java Jul 23 15:59:18 Leeds: I find you non-commital attitude to apathy disturbing. *strangles* Jul 23 16:01:01 * Ankhwatcher comes into #Android-dev to be cheered up Jul 23 16:01:30 I go to #django for that Jul 23 16:02:14 i saw that movie. excellent casting of jamie foxx. Jul 23 16:02:17 partly because it seems to have a higher-than-average number of Aussies, who are generally cheerful people Jul 23 16:02:49 #OpenRA is good for Aussies too, except they wake you up at 4am to play a game Jul 23 16:04:03 oh wow. open source original red alert. Jul 23 16:04:59 lov: you're welcome Jul 23 16:05:33 I'd be more partial to TA Spring Jul 23 16:05:39 But we're getting off topic! Jul 23 16:05:41 * lov harrumphs Jul 23 16:05:43 * lov frumps Jul 23 16:05:45 * lov bans himself Jul 23 16:05:48 hah Jul 23 16:06:20 go donate the code to create an Android version, that'll make it on-topic again Jul 23 16:07:25 Good evening #android-dev, Does anyone have any tips for removing the vast amount of logs in logcat that are generated by a real android device? Jul 23 16:07:38 other than just clearing the log? Jul 23 16:07:42 grep! Jul 23 16:07:51 I'm using intellij and a galaxy note 10.1 and the amount of logging from the samsung apps is insane Jul 23 16:07:57 Clockworkant: use the existing filters? Jul 23 16:08:25 are you looking for something in particular? cant you just filter for that Jul 23 16:08:35 I just search for the name of my app in the search box Jul 23 16:08:49 that works in eclipse ... Jul 23 16:08:57 The filters are good but if your using 3rd party code or multiple apps then its a bit of a pain Jul 23 16:09:08 Clockworkant, filter them out Jul 23 16:09:08 what I really want is to just remove alot of things like "wpa_supplicant" Jul 23 16:09:20 filter tag:^(?!wpa_supplicant) Jul 23 16:09:37 dunno if that works in intellij, I hate the logcat in intellij, but intellij13 should fix it Jul 23 16:09:56 is there any release date for intellij 13 ? Jul 23 16:09:58 no better way pfn? since there are quite alot of these horrible logging messages Jul 23 16:10:11 why dont you use the eap? its pretty good, I'm using it now Jul 23 16:10:19 Clockworkant: typically, you just grep on the pid for your process Jul 23 16:10:31 the logging tools in IDEs will handle this Jul 23 16:10:38 except the pids change Jul 23 16:10:49 well if you're doing it from the command line it's an issue, sure. Jul 23 16:11:01 eclipse/monitor/ddms allow app: Jul 23 16:11:03 intellij doesn't yet Jul 23 16:11:05 but yeah, eclipse will follow changing pids, and there are 2 command line scripts that will di ot Jul 23 16:11:05 version 13 will fix Jul 23 16:11:09 tbqh I can appreciate the pain; I think I actually ran out of tags when I tried filtering OUT the spammy tags. Jul 23 16:11:25 Clockworkant, run monitor instead of intellij's logcat Jul 23 16:11:26 pfn: definitely looking forward to that. Jul 23 16:11:30 ddms allows you to allow app: Jul 23 16:11:36 Clockworkant, and use it to filter by app: Jul 23 16:11:41 that's what I do Jul 23 16:12:11 Hola Jul 23 16:12:19 superb, thanks pfn, I'll give it ago Jul 23 16:12:27 How do you know the roadmap for intellij 13 by the way? Jul 23 16:12:37 they've announced the new features already Jul 23 16:12:43 and improved android integration Jul 23 16:12:50 it's in their EAP even Jul 23 16:12:59 #intellijcirclejerk Jul 23 16:13:10 so is intellij 13 == AS ? ' Jul 23 16:13:16 http://confluence.jetbrains.com/display/IDEADEV/IDEA+13+EAP Jul 23 16:13:32 g00s, it incorporates stuff above and beyond what is already in intellij, sure Jul 23 16:14:11 or i guess should i say, is AS == intellij 13 + android plugin Jul 23 16:14:29 only to becomes something like the adt bundle Jul 23 16:14:35 just packaging difference Jul 23 16:15:16 I'm still not sure if eap is different to studio Jul 23 16:16:23 * pfn shrugs Jul 23 16:16:26 Is it bad practice to have TextViews with the same name across multiple layout files? Will this create conflicts? Jul 23 16:16:28 * pfn still finds little reason to run android studio Jul 23 16:16:33 cheese1756, no, it's convenient Jul 23 16:16:39 i'm wondering if they will stay different product codes Jul 23 16:16:48 pfn: Great, that's what I thought. Thank you! Jul 23 16:20:01 You know what isn't convenient? Custom fonts. Jul 23 16:20:07 God was that more difficult than necessary Jul 23 16:21:05 custom fonts are a pain because you need to use a custom view and then can't apply existing styles easily, e.g. textAppearance becomes useless :-/ Jul 23 16:21:32 (using it to apply custom fonts) Jul 23 16:24:15 Yeah, I don't know why they made it so god awful to import custom fonts Jul 23 16:24:21 like everything else is easily done via xml Jul 23 16:24:34 but then they were like, Fonts? Yeah no. We don't want any custom fonts in these apps, that would ruin android Jul 23 16:24:36 #googlewhy Jul 23 16:27:12 Is it good to use FrameLayout ? Jul 23 16:27:34 *unlike ? Jul 23 16:28:37 I use FrameLayout Jul 23 16:28:38 I like it Jul 23 16:28:42 #HOLOYOLO Jul 23 16:28:45 It was meant for pun.. Jul 23 16:29:05 Brian|CB: custom fonts = pain Jul 23 17:24:40 Pick preview layout from fragment layout context menu. i just couldn't find any context menu. in adt. please help! Jul 23 17:29:22 ok, it was silly, its there.. but when i choose a layout. my fragment changes to the view the activity is starts with.. Jul 23 17:47:46 Sometimes, Android choose the wrong resource file. For example, it uses activity_home inside layout/ instead of the one inside layout-land/ when the device is in landscape mode. Have you ever had this issue? Jul 23 17:47:56 no Jul 23 17:48:45 has someone used the gd:extendedProperty in the Google Contacts API? I'd like to use that to store the public key for a user -- is there any guideline on something like this, or a better way to do this? Jul 23 17:51:10 JulienDev, you set configChanges="orientation" Jul 23 17:51:31 * SimonVT thinks that as well Jul 23 17:52:13 hummm, and do you know why it doesn't use the good identifier? Jul 23 17:53:04 If you set configChanges="orientation", you told Android you'll handle it Jul 23 17:53:08 Is there a good tutorial on writing apps for cross-android versions? I wrote an app for 4.2.2 and it doesn't load on 4.1 because of missing features Jul 23 17:54:07 jwalker60: search for "android backwards compatibility" on google. Jul 23 17:55:08 SimonVT: So I have to put the landspace layout inside landscape/ with a different name? Jul 23 17:55:50 The tl;dr is if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) useNewFeature(); Jul 23 17:56:28 SimonVT: not even that, since if useNewFeature is an api call that isn't available in < JB_MR1, your class won't load. Jul 23 17:56:38 either use reflection, or use a factory to get an interface that will handle this safely Jul 23 17:56:55 JulienDev: No, just set the layout again Jul 23 17:56:55 Or, just don't handle orientation changes Jul 23 17:56:55 You most likely don't have a good reason to if you don't know how it works Jul 23 17:57:01 So the guideline is "program for the oldest version there is" ? Jul 23 17:57:07 jwalker60: well, no. Jul 23 17:57:09 well Jul 23 17:57:11 yes and no. Jul 23 17:57:16 jwalker60 also see http://devtcg.blogspot.com/2009/12/gracefully-supporting-multiple-android.html Jul 23 17:57:18 Yes it will, lov Jul 23 17:57:19 It wouldn't load on 1.6 Jul 23 17:57:19 It'll load on 2.1+ Jul 23 17:57:19 Or rather, 2.0+ Jul 23 17:57:27 SimonVT: wait what Jul 23 17:57:32 lov: Yep Jul 23 17:57:35 wat Jul 23 17:57:35 lov: is that actually true (vis-a-vis class not loading?) I thought the dalvik vm just replaced the missing calls with nops Jul 23 17:57:46 I want to support 4.0+, and thinking about supporting also 2.3.3 Jul 23 17:57:46 kbs, it does Jul 23 17:57:55 lov is living in 2010 Jul 23 17:57:56 jwalker60: see the article g00s linked Jul 23 17:58:16 g00s' link is wayy to verbose for most stuff Jul 23 17:58:22 g00s, reading it now :) Jul 23 17:58:55 * lov sighs Jul 23 17:58:57 jwalker60: also, http://android-developers.blogspot.com/2009/04/backward-compatibility-for-android.html Jul 23 17:59:06 stop linking shit from 4 years ago :P Jul 23 17:59:11 android has changed a LITTLE bit Jul 23 17:59:23 The tl;dr is if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) useNewFeature(); Jul 23 17:59:23 canadiancow: newer, better links appreciated. Jul 23 17:59:25 jwalker60 also for UI, see http://www.youtube.com/watch?v=amZM8oZBgfk Jul 23 17:59:25 SimonVT: I know how it works but what I don't understand is that my activity is defined as a landscape activity inside the AndroidManifest, but it tries to use the landscape inside layout/. Do you see what I mean? Jul 23 17:59:26 thats all you need Jul 23 17:59:34 hum. Jul 23 17:59:53 SimonVT, canadiancow, I'll certainly need to test this out, since I'll feel like a nitwit if this is the case and I've been doing the super caution route Jul 23 18:00:40 lov, you can even do https://github.com/SimonVT/android-menudrawer/blob/master/library/src/net/simonvt/menudrawer/MenuDrawer.java#L1468 Jul 23 18:01:22 JulienDev: Dunno then.. Check the configuration in onCreate, figure out why it's wrong Jul 23 18:01:31 yo just use DrawerLayout or whatever it's called SimonVT :P Jul 23 18:01:50 SimonVT: aaaaaaaaaaaAAAAAAAAAAAA!!!!!!!!! Jul 23 18:01:55 * lov kicks himself Jul 23 18:01:55 canadiancow, when you make the API not suck Jul 23 18:02:31 Pass menuitem, lawl Jul 23 18:03:33 * kbs stumbles on a nice github treasuretrove -- thanks SimonVT Jul 23 18:04:40 I should release more libraries Jul 23 18:04:54 I have lots of code that'd make great libraries Jul 23 18:05:05 But putting them in seperate projects and writing samples Jul 23 18:05:07 yawn Jul 23 18:05:59 SimonVT i'm guessing thats what google says too Jul 23 18:06:22 where is iosched 2013 code :P Jul 23 18:08:59 :D Jul 23 18:10:19 SimonVT: Time is one resource noone will ever have enough of Jul 23 18:10:19 :P Jul 23 18:13:14 Meh, I doubt iosched is very interesting.. Not much happened the last 2 years Jul 23 18:14:42 i'm guessing its not released because it uses their support-lib actionbar, which they also didn't release in the end Jul 23 18:15:02 Could someone explain how the AccountManager keeps track of current account? How does it know which account to use if the application get closed? How do you logout an account? Is this all something I would have to implement myself? Jul 23 18:15:53 taar779, current account of what? Jul 23 18:16:03 AccountManager supports any number of accounts. Jul 23 18:17:31 My book app has more French Canadian active installs than English Canadian Jul 23 18:17:58 fr_CA 6021, en_CA 4865 Jul 23 18:18:07 Did not expect that Jul 23 18:18:15 consider adding a french translation Jul 23 18:18:17 Mavrik: To get an authtoken (for example) you have to supply an account, right? How do you know which account you should use? Jul 23 18:18:23 or at least a quebecois translation Jul 23 18:19:49 Ologn: How many installs does it have in each? Jul 23 18:20:16 It has a French translation...that probably helped Jul 23 18:20:41 yiati - 6021 for French (in Canada), 4865 for English (in Canada) Jul 23 18:21:14 Will I be able to keep my ranking if I change categories for my app? Jul 23 18:21:21 Mavrik: Do you save the account name somewhere (in a SQLite database) and use that to create an Account object to give the AccountManager? Jul 23 18:23:22 taar779, er, no Jul 23 18:23:25 the accounts have a type Jul 23 18:23:32 you ask the accountmanager of an account of your type Jul 23 18:24:04 it's up to you to make sure you don't create more than one account if you want to force that kind of limit Jul 23 18:24:36 anyone every faced problem in ft.replace(R.id.a_item, details); during executing samples from FragmentLayout.java in adt ? Jul 23 18:27:30 Good post by Adam Powell. https://plus.google.com/107708120842840792570/posts/PjcZ7LF7YFR Jul 23 18:27:31 Mavrik: Oh so what you're saying is only allow one account with the account type of "com.taar.myapp" (for example). This way then I can use getAccountsByType to get the "current logged in account" Jul 23 18:27:40 Does anyone know of a good way to convert the output of an EditText date picker to UNIX time? Jul 23 18:29:03 Brian|CB: you never see the argument the other way, the weaker always complains Jul 23 18:29:27 by weaker I mean, you design an mobile app, most are primary iOS :) Jul 23 18:29:42 and there are many "good" arguments for consistancy Jul 23 18:30:02 I think where people make a mistake is "system style/component use" Jul 23 18:30:26 ok, it was a bug mentioned here: http://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=43454 Jul 23 18:30:27 The facts are that the number of users who are going to use multiple applications from the same OS/device severely outnumber the number of users who will use the same application on multiple devices Jul 23 18:30:43 If you have 10 billion users you might have 100 users that actually sit down and look at all your apps next to each other Jul 23 18:30:50 Branding consistency is good Jul 23 18:30:57 ^^ Jul 23 18:31:05 Not that it should look exactly the same Jul 23 18:31:11 THeres a difference between branding consistency and ignoring native components because they don't "fit your brand" Jul 23 18:31:31 yeah, thats called branding Jul 23 18:31:39 not consistancy choices Jul 23 18:31:40 Like, if I decide to implement my own Action Bar slightly different than the existing action bar Jul 23 18:31:47 thats just being silly Jul 23 18:31:58 because you should just fit your brand to the bar Jul 23 18:32:00 not the bar to your brand Jul 23 18:32:16 it all depends Jul 23 18:32:21 you can make a statement like that Jul 23 18:32:37 taar779, depends on your use case Jul 23 18:32:38 http://xkcd.com/292/ Jul 23 18:32:41 but dont mean it's true Jul 23 18:32:59 taar779, since you never defined what "currently logged in account" even means for you Jul 23 18:33:15 taar779, when it comes to UX ALL accounts available in AccountManager should be currently active Jul 23 18:33:20 I mean… check how Google does that. Jul 23 18:34:07 Brian|CB: there are just too many factors to make wide assumptions and statements like what you just said Jul 23 18:34:16 or that my experience anyways Jul 23 18:34:32 and exists in many other more seasoned industries Jul 23 18:34:33 :) Jul 23 18:34:39 In my experience companies are constantly trying to reuse the entire UI between android/ios apps Jul 23 18:34:41 and it's h orrific Jul 23 18:34:58 it is Jul 23 18:35:03 it's "simpler" for the design team, naturally Jul 23 18:35:15 Brian|CB: thats what I pointed out Jul 23 18:35:32 people make the mistake of thinking "copy system style" is doing that Jul 23 18:35:38 no thats a lazy design Jul 23 18:36:00 thats consistancy of a platform Jul 23 18:36:06 not a brand Jul 23 18:36:13 well yes, an apple brand :) Jul 23 18:37:03 "No user is going to use your app by putting all the different devices side by side..so in my opinion same design on different platform is not a good idea.. Suppose I am using mac..mac has close, minimize-maximize buttons on top left corner...its system behavior...so I am used to that. Now, suddenly one app comes with that buttons on top right corner (just like windows).definitely I will find that app strange...what i believ Jul 23 18:37:21 fack Jul 23 18:37:25 the comment about it on the thread Jul 23 18:37:27 put it pretty well Jul 23 18:37:45 your arguing a different point "its system behavior" Jul 23 18:38:09 my point was about unique design and brand, they have justification to be consistant Jul 23 18:38:19 if the design choices lead that way Jul 23 18:38:20 :) Jul 23 18:38:26 UX/system behaviours are more important than design choices or brands Jul 23 18:38:28 fk system/platform Jul 23 18:38:39 again that depends Jul 23 18:39:00 on use / context / demographics etc Jul 23 18:39:01 It's the same reason you should follow google for android design guidelines, not Facebook or Twitter or LinkedIn Jul 23 18:39:07 there are no big correct statements Jul 23 18:39:40 Brian|CB speaking of LinkedIN, i just noticed they are now pushing "sponsored updates" Jul 23 18:39:55 I have a love hate relationship with LinkedIn Jul 23 18:39:59 I love some of the stuff they do Jul 23 18:40:14 but I hate some things, like how they waited literally 4 weeks after my fourth interview to tell me I hadn't got the job Jul 23 18:40:19 after like 4 hours of phone calls Jul 23 18:40:20 D: Jul 23 18:40:35 So, I recently had the experience of a company that thinks the same way (ie, similar design, no platform specifics.) One place where it's clear that there's an issue, is the non-use of the rich Android notifications where it would make so much more sense [it was a port from iOS] Jul 23 18:41:09 Some of the examples I've seen are the using of custom action bar esque navigations(But not using the actual action bar) Jul 23 18:41:24 or using slide out type menus that are not the drawer menu when the drawer menu makes clear sense Jul 23 18:41:43 simply for the sake of "branding" or "consistency" Jul 23 18:41:54 Brian|CB: your arguing specifics about , you, your work, your ideas Jul 23 18:42:06 On the other hand, I think Flipboard looks great; so maybe it's not so black and white either. Jul 23 18:42:07 because everyone knows that your average user has an iPhone, iPod, iPad, 6 different types of android devices, and checks yoru apps on all of them Jul 23 18:42:16 and expects consistency Jul 23 18:44:17 Brian|CB: if you cant see how or why there would be choices to unify some aspect of an application that overides platform specifics thats your choice, I see many Jul 23 18:47:19 Brian|CB: there are millions of examples to look at btw, everything from consoles, to even intelliJ/AS :) Jul 23 18:47:51 Mavrik: Ok I'm coming from a web development background. The server knows, through cookies and sessions, which user's data it should get from the database and return to the client. I'm just really confused on how the AccountManager deals with which account it should use when say the user goes to an activity that displays their calendar with all their events (for example). Jul 23 18:47:53 older forms of marketing too (print) Jul 23 18:52:43 well, i'm glad that was settled Jul 23 18:52:57 once and for all Jul 23 18:53:30 which version of support library do I need if my lowest supported android version is API11 ? Jul 23 18:53:55 guys, question, people say it's better to use ContentValues and providers with Cursors for SQLite DBs instead of execSQL() because it can return nothing if something goes wrong Jul 23 18:54:06 how big is the chance that something will go wrong? Jul 23 18:54:17 is it REALLY worth all the trouble with all thsoe classes? Jul 23 18:58:12 is there a way to apply antialiasing to polygon/polylines in maps api v2? Jul 23 19:06:07 I am having problem launching an innerclass static activity from the same class. i have written the complete package name in manifest.xml but still i am getting the same error. please help Jul 23 19:08:12 Do I need to attach a clicklistener to an input widget to see any response from the widget? I'm stumped because I have a bare-bones view and activity (out of desperation) and none of the widgets are responding. Jul 23 19:09:55 pranav, Do you mean AndroidManifest.xml? Jul 23 19:10:24 fully_human: *sry, but yes Jul 23 19:11:19 Ah, no problem... :-) Sometimes you hope the solution is that simple... :-) Jul 23 19:12:15 fully_human: it was a typo in the question, not the program Jul 23 19:12:25 but yes.. sometimes problem are simple :) Jul 23 19:12:50 fully_human if you need it to respond to a click event, then yes. If its a InputText, and you want it to accept text, then no, you dont need to attach a click listener Jul 23 19:12:51 pranav, I just got on so I might have missed it...could you please paste the code to AndroidManifest.xml? Jul 23 19:12:59 Im not sure if I follow your q Jul 23 19:13:54 rottz, Even to see the visual change? Like a button press "going in?" Jul 23 19:14:17 no, a Button should do the press animation automatically Jul 23 19:14:37 even if you didnt attach a listener (you just wont be able to know when it was clicked if you dont attach) Jul 23 19:15:01 if its not being pressed, I would guess you have an invisible element on top of all your elements Jul 23 19:15:05 grabbing all clicls Jul 23 19:15:26 I smell overdraw Jul 23 19:16:13 fully_human: android:name=".OuterActivityClassName$InnerActivityClassName" worked for me in the AndroidManifest.xml :) Jul 23 19:16:34 I was using RelativeLayout...I might have messed up the formatting. Jul 23 19:16:40 pranav, Oh, so you got it? Jul 23 19:16:49 yup.. thnx Jul 23 19:17:12 * fully_human smacks his head on his desk. Jul 23 19:17:46 Thanks, rottz. I commented out another element and that seemed to do the trick. Wow...how many years have I been a programmer? Jul 23 19:18:27 np Jul 23 19:18:53 why would you define an activity as an inner class, I can't see anything good coming from that Jul 23 19:26:49 smali Q: would "add-int/lit8 v0, v0, 0x1" mean that you are adding '1' to a integer v0? (eg: i++) Jul 23 19:30:39 #smali Jul 23 19:31:59 SimonVT, ty Jul 23 19:32:40 http://stackoverflow.com/questions/17819393/android-studio-distances-shown-on-layout-preview-appear-larger-on-device Jul 23 19:32:43 Is there a list of the most popular google play categories? Jul 23 19:32:53 if anyone is able to help with this that would be great Jul 23 19:33:55 do height match_parent Jul 23 19:34:20 or keep wrap_content and set the layout_gravity to bottom Jul 23 19:34:28 or set the gravity of the container to bottom Jul 23 19:34:34 hmmm, soo many things to do :-) Jul 23 19:34:48 let me try Jul 23 19:35:30 Linkandzelda, you need to have the EditText to match the baseline of the buttons? In that case, you should use RelativeLayout instead of LinearLayouts. Jul 23 19:36:05 alexfu: considered that too, just following the book and they say this is easier for this type of layout Jul 23 19:37:00 Linkandzelda, You cant align views from one Layout to another. If you want them to be aligned properly, you should have them all under 1 layout. Jul 23 19:37:19 Linkandzelda: What does the entire xml file look like? You will want to wrap each Button and EditText that are supposed to be next to each other to be android:height="wrap_content" Jul 23 19:37:55 Linkandzelda, either user Relative, or use a LinearLayout for each logical row instead of columns. Jul 23 19:38:26 Linkandzelda: And then as alexfu said earlier set each of those wrappers gravity to be the bottom Jul 23 19:38:45 hmm, i'm still new to learning so give me some time to add that Jul 23 19:38:52 for now here is the current xml http://pastebin.com/gWXwBe0d Jul 23 19:39:27 hmm Jul 23 19:39:30 Linkandzelda, the EditText views should be with the Button views, not separated. Jul 23 19:39:40 is there a trick to getting an activity to launch from the adb shell? It can't seem to find any of mine Jul 23 19:39:59 tnzr, http://stackoverflow.com/questions/13380590/is-it-possible-to-start-activity-through-adb-shell Jul 23 19:41:07 yeah that's what I was reading :\ Jul 23 19:41:15 keeps saying it can't find my activities Jul 23 19:41:18 ok going to remake this as a relavelayout Jul 23 19:42:41 might as well play around with a GridLayout Jul 23 19:43:39 Linkandzelda, you can do it 2 ways. 1 big relative layout where all elements are under it. Or, a top level LinearLayout and multiple child LinearLayouts where each child LinearLayout is in a row fashion, rather than a column fashion as you had. Jul 23 19:44:53 oh I see Jul 23 19:44:55 i understand, wouldnt the multiple linearlayout be slower/less efficent? Jul 23 19:45:01 Hello. I am using eclipse ADT. When I insert an imageView using the Graphical Layout, I am not able to resize its width ou height using the mouse. Why? Jul 23 19:45:09 its am start -n com.package.blah/com.package.blah.ActivityName Jul 23 19:45:26 or not Jul 23 19:46:03 Linkandzelda: do it with a GridLayout Jul 23 19:46:20 Hey if I have a local gradle library project that I want to use with another app, what is the best way to do that? Jul 23 19:46:22 gridlayout never used that one Jul 23 19:47:07 GridLayout is for API 14+ Jul 23 19:47:21 does anyone code for less than 14 anymore? Jul 23 19:47:25 Unless you use the one in the support library Jul 23 19:47:29 Then it's 7+ Jul 23 19:47:52 nseidm1, some people still code for < 14. Jul 23 19:48:02 stop that immediately :-P Jul 23 19:48:49 hmm this is going to be a pain in the relativelayout to separate Jul 23 19:48:54 Linkandzelda: I added a response on stackoverflow of an example of what you could do. Ask me if you need more help implementing in Jul 23 19:49:03 Yes I don't like RelativeLayouts Jul 23 19:49:11 LinearLayouts do a lot more work for you Jul 23 19:49:13 Linkandzelda: yes it will be a big pain in the ass with RelativeLayouts Jul 23 19:49:37 im just annoyed that the preview doesnt match up lol Jul 23 19:49:51 thanks yiati will try this method Jul 23 19:50:34 Yeah Android Studio is still buggy right now, and the preview has never been reliable with any IDE yet Jul 23 19:56:44 Anyone know if it's possible to apply antialiasing to polylines/ploygon in Google Maps API v2? Jul 23 20:03:36 hargh, I still can't seem to launch activities from adb Jul 23 20:04:16 yiati: I set the nested linears to be horizontal, did you mean to keep it vertical? Jul 23 20:04:32 tnzr: punch your device Jul 23 20:04:51 Linkandzelda: yes I did :P Jul 23 20:04:57 I mean no Jul 23 20:04:59 lol Jul 23 20:04:59 lov: one step ahead of you holmes Jul 23 20:05:09 ok Jul 23 20:05:09 Linkandzelda: I will fix my typo Jul 23 20:09:40 ahh Jul 23 20:09:48 it was a problem with how we have our packages arranged Jul 23 20:10:52 yiati: it's done, seems to work except I need to now align each edit text to the right and have a set width (to simulate the old column layout distance) Jul 23 20:14:31 yiati: how can I do that when linearlayout wont let me use align to the right? Jul 23 20:15:14 What do you want to align to the right? Jul 23 20:15:21 the edittexts Jul 23 20:15:50 Linkandzelda, gravity attribute Jul 23 20:16:00 gravity set to which? Jul 23 20:16:12 http://stackoverflow.com/questions/5698305/right-align-edittext-android Jul 23 20:16:31 ah Jul 23 20:17:01 that didnt do anything Jul 23 20:17:41 Linkandzelda, how do you have your layout setup? Jul 23 20:18:52 alexfu: linear layout with rows of horizontal linear layouts inside Jul 23 20:19:11 http://pastebin.com/kCz017kb thanks to yiati I updated it to now be this Jul 23 20:19:22 gravity influence is based of the controlling axis of a layout, eg . linearLayout in horizontal only has Y as a free axis Jul 23 20:19:28 so that wont do what you want Jul 23 20:19:54 Linkandzelda, you wan the EditText on the right? Jul 23 20:20:03 i see Jul 23 20:20:05 and yes alexfu Jul 23 20:20:07 you would want a spacer view and use wieght OR put the editText inside a linearLayout that is VERTICAl Jul 23 20:20:13 VERTICAL* Jul 23 20:20:26 then right align would work Jul 23 20:20:34 so in the end ever damn element on this thing is inside its own layout Jul 23 20:20:44 cant be that complex to pull off Jul 23 20:20:59 well for that kind of thing, easier in relative layout Jul 23 20:21:00 or Jul 23 20:21:08 if fixed dimensions, even a frameLayout Jul 23 20:21:19 depends on how dynamic it is Jul 23 20:21:35 the buttons are different widths, but the texts are all the same width Jul 23 20:21:40 or rather , how dynamic it is expected to be Jul 23 20:22:12 Linkandzelda: so, buttonA never exceeds width to a degree as to intrude on editTextA ? Jul 23 20:23:07 yes Jul 23 20:23:37 You could even pull each row into it's own row_name.xml file, and re-use it. (http://developer.android.com/training/improving-layouts/reusing-layouts.html) Something to look at if you want to make it more dynamic for the future. Jul 23 20:23:44 though making sure the edittexts are all aligned to the same, and not aligned to the button Jul 23 20:23:57 hmm Jul 23 20:24:03 this is getting pretty complex now lol Jul 23 20:24:06 Not necessary atm now Jul 23 20:27:45 Linkandzelda: how do you want the editText's relationship to the button ? Jul 23 20:27:58 center aligned ? bottom edge ? top edge ? etc ? Jul 23 20:28:19 no relationship really, just the text inline with the base of the button text Jul 23 20:28:27 but totally aligned to the right Jul 23 20:28:47 so that hopefully it ends up looking like this http://cl.ly/image/1p2g3G0u3T2g Jul 23 20:29:23 here's an idea: an "ad-block" type of app, for blocking telemarketing phone numbers, with a community-driven database. Jul 23 20:29:26 http://pastebin.com/EVBeF3U8 Jul 23 20:29:38 done ;) Jul 23 20:30:04 relative layouts again hehe Jul 23 20:30:14 oops, cept change the fill_parent to match_parent Jul 23 20:30:22 oh ok Jul 23 20:31:25 http://pastebin.com/quxrvTe5 Jul 23 20:31:38 fine, frameLayout Jul 23 20:33:10 Aren't FrameLayouts not supposed to have more than one child? Jul 23 20:33:22 have as many as you want Jul 23 20:33:22 According to the FrameLayout API on Google "Generally, FrameLayout should be used to hold a single child view, because it can be difficult to organize child views in a way that's scalable to different screen sizes without the children overlapping each other." Jul 23 20:33:39 "organize child views in a way that's scalable " Jul 23 20:33:45 thats the prob Jul 23 20:33:57 hence why I asked his requirements Jul 23 20:34:06 scalable Jul 23 20:34:10 is? multiple res? Jul 23 20:34:23 well, different orientation, screen size etc Jul 23 20:34:27 any changes Jul 23 20:34:39 thats why I asked about overlapping Jul 23 20:35:15 hmm Jul 23 20:35:18 those sound important Jul 23 20:35:54 Okay next sentence in the FrameLayout API, "You can, however, add multiple children to a FrameLayout and control their position within the FrameLayout by assigning gravity to each child, using the android:layout_gravity attribute." Jul 23 20:36:31 StingRay_: So you would want to declare the layout_gravity of the Button as well I guess Jul 23 20:36:41 Then that would work Jul 23 20:36:44 not really Jul 23 20:36:50 if default position Jul 23 20:37:02 they have no relation to each other is the main point Jul 23 20:37:08 to take from the docs Jul 23 20:37:23 jeez, use GridLayout Jul 23 20:37:35 a single GridLayout Jul 23 20:37:41 ok last one before grid/list view http://pastebin.com/yphYrRas Jul 23 20:37:44 no nested hocus pocus Jul 23 20:37:46 using linearLayouts Jul 23 20:38:00 * StingRay_ is done :) Jul 23 20:38:38 oh cept in that last one, gravity right is irrelevant, you can remove it Jul 23 20:39:30 huh, why can't idea's xml editor resolve ?android:attr/listChoiceIndicatorMultiple Jul 23 20:39:34 layoutlib and on-device it's fine Jul 23 20:44:15 Linkandzelda sorted now ? the last is probably the best option really, but if your content is dynamic, and you may add/remove while developing, consider listView driven by an adapter or something Jul 23 20:46:19 thanks for veryones help, I went with a relative layout Jul 23 20:46:27 http://cl.ly/image/3N1E3u2X0311 the end result on preview Jul 23 20:46:32 about to test on the device Jul 23 20:47:39 Linkandzelda: from a design POV, I would consider making the buttons same dimensions Jul 23 20:48:23 yea i would like to do that, just not sure how Jul 23 20:49:20 well if using relative layouts, in the order move the button below the editText and add a layout rule to the button leftOf that points to the editText Jul 23 20:49:35 if using frame layout….erm….dont Jul 23 20:49:55 lol Jul 23 20:50:00 if using my linear layout example, delete the view but copy the width and weight to the button Jul 23 20:50:04 :) Jul 23 20:50:12 they are your options Jul 23 20:50:48 and set Gravity left ON the buttons, so the text stays where it is currently :) Jul 23 20:53:52 I simply set the width from wrap_content to a set value Jul 23 20:53:56 here is the result: http://cl.ly/image/2q1r3T1H1K2Y Jul 23 20:54:05 or that :) Jul 23 20:54:37 swank Jul 23 20:55:04 Linkandzelda: you seem to be missing a button Jul 23 20:55:08 "add xenomorph" Jul 23 20:55:40 hehe Jul 23 20:57:26 the book taught me to use 2 nested linear layouts for this type of layout and they are right, if it wasnt for the incorrect reporting of preview I wouldnt have needed to do this mess lol Jul 23 20:58:02 subjective Jul 23 20:58:13 there is no, this is the way…depends on requirements Jul 23 20:59:04 linearLayouts in your use should be fine Jul 23 20:59:23 huh, how lame, there's no api for telling what the currently connected bluetooth devices are? Jul 23 20:59:24 is there a way to preserve the state of a CheckBox within a ListView item without either using ViewHolder pattern or a List denoting the positions of checked items? Jul 23 21:09:53 pfn: I somewhat doubt that Jul 23 21:10:01 look at the settings app and see how they do it Jul 23 21:10:05 pfn: I'm pretty sure there is Jul 23 21:10:12 let me look at some of my cod's Jul 23 21:10:19 i've done it before i just forget when Jul 23 21:12:17 pfn: https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#BOND_BONDED Jul 23 21:12:39 those are paired devices Jul 23 21:12:42 not connected devices Jul 23 21:12:47 that's fair Jul 23 21:12:53 I still bet there's a way to do it Jul 23 21:13:01 well, api11 adds some new things Jul 23 21:13:10 and I can also monitor state from a broadcastreceiver Jul 23 21:13:12 which is ugly Jul 23 21:13:24 stupid shared prefs stringset isn't available until api11, too Jul 23 21:16:34 pfn: yeah i wonder why that isn't in the compat lib Jul 23 21:17:03 Hello Jul 23 21:17:14 I'd do back flips for a process safe shared prefs Jul 23 21:17:32 nseidm1: what? those exist already? Jul 23 21:17:44 nseidm1, wrap it in your own locking mechanism Jul 23 21:17:57 but I'm sooooooo damned lazy Jul 23 21:18:01 nseidm1: https://developer.android.com/reference/android/content/Context.html#MODE_MULTI_PROCESS ? Jul 23 21:18:22 hwrd|work: it's iffy though, not fully safe Jul 23 21:18:41 file locking or something comparable is needed Jul 23 21:19:22 nseidm1: ugh, that sucks Jul 23 21:19:36 May I disturb for a second, .. sorry for my noobishness. I'm trying to download http://dl.google.com/android/android-sdk_r22.0.4-linux.tgz ... however, i can not extract it, crc error Jul 23 21:20:28 gzip: stdin: invalid compressed data--crc error Jul 23 21:20:42 anyone aware of this? Jul 23 21:20:47 try again Jul 23 21:20:55 did already 4-5 times Jul 23 21:21:10 LaKing_: it works for me Jul 23 21:21:38 hmm, ... what tool did you use to extract it, Jul 23 21:21:41 ? Jul 23 21:21:44 gunzip Jul 23 21:21:52 what's the sha256 of the file you have? Jul 23 21:23:14 718aca1f9422527d910d5551c7a0c865c154f127ad0f05349f051fd1d76ab1b7 android-sdk_r22.0.4-linux.tgz Jul 23 21:23:42 different than what I have Jul 23 21:23:52 hmm Jul 23 21:23:58 3eec3c2accfb90d8344d29ed7e80fdf59ea0eecfed3535a7c78116ace5b522e7 Jul 23 21:25:28 strange Jul 23 21:25:39 I downloaded it now with wget Jul 23 21:25:48 and I got a third differenet checksum Jul 23 21:25:52 huh Jul 23 21:26:29 [x@localhost ~]$ wget http://dl.google.com/android/android-sdk_r22.0.4-linux.tgz --2013-07-23 23:24:46-- http://dl.google.com/android/android-sdk_r22.0.4-linux.tgz Resolving dl.google.com (dl.google.com)... 173.194.39.163, 173.194.39.164, 173.194.39.165, ... Connecting to dl.google.com (dl.google.com)|173.194.39.163|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 105640988 (101M) [application/x-tar] Savi Jul 23 21:26:43 [x@localhost ~]$ sha256sum android-sdk_r22.0.4-linux.tgz 493190402270163a48753e8ca9632d625bcc99b6a2fa2f26ac81821b7f97a99f android-sdk_r22.0.4-linux.tgz Jul 23 21:27:01 just tried wget, and got the same 3eec digest Jul 23 21:27:10 sounds like you have something weird going on, but I have no idea what :) Jul 23 21:27:11 LaKing_: I had thaat once (with all bigger files) and it was a bug in the modem firmware I used that caused corruption :) Jul 23 21:27:31 we have some optical internet here Jul 23 21:27:43 and a TP-link dual wan router Jul 23 21:27:59 it did cause some trouble in the past :/ Jul 23 21:29:19 ahha Jul 23 21:29:32 LaKing_: I've FTTB and the modem was from my ISP. After a while I called them and they confirmed a bug in the Thomson modems they distribute Jul 23 21:29:38 I downloaded it to a different computer, there it seems to have the 3eec hash Jul 23 21:30:05 LaKing_: wiggle the network cable maybe? :) Jul 23 21:30:11 reboot the machine? Jul 23 21:30:15 is it plugged in? :) Jul 23 21:32:08 okay so i downloaded it to a computer, and from there i downloaded it via ssh Jul 23 21:32:13 seems its okay now Jul 23 21:32:44 thank you for your help guys :) Jul 23 21:37:35 Hi Jul 23 21:37:49 I will be working with database. the problem is that I dunno anything about database. Jul 23 21:38:06 what databas "client" should I learn if Im working on android? Jul 23 21:42:59 peyam: sqlite3 Jul 23 21:43:30 are y ou sure? Jul 23 21:44:02 sqlite3 is what android has built in. If you would like to work in code rather than SQL, I would check out http://greendao-orm.com/ Jul 23 21:45:07 no it should be database Jul 23 21:45:14 otherwise it would be too much Jul 23 21:45:50 green dao uses sqlite3 under the covers Jul 23 21:47:30 thanks Jul 23 21:47:36 I hope it is easy to learn Jul 23 21:48:30 If you know java it is way easier than learning SQL Jul 23 22:00:37 jaynewstrom, I know android Jul 23 22:00:42 And basic Java Jul 23 22:01:09 I would definitely say give greendao a go! Jul 23 22:01:33 greendao? Jul 23 22:01:35 what is that Jul 23 22:04:23 hi there. I'm having the following problem with the ADT: http://dpaste.com/1315015/ Jul 23 22:06:29 well, what does eclipse log says? Jul 23 22:07:07 hang on, rottz Jul 23 22:07:51 @peyam http://greendao-orm.com/ Jul 23 22:10:06 parcelable is good too, and built into the framework Jul 23 22:10:23 nseidm1: how does Parcelable help with databases? Jul 23 22:11:48 just plop the object to disk Jul 23 22:12:27 nseidm1: um, yeah, definitely don't do that Jul 23 22:12:46 never ever store Parcel{,able}s Jul 23 22:13:11 the serialization format can, will, and does change. Jul 23 22:13:42 if you want to write objects to disk, use something designed for that, like protobufs Jul 23 22:25:13 so, a little bird summoned me Jul 23 22:25:39 protip: never, ever record a Parcel or Parcelable to persistent storage, or transmit it off device Jul 23 22:25:51 the wire format can and does change at any time Jul 23 22:26:08 and you will break in oh so convoluted ways if you rely on stored Parcel data to be readable some time later Jul 23 22:27:46 (we've done this to people in the past, btw, and will do it again with no compunction and no remorse. there's a reason the Parcel docs say "it is not appropriate to place any Parcel data in to persistent storage"...) Jul 23 22:31:19 woot, another app launched Jul 23 22:32:03 do you guys know of a template android project that allows a user to search youtube and select movie? (i need no other basic features and will just code what happens when they select it from a list) Jul 23 22:32:25 i want to get a project prototyped before i write the app myself Jul 23 22:32:34 Xabster: are you not describing the youtube api ? Jul 23 22:32:40 yes, but with a UI Jul 23 22:32:48 the simplest of features really Jul 23 22:32:58 not bad, contributed to 5 new app launches in the last 12 months Jul 23 22:33:00 i just don't want to commit to making it nice and stuff before i finish something else Jul 23 22:33:59 so do it rought Jul 23 22:34:02 rough Jul 23 22:34:35 waste of time if already made :) Jul 23 22:34:38 wanna save time Jul 23 22:47:23 input.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD); Jul 23 22:47:30 what does it do.. Jul 23 22:47:52 TYPE_TEXT_VARIATION_PERSON_NAME Jul 23 22:47:57 what does that do Jul 23 22:54:05 is that a serious question ? Jul 23 22:54:48 I think there's a subtle but important difference between "What does that do?" and "What's that supposed to be used for?" Jul 23 22:55:13 it constrains the textViews to modes and masks etc Jul 23 22:55:13 the answer to the second question is obviously "For text fields where you enter a name" Jul 23 22:55:29 "personFirstName, LastName" etc Jul 23 22:55:38 the first one is "Whatever the keyboard thinks is appropriate" Jul 23 22:56:34 unless I'm misunderstanding the question, which is possible. Jul 23 23:07:50 i found a nice little library you guys may find interesting. its the successor to H2's storage engine, but even though its beta it seems to be usable already Jul 23 23:08:04 its called mvstore: http://www.h2database.com/html/mvstore.html Jul 23 23:08:53 it also has r-tree indexing. with 1 dimension that makes it great for temporal range queries Jul 23 23:09:00 default is 2d Jul 23 23:09:39 blob support so you can stuff a protobuf in there Jul 23 23:10:34 Hmmm Jul 23 23:10:38 Interessant. Jul 23 23:10:43 one question Jul 23 23:10:47 Gesundheit Jul 23 23:10:50 (My naivety speaks here - but whats the point in it?) Jul 23 23:10:58 Oh and quote of the day btw? Jul 23 23:11:05 From an iOS developer at work: Jul 23 23:11:06 What if I want to store a Parcel in it? Jul 23 23:11:08 If I want a 6 random numbers after eachother. do I need to make a 10 random objects? Jul 23 23:11:09 (kidding) Jul 23 23:11:16 "I do everything in core data - sql won't be around for much longer) Jul 23 23:11:30 peyam - no, make one object and use it 6 times. Jul 23 23:11:37 yeah Jul 23 23:11:38 hahahaha Jul 23 23:11:39 perhaps in a for loop? Jul 23 23:11:45 thanks Jul 23 23:11:46 :D Jul 23 23:11:48 Isn't CoreData just an abstraction? Backed by - for example - sqlite? Jul 23 23:12:01 That was kind of my understanding of it Jul 23 23:12:09 It seems like an sqlite version of a flat file database Jul 23 23:12:21 It must be said though, that neither iOS developers know SQL Jul 23 23:12:59 The good thing about them though - is that collectively they say the stupidest things. Jul 23 23:13:05 Makes time go much quicker... Jul 23 23:15:29 Anthaas you asked whats the point of a all-java k/v store :P Jul 23 23:16:21 g00s: It was more what was the point in that library. Storing K/V pairs is fine. Serialisation (THERE IS NO Z!!!!) is fine. But is it necessary to have a library for it? Jul 23 23:17:24 Anthaas i guess so, mapdb is popular. so is leveldb Jul 23 23:17:36 this is similar to those, but all have differences Jul 23 23:17:38 ctate is there some play i can go (i hope, beside the code) that describes in detail, how memory is used between sqlite, its resultset, CursorWindow, etc ? Jul 23 23:17:53 Im such a wanker in that I like to do things like DBs and Serialisation myself... Jul 23 23:18:02 g00s: well, sqlite is open source…. :( Jul 23 23:18:20 no, there's no design doc that i'm aware of. Jul 23 23:18:39 ctate the problem isn't sqlite, its android's handling of the cursorwindow Jul 23 23:18:51 seems like, it reads the whole resultset into memory Jul 23 23:18:57 :O The gauntlet has been thrown! Jul 23 23:19:04 this has changed significantly in some versions of Android Jul 23 23:19:23 what do you think about Qt android development? Jul 23 23:19:28 nope Jul 23 23:19:47 Although, it has to be said that the Ubuntu UI (mobile AND desktop) is flipping gorgeous. Jul 23 23:19:52 Apple eat your heart out. Jul 23 23:19:59 g00s: cursor windows got changed to use shared mem in at least some circumstances, relatively recently Jul 23 23:20:00 The one thing people liked about you you no longer have. Jul 23 23:20:50 Is 4.3 going to have BLE support? Jul 23 23:21:04 supposedly Jul 23 23:21:04 I am working on a project with it at work (the iOS guys are fine using it already) Jul 23 23:21:14 I managed to get hold of a samsung BLE sdk Jul 23 23:21:17 tey've been fine with it for 2 years :) Jul 23 23:21:25 Yeah but we have intents. Jul 23 23:21:27 They don't. Jul 23 23:21:30 :P Jul 23 23:21:32 and Bundles ! Jul 23 23:21:35 YES! Jul 23 23:21:46 The concept of a bundle seemed absolutely foreign to them when I explained it. Jul 23 23:22:45 oh come on; it's just a heterogeneous key/value container :) Jul 23 23:22:51 ^ Jul 23 23:22:57 i hope its not like android 2.1 BT where HTC breaks all the things Jul 23 23:22:59 I reiterate my question: what is its point? :O Jul 23 23:23:04 ... Jul 23 23:23:21 is that a serious question? Jul 23 23:23:22 know any article or document to read about configuring qemu sdk VMs with VT, 2D, 3D enabled, launching those setups and about usb in-device debugging with ADT? Jul 23 23:23:33 I dont think so haha Im so giddy Jul 23 23:23:38 My last day of work tomorrow :D Jul 23 23:23:44 it exists because it is exceedingly useful to have a somewhat-generic key/value container that can be efficiently marshalled for IPC purposes Jul 23 23:23:50 Anthaas : we know why ! Jul 23 23:24:04 Ohhhh Jul 23 23:24:05 hahaha Jul 23 23:24:09 I was talking about the library Jul 23 23:24:13 Not Bundles! Jul 23 23:24:16 I love bundles! Jul 23 23:24:36 * g00s isn't sure what Anthaas is talking about now Jul 23 23:24:37 suggestions for a google API that allows storing and fetching (user-approved of course) public information? I'm specifically wondering if there's a good place to put a user's public key under some google-hosted service that can be easily fetched via an email address. [eg: it doesn't seem like the Contacts API does the trick.] Jul 23 23:24:44 * Anthaas rarely ever is either. Jul 23 23:25:09 ctate: I didn't realise you were talking about Bundles! I was talking about the library posted earlier. I love bundles and completely agree at how useful they are! Jul 23 23:25:29 ctate: However, the iOS guys couldn't grasp it at all. Jul 23 23:26:53 Has anybody seen iOS 7? (Im assuming most have by now) Jul 23 23:27:31 Besides throwing up in your mouth at the most revolting UI ever, did anyone else think that it looks so much like Windows Phone/Android? Jul 23 23:27:58 In terms of what they are trying to do, not actual UI. Jul 23 23:28:00 hi, is there java channel? I'm new for java. I have a question Jul 23 23:28:06 I dont mind answering. Jul 23 23:28:51 yusufaliboz: I don't mind answering - whats up? Jul 23 23:29:02 yusufaliboz good luck in #java Jul 23 23:29:10 g00s: Also, do we know why? Jul 23 23:29:14 put on your armor Jul 23 23:29:28 Anthaas wat? why? huh? Jul 23 23:29:31 yusufaliboz: Yeah, #java is usually very unfriendly, but like I said, I dont mind asking. Jul 23 23:29:35 answering* Jul 23 23:29:35 Anthaas: please wait, I need to paste the code Jul 23 23:29:40 Ok Jul 23 23:29:46 g00s: You said "we know why!" Jul 23 23:29:57 oh, just joking (about your last day) Jul 23 23:30:01 Oh hahaha Jul 23 23:30:04 Contracts out. Jul 23 23:30:17 Thankfully... Jul 23 23:31:09 Anthaas: http://ideone.com/Uec9K6 Jul 23 23:31:31 Ok, what is your problem? Jul 23 23:31:36 netbeans says there is a problem for loop Jul 23 23:31:43 Ok Jul 23 23:31:56 about ios7; there is still time for them to make changes. everybody with ios7 betas is figuring out how to adjust. yeah, they get these things called betas so that when its released you can be ready right away, which is important because 3 months after that 80% of the users will have switched to the new version Jul 23 23:32:00 1) In Java, it is standard practise to name classes with a capital letter at the start and the beginning of every new word Jul 23 23:32:02 know where to find information about configuring andoid VMs, and about usb in-device debugging with ADT? Jul 23 23:32:32 Also Jul 23 23:32:37 Dont use commas in the for loop, use ; Jul 23 23:32:44 Each of the three parts is a statement Jul 23 23:33:15 for (instantiation; condition; end statement) Jul 23 23:33:25 there is still errors, not a statement Jul 23 23:33:35 e.g for(int i = 0; i > 10; i++) Jul 23 23:33:55 initialise "count" Jul 23 23:33:59 for example: int count = 0; Jul 23 23:34:12 is this not same? Jul 23 23:34:56 for(start; start start is not an expression Jul 23 23:35:05 ^ Jul 23 23:35:15 start=0 is an expression :) Jul 23 23:35:46 I think yusufaliboz really wants for (; start ^ Jul 23 23:35:57 or Jul 23 23:36:06 for (int i = start; start < end; start++) Jul 23 23:36:11 less efficient, but easier to grasp Jul 23 23:36:19 kbs: good catch (I didn't look at the pastebin first) Jul 23 23:36:25 But, I want to define start when I call the count function Jul 23 23:36:27 Anthaas: not to mention with a tiny bug :-) Jul 23 23:36:41 start is already defined as a parameter Jul 23 23:36:51 oops Jul 23 23:36:55 You can't redefine in, afaik Jul 23 23:36:56 replace start with i within that for lol Jul 23 23:37:05 for(;start yeah, Im sooo tired I lazily overlooked that Jul 23 23:37:10 should work yes Jul 23 23:37:13 yusufaliboz: that will work, yes Jul 23 23:37:23 interesting using.. :D Jul 23 23:37:26 Anthaas: actually, you might have gotten away with your version too, I think :-) too tired myself as well. Jul 23 23:37:46 because your variable is already initialised in the parameter, you don't need to do so within the for statement Jul 23 23:38:21 kbs: nope because i would never have been incremented :P Jul 23 23:38:42 kbs: should have been i = start; i < end; i++ if we were to do it that way Jul 23 23:39:42 Anthaas: although, if he'd not used i inside the loop, it might have worked your original way :) dunno, too tired to think straight -- I'll believe anything anyone says right now. Jul 23 23:40:03 Anthaas: my main funtion is static then netbeans says, you can't call non-static function Jul 23 23:40:04 Im the new royal baby. Jul 23 23:40:10 you cannot Jul 23 23:40:17 The basic beginner thing to do Jul 23 23:40:27 Is use your main method to call the constructor of another class Jul 23 23:40:31 and from there do things you need to do Jul 23 23:40:32 how can i use that function inside of main Jul 23 23:40:53 Are you familiar with classes yet? Jul 23 23:41:09 I know php as well.. Jul 23 23:41:15 Cool. Jul 23 23:41:19 But java is different.. Jul 23 23:41:23 there is a java channel, btw; it's ##java Jul 23 23:41:30 Java is much more OOP related Jul 23 23:41:36 ctate: would you prefer I took this to PM? Jul 23 23:41:38 you should find some decent beginner tutorials Jul 23 23:41:45 Anthaas: yes Jul 23 23:41:50 "please..." Jul 23 23:41:52 Ok np Jul 23 23:42:03 or, ideally, to an actual java-specific channel :) Jul 23 23:42:10 Yeah, but those guys are douches lol Jul 23 23:42:15 just dont' mention android Jul 23 23:42:19 >:) Jul 23 23:42:23 This is probably the most friendly IRC channel there is. Jul 23 23:42:33 Ok Ill round it up short and sweet. Jul 23 23:43:00 yusufaliboz: Look up classes in Java, read some tutorials, create a new object in the main method, call its constructor, and in the constructor of that class do the things you need. Jul 23 23:43:02 done :D Jul 23 23:43:29 ok thans, I'm going to ##java Jul 23 23:43:37 May God have mercy on your soul. Jul 23 23:44:03 (There are other Gods available...)_ Jul 23 23:44:58 Although no harm done when there are 0 other questions being asked, surely? Jul 23 23:46:27 I've come to believe (probably inaccurately) that android has taken on the de-facto role as the custodian of java. I hope to heck that's true, given the general dbag'ness of oracle. Jul 23 23:47:14 I was honestly gutted when I heard that Oracle outbid Google for Java. Jul 23 23:47:30 I would love to see it bought out and then revitalised. Jul 23 23:50:13 wonder if android will entice people towards Go; might reduce their exposure to Oracle's lawyers. I'd sure like to have been a fly on the wall when the android folks realized Oracle acquired sun. Jul 23 23:51:45 I hope it doesn't, and that Android stays true to Java. Jul 23 23:52:03 The reason, Android is open source, which is a beautiful thing, but it also is a place that will entice beginners into programming. Jul 23 23:52:21 Java is a simple language, and the idea of being able to develop something cool for your mobile phone is something that can and will attract everyone! Jul 23 23:52:30 I'm getting a "no such file or directory" error from the following code: String uri = "android.resource://" + getPackageName() + "/raw/" + name;mVideoView.setVideoURI(Uri.parse(uri)); Jul 23 23:54:01 The video file I'm trying to read is definitely in res/raw Jul 23 23:54:31 MarkT-: wth is "android.resource://"? I'm not saying it's not a thing, but I've never encountered it, at least Jul 23 23:54:51 I'm a little confused about installing packages via adb signed with non-debug keys Jul 23 23:55:17 should adb install pkg.apk give Failure [INSTALL_FAILED_ALREADY_EXISTS] if the sigs are the same? Jul 23 23:55:29 wabz: adb install -r pkg.apk Jul 23 23:55:54 yeah that worked, but unsure whether that doesn't care about keys matching or not Jul 23 23:55:59 Is he trying to use getResources() ? Jul 23 23:56:08 wabz: yes, keys would have to match for that to work Jul 23 23:56:15 to access a resource that he has saved into the project? Jul 23 23:56:33 JesusFreke: ok cool thanks - jarsigner does show that they have the same certs Jul 23 23:57:04 What does the -r do? JesusFreke? Jul 23 23:57:33 "('-r' means reinstall the app, keeping its data)" Jul 23 23:57:35 Anthaas: per adb help - "'-r' means reinstall the app, keeping its data" :) Jul 23 23:57:42 Ooooh Jul 23 23:57:49 If there's something else I should be using, I'd be appreciative to know what... Jul 23 23:57:55 Where as without it it will fail because the app (same package) already exists. Jul 23 23:57:56 Cool. Jul 23 23:58:24 MarkT-: Is there some reason you tried to use android.resource://? Did you see it somewhere else, or just randomly tried that? Jul 23 23:58:44 I refuse to sleep - there is a COLLOSAL moth in my room somewhere and I dont know where it went. Jul 23 23:58:59 MarkT-: I'm actually curious if it is "A Thing" or not Jul 23 23:59:07 Several stackoverflow examples... Jul 23 23:59:24 http://stackoverflow.com/questions/7976141/get-uri-of-mp3-file-stored-in-res-raw-folder-in-android Jul 23 23:59:28 (example) Jul 23 23:59:28 MarkT-: Is this file something you have saved into your project into a raw folder in the res folder? Jul 23 23:59:51 JesusFreke: I believe that's a magic scheme understood by the ContentResolver -> https://developer.android.com/reference/android/content/ContentResolver.html#SCHEME_ANDROID_RESOURCE Jul 23 23:59:52 Yes, anthaas. And it's in res/raw in the apk Jul 24 00:00:04 kbs: bingo, thanks :) Jul 24 00:00:26 MarkT-: it looks like you need to use the resource id, not the resource name Jul 24 00:00:43 hhmmmm.... I don't have the id. I just have the name. Jul 24 00:00:53 i.e. R.raw.name Jul 24 00:00:58 openAssetFileDescriptor talks about using SCHEME_ANDROID_RESOURCE. https://developer.android.com/reference/android/content/ContentResolver.html#openAssetFileDescriptor(android.net.Uri, java.lang.String) Jul 24 00:00:59 which has the id as an int Jul 24 00:01:15 unless I manually compare the name with all the ones that I've put in that directory and then use the corresponding id. Jul 24 00:01:26 you can use either the integer id or a type-based path Jul 24 00:01:30 see the example Uris Jul 24 00:01:32 ^ Jul 24 00:01:58 I am a noob here, does ctate work on the Android team or is he is a savant or something? Jul 24 00:02:07 he works on Android, yes. Jul 24 00:02:20 Hahhaa, sorry - didn't mean to refer to you in third person - rude of me. Jul 24 00:02:27 we forgive you. Jul 24 00:02:30 I forgot to click on your name at the start Jul 24 00:02:35 Hahaha! Jul 24 00:03:20 Would the collective mind me asking specifically which part of Android they work on? Jul 24 00:04:00 ctate: the trick will then be passing that asset to a VideoView, which seems to be his ultimate goal Jul 24 00:04:05 Hmmm... am I going to have to compare the name with each file in in that directory to get the appropriate R.raw.id? Jul 24 00:04:14 which seems to accept either a path or a Uri Jul 24 00:05:12 The one gotcha seems to be that it doesn't want the file extension. Isi t possible that your "name" variable has the suffix present? Jul 24 00:06:55 Ok, it looks like using a content resolver Uri *should* work Jul 24 00:07:05 If I'm reading through the source right :) Jul 24 00:07:55 kbs: Yes... the name variable has the file extension. Jul 24 00:09:29 public boolean isUserAGoat() Jul 24 00:09:30 Used to determine whether the user making this call is subject to teleportations. Jul 24 00:09:34 ....dafuq? Jul 24 00:10:41 public final void checkAccess () Jul 24 00:10:43 Does nothing. Jul 24 00:10:47 .....eh? Jul 24 00:11:17 That is my new favourite function. Jul 24 00:11:27 I will call it everywhere so people try and work out what it does. Jul 24 00:14:37 Someone definitely got some explainin' to do! Jul 24 00:15:34 Anthaas: Did not know about goats. Jul 24 00:15:39 I knew about isUserAMonkey Jul 24 00:16:04 why does AbsListView.getCheckedItemPositions() always seem to be out of sync? Jul 24 00:16:16 it takes a while before it is up-to-date after receiving OnItemClick Jul 24 00:17:28 I know isUserAMonkey, but I believe it actually has a function Jul 24 00:17:38 Doesn't it work with the monkey tool which is used to test apps? Jul 24 00:17:42 the UI etc Jul 24 00:17:52 I just found "LIKE_TRANSACTION" hahahahah Jul 24 00:17:58 IBinder protocol transaction code: tell an app asynchronously that the caller likes it. The app is responsible for incrementing and maintaining its own like counter, and may display this value to the user to indicate the quality of the app. This is an optional command that applications do not need to handle, so the default implementation is to do nothing. There is no response returned and nothing Jul 24 00:18:14 about the system will be functionally affected by it, but it will improve the app's self-esteem. Jul 24 00:18:47 Log.wtf is a good one too. ("What a Terrible Failure") Jul 24 00:19:27 http://folklore.org/StoryView.py?project=Macintosh&story=Monkey_Lives.txt&showcomments=1 for the genesis of the monkey meme... Jul 24 00:19:29 Brilliant. Jul 24 00:20:07 GRAVITY_DEATH_STAR_I Jul 24 00:20:45 Yeah seen that one hahaha, its brilliant. Jul 24 00:20:58 also note that PalmOS had a similar testing tool called gremlins Jul 24 00:21:20 Anthaas: http://developer.android.com/reference/android/os/IBinder.html#TWEET_TRANSACTION Jul 24 00:21:24 Not sure if you saw that one Jul 24 00:22:19 Oh yeah! Forgot to mention that one. As an Englishman I can confirm that this is how I tweet. Jul 24 00:23:12 hmm, maybe it's because of this copy-paste code Jul 24 00:27:02 Cya all! Jul 24 00:30:06 and it's not... Jul 24 00:38:03 re isUserAGoat(), http://bit.ly/12hckA4 Jul 24 00:38:31 bah he's gone Jul 24 00:39:32 will android be primarily Java for the forseable future ? Jul 24 00:39:51 as in app dev language/tools/env. Jul 24 00:40:30 ok, this is so weird; I'm doing listview.getCheckedItemPositions(); and getCheckedItemCount(); the return is 1 and a sparsebooleanarray, however, when I iterate the array, no items are marked as checked Jul 24 00:43:37 hmm, looks like a bug Jul 24 00:43:42 on my part Jul 24 00:43:50 I'm using len = sparsearray.size() that's probably wrong? Jul 24 00:45:32 er, s/?// Jul 24 00:53:50 i got this wierd 200ms delay before an animation starts when calling myelement.startAnimation(myAnim); -- I even added myAnim.setStartTime(Animation.START_ON_FIRST_FRAME); with no luck. What else could be causing this delay? Jul 24 00:54:54 processing load ? the animation itself ? Jul 24 00:58:46 the animation itself. I put a listener in so i can log when the animation starts. and I add a log directly after the startAnimation call Jul 24 00:58:54 the delay is about 190 ms exactly Jul 24 01:04:36 profile it and see what's running Jul 24 01:14:39 whats the best way to get pre draw dimensions of a variable h/w view ? currently using ViewTreeObserver/onGlobalLayout but that seems to be post draw Jul 24 01:15:10 but not onDraw :) Jul 24 01:16:30 onLayout of the view I guess ? Jul 24 01:22:24 StingRay_ is there anything like kuler with more than 5 colors ? Jul 24 01:22:49 yes lots Jul 24 01:22:56 mac apps too :) Jul 24 01:23:04 * StingRay_ looks what he uses Jul 24 01:23:20 ColorSchemer Studio Jul 24 01:24:30 cool Jul 24 01:24:32 thx Jul 24 01:24:51 StingRay_: use a layout listener Jul 24 01:25:02 hi all Jul 24 01:25:08 which sounds like what you're doing :) Jul 24 01:25:28 ctate: not good enough Jul 24 01:25:33 why not? Jul 24 01:25:42 you can't know the dimensions until after layout Jul 24 01:25:50 on slower devices, there is a 1-2 frame draw before corrected positions Jul 24 01:25:52 at which point this calls you to say hey, you can know the dimensions now :) Jul 24 01:25:59 ORLY Jul 24 01:26:20 yeah, looks like a glitch in the matrix :) Jul 24 01:26:41 reminds me of the black cat Jul 24 01:27:22 there is no spork Jul 24 01:27:22 ctate: it gets triggered when I make the view visible, but after updating coords it's already drawn on something like a galaxy nexus Jul 24 01:27:33 not so on something like a N7 Jul 24 01:27:42 what OS rev? Jul 24 01:27:48 4.2.2 Jul 24 01:28:52 that's on the GN? Jul 24 01:29:03 both Jul 24 01:29:35 are you making it visible during a running animation or something? Jul 24 01:29:44 before Jul 24 01:29:47 because this is kind of crazytown Jul 24 01:29:51 :) Jul 24 01:29:51 vis > measure > anim Jul 24 01:30:13 you're kicking off the animation from within measurement? Jul 24 01:30:21 god no Jul 24 01:30:27 after the listener detaches Jul 24 01:30:31 i mean, what's the exact sequence you're executing here Jul 24 01:30:44 "the listener" Jul 24 01:30:49 the layout listener? Jul 24 01:31:12 yes Jul 24 01:31:19 sequence is as follow Jul 24 01:31:22 so what's it inappropriately drawing? the old state? Jul 24 01:31:57 no Jul 24 01:32:16 btw i have to run in like zero minutes :( Jul 24 01:32:27 the new state drawn at 0,0 for a frame or two Jul 24 01:32:36 "the new state" Jul 24 01:32:45 with the view visible but not yet animated? Jul 24 01:32:47 it's a re-used view Jul 24 01:32:52 correct Jul 24 01:33:08 animation bounces it in from nothing, it gets drawn before that Jul 24 01:33:09 is that the location it measured/laid out at? Jul 24 01:33:15 between me measuring and starting anim Jul 24 01:33:39 yes to previous Jul 24 01:33:53 measures at 0,0 to get dimensions Jul 24 01:34:29 k Jul 24 01:34:30 so sequence in a nutshell Jul 24 01:34:36 attach listener Jul 24 01:34:57 so what's wrong is … what exactly? you get too many frames of the starting position before the amination kicks in? Jul 24 01:35:14 inside listener, measure, detach listener, work out position, re-apply layout params, play anim Jul 24 01:35:32 wait, "re-apply layout params"? Jul 24 01:35:35 so, you do another layout? Jul 24 01:35:43 yes Jul 24 01:35:48 with no listener attached Jul 24 01:35:55 as it's already detached Jul 24 01:35:59 and you're surprised that it takes time? :) Jul 24 01:36:49 I actually thought that would be no time at all tbh :) Jul 24 01:36:55 checking Jul 24 01:37:47 layout takes time Jul 24 01:38:17 so quickest way to change x,y of origin of that view ? Jul 24 01:38:32 cause I'm missing something big here Jul 24 01:39:17 this is where i should shut up and go home because i'm not really a UI guy :) Jul 24 01:39:44 why not place it where you want it before making it visible? Jul 24 01:39:56 cause I dont know the size Jul 24 01:40:05 also i'm still unclear on what the wrong behavior you're seeing is Jul 24 01:40:24 it's drawing in the wrong *place* for a couple of frames? Jul 24 01:40:32 yes Jul 24 01:40:41 aha Jul 24 01:40:59 can you measure it explicitly yourself, place it, make it visible, and go from there? Jul 24 01:41:30 not really, well the correct answer is yes, with lots of sh*t Jul 24 01:41:33 ha ha ha Jul 24 01:41:39 so not really wanting to do that Jul 24 01:41:54 (shouldn't be *that* mucky to just call onMeasure yourself once, should it?) Jul 24 01:41:57 anyway, i do have to scoot, sorry Jul 24 01:41:58 GL Jul 24 01:42:04 cause the size, position is also influenced by the decor of background etc Jul 24 01:42:11 cheers and thanks :) Jul 24 01:45:53 Anyone used Sensor.TYPE_ROTATION_VECTOR Jul 24 01:57:45 Anyone used Sensor.TYPE_ROTATION_VECTOR **** ENDING LOGGING AT Wed Jul 24 02:59:59 2013