**** BEGIN LOGGING AT Sat Jun 22 02:59:58 2013 Jun 22 03:00:33 Xabster: ah, the drawColor function just calls drawColorRect, passing the clip coords! Jun 22 03:00:50 as i was expecting, the Canvas for a single view, has a reference to the canvas of the entire window Jun 22 03:00:57 with clipping applied to all operations Jun 22 03:01:02 yes Jun 22 03:01:08 so internaly, they all refer to a single bitmap Jun 22 03:01:09 restricted coordinates Jun 22 03:01:12 yes Jun 22 03:01:13 that Jun 22 03:01:16 's normal Jun 22 03:01:23 and the window compositor maps them together in the end Jun 22 03:01:40 does it have double buffering built in ? Jun 22 03:01:44 normaly just 3 window objects i think, status, activity, and softkeys Jun 22 03:01:47 there is no composition at that level Jun 22 03:02:16 shmooz: i believe the double buffering comes in much later, when the compositor copies the 3 windows i mentioned into the inactive buffer Jun 22 03:02:19 and then flips Jun 22 03:02:19 there's an editable bitmap that is only editable from the right parts of your code Jun 22 03:02:26 but only if the hardware driver declares support Jun 22 03:03:01 Xabster: do you happen to know much about gralloc and the compositor? Jun 22 03:03:11 i think I disagree, where do you see compositor in the native code? Jun 22 03:03:13 none at all Jun 22 03:03:30 Xabster: its not within canvas, its at another layer, i have a link on it somewhere... Jun 22 03:05:22 Xabster: http://source.android.com/devices/graphics.html Jun 22 03:06:08 i see Jun 22 03:06:24 Xabster: mainly, the hardware composer section Jun 22 03:06:24 the compositor is what makes transparency possible then of course Jun 22 03:06:55 dont think it has that feature, i think what your seing is just transparency within a window window Jun 22 03:07:02 drawing over the existing content of the bitmap Jun 22 03:07:32 Xabster: http://source.android.com/devices/graphics.html#hwc first bullet point Jun 22 03:08:05 good to know Jun 22 03:08:15 i'm rather new to android though, but java for many years Jun 22 03:08:21 normal apps only ever have access to the main window surface Jun 22 03:08:33 only way to access the others is to start getting into custom roms Jun 22 03:10:09 are you making a game and trying to push performance? Jun 22 03:10:17 nowhere close Jun 22 03:10:24 but i have tried to fix the raspberry pi port Jun 22 03:10:35 2 odd bugs interacting in a weird way Jun 22 03:10:55 1st one, somebody made a major typo in the kernel driver, causing it to claim double-buffering doesnt work Jun 22 03:11:12 2nd one, if i fix #1, it just draws solid black to the screen Jun 22 03:11:29 raspberry pi port? Jun 22 03:11:39 oh, ported version Jun 22 03:11:47 i was confused for a second there Jun 22 03:12:23 Xabster: http://elinux.org/RPi_Beginners Jun 22 03:12:40 i know what a pi is Jun 22 03:13:09 i thought someone had made a physical port like hdmi port to connect to raspberry pi's from a specific android device Jun 22 03:13:13 it's 05:13 am here Jun 22 03:13:16 i can kinda get android to boot, but due to the 2 above bus, the graphics performance is horrible Jun 22 03:13:51 also, the 1st bug, only triggers for screen resolutions over 512 pixels high Jun 22 03:14:06 anything smaller (composite video out) and it claims to support double-buffering, causing the 2nd bug to blank the screen Jun 22 03:14:24 i think i spent several hours trying to get it to work on my tv Jun 22 03:16:52 i should also get to bed soon, getting late here Jun 22 03:18:37 so for intellij / gradle; is an intellij module most closely related to a gradle sourceSet ? Jun 22 03:24:39 Does anyone have recommendations for open-source Android apps I should read to get better with Android development? Or any other recommendations for someone who knows Java and wants to get up to speed on Android? Jun 22 03:39:19 cheese: developer tutorial docs Jun 22 03:40:11 How can i turn the back / home / recent app icons on the soft menu bar into diamonds? Jun 22 03:40:54 lots of heat and pressure Jun 22 03:41:13 that's soooo 1800s Jun 22 03:41:19 these days we're using nano printers Jun 22 03:41:19 :) Jun 22 03:41:33 but i mean uhh like minimal mode, ive seen it on some of the fulls creen games Jun 22 03:44:17 byte o bit developing navigational toggles for 3d games is a long process Jun 22 03:44:30 far far worse than designing layouts for different screen sizes Jun 22 03:49:03 it's called Lights Off Mode. there's a SYSTEM UI flag you set for it Jun 22 03:49:37 ahh and now im out of papers Jun 22 03:49:43 oh thanks kevinb Jun 22 03:52:15 ok, i guess then a intellij module is like a gradle sub project Jun 22 03:53:00 kevinb: do you know min api for that? Jun 22 03:53:14 looks like 11 Jun 22 03:53:32 i think there are multiple flags for it. some came with honeycomb and some newer ones came with ICS or JB Jun 22 03:54:18 navbars didn't exist prior to 11 so the 11 one should be good. i can't remember what the advantage of the newer ones is. Jun 22 03:59:41 anyone try using http websocket client lib on android? Jun 22 04:18:05 can we use java 1.7 ? Jun 22 04:18:43 yes Jun 22 04:18:56 when did that start? Jun 22 04:19:18 unless by chance you have mac os x 10.7 - i recommend staying with apple java if you already have it installed Jun 22 04:19:39 nah I'm on windows atm Jun 22 04:20:01 java 7 used to not be supported though Jun 22 04:24:43 they said it is now ; web site has old info Jun 22 04:37:06 java 7 syntax? Jun 22 04:40:44 V-Vega: i've only been exposed to the one the IRC Cloud guys use Jun 22 04:40:53 working on our own impl (slowly) Jun 22 04:41:31 https://github.com/c99koder/android-websockets Jun 22 04:42:47 yo Jun 22 04:42:55 mistype Jun 22 04:44:14 g00s: all java 7 language features? Jun 22 04:44:21 Xabster no Jun 22 04:44:27 set compliance to 1.6 Jun 22 04:44:39 some java 7 features work Jun 22 04:45:42 diamond operator and multi catch and string switch I believe too Jun 22 04:45:45 but not try with resource Jun 22 04:50:31 fuck the ides Jun 22 04:51:06 intellij won't let me create a test module for some reason; 'tested module' says [none] .. won't let me change, and i have library module in the project Jun 22 04:52:31 g00s, test modules? you writing FPGA? Jun 22 04:53:03 heh, no that would be more fun tho Jun 22 04:53:16 hells yea it would be Jun 22 04:54:29 bit o bit is it nice when raw code runs (mostly) as planned on the first try Jun 22 04:54:52 parco work with fpga? which tools are you using? Jun 22 04:54:57 xilinx Jun 22 04:55:07 oh man, how much did that cost ? Jun 22 04:55:25 they're free my friend Jun 22 04:55:32 hm Jun 22 04:58:14 android studio better than IDEA and eclipse? aye or nay? Jun 22 04:58:23 they all suck Jun 22 04:58:46 Xabster: who cares Jun 22 04:58:51 the whole android ecosystem seems to be a steaming pile Jun 22 04:58:54 me, obviously Jun 22 05:04:01 Xabster i think you saw me ask in #eclipse if there will be any more 3.x releases - they said no Jun 22 05:04:14 so? Jun 22 05:04:18 so, i guess it depends on if you like kepler; which will be out next week Jun 22 05:04:56 wheter or not android studio is better? Jun 22 05:05:11 maybe, but then it also depends on new versions of IDEA and AS Jun 22 05:05:17 so let's compare what we have :) Jun 22 05:05:18 yeah Jun 22 05:05:33 kepler is gonna have baby issues too Jun 22 05:17:16 man I'll tell ya, Samsung Remote Test Lab would be a great thing if it worked Jun 22 05:17:21 too funny. so i'm trying to create an empty project in intellij (project without modules). its there in the list of things to create. when i try though, it says "cannot save settings: enter a module name" Jun 22 05:26:19 yeah, so give the module a name Jun 22 05:26:41 parco its a bug Jun 22 05:26:51 oops, Xabster :) Jun 22 05:26:58 what is? Jun 22 05:27:12 there is no place to enter a name for a module, because its a empty project without modules Jun 22 05:27:34 so apparently if you select one of the other facets, start to type something, and then select another one, idea gets really confused Jun 22 05:27:44 it works for me Jun 22 05:28:07 i'm using 12.1.4 and its 100% reproducible for me Jun 22 05:28:20 steps? Jun 22 05:28:42 anyhow, i just backed out of the new project dialog, and made sure empty project was the first one i selected Jun 22 05:31:04 holy shit, i just made intellij crash outrite Jun 22 05:40:03 I'm using a com.google.android.gms.common.SignInButton in combo with a call to GoogleAuthUtil.getToken after AccountPicker.newChooseAccountIntent. This creates a bright red G+ login button. Does anybody know if it will work for people who ONLY have a gmail address (and are not on G+)? Jun 22 05:40:30 Hard to test on a real app since alpha/beta testing requires people to be on G+ already... Jun 22 05:49:10 well thats enough for tonight... Jun 22 05:49:13 g'night all Jun 22 05:49:19 thanks for the help as usual... Jun 22 05:50:42 no sleep Jun 22 05:50:51 androids apps to be written! Jun 22 06:16:58 I could still use some proguard help Jun 22 06:17:15 I have an activity that derives from v4 support's FragmentActivity Jun 22 06:17:24 so it gets setContentView from its parent class Jun 22 06:17:29 however, I get this: Jun 22 06:17:55 Error: ProGuard: [blah] Warning: blah.blah.MyActivity: can't find referenced method 'void setContentView(int) Jun 22 06:18:02 ' in class blah.blah.MyActivity Jun 22 06:30:21 turn off proguard :) Jun 22 07:15:14 would eye tracking be a difficult app you think? Jun 22 07:16:42 if numberOfApps < 3 && numberOfYearsProgramming < 4 && unsureOfTaskPercent < 50 ….. . then yeah Jun 22 07:18:34 btw I just made that up Jun 22 07:18:38 :) Jun 22 07:18:56 lol Jun 22 07:19:03 StringRay - I'm tempted to Jun 22 07:19:06 but just so you know, asking the question in the first place is a bad start Jun 22 07:19:20 why man? just trying to get a feel Jun 22 07:19:32 as to how hard it'd be to wing it Jun 22 07:19:35 cause A ) it means you have no idea of whats envolved Jun 22 07:19:56 and b ) based of A ) you have no idea of the concepts that are needed Jun 22 07:20:39 delta pixel data maps and heavy math + some wicked error tollerances are ….well…. not easy to do right Jun 22 07:21:11 all you had to say man Jun 22 07:21:20 no need to get fired up Jun 22 07:21:30 not fired up Jun 22 07:21:43 unfortunate for me, not even close to fired up Jun 22 07:21:51 get HYPED Jun 22 07:22:03 it 8:21 am and I'm about 5 coffees short of even being awake Jun 22 07:22:12 lol Jun 22 07:22:18 drink greentea :) Jun 22 07:22:25 your a girl Jun 22 07:22:38 cause that why my g/f says all the time Jun 22 07:22:44 greentea = healthiest drink in the world...afaik and i've researched it a lot Jun 22 07:22:53 but as I understand, thats a calming thing though Jun 22 07:22:57 plus greentea = caffeine but no crash like coffee Jun 22 07:23:04 if I were any calmer atm I would be in a coma Jun 22 07:23:19 * Leeds goes to get his breakfast green tea Jun 22 07:23:27 omg your all girls Jun 22 07:23:40 well you have a cultural excuse Leeds Jun 22 07:23:48 but only just Jun 22 07:24:05 real men eat bacon as sweets, smoke, and drink coffee Jun 22 07:24:07 :) Jun 22 07:24:24 dam I need a cig Jun 22 07:24:31 don't smoke man Jun 22 07:24:43 stuff so terrible, is literally rat poision, among other things Jun 22 07:25:07 I don't eat bacon or smoke :) Jun 22 07:25:09 yeah I dont do packets/processed Jun 22 07:25:26 greentea helps protect your body against alcohol dmg, liver dmg, lot of diseases etc...but smoking is so terrible Jun 22 07:25:42 and you will find that most sweetners are pure rat poison Jun 22 07:25:47 grew up having to breathe that crap in, glad society finally turned their back on it Jun 22 07:25:48 and I avoid them Jun 22 07:27:03 yeah my missus told me artifical sweetners are bad Jun 22 07:27:07 in the past Jun 22 07:27:16 being android devs we need to stay in shape Jun 22 07:27:21 so are all the diet drinks Jun 22 07:27:27 coke, pepsi etc Jun 22 07:27:42 I use to drink coke/pepsi like it was water, because it was so cheap Jun 22 07:28:01 stuff rots your teeth though, I rarely ever drink it, maybe once or twice a year, or every few years now Jun 22 07:30:26 Leeds: no bacon?!? Jun 22 07:30:43 bacon does sound good :) Jun 22 07:30:48 I won't deny Jun 22 07:31:04 JakeWharton: god says no Jun 22 07:31:29 gods are replaceable... bacon is not! Jun 22 07:31:36 (or actually: upbringing/tradition says no) Jun 22 07:31:46 Only one true God Jake Jun 22 07:31:54 bacon is pretty good though, turkey bacon Jun 22 07:31:56 and normal Jun 22 07:32:06 Andy Rubin is the one true God Jun 22 07:32:15 I'm not sure I'd credit Jake with being the one true God Jun 22 07:32:15 my parents cook it to where it's crispy...I think it takes the flavor out Jun 22 07:32:27 I like it with fat on it still Jun 22 07:34:43 how does one alter the theme used for something like a button or dialog (date time pickers etc) from code ? Jun 22 07:34:48 is it even possible ? Jun 22 07:35:04 you can't alter the theme at runtime Jun 22 07:35:14 you can change a button's style in a few ways though Jun 22 07:35:32 well was more the holo dark light I wanted Jun 22 07:35:42 and dialogs mainly Jun 22 07:35:49 like date and time pickers Jun 22 07:36:15 android and it's style system …ugh… they have to improve this Jun 22 07:37:07 they won't, and it's not that bad when you come to understand it Jun 22 07:37:23 depends on which attributes your rating it Jun 22 07:37:35 on my set, it's really bad Jun 22 07:38:17 considering the style is approaching a two-digit age I think it's pretty impressive how powerful it is and how much forethought went into it Jun 22 07:38:40 *style system Jun 22 07:39:03 powerful ? you and I disagree there :) Jun 22 07:39:26 unless your idea of power is inheritance Jun 22 07:39:57 mine is adaptive and changeable, in this case Jun 22 07:41:14 if you say so. i've been able to do some pretty compelling things with it Jun 22 07:42:56 sure you can do very compelling things, just dont hope to dynmically alter those compelling things or have any freedoms over it Jun 22 07:42:58 :) Jun 22 07:43:11 I should have more days like this, where I just code Android at home ... instead of C# at work. Jun 22 07:43:59 your overly vague descriptions of dynamism don't really speak to whether the fault is yours or the resource system Jun 22 07:44:30 use case, I want a user to be able to set shadle level of a theme Jun 22 07:44:52 use case, based on even x, I want ui element Y to use a different style Jun 22 07:45:06 the latter is easy with a ContextThemeWrapper Jun 22 07:45:11 use case I want the user to be able to pick a button style Jun 22 07:45:20 same thing there Jun 22 07:45:31 hmmm Jun 22 07:45:38 the first case would require a bit of work though Jun 22 07:45:47 we used to do something similar where the theme could be based on 64 different colors Jun 22 07:46:42 we had light and dark control drawables on which we adjusted the alpha with a flat color behind them Jun 22 07:46:56 maybe it was only 32. 64 sounds like a lot Jun 22 07:47:56 thankfully the designers that liked that moved on and we expunged it just as fast as possible, was terrible UX... and usually just flat-out ugly Jun 22 07:49:06 well I have my own custom objects I use as styles now, that allow me to use attribs to do a few things that I could not see how to do with styles Jun 22 07:49:17 or still with ContextWrapper Jun 22 07:49:41 a context theme wrapper is only useful if there's a finite amount of choices Jun 22 07:49:51 and they are known at compile-time Jun 22 07:49:52 re Jun 22 07:50:08 also, not really open to change based on event x for individual item a Jun 22 07:50:51 true, we're burdened by a UI stack that was designed to compete with a 2005 blackberry, not a 2007 iPhone Jun 22 07:51:39 well I've found since ditching xml, and styles, as an artist I can get more of what I want, just easier and quicker Jun 22 07:51:52 but I do call date/time pickers :) Jun 22 07:52:52 what a movie Johnny Got His Gun Jun 22 07:54:10 rburton-: just read synopsis ...fk!!! Jun 22 07:54:32 your on about the 1971 film ? Jun 22 07:54:45 Metallica has a song with words from it Jun 22 07:54:49 made me look it up Jun 22 07:56:51 the part where they're playing cards with jesus one guy turns to him and says "He's not going to die, whys he here?" Jun 22 08:13:11 I dont reccomend updating to latest build of AS Jun 22 08:13:34 for some reason in a lib project it looses some R references Jun 22 08:13:42 I keep having to re-build Jun 22 08:13:45 odd Jun 22 08:22:59 anyone here on latest (as of few hours) version of AndroidStudio ? Jun 22 08:23:29 I'm having to do a full build everytime now… wondered if anyone has the same prob Jun 22 08:38:33 Yes, it's dog slow. Jun 22 08:38:48 reading https://code.google.com/p/android/issues/detail?id=56843&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Jun 22 08:38:53 what a fkup Jun 22 08:40:23 kjeldahl: you know how to rollback a version ? Jun 22 08:41:27 Nope, haven't tried. They do seem to push updates quite often, so I'm keeping my fingers crossed. Jun 22 08:44:14 Have you tried downloading the whole AS distribution? Maybe you could do a step-by-step upgrade? Jun 22 09:55:36 so Jun 22 09:55:49 I would love you to death if you could help me out with some proguard problems Jun 22 09:56:55 * StingRay_ is not interested in "man" love, and equally not interested in having enough of it so it would kill me Jun 22 09:57:19 don't deny your feelings Jun 22 10:03:20 you tried turning it off and on ? Jun 22 10:03:22 :) Jun 22 10:05:06 I wish IT Crowd would make another season Jun 22 10:08:55 Why is Google's Navigation Drawer so much harder to use than simonVT's? :P Jun 22 10:09:55 because unlike SimonVT's it forces usage convention on you Jun 22 10:10:03 rather than letting you descide :) Jun 22 10:10:15 Damn it usage convention, always getting in the way of genius Jun 22 10:10:39 usage convention = same old, genuis = new :) Jun 22 10:11:21 That's right! Jun 22 10:15:42 Because google likes to over engineer things Jun 22 10:17:13 love them or hate them, Microsoft makes the best IDE's for sure, visual studio .net makes designing visual stuff insanely easy, i've never seen anything remotely like it yet Jun 22 10:17:15 i think they try to do that with the purpose of combating crappy apps from devs that know nothing about design Jun 22 10:17:29 hopefully google puts all those highly payed engineers on it, and copy Microsofts work Jun 22 10:17:42 for android :) Jun 22 10:17:47 In any case, I'm getting it. It's just annoying Jun 22 10:29:03 Does the Android Navigation Drawer require the content frame to be a framelayout? :/ Jun 22 10:35:03 how is that a problem? Jun 22 10:35:32 I don't know Android development well enough :P Jun 22 10:38:33 * StingRay_ is having his 1xt green tea Jun 22 10:38:37 1st Jun 22 10:38:47 tastes like burnt rat sh*t Jun 22 10:38:59 but hey ho it's good for me Jun 22 10:39:14 erm, and the obvious question... Jun 22 10:39:38 speculation Jun 22 10:39:45 I'm and artist Jun 22 10:39:47 interesting Jun 22 10:39:47 I can imagine Jun 22 10:51:07 How can I find an already created nested fragment? Jun 22 10:53:40 has anyone here used opencv4android? Jun 22 10:59:26 I drink the best tea, loose leaf half Earl Grey Half Ceylon with fresh ginger that I boil for 5 minutes before putting in the tea Jun 22 11:00:14 hmmm, yeah g/f was showing me how to measure the temp with a little probe before puring etc Jun 22 11:00:32 odd Jun 22 11:01:46 StingRay_, Thermometer? Jun 22 11:02:05 yeah, wtf is all that about Jun 22 11:02:10 70 degrees sh*t Jun 22 11:02:22 ugh, last thing I need on a morning is more complication Jun 22 11:02:24 Different teas need to be steeped at different temperatures Jun 22 11:02:46 * StingRay_ misses smoking, and the simplicity of coffee Jun 22 11:02:47 :) Jun 22 11:03:13 Good rule of thumb is dark teas need to be made in boiling water while lighter teas it is a bit lower Jun 22 11:03:33 see I even thought green tea was a type Jun 22 11:03:34 this is the tea I buy from the Afgan supermarket http://persiangrocery.com.au/wp-content/uploads/2012/04/alghazaleen-ceylon-earl-grey-tea.jpg Jun 22 11:03:46 but there are loads of green teas Jun 22 11:04:03 Matcha is my favourite green tea Jun 22 11:04:27 * StingRay_ doesn't even know what he's drinking at the moment Jun 22 11:04:36 other than "my g/f gave it to me" Jun 22 11:04:44 I poured the water though Jun 22 11:04:46 :) Jun 22 11:06:06 holy fk, I just went to get a refil, the canteen ….the tea…. it now looks like an underwater jungle Jun 22 11:06:35 I have a fresh water tropical fish tank that looks cleaner than my tea Jun 22 11:08:16 green tea is healthy and doesn't go well with cigs, so stick to that, it just doesn't taste much like tea to me though, since I been a real black tea drinker ever since Jun 22 11:09:12 pardon my absolute lack of knowledge, green and black just refer to the actual leaf color then ? Jun 22 11:09:19 hi , guys , i use textview to show a content with 3 or 4 lines , i have two question about it , how can i change the line heigh between them and also how can adjust all text ! help please Jun 22 11:09:19 and there are many different types of each Jun 22 11:09:40 no there's a real tea plant that's just tea Jun 22 11:10:27 kamali: http://bit.ly/131xymd Jun 22 11:10:31 i'm a huge huge tea drinker, so let me answer this Jun 22 11:10:45 white,black, green all come from the same plant, they're just harvested at different times Jun 22 11:11:03 from my research green tea seems to be the heathiest of the 3 Jun 22 11:11:12 hmmm ok Jun 22 11:11:31 and seems to be the healthiest drink in the world.. helps protect against tons of major diseases Jun 22 11:12:03 and lots of benefits, they're still being studied Jun 22 11:12:17 the name of the plant is Camellia sinensis Jun 22 11:12:29 thats why you get 200 year old kungfu chineese masters :) Jun 22 11:12:51 china/japan been drinking it for like 1000+ years, and both countries have highest life expectancy rates of any other countries...so it's possible it plays a role, since they're the top consumers of the stuff too Jun 22 11:12:56 like on Kill Bill 2 Jun 22 11:13:32 I better not be drink GM green tea Jun 22 11:13:40 that would piss me off Jun 22 11:13:55 dinking* Jun 22 11:13:56 you could be getting Chernobyl Tea, watch out Jun 22 11:14:05 or Fukishima Tea Jun 22 11:14:19 ew this tea now tastes very crap, 2nd cup from same canteen Jun 22 11:14:24 http://forum.bodybuilding.com/showthread.php?t=5560171&page=1 there's 25 health benefits, interesting list. I will say this, stay away from green tea supplements, some of that stuff is like 50 glasses in a little pill...obviously terrible for your liver Jun 22 11:14:25 very bitter Jun 22 11:15:08 also some have had bone deformaties from drinking insane excesses of it due to the floride in it and in water...10 or less glasses a day should be good, gallons and gallons is not, obviously Jun 22 11:16:10 it's suppoes to help with bones, teeth, breathe, hair, brain, help protect liver, etc... but like anything, if in excess can be harmful. It contains about half the caffeine as a cup of coffee but doesn't make you crash due to an ingrediant I can't think off of top of my head Jun 22 11:16:15 that's all i'll say about that Jun 22 11:16:16 :p Jun 22 11:19:16 the taste comment is amusing, lot of people say that, I think it tastest good Jun 22 11:19:43 coffee can be good, but it can be hard to swallow, depending Jun 22 11:21:06 yay, got the Google Navigation Drawer working, was just a bit of a pain Jun 22 11:21:14 but I now understand how it works...forever @_@ Jun 22 11:21:27 you should write a step by step tutorial(with pictures) Jun 22 11:21:35 and explain it to others :D Jun 22 11:23:44 StingRay_: im sorry , but im a newbie android developer , so can u just direct me to a solution .. and i think this channel made for problems , in other ways everbody knows where google is ! Jun 22 11:25:08 is this channel related to the android-dev subreddit? Jun 22 11:29:20 mdev, I think so Jun 22 11:31:23 mdev, "How to replace FrameLayout with fancy listview" Jun 22 11:31:25 :P Jun 22 11:32:28 http://cyrilmottier.com/2011/08/08/listview-tips-tricks-3-create-fancy-listviews/ Jun 22 11:54:35 i have a method on one class as "public String getLocation().." and i wanna know if i can use its output in the main activity as like this: "mLocation = LocationClass.getLocation();" ? Jun 22 12:01:04 omid8bimo: since its not a static method (assuming your m ethod signature is right) ofc you cannot call it on the class, but need an instance to call it on Jun 22 12:02:49 timroes: i created the instance, and its not static. but my question is on the addressing part in the main activity. i wanna know if its correct to put "return null" at the end of the class and map it to a String in the main activity? Jun 22 12:03:36 Hello guys. I want my app to clean some cache's on the GC-Event. Is this possible? My App could trigger itself depending on the memory situation, however It would be nice if it could also do that on user GC-request Jun 22 12:03:38 of course, if "return null" at the end of method is correct! since its supposed to return an String, should i return something else other than null? Jun 22 12:05:03 I want a google/IO t-shirt :P Jun 22 12:07:13 is anyone selling it here? :) Jun 22 12:13:01 I have one Jun 22 12:13:04 what are you offering Jun 22 12:14:00 I wouldn't say no to a spacious yacht Jun 22 12:17:14 hah ;) Jun 22 12:17:25 then I better try to get a ticket next year :p Jun 22 12:18:47 cool Jun 22 12:18:51 bring me a shirt if you manage Jun 22 12:21:49 everyone gets only one i think Jun 22 12:34:46 I have a compiled jar that I've added as a dependency to my project Jun 22 12:34:54 it requires some .so files to function... Jun 22 12:34:58 what should I do to fix this? Jun 22 12:35:10 get this working* Jun 22 12:37:07 hmm Jun 22 12:37:12 liquidmetal, does it use JNI? Jun 22 12:37:20 yes Jun 22 12:37:35 opencv is the library... if you're familiar with that Jun 22 12:37:40 mhm Jun 22 12:38:05 are your .sos already compiled for armv7 and/or other architectures you're gonna be running the app on? Jun 22 12:38:19 hello, I'm running Debian Wheezy and just downloaded ADT Bundle, and trying to run "hello world" application on AVD, but when I set it up and click on Start and Launch, emulator doesn't show up and doesn't boot. Could it be because I have openjdk, not sun jdk? Jun 22 12:38:37 Mavrik, yes Jun 22 12:38:41 openjdk should work, emulator isn't java code anyway Jun 22 12:38:57 liquidmetal, then the .so files go into "libs/armeabi-v7a" folder of your app project Jun 22 12:39:04 or armeabi if they're compiled for armv5te Jun 22 12:39:19 upon install Android will unpack them and System.loadlibrary() call will find them there Jun 22 12:39:22 armeabi it is Jun 22 12:39:34 oh - it needs to be in a dir named armeabi? Jun 22 12:39:38 Mavrik, so how could I find out why it doesn't run? Jun 22 12:39:44 liquidmetal, yeah Jun 22 12:39:57 liquidmetal, since you can have multiple copies of same file in different dirs depending on the architecture Jun 22 12:40:03 armeabi/armeabi-v7a/x86/mips Jun 22 12:40:16 liquidmetal, play store will also do filtering according to presence of those folders Jun 22 12:42:25 nice! thanks! Jun 22 12:47:00 is it possible to decompile android .bin file? Jun 22 12:49:05 In shared preferences I could store only key - value pairs ? Jun 22 12:49:19 bluesm: what else would you want ? Jun 22 12:49:24 And Anyway everything is converted to string ? Jun 22 12:49:57 StingRay_: I would like to just have one array of string.. (Maybe list, that I could make bigger) Jun 22 12:51:46 it says it is running but i can't simply see anything.. Jun 22 12:52:18 bluesm: sounds like database work Jun 22 12:52:25 StingRay_: Current solution I use, is make the keys 1 , 2 , 3, 4 ... And so on. Jun 22 12:52:38 sharedPrefs is an xml file Jun 22 12:52:46 for basic things Jun 22 12:53:03 you could use json i suppose Jun 22 12:53:04 StingRay_: It sound basic :P ? List of task ? Jun 22 12:53:22 well your wanting to add Jun 22 12:53:26 subtract entries Jun 22 12:53:31 they are lists Jun 22 12:53:35 no Jun 22 12:53:45 thats really a database Jun 22 12:54:07 StingRay_: I could try to workaround with sharedPreferences :P But this would be uuugly :P Jun 22 12:54:22 so do it properly then :) Jun 22 12:54:27 neways, up to you Jun 22 12:54:28 :) Jun 22 12:55:03 StingRay_: By the way, why they use xml not json? Isn't json easier to parse? Jun 22 12:55:56 why dont they use json for Strings/Values xml ? Jun 22 12:56:09 cause it;s simpler for pointers/pairs I would think Jun 22 12:57:29 which permission should I give to an app which wants to talk to the LAN? full internet access? Jun 22 12:58:11 I tried to run emulator from command line, it returns the error: Segmentation fault Jun 22 13:00:04 StingRay_: Mmm. I don't meant Strings/Values, course as I understand it , these files are not parsed every time you open the app ? Right ? Jun 22 13:00:10 StingRay_: I meant the sharedPreferences Jun 22 13:00:40 same type of data Jun 22 13:00:46 simple pairs Jun 22 13:01:12 can someone help me? Jun 22 13:01:33 Hey, if I've got a fragment that pops up a date picker, how do i access its' parent view to set the text of a button to the date picked? Jun 22 13:01:58 flipture: fragmentManager > Jun 22 13:02:07 i'm using the view in public void onDateSet(DatePicker view, int year.... and its crashing so i'm assuming that its refering to the view of the picker itself Jun 22 13:02:11 StingRay_: Isn't json even with one object, and only key pairs, faster to parse ? Jun 22 13:02:30 StingRay_: googling fragmentManager Jun 22 13:02:40 bluesm: if for some reason your that concerned, test it Jun 22 13:02:44 benchmark it Jun 22 13:05:34 just wonder where the android OS's / (root) is physically mount it? is it in /system partition? like the /dev/sda5? Jun 22 13:06:32 is it possible to decompile android .bin file? Jun 22 13:07:08 StingRay_: so i'm already using getFragmentManager(), "datePicker". I see that it uses TimePickerDialog(getActivity() would this be the same thing? Jun 22 13:07:37 your question made little sense to me Jun 22 13:07:43 YEP! that worked :) Jun 22 13:08:43 In onDateSet, i used Button setDateBtn = (Button) getActivity().findViewById(R.id.date_edit_button); Jun 22 13:08:48 and that worked :) Jun 22 13:09:41 It looks like fragmentManager goes from the activity to the dialog? Jun 22 13:09:46 and getActivity is the other way around? Jun 22 13:09:51 does that sound right? Jun 22 13:10:12 no Jun 22 13:10:48 heh Jun 22 13:12:21 Ok so i have a method, showDatePickerDialog(View v) that creates a new fragment using my DatePickerFragment Jun 22 13:12:40 it calls newFragment.show(getFragmentManager(), "datePicker") Jun 22 13:15:38 cocoa117, check the output of "mount" command Jun 22 13:15:46 I see the docs say that this returns a fragmentManager, which seems obvious Jun 22 13:15:53 cocoa117, Android usually has several partitions it needs for normal operation, not like normal Linux distros Jun 22 13:16:51 Ah yeah and getActivity returns the activity the fragment is associated with Jun 22 13:21:54 Mavrik, just wonder under the root (/) on android phone, where is file like /sbin, /bin, init are stored? on which partition? i am guessing is in /system partition on my phone's flash memory, right? Jun 22 13:22:10 Any suggestions for once I have my date from te date picker, getting it to an onclick listener? Maybe create a date object and do button.setTag(dateObj) ? Jun 22 13:23:13 cocoa117, Android doesn't have standard FHS Jun 22 13:23:24 don't look on Android as a "Linux" distro, it'll make your life easier. Jun 22 13:23:36 Mavrik, i c Jun 22 13:25:02 Ok, how about this one, if i'm doing something that needs a due date and a due time Jun 22 13:25:18 would it probably be easiest to store those as two separate values in the DB? Jun 22 13:25:34 Mavrik, so does the /system match /system partition, and is it where all my OS contained? Jun 22 13:25:35 i don't see an easy way to have a date object that only has a time set or a date set Jun 22 13:25:46 uh Jun 22 13:25:52 flipture, if you need to store a POINT of TIME Jun 22 13:26:00 then store it as a point of time - as a timestamp Jun 22 13:26:14 don't separate stuff, it's bad abstraction and it WILL cause you problems when you'll have to do anyting with it Jun 22 13:26:23 ok cool, thats what i thought and where i've been going with it Jun 22 13:26:40 in that case, is there a way to just set the time portion of that time stamp to be effectively null? Jun 22 13:26:57 (probbably not) so then just keep track of if i use it or not in a flag variable maybe? does tehat sound betteR? Jun 22 13:33:39 Is it possible to pay for ads in admob that leads the user to open the sms app? Jun 22 13:34:37 hello, can u help me? Jun 22 13:34:58 Quacked: maybe possible Jun 22 13:35:41 I work for a company that makes money on SMS services Jun 22 13:35:59 then I hate you already Jun 22 13:36:01 sod off Jun 22 13:36:19 I'm applying for any other job possible :p Jun 22 13:36:46 http://pastebin.com/iPakcyJy I'm getting this error when trying to run emulator Jun 22 13:37:12 but it would be cool if it was possible to press on the admob link, sms app would open and fill in number and some info and allow the user to send in sms Jun 22 13:37:17 is that possible? Jun 22 13:38:11 maybe poss to have number and message populated from it Jun 22 13:38:23 no need for user to do anything cept press send Jun 22 13:38:26 anyone? Jun 22 13:38:28 this is my gut feeling Jun 22 13:38:36 I would have to test it :) Jun 22 13:39:02 I want to run some code after every 15 minuts (if a condition is true or user has enabled the "enabled checkbox") , do some work and then exit. this should happen even at sleep (need wakelock). where do i need to start? Jun 22 13:39:02 wonder how expensive such ads will be Jun 22 13:39:28 ? Jun 22 13:39:50 Quacked: alarmManager Jun 22 13:40:00 ??? Jun 22 13:40:27 that was at Quest Jun 22 13:40:31 Quest: that was for you :p Jun 22 13:40:33 StingRay_, oh. Jun 22 13:40:39 Quest: alarmManager Jun 22 13:40:40 :) Jun 22 13:41:28 StingRay_, am.. so I need to make an alarm manager? thats thats on boot? and if the condition/ checkbox is enabled (stored in shared prefs) keep runing the code every 15 minuts? Jun 22 13:41:53 I dont care how you do it, what you do Jun 22 13:41:59 hello? Jun 22 13:41:59 you asked where to start Jun 22 13:42:02 I answered Jun 22 13:42:05 :) Jun 22 13:42:27 StingRay_, ya. for that I am thankful. but what iam saying , is it the way to go? Jun 22 13:42:40 I dont know Jun 22 13:42:46 I use it for my purposes Jun 22 13:42:51 StingRay_, i mean its a sesnisble way? Jun 22 13:42:52 dont know what yours are Jun 22 13:42:54 ok Jun 22 13:43:13 I guess Jun 22 13:43:16 what you should do is this Jun 22 13:43:22 does anybody have any idea why my phone might have the adb command line utility on it? Jun 22 13:43:23 have no alarmManager set at all Jun 22 13:43:34 purpose == start runing a code every 15 minus if a condition (shared pref boolean is true). even in sleep time Jun 22 13:43:40 then if it's checked, set an alarm for 15 min, that then sets itself again Jun 22 13:43:46 StingRay_, ahan. Jun 22 13:43:49 if unchecked it cancels alarm Jun 22 13:43:52 :) Jun 22 13:44:05 hmm.. Jun 22 13:44:21 you dont need alarmManager running to see if a box is checked Jun 22 13:44:23 thats silly Jun 22 13:44:30 hm Jun 22 13:44:36 you should have it checking on boot, and setting alarm Jun 22 13:44:46 and cancel or set based on checkbox status Jun 22 13:44:58 hm Jun 22 13:48:16 StingRay_, ok. will get back and show you some code Jun 22 13:48:31 Weird. Just received an email regarding one of my apps. All it said was "C nul votre jeu" Jun 22 13:48:48 Google translates that to "C void your game" Jun 22 13:49:19 Makes no sense. The app isnt even a game :P Jun 22 13:49:50 * StingRay_ is off out for a few hours Jun 22 13:49:56 need a break from my theme engine Jun 22 13:50:16 although for the first time in years, I'm getting impressed with myself :) Jun 22 13:50:27 laters Jun 22 13:50:29 Quacked: I can translate :P Jun 22 13:50:52 "C'est nul votre jeu", It's void (nothing, bad, etc), your game Jun 22 13:51:28 Google translates to: It sucks :P Jun 22 13:51:37 :D Jun 22 13:51:58 I've never made a game though :D Jun 22 13:53:15 game could be anything you attempted to have entertaining Jun 22 13:53:32 it was a timer tool Jun 22 13:53:57 funny Jun 22 13:54:27 i've learned to swap words in and out until reviews make sense, and i usually dont like what i find Jun 22 13:54:48 how can I get my current IP LAN address in Android? I'd like to send a multicast UDP message, so if I'm 192.168.1.126, I'd like to send the message to 192.168.1.255 Jun 22 13:55:04 Also funny that someone would even bother to send an e-mail with "your app sucks" if that was his intention :P Jun 22 13:55:11 elegos: check your router's connection list? Jun 22 13:55:29 parco: hint about class to invoke and method to use? :P Jun 22 13:55:33 instead of rating it :P Jun 22 13:57:29 elegos: i'm not sure how to do it programatically, if thats what you're asking Jun 22 13:57:47 You may be able to read current connection? Jun 22 13:57:49 parco: well, I know how a network works :P Jun 22 13:58:03 plus: check wheter you are on wifi or not! Jun 22 13:58:08 hello? Jun 22 13:58:12 the latter could be really terrible Jun 22 13:58:34 Darkchaos: you're right! NetworkInterface should do the trick Jun 22 13:58:58 I'd say ifconfig or iwconfig, however that won't work :P Jun 22 13:59:10 I want to pay admob to have an add that says "click here to send sms to 1111", and clicking on it would open sms app, fill out 1111 and some text. How can I find out if thats possible? Jun 22 13:59:27 can you guys see my messages? Jun 22 13:59:31 I cant make much sense out of admob.com except for using it for ads in my apps Jun 22 13:59:37 KrisB: yup Jun 22 13:59:53 elegos: Keep in mind that you will get flames for using much permissions. (Look up XMBC Remote for Android) Jun 22 13:59:53 Darkchaos: I just think that the latter would simply be blocked :) Jun 22 14:00:11 Or the provider visits the owner :P Jun 22 14:00:17 Darkchaos: actually I'm gonna use INTERNET and ACCESS_NETWORK_STATE Jun 22 14:01:00 I want to create a simple RPG character sheets master/player app Jun 22 14:01:07 i.e. for D&D and similar games Jun 22 14:01:24 so the master hosts the game sending in broadcast the room's name Jun 22 14:01:37 (UDP) Jun 22 14:01:46 and the others will connect to him via TCP, same port Jun 22 14:01:55 hav you thought of using bluetooth etc for gaming as well? Jun 22 14:02:06 anyone want to sell me their Galaxy Note 2? :D Jun 22 14:02:09 so how should I fix http://pastebin.com/iPakcyJy ? Jun 22 14:02:12 Darkchaos: unfortunately the BT standard allows one connection per time :( Jun 22 14:02:36 well you'd need 2 for p2p Jun 22 14:02:37 :D Jun 22 14:03:01 I don't know what your game is, however is it playable with 2 players? Jun 22 14:03:03 Darkchaos: generally speaking RPG games are played by 1 master and 4-6 players :P Jun 22 14:03:22 Dungeons & Dragons, Cyberpunk 2020, Exalted and so on so forth Jun 22 14:03:24 2+ players Jun 22 14:03:30 comparable to WoW? Jun 22 14:03:50 (only with local servers, and less players) Jun 22 14:04:02 naah, WoW is not the kind of thing I want to create :P - this app should cover just the character sheets Jun 22 14:04:27 i.e. dice rolls, HP, character's skills and so on so forth Jun 22 14:04:36 you'll still need the manuals to actually play the game :) Jun 22 14:04:46 :D Jun 22 14:04:50 Hi, I am really stuck at this small pseudo code http://pastebin.com/RJ4hAs0u I dont know how to proceed. 1. is it a good strategy 2. how to code, I mean whats needed? Jun 22 14:04:58 I'm using a Notification … new NotificationCompat.Builder(this).. all works well, but when i touch > open app (dialog theme), it should actually open in the window that was last open, instead of the menu. When I'm in Chrome and open the notification bar, open my app, then i see the app over my menu, but i would like it to open over Chrome.. is there a way to do this? Jun 22 14:05:29 elegos: then maybe implement a open WIFI-Server. or else it would be quite annoying playing in some localplaces Jun 22 14:06:11 Darkchaos: I've never built a router (software) and I'd like to let the users enter the room just displaying it from a list Jun 22 14:06:36 the only requirement is a WiFi connection (or a tethering with data disabled :P) Jun 22 14:07:29 Quest: That button thinks, you can do easily by using a getting-started tutorial. Short: go to the xml file of your activity and set the android:onClick="myMethod". Jun 22 14:08:06 that sharedPreferences thing you could also do. Just to see if it works till that point Jun 22 14:08:14 For the other things I don't have a clue :P Jun 22 14:08:43 i know how shared prefs work. Jun 22 14:08:56 elegos: I am thinking about being in a train, you won't be able to play then? Jun 22 14:08:57 but I cant make a design or integrated code Jun 22 14:09:17 can you help me? Jun 22 14:09:19 and how would tethering with data disabled work? :P Jun 22 14:09:24 KrisB: No clue, did you googleß Jun 22 14:09:54 https://www.google.de/#safe=off&sclient=psy-ab&q=glGenFramebuffersOES:1938+error+0x502&oq=glGenFramebuffersOES:1938+error+0x502&gs_l=hp.3...2890.2890.1.3148.1.1.0.0.0.0.137.137.0j1.1.0...0.0...1c..17.psy-ab.eX6n8CO9WQ4&pbx=1&bav=on.2,or.r_qf.&bvm=bv.48293060,d.Yms&fp=8155130d9dff6973&biw=1801&bih=892 Jun 22 14:10:35 or try to reinstall Jun 22 14:10:37 Darkchaos: well, I could use the NFC chip to share a secret SSID to connect to, but that would require (1) an NFC chip on all the devices, (2) a WiFi network (i.e. a software router with DHCPd) Jun 22 14:10:45 Darkchaos, reinstall what? Jun 22 14:10:57 eclipse and sdk Jun 22 14:11:15 Darkchaos, I did not install them Jun 22 14:11:40 elegos: Why secret ssid? It would help playing on the way Jun 22 14:11:45 KrisB: then how do you code? Jun 22 14:12:36 Darkchaos: think about users: their trend is to pretend all and now. What if you need to tell them to connect to a network? Wouldn't it be easier to let them connect to a private WiFi network silently? Jun 22 14:13:15 you are right Jun 22 14:13:17 hmm Jun 22 14:13:23 Darkchaos, by simply downloading ADT Bundle pack and running it on my Debian OS. Jun 22 14:13:35 so you have eclipse and sdk : Jun 22 14:13:36 :P Jun 22 14:14:08 Darkchaos, I do, but there is nothing I could reinstall. Jun 22 14:14:35 was there no driver install or something? hmm Jun 22 14:15:50 Darkchaos, nope, I just run eclipse executable (application/x-executable) Jun 22 14:27:12 any help for this. http://stackoverflow.com/questions/17251743/part-2-persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-m Jun 22 14:30:27 how can I convert an IP from its int value to the 4-numbers format? (IPv4) Jun 22 14:30:48 i.e. 419495946 Jun 22 14:37:03 Looks like admob can link to urls when clicked on. Is there another ad network that can open sms app on click? Jun 22 14:37:04 there's only about three million results on google answering that Jun 22 14:44:35 jcromartie, hi, are you JC in stackoverflow? Jun 22 14:44:51 JesseC, ? Jun 22 14:50:12 oh, its jc_dev Jun 22 14:52:47 What is the order when You call,  Map getAll () ? On SharedPReferences ? Jun 22 14:58:51 any help for this. http://stackoverflow.com/questions/17251743/part-2-persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-m Jun 22 15:15:09 I've extended SurfaceView and want to 'setContentView' to that class Jun 22 15:15:20 But it's crashing... Jun 22 15:15:25 am I doing something wrong there? Jun 22 15:16:47 liquidmetal: i would create a layout file Jun 22 15:17:11 add a viewgroup (linearlayout, relativelayout ...) and inside this view add your derived class Jun 22 15:17:31 Jun 22 15:17:33 all in xml Jun 22 15:17:57 and then do a findviewbyid and get the pointer to your class instance Jun 22 15:18:10 of couse you can do all by code without xml Jun 22 15:18:52 I've created this simple test unit to check out how UDP broadcasting works. Actually the send part works correctly (at least it doesn't give me errors!), but I'm having troubles with the receiver, i.e. I've got two questions: (1) how can I constantly listen for packets and not listening for just one? Is there a "broadcast receiver" in android? If not, where should I put the code for the receiver I've put in onCreate (which is Jun 22 15:18:52 undoubtfully the wrong place being executed in the main thread)? Thanks Jun 22 15:19:24 http://pastebin.com/FYHt7V1A <-- code Jun 22 15:21:41 I want to add it programatically... Jun 22 15:21:54 monsti, will try adding a linearlayout Jun 22 15:27:28 monsti, turns out the crash wasn't because of the surface view... some weird thing's happening Jun 22 15:32:46 its typically frowned upon to use multi-apk for supporting different versions of android; but with gradle + flavors does this become more feasible ? Jun 22 15:33:59 New question: i have a notification script: http://paste2.org/baNBWYH0, but it opens the activity twice, why? Jun 22 15:34:15 g00s: something you might like, http://www.engadget.com/2013/06/22/b-flying-car/ Jun 22 15:34:36 parco yeah, i saw that a while back ! Jun 22 15:34:39 java.io.IOException: Not a multicast group: /10.0.1.255 <-- I've initialized a MulticastSocket with port 9080 and called mySocket.joinGroup("10.0.1.255")... what am I doing wrong? Jun 22 15:35:03 (actually it's an InetAddress) Jun 22 15:35:44 parco pretty ingenious design Jun 22 15:36:25 has anyone embedded a lua interpreter in a android-java app ? Jun 22 15:37:16 g00s: yea i wasn't really impressed until he showed the durability Jun 22 15:37:32 because of the lightweight? Jun 22 15:37:52 Hi guys, I am using standard ADT (eclipse) and created an android application project. Just need to ask, how do you add an android activity but under a certain directory (i.e. /src/com/comp/app/this_directory?) Thank you. Jun 22 15:38:12 I'd do the propellers in the mid, so that they can soak up the air better Jun 22 15:38:42 I believe pathing is done by the namespace you give it Jun 22 15:38:43 like Jun 22 15:38:49 com.comp.app.this_directory Jun 22 15:39:10 if not: will moving the java fileswork? maybe you'd need to reassemble the Makefile Jun 22 15:39:44 play around with that things in a hello world app Jun 22 15:40:44 i believe moving the files manually, I will need to modify config. I am using the Create Android Activity wizard. For you guys, you just add and let eclipse handle it without actually ordering classes? Jun 22 15:44:03 how can I get the message from a MulticastSocket? I tried with new Striing(mySocket.getData, "UTF-8")), but I only get symbols! Jun 22 15:44:41 or at least... the message AND symbols Jun 22 15:44:45 i solved it btw, using android:launchMode="singleTop" in manifest Jun 22 15:44:51 this prevented from starting twice Jun 22 15:46:46 is there a way to start your activity over the last current activity from the notification bar Jun 22 15:46:51 it goes back to the menu Jun 22 15:47:02 when i open an application from the notification bar Jun 22 15:50:21 rved, I am also new here but coming from a different platform, I believe that you will need to handle the current state of your app and restore it when your app becomes active again. Might as well do some extra read about android lifecycle. Let's see what the experienced dev respond to your question. Jun 22 15:51:42 is there a less contorted way to do this? http://pastebin.com/HtfJ8S9L Jun 22 15:51:57 not sure on how to do this. I have 5 classes that extend fragments that I use the DrawerLayout with. Everytime I show a new fragment onCreateView is called which means it has to reload all the info. What I'm thinking about doing is lazily creating the fragments when button is tapped, but instead of using replace use show and hiding all the other fragments. Or should I just give all a black background and just call show and not hide? Jun 22 15:52:00 (the message text) Jun 22 15:52:16 ty, well, it's a themed dialog activity.. so you'll easily notice which application is behind it. E.g. if you're in Chrome, you go to the notification bar, open the activity and then i should overlay over the last current application, it this case Chrome Jun 22 15:52:35 now it overlays over the menu Jun 22 15:52:44 so it finishes chrome or movestoback Jun 22 15:53:25 i believe it has to do with: TaskStackBuilder stackBuilder = TaskStackBuilder.create(this); Jun 22 15:53:33 this defines the 'back' activity i think Jun 22 15:55:38 Is there any way to calculate the size the screen will be in a different orientation, from a service. i.e. I can't force the screen to rotate and measure it myself Jun 22 15:56:09 screen as in physical res will not change :) Jun 22 15:56:16 but system UI bar will Jun 22 15:56:34 yes, it will be y - bar rather than x - bar Jun 22 15:56:35 or is there a way to calculate system UI bar size Jun 22 15:56:36 :) Jun 22 15:56:45 it changes height Jun 22 15:56:49 no Jun 22 15:56:53 really ? Jun 22 15:56:55 yeh it does Jun 22 15:56:55 lol Jun 22 15:56:59 because "the" UI bar is dependent on your device Jun 22 15:57:02 on nexus 7 at least Jun 22 15:57:03 e.g. a phone Jun 22 15:57:05 a ablet Jun 22 15:57:06 StingRay_, glad you are back Jun 22 15:57:13 ... the nexus 7 has the actionbar Jun 22 15:57:19 and also a statusbar Jun 22 15:57:37 and also a 3rd bar for the 3G status Jun 22 15:57:39 StingRay_, heres what I did and need your help. http://stackoverflow.com/questions/17251743/part-2-persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-m Jun 22 15:57:42 I don't need t oworry about actionbar, I just want screen size minus system UI bar Jun 22 15:59:34 Quest: your asking for some1 to write it for you ? Jun 22 15:59:37 gd Jun 22 15:59:42 good luck Jun 22 15:59:44 :) Jun 22 16:02:13 I'm trying to create groupIndicators for an ExpandableListView Jun 22 16:02:44 I made 2 48x48 images, and added a groupindicator.xml to my drawables, containing the selector Jun 22 16:02:58 but I only get a single pixel wide indicator in my app Jun 22 16:03:14 is 9patch mandatory for such assets? Jun 22 16:03:51 i would think it's just a drawable, not a subclass of drawable Jun 22 16:04:09 cause that would be backwardly mentally retardant Jun 22 16:04:11 :) Jun 22 16:11:14 StingRay_, offcourse not. just the strategy answers as explained in part-1 Jun 22 16:11:52 all you need to do is use alarmManager Jun 22 16:11:57 like I siad Jun 22 16:12:01 said * Jun 22 16:12:46 StingRay_, yes. but how to start that alarm manager at boot if "serviceEnabled" boolean in shared prefs is true? Jun 22 16:13:08 what ? Jun 22 16:13:25 you start it when you want something run in the future Jun 22 16:13:51 you dont start it to check if you have something set so you can try to run something in the future if the data...blaaaa Jun 22 16:13:56 read what alarmManager is Jun 22 16:14:10 ya, thats what i meant. how to ,on boot, set the alarm manager to run. Jun 22 16:14:33 ok your missing the point Jun 22 16:14:36 READ Jun 22 16:14:41 alarmManager Jun 22 16:16:01 I understood what you said. read and know alram manager. its a schedule task / cron like in windows / linux. all iam asking is how to : look for boolean in shared prefs on every boot. and if its true, set alarm manager for some tasks Jun 22 16:16:32 na your still missing the point Jun 22 16:16:48 which point? Jun 22 16:16:50 you would not set alarmManager on boot Jun 22 16:17:01 alarmManager is a system service - you register alarms with it, and the system calls you at the appropriate time Jun 22 16:17:12 Quest: you need a broadcast receiver to listen for the boot_completed broadcast, and a service to read shared prefs and register your alarm pending intents Jun 22 16:17:15 Yes. I would not. but i would check the prefs on boot, if it is true. then set it Jun 22 16:17:15 (possibly repeatedly, possibly at an approximate time) Jun 22 16:17:18 you would set it to "the next task" Jun 22 16:17:32 Quest: do you know about Intents? Jun 22 16:17:37 * StingRay_ gives up Jun 22 16:17:45 Leeds, yes Jun 22 16:17:52 rops, ya. something like that.. Jun 22 16:17:53 do you know about PendingIntents? Jun 22 16:17:59 Leeds, not much Jun 22 16:18:10 Quest: this is all fairly basic stuff and you'll get plenty of examples on google Jun 22 16:18:22 rops, hm.. Jun 22 16:18:47 Quest: stop thinking of it as a way to check if something needs to run!!!! Jun 22 16:18:51 rops, Leeds StingRay_ which answer in part-1 do you agree with? Jun 22 16:19:00 it is a way to run something at a time (or there abouts) Jun 22 16:19:01 StingRay_: hmm, really can't see what I'm missing here Jun 22 16:19:10 StingRay_, hm Jun 22 16:19:26 Quest: only gonna do this once Jun 22 16:19:30 the groupIndicators are both PNG, that should work, right? Jun 22 16:19:39 even without 9patch Jun 22 16:19:51 user/even check/click set and needs something to run, set alarm manager to run intent in 20 min, job done Jun 22 16:19:58 StingRay_: wtf are you rambling about.. If you need an alarm every X, you need to set it on boot Jun 22 16:20:03 (as I don't want them stretched) Jun 22 16:20:06 if user / even unchecks etc, cancel alarm Jun 22 16:20:09 rops, Leeds http://stackoverflow.com/questions/17005837/part-1-persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-m Jun 22 16:20:13 StingRay_, hm Jun 22 16:20:26 SimonVT: well if phone goes off yes Jun 22 16:20:31 Quest: yeah, I've got better things to do than read stackoverflow Jun 22 16:20:31 not sleep though Jun 22 16:21:01 Leeds, ok. nevermind. thanks for the help Jun 22 16:21:04 Noone said sleep Jun 22 16:21:14 Anyway Jun 22 16:21:16 you read the SO post ? Jun 22 16:21:20 :) Jun 22 16:21:47 Quest: for the record, my main released app... starts at boot time, checks for a boolean preference, then sets an alarm to run later... Jun 22 16:21:50 StingRay_, how to check for the shared pref on every boot. just answer this one? Jun 22 16:21:56 I read the first line, figured guy was going to be annoying to help, then closed the tab Jun 22 16:22:17 Quest: any way you want Jun 22 16:22:19 Leeds, so it looks like i made a good strategy then? Jun 22 16:22:34 StingRay_, which way would you suggest Jun 22 16:22:42 StingRay_, because i dont know of any way Jun 22 16:22:49 to check what ? Jun 22 16:22:56 a boolean in shared prefs Jun 22 16:23:08 you dont know how to use sharedPrefs ? Jun 22 16:23:18 So now my program isn't crashing but the 'surfaceCreated' method isn't being called Jun 22 16:23:20 i do. but how to do that on every boot? Jun 22 16:23:32 boot complete intent Jun 22 16:23:40 register/filter for it Jun 22 16:23:48 how does your service start on boot ? Jun 22 16:23:56 StingRay_, ? Jun 22 16:24:08 ya Jun 22 16:25:15 StingRay_, so i need a service to run on boot, check for a bolean in shared prefs, if true, it sets/registered the alarm to run another service in forground eveery 15 minuts. correct? Jun 22 16:25:46 rops, ^ Jun 22 16:26:10 well you do what you want Jun 22 16:26:30 I dont know what you use is Jun 22 16:26:32 StingRay_, sure i would, but just asking, is this the sane way? Jun 22 16:26:46 the kung fu panda Jun 22 16:26:56 StingRay_, use == just to run a code after every 15 minuts if use had enabled it Jun 22 16:26:56 it's "in" sane yes Jun 22 16:27:09 StingRay_, why its not sane? Jun 22 16:27:28 it is insane / "in" sane / "within" sanity Jun 22 16:27:30 :) Jun 22 16:27:34 Quest: don't use this shit! Jun 22 16:27:38 use sync services with 15min Jun 22 16:27:55 StingRay_, seriously please Jun 22 16:27:57 if the alarm service fucks up - it never gets started again Jun 22 16:27:57 monsti, whats that Jun 22 16:28:08 a thing you need to google up ;) Jun 22 16:28:14 hm Jun 22 16:28:25 monsti, does alarm service usualy fucks up? Jun 22 16:28:42 e.g. if android decides to key your app out of ram Jun 22 16:28:54 nothing on earth will start it again Jun 22 16:29:02 the syncservice gets started Jun 22 16:29:03 monsti, what do you think about https://github.com/commonsguy/cwac-wakeful Jun 22 16:29:15 Eh, no, monsti Jun 22 16:29:31 what does setIndicatorBounds(int left, int right) do? Jun 22 16:29:33 If you set a repeating alarm, your service will always be started Jun 22 16:29:36 I don't get it Jun 22 16:29:45 monsti, if andoird kills my app. the alarm will run it again Jun 22 16:29:56 Quest: nop Jun 22 16:30:07 android uses the alarm() libc function Jun 22 16:30:10 monsti, i heard the same as what SimonVT said Jun 22 16:30:16 and this requires a running proces Jun 22 16:30:17 s Jun 22 16:30:25 if the process is dead - the alarm is also dead Jun 22 16:30:25 monsti: what the fuck are you talking about? Jun 22 16:30:31 monsti: No Jun 22 16:30:32 Just no Jun 22 16:30:37 Stop spreading misinformation Jun 22 16:31:00 Quest: don't do what i suggestes - do what SimonVT and Leeds tells you Jun 22 16:31:20 eh, fuck it... Jun 22 16:32:46 Quest: http://pastebin.com/4MX3ZYa3 Jun 22 16:33:00 Leeds, StingRay_ SimonVT rops guys, what classes do i need to know about in order to accomplish what i want. http://stackoverflow.com/questions/17251743/part-2-persistent-foreground-android-service-that-starts-by-ui-works-at-sleep-m Jun 22 16:33:02 Leeds, ok Jun 22 16:33:34 You want setRepeating instead of set if it's intented to run every 15 minutes Jun 22 16:34:01 Preferably setInexactRepeating Jun 22 16:34:45 SimonVT: the Updater class uses set(Inexact)Repeating - this is designed to start the updater N seconds after boot, to give it time for the network to have come up Jun 22 16:35:28 I think :) I haven't looked at my own code for a while... Jun 22 16:35:42 Leeds: Both methods lets you set the time the alarm should first execute tho Jun 22 16:35:54 So you can set it to run in 5 minutes, and then every 15 Jun 22 16:37:07 Leeds, thanks! Jun 22 16:37:14 anyway, I'm not claiming it's perfect, but it's a short and simple example of a working "run at boot time, check boolean preference, run service" Jun 22 16:37:57 Yeah Jun 22 16:38:33 all 10 lines of actual code it takes :) Jun 22 16:39:58 Leeds, so i need to run Booter class with i.e on every boot? Jun 22 16:40:07 yes Jun 22 16:41:05 ah... and looking at an actual current version of my code, I do use setInexactRepeating in Booter :) Jun 22 16:41:08 am. if i just put for it , it will auto run on boot with the onRecieve method called automatically? Jun 22 16:41:25 o/ Jun 22 16:41:29 Leeds, setInexactRepeating , whats that? Jun 22 16:41:46 its not mention in you code Jun 22 16:41:48 your Jun 22 16:41:51 Quest: it's a good example of the sort of thing you should look up for yourself, rather than asking people to explain it to you Jun 22 16:42:11 ok Jun 22 16:42:21 was just confused Jun 22 16:42:24 am. if i just put for it , it will auto run on boot with the onRecieve method called automatically? Jun 22 16:42:54 yes Jun 22 16:42:58 and do what ever is in updater class? Jun 22 16:43:20 if ofcourse the boolean in shared prefs is true Jun 22 16:43:26 Leeds, thanks! Jun 22 16:43:41 I just needed a push Jun 22 16:43:49 <|0xD34D|> Quest: make sure you have permission to receive BOOT_COMPLETED as well Jun 22 16:44:20 |0xD34D|, ok Jun 22 16:47:07 I should actually rewrite this app to use GCM anyway Jun 22 16:47:35 is there a way to stop ExpandableListView from stretching its groupIndicators? Jun 22 16:48:55 if I don't want my image to stretch at all, what nine patch pixels should I color? Jun 22 16:49:22 StringRay_ do you know this: from a notification i want to start my activity, this works, but it opens on the home screen, instead i would like it to open over the last used activity. E.g. if you your in chrome, i open notif bar, open app.. i should open 'over' my last app, in this case chrome.. is there a way to set " TaskStackBuilder.create(this)" to the last opened application? Jun 22 16:50:11 I'm using a dialog theme on my activity Jun 22 16:55:59 rved, hope this helps man: http://developer.android.com/reference/android/app/Activity.html#SavingPersistentState Jun 22 17:17:14 Does anyone know how to dynamically add pages to a swipable tab host? Jun 22 17:21:21 is there not an "add*" ? Jun 22 17:22:21 has anyone used IMAP in a Real(tm) app? Any thoughts on rolling a custom IMAP library versus JavaMail? Jun 22 17:25:10 I didn't think so... Jun 22 17:27:47 anyone ever used groupindicators that scaled well? Jun 22 17:28:00 mine get all pixelated, even when using 9patch Jun 22 17:28:31 belgianguy: what are your bitmaps like ? Jun 22 17:29:11 StingRay_: 48 x 48 PNG Jun 22 17:29:17 ok Jun 22 17:29:22 triangles with transparent background Jun 22 17:29:24 what are they like not what res are they Jun 22 17:29:26 :) Jun 22 17:29:39 triangles Jun 22 17:29:44 ok now I'm interested as to how a triangle is used as a ninePatch Jun 22 17:29:47 "what are they like" isn't very specific either. Jun 22 17:29:52 one > and one \/ Jun 22 17:29:57 pastebin Jun 22 17:30:01 image Jun 22 17:30:03 or something Jun 22 17:30:13 cause triangle is …erm… interesting Jun 22 17:30:15 :) Jun 22 17:30:31 StingRay_: I colored all sides, no sides, nothing worked (and setTextSize stretched it anyway) Jun 22 17:30:48 well show me one :) Jun 22 17:31:01 cause to me your attempting to patch an un-patchable shape Jun 22 17:31:25 I have this excellent trick that uses ttf fonts, that works if you can implement your visual element as text Jun 22 17:31:41 ttf is the unrecognized vector format in android :-) Jun 22 17:32:05 StingRay_: http://imgur.com/6JqAvDL,xLvborL,W9Wr4Hw,lKlIyce Jun 22 17:32:25 yeah thats not a 9patch Jun 22 17:32:46 eg, take away the pixel border and it's an image Jun 22 17:33:03 with the border it's a 9patch that does nothing that a normal image does Jun 22 17:33:08 doesn't do Jun 22 17:33:26 StingRay_: so I can't use those shapes Jun 22 17:33:26 your scale areas are the entire image Jun 22 17:33:28 ? Jun 22 17:33:32 not a patch of the image Jun 22 17:33:42 so no point to having the .9. there Jun 22 17:34:04 StingRay_: yeah I removed them now Jun 22 17:34:26 it's that they are part of a logo, and it'd been nice if I could use them as group indicator Jun 22 17:34:52 but the group heading pixelates them when I set TextSize Jun 22 17:34:57 (to 30DP) Jun 22 17:35:12 well it will, cause it's scaling pixels Jun 22 17:35:38 do m, h, xh versions Jun 22 17:36:01 then maybe force load different resource groups based on height required Jun 22 17:36:01 I've placed this one in the drawable-hdpi folder Jun 22 17:36:34 by resource group I mean qualifier/bucket etc Jun 22 17:36:40 whatever it's called Jun 22 17:36:42 StingRay_: hmm, I don't get that :/ Jun 22 17:36:57 create low, medum, high versions Jun 22 17:37:33 and dynamically override the one it's using based on the requirements Jun 22 17:38:10 hmm, I'll have to find a tool to do that, don't know much about 'ideal' sizes for those categories Jun 22 17:38:26 well your not going of those catagories really Jun 22 17:38:55 is this text variable height ? Jun 22 17:39:03 that governs this size ? Jun 22 17:39:19 it's a TextView.setSize methods Jun 22 17:39:30 yes Jun 22 17:39:41 and is the number that goes in there, "variable" ? Jun 22 17:39:47 subject to dynamic change ? Jun 22 17:39:54 alters based on X factor ? Jun 22 17:40:12 or is it always N Jun 22 17:40:27 StingRay_: tv.setTextSize(TypedValue.COMPLEX_UNIT_SP, 30); Jun 22 17:40:45 so tis always 30 Jun 22 17:41:27 tis = it is Jun 22 17:41:29 :) Jun 22 17:43:04 I'm working with the Facebook SDK and I've tried to create a WebDialog with a FeedDialogBuilder. The dialog comes up, however, after giving the app permission, the dialog closes and does not show the share sheet. Does anyone know a reason why this could be? I've set all the required parameters. Jun 22 17:43:16 StingRay_: what would be the advisable resolutions to use? Jun 22 17:43:27 yeah, it's always 30 Jun 22 17:44:40 well at mdpi you could assume 30 pixels Jun 22 17:44:57 so 32 x 32 ? Jun 22 17:45:05 then hdpi 48 x 48 Jun 22 17:45:24 hi all! Jun 22 17:45:36 last version of android studio wna't start Jun 22 17:45:36 best idea it to house them in something that will not scale them, so that supports scaleTypes Jun 22 17:45:46 while the older worked perfectly! Jun 22 17:45:54 i cannot find the link to the old one Jun 22 17:45:58 someone have it ? Jun 22 17:46:35 G10h4ck try eclipse ! Jun 22 17:46:37 0.1.6 is not working for you? Jun 22 17:47:01 today it proposed me the update Jun 22 17:47:09 kakazza: 0.1.6 is crapped here, got the R gen bug Jun 22 17:47:13 and after this it won't start anymore Jun 22 17:47:24 it die silently Jun 22 17:47:28 without reporting error Jun 22 17:47:34 also teh exit code is 0 !! Jun 22 17:47:51 i made plain intellij crash hard last night, oh what great stuff Jun 22 17:47:58 g00s i switched to androidstudio because eclipse goes crazy avery 2 days with R ... Jun 22 17:48:23 i'm thinking about just using vi Jun 22 17:48:38 or sublime Jun 22 17:48:50 g00s: bold Jun 22 17:48:53 I like it Jun 22 17:49:13 playing with the gradle stuff, it seems pretty useful to me already - but AS seems not ready for use, and ADT doesn't support it Jun 22 17:49:42 everything always seems broken in android tools land Jun 22 17:49:48 g00s android studio was working better than eclipse before last update :( Jun 22 17:50:25 hehe, now it isn't :) Jun 22 17:52:06 G10h4ck you could just go back to vi or edlin Jun 22 17:52:15 at least that crap works Jun 22 17:53:05 What sane reasons might getString(R.string.whatever) return nothing? Jun 22 17:54:36 nothing is something Jun 22 17:54:52 guys it seems it was the shit autorestart to brak things Jun 22 17:55:07 there was a java process open and for that it wont start anymore... Jun 22 17:55:17 oh, found it, .xml.default was still being parsed Jun 22 18:00:33 androidannotations or roboguice ? Jun 22 18:04:08 what? Jun 22 18:07:35 out of interest what is the point to either of those Jun 22 18:07:44 are they not, quite restrictive ? Jun 22 18:10:22 I have an activity that lauunches another activity Jun 22 18:10:50 but once I run it on my device, it it always opens up with the launched activity Jun 22 18:11:00 even after 'swiping across' the app and closing it Jun 22 18:13:05 any hints on where I might be going wrong? Jun 22 18:14:58 wrong with what ? Jun 22 18:24:28 StingRay_, I want it to start with a particular activity after I 'hard-close' the app Jun 22 18:25:01 start it how ? Jun 22 18:25:35 by touch its icon on the home screen? Jun 22 18:25:38 touching* Jun 22 18:25:46 apologies if I sound naive Jun 22 18:26:00 well that will launch LAUNCHER Jun 22 18:26:25 StingRay_, that's what I thought! But it doesnt... Jun 22 18:26:50 if it doesn't thats something your doing, or it's not fully closed Jun 22 18:26:52 :) Jun 22 18:26:59 Anybody here using Android Studio on linux? Jun 22 18:27:09 Bleeptech, me Jun 22 18:27:26 StingRay_, advanced task killer couldn't do it's job :( Jun 22 18:27:51 ATK - you had one job Jun 22 18:31:47 liquidmetal: WTH is your "Gradle Home" set to? Mine is refusing to take /bin/gradle or ~/dev-crap Jun 22 18:32:14 yourandroid-studio-path/plugins/gradle Jun 22 18:32:34 it's lame that it doesn't pick this up automatically Jun 22 18:34:56 Even worse that it's ambiguous about what it wants.. Jun 22 18:35:25 hey guys, how do I take a picture with the front facing camera? Jun 22 18:36:16 same way you take one with the back Jun 22 18:36:23 but use the front index instead Jun 22 18:36:48 StingRay_, front index? Jun 22 18:36:56 yes Jun 22 18:38:18 I see Jun 22 18:39:33 liquidmetal: Will it eventually thow an error if the proxy settings are wrong? Jun 22 18:40:04 proxy settings? Jun 22 18:40:14 You can check if androidstudio can connect to the internet Jun 22 18:40:22 File > Settings Jun 22 18:41:52 I'm stuck at a "Gradle: Dowload .." dialog.. That's why I asked Jun 22 18:42:21 hmm - try it out Jun 22 18:42:31 File > Settings > HTTP Proxy, click test connection Jun 22 18:42:36 how would I changed the background on a activity every time its loaded to a new pic without it lagging? Jun 22 18:43:49 liquidmetal: OK.. It finally imported Jun 22 18:51:09 I'm creating a linearlayout Jun 22 18:51:15 and putting two more linear layouts inside these Jun 22 18:51:27 I added buttons to them - but nothing shows up? Jun 22 18:51:30 shows up* Jun 22 18:51:43 I tried setting mininum widths/heights Jun 22 18:51:44 layout params Jun 22 18:51:48 but still nothing Jun 22 18:52:31 What might I have done wrong? Jun 22 18:54:01 orientation ? Jun 22 18:54:16 HORIZONTAL/VERTICAL Jun 22 18:54:18 :) Jun 22 18:55:51 it was me being stupid Jun 22 18:56:18 well I didnt think it would be a bug in a linearLayout :) Jun 22 18:56:31 what did you do ? Jun 22 18:56:39 I thought it might be something to do with how android calculates sizes Jun 22 18:57:54 so what were you doing ? Jun 22 18:58:02 that was stupid ? Jun 22 18:59:30 I wasn't adding the two other linearlayouts Jun 22 19:05:45 anyone here ever attended some hackathon? Jun 22 19:06:09 liquidmetal: kind-of Jun 22 19:06:53 JesusFreke, where? Jun 22 19:07:41 dallas Jun 22 19:08:41 neat! Jun 22 19:08:48 what did you make? some android app? Jun 22 19:09:05 i've always been curious what it's like Jun 22 19:09:21 JesusFreke were you using AS or plain intellij? Jun 22 19:09:47 g00s: plain intellij - I downloaded AS and looked at it once, but that's it Jun 22 19:10:05 JesusFreke ok, do you think it should be feasible now to use the gradle build system from the command line, but edit the code with basic completion in plain intellij Jun 22 19:10:09 I'm not currently doing any android app development, so I haven't had a chance to actually use AS Jun 22 19:10:15 g00s: definitely Jun 22 19:10:34 ok, i'm going to try that Jun 22 19:10:36 thanks Jun 22 19:11:07 I should convert penroser to gradle, and try it out with AS Jun 22 19:11:08 JesusFreke one last q; cana module root lie within another module's root? Jun 22 19:11:14 yes Jun 22 19:11:35 does the parent module need to exclude that child's root? or does idea figure it out ? Jun 22 19:11:50 idea figures it out Jun 22 19:11:55 hm Jun 22 19:11:58 ok, thanks again Jun 22 19:12:16 AS is pretty good Jun 22 19:12:38 They've been updating it often recently too Jun 22 19:13:01 cept now it does auto build R for me anymore Jun 22 19:13:05 :) Jun 22 19:13:06 g00s: you're not talking about inside the actual source folder, right? like you would have parent/ parent/src parent/child, parent/child/src Jun 22 19:13:33 auto build R? Jun 22 19:14:02 yeah, it destroys R after every deployment and does not regen without me doing a full build Jun 22 19:14:08 on 0.1.6 Jun 22 19:14:16 tis a registered bug Jun 22 19:14:17 JesusFreke no, i would not have the child module in the paren't source folder Jun 22 19:16:37 hmm, i've not used the resources much till now... Jun 22 19:19:33 liquidmetal: Did you have a problem like 'android studio org.gradle.tooling.UnsupportedVersionException: The specified Gradle installation is not supported by this tooling API version ' ? Jun 22 19:23:43 hey guys, I remember there was an async http library like Volley, but executed in a background service Jun 22 19:23:51 does anyone remember it's name? Jun 22 19:29:45 interesting that i havent heard much mention about volley since the day of the talk Jun 22 19:30:14 it's ok but it's not very flexible Jun 22 19:30:38 for example I can't force to avoid caches Jun 22 19:30:45 and that's really bad Jun 22 19:32:48 stiggpwnz: Set a nocache tag in the content you're feeding? Jun 22 19:33:39 Bleeptech, I need to control it on my client side Jun 22 19:34:20 stiggpwnz: Set the cache size to 0 on the client side? Jun 22 19:34:52 Bleeptech, thing is, I need to sometimes avoid cache, sometimes not Jun 22 19:35:05 Bleeptech, even on a same type of requests Jun 22 19:35:23 Bleeptech, I need something like Request.setAvoidCache(boolean) Jun 22 19:36:30 stiggpwnz: Then all I can say is 'Good luck coding it.' LOL.. Jun 22 19:36:55 Bleeptech, I actually made a simplified version of Volley Jun 22 19:37:17 https://github.com/adelnizamutdinov/android-async-http-client Jun 22 19:38:28 how can I get the context's running thread? i.e. I want to create a library which creates a new thread and eventually calls a method in the context's thread. Outside a library, I'd call runOnUiThread... but what when the only thing I've got is the application's context? Jun 22 19:46:37 is there a gradle task to create a skeletal version of a project (dir structure, etc) like android create project ? Jun 22 19:48:01 I assume android create project will be updated to create a gradle project once it hits 1.0 Jun 22 19:51:03 ok, was looking for something like mvn archetype:generate Jun 22 19:53:24 elegos, you need to create a handler somewhere on a main thread Jun 22 19:53:43 elegos, and context hasnt anything to do with threading Jun 22 19:54:07 stiggpwnz: I suspected that 2nd thing. May you please tell me mor about handlers? Jun 22 19:54:39 elegos, just create a Handler somwhere on the main thread Jun 22 19:54:57 maybe a static handler in the application Jun 22 19:55:03 as a singleton Jun 22 19:55:15 Just do new Handler(Looper.getMainLooper()) Jun 22 19:55:39 oh, that'll be even better Jun 22 19:55:44 and the handler will wake up when a message is being sent? Jun 22 19:56:42 Since you mentioned runOnUiThread yourself.. runOnUiThread just calls mHandler.post(Runnable) Jun 22 19:57:47 (except if you're already on the ui thread, then it executes the runnable immediately.. But that's besides the point) Jun 22 19:57:57 Handler(Looper looper, Handler.Callback callback) <-- if I'm not wrong this should be the thing I'm looking for? i.e. attach to the main looper and eventually call the callback, which is being implemented by the user who uses the library? Jun 22 19:58:10 pfn you're right, gradle seems very slow Jun 22 20:04:42 how can I define a method which has to be implemented in the developer's version? Jun 22 20:36:58 #android-jobs Jun 22 20:37:04 sorry :| Jun 22 20:38:45 anyone know how to run a code generator (in this case ragel) from a gradle.build ? Jun 22 20:53:17 Does anyone know of an android app whose only purpose is to take photos or videos and upload them to a web server? Jun 22 20:53:50 Most of the imgur apps. Jun 22 20:54:01 But surely that is not your actual question. Jun 22 20:56:53 kakazza: I have a web application running on a server. It's used by marketing companies to create surveys (projects). Each project has many participants. Each participant has their own image and video gallery on the site. I need a way for the participants to easily upload images and videos to their own page. I'm looking for a tool that can do this. Does one exist? Jun 22 20:57:26 I've got one for images. Jun 22 20:57:57 Are you asking for development help or for readily done products? Jun 22 20:58:19 What I need is just about possible with the Instagram application and API, but I'd rather use an app that is dedicated to the purpose that I require. Jun 22 20:59:08 I imagine that syncronizing videos/images is something that is often required by application developers. Jun 22 20:59:32 syncronizing … wouldn't have thought so Jun 22 20:59:44 * StingRay_ racks brains to think of 1 Jun 22 20:59:59 well besides dropbox/gdrive Jun 22 21:16:39 As one isn't allowed to talk about 'advertising, jobs or otherwise' here - would you happen to know where you can? Jun 22 21:19:07 sad restrictions Jun 22 21:22:10 Indeed Jun 22 21:22:28 there are many sites on the internet for that Jun 22 21:22:34 projects/freelance etc Jun 22 21:22:45 and they happen to be a buyers market Jun 22 21:22:58 if you have the slightest amount of sense that is Jun 22 21:24:46 * Bleeptech is starting to think that his working codebase is totally borked.. Jun 22 21:25:06 Which is odd because it worked and compiled.. Jun 22 21:26:44 blame it on tools Jun 22 21:27:00 Damn you, tools! Jun 22 21:31:51 Dang it tools, always failing me! Jun 22 21:32:10 Just like when LLVM wasn't quite quick enough for what I needed Jun 22 21:32:56 I think that's part of it.. I was working in Eclipse, renamed the project (which broke it), tryed importing into android studio to fix it and I've still got screwy errors. Jun 22 21:33:41 Bleeptech: thats like really odd you know that Jun 22 21:34:04 to fix something you switch IDE (that is most of the time gonna create new problems) Jun 22 21:35:22 I was getting the dreaded 'cannot resolve R.blah.blah' errors. Jun 22 21:35:49 well thats no deaded Jun 22 21:35:56 thats just, something stopping it Jun 22 21:36:56 xml syntax Jun 22 21:36:56 Yeah, and I'm getting them in AS as well.. Jun 22 21:37:08 namespace prob Jun 22 21:37:28 switching ide wont fix a problem you have Jun 22 21:37:46 although saying that, it may show you the problem better :) Jun 22 21:38:01 Programmer Headspace or ID10T error.. LOL Jun 22 21:55:54 Currently, I want to set the background color of an app. Which view should I run setBackgroundColor(Color.GREEN), and how do I access that view? Jun 22 22:01:46 main?` Jun 22 22:03:55 pastebin, Ah, that sounds right. How would I access main? View.main.setBackgroundColor()? Jun 22 22:11:02 cheese1756 http://stackoverflow.com/questions/8961071/android-changing-background-color-of-the-activity-main-view Jun 22 22:11:34 pastebin, I had Googled around a lot, but I somehow missed that one. Thank you! Jun 22 22:11:43 np's Jun 22 22:21:10 hey guys, I'm getting a NullPointerException: file for this camera app http://pastebin.com/nFWd7mZa Jun 22 22:21:38 at 21 and 212 Jun 22 22:21:41 but I can't figure out why? Jun 22 22:23:48 stack trace? Jun 22 22:24:37 CocoStorm: where are you instantiating mCamera? Jun 22 22:24:46 JesusFreke, http://pastebin.com/7gzV1fgT Jun 22 22:25:53 that source doesn't match your stack trace Jun 22 22:26:35 JesusFreke: i concur, there's no 212 Jun 22 22:26:58 really? :S Jun 22 22:27:10 oh my dad, i didn't paste all the import Jun 22 22:27:11 s Jun 22 22:27:15 *my bad Jun 22 22:27:16 ends @ 169 Jun 22 22:27:18 In any case, it's pretty obvious you're passing null to Uri.fromFile. I'm guessing on line 138 of your pastebin Jun 22 22:27:40 so getOutputMediaFile is returning null for some reason Jun 22 22:27:55 There are several ways it could return null, so you'll have to figure out which one it is Jun 22 22:28:54 Hello world Jun 22 22:28:55 I would like encrypted text in java for android with an RSA key already generated by openssl, but I find nothing in the doc for it: ( Jun 22 22:28:55 Is that possible? Thank you for your help. Jun 22 22:28:56 JesusFreke, I see, I will look into it Jun 22 22:28:58 It looks like a pretty straight forward NPE to me :) Jun 22 22:29:48 can someone help me with some face detection questions on android Jun 22 22:29:57 user_1337, Make sure you're checking the Java docs, not the Android docs. I know that RSA encryption is possible in Java, let me find a link Jun 22 22:30:38 any face detection experts out there? Jun 22 22:31:01 JesusFreke, so it's either not an image or there's no directory for it? Jun 22 22:31:29 moubarak_, I like the irony of a former Egyptian dictator asking about face detection Jun 22 22:32:32 user_1337, This doesn't deal with RSA specifically, but it should be a decent jumping-off point: http://docs.oracle.com/javase/6/docs/api/javax/crypto/package-summary.html Jun 22 22:34:52 haha Jun 22 22:35:35 cheese1756, thank you for your help, I continue my research Jun 22 22:35:43 cheese1756 its been a while since someone mentioned the Egyptian dictator after reading my name Jun 22 22:35:50 user_1337, I hope that's a decent starting point Jun 22 22:36:33 cheese1756 you think you can help me out? Jun 22 22:36:48 moubarak_, I have one, but it only works on political dissidents. Is that OK? Jun 22 22:36:59 moubarak_, In all seriousness, I don't know about face detection, sorry Jun 22 22:37:21 bo probs Jun 22 22:37:42 cheese1756 btw my first name is Mohamed too Jun 22 22:37:43 cheese1756, and that this is done in 3 lines of php code ... 3 days I'm looking for, I could cry :) Jun 22 22:39:19 JesusFreke, I can't find the problem Jun 22 22:39:23 user_1337, Does this help? http://www.javamex.com/tutorials/cryptography/rsa_encryption_2.shtml Jun 22 22:40:17 CocoStorm: try harder. there are exactly 3 returns in that method. It's not hard to figure out which one is being hit. Jun 22 22:40:34 Debug the app and set breakpoints. Or add some logging. Jun 22 22:40:40 This is debugging 101 :) Jun 22 22:41:29 i need help with enhancing android's face detection in backlit conditions, anyone can help? Jun 22 22:42:27 JesusFreke, ahh failed to create directory, I failed to notice the log ;) Jun 22 22:42:56 why would it fail to create a directory :S Jun 22 22:44:32 cheese1756, I admit that I started in Java and I have a lot of trouble understanding the organization. Thank you very much for your link seems interesting, I'll open a topic in a forum, because I would not be able to get out alone :) Jun 22 22:44:32 again thank you Jun 22 22:44:56 CocoStorm: no permissions, no space, etc. Jun 22 22:45:27 hmm probably no permissions, that would make sense. I'll try it out thanks Jun 22 22:45:30 ! Jun 22 22:54:27 hi Mavrik Jun 22 22:54:31 are you around? Jun 22 22:56:40 Okay I'm not getting anymore errors but my camera app isn't saving any pictures. Why is this? http://pastebin.com/UbG9nTqR Jun 22 22:56:52 ppl dont talk here either do they Jun 22 23:02:43 cheese1756, http://www.javamex.com/tutorials/cryptography/rsa_encryption.shtml Jun 22 23:02:54 RSAPublicKeySpec pub = fact.getKeySpec(kp.getPublic(), RSAPublicKeySpec.class); Jun 22 23:03:01 kp == ??? Jun 22 23:03:48 sorry, found :') Jun 22 23:11:07 I am in russia, but I have created a company in US for selling apps. And google automatically selected russia as country and won't let me change it to US. Jun 22 23:11:37 Not sure what to do in this situation. Jun 22 23:12:18 I have to supply tax information and don't know if it needs to be for as individual or for a company. Jun 22 23:14:58 does anyone know how to change the background of a layout programatically? Jun 22 23:15:57 Does anyone know how to enhance face detection when the subject is backlit? Jun 22 23:16:13 KillmeSoftly: view.setBackground I assume Jun 22 23:16:49 lol ok thnx Jun 22 23:18:48 camera experts? Jun 22 23:19:28 how to minimize halo effect due to backlit subject Jun 22 23:19:39 does anyone here to dev in chrome os? on chrome laptops? Jun 22 23:19:42 do dev* Jun 22 23:21:13 acidjazz, nope, it's a terrible idea :P Jun 22 23:21:20 interesting Jun 22 23:21:30 no eclipse or android studio in chrome os eh? Jun 22 23:21:59 i love hte chromebook pixel hardware.. but i need an OS i can dev in Jun 22 23:22:32 So install a different one? Jun 22 23:22:57 tahts a dangerous path Jun 22 23:23:07 i see a lot of people putting ubuntu on theirs Jun 22 23:23:18 chromeos runs only one app: Chrome Jun 22 23:23:25 so no, no IDEA, AS or Eclipse. Jun 22 23:23:32 doesnt it have a terminal Jun 22 23:23:35 nope. Jun 22 23:23:42 yea it does Jun 22 23:23:43 at least not a bash one Jun 22 23:23:45 ctrl+shift+t Jun 22 23:23:55 well, have fun doing nothing with it. Jun 22 23:24:10 http://coderun.com/ Jun 22 23:24:20 sell it for 500$, get another 1500$ and get a retina mac if you want comparable hardware that can run an IDE Jun 22 23:24:27 thats what i use now Jun 22 23:24:28 love it Jun 22 23:24:38 acidjazz: dangerous? Jun 22 23:24:40 retina mac + iterm2 + adb/ant Jun 22 23:24:56 kakazza: yea liek an os on a machine not built for it .. you got battery issues/etc Jun 22 23:25:13 Tell me how many notebooks are built for Ubuntu. Jun 22 23:25:52 kakazza, there's quite a few actually ;) Jun 22 23:25:59 Ubuntu will work on most anyway Jun 22 23:26:03 and yes, Ubuntu on Chromebook has quite a few issues Jun 22 23:26:05 Mavrik: url Jun 22 23:27:22 Mavrik: My point is, they may ship with Ubuntu, but I doubt they are "built for it". Ubuntu runs on most if not all notebooks. On some better, on some worse. But none of them have the tight integration OSX + Macbooks come with. Jun 22 23:27:26 Given an activity, I can identify when the back button was pressed Jun 22 23:27:30 (onBackPressed()) Jun 22 23:27:35 kakazza, as I said, quite a few. Jun 22 23:27:44 So it being 'dangerous' sounds a bit ridiculous. Jun 22 23:27:51 but how do I cancel a back? (like when the user wants to stay on the current activity) Jun 22 23:28:02 liquidmetal, don't call through to super. Jun 22 23:28:23 yea kakazza exactly what i mean by dangerous Jun 22 23:28:31 Mavrik, a haa! Jun 22 23:29:07 I don't think you and I have the same definition of danger. Jun 22 23:29:59 anyway, before this silly trolling goes anywhere farther: Ubuntu on Chromebook pixel is serious pain in the ass to use, has quite alot of issues that make it a very suboptimal OS for that system. Jun 22 23:30:34 I don't see anyone trolling. And I don't see you providing any sources. Jun 22 23:30:53 it needs killer gamez Jun 22 23:31:15 like binary blob drivers for input, Ubuntu's inability of good high-dpi screen handling, having to always confirm dev mode at boot or bad stuff can happen to you, etc. Jun 22 23:31:26 * g00s made his first library-project gradle aar \o/ Jun 22 23:31:30 then there's fun stuff like setting your speakers on fire if you have the Samsung one :P Jun 22 23:31:53 kakazza, well, having actually the Pixel and Samsung devices I pretty much speak from first hand experience. Jun 22 23:32:12 I can write a blog post and then link it to you if you wish, so you'll have an URL. Jun 22 23:35:00 Fair enough. Jun 22 23:35:42 Does suspend/hibernate work? Jun 22 23:36:02 anyway, luckly managed to persuade Samsung to replace the ARM one since there's a freak corner case even on ChromeOS that fries the speaker :P Jun 22 23:36:08 yes, suspend/hibernate works Jun 22 23:36:22 So you only need to enter dev-mode once, ever ;p Jun 22 23:36:56 true Jun 22 23:39:56 gradle build daemon ftw Jun 22 23:44:03 ok, i have a dumbass question. its probably buried somewhere in the 35 chapter gradle user guide but - when i used maven, you published a built artifact to repository so other projects could use it. is this still the same with gradle? i don't understand the examples where projects have library subprojects, i would think those would just be dependencies (like mvn, in the pom) Jun 22 23:45:32 gradle can pull things from maven repos Jun 22 23:46:08 codebutler so when i used mvn, i would make a local repo (fs) Jun 22 23:46:27 yes, you can still do that. Jun 22 23:46:28 do i still do that ? Jun 22 23:46:30 ok, thanks Jun 22 23:46:58 I usually have a "maven" repo inside of my project repositories, so all 3rd party dependencies are bundled Jun 22 23:48:36 Say no to libraries not in central Jun 22 23:48:57 SimonVT, except teh ones you develop yourself? -.- Jun 22 23:49:17 I have my own maven repo for a couple of things I'm developing, they're not ready for central yet :E Jun 22 23:49:57 most people haven't posted aar artifacts to central yet. Jun 22 23:50:01 I wouldn't push my own libraries to an in-project repo Jun 22 23:50:01 for popular libraries Jun 22 23:50:08 I'd never use in-project repos at all Jun 22 23:50:37 SimonVT, I don't either, I host my repos on my server... Jun 22 23:50:44 Hey all, I'm still getting used to Java and Android after coming from a background of FreeBASIC, and I'm starting to feel rather overwhelmed with all the code involved, which I'm noticing is slowing down my progress. Has anyone else here ever encountered the same issue before? Jun 22 23:50:53 can I set a font of a view directly from the XML layout file instead of add it programmatically? If yes, where should I put the font resource? Jun 22 23:51:19 Da_Rhyno, -.- Jun 22 23:51:36 Da_Rhyno: I don't know FreeBASIC, is it an object-oriented programming language? Jun 22 23:51:46 elegos - Not really, mainly procedural. Jun 22 23:51:50 what do you guys mean by in-project repo? is that like a maven local repo ? Jun 22 23:51:56 Zharf - what? Jun 22 23:52:13 Da_Rhyno: I'd suggest you to start the 1-2-3 in Java before proceeding with Android then Jun 22 23:52:13 I'm speechless Jun 22 23:52:28 Why are you speechless? Jun 22 23:52:38 elegos - Do you know any good tutorials online for Java? Jun 22 23:52:52 Da_Rhyno: google is your friend - just start with hello world Jun 22 23:53:25 g00s: there is a bug where you can't reference aar dependencies just using files() in gradle. Jun 22 23:53:38 codebutler wat Jun 22 23:54:00 is that a gradle bug or google bug ? Jun 22 23:54:19 Thanks Jun 22 23:54:50 it's probably a bug with the android gradle plugin. works fine for jar files. Jun 22 23:54:58 codebutler is it on the android issue tracker ? Jun 22 23:55:35 lol, that was the whole reason why i went down this path Jun 22 23:55:47 anyway, a simple workaround is to create a maven repository inside the source tree. it's not really much different conceptually. Jun 22 23:56:43 okie thanks Jun 22 23:56:45 Push it to your local repo Jun 22 23:57:36 hello Jun 23 00:00:46 hey guys, my camera app isn't saving any of the pictures i'm taking why is this? http://pastebin.com/XhcgdBbv Jun 23 00:08:36 CocoStorm: Log.d is your friend.. Jun 23 00:10:16 Bleeptech, not sure what i'm supposed to be logging cos there's no errors or anything Jun 23 00:10:18 :( Jun 23 00:10:19 Toss in a few log.d ("MyCameraApp","Made it this far 001!"); Jun 23 00:10:48 Keep incrementing the # as you go. Jun 23 00:11:46 I'd try @ line 168 .. and 157 to start. Jun 23 00:15:22 it is truly remarkable how _wrong_ Java engineers get Android... Jun 23 00:16:27 Bleeptech, 168 and 157? Jun 23 00:16:51 which paste are you looking at / Jun 23 00:18:08 .. yours? Jun 23 00:20:37 Java engineers got java wrong Jun 23 00:20:56 oh, and in other news Jun 23 00:21:08 adb shell dumpsys activity com.your.stuff/.SomeActivity Jun 23 00:21:16 very useful. YOu can even implement a custom dump() method on SomeActivity Jun 23 00:21:35 i cant believe i didn't know you could do this. i always just used dumpsys service like a schmuck. Jun 23 00:21:40 Bleeptech, I've put some tags in and they all seem to be working Jun 23 00:32:09 still can't figure it out. Jun 23 00:32:51 jasta how do you do it? in broad strokes ... Jun 23 00:33:17 man, gradle erroes sucks ass … "Could not find method uploadArchives() for arguments [build_rbkfplpdj4s5h1q883gguloo3$_run_closure1@22a316ad] on root" Jun 23 00:33:22 *errors Jun 23 00:34:17 Trying to get a DialogFragment to work. It displays, however, the onEditorAction never gets called when the user hits done... http://pastebin.com/i1Hnwp73 Any suggestions? Jun 23 00:34:17 i remember when maven used to just give you a stack trace :) Jun 23 00:35:40 g00s: do what? Jun 23 00:35:56 jasta impl custom dump() method Jun 23 00:36:24 you just override the dump method on either Service or Activity. then you can invoke adb shell dumpsys {activity|service} Jun 23 00:36:29 your custom dump method will be called. Jun 23 00:36:32 Can anybody help Jun 23 00:36:50 you can develop a tiny little command-line interface to your components this way Jun 23 00:36:51 CocoStorm: I don't know what your problem is, I just joined room.. Pastebin? Jun 23 00:37:18 i never knew about activity, but i have used Service#dump a lot. Jun 23 00:37:18 QbY, I'm not sure why the picture I take aren't being saved http://pastebin.com/XhcgdBbv Jun 23 00:37:34 g00s: for example, adb shell dumpsys activity com.android.launcher/com.android.launcher2.Launcher Jun 23 00:38:06 jasta so the dump( … String[] args ) … you can pass in ? Jun 23 00:38:21 yes, adb shell dumpsys activity Jun 23 00:38:25 args go into that array Jun 23 00:38:31 awesomesauce Jun 23 00:38:31 CocoStorm: And your logs say what? Jun 23 00:38:44 anything you write goes to dumpsys' stdout, therefore to your terminal Jun 23 00:38:44 QbY, nothing at all Jun 23 00:38:51 thanks jasta, i learned something very useful today. i've never seen anyone do that before Jun 23 00:39:09 g00s: separately dumpsys activity prints a bunch of other useful crap about your activity. what fragments it has, its current state, its view hierarchy (text form), etc Jun 23 00:39:18 i did not know about this command until like 2 weeks ago Jun 23 00:39:44 the Service#dump one doesn't do anything fancy like that. if you write nothing, it writes nothign. Activity#dump basically has a bunch of useful defaults Jun 23 00:40:18 Doing my first staged rollout... Jun 23 00:40:33 if you run the dumpsys activity launcher thing i showed above you can see what i mean. A bunch of common state and then following is this huge list of DbDebug log entries that Launcher produced. Jun 23 00:40:59 interesting Jun 23 00:42:21 yeah, this is transformative stuff man Jun 23 00:42:24 im going to use this a lot more Jun 23 00:42:32 i bet romain had something to do with this :) Jun 23 00:42:52 api 11, ok Jun 23 00:42:59 i was in froyoland for so long Jun 23 00:43:22 who cares about the api level for the dump call though. i mean thats just debug crap Jun 23 00:43:35 youre not doing a lot of intense debugging on pre 11 devices, are you? :) Jun 23 00:43:45 actually Jun 23 00:43:48 yeah Jun 23 00:44:10 well, Service#dump is API level 1 ;) Jun 23 00:44:14 so you can always just use that :) Jun 23 00:44:16 :D Jun 23 00:44:28 like i said, tahts what i used to do Jun 23 00:44:41 in the past ive created a DumpService whose only purpose was to provide app state and implement #dump Jun 23 00:45:12 mainly i'd just have it do things like print active HTTP connections / requests, query database states, etc. Jun 23 00:45:23 oh, thats cool Jun 23 00:45:48 i have, in the past, even used it as a command-interface Jun 23 00:46:11 dumpsys service clear-image-cache Jun 23 00:46:12 for example Jun 23 00:46:37 i looked to see if you did it in rojocam Jun 23 00:46:51 no, i never did for rojocam. i don't think i knew about it then. Jun 23 00:46:59 i used it a lot at my last job on various internal tools Jun 23 00:47:44 the Service#dump approach is basically a dumpsys particular to your app. that's pretty killer :) Jun 23 00:48:02 yeah, i'll start using this right away Jun 23 00:48:55 oh android, you're so awesome Jun 23 00:49:55 today i've been learning about the gradle stuff Jun 23 00:50:05 i dug in only enough to be disappointed :\ Jun 23 00:50:09 haha Jun 23 00:50:17 it is not perf optimized very well yet Jun 23 00:50:28 great for small projects, but i was hoping to do an experiment converting the facebook codebase over to it Jun 23 00:50:28 i run it as a daemon so its a bit faster Jun 23 00:50:36 but it wouldnt be any faster than what were doing now :\ Jun 23 00:50:36 oh Jun 23 00:50:59 doesn't fb have its own internal build system? Jun 23 00:51:09 it seems to ignore --no-rebuild, or at least i must not understand how its supposed to respect it Jun 23 00:51:17 we do, we use something called buck that we open source Jun 23 00:51:19 sourced* Jun 23 00:51:35 do you guys use that on android ? Jun 23 00:51:40 Does anyone here use Broadcastreceivers to see which ads are causing installs? Not looking for specific help, just generally curious. Jun 23 00:51:48 my biggest complaint with it is that it, by policy, doesn't let developers side-step the dependency system Jun 23 00:52:01 g00s: yes, it was primarily invented for android builds. Jun 23 00:52:09 interesting Jun 23 00:52:36 what i want is a build system that lets me take advantage of internal knowledge of what i'm working on and how it is rebuilt to avoid "make world" Jun 23 00:53:03 for example, if i am working on a common utility used all over the place, i want to be able to just rebuild my artifact and then package up the apk and deploy Jun 23 00:53:19 i don't want the build system to rebuild everything that depends on my artifact just to make sure everything tsill works. Jun 23 00:53:44 gradle's Android plugin does this, and buck does this too. Meaning in a huge ass tree where you don't use things like maven artifacts to express or pull in dependencies, builds just take a fucking eternity Jun 23 00:54:16 there are many ways around this, like dividing your artifacts into smaller more discrete pieces so that even though you're doing "make world", world is effectively smaller. Jun 23 00:54:41 but that's a real pain to do to a huge code base. the easier thing is to just let you say, build fizzbuzz-jar, package apk, deploy. Jun 23 00:55:25 sensitive developers whine, "but what if fizzbuzz-jar changes its API! wouldn't that throw nasty runtime errors!?" Jun 23 00:55:27 i'm lucky my stuff is all tine shit ;) Jun 23 00:55:34 *tiny Jun 23 00:55:36 and i say, "deal with it." Jun 23 00:55:37 :) Jun 23 00:57:28 so looking at Activity.dump() the code seems to print the view hierarchy Jun 23 00:57:38 i haven't tried it yet Jun 23 00:57:39 and a bunch of other crap Jun 23 00:57:48 it prints loader and fragment info/states too Jun 23 00:57:51 which is really awesome Jun 23 01:12:15 should i rely on GCM to deliver data or is it always wise to have a fallback mechanism where I synchronize via some remote script using an alarmmanager or such? Jun 23 01:13:05 maybe a better question: how reliable is gcm? Jun 23 01:13:18 brx_: GCM should be thought of as a signaling channel, not a data channel. Jun 23 01:13:35 a proper architecture relies on it only to wake your app up to do some other work. Jun 23 01:13:35 ye, can i rely on it 100% for a signal Jun 23 01:13:45 ye Ill push an xml orsuch Jun 23 01:13:54 but can I rely on it 100% or should i take extra measures? Jun 23 01:13:56 it is designed to work well as a signaling channel, yes. Jun 23 01:14:02 but of course 100% reliability is a ridiculous idea. Jun 23 01:14:21 say a push goes out and the device is off, then device comes back on 24 hours later...will push be delivered? Jun 23 01:14:25 let me rephrase it for you: its reliability as a signaling channel will trump anything you try to do on your own :) Jun 23 01:15:09 http://developer.android.com/google/gcm/gcm.html -- read carefully Jun 23 01:15:23 in particular, time_to_live Jun 23 01:15:29 ahh ye cheers Jun 23 01:15:40 that said, i believe a proper app architecture would still perform its own synchronization steps on some period. Jun 23 01:15:44 user controllable, ideally Jun 23 01:16:14 ye i think i will go for that then, having controlo ver time to live is a nice bonusfor me Jun 23 01:17:01 ican see how a "check for updates" button trumps scheduled synch'ing,in terms of user experience Jun 23 01:17:54 that is always a good idea to provide, but it is also possibly important (depending on your use case) to have things automatically synchronize when the app is opened to some main screen) Jun 23 01:17:55 anyone here did android usb host programming ? Jun 23 01:18:00 if it had not done so recently Jun 23 01:18:18 I've gone over my old example code I wrote from the book I was reading 4-months ago and now I feel rather refreshed. ^_^ Jun 23 01:18:21 this will correct for any signalling gaps that may exist in the wild. if your user base was large enough, this would happen in practice. Jun 23 01:18:47 bbl guys, starcraft time Jun 23 01:18:51 cheers Jun 23 01:19:08 After finishing Ch. 4 of "Beginning Android Games" and dropping it all in lieu of other things, I was a bit overwhelmed with what I had done and having to get back to that point. x_x Jun 23 01:19:26 But, I'm there, and I actually feel better than I did when I left off. Jun 23 01:20:16 Da_Rhyno: time to make a killer game Jun 23 01:20:39 BTW, if I want to make an interface for an Android project in Eclipse, can I go to "New->Interface" and use that? Jun 23 01:21:09 shmooz - Indeed! Though my first "killer game" may be something simpler, like a rubik's cube game or something. Jun 23 01:21:13 xD Jun 23 01:22:03 with step by step auto solve Jun 23 01:22:24 or animated quickly Jun 23 01:22:36 Haha, maybe not to that point yet. xD Jun 23 01:23:58 that interfaces to robot hands that solve it for you Jun 23 01:26:26 that gives me an idea, a rubiks cube with motors in it that solves itself when triggered to Jun 23 01:26:55 now everyone would buy that Jun 23 01:27:04 codebutler still there ? Jun 23 01:34:02 Lol Jun 23 01:34:53 g00s: ? Jun 23 01:35:36 codebutler cool, thanks - well gradle again; i'm trying to use their flatDir repo Jun 23 01:35:55 but when i try to create uploadRelease { … } i get the error Jun 23 01:36:16 Could not find method uploadRelease() for arguments [ … nonsense … ] Jun 23 01:36:21 pastbin in a sec Jun 23 01:37:30 http://pastebin.com/farRncQd Jun 23 01:37:55 have not tried (or heard of) flatDir repos Jun 23 01:38:10 ok, thanks Jun 23 01:38:34 so far gradle has been a pita; not sure what to think of it Jun 23 01:38:39 https://github.com/codebutler/farebot/blob/master/build.gradle Jun 23 01:40:55 thanks Jun 23 01:42:58 I am having major issues with ScrollView's scrollTo(). No matter what I do, it refuses to scroll the scrollview. Anyone have any ideas? Jun 23 01:48:18 so frustrating....trying to write an IRC client and it refuses to scroll with new messages Jun 23 01:50:04 listview handles this for you if you set the transcriptmode (I wrote an android irc client once too) Jun 23 01:50:59 I started writing an IRC client for Android a while ago... Jun 23 01:51:13 it always seems like a good idea at first Jun 23 01:51:15 I supposed I could do that. It would be quite the overhaul. Jun 23 01:51:29 http://tapchatapp.com/ Jun 23 01:51:56 that looks really nice, codebutler Jun 23 01:52:17 g00s in the screenshots... Jun 23 01:52:36 did you toy with using a scrollview, or start out with a listview? Jun 23 01:52:49 just used ListView. Jun 23 01:52:58 It looks nice and Holo-ish...all my work was in the functionality, so it didn't look as good Jun 23 01:53:24 you really want view recycling for something like this Jun 23 01:53:28 mine doesn't look quite as nice https://raw.github.com/MrQweex/callisto-app/master/screenshots/v0.8_7.png Jun 23 01:54:10 i'm planning to open-source tapchat, but haven't had time Jun 23 01:55:01 at the risk of exposing my ignorance, what advantage does view recycling give in this example rather than using 1 textview? Jun 23 01:55:39 notbryant, I have a lot of scrollView.fullScroll(ScrollView.FOCUS_DOWN) type calls...I don't even remember what I was doing Jun 23 01:56:17 notbryant, yaa, I think I did that when someone typed something on a channel Jun 23 01:56:21 Ologn: I have tried that. I've tried putting it in a Runnable, smoothScrollTo, scrollTo, and everything. Nothing seems to work. Jun 23 01:57:16 notbryant, you probably have to have it inside of something inside of something inside of something else Jun 23 01:57:38 even if I switch to ListView, it's just kind of stupid that there is no way to programmatically scroll a scrollview Jun 23 01:58:03 notbryant, I believe I have it inside a Runnable, inside a ScrollView post, inside a message handler, inside a listener Jun 23 01:58:17 jesus, lol Jun 23 01:58:26 I have it in the first two Jun 23 01:59:39 actually I have it inside a Runnable, inside a Post, inside a Runnable, inside a different Post Jun 23 01:59:47 ....that seems weird Jun 23 02:07:04 whoa, codebutler, you're the author of firesheep!? that was one of the programs that got me interested in network vulnerabilities Jun 23 02:08:10 really cool. and tapchat looks really sweet Jun 23 02:08:37 notbryant: what layout(s) are you using ? Jun 23 02:08:39 l4cr0ss: that's cool to hear, thanks! Jun 23 02:09:47 shmooz: right now, in testing, it's just a textview inside a scrollview, and I'm using append() to add new text, then trying to scroll Jun 23 02:17:04 notbryant: maybe try this ? http://stackoverflow.com/questions/12884572/scrollview-scrollto-doesnt-work Jun 23 02:17:59 I assume you've tried this ... http://stackoverflow.com/questions/11240158/android-scrollview-scrollto-method-not-working-with-textview Jun 23 02:18:40 putting it in a runnable? Jun 23 02:19:08 yeah Jun 23 02:19:16 yeah, I have Jun 23 02:19:24 but I will try the other link, thanks :) Jun 23 02:21:01 notbryant, do you have something else inside the scrollview besides a textview? the scrollview documentation indicates that you're not really supposed to put textviews inside of scrollviews. Jun 23 02:22:05 timemage: it's just the textview, but I did not know that. what else is suggested? Jun 23 02:22:32 notbryant, just to use the scrolling capabilities of the textview itself. Jun 23 02:24:01 notbryant: did you do it like ... sView.post(new Runnable() { @Override public void run() { sView.scrollTo(sViewX, sViewY); } }); ? Jun 23 02:24:45 shmooz: yup Jun 23 02:27:43 I think I tried using the built-in scrolling with textview, the problem with that is that when it _always_ scrolls to the bottom when you append Jun 23 02:27:58 but if the user is scrolling up to read something, it should not auto-scroll Jun 23 02:30:08 you can tell it to only scroll if its already at the end or something like that Jun 23 02:30:53 really? cause that's what I'm looking for Jun 23 02:31:23 (listview gives you that for free) Jun 23 02:31:50 yeah I guess I'll just switch to Listview Jun 23 02:32:17 just kind of ridiculous Jun 23 02:32:26 the scrollview not working, that is Jun 23 02:33:04 its probably possible with the loss of some hair **** ENDING LOGGING AT Sun Jun 23 02:59:58 2013