**** BEGIN LOGGING AT Sat Oct 27 03:00:02 2012 Oct 27 03:20:53 mrenouf: going to do any mobile web dev ? Oct 27 03:26:28 meh that was a slow episode Oct 27 03:27:25 g00s, not big fan of it. really, its like living in the past. all kinds of crazy hacks Oct 27 03:27:50 I mean, people whine about android fragmentation? geez. Oct 27 03:28:09 but I mean need to, we'll se Oct 27 03:28:11 *see Oct 27 03:28:17 *may need to Oct 27 03:28:25 yeah, all those different android web browsers :) Oct 27 03:29:13 huh? No, I mean web dev in general. so yeah what you end up doing is building three very different web apps. Desktop, Tablet, Phone Oct 27 03:29:37 oh, yeah - sounds like the 'responsive web design' thing Oct 27 03:29:54 And then it's like what's the point? did you really save any effort? And the result is just slow and underpowered compared to a native solution Oct 27 03:30:25 Desktop web, iPhone/iPad, Android Oct 27 03:31:12 And you do minimal effort to make the web apps at least usable on small devices for people with Windows phones or whatever Oct 27 03:35:30 peachpit is offering 35% off one, 45% off two ebooks for halloween. i thought mobile usability was good so far Oct 27 04:13:24 howdy Oct 27 04:16:04 hmm mrenouf just reading your thoughts about mobile web Oct 27 04:18:48 well it's probably not well rounded. it's from the point of view of happy android user who hates it when someone says, yeah we didnt bother to do an Android app, we have this really nice mobile web app instead. Oct 27 04:19:08 hah, yeah Oct 27 04:19:13 It's almost always something I won't use because I barely use the browser Oct 27 04:19:18 just depends on the app and the brand i suppose Oct 27 04:19:35 They cant even create a launcher icon Oct 27 04:20:07 if i was gonna go all web-app, i would at least take the effort to shoehorn it into phonegap or somethin Oct 27 04:20:17 true. some things are silly. like news apps that are like... hey, try our app for FooNews.com. No, im not installing an app just to read articles from *your* website Oct 27 04:20:35 the problem with 'mobile webapps' is that there are differences in the behavior of various webkit versions. Oct 27 04:20:41 a whole new vector for bugs. Oct 27 04:21:01 yeah it goes back to browser compatibility at that point Oct 27 04:21:09 Can phonegap target multiple platforms? Oct 27 04:21:12 it's not at all fun to debug phonegap Oct 27 04:21:15 it's a pita Oct 27 04:21:25 like iOS, etc? Oct 27 04:21:28 yeah thats more or less the point, cross platform Oct 27 04:21:34 aah ok. Oct 27 04:21:52 but then it's all "runs all all platforms, looks native on none of them" Oct 27 04:21:54 i think they support 7 currently.. android, ios, blackberry, windowsp hone, brew, hmm Oct 27 04:21:59 It's the Swing dilemma. Oct 27 04:22:02 yeah Oct 27 04:22:09 but, well. there are a couple of points to that Oct 27 04:22:16 too bad only two of the platforms even matter Oct 27 04:22:21 1. how many native android apps look like native android apps? i mean, heh Oct 27 04:22:22 lol Oct 27 04:22:39 Um. Most of the good ones that I bother using. Oct 27 04:22:47 and 2. there are webapp ui libraries that will (i think) mimic native look n feel if it can detect the device Oct 27 04:22:55 it's more than just look and feel. use a few obile webapps that have 'listviews' in them. no implementation is as solid as a nice native listview. Oct 27 04:23:20 sure, they mimic alright. and then they're slow as balls on any device that doesn't have 8 cpus. Oct 27 04:23:28 yes, try flinging a list in a webapp and getting smooth results Oct 27 04:23:34 i mean other than acton bar/menu, a lot of android apps could look the exact same on any platform.. Oct 27 04:23:47 hey i'm not here to evangalize webapps Oct 27 04:23:52 i'm just playing a little devils advocate Oct 27 04:23:59 look != feel Oct 27 04:24:10 i think they are the right solution for some circumstances Oct 27 04:24:16 I've seen very pretty apps built with Adobe Air. They're still crap. Oct 27 04:24:52 one of the principles of NUIs is content is the interface; the more you go in that direction, the less chrome you have and yeah - applying universal design principles everything starts to look the same Oct 27 04:24:55 i could care less about look as long as it isn't painful to look at, with many apps, and operates well Oct 27 04:25:20 papajohn's mobile webapp for ordering pizza is breezy, and i don't want a papajohns native app on my phone Oct 27 04:25:45 yes, but when I run an "app" and its just a wrapped webapp, and it's got that awful iOS pattern of a back button up on the top left. eww. Oct 27 04:25:53 uninstalllllll Oct 27 04:25:53 of course each platform has standards for typography, spacing, touch target size, etc Oct 27 04:26:23 speakingcode, yeah it's decent. Oct 27 04:26:49 it just depends what it is and all. a documenting editing webapp on my phone would probably be horrible Oct 27 04:26:57 hmm, anyone know why Chrome (desktop) wants me to sign in to install /certain/ extensions ? Oct 27 04:27:10 like Readium, no idea why Oct 27 04:27:29 maybe they depend on it for syncing or something? don't know much anything about chrome extension development Oct 27 04:27:42 yeah, me neither Oct 27 04:28:15 a mobile webapp is a good alternative to people slamming in to your website that's designed for laptops and desktops in their mobile browser. Oct 27 04:28:15 i rarely use browser extensions so i've not really cared about how they work Oct 27 04:28:21 but it's not a good alternative to a native app. Oct 27 04:28:26 bought all these snacks and caffeinated beverages for a hackathon tomorrow, but there's not gonna be much left by then :-( Oct 27 04:28:41 where's the hackathon mrenouf Oct 27 04:29:00 it's just a small thing with some friends. combo old school lan party + hackathon Oct 27 04:29:06 ah ok Oct 27 04:29:12 not a contest/conference thing Oct 27 04:29:30 nothing like that. I dont really like that environment, it's gotten too crazy Oct 27 04:29:59 guess it depends on the place and participants. Oct 27 04:30:26 used to have this group in my city that did some epic lan parties back in the day, reached ~250 attendance Oct 27 04:30:35 the people that win those things are those who can make an app idea look like it actually works, and cut every corner possible. Oct 27 04:30:43 yeah Oct 27 04:31:02 I've seen just layouts win some prizes (as in the app actually didn't do anything yet) Oct 27 04:31:16 sad Oct 27 04:31:19 cause they sold it on business plan alone and really talked it up. Oct 27 04:31:26 that's not hacking :( Oct 27 04:31:31 in all fairness they have good ideas and given a week or two would have a solid start Oct 27 04:31:34 that's design. they should have a designathon instead. Oct 27 04:31:36 thats what I mean Oct 27 04:31:37 eyah i did one a few months back, a startup hackathon, the three winners wrote 0 code... just worked on presentation and businness model, was kinda wtf Oct 27 04:31:53 yep, so less pressure more technical Oct 27 04:32:10 my style Oct 27 04:32:12 speakingcode: :( Oct 27 04:32:20 i never want to go to one of these hackathons now Oct 27 04:32:27 eh they aren't all like that Oct 27 04:32:43 I'll go if I know it's actually going to be about coding. Design is fine too, but your app should at least do something. Oct 27 04:32:49 they're not all like that. but really, if you're expecting to complete an app start to finish in 24hrs you're not going to amaze anyone. Oct 27 04:32:55 it was just stupid judges, old farts all business no tech, and it _was_ a "startup" hackathon afterall... still a bit disappointing but lots of fun, good networking, etc Oct 27 04:33:18 oh, and because of the time crunch almost nobody wants to write actual android apps. they toss some fancy CSS into phonegap and call it done. Oct 27 04:33:37 and again, thats perfectly valid for prototyping. just not what I like doing. Oct 27 04:33:38 i did one that was a charity hackathon not long ago, no contest just had 1 weekend to get shit up and working for vrious nonprofits & charities - that one was epic Oct 27 04:33:41 mrenouf: I disaree, you can complete an app start to finish and have it nice and smooth in 24 hours. There's just one catch: You have to have a shit ton of reusable code perfect for your idea ready to go. Oct 27 04:33:53 You have to have all the ideas figured out before you start, too Oct 27 04:33:54 tdignan, yes! Oct 27 04:33:59 right. yep. Oct 27 04:34:09 yeah if yo have the idea and code like ninja you can do it Oct 27 04:34:33 gotta know the libs and API's... usually it's mashups and webservice consumers that take the prize at these things for that very reason Oct 27 04:34:34 but ones I was at I could not convince anyone else to do it that way Oct 27 04:34:43 yep Oct 27 04:34:54 but been to a few that were mobile app-specific. Oct 27 04:35:24 i've seen some good stuff come out of them... one guy in here a few weeks back was at one in Amsterdam n made some cannabis-shop finder Oct 27 04:35:34 logically. Oct 27 04:35:57 i think people cheat a lot too Oct 27 04:35:59 stereotypes i mean. they exist for a reason. Oct 27 04:36:04 spend weeks getting code base ready Oct 27 04:36:12 then just glue it up w/ designer at the event Oct 27 04:37:20 I dont enjoy trying to function in that environment anymore, but I do like to go and play consultant for several teams and be a general resource for android stuff. Oct 27 04:37:38 so thats why I go occasionally. Oct 27 04:37:57 AT&T has been doing a bunch of stuff around here, and I think theres one this weekend, but no going. Oct 27 04:38:25 nope, sorry it's 11/19 - http://mobileappbos.eventbrite.com/ Oct 27 04:38:50 a couple coming up in my city Oct 27 04:38:58 one microsoft is sponsoring and i think it's win8 focused Oct 27 04:39:10 mrenouf: bos? that's where I am. Oct 27 04:39:28 lol, was gonna say, it tends to also be a heavy "Use our platform/api/framework" pitch session with a lot of marketing. Oct 27 04:39:35 another is at this new conference for startups i'm pretty excited about Oct 27 04:39:52 tdignan, greetz. Attend BostonAndroid or similar meetups? Oct 27 04:39:59 I went to one boston android Oct 27 04:40:04 did it start back up? Oct 27 04:40:13 a little Oct 27 04:40:20 mrenouf yup but i'm startign a big win8 project at work so it will be good exp and some good prizes Oct 27 04:40:34 I could probably go to that hackathon. I like the ticket price. Oct 27 04:40:37 changing the name of the style from "AppTheme" to something else changes the theme of the entire app to something else! Just renaming and updating it in the manifest I mean. Really weird. Oct 27 04:40:45 I helped start the Boston GTUG, which is now GDG Boston (google developer groups). And they've been copromoting with Boston Android a bit. Oct 27 04:40:53 and good networking.. i think the networking (& sometimes the food) are the best value adds at these things Oct 27 04:41:15 tdignan, hey, free food at the least. Oct 27 04:41:41 napster probably because the name in the manifest is a reference IIRC Oct 27 04:41:51 The ones put on by Boston.com at Startup Challenge were swank. Breakfast lunch and dinner, free sodas, snacks all day. Oct 27 04:42:00 you would need to change the name in the style resoruce where it's actually defined as well Oct 27 04:42:06 oi Oct 27 04:42:45 mrenouf: doh -- that hackathon was last year Oct 27 04:43:00 at one 5hr energy showed up with cases of that stuff. it was -- dangerous. Oct 27 04:43:21 yeah there was a 48 hour luanch (not a hackathon) a couple weeks ago here and they had beer Oct 27 04:43:21 I think I tried a 5hr energy once. I'd never again. Tastes dispicable. Oct 27 04:43:31 i found out it had beer and went just for that reason Oct 27 04:43:33 it is truly awful, but works. Oct 27 04:43:40 they work, but taste like ass Oct 27 04:43:43 I dont get it Oct 27 04:43:56 I am sure they could have made it taste like nothing Oct 27 04:43:59 they work too good... shit doesn't help me focues just makes me a zombie for the night Oct 27 04:44:09 Once I had caffeine pills in 8th grade and threw up. I try to stick to coffee and less aggressive forms of consumption. Oct 27 04:44:29 * mrenouf sips a Bawls Oct 27 04:44:35 it works best if you have it gradually Oct 27 04:44:37 screw that i'm not into sleeplesness anymore Oct 27 04:44:48 the thing is, none of this stuff really helps me anymore, but I still crave it. total sham. Oct 27 04:45:00 that's called physical dependency mrenouf Oct 27 04:45:00 it's not about sleepless for me, it's about night time. I don't mind sleeping during the day at all. Oct 27 04:45:07 i hate daytime Oct 27 04:45:09 nighttime rules Oct 27 04:45:19 i'm nocturnal buti don't need caffience to be that way Oct 27 04:45:22 speakingcode: But actually it refers to the style defined in the style.xml Oct 27 04:45:40 well, there are exceptions. I light daytime if I can be somewhere awesome, like on a mountain. Oct 27 04:45:42 oh people are asking real android questions, sorry! Oct 27 04:45:51 I just renamed and the app widgets are themed like 2.3.3 Oct 27 04:46:03 napster well... either it referred to it before or after changing it, but changing the reference is expected to change the outcome Oct 27 04:46:04 like* Oct 27 04:46:16 ok speakingcode Oct 27 04:46:55 so you're saying when you changed it to reference what you have defined n style.xml, it doesn't look like what is defined in style.xml? Oct 27 04:47:08 i thought the ms wowzapp hackathons are a good idea; there were a bunch of them all over the world … and they have experts on hand to answer dev questions Oct 27 04:47:36 not sure the one here is directly a part of that or not Oct 27 04:47:40 speakingcode: http://www.microsoft.com/student/en-us/wowzapp/default.aspx Oct 27 04:48:06 ms has been aggressive as hell with all of this Oct 27 04:48:16 do they have a choice? Oct 27 04:48:25 good question Oct 27 04:48:36 there is an annual indie fest here, called indiefest.. it's traditionally been focused on local film and maybe some music to, but they are trying to expand and be more like SXSW i guess this year, and m$ somehow became the sponsor of the tech track Oct 27 04:48:59 "somehow" heh Oct 27 04:49:05 well, yeah Oct 27 04:49:18 developers, developers, developers :) Oct 27 04:49:19 Though I was at local computer center today and they said they've been selling lots of Win8, I (jokingly) said rest up, the returns will be coming in a few days. Oct 27 04:49:31 "I can't find the start menu" Oct 27 04:49:44 but I give them credit for being bold Oct 27 04:49:55 apparently they did a bad job of differentiating what the RT version meant Oct 27 04:49:56 well, a lot of people are gonnab e upset solely because they don't understand the "winrt only" version Oct 27 04:50:28 They're the only real competitor to Mac/OSX and honestly, I'm less scared of them these days than Apple. Oct 27 04:50:31 the marketing doesn't make it clear that there's no running "classic" applications (or alternate browsers!) on that version, which is the version on surface (not surface pro) and arm devices Oct 27 04:51:05 from a dev perspective i gotta say they've done an awesome job with the metro/RT deal Oct 27 04:51:07 No I think she was talking about copies of Win8 desktop. Oct 27 04:51:34 speakingcode: i know a lot of devs that are excited; anecdotal i know Oct 27 04:51:34 which think launched thursday Oct 27 04:51:40 the metro UI is cool but could use work and i think the weakest part is by far the lack of seamlessness between metro and desktop "mode" Oct 27 04:52:20 there will be fuck ups, i'm interested in the potential though Oct 27 04:52:26 i think it all has a lot of potential Oct 27 04:52:26 but the WinRT sdk is really nice, the langauge support is phenomenal, visual studio and Blend are really nice... and i'm typically a m$ hater Oct 27 04:52:58 best of all, as far as I know Microsoft is creating new ideas and not suing to protect old stuff. Oct 27 04:53:19 they were smart to wait in the mobile/touch-centric space and address the common concerns from a user and dev perspective Oct 27 04:53:37 and they are getting a little softer to opensource Oct 27 04:53:52 speakingcode, wait? you forget about Windows Phone 7, Windows Mobile 6, etc etc? Oct 27 04:53:53 the theoretical foundation for their design language has mostly been written about here http://www.amazon.com/Brave-NUI-World-Designing-Interfaces/dp/0123822319 … its an excellent book. i think they get it Oct 27 04:54:30 hmm, might check that out Oct 27 04:55:23 it's easy to hate the giant but m$ is such a big force you can't ignore them.. at the very least i woud say they are making a real effort to not be so shitty Oct 27 04:55:34 aha: https://play.google.com/store/search?q=Brave+NUI+World&c=books Oct 27 04:56:00 i've never tried an ebook from play Oct 27 04:56:19 wonder how good the conversions are Oct 27 04:56:37 oh, try out with the free books that are available. I like the feel of the reader. Oct 27 04:56:47 cool Oct 27 04:56:48 although the whole UEFI secure bit issue is sketchy as hell Oct 27 04:56:56 i just like all my stuff in one place Oct 27 04:57:04 and cross-synced, etc Oct 27 04:57:25 i just bought like 80 books today from the local library for $65 Oct 27 04:57:51 And most of those probably arent even available in ebook. Oct 27 04:58:06 even if they were Oct 27 04:58:13 what the.... "Rent from $12.54" Oct 27 04:58:23 On Amazon... you cant *rent* an eBook??? Oct 27 04:58:34 that hurts my brain Oct 27 04:59:03 if you could id expect it to be under $1 a month Oct 27 04:59:24 man that's lik the ebooks for college man, that pissed me off so bad. whole point of digital is "free" print & distribution. but a textbook that's like $85 would be $65+ for the ebook version that only works for one or two semesters, ahhhh Oct 27 04:59:28 and it's pro-rated for rental duration, you can start at 3 weeks and it goes up a dollar a week Oct 27 04:59:32 man that's wierd Oct 27 04:59:36 who would do that Oct 27 04:59:56 sounds like a ripoff Oct 27 04:59:58 people who... don't like having the money they get? Oct 27 05:00:37 I can rent it until April 11th and save 2 cents. lol Oct 27 05:00:53 i cut all e-expenses from my budget for the time being Oct 27 05:01:04 i used to have like 100-200 bucks a month just sucked out of my bank account by the internet. Oct 27 05:01:19 porn is expensive Oct 27 05:01:27 redtube.com Oct 27 05:01:35 *good porn is expensive. Oct 27 05:01:54 i'm not gonna promote anything illicit but, it is the internet, so... Oct 27 05:02:07 yeaaah. aaaanyways. Oct 27 05:02:25 porn is basically free these days. money is for live webcam smuts nowadays Oct 27 05:02:32 k anyway way off topic Oct 27 05:03:10 what do they call that, "freemium" model Oct 27 05:03:56 Freemium is just another name for cripple-ware Oct 27 05:04:17 a better name though Oct 27 05:05:58 "Don't underestimate the power of the handicapped!" Oct 27 05:08:04 always cracks me up when someone chimes in out of the blue on here Oct 27 05:08:17 sitting back lurking for hours, waiting for the time to strike Oct 27 05:14:26 looks like it's time to finally play with SQlite Oct 27 05:15:45 Hey guys, trying to onCreate my Activity back into life. My activity is the typical MasterDetail template with a distinction. I have many "master" fragments I swap in and out to traverse a hierarchical data structure. Oct 27 05:16:28 When I oncreate after a rotation, I'm not having a lot of success managing the backstack properly. I'm getting really strange results when pressing the back button (looks like fragments drawing on top of other fragments) Oct 27 05:16:32 Any tips for doing this? Oct 27 05:16:59 you using fragment replace Oct 27 05:17:02 1 sec Oct 27 05:17:10 Yeah, I'm using fragment replace. Oct 27 05:17:19 don't re-attach fragments if they already exist Oct 27 05:17:50 JakeWharton: I thought on rotation, everything was totally destroyed. Oct 27 05:18:06 it is, but the fragment manager will re-attach them automatically Oct 27 05:18:19 Oh really? Oct 27 05:18:29 yes Oct 27 05:18:50 So.. Ok. I'm a little confused. Since all my fragments are kept in member variables, and those are all null. Oct 27 05:18:59 Should I just be querying the fragment manager to retrieve them or? Oct 27 05:19:10 All null after rotation* Oct 27 05:19:22 correct Oct 27 05:19:27 Who knew. Oct 27 05:19:27 find it by tag Oct 27 05:19:33 The backstack will also be preserved then? Oct 27 05:19:37 yes Oct 27 05:19:45 Curse you fragment manager for automating things. Oct 27 05:20:21 JakeWharton: One more question, the objects themselves (the distinct class I've created) will come out of the FragmentManager? Oct 27 05:20:34 So I can cast and store it back in the member vars? Oct 27 05:21:48 correct, so long as they have unique tags Oct 27 05:21:57 Nice. Oct 27 05:21:59 Thanks. Oct 27 05:29:23 wow someone just stalked me from stack overflow... i'm ... honored Oct 27 05:34:05 aargh fragments + tabhost + viewpager has been driving me nuts for two days now Oct 27 05:34:45 i had fun with tabhost on 2.x, haven't touched since :-D Oct 27 05:35:27 I have two tabs when the button on tab b is pressed I want to update the view of tab a. Is that so much to ask for? Oct 27 05:45:36 hmm Oct 27 05:46:04 jaldhar each tab shows a sifferent fragment? and you want the button in fragment b to update the view of fragment a? Oct 27 05:48:21 speakingcode: yes. But when I switch tabs, getResources() blows up because the new tab is not attached yet (? getActivity() is null in any case.) Oct 27 05:50:41 ah Oct 27 06:14:01 3~that's awfully vague Oct 27 06:14:06 abhi9 * Oct 27 06:14:39 do you mean file structure/format, end-to-end arhcitecture of the communication, something else maybe? Oct 27 06:15:03 wait wth i'm getting messages from another channel lol Oct 27 06:50:06 Hey guys Oct 27 06:51:34 how is your Java? Oct 27 06:52:44 Me ?? Oct 27 06:53:54 I wanna start deving Oct 27 06:54:00 But don't know from where Oct 27 06:54:09 To start Oct 27 06:54:10 do you know Java? Oct 27 06:54:15 do you know how to program at all? Oct 27 06:54:19 No Oct 27 06:54:25 No Oct 27 06:54:48 That's why I'm asking where should I start from ?? Oct 27 06:54:54 are you prepared for a genuine learning curve? Oct 27 06:55:23 Sure Oct 27 06:56:45 http://www.greenteapress.com/thinkapjava/ might be somewhere to start Oct 27 07:05:06 Does android depend a lot on java Oct 27 07:05:08 ?? Oct 27 07:09:44 MrMafioso, you got that right Oct 27 07:10:10 I don't know Oct 27 07:29:33 Hey dudes, got a spanned object with some text and an image, is it possible to get that imageView (or whatever it is) Oct 27 07:30:48 anyone have any experience with Spanned? the docs are very lacking Oct 27 07:35:17 help? :/ Oct 27 07:41:20 is there a way to run through all my view object? and look for a specific one? Oct 27 07:42:02 hi guys Oct 27 07:47:38 or maybe finding the imageView by the drawable.hashcode() ? Oct 27 07:55:27 Your spanned does not contain an imageview Oct 27 08:02:38 SimonVT: yep, figured it out, but it contains ImageSpan Oct 27 08:03:11 SimonVT: is there a way to get to the image and set it's background to an animation-list ? Oct 27 08:03:21 No idea Oct 27 08:03:24 :/ Oct 27 08:07:26 SimonVT: any idea where can i look at ImageSpan source code online? Oct 27 08:09:00 found it, nm Oct 27 08:09:50 It's in the sdk if you downloaded the source Oct 27 08:26:54 is there a way to make an object think it needs to be redrawed? Oct 27 08:51:13 What's the prefered pastebin for this channel? Oct 27 08:51:31 pastebin.com is fine Oct 27 08:52:12 or gist :) Oct 27 08:53:59 http://pastebin.com/xupnjY4t line 19: The method onClick(Viw) must override a superclass method. Why do I get this error? Oct 27 08:54:07 Viw/View Oct 27 08:55:26 I think I'm missing an import or something silly. Oct 27 08:55:36 hmm, it's possible to create a view inside a view right? to put an imageView inside a EditText in my case Oct 27 08:56:37 no, it isn't Oct 27 08:57:24 socket: views go in layouts Oct 27 08:57:36 trytrytry: what java version that you use? Oct 27 08:58:02 Leeds: i see, so i have to extend EditText and draw a bitmap ? Oct 27 08:58:05 my bet it is 1.5; you should change it to 1.6 Oct 27 08:58:22 socket: no, you probably want to put them both inside a layout Oct 27 08:58:25 jdk is 1.7, jre is 7 Oct 27 08:59:13 Leeds: im trying to create a custom cursor for the editText Oct 27 09:00:01 oh, that's an unusual thing to do... Oct 27 09:00:45 i know :/ wasted 2 days on trying to do that Oct 27 09:02:39 Leeds: any suggestions on how to accomplish that? Oct 27 09:02:45 nope Oct 27 09:03:38 it is only happen with me when i tried compile with 1.5 java; your code looks good Oct 27 09:04:02 Yeah I know, it's straight from the book. So strange Oct 27 09:04:31 take a look again on your project settings :) Oct 27 09:04:31 Your compiler compliance is set to 1.5 in your project settings Oct 27 09:04:33 or ide settings Oct 27 09:04:37 Go change that to 1.6 Oct 27 09:06:11 ixc: I'd probably look at these: https://developer.android.com/reference/android/R.attr.html#textSelectHandle Oct 27 09:06:20 Wait, wrong person Oct 27 09:06:24 socket: ^ Oct 27 09:06:39 :) Oct 27 09:06:50 https://developer.android.com/reference/android/R.attr.html#textCursorDrawable Oct 27 09:06:51 Maybe this Oct 27 09:08:19 Hi, does anyone have any preferences on Eclipse version to be used for Android only developement? Oct 27 09:08:24 thanks SimonVT Oct 27 09:09:21 I've changed it to 1.6 and it works. 1.7 doesn't work too btw. What exactly am I changing here and why won't it work on 1.5 and 1.7? :) Oct 27 09:10:04 I have run many examples before and this is the first time I encountered this error (all other examples were prolly at 1.5). Oct 27 09:10:38 And most of the examples used onClick. Oct 27 09:12:34 anyone else having issues with sms notification sounds getting cut off ? Oct 27 09:15:11 anyone know any good 'friend discovery' algorithms Oct 27 09:15:33 I'm making a a game, and "telling the IP to each other" seems a bit 90's Oct 27 09:16:26 belgianguy, using social accounts (twitter, facebook) with alternative of sending a link over email is probably the best way Oct 27 09:17:26 Mavrik: thanks! ah, yeah, could do that Oct 27 09:17:55 and can an application be associated with certain links? Oct 27 09:18:06 or is that a security no-no? Oct 27 09:18:29 it can be :) Oct 27 09:20:32 I wonder how Viber (et al) do it, they seem to be able to scan your contact list and tell you who else has it Oct 27 09:20:44 but they must match it against a server somehow Oct 27 09:51:39 You can make a link in the format of mygame://id which would get passed to your program Oct 27 11:07:11 Hi everybody. I would like to rotate the icon of an ActionBar item, but I get a NullPointerException when calling setActionView()... all the stuff for pre-honeycomb devices works, but on the normal actionbar it crashes: http://pastebin.com/E01rCmhQ Anybody an idea? Oct 27 11:12:11 hello all Oct 27 11:12:55 I am just started to learn android programming, can I ask questions here ? Oct 27 11:15:22 you can ask... Oct 27 11:16:45 Leeds: thanks Oct 27 11:17:38 I am kinda confused with the intro tutorials and books. On android dev official page, the gui is kinda created in XML, on the other hand in many books I got they create views in the code Oct 27 11:17:45 I kinda understand both Oct 27 11:18:12 but confusion comes when calling setContentView Oct 27 11:18:41 so I tried some basic buttons and edittexts and called setContentView(R.layout.activity_main); Oct 27 11:19:03 then tried to mix it up with btn = new Button(this); Oct 27 11:19:13 and the button created this way was not visible Oct 27 11:20:02 what is the correct setContentView call? How can I do basic layout in XML and then add Views programatically so they can be seen, or they are put in that layout ? Oct 27 11:33:47 KaiSVK: guess nobody fancies helping right now... Oct 27 11:34:11 static stuff goes in the XML... if you want to add stuff later, you need to attach it to the layout Oct 27 11:34:37 Ugh Oct 27 11:35:01 Lint is being bad and not noticing my if version>=needed_version over stuff that need a newer version Oct 27 11:35:18 And being all ERROR LOL YOU CANT USE THAT WITH SMALL TARGET VERSION Oct 27 11:35:29 or minimum version Oct 27 11:37:45 Anybody an idea on my ActionBar problem I posted a few minutes ago? Oct 27 11:40:37 evident, aren't you supposed to call setActionView on the menu itself? Oct 27 11:40:48 uuh Oct 27 11:40:49 no Oct 27 11:41:59 Not that I know... :) I've googled a lot and only found solutions for ActionBarSherlock... so I tried to adapt it... Do I correctly get the MenuItem? Or do I have to get it somehow different? Oct 27 11:44:06 You did not.. Get it in onCreateOptionsMenu by calling Menu#findItem Oct 27 11:44:39 SimonVT: ok you mean I should get it there and save it in the Activity and call it in the startRefreshAnimation()? Oct 27 11:47:27 Yes Oct 27 11:47:38 And MenuItem has methods for showing/hiding the actionview Oct 27 11:47:41 Use those as well Oct 27 11:47:55 ok thank you! Oct 27 11:54:23 SimonVT: ok it works if I call the animation function after saving the MenuItem in onCreateOptionsMenu() ... but I already start the load task in the onCreate, and there the onCreateOptionsMenu() has not been claled yet Oct 27 11:55:11 So set a flag or something.. check it in onCreateOptionsMenu Oct 27 11:56:38 what do you mean by flag? Oct 27 11:56:56 when exactly in the lifecycle is the onCreateOptionsMenu() called? Oct 27 11:57:33 private boolean mIsLoading; Oct 27 11:57:40 if (mIsLoading) menuItem.whatever() Oct 27 11:58:39 ahh ok I see... I'll try... thanks! Oct 27 12:08:32 SimonVT, Lint is being bad and not noticing my if version>=needed_version over stuff that need a newer version Oct 27 12:08:37 Should I suppress it? Oct 27 12:17:47 From how much objects should we use a CursorAdapter instead of an ArrayAdapter? Oct 27 12:18:24 i dont think you choose adapter type based on amount of data or objects Oct 27 12:19:33 CursorAdapter i think is meant for when the data source is SQLite database Oct 27 12:20:11 recommend news sites / blogs about android games, gaming, not development Oct 27 12:20:36 please Oct 27 12:20:47 this is android-dev, try #android for that Oct 27 12:21:18 oops Oct 27 12:21:37 -> Oct 27 12:27:37 hi! how can i get the grouposition and child position inside a button click function in a expandablelistview Oct 27 12:29:05 tech1: Ok, I see. I'll try with the CursorAdaptor ;) Oct 27 12:30:22 if you are using a SQLite database yes ^ Oct 27 12:31:01 or maybe another database too Oct 27 12:38:05 Yes, SQLite for my case but as I have only around 20 items I was not sure about the performances Oct 27 12:41:12 i think each adapter is optimized for a specific data source. so even if it was just 1 or 2 items the choice would still be the same Oct 27 12:43:07 im working with sqlite+cursoradapter too today :] Oct 27 12:44:44 hello! can i scan a barcode from a website? i know zxing supports a http link as an intent, but how do get the scanned value? Oct 27 12:50:18 got a solution? http://stackoverflow.com/questions/13100245/android-imageview-scaling-and-padding Oct 27 12:51:21 SimonVT: it all works fine now except that the rotating icon will me shown more right than the original icon... so when refreshing the icon jumps a few pixels to the right. Any idea on how to fix that? Oct 27 12:51:41 Hi Oct 27 12:51:52 socket would setting the width after scaling make a difference? Oct 27 12:51:55 layout_margin in the actionview xml doesn't do anything. Oct 27 12:52:12 i dont know if the order you make the xml calls makes a difference but worth a try Oct 27 12:52:52 I am trying to read the result of a rest web service. I downloaded the apache commons package that includes the IOUtility class. Oct 27 12:53:09 Leeds: ok, how one does that? :) Button btn = new Button(); what goes into parenthises ? or what goes where to attach it to current layout? Oct 27 12:53:42 now, I have referenced the concerned file, and eclipse is picking it up, however, when I run the app on android, I get the methodnotfound error and it crashes Oct 27 12:56:52 or maybe set the width/height to match the parent container's size in java, then scale the image Oct 27 13:01:58 about the image scaling padding, if anyone cares, using a matrix to scale works fine Oct 27 13:05:39 nvm:) http://code.google.com/p/zxing/wiki/ScanningFromWebPages Oct 27 13:08:25 * lut4rp yaaaaawns Oct 27 13:09:12 heh, off topic but, the Ubuntu 12.10 interactive web based tour is pretty slick. Oct 27 13:12:38 in LinearLayout, android:layout_gravity="center" puts everything horizontally centered, is it possible to put the children in the center vertically? Oct 27 13:44:25 sqlite question: if I have a column thats type 'TIMESTAMP DEFAULT CURRENT_TIMESTAMP', whats the right way to update it to current timestamp? Oct 27 13:44:40 so I put the literal value "CURRENT_TIMESTAMP" into updateValues? Oct 27 13:44:45 or null? Oct 27 13:44:47 or? Oct 27 13:45:15 a long value with System.currentTimeMillis()? Oct 27 13:45:27 inquiring minds wanna know Oct 27 13:46:54 socket: "center" is actually "center_vertical|center_horizontal" Oct 27 14:09:04 in my project i would like to store user-specific data on a backend server. because i beleive users appreciate not having to register with new credentials i would like to authenticate to the backend using google login. is the oauth2 api what i'm looking for? Oct 27 14:34:07 So, I'd like to make it so there's only one instance of my app ever. My app is literally one activity, with 4 fragments that swap in and out. It seems like it's a good candidate for "singleTop" launchmode. But Google has red text near it and says don't do it. Oct 27 14:34:17 Someone comfort me and tell me I'm making a good decision please. Oct 27 14:37:52 you're making a horrible decision. I'm not sure which decision, but one of them is ;) [sorry, no idea what the implications of that are -- all I know is that the worst apps I have seen are developed by google) Oct 27 14:38:24 lmao. Oct 27 14:38:48 It's just seriously painful having some things launch more than one activity of my app. It should NEVER be a second activity. Oct 27 14:39:35 why are you not satisfied with singleTask or singleInstance ? Oct 27 14:39:42 I imagine your issue is with how android detects 'alreday running' ? Oct 27 14:39:53 Quote from the docs: "singleTask and singleInstance — are not appropriate for most applications, since they result in an interaction model that is likely to be unfamiliar to users and is very different from most other applications." Oct 27 14:40:20 hmm Oct 27 14:40:20 That's the only reason I'm sketched out by them. Oct 27 14:40:47 But my app's a little special since it only has one activity and manages its "screens" via fragments. Oct 27 14:41:01 Which was a design decision in order to better support tablets. Oct 27 14:41:06 http://developer.android.com/guide/topics/manifest/activity-element.html < all explained here, but i'm totally confused too Oct 27 14:41:31 I think I understand the concept. I just don't have the heart to flip the switch. But I think I have to anyways. Oct 27 14:41:39 Since my search is creating a second activity, which is just silly. Oct 27 14:41:45 try it locally and see what happens? Oct 27 14:41:55 Fair enough. Oct 27 14:41:59 LET'S DO THIS Oct 27 14:42:01 * aoclown edits xml Oct 27 14:42:05 lol :) Oct 27 14:42:33 I'm a ruby/c#/c++ dev type person. I "learned" Java in University but never liked it. Oct 27 14:42:36 don't forget to try different scenario, like pressing home to not exist the app and coming back via the launcher, or via the app menu Oct 27 14:42:45 s/exist/exit/ Oct 27 14:42:45 And dealing in Android now, it's just... so much ugly XML. And so much.. Oct 27 14:42:46 Ugh. Oct 27 14:43:13 Though I do think their solution for multiple screens/dpis is slick enough. Oct 27 14:43:40 you're frustrated right now, taste might be linked with emotional state :p Oct 27 14:44:20 Haha. Well, I wrote a 700 line file to have a database capable of my needs for this app (hierarchical dictionary) Oct 27 14:44:29 I think it left a sour taste in my mouth. Oct 27 14:44:49 "no pain, no gain" :D Oct 27 14:44:49 And contrary to what you might think it's not THAT ugly. Oct 27 14:59:59 i want to connect to GCM from my service, i wonder if i really need to "exponentially back off" as says http://developer.android.com/guide/google/gcm/adv.html#retry ... can't i just try every minute until i register? :) Oct 27 15:00:22 cause if client doesnt have internet connection for some time, i'd never exponentially connect :) Oct 27 15:09:41 miha, maybe exponentially back off but add a retry counter Oct 27 15:10:26 when retry counter reach 0, invite your user to check his network settings or retry later Oct 27 15:11:20 Hello? Anyone know when we might be seeing OpenGL es 3.0 support in android? Capable hardware is being released (LG Optimus G) Oct 27 15:14:23 adq: well if there's no network, i dont spam GCM servers anyway? or registration requests stack? :) Oct 27 15:14:44 adq: i know it's bad on battery though Oct 27 15:14:55 exactly, the client side is still spamming :p Oct 27 15:15:44 but I can imagine you want to try to reconnect, as soon as the network is "on" again Oct 27 15:16:21 adq: so i should listen to network right :D Oct 27 15:16:22 there should be a way to test if network is "on", and maybe it's less costly to harrash on this test Oct 27 15:16:43 and then exponentially back off with a retry counter, if the network is "on" Oct 27 15:17:23 miha, try to find source code of good and well-known projet, and look how they are doing Oct 27 15:18:29 but imo, before trying to reach a server, I would first try to see if I can reach it (meaning, if the network is "on" and maybe few other related tests) Oct 27 15:19:59 I get a bubble popping up from Oracle telling me there is a new version of java, and then when I click on it to install it, it says 'You already have the latest version of java.' duh! Oct 27 15:20:29 adq: i check for something else, it's simple: ConnectivityManager conMan = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); State wifi = conMan.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState(); State mobile = conMan.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState(); if (wifi == NetworkInfo.State.CONNECTED || mobile == NetworkInfo.State.CONNECTED) {...} Oct 27 15:21:09 best is to look on stackoverflow :-) i'm not an expert on what you ask, but seems better than no test at all Oct 27 15:22:47 adq: thx Oct 27 15:48:11 Hi everyone. Trying to do an SQlite projection, can't say I thoroughly understand them. But I need to map the id column to more than a single value. Is this possible?? Oct 27 15:51:40 Hey gang, with an ImageView, how do I get the dimensions of the image -- as opposed to the resolution of the ImageView? Oct 27 15:57:47 fakingfantastic: if you have Bitmap inside ImageView, see Arsian's answer with 17 votes to get Bitmap http://stackoverflow.com/questions/8306623/get-bitmap-attached-to-imageview then you use Bitmap's getWidth and getHeight Oct 27 15:58:48 thanks a lot miha Oct 27 16:02:21 fakingfantastic: i googled it just recently. i wanted to bitmap.recycle() when i remove it from ImageView :) Oct 27 16:03:24 miha: i feel like there should be a much more direct way. I simply need the bitmap resolution for display resolutions Oct 27 16:04:14 fakingfantastic: did you read http://developer.android.com/guide/practices/screens_support.html ? Oct 27 16:04:45 no, but I will now Oct 27 16:04:51 fakingfantastic: you should, I think Oct 27 16:04:56 (this is my first android project) Oct 27 16:04:57 thanks Oct 27 16:09:52 fakingfantastic: if you generated your android project, see how icon sizes are different under your project's res folder .. drawable directories Oct 27 16:10:12 fakingfantastic: you should provide your images for different densities, at least Oct 27 16:21:28 is there an NDK channel? Oct 27 16:28:07 it would be here Oct 27 16:28:34 ok thx Oct 27 16:29:40 hey guys, i got a notice that my repo command is out of date byut in the repo help i dont see an update command Oct 27 16:29:47 and apt-get didnt help either Oct 27 16:29:59 i am trying to update to 1.18 can anyone provide soem assistance Oct 27 16:32:41 lol nevermind im dumb Oct 27 16:36:00 hello Oct 27 16:36:10 ca n someone explain to me what tools/android.bat does? Oct 27 16:37:22 it opens the android sdk manager Oct 27 16:37:28 and the avd manager Oct 27 16:37:36 and it has shortcuts to make/update android projects Oct 27 16:39:19 thanks Oct 27 16:39:51 clever: so what is the meaning of android.bat update project -t 1 -p . -s Oct 27 16:40:20 that will update the project in the current dir to use the first build target Oct 27 17:05:23 Have anyone faced with this: " requires a valid 9-patch image" ? Oct 27 17:05:34 I've created custom SeekBar Oct 27 17:06:19 in layout view in eclipse it's ok, but when I launch project on phone it crashes with this error Oct 27 17:07:10 I used draw9patch for creating 9-patch image Oct 27 17:10:18 try refreshing and cleaning your project Oct 27 17:11:21 that's better Oct 27 17:11:44 and be sure you named it imagename.9.png Oct 27 17:23:46 miha: oh yeah, i mean i know all that stuff Oct 27 17:24:46 What I'm trying to do is add an image of a map, that the user can swipe to see the whole thing, just trying to set it to be scaled down to 100% in display by default (so i need the device HxW and the image HxW) Oct 27 17:38:08 ootinii: sorry. I fucked up creating nine-patch (wrong area drawing). It's ok now.. strange that eclipse handle that 9,png silently Oct 27 17:39:33 I'm porting a C++ game to JNI. Is there a typical pattern for accessing read only game data? Binary assets, audio, and scripts. It looks like I can use fopen() and fread() but I don't understand directories and packaging. Oct 27 17:41:00 Codhisattva> u can use fopen, etc. But you need to pass path to assets directory to native code Oct 27 17:41:29 vklimkov: how do I derive that path? Oct 27 17:42:40 vklimkov: how does code reference the /android/assets/subdir/ world? Oct 27 17:43:49 http://www.javacodegeeks.com/2012/02/android-read-file-from-assets.html Oct 27 17:46:44 Hi. Do you know any opensource android projects where i can help? Oct 27 17:47:01 vklimkov: thanks. since that says 'java' I'd never have found it myself ;) Oct 27 17:47:59 urw Oct 27 17:51:54 zinfandel: Generally it's "find an itch and go fix it". If you're particularly good at UI code, look around on google code or something and find some OSS projects which need UI revamping Oct 27 17:52:19 zinfandel: I'm about to open source some larger projects but unless you like usb driver hacking... probably not too much to do on them Oct 27 17:53:23 dragorn: Ok/ Thx Oct 27 17:55:21 oh man, the google event was cancelled Oct 27 17:55:50 wonder what happened Oct 27 17:55:55 sandy is going wipe out the east coast Oct 27 17:56:02 massive unpredictable hurricane Oct 27 17:56:04 it was going to be a great experiment, with them announcing stuff the same day wp8 - what people were going to pay more attantion to Oct 27 17:56:17 now we will never know Oct 27 17:56:24 dragorn: And does projects need help with wiki, doc and translation. Oct 27 17:56:39 g00s: I think the answer is "Apple" ;) Oct 27 17:56:50 hehe, wait wut Oct 27 17:56:55 Codhisattva: oh, it was going to be in nyc? Oct 27 17:57:08 yeah, and a state of emergency was declared Oct 27 17:57:11 Codhisattva: oh, i know about sandy, I'm about 1.2 hours north of nyc Oct 27 17:57:16 g00s: since everything Microsoft and Google are announcing has already been pre-announced ;) Oct 27 17:57:31 dragorn: better hunker down, they say you could be w/o power for 10 days Oct 27 17:57:36 I was outside taking down stuff and fueling up the generator Oct 27 17:57:38 g00s: pft, nah Oct 27 17:57:38 dragorn: nice. I'm originally from Kingston and Rhinebeck - just about your neighborhood Oct 27 17:57:41 g00s: not near me anyhow Oct 27 17:57:53 Codhisattva: yeah pretty much; i'm in stanfordville Oct 27 17:58:07 dragorn: the hurricane is going to combine with a nor'easter and you are going to get pummeled too Oct 27 17:58:13 dragorn: wednesday or so Oct 27 17:58:13 Codhisattva: east f rhinebeck in the middle of nowhere Oct 27 17:58:29 yeah maybe, we'll see. Latest predictions I saw said only about 2 inches of rain Oct 27 17:58:30 dragorn: yup I know it well. I used to ride and drive out that way. Oct 27 17:59:12 western ny is going to get shithammered, noaa has me in the 1.75" range Oct 27 17:59:46 We lost power for about 6 days after the blizzard last year, I've got a bigass generator Oct 27 18:00:01 it's annoying but not too bad Oct 27 18:04:53 wow - so res/drawable* must be an enormous tree for full support of devices and countries Oct 27 18:05:55 at least a lot of thought has gone into defeating fragmentation/supporting generic devices Oct 27 18:09:20 haha, american breakfast http://i.imgur.com/tvR4k.png Oct 27 18:09:33 or you could just target white males between the ages of 18-24 who live in new york and use a galaxy s2 Oct 27 18:10:52 sampullman: yes, the res/drawable-white_mail qualifier Oct 27 18:10:58 *male :) Oct 27 18:11:05 hehe Oct 27 18:11:32 g00s: reminds me of this http://imgur.com/EQUDm Oct 27 18:11:54 :) Oct 27 18:43:15 hello, is there other way to install firmware on mini pc android(uhost) than with livesuite method? Oct 27 19:29:58 damn. after forcing to close widget, nothing works. 'process is bad' Oct 27 19:30:12 uninstalled the widget, and rebooted the tablet. we'll see now Oct 27 19:33:36 http://www.infoq.com/presentations/Concurrency-Android Oct 27 19:38:21 huh, nio.2 has file change notification api. i wonder what google's plans are here with java and android; are they just going to keep falling more behind or what Oct 27 19:42:40 ah, Marakana Oct 27 19:46:25 thanks for that link g00s Oct 27 19:48:47 np Oct 27 19:56:31 g00s, in the "quiz" at 12:16, the problem is that the asynctask is inside the clicklistener and it'll be fired off upon initializing the button and (supposedly) never again Oct 27 19:56:45 plus a question mark Oct 27 19:57:08 besides anon inner class inside another anon inner class? Oct 27 19:58:31 ah, it appears that I understand nothing. Oct 27 20:09:40 where can i do simple android projects for money? Oct 27 20:21:32 pacior: odesk.com freelancer.com sites like that Oct 27 20:37:03 trcik or treat smell my feet give em somethin gud 2 eat Oct 27 20:40:04 I have quite a bit of data I want to incude in my app. I don't expect the data to change frequently, if at all Oct 27 20:40:30 would it make more sense to assemble a database and then including it at install time? Oct 27 20:41:10 that way I don't need to parse a file and build a database on the device? Oct 27 20:45:03 yeh maybe Oct 27 20:45:19 does the data installed with the app change more frequently than someone would want to update it? Oct 27 20:45:41 you had a bus or train schedule, right ? Oct 27 20:46:55 g00s: correct, bus and train info Oct 27 20:47:13 this data is particular is the list of train and bus stop locations Oct 27 20:47:44 so I doubt it will change. If it does, I could provide an update Oct 27 20:47:51 if it is a lot of or complex data that would need to be in some file format to write to the database when the app initially runs. might as well just make it already an sqlite file.... i was wondering about this myself.... but my initial data set is small enough that i just decided to store it in some arrays to write Oct 27 20:48:14 i would do it this way then: have a web service that gives the latest version of this info. with the app, package this data in the same format you get it from the web service. when the app is first run, use the copy of data installed and check to see if there is newer data Oct 27 20:48:25 periodically, check the service if there is newer data Oct 27 20:48:28 i saw a link in here a few days ago, about how to copy an sqlite db from asset storage upon first run Oct 27 20:48:55 keep these wire formats the same so you can just point the app to the first data set or the data set from the web service Oct 27 20:50:02 tech1, RustyShackleford: http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Oct 27 20:50:21 this lets you package the sqlite db into the apk, and use it as run-tim Oct 27 20:50:36 ah fuck, apparantly this data is updated every week or two Oct 27 20:50:52 of course Oct 27 20:50:53 I really doubt the CTA adds more stops every week Oct 27 20:51:00 thanks clever. will bookmark that page Oct 27 20:51:05 RustyShackleford: you could have a version# in the sqlite db (in the apk) and then sync (get only changes) after install Oct 27 20:51:17 RustyShackleford: then you have the bulk of the data pre-installed Oct 27 20:51:24 if you are unsure you should probably prepare for the worst case scneario Oct 27 20:51:57 question: does Scanner work alright on Android, or is there another class I should use? Oct 27 20:52:12 I don't think I need a fancy parser to parse csv Oct 27 20:55:56 RustyShackleford: i think iosched uses the technique i mentioned Oct 27 21:12:20 there are so many versions of android... This is almost worse than the state of linux Oct 27 21:12:47 RustyShackleford: it's completely different Oct 27 21:12:55 i hope so Oct 27 21:13:28 thankfully there are things like the support package Oct 27 21:13:58 It worries me that each phone running ICS for example, has a different build of ICS Oct 27 21:14:07 uh? Oct 27 21:14:12 what matters is API levels Oct 27 21:15:21 Can I be certain that what runs on my Motorola Razr (ICS) works on my buddies Galaxy SIII? Oct 27 21:15:33 his ICS looks nothing like mine Oct 27 21:15:48 it's just a visual theme Oct 27 21:15:50 the APIs are the same Oct 27 21:15:58 if your using pure java, then it should work on everything, probly even 2.0 builds Oct 27 21:16:09 all depends on what api calls you use Oct 27 21:16:20 in theory Oct 27 21:16:44 does samsung have emulator images of the S3 for testing under? Oct 27 21:17:31 I am concerned that if I release an app, there may be bugs that appear on just one phone Oct 27 21:17:43 and I would have no way to test it Oct 27 21:18:15 That *will* happen. Your only hope is to have a kick ass logging system with automated crash reports Oct 27 21:18:15 it should give the users an option to upload the crash report to you Oct 27 21:18:24 you're not going to have 100% certainty on every device dude, just how it is Oct 27 21:18:41 cover the more widespread devices Oct 27 21:18:55 ie s3, razr, etc Oct 27 21:19:02 samsung phones are usually the best to test on Oct 27 21:19:09 i already did a grep over my access.log to figure out what versions my users run Oct 27 21:19:14 lg - moto - handly anyone has these Oct 27 21:19:19 i think 2.2 was the oldest point for the bulk of them Oct 27 21:20:07 RustyShackleford: http://www.fiercedeveloper.com/story/samsung-devices-considered-best-testing-android-apps/2012-10-13 Oct 27 21:20:32 clever: how do you do that? you can tell what versions people who download your app are running? Oct 27 21:20:48 RustyShackleford: user-agent header when they just browse my website normaly Oct 27 21:21:04 g00s: why is samsung best for testing, do they have the most quirks? Oct 27 21:21:12 * clever reads link Oct 27 21:21:14 hehe Oct 27 21:21:21 samsung is kinda rediculous Oct 27 21:21:23 its best to test on the phones that sell the most Oct 27 21:21:24 wtf is the Note Oct 27 21:21:32 that is too big Oct 27 21:21:35 g00s: ah, yeah that makes sense Oct 27 21:21:36 lol yeah Oct 27 21:21:42 for example, the htc evo 4g sold a lot - its a good phone to test for that era Oct 27 21:21:44 same for the S3 Oct 27 21:21:44 RustyShackleford: too big, but selling tonnes Oct 27 21:21:46 RustyShackleford: its more of a mini tablet, with phone Oct 27 21:21:47 it's best to stick to official APIs as documented on developer.android.com instead of guessing and writing random code until it works on your device. Oct 27 21:21:51 RustyShackleford: people like them Oct 27 21:22:10 random code that happens to work on your device is 99% of the developer problems with incompability between devices Oct 27 21:22:13 my Razr is too big for my taste. All the small droids suck as well Oct 27 21:22:21 i find the gnex to be almost perfect, could be a little smaller Oct 27 21:22:30 the other 1% is mostly API levels :P Oct 27 21:22:48 (i.e., things documented to not work on older devices) Oct 27 21:22:53 zinx: my last major issue was the silly example docs :P Oct 27 21:23:00 Androids are not gym shorts friendly Oct 27 21:23:07 zinx: sqliteopenhelper, the onupgrade method (example) called oncreate Oct 27 21:23:16 so it tried to create tables that already exist, kaboom! Oct 27 21:23:21 clever: >_< Oct 27 21:23:38 clever: if there's an example that's wrong, report it Oct 27 21:23:42 it was still in testing, so i just did adb shell and deleted it Oct 27 21:23:45 once in a while you will have someone like HTC go deep in there and really fuck something up, like compiling sqlite with WAL … which breaks apps which open a database read only before they open it for writing Oct 27 21:23:49 i forget where it was, i could take another look Oct 27 21:24:10 but in theory, it should not happen too much :) Oct 27 21:24:15 zinx: the example works perfectly fine by itself, but if you try to extend it in the logical fasion, kaboob Oct 27 21:24:28 m* Oct 27 21:24:32 shrug Oct 27 21:24:40 when you see compat. issues you can file bugs at b.android.com or submit a new CTS test Oct 27 21:24:47 ^^ Oct 27 21:24:53 hmmm, i dont see any example on this page... Oct 27 21:24:55 (OEMs have to pass all CTS tests to call a phone "Android") Oct 27 21:25:51 except in china Oct 27 21:26:08 zinx: hmmm, i cant find the example anywhere... Oct 27 21:26:19 i have a file in my project /res/raw/routes.txt Oct 27 21:26:28 * pragma- congratulates RustyShackleford Oct 27 21:26:35 where do i find in on the device? Oct 27 21:27:54 romainguy: at any particular point in time, does google block 3rd parties from passing a CTS because they are trying to sell an android version which is too old? for example, lets say now i want to make a froyo phone - would google say 'we will not bless it' Oct 27 21:28:44 RustyShackleford: R.raw.routes_whatever_name_you_gave_it Oct 27 21:29:36 romainguy: I'm trying to programatically display the selector of a ListView on a specific item as if the user had navigated to it with the D-PAD. All my attempts have failed using ListView.setSelection(). Is it supposed to work if the ListView report it is in touch mode (isTouchMode() == true) ? Oct 27 21:30:05 RustyShackleford: e.g., with Resources.openRawResource() or whatever Oct 27 21:30:07 g00s: do you know what it takes to get the google play store app to work properly on a more custom build, like if i was making my own device? Oct 27 21:30:24 yeah, money Oct 27 21:30:37 access to play - the market app - is not free or Free Oct 27 21:30:44 ah Oct 27 21:30:47 I was trying to use openFileInput Oct 27 21:31:18 you can hack it into an AVD for some possibly justifiable testing and nobody will care, but posting a rom with play will likely result in a C&D from google Oct 27 21:31:41 the 'google apis' roms in AVD work fine, for now Oct 27 21:36:55 When I tried to change List item's textview textcolor, it only works when its like a known color like red (#ff0000) for something like #cccccc it shows it as white. Any idea Oct 27 21:39:01 g00s: do you need the play store working for GCM to work, or is there some service package you can use? Oct 27 21:39:34 clever: i dont know; havent used GCM Oct 27 21:39:38 (sorry) Oct 27 21:39:54 ive seen reports that it works thru the play store app Oct 27 21:40:16 ahh, i see … so client bits are installed with play … kinda makes sense Oct 27 21:40:39 not sure, but from what ive seen, the apps use an RPC to talk to the play store app Oct 27 21:40:45 but i see alibrary for GCM in the avd manager, so i'm not sure Oct 27 21:40:53 that then holds the single connection open to the GCM servers Oct 27 21:41:00 interesting Oct 27 21:41:02 yeah, only on the roms with 'google apis' Oct 27 21:41:42 it makes sense from a security standpoint Oct 27 21:41:57 only the play store app is trusted with the contents of messages belonging to every app Oct 27 21:42:28 it then sends broadcasts for the seperate apps to pick up Oct 27 21:42:51 It's also about efficiency Oct 27 21:43:21 you can still get efficiency if you have a special GCM_service.apk thats free to install on any device Oct 27 21:43:57 but then its more posible for somebody to clone it, and modify it to intercept all rpc/messages from whatever device its installed on Oct 27 21:44:37 the play store app is more tightly restricted Oct 27 21:45:42 i was reading that possibly the play store will also include a malware scanner eventually Oct 27 21:46:02 g00s: i have seen mention of some anti-malware features breaking GCM Oct 27 21:46:11 http://www.techrepublic.com/blog/security/android-play-store-is-there-a-malware-scanner-in-its-future/8526 Oct 27 21:46:19 basicaly, if you freshly install an app, or force-kill it Oct 27 21:46:28 the state will be set to stopped Oct 27 21:46:37 and it will never be ran automaticaly (gcm events, broadcasts, whatever) Oct 27 21:46:46 the only way to wake it up is to hit the icon in the launcher Oct 27 21:47:08 so it cant do evil things the instant you install it, and if you force kill, it stays dead Oct 27 21:56:33 hi guys Oct 27 22:05:52 i'm a girl Oct 27 22:07:45 prove it! what colours go with peach? Oct 27 22:07:51 The term guy is generally restricted to males, as in Was that a guy or a girl?, but the form you guys may be used for groups of any combination of genders whether it is all male, all female or any combination. Oct 27 22:07:55 http://en.wiktionary.org/wiki/you_guys Oct 27 22:10:01 ActionBarSally wouldhave been a batter name Oct 27 22:10:06 *better Oct 27 22:12:33 pfsh. wiktionary is editable by anyone. you probably just changed it to say that Oct 27 22:12:49 nah Oct 27 22:14:54 what does exactly should be accomplished in my onUpgrade() method (I've subclassed SQLiteOpenHelper) Oct 27 22:15:31 first of all, when is this method triggered? Oct 27 22:18:20 Is it possible to use LoaderCallbacks with a FragmentPagerAdapter? Oct 27 22:22:55 each fragment should implement the LoaderCallback it desires Oct 27 22:23:00 should be orthogonal to the ViewPager Oct 27 22:23:55 orthogonal... Oct 27 22:26:59 Oops, I meant a CursorLoader for ViewPager sorry Oct 27 22:42:57 http://www.vogella.com/articles/AndroidSQLite/article.html from this article : "It is best practice to create a separate class per table. This class defines static onCreate() and onUpdate()methods. These methods are called in the corresponding methods of SQLiteOpenHelper. This way your implementation of SQLiteOpenHelper will stay readable, even if you have several tables." Oct 27 22:43:30 i don't understand why it's bad practice to create two tables in one class? Oct 27 22:44:00 RustyShackleford: because then your object doesn't translate to your data Oct 27 22:44:24 doesn't really need to, IMO Oct 27 22:44:39 Eh, how would a separate class per table work Oct 27 22:44:50 If both are updated Oct 27 22:44:52 your objects need to correspond to the in-app data handling Oct 27 22:45:33 it's perfectly acceptable for the in-memory structure to not map 1:1 to in-db structure, as long as the process is lossless and well organized Oct 27 22:45:44 adb devices doesn't show me the emulator that's running. why? Oct 27 22:46:17 RustyShackleford: you see, doing it right requires thinking, and many people sold their thinking ability for blissful ignorance of ORM (not that ORMs aren't useful, but when you stop thinking...) Oct 27 22:48:31 p_l; would you say it's easier to use two classes? Oct 27 22:48:45 I'm all for thinking, just not very good with databases yet Oct 27 22:49:44 why must eclipse be so slow Oct 27 22:49:46 whyy Oct 27 22:50:52 http://www.jetbrains.com/idea/ Oct 27 22:51:08 though I highly recommend the EAPs for 12 Oct 27 22:51:09 JakeWharton im trying to switch Oct 27 22:51:27 EAPs? Oct 27 22:51:32 early access preview Oct 27 22:51:40 RustyShackleford: I'd say sit down with pencil, eraser and paper, and sketch out a) interactions of the user with the application b) what kind of data and how you'd need it manipulated in order power those interactions Oct 27 22:52:01 program* Oct 27 22:52:01 http://confluence.jetbrains.net/display/IDEADEV/IDEA+12+EAP Oct 27 22:52:03 RustyShackleford: from that, it will be much easier to learn a bit of SQL to grasp enough of database Oct 27 22:52:47 RustyShackleford: SQLite docs are good on the internals, I learnt a lot by messing around with PostgreSQL with PgAdmin3 (which has graphical EXPLAIN display, which is a way of asking the database to show you what it does when you execute a query) Oct 27 22:53:15 but by doing it on paper first, you'll have much better idea of what you really need Oct 27 22:54:59 JakeWharton ill give it a try Oct 27 22:55:15 Leda or community Edition? Oct 27 22:55:42 community edition Oct 27 22:55:52 k Oct 27 22:55:53 leda is the codename for version 12 Oct 27 22:56:02 but the top section is the ultimate edition which requires a license Oct 27 22:56:10 ah Oct 27 22:59:29 * Jug6ernaut likes the duck load screen > the dolphin one Oct 27 23:27:59 can I just fprintf(stderr,...) and see that with log cat? Oct 28 00:22:03 which system image do i need for developing for Nexus 7 - ARM EABI? Intel Atom? MIPS? Oct 28 00:25:55 Nexus is ARM Oct 28 00:26:08 As are most phones and tablets, currently. Oct 28 00:26:22 ok thanks Oct 28 02:47:52 i'm trying to play with this http://android-developers.blogspot.com/2011/12/add-voice-typing-to-your-ime.html Oct 28 02:48:14 still a bit new to android, so i'm studying IMEs now Oct 28 02:49:11 finding it a bit hard to grok... what prerequisites might i need to be familiar with first in order to get the hang of IME stuff **** ENDING LOGGING AT Sun Oct 28 03:00:02 2012