**** BEGIN LOGGING AT Wed Jan 16 02:59:59 2013 Jan 16 03:04:24 Trinity: i wonder how the government will use the new FB graph search Jan 16 03:04:31 heh, fuck all that shit Jan 16 03:05:13 g00s: graph search? i only know about the saved searches rofl Jan 16 03:06:58 yeah, that was the big news for today :) Jan 16 03:07:14 http://www.theverge.com/2013/1/15/3879520/facebook-tackles-google-linkedin-yelp-graph-search Jan 16 03:07:56 oh thats what was on google news haha was about to click it Jan 16 03:08:13 i wonder what kind of queries this would be used for; i really dont care what my friends like. Jan 16 03:10:20 one use case i heard, was that FB wants to invert real life intro -> db friending; so you would meet people first on FB before real life ; i guess by searching for people with some characteristics you are looking for? if i sound stupid, its because i dont know much about this Jan 16 03:10:36 "natural and convenient" Jan 16 03:20:02 I still don't get the point of fecesbook Jan 16 03:20:16 wow, BB10 active frames multitasking is fucking cool Jan 16 03:20:47 this was all based on QNX i think ? Jan 16 03:21:32 Zharf: i keep reading articles along the lines of ; FB and its ilk make people mentally ill Jan 16 03:21:47 :) Jan 16 03:31:59 g00s: hmm i wonder what google would do if it were in Fb's position Jan 16 03:35:42 i'm sure thats why G+ exists, right ? Jan 16 03:39:59 instagram lost half its users in the past month (if this data is correct) Jan 16 03:40:26 i think people are getting fed up being meat for marketing Jan 16 03:42:04 wtf is that now Jan 16 03:42:31 http://www.ibtimes.com/instagram-loses-half-its-daily-users-month-heres-why-report-1014214 Jan 16 03:42:55 i just grabbed a random story, plenty to choose from Jan 16 03:43:59 first time I've ever heard of instagram whatever Jan 16 03:48:34 Zharf: its for hipsters mostly :) Jan 16 03:50:51 hmm, i wonder... with facebook threatening google with its new search graph is google going to retaliate by putting more resources on Google+ Jan 16 03:51:14 alienating more users Jan 16 03:51:15 :p Jan 16 03:53:27 apple's approach towards google's ads was hilarious Jan 16 03:54:20 and what was that Jan 16 03:56:31 http://searchenginewatch.com/article/2050820/Apple-Blocks-Admob Jan 16 04:30:57 I have a 4.2+ application and I just have a question with making things backward compatable to 4.0. I've set my min sdk to 14, target to 17, and have my build target library set to the lowest version (4.0). Is this the best way to do it? Or should set my build target library to the latest 4.1? Jan 16 04:32:43 build target = does not matter Jan 16 04:32:49 set manifest to what you want to support and youre good Jan 16 04:33:06 so basically build target = highest youve downloaded Jan 16 04:35:07 Ok so basically test using all build targets during development (4.0/4.03/4.2) - every level I want to support - then set high/low based on stuff I've tested - because the build target library is not included in the application Jan 16 04:37:48 Trinity: I suppose each phone has access to it's own android library - just make sure it works on those levels - and then set min/max/target Jan 16 04:38:16 Trinity: what should I set my target sdk version in my manifest if it works on all levels - min/max - no extra features used Jan 16 04:38:41 don't set a max, unless you have some weird case. build target most likely should be the newest available, but if you start a project now and tomorrow they release a new API you might not want to make that change as maybe something would break Jan 16 04:39:12 set your targetSdkVersion to the same as your build (unless maybe the new API comes out tomorrow and you /do/ use that for build but haven't tested it much on the emulator or a device yet) Jan 16 04:39:55 set the min to the min you tested against and it works. with the build being a higher API level you are allowed to reference APIs that don't exist in the min, so make sure you only do that in cases where it is safe to do so (like only after you've checked that the SDK_INT is >= what you need for that API) Jan 16 04:46:04 kevinb: so basically build/test for lowest level - then build and test for higher levels - with more features or not - set min to lowest in manifest - set target to highest -> final compilation - build target does not matter? Jan 16 04:47:11 what i do is build/test against highest , but also try to regularly test against a device with the min version, but still building with the highest. Jan 16 04:48:14 you can use lint to warn you about using newer APIs. and after a while you get the hang of most of them. for Android 4.2 versus 4.0 there's not too many that come up often. Jan 16 04:50:36 kevinb: cool - what applications have you made? Jan 16 04:50:49 Nova Launcher and WidgetLocker are my main ones Jan 16 04:50:58 Nova targets 4.2 but min is 4.0 Jan 16 04:51:23 WidgetLocker's current release version might target 4.1 or even 4.0 and goes back to 2.1 Jan 16 04:52:01 kevinb: how do you set your pricing? Jan 16 04:52:32 kevinb: I've got a native opengl game i've been working on - and i'm wondering as whether to set it high or similar to others Jan 16 04:53:29 Nova is $4 and WIdgetLocker is $2.99. Both are personalization apps, not games so it's a different market. WL doesn't have any direct competitors as the other lockscreen replacements take different approaches (though there are free ones) Jan 16 04:53:47 kevinb: you're teslalabs? very cool. Definitely a fan of nova launcher. Jan 16 04:54:13 Nova has a free version and $4 is in line with other paid launchers. At the time of launch other paid launchers were like $3.50 and $3 or so. now many are also at the $4 price point Jan 16 04:54:21 dragorn: yup. Thanks :) Jan 16 04:54:45 I've noticed for 4.x-only code right now it's pretty much 33/33/33 between 4, 4.1, and 4.2 Jan 16 04:54:54 which is sort of interesting Jan 16 04:56:07 for Nova i'm seeing 45% on 4.0 and 40% on 4.1 with only 15% on 4.2 Jan 16 04:56:45 37/33/26 for mine, but that's only over ~2500 installs Jan 16 04:56:52 kevinb: is piracy an issue for you? Jan 16 04:57:05 when 4.1 came out i noticed it caught on very quickly. but at the time 4.0 itself was relatively rare and so many of those users were on custom roms they could easily update. Jan 16 04:57:22 needs usb and associated crap so generally more hacker-targetted which might lead to the heavy 4.2 Jan 16 04:57:28 (likely a lot of custom roms) Jan 16 04:57:34 kevinb: licensing is the last thing i have to do - and i know i'll be pirated - just want to make it moderately difficult for casual sharing/script kiddies Jan 16 04:57:44 my apps are heavily pirated. they also sell well so i don't want to go crazy trying to crack down on piracy and end up annoying users and messing up what i have Jan 16 04:58:21 I think I bought Nova in one of the almost-free sales... Jan 16 04:58:34 yeah ultimately someone will crack it and post it no matter what Jan 16 04:59:19 kevinb: indeed - that's why i'm thinking to make my protection in a way that that never shows you that it knows your pirating it - it just breaks things and separates cause and effect so that pirates should get a inferior product Jan 16 04:59:26 one of my competitors heavily copies me (they've pirated images from me, and screenshots of Nova and pass them off as their own app). they've also clearly based some of their stuff off reverse engineered code of mine. so i've been using DexGuard (which is paid proguard) to slow them down a bit. it also did help with the 2.0 beta of Nova not being pirated, but once 2.0 final was released it was cracked like that day or the next day Jan 16 04:59:36 did google ever turn on encryption in the app store again Jan 16 04:59:54 nova sucks anyway Jan 16 05:00:00 kevinb: dexguard worth it? Jan 16 05:00:01 j/k =) Jan 16 05:00:24 the implementation of encryption in the app store actually seemed like it made a lot of sense Jan 16 05:00:30 heh 0.80% 3.2 ... someone out there is still rocking some sort of ancient tablet Jan 16 05:00:59 i like dexguard. Eric, who does both proguard and dexguard is very responsive and he has a really good set of configurations so even if you're barely using the dexguard specific functions it'll save you time trying to figure out the best proguard optimizations to use Jan 16 05:01:31 I have a few xoom's and iconias with honeycomb on em Jan 16 05:01:40 i wish the play store app encryption was optional (i wouldn't use it, it's trivial to bypass on rooted devices anyway) Jan 16 05:01:42 honeycomb was the os google would just as well forget Jan 16 05:01:45 kevinb: looked into the ndk for licensing protection? Jan 16 05:02:01 toger how is that gonna help Jan 16 05:02:31 harder to decompile C than it is java. and the automated tools don't do NDK as far as i know. but i haven't tried it and am not sure it'd be worth the effort of using the NDK just for that Jan 16 05:03:00 kevinb I was under the impression your device exchanged keys with app store, and the app was signed before you downloaded it for that exact download Jan 16 05:03:09 signed/resigned whatever Jan 16 05:03:11 kevinb: i'm porting my game to c/c++ on the ndk - so guess it's natural to me - probs not for you Jan 16 05:03:17 ron_frown: app store licensing is useless Jan 16 05:03:25 ron_frown: i use it as a trap :) Jan 16 05:03:41 ron_frown: people run there auto scripts on it - think they've broken it Jan 16 05:03:47 ron_frown: 2 days later - shit falls apart Jan 16 05:04:20 ron_frown: it basically uses the same method as apps to sd. i don't know how the keys are created or exchanged, but once on the device there is an encrypted container that gets mounted and contains the normal apk. i've just used adb to copy the pkg.apk from there to my computer (not for piracy, but debugging why paid icon themes don't work when encrypted) Jan 16 05:05:03 kevinb did you try taking that very apk and adb installing it on device 2? Jan 16 05:05:09 yes Jan 16 05:05:13 4.1+ device? Jan 16 05:05:16 yes Jan 16 05:05:20 nice! Jan 16 05:05:41 seems like that could be an easy to implement Jan 16 05:05:47 I mean anything can be broken Jan 16 05:05:51 but oculd be less broke Jan 16 05:06:15 ron_frown: don't try and think about piracy as broken - i think the goal really should be that pirates get inferior/buggy product Jan 16 05:06:24 i kind of suspect it was done for marketing to big developers, saying paid apps are encrypted. Jan 16 05:06:25 kevinb: does dexguard do anything to prevent someone from steeling your assets (pngs, etc) Jan 16 05:06:44 dexguard looked nice, but i could not afford it Jan 16 05:07:14 g00s: no. it can transform your XML though because it will repackage views and whatnot, so like com.teslacoilsw.launcher.CustomView could become some chinese character, both in the dex and in the XML layout Jan 16 05:07:24 so PNGs stay PNGs but your layouts get harder to read Jan 16 05:07:35 ok, thx Jan 16 05:07:38 torger I built a .net orm years ago, and I put basic license warnings in there saying you need to pay for it after 30 day Jan 16 05:07:45 instead of trying to catch a user Jan 16 05:07:53 I made it so it would gradually degrade performance Jan 16 05:08:07 so that eventually we were sleep(30000) between each query Jan 16 05:08:14 you have to be careful though as you get bug reports, including publicly on forums, from pirates Jan 16 05:08:15 and that was after several thousand Jan 16 05:08:37 hello guys Jan 16 05:08:43 on new inent isnt called.. Jan 16 05:08:44 why ? Jan 16 05:08:52 kevinb: i have a wiki for all my piracy bugs and my apps are reasonably well coded Jan 16 05:09:00 kevinb: but yeh you defs have to be very careful Jan 16 05:09:19 torger how do you determine an app is pirated Jan 16 05:09:23 track serials Jan 16 05:09:27 or keys or somethign Jan 16 05:10:34 ron_frown: basically look at seeing if my code has been modified from build Jan 16 05:10:50 ahh Jan 16 05:11:26 ron_frown: varying levels of this - and then i break things over time Jan 16 05:11:45 ron_frown: no notifications about being a pirate - and i separate knowing about piracy with it's degradation Jan 16 05:11:51 kevinb: did you also do Nova launcher for BB10 ? Jan 16 05:11:54 exactly what I was doing Jan 16 05:11:55 ron_frown: the goal is to make piracy look like a bug Jan 16 05:12:10 g00s: no. i'm not sure they even allow replacement launchers Jan 16 05:12:44 oh, heh- somebody mentioned it on a BB10 article, but rit was in response to a parent post concerning Android Jan 16 05:12:46 ron_frown: my attitude to piracy really comes down to this -> http://www.gamasutra.com/view/feature/3030/keeping_the_pirates_at_bay.php Jan 16 05:13:01 ron_frown: all i want is that pirates have degraded performance Jan 16 05:15:09 ron_frown: kind of like how the movie system currently works now -> pay for movies (which i love going to) or watching crappy versions now - or wait and get a better version after everyone has watched it - dvd release Jan 16 05:15:22 ron_frown: it's essentially price discrimination Jan 16 05:15:35 ron_frown: when pirates get money - they buy to upgrade from degradation Jan 16 05:15:51 ron_frown: when they don't have it - they take the degraded form - and it can be used as a taster Jan 16 05:17:08 I agree Jan 16 05:17:17 I'm just not sure how I'd implement such a thing Jan 16 05:17:21 ron_frown: and hey - everybody wins :) Jan 16 05:17:26 I get teh rolling hash/checksums Jan 16 05:17:32 as outlined in that article Jan 16 05:17:39 i just dont know how you'd keep that Jan 16 05:17:43 so, I know this sounds totally noob... but I want to develop a widget that is a pet Jan 16 05:17:56 kidna like a super cool tomigachi (sp?) Jan 16 05:18:01 remember those gigapets? Jan 16 05:18:04 other than sending it up to server which knows what the original apk looked like Jan 16 05:20:17 ron_frown: http://www.youtube.com/watch?v=ZinR10DC3-Q -> good times Jan 16 05:23:10 ron_frown: what apps do you make? Jan 16 05:27:26 btw, anybody working with googleTV know that even though the google library fails, the socket you create with it still works Jan 16 05:27:40 honestly my stuff is never distributed in market yet Jan 16 05:27:49 industrial automation hardware/software Jan 16 05:29:05 ron_frown: sweet - so apps that control industrial machines? Jan 16 05:30:06 So... I've got a Frame Layout and a Linear Layout next to each other in the same Linear Layout. Jan 16 05:30:09 interface and do some stuff Jan 16 05:30:12 dont actually run machiens Jan 16 05:30:32 http://imageshack.us/a/img560/2002/overviewm.png Jan 16 05:30:36 that shit Jan 16 05:30:41 I've got an issue when animating the Linear Layout off the screen, because the Frame Layout doesnt 'extent' until the animation is complete (and I make the Linear Layout GONE) Jan 16 05:31:04 I would like the Linear Layout to be kind of like an overlay that comes on and off, but its not going well. Any ideas? Jan 16 05:31:49 ron_frown: honestly i think from now on i won't bother doing games that aren't inherently piracy resistent Jan 16 05:32:12 ron_frown: i'd rather charge people for access to the data stream (updates/more content) then charging them for a binary Jan 16 05:32:36 ron_frown: the only protection against piracy in the end is controlling the tap - and that means server provided content Jan 16 05:32:59 yeah Jan 16 05:33:06 lots of apps that makes sense Jan 16 05:33:08 some it doesnt Jan 16 05:34:42 other way around. some apps it makes sense, a lot it does't. Jan 16 05:35:30 we can agree to disagree Jan 16 05:35:59 ron_frown: bah the world is a messy place :) Jan 16 05:35:59 the best way to "combat" piracy is just make a great app and be responsive and friendly Jan 16 05:36:19 good luck with that one Jan 16 05:36:20 you try to fight piracy, you're going to lose. period. Jan 16 05:36:25 pragma-: please Jan 16 05:36:26 def true Jan 16 05:36:54 pragma-: of course you will lose - they have the binary Jan 16 05:37:06 pragma-: the goal is to make sure only paid users get the best experience Jan 16 05:37:34 good luck with that one. Jan 16 05:38:50 pragma-: do you back your claims up though? Jan 16 05:39:02 what are you babbling about? Jan 16 05:39:18 pragma-: do you have paid apps out there that have 0 piracy protection? Jan 16 05:39:29 all my apps are free Jan 16 05:39:44 and they're all open-source Jan 16 05:39:46 pragma-: probably not qualified to talk about piracy then Jan 16 05:40:06 lol torger, you sound like you'd be an asshole in real life Jan 16 05:40:12 he's an idiot. Jan 16 05:40:15 haha Jan 16 05:40:22 I dont agree Jan 16 05:40:42 first of all releasing all our apps as open-source really doesnt qualify your opinions on piracy Jan 16 05:40:47 there are no metrics to track that Jan 16 05:40:50 superfluous: why? pirates can still use my apps - they just get shittier versions - what's wrong with that? Jan 16 05:40:51 they're not supposed to. Jan 16 05:41:18 torger: i think your philosophy about controlling the tap is an OK idea, im not arguing with that Jan 16 05:41:36 but you pulled the 'yeah well what apps do YOU have? oh yeah? well you dont know then!" Jan 16 05:41:41 you turned it into an e-peen contest Jan 16 05:42:14 and they wouldn't necessarily get shittier versions at all; there are plenty of ways to get at the tap Jan 16 05:42:35 a legitimate buyer could share his credentials Jan 16 05:42:45 yeah share your facebook account Jan 16 05:42:48 for facebook app Jan 16 05:42:52 kind of pointless Jan 16 05:43:28 it's more pointless to use facebook in the first place Jan 16 05:43:43 especially as a login system Jan 16 05:43:49 pragma-: of course Jan 16 05:44:00 hur-dur, i'm going to give facebook the keys to all my accounts derp Jan 16 05:44:06 pragma-: the goal is to make piracy harder than buying Jan 16 05:44:13 pragma-: not impossible Jan 16 05:44:19 thats my point Jan 16 05:44:28 it's impossible to make it impossible. Jan 16 05:44:28 pragma-: it's just price discrimination Jan 16 05:44:41 if the tap is that the user content is tied to credentials, what point would it be to distribute credentials Jan 16 05:44:47 pragma-: not really - see google search Jan 16 05:45:07 yeah really -- see google search Jan 16 05:45:47 pragma-: don't see google's core search code being pirated anytime soon Jan 16 05:45:48 another way of looking at it though is that if you spend 10 hours on anti-piracy measures, then maybe you do get more purchases because they'd rather have the full version experience than the pirate experience. but if instead you spend those hours fixing bugs then maybe you get more purchases because more people want your app Jan 16 05:46:19 dont agree Jan 16 05:46:23 but I think the key here is Jan 16 05:46:28 ability to agree to disagree Jan 16 05:46:31 kevinb: licensing is always the last thing i do Jan 16 05:46:37 google's core search code? that comment is so stupid i don't know why i would bother responding to it Jan 16 05:46:46 we all have diff ideas of whats gonna work Jan 16 05:46:54 ron_frown: true Jan 16 05:47:01 let the best strategy win :) Jan 16 05:47:09 yeah, as we should. also no setup is going to work the same between different apps Jan 16 05:47:14 I think the idea of provide a better produce is great in a utopian world Jan 16 05:47:15 kevinb: defs Jan 16 05:47:18 but thats not reality Jan 16 05:47:22 product Jan 16 05:48:00 ubisoft has lost millions in sales due to its draconian piracy schemes Jan 16 05:48:15 oh dont get me wrong Jan 16 05:48:16 people just skip the official product and go straight to the cracked versions Jan 16 05:48:19 I totally agree Jan 16 05:48:38 invasive piracy schemes almost always affect legit users then the people getting around them Jan 16 05:48:57 both of you need to learn the difference between then and than Jan 16 05:48:57 pragma-: list a company on the order of ubisoft that doesn't do piracy protection Jan 16 05:49:19 piracy schemes? Jan 16 05:49:24 break out the piracy facism Jan 16 05:49:33 er not piracy, the grammar Jan 16 05:49:45 ron_frown: haha Jan 16 05:50:21 irc for me is not a god damn thesis paper Jan 16 05:50:23 torger: ubisoft. Jan 16 05:50:41 I will spell words wrong or leave them out all together, or even *GASP* use words in place of other words Jan 16 05:50:48 http://www.polygon.com/gaming/2012/9/5/3293318/ubisoft-to-scrap-drm-for-all-pc-games Jan 16 05:51:26 that's actualy wise Jan 16 05:51:37 pragma-: lol didn't they just replace it with uplay tied accounts Jan 16 05:51:39 wonder if the person who thought of that got fired for being too wise Jan 16 05:52:46 everyone is shitting their pants because of steam haha Jan 16 06:00:21 Would anyone be able to point me into the direction of screen size dimensions for Android? Particularly, I want to know what the widest screen size would be (in pixels) Jan 16 06:01:20 there is no maximum Jan 16 06:01:32 EGamerHDK: no max Jan 16 06:01:34 http://developer.android.com/guide/practices/screens_support.html Jan 16 06:01:46 Okay, then maybe you can help me out. Jan 16 06:01:54 so Leeds, all the changes are live in the docs now, except retreive :P Jan 16 06:02:00 becuase i put that in master ~_~ Jan 16 06:02:09 yeth, mathter Jan 16 06:02:15 I want two images to side by side, to always fill parent width wise. Jan 16 06:02:52 What would be the biggest I would have to make them to make sure they are never forced to upscale Jan 16 06:04:01 infinite Jan 16 06:04:11 ... Jan 16 06:05:28 canadiancow: maybe you can help me then. Jan 16 06:05:48 EGamerHDK: the problem is that you'd have to make them so big to be 'safe' on all future devices that they'd be stupidly big for smaller current devices Jan 16 06:06:19 But, I thoerhetically could/should create different sizes of the image. Jan 16 06:07:16 So, I guess what I'm really asking is what is the largest resolution of any android tablet. Jan 16 06:07:40 the highest density bucket at the time of writing is 480dpi. if you create an image for such it won't need to be upscaled until a future version of android for a future density bucket. however aspect ratios of devices differ, and will continue to do so, and i don't think there is any maximum width specified for the largest screen sizes Jan 16 06:07:48 I would love to shove 4k size images, but maybe a 500px x 500px will do. Jan 16 06:07:55 Excuse me guys.. Jan 16 06:07:56 thats not true kevinb Jan 16 06:08:04 oh? Jan 16 06:08:07 becuase 480dpi can be 1x1 or 10000000x10000000000 Jan 16 06:08:15 so if you want an image to fill the screen, density tells you nothing Jan 16 06:08:28 i have a problem Jan 16 06:08:47 i make custom listview Jan 16 06:08:51 yes i'm not saying that. just that it wouldn't need to be upscaled (though i guess if you do a match_parent it would be so that's a good point) Jan 16 06:08:55 for horizontal listview Jan 16 06:09:09 canadiancow: Exactly. And I understand that. But, if I'm shipping an application that has two images side by side. I think it's fair to include 4 different image sizes of each image. Jan 16 06:09:14 i load the horizontal view in xml Jan 16 06:09:41 I'm just trying to figure out if there's any easy way to figure out what those sizes should be. Jan 16 06:09:50 but when i add EditText in xml, it is not show Jan 16 06:09:53 EGamerHDK: you might consider using a nine-patch so it can stretch sanely. think more about designing for web than for fixed sizes Jan 16 06:10:05 How do I animate a view in and off screen without the underlying 'space' for it become white when the transition begins? Jan 16 06:10:06 just the horizontal listview display Jan 16 06:10:19 Like, I'd like the illusion that the view is 'above' the other one Jan 16 06:10:46 i am confused because i can't add another widget after i put horizontal listview Jan 16 06:11:04 With an imageView, I'm going to be showing the entire image. Jan 16 06:11:40 What I'm saying I guess is... I know there is a minimum resolution with Android. Jan 16 06:12:00 like the google+ app Jan 16 06:12:26 superfluous: you can use a framelayout to layer views, then animate one out and only the underneath layout will show Jan 16 06:12:43 240×320 pixels, low density, small screen Jan 16 06:14:33 kevinb: Feasible with LinearLayout { FrameLayout LinearLayout(one I'd like to hide) } ? Jan 16 06:14:46 ny xml layout:http://paste.org/60204 Jan 16 06:14:58 anyone can help?? Jan 16 06:15:28 2560-by-1600 is the resolution for the nexus 10. Is it fair to say my image should be at least 2560 if I'm going to fit it on all devices? Jan 16 06:15:53 superfluous: i don't think so. maybe with negative padding or by trying to actually relayout inside the animation (slow/janky i imagine) . why not convert the outer most LinearLayout into a FrameLayout ? Jan 16 06:16:20 I put EditText, but it is not display it Jan 16 06:16:37 EGamerHDK: no, tomorrow someone could release a 2561x1600 tablet Jan 16 06:16:44 kevinb: I'll give it a shot Jan 16 06:19:33 :/ i know nothing about android development Jan 16 06:20:43 is it possible to use device over wireless for debugging Jan 16 06:20:57 anyone can help?? Jan 16 06:21:14 kevinb: what's your testing process? Jan 16 06:23:37 i'm not doing many automated tests at this time but i want to do more. i have like 30 devices (fragmentation hits me a bit harder as my apps are more like system components) and try to switch between them when developing to make sure i catch things myself. I do public betas which gets me a fair amount of feedback and crash reports (i use hockeyapp but have used BugSense before as well). before a final release i'll run through updates and clean installs on a Jan 16 06:23:37 popular devices Jan 16 06:25:22 kevinb: what about tracking usage statistics? do you use hockeyapp for that as well? Jan 16 06:26:32 no. i'm using google analytics but it doesn't work that well for me. google analytics (and i've tried localytics as well) is designed for apps that are like web pages, you open them up and use them for a bit, for a few screens, then exit and you're done. for a launcher you're leaving and returning to it all the time, so a session length has no real meaning. Jan 16 06:27:06 kevinb: do you use any other services for your apps? Jan 16 06:27:35 uservoice for feedback and i have a homegrown direct licensing and beta distribution system Jan 16 06:28:07 kevinb: thanks - i'll go ahead and use hockey/google/uservoice then :) Jan 16 06:29:17 no problem. and yeah they're good services :) Jan 16 06:37:36 Could somesome try to help me decide what api level a crash report could be from? This is my first crash report from google play and I would love to try a device with that system number to try to recreate the problem. Jan 16 06:38:12 whats the best way to expand the touch region on something Jan 16 06:40:08 Be mindful of your touch zones! Suppose you have an app that presents a list of items that can be starred/favorited/bookmarked/etc., and suppose your 'starring' affordance is a star icon checkbox thing-a-ma-jig. Pretty typical these days. Jan 16 06:40:08 To implement something like this, you can just drop a vertically-centered CheckBox into your list item layout and call it a day, right? But wait! Remember that humans have fat fingers and make lots of mistakes! What if a user accidentally touches just outside the vertically-centered checkbox while intending to star the item? Disaster strikes—the user's unexpectedly taken to the item details, destroying her visual context and all ar Jan 16 06:40:08 Alas, all is not lost! One way to fix this is to ensure in your list item layouts that your checkbox is flush with the list item view bounds so that any touches in the 'error' region (see second attached photo) still result in starring. But this can get clunky with drawable positioning and whatnot. Jan 16 06:40:08 Another, lesser known, option is to use a TouchDelegate [1]. TouchDelegate basically lets a parent view define a region within its bounds, in which touch events should get forwarded to a given child view (in this case, the checkbox). Ain't that something? You can customize this logic (e.g. providing a circular touch forwarding region or multiple forwarding regions) by creating your own TouchDelegate-derived class. For an example of t Jan 16 06:40:08 I know you're all wondering "ok cool so how does one use this awesome TouchDelegate class?" … well, that's homework for the weekend. Enjoy! http://developer.android.com/reference/android/view/TouchDelegate.html Jan 16 06:40:16 dont do that Jan 16 06:40:23 Bah, sorry, wanted to post the link. Jan 16 06:40:27 :P Jan 16 06:40:31 thanks though Jan 16 06:43:03 canadiancow: FractionalTouchDelegate showed that in a past iosched Jan 16 06:43:46 hmm, maybe i was thinking about something else Jan 16 06:44:59 wow that looks so complicated Jan 16 06:45:07 i just want my checkbox touch bounds to be...bigger Jan 16 06:45:07 :P Jan 16 06:45:13 i wish i could just add padding :( Jan 16 06:45:54 canadiancow: maybe you could use a CheckedTextView ? Jan 16 06:49:35 does that class need something special to work? Jan 16 06:49:40 im not seeing anythign :P Jan 16 06:50:07 i think maybe by default it doesn't show a checkbox. i mainly have used it in listviews, hold on let me grep for it Jan 16 06:51:00 android:checkMark="?android:attr/listChoiceIndicatorMultiple" Jan 16 06:52:05 nah i want a normal checkbox Jan 16 06:52:50 oh well i'll survive without extra touch space for now Jan 16 07:03:06 Hello! How i can draw (using standard canvas framework) shadow inner or outer of my arc(not filled) Jan 16 07:04:29 kevinb: tee hee, now it works, but when the menu comes back its covering up part the view (which is good for the animation, bad because I cant scroll all the way down there) Jan 16 07:04:33 If I've got a long running operation to do when I press an action item on the CAB so I use a background thread. The question is how do I dismiss the CAB when done Jan 16 07:04:33 keep on fiddling around i guess :/ Jan 16 07:19:54 :/ I need to resize the height of a view by the height of another view, but their LayoutParams only contain WRAP_CONTENT for FILL_PARENT Jan 16 07:22:34 you can use View.getHeight or View.getMeasuredHeight Jan 16 07:22:48 anyone here happen to have used J.Feinstein's SlidingMenu? Jan 16 07:25:02 aw hell yeah Jan 16 07:33:44 hi all, can somebody give me some advice on this question, the address: http://stackoverflow.com/questions/14311664/how-to-dispatch-the-touchevent-between-multi-view-which-are-overlaped Jan 16 07:36:21 The only thing thats nice about android being so frustrating is that you feel satisfied solving problems Jan 16 07:36:36 but the amount of frustration you go through is worse than in other settings :/ Jan 16 07:38:37 balls2thewall: do you know what the difference is between that and SimonVT's ? Jan 16 07:40:19 g00s no clue who/what that is Jan 16 07:41:03 https://github.com/SimonVT/android-menudrawer Jan 16 07:41:15 its the same thing, idea, i think Jan 16 07:42:10 any particular reason to use it over Feinstein's? Jan 16 07:42:20 i have no idea :| i was asking Jan 16 07:44:44 Hello, I'm trying to follow a tutorial for developing a live wallpaper... at one step, it says to create an intent with an onClick that sets up the wallpaper. It uses properties from WallpaperManager, like ACTION_CHANGE_LIVE_WALLPAPER, that apparently don't exist for me. Jan 16 07:45:27 kakazza: yes, tape works fine on other file systems Jan 16 07:45:58 level1: check API level are you building against and check what API level ACTION_CHANGE_LIVE_WALLPAPER was added in Jan 16 07:55:00 Leeds, you have me all OCD about the damn docs now Jan 16 07:55:01 String[] selelectionArgs = { String.valueOf(rowId) }; Jan 16 07:57:08 canadiancow: you could probably devote the rest of your life to improving the docs, and never even fixing everything Jan 16 07:57:20 im not even talking about "improving" in the traditional sense Jan 16 07:57:25 im talking about spelling/grammar Jan 16 07:57:27 typos Jan 16 07:57:32 sample code that doesnt compile Jan 16 08:00:11 canadiancow: there is actually a serious point that someone should care - be paid to care Jan 16 08:00:46 there is at least one person in charge of docs Jan 16 08:01:04 now this may just come down to staffing Jan 16 08:01:08 maybe MORE people are needed Jan 16 08:01:26 but dont think that there isnt anyone whose job title is "make android docs good" Jan 16 08:01:34 s/title/description/ Jan 16 08:02:05 that would be a strange title :) "Hello, I'm John, and I'm make docs good manager" Jan 16 08:02:28 actually, we had that at Intel Jan 16 08:03:11 the engineers wrote the docs, and they were passed on to a technical writer Jan 16 08:03:32 the tech writer had a QA function; they and QA did not report to the dev manager Jan 16 08:03:40 either could veto a release Jan 16 08:03:42 it's actually more a technical *editor* that we're talking about Jan 16 08:04:19 thats what the tech writer did. they didn't write anything, really. they were editors Jan 16 08:04:54 and since a lot of our docs would up as printed books, that made things more serious i guess Jan 16 08:05:35 thing is, it's a matter of polish and technically irrelevant detail - which we know Android hasn't historically been good at, because everyone has been too busy working on the relevant stuff Jan 16 08:05:49 Leeds: s/Android/Google/ Jan 16 08:06:10 p_l: probably... Jan 16 08:07:04 i get the impression google is more adept at writing things for internal consumption Jan 16 08:07:34 g00s: a lot of stuff afaik flows on the intranet and q&a on mailing lists... Jan 16 08:08:20 I don't think it would be unreasonable to say that nothing gets to android.com without being run through a *spell checker* at least :) Jan 16 08:08:48 Leeds: that's basic courtesy done for you by flyspell in emacs ;) Jan 16 08:09:22 i think most of the errors I find are sins of omission Jan 16 08:09:35 like, the doc for a method just isn't there at all Jan 16 08:09:47 or it can throw an exception, but nothing is mentioned in the docs Jan 16 08:10:18 g00s: that's obviously an issue... but it's a different issue from spelling mistakes and misnamed methods Jan 16 08:10:28 i find those too Jan 16 08:11:22 https://code.google.com/p/android/issues/detail?id=38885 Jan 16 08:11:24 for example Jan 16 08:11:49 hehe, thats great Jan 16 08:12:58 i fixed >20 in the past few days Jan 16 08:13:15 define "fixed" Jan 16 08:13:58 if I had a nickle for every person who claimed to have fixed some code but only ended up breaking something else, i'd have a lot of nickles Jan 16 08:14:15 for example: https://android-review.googlesource.com/#/c/49610/ Jan 16 08:14:36 pragma-: soon enough you can get a sock and then do something about those people... Jan 16 08:15:17 ...with the nickels (hopefully that was implied) Jan 16 08:15:18 Hello! i use Paint.setShadowLayer for drawing shadow but this shadow is not so intensive how i can do it more visible? Jan 16 08:16:48 my be i should draw black background and transparent corners of my forground? Jan 16 08:18:08 but pragma-, about 20 fixes along those lines. the source for the changes isn't public, but it's live on d.android.com Jan 16 08:19:42 someone on our team wrote a custom tab view Jan 16 08:19:49 without the ability to get the current tab :/ Jan 16 08:23:33 who would want to do that :P Jan 16 08:23:47 encapsulation ! Jan 16 08:26:23 interestingly enough, thats exactly the argument they used Jan 16 08:26:58 :O Jan 16 08:29:31 welcome to Classes-Oriented Programming, the devil that destroyed OOP ;) Jan 16 08:29:59 maybe someone know how draw visible intensive shadow without workarounds? ^( Jan 16 08:30:21 using paint Jan 16 08:33:43 "horse meat found in beef burgers" … canadiancow they are diluting your brand Jan 16 08:34:32 ... isn't horse meat usually worth much more than beef? Jan 16 08:34:52 dunno … a lot of people had to give up their horses in hard times Jan 16 08:34:55 :( Jan 16 08:35:35 g00s: yes, but that was after they had eaten most other stuff :) Jan 16 08:43:44 ListView newb here. I've never used a listView, but I know you need one for long lists, if I just want a short list of 4 items, how would I go about adding that in Android? Jan 16 08:44:15 a list of 4 items could be overkill; LV is for variable sized data usually Jan 16 08:54:16 g00s: If I just "had" to use listviews for a 4 item list. How do you recomend I do it? Jan 16 08:54:24 is there any way to post application/json form directly into a webview? Jan 16 09:01:44 Hi all. I'm fighting with a strange issue: I have a programmatically created EditText. If I set gravity to Gravitty.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL, it works fine ... until I setBackgroundColor() on the text field, in which case vertical gravity comes back to TOP. Jan 16 09:02:23 I'm looking through the source code to find out why, but nothing jumps to me as obvious. Any lead on this? Jan 16 09:03:59 http://blog.jetbrains.com/ <--- lol @ header Jan 16 09:09:07 fpillet whats the background your setting ? Jan 16 09:09:15 color drawable ? Jan 16 09:15:38 StingRay_: plain color Jan 16 09:16:21 StingRay_: http://stackoverflow.com/questions/5017513/custom-edittext-vertical-alignment/14348474#14348474 Jan 16 09:16:32 http://tktype.com/chartwell.php is a font that uses opentype ligatures to render charts - does android support this? (OpenType ligatures in general, chartwell specific) Jan 16 09:16:38 natively that is, so not using webkit Jan 16 09:16:50 My code is there. When I comment out the two setBackground calls, gravity works just fine. Jan 16 09:17:30 what does the m in instance variable stand for? Jan 16 09:17:52 shit did anyone see the helicopter crash in london just now? Jan 16 09:18:15 I saw the news, pictures and live feed Jan 16 09:18:34 madness Jan 16 09:19:22 superfluous: in standard conventions, m_ in instance variables stands for "member" Jan 16 09:19:29 member ok Jan 16 09:19:56 if the standard is m_, then how come everything I see leaves out the _? Jan 16 09:20:07 standard is m not m_ Jan 16 09:20:11 depends on the programmer Jan 16 09:20:16 the m_ is horrible! Jan 16 09:20:29 and the conventions used. Some people (a lot from C++) use m_, others use just m Jan 16 09:20:35 even the m is horrible Jan 16 09:20:38 and others (like myself) don't use anything at all :-) Jan 16 09:20:53 I like the _ from iOS :) Jan 16 09:21:00 * Zharf uses post _ in c++, but nothing in java Jan 16 09:21:01 _ is not from iOS Jan 16 09:21:08 i just use 'camel convention' like myVariable Jan 16 09:21:25 it may not originally be from iOS, but its what iOS people use Jan 16 09:21:29 standard java convention: don't use any at all, code style guidelines for contributing to android source code is m, thats how it came a lot of ppl also doing that in their own application, that actually doesn't need to fullfill the code style guidelines for source code contribution Jan 16 09:21:30 Since nowadays, IDEs do a proper job at coloring instance / static / local variables, there's no point in using prefixes Jan 16 09:22:05 its around that time we discuss hungarian notation and OO languages again Jan 16 09:22:09 yeah Jan 16 09:22:13 g00s, ;_; Jan 16 09:22:17 fpillet: +1 for that, I also stick to the standard java conventions, only if I make something open source for android Jan 16 09:22:18 g00s: COP, not OOP ;) Jan 16 09:22:25 since ron_frown isn't here, and we can't argue intellij vs eclipse Jan 16 09:22:43 I can be the strawman for IntelliJ :-D Jan 16 09:23:04 I'm always ready to defend intellij! Jan 16 09:23:06 I would like to take netBeans position :) Jan 16 09:23:20 id like to try it out more Jan 16 09:23:20 Leeds has the vi position Jan 16 09:23:31 but i cant get it to like my project :( Jan 16 09:23:33 who takes Emacs? Jan 16 09:23:38 though intellij would be nothing with ideavim Jan 16 09:23:39 p_l takes emacs Jan 16 09:23:48 he probably uses slime for java , too Jan 16 09:23:49 yeah NetBeans + jVi plugni :) Jan 16 09:29:56 is there a way, in the xml, to say that android:layout_marginBottom="height of view below it" in a FrameLayout?(I think you can do it with relative, but i'm using frame) Jan 16 09:30:56 can anyone ballpark this for me? I have a listview1, i click an item to go to another listview2. Now, both of them load over the network and save to a database. When listview1 loads up, the items show up immediately like a good list. When I click one of them to bring up listview2, it loads and finishes loading but the item is not displayed. If i go back to listview1 or force stop the app and restart it, and then click the same item in l Jan 16 09:30:57 istview1, listview2 populates properly. I'm figuratively pulling my hair out Jan 16 09:31:04 sorry for the huge paragraph Jan 16 09:31:30 superfluous, what about layout_weight ? Jan 16 09:31:34 use that (?) Jan 16 09:31:41 oh maybe i'm mistaken Jan 16 09:32:00 huh, my nexus 4 just restarted Jan 16 09:32:37 I'm not sure that would work how I want it to...the margin is dynamic while it runs, but for some reason it starts wrong Jan 16 09:32:43 well, at least you have a Nexus 4 :) Jan 16 09:32:58 lol Jan 16 09:33:43 any idea about my hair pulling issue? Jan 16 09:33:53 superfluous, try this? http://stackoverflow.com/questions/4188859/how-to-get-a-buttons-height-to-match-another-elements-height Jan 16 09:35:06 superfluous, or this, this might be more relevant: http://stackoverflow.com/questions/5733830/stretch-image-in-framelayout-to-match-neighboring-elements-height Jan 16 09:37:08 is there any way to pass an to an intent that calls an external app, to give that app permissions to my app cache dir ? Google docs suggest not Jan 16 09:38:54 ah found my solution, getExternalCacheDir() Jan 16 09:39:39 g00s: actually, for Java, I use IDEA Jan 16 09:39:49 p_l: i was just joking :P Jan 16 09:40:21 unfortunately there is no usable mode for Java right now (that doesn't require maven) Jan 16 09:40:29 ... otoh, I actually mavenised the current project Jan 16 09:40:49 oh, no i havent, dam these permissions Jan 16 09:42:06 also, sitting with your back to the office doors is bad Jan 16 09:42:17 the maven guys always did the weirdest xml; they hated attributes Jan 16 09:42:28 g00s: it's called 2nd Normal Form Jan 16 09:42:46 and it's significant part of the cancer that made XML into swear word Jan 16 09:43:09 yeah, fuck xml for human readable stuff Jan 16 09:43:22 and "fuck making sense" Jan 16 09:43:54 somehow, i have to segway …. antlr 4, is almost ready Jan 16 09:44:02 on of my favoritest tools :D :D :D Jan 16 09:44:24 (sp) Jan 16 09:44:25 btw, why sitting with doors behind you is bad? Because surprise Lieutenant Colonel. Jan 16 09:44:51 i hope 4 runtime doesn't need antlr3.5 & ST Jan 16 09:45:04 although, its only 165kb i guess Jan 16 09:45:15 what is the earliest I can call view.getHeight() and have it be accurate? Jan 16 09:45:24 ie not 0 Jan 16 09:45:38 onLayout i would guess Jan 16 09:46:14 hmm, I'm thinking of upgrading my Eclipse IDE to Juno Jan 16 09:46:24 d'oh Jan 16 09:46:34 anyone else on Juno yet? Jan 16 09:46:39 i use 3.8 Jan 16 09:46:40 onResume seemed to work...? Jan 16 09:46:41 belgianguy, i use juno Jan 16 09:47:08 and is it worth the upgrade from Indigo, brx_ ? Jan 16 09:47:25 its a downgrade Jan 16 09:47:26 oh nope, onResume failed me too Jan 16 09:47:50 belgianguy, I upgraded cuz indigo didnt save my workspace for some reason Jan 16 09:48:04 monsti: that bad? :/ Jan 16 09:48:22 theres a few more 'templates' for creating a new project, such as a viewpager project Jan 16 09:48:38 apart from that I havnt noticed much difference really Jan 16 09:49:18 iirc there was something with better native (NDK) debugging, too Jan 16 09:49:29 not sure about that Jan 16 09:51:47 ah, maybe then I'll just wait, I only use it for NDK anyway Jan 16 09:52:10 :/ how why is this hard? FrameLayout { LinearLayout1 LinearLayout2 }, make LinearLayout1 have the bottom margin be the height of LinearLayout2 Jan 16 09:52:12 :/ Jan 16 09:53:10 superfluous any reason you dont use relative layout and use the relational alignments ? Jan 16 09:54:11 as in LinearLayout2 == android:layout_below="@id/layout1" Jan 16 09:55:05 StingRay_: 2 reasons: 1, the class I'm using is a subclass of FrameLayout. 2, I need to animate LinearLayout2 away and be GONE, and be able to see what's under Layout1. Using other layouts left me with whitespace where the view was until the animation finished Jan 16 09:55:35 hah! No idea what happened but long live the Almighty CursorLoader. Switching to that from the older implementation solved it. Jan 16 09:55:56 maybe one day I'll find out what really happened. Jan 16 09:58:18 superfluous interesting...at any other time of the day I think I would be able to visualise what it is your doing, however I think you just illustrated an important point.... I NEED more coffee! Jan 16 09:58:36 haha Jan 16 09:59:04 Its not hard. This is basically day 2 of android for me, and they're making me do a hiding/showing menu like in google+ app home screen Jan 16 09:59:57 oh you mean a slide in one ? Jan 16 10:00:04 yep Jan 16 10:00:09 yeah i did one of those Jan 16 10:00:12 works quite well Jan 16 10:00:30 on lower api had to play with animation listeners Jan 16 10:00:37 due to no attrib anims etc Jan 16 10:00:46 to make it smooth and lovely Jan 16 10:00:55 i got it working OK, except that the default is 'show the menu' but the margin is still set to 'use all the frame' and so its not so great Jan 16 10:01:04 yeah i got animation listeners because its what google sent me to Jan 16 10:01:34 I had 2 modes on mine Jan 16 10:01:40 a reveal and a push Jan 16 10:01:46 reveal is like g+ Jan 16 10:02:06 push is using negative layout margins :) Jan 16 10:02:11 probably not the best Jan 16 10:02:13 :) Jan 16 10:02:16 lol Jan 16 10:02:31 canadiancow: here is a tougher doc problem i often come across : http://developer.android.com/reference/android/content/CursorLoader.html Jan 16 10:02:51 the setXXX methods - the timing is very important, but the docs don't mention this Jan 16 10:03:11 i've even seen them used incorrectly in the official stock apps Jan 16 10:03:29 superfluous your doing a reveal type thing ? Jan 16 10:03:43 yeah basically just if you scroll down, hide it, scroll up, show it Jan 16 10:03:59 specifically, they set variables looked at by another thread; they are not thread safe Jan 16 10:04:26 actually, this is also a bug in the CursorLoader itself Jan 16 10:08:14 sure it works if i just say 67 in the code...but thats super platform independent :P Jan 16 10:09:03 whyyyy is getHeight() 0 in onCreate?? :((( Jan 16 10:09:20 superfluous not gone to layout manager for drawing ? Jan 16 10:09:34 <-- guessing Jan 16 10:09:41 StingRay_: I'm sorry i dont know what that is :( Jan 16 10:09:52 the view is not drawn Jan 16 10:09:58 so it is 0 Jan 16 10:10:13 oh, well probably yes Jan 16 10:10:52 if i'm making some sort of online gallery, should i sort photos by upload time or DateTaken in EXIF? Jan 16 10:10:59 but howww do i fixxx it? Jan 16 10:11:05 im tired and i want to go home :( Jan 16 10:11:06 I guess it would depend on the requirements but any inputs? Jan 16 10:11:06 Afzal give users the choice Jan 16 10:11:13 superfluous: i think onLayout is what you are loookin for ;) Jan 16 10:11:26 superfluous: and call the super.onLayout(...) before you add your code Jan 16 10:11:34 I guess it would depend on the requirements but any inputs? Jan 16 10:11:51 ah, it didn't scroll... Jan 16 10:11:56 Afzal date desc by default I would think Jan 16 10:12:00 I would like to, but this is in the activity where I'm doing this :( Jan 16 10:12:06 on upload Jan 16 10:12:11 as in upload time Jan 16 10:12:12 :) Jan 16 10:12:21 StingRay_, hmm alright, thanks :) Jan 16 10:12:23 but I would want the choice Jan 16 10:12:26 :) Jan 16 10:12:55 superfluous: let me check my code Jan 16 10:13:22 understandable, if it's upload time, it would be kinda like "post time" on google+, which makes more sense Jan 16 10:13:24 thanks for that Jan 16 10:14:18 hmm but what if it's photos in an event like sports or concert? might make more sense to sort by time taken Jan 16 10:14:21 ... Jan 16 10:14:33 oh well, yeah, giving users the choice sounds better Jan 16 10:14:36 superfluous: ok what i did, i overwrite a class Jan 16 10:14:46 hence user choice, group exif info etc Jan 16 10:14:49 superfluous: e.g. MyListView extends ListView Jan 16 10:14:55 then i can overwrite onLayout Jan 16 10:16:51 Hmm.. I could make a new subclass of this class I'm subclassing Jan 16 10:16:56 or I coudl do this Jan 16 10:16:59 http://stackoverflow.com/questions/3779173/determining-the-size-of-an-android-view-at-runtime Jan 16 10:17:17 is it hacky? Oh probably... will it get me home faster? Yes it will :) Jan 16 10:27:45 question : google docs "Schedules this file to be automatically deleted when the VM terminates normally." <--- my app quitting ? Jan 16 10:29:58 anybody used tested the perf difference between c/c++ on the ndk? Jan 16 10:42:28 perils of having to write java while keeping away from it - I just found out about `import static` :D Jan 16 10:43:44 something wrong with it? Jan 16 10:44:02 Zharf: more like I have huge, banana-like smile on my face now Jan 16 10:45:20 so you like it? Jan 16 10:45:22 thats a language feature that should be used sparingly Jan 16 10:45:32 it has its moments Jan 16 10:45:52 g00s: depends what you're doing Jan 16 10:45:58 as always Jan 16 10:46:15 I'm not sure if it shouldn't be used as often as "extends" :> Jan 16 10:47:12 * p_l looks at his code and sees two-level deep inheritance as biggest Jan 16 10:47:50 now I only need to find if I can use annotations to generate equivalent of "let" (or "with-" macro) Jan 16 10:48:20 aviraldg == mikedg ? Jan 16 10:48:24 Hi guys, i'm trying to dump logcat in a file to send it by email, but there seems to be something wrong in my code (the process never stops). Here is my code : http://paste.h3b.us/?cb3e5dfeceb56e74#2aNIoF6cjvy+mGbpdOJwha6g11qj6l+ozW4LShmTmTQ= Jan 16 10:59:26 Hi, just started today and have a quick entry level question: does the InfoLink string in this pastebin have a sepcific name ? http://pastebin.com/9stHse3X Jan 16 11:00:26 The reason I ask, is because I am trying to figure how to reference each part of each item in the string Jan 16 11:02:04 Zed7 'infolink string' ? Jan 16 11:02:21 looks like an array of techlink Jan 16 11:03:30 apolgoies, this is the correct pastebin link: http://pastebin.com/tKrFxCPC Jan 16 11:04:00 so what's the question Jan 16 11:04:52 http://docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html Jan 16 11:05:01 dunno but I'd guess that link is the answer Jan 16 11:05:29 I am trying to figure out how to reference the link field of each item but specifically the on that has been clicked on in the ListView Jan 16 11:05:48 Thanks for the links, I will take a look Jan 16 11:05:49 ah so you get onItemClick() Jan 16 11:05:55 implement onItemClicked() Jan 16 11:05:58 with an 'int position' Jan 16 11:06:07 which is your index in the array Jan 16 11:06:17 I have an onItemCLick Jan 16 11:06:22 I am not sure Jan 16 11:06:28 ill pastebin my onItemClick Jan 16 11:06:39 read that link 1st Jan 16 11:06:43 about arrays Jan 16 11:06:47 ok Jan 16 11:07:46 Hello! How i can draw bitmap( little size ) on canvas by a circle and each copy of this bitmap should be rotated on angle according bitmap angle and center of circle? Jan 16 11:08:11 for example 4 bitmaps in 0 90 180 270 angles Jan 16 11:08:14 xgear one way is to rotate the canvas Jan 16 11:08:39 or you go about with sine and cosine Jan 16 11:09:16 it is possible using drawBitmap with matrix? Jan 16 11:16:11 xgear yes Jan 16 11:16:24 sure I;ve applied to bitmap b4 for rotations Jan 16 11:17:38 but i can't understand cow i can create my matrix to rotate bitmap around center of canvas with specified radius Jan 16 11:18:14 well would you not use the matrix for the rotate of the bitmap and then work out the positional info ? Jan 16 11:18:19 as in 2 sep thing Jan 16 11:18:21 when i use postRotate(0) its draw bitmap in top left corner of canvas Jan 16 11:24:39 g00s: you worked a bit with annotations and injections, right? Jan 16 11:25:44 oh man, like a year ago. i dont remember much Jan 16 11:26:25 eh Jan 16 11:26:39 * p_l was looking for a way to implement an "around" method Jan 16 11:26:42 and inject it Jan 16 11:27:02 Ahh, the good old "around" method! Jan 16 11:27:10 Wait, what? Jan 16 11:28:54 (defmethod method :around ...) ;) Jan 16 11:29:07 and (with-something ...) :) Jan 16 11:31:48 hmm... aopalliance has some interfaces to do it nicely Jan 16 11:31:51 Hi guys, I'm experimenting with android for first time and I have problem making acessible file in internal memory ... even with Context.MODE_WORLD_WRITEABLE & Context.MODE_WORLD_READABLE it has permissions 660 and I can't read it ... if I change them to 666 I can, so most propably it creates permissions wrong? Any ideas why? Jan 16 11:32:23 (the app itself can read it of course, but eg. totalcommander can't) Jan 16 11:37:49 Camera.Parameters.getPreferredPreviewSizeForVideo() doesnt work what should i do? Jan 16 11:41:29 sod it ill just use CAMERA.PROFILE_HIGH Jan 16 11:42:15 actually no i cant Jan 16 11:53:56 i was trying to add a selector to a list item but noticed it only applies to the bac kof the list item. what am i missing to mke the selector an overlay of the item? Jan 16 11:57:10 balls2thewall: there's a drawSelectorOnTop option, but in most cases you don't want that either, since it will display on top of the item, blocking any text. Jan 16 11:57:21 Best way is to make your listitem's background a selector. Jan 16 11:58:12 hey people Jan 16 11:58:18 \0 Jan 16 11:58:32 anyone got a >3.0 device with a rear-facing camera and a couple minutes to test some code for me please? Jan 16 11:58:38 HDroid :D ty Jan 16 11:59:02 is it possible to turn of autocomplete, autocapitalize and autocorrect on the browser in the samsung galaxy tab? Jan 16 11:59:42 i.e. using some html or css Jan 16 12:14:48 guidocalvano: nope Jan 16 12:15:09 guidocalvano: it doesn't affect that may users does it? Jan 16 12:15:29 last i heard there were about 3 galaxy notes sold Jan 16 12:18:19 Galaxy Note is quite popular in Europe Jan 16 12:23:14 err i meant galaxy tab Jan 16 12:23:23 too many galaxies Jan 16 12:30:05 galaxy tabs also popular in europe Jan 16 12:32:08 just wondered, why should there be sold so less? Jan 16 12:32:09 Hello every body ! Jan 16 12:32:29 i don't know any tablet more popular here i guess, except the new nexus tablets perhaps Jan 16 12:33:11 is it possible to know if an application is in background ? Jan 16 12:33:31 cause I want my service stop toasting message if my application is in background Jan 16 12:33:53 Titi: your onStop method is called, when your activity goes to background Jan 16 12:34:16 notifiy your service in that method, not to send any further notifications Jan 16 12:34:29 yes for the activity, but for the application ? cause I will not test for each activity Jan 16 12:35:43 nope because the application is nothing that can be in foreground Jan 16 12:35:49 so ofc you cannot check if it is in background Jan 16 12:35:54 only activities can be in foreground Jan 16 12:36:18 ok thx Jan 16 12:38:27 Titi: that might give you some more infformation http://stackoverflow.com/questions/3667022/android-is-application-running-in-background/5862048#5862048 Jan 16 12:39:07 it again shows the right solution, but also some wrong ones, that you could use, but shouldn't :) Jan 16 12:57:54 Hello! Jan 16 12:58:04 I have develeoped an application, and i deployed it in the emulator. However, I don't understand why the icon in applications settings shows the default android icon whereas the icon is correctly configured in the manifest file Jan 16 13:00:20 have you configured the icon in the application tag or in the activity, that is started from launcher in the manifest file? Jan 16 13:01:25 yes Jan 16 13:01:40 Also, check all drawable-*dpi dirs, I believe the default icon will be in all of those dirs. Jan 16 13:02:08 The icon appears in the application list, but in the application settings (where you can, for example uninstall it) it doesn't appear Jan 16 13:02:28 curiosly Jan 16 13:02:41 That could just be a matter of caching Jan 16 13:03:04 aha Jan 16 13:03:17 so if i shutdown the emulator and start it again Jan 16 13:03:21 it should work, right¿ Jan 16 13:03:32 Good chance Jan 16 13:03:48 thank you very much, I will try it later Jan 16 13:03:49 ;) Jan 16 13:09:39 According to d.android.com, I should always set my targetSdkVersion as high as possible. Even setting a low minSdkVersion, isn't it dangerous for running the application in a phone that has a sdk version between min and target? Jan 16 13:10:17 vuln: no Jan 16 13:10:21 except to developer Jan 16 13:11:02 is there some kind of SQLite browser I can use for android? Jan 16 13:11:26 p_l: how come except to developer? Jan 16 13:11:58 You mean the developer will have to take care and make sure everything will work regardless of the sdk version? Jan 16 13:13:50 vuln: will have to take care not to call stuff that isn't supported on older SDK levels when running on lower than the one in targetSdk Jan 16 13:14:25 p_l: isn't lint warning about that? Jan 16 13:15:38 funkbox: was having lunch, thanks for the response Jan 16 13:16:25 funkbox: do you know if it is possible to down some keyboard that responds to the autocorrect attributes in html input nodes? Jan 16 13:16:41 timroes: no idea how good lint is at it Jan 16 13:16:45 sorry don't know Jan 16 13:16:56 hmm, I'm trying to generate a procedural sphere in GLES20, the thing compiles and has no glErrors either, but what shows up looks like crunched together triangles, not a sphere Jan 16 13:17:13 what is this most likely related to? indices? texture? normals? Jan 16 13:17:22 vertex positions? Jan 16 13:18:18 guidocalvano: do you want to generally disable it for all fields or just for some? Jan 16 13:19:20 and it doesn't even resemble a sphere, it has triangles pointing in all directions, I'm guessing the GL_TRIANGLES directive pushes the GL lib to combine vertices to triangles, but these vertices don't line up correctly Jan 16 13:20:10 timroes: we want to turn off autocorrection for our site but not everything else on the tablet. context: we are making language exercise programs for primary school students… Jan 16 13:20:28 okay, add autocomplete="off" to the input fields Jan 16 13:20:41 timroes: doesn't work on the galaxy tab Jan 16 13:20:55 what the heck Jan 16 13:21:05 timroes: nor does autocorrect="off", nor autocapitalize="off" Jan 16 13:21:05 they have their own browser, right? Jan 16 13:21:12 its not the default android browser Jan 16 13:21:20 (at least if i remember the galaxy note tab) Jan 16 13:21:21 nor does spellcheck="false" Jan 16 13:21:36 we could try changing browsers Jan 16 13:21:40 yeah Jan 16 13:21:56 because if the browser ignores that tags, i geuss there is pretty less you can do Jan 16 13:22:13 default WebView and browser (and also chrome) shouldn't ignore it Jan 16 13:23:22 perhaps its also not the browser, but the samsung keyboard, that ignores, if it gets a no auto complete textfield Jan 16 13:23:33 then another keyboard could help Jan 16 13:24:06 terribly frustrating these issues Jan 16 13:24:24 I have decided that I will not get a galaxy tab for myself, that's for sure Jan 16 13:24:45 i found the keyboard in general frustrating, so I would like to blame their keyboard app for it Jan 16 13:24:54 just download some other keyboard, and try it with that Jan 16 13:43:03 Is Kivy getting any traction at all as an Android development option? Jan 16 13:46:30 is there any way to have users select contacts w/o requesting the READ_CONTACTS permission ? Jan 16 13:48:52 timroes, what is better: 1) putExtra with array of data from database, 2) get the same data again from local database in onCreate ? Jan 16 13:49:33 squ: if it depends that it really doesn't change the data between the activites pass it in the extra Jan 16 13:49:51 funkbox doubt it as there is no set way to ask for a contact as an intent/action ... afaik Jan 16 13:49:53 if you can assure it doesnt change or it won't be a failure if it would change between your activities, get it again Jan 16 13:49:57 funkbox: when you root your phone? Jan 16 13:50:09 Gifgroen: no. Jan 16 13:50:10 could you please explain why? Jan 16 13:50:28 StingRay_: ah. it's scary to read "read your contacts and personal information." Jan 16 13:50:48 I would consider passing data around, that is already on the device, as a bad behavior, if you could grep the data directly from its original source Jan 16 13:50:57 ass that with "full internet access" and yes it is Jan 16 13:51:00 Then I guess there is no wa, funkbox. At least not afaik. Jan 16 13:51:01 ass = add Jan 16 13:51:27 if it is local database then putExtra and read from database file - both are the same operations Jan 16 13:51:55 squ: also the intent extra size is limited, what means you must assure the data you want to send isnt above that limit Jan 16 13:51:57 I'll put id, and reGet it Jan 16 13:52:22 ah okay the data isn't anyway in the database, sorry I misunderstood you then Jan 16 13:52:35 no no Jan 16 13:52:36 :) Jan 16 13:52:37 i thought you e.g. selected data from a database in one activity, that was already in a DB and now want to open another with that data Jan 16 13:52:45 both activites work on selected row Jan 16 13:53:10 so the data is already in the database? Jan 16 13:53:20 and your first activity also get the data from the database? Jan 16 13:53:21 timroes, yes you understood all correctly Jan 16 13:53:22 :) Jan 16 13:53:30 yep Jan 16 13:53:42 yeah then, you don't need to put any data in the database to pass it to the second activity? Jan 16 13:53:45 because it is already there Jan 16 13:53:50 I thought putting that data into intent might save cpu Jan 16 13:54:13 so you can assure the data is always small enough to fit into an intent? Jan 16 13:54:24 its an array of 5 longs Jan 16 13:54:41 !take Jan 16 13:54:48 okay if its always that size, and thats not so much, i would say doesn't matter so much how you pass it :) Jan 16 13:55:15 i still would consider reading it again from database as a cleaner approach, since you don't pass around redundant data, that is already in the database Jan 16 13:55:50 but cannot give you any hard facts, like saved CPU time; I/O reducement; etc. to give a more objective opinion about that Jan 16 13:56:50 thanks Jan 16 13:58:55 GCM question: the android docs on "Getting started" with GCM talk about a GCMRegistrar and callbacks. And the architectural overview talks about Intent broadcasts and BroadcastReceivers… What is the way to go? The documentation confuses me… Jan 16 14:23:11 I'm refreshing my Java knowledge and came across a '#' in some example code: "Loader#deliverResults(D result)". I tried googling, butI couldn't find any explanation of what the usage of # is. I'm confused. Jan 16 14:23:53 Here: http://www.androiddesignpatterns.com/2012/08/implementing-loaders.html Jan 16 14:31:02 Okay so vertical alignment in EditText is hosed. Computations are buggy, and relying on the "minimum height" of the current background drawable. Fun. Jan 16 14:31:26 Good news is, coding a specialized drawable will fix the problem Jan 16 14:32:00 heya folks Jan 16 14:32:06 hey... is there any way to profile activity startup? basically the time from "startActivity" to end of the "onResume" cycle? Jan 16 14:32:36 one small question - I have an action on my notification, and it leads to a pending intent that runs an activity without a layout, just does some logic and finsh()es Jan 16 14:32:59 However, when I do click that action, I still get sent to my app Jan 16 14:33:32 I imagine it's related to the fact that my notification itself has a pending intent that does just that, and apparently, clicking an ACTION on the notification causes both of those to trigger Jan 16 14:33:58 is that normal? Jan 16 14:35:25 how do I reference a plain java project in ADT? Is it at all possible, or does the library project have to be an Android library? Jan 16 14:36:55 the variable X has a certain value. How do I reference it in my layout xml? Jan 16 14:37:02 (or how do I reference an ID?) Jan 16 15:03:37 hi, is it possible to draw a line with more bending points than using moveTo + CubicTo? Jan 16 15:04:11 Will declaring layouts using the swdp format work OK for deploying to API levels < 13? Jan 16 15:04:27 okay, so the sphere renders, yay Jan 16 15:05:00 when the light moves over it, I can see the color I set up, but otherwise it's very dark Jan 16 15:05:17 Irwin i think you should also use 'large' etc for lower Jan 16 15:05:25 and now I'm trying to enable the texture, but I seem to be doing something wrong in AAssetManager_open etc Jan 16 15:06:02 xorgate, I see, no backwards compatibility Jan 16 15:27:56 How can I access the content of a variable set in my .java source file from my .xml layout file? Jan 16 15:28:47 vuln, you want to put that var in xml as well Jan 16 15:30:34 when my process is killed and the app is launched, Android wants to restore my ViewPager and all of the fragments associated, but my app is not in a state where these can be displayed anymore -- how to detect process was killed and then avoid reloading these fragments and do something else? Jan 16 15:34:17 I added a custom style for the ActionBar for one activity and invoked it with getActionBar().setCustomview()... but when I navigate to another activity without this custom view, the app crashes... Jan 16 15:34:38 What did I do wrong? oo Jan 16 15:35:25 oh, nevermind, a clean build fixed it o_o Jan 16 15:41:43 hello .. game like need for speed drift , asphalt , the dark knight ... (3d high graphic game) , these game use ndk and C/C++ ?? or can implement whole game in java and under dalvik ?? Jan 16 15:41:58 (sorry i some kind of newbie in android) Jan 16 15:43:04 NDK , C/C++ etc Jan 16 15:43:07 its faster to use native code Jan 16 15:43:18 really what you want fior that level of performance Jan 16 15:43:20 I ported a FS to android Jan 16 15:43:29 so I had to use NDK Jan 16 15:43:32 Technically you can but C/C++ is better Jan 16 15:43:43 NDK/C way better Jan 16 15:43:44 weox: look at Unity and other game engines honestly if you want to do that level of work and have no idea how to Jan 16 15:43:54 Hi guys, what is the best way for scheduling server calls in my app? Jan 16 15:44:30 I want to make a server call every interval, but can't think of the best way to do this Jan 16 15:45:25 thepoosh: i use json with jackson Jan 16 15:45:27 Datalink-M ,TheBunnyZOS : i am just Curious , i just want know it is possible to implement these game in java and dalvik ? or if someone want 3d high graphic should work with ndk ? Jan 16 15:45:42 you can do GL and 3d in Java yes Jan 16 15:46:02 but for performance reasons… like the games you listed would be done in a C/C++ engine Jan 16 15:46:09 thepoosh: on the server sitze i use .net 4.0 with wcf and a json wraßßer Jan 16 15:46:27 also weox a lot of game business are going to target many platforms Jan 16 15:46:37 to distribute risk etc Jan 16 15:46:48 and C/C++ is the common language everywhere Jan 16 15:47:54 thanks all ... Jan 16 15:48:13 thepoosh: it depends. You might want to use AlarmManager to set a periodic alarm for this. Jan 16 15:48:24 If you want this to only run while your application is running, just use a Timer or something Jan 16 15:48:27 dont try with java Jan 16 15:48:33 if you want performance Jan 16 15:48:35 monsti: what's the connection to JSON? Jan 16 15:48:41 I'm talking about the scheduler Jan 16 15:49:06 lov: I read that Timer is not so good Jan 16 15:49:25 thepoosh: then just make your own thread to do it. Jan 16 15:50:19 thepoosh: i added a syncadapter with a 15min timeframe Jan 16 15:50:39 I'm thinking about this Jan 16 15:50:53 it depends what you need... Jan 16 15:50:54 lov: how about ScheduledExecutorService? Jan 16 15:50:58 is it any good? Jan 16 15:51:18 I need to send presence calls to the server every interval Jan 16 15:51:19 thepoosh: the syncadapter also runs if your app wasn't started at boottime Jan 16 15:51:38 I don't need to do this when app is offline or backgrounded Jan 16 15:51:38 or was kicked by the OS Jan 16 15:51:43 just when online Jan 16 15:51:58 it's a precense call Jan 16 15:52:18 so a timer in the activity would do it? Jan 16 15:52:26 do the call in a thread ... Jan 16 15:52:37 the only issue is that I'm out of an activity Jan 16 15:52:49 I have a reference to the application context Jan 16 15:52:58 well add a timer thre Jan 16 15:53:07 can I create a handler to that and hook on the main thread? Jan 16 15:53:16 also there is a scheduler call Jan 16 15:53:26 sorry a timer event Jan 16 15:53:38 this is a bit better, because android can decide when to wake up the device Jan 16 15:54:00 thepoosh: I would strongly recommend that you look into using Services. Jan 16 15:54:01 so this is batterie optimized Jan 16 15:54:02 again. I don't want to wake up the device Jan 16 15:54:55 yes but you don't want to eat the batterie if the device goes off Jan 16 15:54:58 lov: so basically, the server manager that has a reference to the app context, can start a service? Jan 16 15:55:06 huh? Jan 16 15:55:14 thepoosh: where is your networking happening? Jan 16 15:55:23 If you're performing a long-running action, have it happen in a service. Jan 16 15:55:37 I have a thread for that Jan 16 15:55:37 If you're doing networking, you should consider having it all happen in your Service, and having your activity reference the Service. Jan 16 15:55:41 yeah. Jan 16 15:55:45 consider not doing that. Jan 16 15:55:50 why? Jan 16 15:56:16 because Threads don't have any visibility to Android, so it has no way to know you're actually doing things in the background Jan 16 15:56:22 I have a synchronized method that starts a new thread that calls the server Jan 16 15:56:23 your application is liable to be reclaimed and NOT restarted. Jan 16 15:56:46 and it has a callback function that gets executed after the result comes back Jan 16 15:57:04 Read this: http://developer.android.com/training/basics/network-ops/index.html and this: http://developer.android.com/guide/components/services.html Jan 16 15:58:00 the issue is that multiple activities call the server with the rest of the apps network activity Jan 16 15:58:13 so I have a shared singleton Jan 16 15:58:24 that has a method for executing requests Jan 16 15:58:35 is that doable in a service? Jan 16 16:00:14 lov: I read that, but I feel more comfertable using a thread for this Jan 16 16:07:07 thepoosh: OK. Just don't be surprised when Android decides that your process isn't actually doing anything and kills it from under you. Jan 16 16:07:34 And yes, you can have multiple activities bind to a service. Jan 16 16:08:02 I really, really strongly recommend that you read about Services and learn to use them if you're doing anything long-lived at all, especially networking. Jan 16 16:08:38 thread will be killed earlier than service Jan 16 16:08:57 service could be in another process Jan 16 16:09:39 .... huh? Jan 16 16:10:41 i mean that i agree with you ^) Jan 16 16:10:47 i mean that i agree with you :) Jan 16 16:10:53 oh Jan 16 16:11:02 it is not skype Jan 16 16:11:04 ^( Jan 16 16:11:38 o_O Jan 16 16:12:07 %) Jan 16 16:14:06 but when use service which works in another process - applicaion class can leak when creating this service Jan 16 16:14:16 xgear: services are NOT seprate process Jan 16 16:14:31 fine, gotta go home Jan 16 16:14:37 but you can do it separate Jan 16 16:14:47 lov: thanks, if you're here tomorrow I'll pick your brain some more Jan 16 16:15:09 using android:process attribute in manifest Jan 16 16:16:11 as i understand this application leak because for new process system create new classloader and application class created for this classloader Jan 16 16:17:03 xgear: you can create services in other processes, but this is not a typical approach. Jan 16 16:17:27 yes Jan 16 16:17:30 i agree Jan 16 16:18:31 hi guys Jan 16 16:18:53 maybe it is usefull for complex of applications which work regardless to core application Jan 16 16:19:21 Hosting your service out of process is only useful for two cases: Jan 16 16:19:23 i've got question regarding member variables in activity when calling indent Jan 16 16:19:32 when indent returns data to onActivityResult Jan 16 16:19:36 1. Your main process is buggy and crashes frequently, and you don't want to drag down that other service Jan 16 16:19:43 should member variables from activity be set or not? Jan 16 16:19:54 2. You're using too much memory, and need to put your other service in another process so that you don't bust your heap cap Jan 16 16:20:18 For reference, Audible does this because of 1 (and performance reasons that are no longer relevant), and we're moving our remote service back into the main service because christ what a pain in the ass it is Jan 16 16:20:24 i can't find anything usefull on google (i guess u'm searching wrong) Jan 16 16:20:41 outB52: indent? Jan 16 16:20:47 Do you mean intents? Jan 16 16:20:51 blah intent yes Jan 16 16:20:59 I don't get how Oracle gets away with releasing such buggy/vulnerable software and doesn't suffer the least in image Jan 16 16:21:02 the answer is "I don't know, should they?" Jan 16 16:21:21 :) don't know that's why i'm asking Jan 16 16:21:22 I don't know what your member variables are, or whether you'd want to put anything in them from your activity result Jan 16 16:21:23 "we're moving our remote service back into the main service because christ what a pain in the ass it is" i heard a lot stories about this :) Jan 16 16:21:30 what is the proper behaviour Jan 16 16:21:41 does lruCache persist after the activity is destroyed? Jan 16 16:21:41 outB52: without any sort of meaningful data I really can't tell you. Jan 16 16:22:05 whell i have simple example Jan 16 16:22:06 http://developer.android.com/training/camera/photobasics.html Jan 16 16:22:51 outB52: my point is "What are you doing with the data you're getting in onActivityResult" Jan 16 16:23:13 well in my case Jan 16 16:23:20 i'm just saving picture Jan 16 16:23:25 ... ok Jan 16 16:23:26 and it's thumbnail Jan 16 16:23:41 but the problem is all the member variables of that activity are null Jan 16 16:23:50 er Jan 16 16:23:54 why are they null? Jan 16 16:24:18 well that's something i'm trying to find out Jan 16 16:24:18 :) Jan 16 16:24:22 ... Jan 16 16:24:27 is that a normal behaviour Jan 16 16:24:29 OK, you know about the Activity lifecycle, right? Jan 16 16:24:33 it can be Jan 16 16:24:33 yes Jan 16 16:24:37 Hi! Do "keystore" files contain sensitive/private data? Jan 16 16:24:40 has your activity been destroyed and recreated? Jan 16 16:24:46 if so, you have an entirely new instance of your activity. Jan 16 16:24:53 lov: if i'm true i don't know Jan 16 16:25:00 but i guess it is Jan 16 16:25:03 ... Jan 16 16:25:15 outB52: http://developer.android.com/training/basics/activity-lifecycle/index.html Jan 16 16:25:20 You should go through this first before moving on Jan 16 16:25:41 You know, the files you use for signing Jan 16 16:25:53 trentg: "yes" Jan 16 16:25:59 trentg: they contain the private key you use for signing. Jan 16 16:26:04 lov: ok i'll read it Jan 16 16:26:16 Obviously, you don't want other people to have that key, because they could use it to sign apks with your signature Jan 16 16:26:28 how much this actually matters is up to you Jan 16 16:26:33 it doesn't contain your credit card information or anything. Jan 16 16:27:22 lov: one short question, are member variables recrate on onRestoreInstanceState() automaticaly or not? Jan 16 16:27:29 hm... better be safe and delete it Jan 16 16:27:59 No, you're responsibly for restoring your state from the bundle Jan 16 16:28:27 ok Jan 16 16:28:39 thank you then i have my anwser :) Jan 16 16:29:00 i don't know but i tought that member variables are save/restored automaticaly Jan 16 16:34:02 is there any way someone could spoof google cloud messages which then end up delivered to my app? Jan 16 16:34:26 xorgate: why Jan 16 16:34:44 curious Jan 16 16:34:47 no Jan 16 16:35:16 or rather, have them send a request to google's servers pretending they're my backend Jan 16 16:35:53 unless you give out your secrets no Jan 16 17:06:36 Hi Guys, how does update of widget works? from what i read there is minimum 30 minutes time for widget to update and so far i found only little workaround for that -> http://www.gotoquiz.com/web-coding/programming/android-development/how-to-make-an-android-home-screen-widget-update-only-when-visible/ Jan 16 17:06:55 * pfn kicks the download manager for being broke up with respect to protected links Jan 16 17:09:54 hi Jan 16 17:10:26 what's the name of the system app that installs updates (the one in settings/about)? Jan 16 17:10:42 i need to trigger upgrade from my app Jan 16 17:12:47 naquad: i think that depends on the manufactur Jan 16 17:13:10 I have an interesting problem with a DNS redirect. Web content resolves to the correct internal address, but when I pass the address into a VideoView, it somehow finds the internet facing address. Jan 16 17:13:12 e.g. my app on the tablet says Acer-System-Update in its title, so I guess its related to that tablet Jan 16 17:13:37 pinging on the android device show the correct address. Jan 16 17:14:23 Running getprop net.dns1 (and net.dns2) shows the correct DNS server in dns1, and a blank entry on dns2. Jan 16 17:14:46 What could possibly be making my VideoView not go through the DNS redirect? Jan 16 17:14:50 This is very strange. Jan 16 17:15:34 need to leave the wizards tower and do vlad's first :-/ Jan 16 17:16:49 pfn: yeah sounds reasonable :) Jan 16 17:17:36 I'm having trouble with a webview in Android 4.0. No matter of setting zoom enabled I cannot seem to zoom in the webview. And it is always at a zoomed in level. Any thoughts? Jan 16 17:18:11 In my app I'm going to have 3 ListFragments getting their data from a single table but with different selects, this table is updated from a backend service (json over http). My question is what the "best" practices to do this today (haven't done any android apps for 2.5 years). Target is > 4.0.3 Jan 16 17:20:43 triptec: I don't know if there are any best pratices applicable here, sounds like a pretty cut and dry excercise most people do. Jan 16 17:22:29 Elderwolf: Okay, well I was thinking if I should use the LoaderManager and friends or go with ole asynctask Jan 16 17:23:34 So far I've just used asynctask and manage things with a singleton Jan 16 17:23:58 triptec: loaders aren't really an alternative to asynctask Jan 16 17:24:03 ie, see asynctaskloader Jan 16 17:24:52 Maurits_: ok Jan 16 17:25:36 can someone help me with this Camera Activity? all I get is black screen: http://pastebin.com/zYqAXHQN Jan 16 17:30:02 i want to play a notification sound when i get a cloud message, using MediaPlayer.start() it takes a while before the sound is done, but in the meantime the IntentService calling it will be gone. How can I keep it alive to do cleanup when the sound finishes? Jan 16 17:30:23 Is there a more active channel that answers android dev questions? Jan 16 17:30:42 Elderwolf stackoverflow Jan 16 17:30:43 xorgate: why not just use Notification#sound ? Jan 16 17:31:12 even more active then 400+ ppl Jan 16 17:31:15 hmm eh no? Jan 16 17:31:31 evanc i want to request (and return) audiofocus Jan 16 17:31:53 and i want to set volume to max and when done set it back Jan 16 17:32:23 xorgate: heh I consolt the inanimate objects first. I don't like people interaction. Jan 16 17:39:48 i was wondering: does google ever offer any support for those who develop cool mobile apps and want to port them to android? Jan 16 17:40:15 donno, like some extra support, dev devices, sponsoring Jan 16 17:40:35 pa: they do. they have an astonishing good documentation, and give weekly public developer hangouts Jan 16 17:40:42 also does a lot in G+ in the communities Jan 16 17:41:09 ah thanks Jan 16 17:41:14 dev devices are not needed, you can develop on every regular device, sponsoring, make a good android app, and they might promote it in the store Jan 16 17:49:29 i think if you have an app that was good enough that google really wanted it on android, 1) you'd have the money to buy a device, and 2) you'd want it on android just as much Jan 16 17:49:54 in a way.. :) Jan 16 17:50:54 canadiancow: +1 yeah if you don't want to develop for android just don't do it, and even if you don't want to buy a device, the sdk provides and emulator, pa Jan 16 17:51:19 so you can emulate any device you want (ofc testing on a real device is always recommended also, but you can neither test is on all android devices out there) Jan 16 17:53:50 Hi, does anyone know very simple browsable OS project that has a repository with multiple revision levels? Jan 16 17:54:52 Hi Guys, how does update of widget works? from what i read there is minimum 30 minutes time for widget to update and so far i found only little workaround for that -> http://www.gotoquiz.com/web-coding/programming/android-development/how-to-make-an-android-home-screen-widget-update-only-when-visible/ Jan 16 17:57:09 Trudko: if you want the widget to update more frequently, you need to use AlarmManager and schedule broadcasts Jan 16 17:57:31 karakuri: yeah ok thats solution described in article so I will go with that Jan 16 17:57:50 if you want the widget to only update while the screen is on, you can get a handle to PowerManager and check isScreenOn() Jan 16 17:58:03 seems bit odd though , it is workaround any plans from Google to fix this? Jan 16 17:58:39 fix what? The designed behavior? Jan 16 17:58:43 this is intentional. Jan 16 17:58:49 i think they were trying to avoid someone setting it to a small number and having the system broadcast appwidget updates very frequently Jan 16 17:58:59 The idea is that your application can be queried for updates no more frequently than every 30 minutes. Jan 16 17:59:11 If your application itself broadcasts that an update happens, that can be more frequent Jan 16 17:59:39 the idea is that the launcher doesn't start a bunch of apps just to say "Hey, anything new?" Jan 16 17:59:50 the onus is on the app to say "Hey, something just happened, update" Jan 16 18:00:30 yes, polling sucks ;) Jan 16 18:00:58 and wastes battery/resources Jan 16 18:01:39 this and other messages brought to you by "how not to program like it's a 1985 dos machine 101" Jan 16 18:02:58 Brought to you by "your app isn't very important, stop using resources like it is" Jan 16 18:03:21 oh god this Jan 16 18:03:33 a certain developer thinks that it's no problem to just run our app in the foreground, always Jan 16 18:03:39 "It's a great customer experience!" Jan 16 18:03:39 importance isn't really key .. email could be pretty important but you don't want it chewing up all your battery even if it is Jan 16 18:03:47 raaaaaaaaaage Jan 16 18:04:24 can someone help with this Camera acivity? all i get is black screen :( - http://pastebin.com/zYqAXHQN Jan 16 18:04:35 really the _more_ important the _less_ battery it should take, because presumably you're using it more Jan 16 18:04:41 Hi. I have a question about order of events. At onStart, I call a function. That function then calls 3 other functions. What I'm noticing is that the third function is run before the first two have finished. None of these are using AsyncTasks. Can someone explain why the 3rd is running before the 1st and 2nd are complete? Jan 16 18:05:30 karakuri: consider attaching the debugger? Jan 16 18:05:44 lov: what would i look for? Jan 16 18:05:46 hip2p: no, not really. Have you attached the debugger and followed them along? Jan 16 18:05:51 hip2p: that sounds strange, if you just plain calling functions without doing any multithreading by yourself it should executed the way ofc Jan 16 18:05:59 karakuri: the order of execution, whether you're returning early from an error condition you don't expect, etc Jan 16 18:06:10 timroes that's what I thought, too. Jan 16 18:06:19 No multithreading that I know of. Jan 16 18:06:24 hip2p: that you know of. Jan 16 18:06:30 Run the debugger. It's happening, you just don't realize it. Jan 16 18:06:53 hip2p: all these three are your own functions? Jan 16 18:06:59 these four actually Jan 16 18:07:03 lov: i have log statements and exceptions with detail messages, order of execution seems proper Jan 16 18:07:04 yeah, they're very basic functions Jan 16 18:07:15 could you paste the code? Jan 16 18:07:21 yeah, just pastebin :P Jan 16 18:07:24 i based this activity off of zxing (the barcode scanner) Jan 16 18:07:24 ok one sec Jan 16 18:08:26 karakuri: aha. Jan 16 18:08:30 karakuri: look at startPreview Jan 16 18:08:33 see if you can spot the mistake there Jan 16 18:08:52 lov: lol, copy/paste strikes again Jan 16 18:10:15 Here it is: http://pastebin.com/3YpDgeFJ << when I run the code, the if statement checking for user connection takes place before setScreen() and updateStatus() are complete. I know this because the screen set in setScreen does not display until after the if statement is finished. Jan 16 18:11:17 love: now my problem is when i turn the screen off and on again, the preview is frozen Jan 16 18:11:27 ^ i meant lov Jan 16 18:12:03 hip2p: you know that drawing will take places after your last method finished? Jan 16 18:12:14 so you wont see any updates as long as the methods are still running Jan 16 18:12:34 ah no I did not know that. Jan 16 18:12:59 since you call the method in the UI thread, it can't draw until your method finished Jan 16 18:13:39 i would say you want to add an animation listener Jan 16 18:13:48 hmm.. the intention is to put up a loading screen while the activity runs its load functions Jan 16 18:13:51 and execute the updatestatus and rest, when the animation finished? Jan 16 18:14:02 timroes that's true, I could do that Jan 16 18:14:21 It can't draw the ui as long as you're blocking the main thread Jan 16 18:14:28 Oh, timroes said that Jan 16 18:14:32 ah no in that case I guess you want to execute everything anyway in a separate task and provide a method to get the status of your connection Jan 16 18:14:32 ok that makes sense now Jan 16 18:14:42 you want to have a look at asynctask Jan 16 18:15:01 and that tutorial in general: http://www.vogella.com/articles/AndroidPerformance/article.html :) Jan 16 18:15:02 it checks connection via asynctask Jan 16 18:16:16 timroes thanks I'll read that Jan 16 18:17:22 would you recommend that I run these functions on a separate thread? That way the UI thread wouldn't be blocked Jan 16 18:17:33 karakuri: go debug your code. Inspect what you're writing. Jan 16 18:17:52 hip2p: yes. Jan 16 18:17:56 ok thanks Jan 16 18:17:57 hip2p: Consider AsyncTask Jan 16 18:18:25 alright Jan 16 18:18:57 hip2p: yeah as lov said, I would run all the loading stuff in an async task and just draw the progress in the UI thread Jan 16 18:19:49 sounds good, thanks for the help Jan 16 18:19:59 nevermind, its all good Jan 16 18:20:08 thanks lov Jan 16 18:24:22 Hi, does anyone know very simple OS project that has a repository with multiple revision levels? Jan 16 18:24:37 ... huh? Jan 16 18:25:10 to learn from Jan 16 18:25:29 your question makes no sense Jan 16 18:25:52 no, I think it makes sense. simple is a bit of a relative term; I've had luck with playing with minix. Jan 16 18:26:15 you know a simple os app like a drawing app that starts buggy and ends up functional Jan 16 18:26:18 it doesn't have a gradation from simple -> complex, but it lends itself to experemnting with it Jan 16 18:26:56 most i found have only latest version Jan 16 18:27:03 * kbs suddenly realizes OS means something different as well :-) Jan 16 18:28:09 kbs: I believe the preferred way to differentiate is "OSS" Jan 16 18:28:41 evanc: indeed :-) but in context, I should probably have realized that's what xr intended... Jan 16 18:29:19 I probably should have been more clear. Jan 16 18:29:56 yeah, I think we all read operating system. Jan 16 18:30:26 ==lov Jan 16 18:31:23 Any reason why my app which I can see dispatching analytic data is not showing it in google analytics Jan 16 18:33:50 hey, how can I resize a ByteBuffer? Imagine the buffer has 100 bytes capacity, but only 50 have useful information. I would like to reset its capacity to 50 Jan 16 18:34:47 unless you're working with huge buffers (in which case use something more efficient), probably you shouldn't bother Jan 16 18:35:25 since java can't realloc in place, you'd be copying everytime and adding 100 bytes of garbage instead Jan 16 18:36:02 oGMo, I am calling a FileChannel.write() method with the buffer as argument. This writing instruction is actually writing the 50 data bytes plus 50 garbage files to the file Jan 16 18:36:22 gmag: then you're using the API wrong? dunno Jan 16 18:37:29 oGMo, can I create a resized copy version of another ByteBuffer? Jan 16 18:37:43 it looks like there's compact() but i don't see a way to set the size Jan 16 18:38:47 limit(n) ? Jan 16 18:38:53 (from Buffer) Jan 16 18:38:54 oGMo, yeah, I saw that method, but didn't really understand the meaning of it... There is no argument to the method Jan 16 18:39:07 talking about the compat() Jan 16 18:39:08 I just want to share this with you guys for those who don't know it. this is how you launch a youtube video directly using the youtube launcher : Jan 16 18:39:11 Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("vnd.youtube:"+selected_youtube_video)); Jan 16 18:39:11 startActivity(i); Jan 16 18:39:12 gmag: there is a variant which takes an argument and sets the limit Jan 16 18:39:23 gmag: read the description at the top for Buffer Jan 16 18:39:30 (not ByteBuffer) Jan 16 18:39:50 selected_youtube_video is the youtube video id Jan 16 18:40:03 just a String type. Jan 16 18:40:11 I took me long to find it. Jan 16 18:40:56 on a slightly related note, is there any way to programatically play a youtube video in the background? Jan 16 18:41:03 as like part of a service or something Jan 16 18:41:22 superlinux-hp: googling "youtube video intent android" reveals all that as the top link :P Jan 16 18:41:22 I cannot retrieve my database on a real device using DDMS in Eclipse. When I browse the data directory, it is empty. Is this perhaps because the file system is mounted and unreadable? Jan 16 18:41:34 superlinux-hp: no it's not Jan 16 18:41:50 oGMo, yeah I think limit() will do the trick Jan 16 18:41:54 superlinux-hp: why wouldn't you just launch http://youtube.com/watch?v=video_id ? Jan 16 18:42:09 gmag: should. good luck. i don't know if i'd bother with compact though Jan 16 18:42:10 oGMo, I'll give you feedback, gonna try Jan 16 18:42:25 evanc, I want to hide the links Jan 16 18:42:32 superlinux-hp: "the links"? Jan 16 18:42:49 the youtube video links. Jan 16 18:43:12 I have no idea what you're talking about. What links show up? Jan 16 18:48:22 this way it won't allow the user to choose between google chrome and youtube standalone application . using the youtube standalone app it will hide the video URL. but in chrome if the Internet is disconnected then chrome will show the video URL. and I want to hide the URLs so force people to use my app instead of opening the browser. I have unlisted my videos. Jan 16 18:48:34 evanc, got me? Jan 16 18:48:58 superlinux-hp: setPackage("com.google.youtube") or whatever the package is Jan 16 18:49:19 then if the intent fails to resolve (package not installed), setPackage(null) and retry (so it'll wind up in the browser) Jan 16 18:49:43 or don't retry Jan 16 18:50:16 superlinux-hp: and what happens if I hit "share" from within the YouTube app? I can get the URL that way, no matter how you launched it Jan 16 18:51:01 oGMo, yup it works. Jan 16 18:51:03 :) Jan 16 18:51:49 evanc, so what do you think i should do? Jan 16 18:52:12 how can I go back two activities when the back button is pressed? Jan 16 18:52:15 superlinux-hp: give up on trying to use YouTube if you want the videos to only work in your app? Jan 16 18:52:38 another thing, I am writing to a file the buffer contents every iteration in a loop. At some point it seems to me that the size of the file does not increment anymore, is there a default limit on how big a file can be? The file size is saturating at 29800bytes Jan 16 18:53:04 gmag: no Jan 16 18:53:11 gmag: nifty Jan 16 18:53:17 when working with OpenGL ES 2.0, is there a class with OpenGL Data types, like GLuint Glenum etc? Jan 16 18:53:43 evanc, anyway it's a free app. Jan 16 19:08:20 porten: why would you go back two activities, out of curiosity? Jan 16 19:12:52 Just finish() the middle activity, I guess. Jan 16 19:13:18 Right after calling startActivity Jan 16 19:13:34 I did it once based off of an activity result Jan 16 19:14:04 i've also chained activity results on one occasion Jan 16 19:14:24 karakuri: so I have A, B, C, B is just a login screen that takes you to C, once I'm at C and I hit the back button I want to go back to A Jan 16 19:15:03 porten: just call finish() in B after calling startActivity() Jan 16 19:15:14 you will still go to C, but B will be closed Jan 16 19:17:47 karakuri: nice, thanks! Jan 16 19:46:30 hi. how can i discard this requirement : android.hardware.touchscreen? i want my application to run on GoogleTV too. Jan 16 19:46:30 mobile OS satisfaction survey http://www.cellular-news.com/story/58138.php Jan 16 19:46:34 Can anyone suggest an easy way to browse the sqlite database on a real device? I cannot seem to use DDMS correctly, the pull function does not work. Is there a way to do this from the command line? sqlite3 command does not seem to exist either when I enter via shell. Jan 16 19:47:34 superlinux-hp: read the docs. You can make that requirement optional in your manifest. Jan 16 19:47:48 x_or: well add some code Jan 16 19:48:19 x_or: if(some_dummy_file_exist_on_storage_card) addSecretCopyDBMenu(); Jan 16 19:48:57 i think, you can also use adb run-as to copy it to/from the device Jan 16 19:50:26 you'll have to view it on your machine using sqlite3 or SQLiteSpy Jan 16 19:51:19 monsti: OK, you are suggesting that I manually copy the DB into a place where it is accessible? Jan 16 19:51:54 g00s: I am not sure if my device is not setup correctly, but I cannot pull the file from DDMS. When I attempt to browse /data, it is empty. Perhaps I have it mounted incorrectly? Jan 16 19:52:09 if you copy the sqlite3 binary to your phone, you might be able to use adb run-as to execute on-phone Jan 16 19:52:16 Oh, OK. Jan 16 19:52:36 x_or: yeah i have that code in all my apps Jan 16 19:52:58 its an unnecessary hassle for development Jan 16 19:53:15 especially if you want to edit the db while the app is running Jan 16 19:53:22 g00s: If I login via shell, I get permission denied when I attempt to ls /data. Jan 16 19:53:28 x_or: you can't mount /data on a real device without roting the device ;) Jan 16 19:53:30 Do I need to root my device in order to do proper development. Jan 16 19:53:33 Ah, OK. Jan 16 19:53:51 x_or: that's because i have that debug code ;) Jan 16 19:53:53 roting the device? I need to use rot13 encryption for this? Jan 16 19:53:57 :) Jan 16 19:54:44 triple rot13 Jan 16 19:55:03 lov: I worry about battery life issues with triple rot13. Jan 16 19:55:15 nah it's cool, it's worth the tradeoff Jan 16 19:55:19 you get triple security Jan 16 19:56:09 Just like the recent bond movie, "Wow, they are using security through obscurity!" And, the implication was this was a good thing. Jan 16 19:56:30 hey I started with android yesterday, quick question regarding this pastebin: http://pastebin.com/QyiLub5i Jan 16 19:57:03 Question: how do I reference the link String of this: public InfoLink(int id, String name, String link) Jan 16 19:57:17 from another Activity Jan 16 19:57:27 Zed7: ... make a getter for "url"? Jan 16 19:58:10 Will a getter work with an onItemClick function? Jan 16 19:58:20 yes? Jan 16 19:58:29 Zed7: Yes, it will. Jan 16 19:58:29 Zed7: I think you need to learn how to program first :-/ Jan 16 19:58:49 Thanks for the advice :) Jan 16 19:59:21 evanc: We all start somewhere Jan 16 20:25:09 N7 in play store : "Ships in less than one week." but its been over one week ;) Jan 16 20:36:11 imperial or metric week? Jan 16 20:36:28 a Google week Jan 16 20:36:56 A googol weeks Jan 16 20:37:25 https://fbcdn-sphotos-b-a.akamaihd.net/hphotos-ak-prn1/71876_473753179348299_1417477803_n.jpg Jan 16 20:40:12 brx_: just because you want a pony doesn't mean you can take it through the self-checkout at Tesco Jan 16 20:41:23 brx_: you saved that one from becoming part of the hamburger meat Jan 16 20:41:25 rofl ctate, it was wrong channelage Jan 16 20:41:25 but you have seen the news in the UK right? Jan 16 20:41:35 i have not Jan 16 20:41:46 >.< Jan 16 20:42:08 tesco's have been selling burgers with up to 30% horse in them Jan 16 20:42:19 o_O Jan 16 20:42:49 yeah, food chain transparency FTL Jan 16 20:43:04 indeed Jan 16 20:43:19 i guess its better than a hamburger with 30% android in it Jan 16 20:43:46 there was an old lady who swallowed a horse / she shopped at Tesco, of course. Jan 16 20:43:51 its becoming quite a stable meme Jan 16 20:44:11 although a hamburger with 30% apple would probably be ok Jan 16 20:44:16 https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-snc6/263259_533008323396978_1184210322_n.jpg Jan 16 20:44:16 lol g00s Jan 16 20:44:52 sainsburys sausage + apple rawks Jan 16 20:45:03 * ctate | More than a third (37 per cent) of the products tested in Ireland contained horse DNA, while the vast majority (85 per cent) also contained pig DNA. Jan 16 20:45:09 that is .. also problematic. tsk tsk. Jan 16 20:45:53 where the hell are they getting the horses from, surely horse meat is like, errm, a delicacy? Jan 16 20:45:54 even if you dont mind horse meat, the horses probably dont undergo the same QC and testing as the cows do Jan 16 20:46:18 i think the tough economy has led many to give up their horses Jan 16 20:46:19 it depends Jan 16 20:46:33 rofl g00s Jan 16 20:46:40 if it's coming through legitimate butchering, the QC is as tight Jan 16 20:46:41 here in the US, wild horse herds have been growing Jan 16 20:46:45 its just brilliant news, you cant write this stuff Jan 16 20:46:46 BLM doesn't know what to do with them Jan 16 20:46:56 the price of hay is skyrocketing, too Jan 16 20:47:04 if it's coming through more dodgy means, there may be no QC Jan 16 20:47:32 and for example, sick or treated with nasty drugs horses may be used. Jan 16 20:47:59 indeed SpeedEvil, its very shady Jan 16 20:48:30 there are good reasons for meat traceability requirements Jan 16 20:49:00 very surprising that this is the case even in the aftermath of the BSE disaster Jan 16 20:49:02 thankfully bse does not seem to convert efficiently into nv-cjd Jan 16 20:49:18 horses are not under bse controls Jan 16 20:49:54 its like the twilight zone her ein the UK atm, we got helicopters crashing in the centre of london, people eating horses, cant wait for tomorrow Jan 16 20:49:58 we need a molecular diagnostics device that scans food for DNA, radiation, and other chemicals Jan 16 20:50:11 Lumora is doing this Jan 16 20:50:29 * g00s would avoid any seafood from the gulf of mexico :D Jan 16 20:50:57 problem is, that might be fed to livestock so it concentrates somewhere in the food chain Jan 16 20:51:43 the "self defense" argument for vegetarianism, basically Jan 16 20:52:29 keke Jan 16 20:52:48 but veggies can be GMO, so pesticides become an issue; need to go organic veggie i guess Jan 16 20:53:03 also, ##nutrition Jan 16 20:53:56 And Muslims eating pork burgers..buwahahaha Jan 16 20:56:02 not so funny if you know about, say, the Sepoy Rebellion Jan 16 20:56:24 anyway, yeah, we're way off topic here Jan 16 20:56:42 >.< Jan 16 20:57:28 ctate: #android-dev(ouring) Jan 16 21:03:20 whoa Jan 16 21:03:23 wtf happened here Jan 16 21:03:27 O__O Jan 16 21:03:37 more documentation bugs ? :D Jan 16 21:03:56 I think canadiancow is just freaked out because we're talking about livestock and burgers Jan 16 21:04:42 if i was a cow, i would not want my brand diluted with ponies Jan 16 21:06:35 anyone got any idea how I can create a folder in Xperia Play in the menu, not on the OS desktop? Jan 16 21:07:46 anyone? Jan 16 21:07:55 ctate: my gerrit problem btw moved, now i get the error that I have to fill in contact information, when i try to upload something :D Also my agreement vanished (filled already a new one). I also updated my contact information same error Jan 16 21:09:01 ArmyMan007: I'm assuming you want to put a folder in the all-apps view, and you can't. Also, ask in #android Jan 16 21:09:13 g00s, i actually fixed some more bugs this morning Jan 16 21:09:16 they're awaiting code review Jan 16 21:09:22 some of them were bigger changes Jan 16 21:09:35 evanc, ok. Thanks Jan 16 21:16:33 ahhhhhhh *throwing gerrit against a wall* Jan 16 21:16:48 "commiter email address does not match your user account" Jan 16 21:22:44 okay I am giving up on gerrit, it just cannot handle multiple mail messages correclty, anyone here in the mood to change one line in a build script of android and commit it? Jan 16 21:25:10 you can't change the commiter email address to match your own? Jan 16 21:25:17 nope Jan 16 21:25:21 i tried to change it now several times Jan 16 21:25:38 like it wouldnt change or it changed but still not being accepted? Jan 16 21:25:40 i get the mail, activsate it, the web says i have registered the new one, but in the selection bug the old one is missing now Jan 16 21:25:53 until i refresh the page, then the new one vanished again Jan 16 21:25:56 and the old one appears Jan 16 21:26:19 also filing the contact informations changes or pressing reload (what I seem to need to fetch the name) changes back to the old address Jan 16 21:26:37 so i am always hanging at either contact information needed or mail not matching state Jan 16 21:29:03 anyone using leveldb from android / java ? i'm surprised they didn't publish any JNI bindings; there are a few unofficial ones on the interwebs but they are all older than the official releases Jan 16 21:29:45 i was trying jdbm4 which looked nice but had problems b/c it uses nio.2 Jan 16 21:30:51 So that like Jan 16 21:30:59 "slide out" menu that like facebook, google plus, youtube, etc. uses Jan 16 21:31:34 Thats not natively supported yet right? Like there is no built in solution yet to add that kind of navigation to apps, correct? Jan 16 21:33:10 Brian|CS: nope, but there are libs for that Jan 16 21:33:14 https://github.com/jfeinstein10/SlidingMenu Jan 16 21:33:31 if i make a serializable calss implement a new interface (butit already has all the methods defined in the interface), will that affect its ability to deserialize previously serialized data? Jan 16 21:33:52 Do you think they'll make it a standard UI element for Android? It seems like something that would be useful to lots of developers Jan 16 21:34:49 canadiancow: i think it only depends on serialVersionUID, readObject , and writeObject Jan 16 21:35:18 if your read/write change, you should change the UID Jan 16 21:35:27 (if the changes become incompatible) Jan 16 21:35:57 canadiancow: http://docs.oracle.com/javase/6/docs/platform/serialization/spec/version.html#6678 Jan 16 21:36:06 Brian|CS: I am not sure about that. Might be in some versions, but I am neither sure if that kind of complex UI element will bebackported in the support lib Jan 16 21:36:16 progressDialogs are not considered drawing on the UI, correct? Jan 16 21:36:39 timroes: Do you know off the top of your head if that library you linked has back support? Jan 16 21:36:42 thanks g00s Jan 16 21:36:47 backwards compatability support that is Jan 16 21:37:21 Brian|CS: looking at its manifest file it says minSdkVersion 5 Jan 16 21:37:34 k Jan 16 21:41:31 ViewGroup decor = (ViewGroup) activity.getWindow().getDecorView(); ViewGroup decorChild = (ViewGroup) decor.getChildAt(0); Jan 16 21:41:34 thats gross Jan 16 21:42:11 https://github.com/jfeinstein10/SlidingMenu/blob/master/library/src/com/slidingmenu/lib/SlidingMenu.java#L312 Jan 16 21:42:42 i guess thats the only way :/ ? Jan 16 21:52:01 Normally my activity window uses adjust_resize for soft input mode. For one fragment I want to not adjust the window instead, so in onStart() i'm calling getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING);, but it still shrinks the window when the keyboard appears Jan 16 21:52:49 ^ in the Fragment's onStart(), and then in the Fragment's onStop() I set it back to SOFT_INPUT_ADJUST_RESIZE Jan 16 21:54:58 Does anyone know why the Sliding Drawer widget is deprecated? Jan 16 21:55:31 Brian|CS: it says it in the docs :) Jan 16 21:55:31 its pretty limited Jan 16 21:55:47 This class is not supported anymore. It is recommended you base your own implementation on the source code for the Android Open Source Project if you must use it in your application. Jan 16 21:56:03 nah okay is not really a reason Jan 16 21:56:03 uh oh, guess i have some changes to make :| Jan 16 21:56:35 I've heard good things about https://github.com/SimonVT/android-menudrawer Jan 16 21:56:43 (haven't used it personally) Jan 16 21:56:53 but yeah, if they were going to deprecate it, i think they should have given us something better Jan 16 21:56:58 >.> Jan 16 21:57:42 Yeah I'm not really seeing a reasoning as to why specifically it is deprecated Jan 16 21:57:45 other than just google saying so Jan 16 21:58:18 i could guess :) Jan 16 21:58:28 because the menu drawer stuff replaced that kind of ui Jan 16 21:58:38 so you shouldn't use that design element anymore? Jan 16 21:58:44 but the menu drawer stuff isn't available from google Jan 16 21:59:13 yeah but in holo i guess there is no use for slidingdrawer anymore Jan 16 21:59:30 really? Jan 16 21:59:40 just to make sure that we are talking about the same Jan 16 21:59:40 http://w2davids.files.wordpress.com/2010/12/capture-slidingdrawer-topdown-closed.png Jan 16 21:59:46 that is the sliding drawer? Jan 16 21:59:52 no Jan 16 21:59:54 well Jan 16 22:00:04 i mean you can replace the handle by everything you want Jan 16 22:00:15 thats not what anyone means when they say "sliding drawer" Jan 16 22:00:27 although to be fair, it's ACTUALLy called SlidingDrawer, so i think everyone else is just wrong :P Jan 16 22:00:34 oh it was even deprecated Jan 16 22:00:39 yeah :D Jan 16 22:00:39 the original one completely filled the area of its parent Jan 16 22:00:43 thats what we are talking about :D Jan 16 22:00:45 about that class http://developer.android.com/reference/android/widget/SlidingDrawer.html Jan 16 22:00:55 timroes: You can even have no handle Jan 16 22:01:00 and i guess that class is what was used to make that kind of stuff http://mobibear.files.wordpress.com/2010/07/sliding_drawer_2.png Jan 16 22:01:05 i would assume people are talking about the youtube/g+ style "sliding menu drawer" Jan 16 22:01:06 or wahtever it is Jan 16 22:01:29 "(22:54:59) Brian|CS: Does anyone know why the Sliding Drawer widget is deprecated?" :) Jan 16 22:01:41 i am pretty much sure we were talking about the class :P Jan 16 22:01:44 it seems kinda cool; but i think i will wait for google to put it in the design guidelines before i adopt it Jan 16 22:01:57 i'm not convinced its even a good idea yet Jan 16 22:02:01 I like it Jan 16 22:02:09 my personal preferences aside, usability data is needed Jan 16 22:02:15 I mean, look at it in the facebook app, youtube app, google+ app Jan 16 22:02:21 It just looks slick in all of them Jan 16 22:02:23 and flows well Jan 16 22:02:37 dont design for your personal preferences; you are not a representative user ;) Jan 16 22:02:43 g00s: indeed + 1 for the usability data, my personal opinion is also not to use it :) Jan 16 22:03:04 I really would like to see the usability studies about getting rid of the combined actionbar in 4.2 Jan 16 22:03:05 Good evening Jan 16 22:03:13 but haven't found anything like that Jan 16 22:07:42 I am creating the base of an Android game. I got an Activity running the userinterface in its thread, and I create another thread for the game logic. Sometimes the logic needs to notify the userinterface that a change was made in the game data (business model), what would be a good approach to handle the communication between the threads? Jan 16 22:08:14 Joozey: handlers or runOnUiThread Jan 16 22:08:52 but they both require Runnables, and if I have a lot of methods to call from the game thread to the ui thread, that's kind of cumbersome Jan 16 22:09:57 or hey, method calls Jan 16 22:10:03 how retro Jan 16 22:10:12 in a binder using aidl, can you specify a super class as one of the objects passed in a method? Jan 16 22:10:18 handlers dont' require runnables Jan 16 22:10:24 or what about an interface? Jan 16 22:11:15 lagann: the remote end needs to know how to unparcel the object you've sent unambiguously. in general, trying to use any sort of inheritance games around that is going to end in tears Jan 16 22:11:24 handler.post( Runnable ) ? Jan 16 22:11:26 oh :-/ Jan 16 22:11:30 thanks ctate Jan 16 22:11:46 the safe assumption is that the binder interface requires objects of those *concrete* classes, not just those superclasses Jan 16 22:12:26 Joozey: also note that just by delivering the event on the UI thread you're not done yet Jan 16 22:12:34 you can sort of kind of fake it using Bundles as generic Parcelable containers and ensuring that the receiving end always knows a priori what the type of the objects to extract from teh Bundles is Jan 16 22:12:44 but seriously, you will have nasty subtle bugs if you try this, so don't. Jan 16 22:12:45 Joozey: ie, if your activity then wants to query the model for the new state Jan 16 22:12:50 that'll need to be threadsafe too Jan 16 22:14:53 Maurits_: In what situation will it cause a problem? Jan 16 22:15:15 Joozey: it can potentially cause race conditions Jan 16 22:15:45 Joozey: ie, your model is in the process of being updated Jan 16 22:15:51 just as the activity queries it Jan 16 22:16:13 most stuff in Java isn't meant to be accessed from two threads at once Jan 16 22:16:19 so it can break in all kinds of ways Jan 16 22:17:01 yay race conditions Jan 16 22:17:07 Yes i see Jan 16 22:17:28 you can simply put a big lock around the entire model Jan 16 22:18:01 that solves the issue, but also any performance benefits from running on multiple cores simultaneously Jan 16 22:18:06 but the locking can also cause race conditions right? Jan 16 22:18:21 no, not if you do it right Jan 16 22:18:42 something with a singleton, if my memory serves me well? Jan 16 22:19:05 and doublelocking... though I read that Java sometimes screws that up too Jan 16 22:19:06 no, singletons have absolutely nothing to do with multithreading Jan 16 22:19:26 but from experience Jan 16 22:19:30 java doesn't screw it up Jan 16 22:19:33 the developer does :) Jan 16 22:19:47 if you don't design your concurrency properly Jan 16 22:20:00 you will eventually hit a point where you will have to rewrite most of your app Jan 16 22:20:19 I can imagine Jan 16 22:20:19 because you have no clue where the issues are or how to fix them Jan 16 22:20:20 multi-threading and concurrency can be complex. if you don't understand it well, it's easy to screw up Jan 16 22:20:40 heck, even if you *do* understand it well Jan 16 22:20:43 it's easy to screw up Jan 16 22:20:53 yeah Jan 16 22:21:04 lots of little corner cases that show up once every week Jan 16 22:22:17 luckily I just started and can make it non-shared :) Jan 16 22:22:25 i think i broke git Jan 16 22:22:31 i deleted a constant in a file Jan 16 22:22:35 other classes are referencing it Jan 16 22:22:40 but git diff doesnt show what it was Jan 16 22:24:33 is it possible to set the soft input mode of a window at runtime? Jan 16 22:25:17 i'm using "getActivity().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING);" and it isnt working Jan 16 22:25:24 oh nm. there was an inner interface in a class that had the constant, and a different class that implemented that interface, and they were being referenced frmo there. sigh Jan 16 22:37:32 anyone have experience with android analytics?> Jan 16 22:56:30 i want get selected text in all window, something like get selection text method in Qt which is for x11 , is something like that in android ? Jan 16 23:04:54 Hey, I'm having problems installing the SDK. I get the message ".. Cannot assign requested address: connect". I'm not using any proxy and disabling my firewall didn't help as well. Any ideas? Jan 16 23:04:58 Thanks :) Jan 16 23:24:12 Hi all, I have a question that probably sounds silly, but I have a project that I was able to compile and run previously, something changed, I don't know what, but now Eclipse is claiming R cannot be resolved to a variable and I am unable to compile the project. Any idea what could cause this problem? Jan 16 23:25:12 snowinferno: usually means there's some error in the project that prevents generation of R.java Jan 16 23:25:24 snowinferno: which the Problems tab in eclipse will usually show you Jan 16 23:27:08 it'll show a lot of 'R.blah' can't be found Jan 16 23:27:17 and some unrelated error Jan 16 23:28:03 ahh, thank you, that did tell me. I knew it had to be something silly... I saw a lot of cannot resolve R followed by the real problem. an associated project necessary for building got taken out of the project properties Jan 16 23:28:58 I must have assumed at one point that the only thing the problems tab was telling me was that it couldn't resolve R but not why Jan 17 00:31:33 Can anyone help with this? http://stackoverflow.com/questions/14369184/change-window-soft-input-mode-when-fragment-shown-removed Jan 17 00:33:30 hrm Jan 17 00:34:02 does it work if you detect the fragment within the activity, rather than have the fragment handle it? Jan 17 00:43:45 I ported an old agenda app I wrote a long time ago to my new phone's android version Jan 17 00:43:45 but Jan 17 00:43:46 n Jan 17 00:44:02 but now my background is completely white Jan 17 00:44:14 how do I make it black again? Jan 17 00:47:12 guidocalvano: what theme are you inheriting from? Jan 17 00:47:32 I think I fixed the problem Jan 17 00:47:42 I removed all the themes Jan 17 00:47:48 it's nice and black again now Jan 17 00:47:51 (: Jan 17 00:48:34 guidocalvano: you were probably inheriting from the Light theme. Jan 17 00:49:55 yes Jan 17 00:50:03 :) Jan 17 00:50:07 but I also tried the black theme and the holo theme Jan 17 00:50:14 it was generated by eclipse Jan 17 00:50:27 now everything is ok again Jan 17 00:50:41 the holo theme is only available on api 11 and up. Jan 17 00:50:42 I need to redo some layout but apart from that everything is fine Jan 17 00:50:55 k Jan 17 00:51:14 at what number does android 4.0 start Jan 17 00:51:31 and where do you have drag drop capabilities Jan 17 00:51:41 api level 14 Jan 17 00:51:44 k Jan 17 00:51:47 tnx Jan 17 00:51:49 drag and drop I'm not sure Jan 17 00:51:54 4.0 is api 14 Jan 17 00:52:09 they put in drag drop incredibly late Jan 17 00:52:24 but I think it was 4.0 Jan 17 00:52:35 (and 3.0 for tablets and stuff) Jan 17 00:53:13 so now I can start restructuring my agenda Jan 17 00:53:24 (I built an agenda app) Jan 17 00:53:57 drag and drop isn't *that* hard to implement Jan 17 00:57:12 funkbox: but it gets really ugly in your code if you hack it on top of the framework you are using Jan 17 00:57:25 yeah Jan 17 00:57:29 it's not terrible Jan 17 00:57:37 funkbox: the problem is that you need to have stuff communicate that isn't connected Jan 17 00:58:20 funkbox: and in the older versions of android it boiled down (afaik) to having huge invisible panes and stuff Jan 17 00:58:39 funkbox: it was hard to hack together because the framework effectively made it impossible to do well Jan 17 00:59:04 funkbox: the android devs should have built it in from the start Jan 17 00:59:13 how did you implement it ? Jan 17 00:59:51 funkbox: I think the problem was that the move event somehow stopped as soon as you left the surface of the element you initiated it on Jan 17 01:00:09 so I created provisional solutions Jan 17 01:00:36 they weren't beautiful solutions but they did the job Jan 17 01:00:44 I have to get to bed though Jan 17 01:01:03 its 2 at night here and tomorrow I have to be very sharp Jan 17 01:01:08 o/ Jan 17 01:02:19 funkbox: (plus I don't remember everything, I am just looking at my app again for the first time in a year or so) Jan 17 01:14:11 is there any famous blog with nice implementations in the android platformw Jan 17 01:14:13 is there any famous blog with nice implementations in the android platform? Jan 17 01:16:06 what does that mean ? Jan 17 01:28:51 I'm using an Intent to get a textfield from another activity and show it in another activity. In this second activity, I use setContentView(mytextview). I was wondering if I could use a .xml layout and still get this string from the first activity :? Jan 17 01:37:28 vuln: pass the string as an extra with the intent from the parent activity, inflate the layout in the child activity, and do textview.setText(your_string) Jan 17 01:39:08 What do you mean by 'inflate the layout in the child activity'? Jan 17 01:39:47 What you said is apparently what I'm doing. Jan 17 01:40:02 But I want it different. I don't want to setContentView(mytextview). I want to setContentView the .xml layout Jan 17 02:16:48 howdy Jan 17 02:18:03 vuln: as in do setContentView(r.layout.your_layout) Jan 17 02:20:40 I bought a used Vibrant and last week my carrier rejected the generic IMEI. I don't know of any backups of the /efs directory. how can I restore my original IMEI? Jan 17 02:21:43 uh, i have no idea what you mean by that. somebody *changed* the IMEI at some point? Jan 17 02:21:54 that's supposed to be the handset identifier, permanent. Jan 17 02:22:28 Hello Jan 17 02:22:34 this is android-root question stuff Jan 17 02:22:43 I have a simple problem using fragments can anyone help please? Jan 17 02:22:55 ctate: the previous owner flashed custom roms, than flash a stock rom back, but the stock rom has a generic IMEI code Jan 17 02:22:57 flashing galaxy s3 can overrwite the imei Jan 17 02:23:11 really? ugh. stupid. Jan 17 02:23:18 but yeah, this is firmly in #android-root territory. Jan 17 02:23:29 used to be a big problem with iphone too way back in the day Jan 17 02:23:30 there are plenty of ways to overwrite the imei and other things Jan 17 02:23:32 Can i ask a question regarding fragments? Jan 17 02:23:33 welcome to phreaking Jan 17 02:23:38 MartialLaw, don't ask to ask, just ask Jan 17 02:23:38 "I flashed a new serial number onto this blu-ray player, and now Sony won't honor the warranty..." Jan 17 02:23:41 gee go figure. Jan 17 02:23:42 okay sorry Jan 17 02:23:43 ctate: hmmm, ok, gonna ask them for help then, thanks Jan 17 02:23:52 MartialLaw: i dunno, can you? ARE YOU MAN ENOUGH TO?!?! Jan 17 02:23:56 uh Jan 17 02:24:00 sorry it's been a long day :) Jan 17 02:24:22 pragma-: can I pvt you? Jan 17 02:24:26 no Jan 17 02:24:39 pragma-: ok Jan 17 02:25:01 MartialLaw: anyway, by all means go ahead and ask about Fragments Jan 17 02:25:06 didn't mean to put you off Jan 17 02:26:07 I have an Android project that contains three fragments... The first two are lists...you click a string on fragment 1 then it shows details about that string in a list in fragment 2....you click on fragment 2 and fragment 3 pushes fragment 1 off screen and replaces it with fragment 2... Now here is the problem... When i click something in fragment two it opens up fragment 3 by this code Jan 17 02:26:07 : void onListItemClick(SimpleListFragment fragment, int position) { Jan 17 02:26:07 if (fragment == middleFragment) { Jan 17 02:26:07 ((Button)root.getRightView()).setText(middleContents.get(position)); Jan 17 02:26:33 I don't want getRightView() to just be a button...i want it to have a whole layout of its own Jan 17 02:26:37 use paste bin or something for your code Jan 17 02:26:55 getRightView() is basically defined as just return a view named right. Jan 17 02:28:01 The third fragment is just a button that displays some text as you can see...how can I make that fragment have it's own layout? Jan 17 02:28:54 and root is the main layout xml...as you probably guessed Jan 17 02:32:10 f2prateek: It seems I'm making it hard to understand me. Jan 17 02:32:36 I've got 3 errors in eclipse that I cant figure out. "invalid resource directory name" "the project wasn't built because its build path is incomplete. cannot find the class file for android.context.Context. Fix the build path then try building this project" and "the type android.context.Context cannot be resolved. it is indirectly references from required .class files" Jan 17 02:32:42 Do you remember the this? http://developer.android.com/training/basics/firstapp/index.html Jan 17 02:32:53 By the end, it leads you to show in a second activity the content written in the first activity. Jan 17 02:33:32 However, it sets setContenView() with a textView written in the .java source file. I want to get the intent from the XML file, so I can set setContenvIew(r.layout.mylayout) Jan 17 02:33:41 Did you understand it know Jan 17 02:33:42 ? Jan 17 02:33:48 is there an action and/or category that I have to set in the Android manifest to tell the phone that I am creating a screen lock? Jan 17 02:37:48 anyone know how i can fix it Jan 17 02:42:40 I've got an errors in eclipse that I cant figure out. "invalid resource directory name" "the project wasn't built because its build path is incomplete. cannot find the class file for android.context.Context. Fix the build path then try building this project" and "the type android.context.Context cannot be resolved. it is indirectly references from required .class files" Jan 17 02:44:49 please don't repeat questions every 10 minutes. Jan 17 02:45:08 did you change something in your project? **** ENDING LOGGING AT Thu Jan 17 03:00:00 2013