**** BEGIN LOGGING AT Thu Jan 24 02:59:58 2013 Jan 24 03:00:41 like it says here http://source.android.com/source/initializing.html Jan 24 03:02:39 yerp Jan 24 04:42:25 It seems I am not the only one who has this problem: pastebin.com/n22XbLhM Jan 24 04:46:03 anyone have any experience with in-app billing? i can't get the test products to returned signed results, no matter what. the docs say that as long as my app has ever been published (has), a dev or test account will get a signed response to a static test product. if it's ever been published and there's an unpublished draft version uploaded, *anyone* gets a signed result for a static product. Jan 24 04:46:35 i'm testing on a release-signed apk, that is uploaded in draft form to Play Store.. and i'm on a test account, just to make sure... and im not getting a signed result. Jan 24 05:04:05 hi guys please help me : https://groups.google.com/forum/#!topic/android-developers/-4cQZZ7wxi0 Jan 24 05:06:35 is it possible for me to inflate a linear layout of one layout.xml file, with the contents of a linear layout from another layout.xml file? Jan 24 05:06:43 Android03 you have your answers there Jan 24 05:07:05 MajorZero what ? Jan 24 05:07:21 StingRay_ : yes i know but see my last comment Jan 24 05:07:53 like display the contents of a linear layout, in ANOTHER linear layout that's in a separate layout.xml file Jan 24 05:08:01 Android03 you work it out b4 you start Jan 24 05:08:46 StingRay_ : sorry i didn't get you Jan 24 05:09:05 "but I am calculating the views position at the end of animation and moving the layout" Jan 24 05:09:13 calculate it b4 then Jan 24 05:09:59 MajorZero in xml you use Jan 24 05:11:04 StingRay_; when view is animating toward up and ends then only it ll give me the upwards position .If i calculate b4 animating it ll give me all zeros as view has not been translated Jan 24 05:11:33 Android03 my point is you move it relative to where it is Jan 24 05:11:40 so you know where it will be Jan 24 05:12:15 StingRay _ : you mean to say i hardcode the values Jan 24 05:12:36 no Jan 24 05:12:46 I mean you know where the view is b4 animation Jan 24 05:12:54 then you translate it -200 Jan 24 05:13:03 so you already know where it will end up Jan 24 05:13:17 where it is currently -200 Jan 24 05:13:23 = where it will end Jan 24 05:14:23 StingRay_ Ok ..let me try this Jan 24 05:15:05 thank you StringRay_ i think that's what I need. Also, (sorry with the back to back questions) but do you have any idea how I could implement a bar that shows percentage of a value? Like two categories, A and B, and lets say A has 4, and B has 2. The A bar would be longer than the B bar...do you have any idea how I could implement that? Jan 24 05:16:00 well thats just maths with where you can use any view in android Jan 24 05:16:06 so and imageView Jan 24 05:16:13 or 2 Jan 24 05:16:30 in a linear layout with them both filling a set width Jan 24 05:16:59 and then depending on my calculations obtained, i should increase their length, or like dpi width? Jan 24 05:17:19 width's dpi* Jan 24 05:17:49 well no Jan 24 05:17:54 dpi would be irrelevant to you Jan 24 05:17:59 you would set pixels Jan 24 05:18:23 ((A + B) / A) * screenDimensionX Jan 24 05:18:38 = px width of A Jan 24 05:18:49 ah so like, I could get an image view with a solid color, and then increase it's px width? Jan 24 05:19:00 yeah Jan 24 05:19:31 okeydoke, Thank you. I've been working very hard on this application. You've been very helpful the past days I've been here. Thank you Jan 24 05:19:42 not a prob, good luck Jan 24 05:31:00 you could also use, you know, a ProgressBar Jan 24 05:57:09 anyone on? Jan 24 05:58:09 or learn how to use Canvas and build a custom view instead.. Jan 24 06:04:51 hello all Jan 24 06:05:36 Does Android not remove all registered alarms/receivers when an app is removed? I registered a proximity receiver then added an alert. I can see it from dumpsys location, but after uninstall the app -- it's still lingering Jan 24 06:34:53 QubeZ: there ? Jan 24 06:36:15 :( Jan 24 06:43:34 developer economics 2013 http://www.androidpolice.com/2013/01/23/developer-economics-2013-report-devs-want-a-third-platform-tablets-nearly-as-important-as-phones/ Jan 24 06:47:42 StingRay_ : hey man .. i have tried the way you suggested.But if i move the layout b4 the animation starts and tries to move the view up.and after that animation ll start and ll translate the view upward.don't you think this the view ll start animating from the new position i set b4 animation starts Jan 24 06:48:45 searching for where screenshots are taken in the OS Jan 24 06:48:53 anyone have a pointer or hint as to where to look? Jan 24 06:49:56 i remember romain's viewserver thing, but don't recall that in the OS Jan 24 06:50:38 that can only capture the decorview Jan 24 06:52:42 i wonder if its in skia Jan 24 06:53:10 WindowManagerService#screenshotApplications Jan 24 07:00:38 maybe SurfaceFlinger Jan 24 07:09:02 JakeWharton: if you have root I think you can dump the framebuffer Jan 24 07:09:16 i'm aware, that's not what i'm trying to do Jan 24 07:12:18 the source for screenshotApplications checks the read frame buffer permission.. Jan 24 07:13:10 yes, I have that because I'm calling from part of the OS Jan 24 07:15:26 Surface#screenshot is where the magic happens apparently Jan 24 07:15:48 the rest of it is just for working out where to crop and rotate Jan 24 07:18:28 yep, seems to be working Jan 24 07:18:30 Hello! i have ScrollView which contains constant height "header" and "footer" and variable height content. how i can make footer aligned to bottom when content is not scrollable? Jan 24 07:18:47 fillViewPort="true" Jan 24 07:18:55 'p' might be lowercase, actually... Jan 24 07:19:07 * cantido wonders how it stops tearing.. Jan 24 07:19:30 the screenshot thing in DDMS is basically useless for OpenGL stuff :/ Jan 24 07:19:38 and which groupview i should chose to put in scrollview? Jan 24 07:19:54 doesn't matter, whatever is appropriate for your content Jan 24 07:20:21 hm Jan 24 07:25:12 I'd love to do android on my Windows PC inside a Linux VM Jan 24 07:25:23 how likely is it that USB debugging will work? Jan 24 07:26:00 RustyShackleford: you mean run android in a vm or run eclipse etc in a vm? Jan 24 07:26:18 cantido, run eclipse inside a vm Jan 24 07:26:35 RustyShackleford: it'll work fine if you use a container that allows USB passthrough Jan 24 07:26:43 RustyShackleford: it should just work, give control of the usb device to the vm Jan 24 07:27:00 how huge of a performance hit will it be? Jan 24 07:27:16 with virtualbox at least you sometimes have to turn off USB2 support to make certain things work though Jan 24 07:27:28 it'll probably be awful considering how bad Eclipse already is Jan 24 07:27:45 RustyShackleford: I do it the other way Linux host with FPGA tools running in windows xp all the time.. no noticable speed issues with usb Jan 24 07:28:11 i'll try it then Jan 24 07:28:14 FPGA tools beat eclipse at memory/processor use by a long way too Jan 24 07:28:26 it might make more sense to just run eclipse in windows Jan 24 07:28:37 VM for my other programming stuff Jan 24 07:28:39 or just run linux Jan 24 07:28:59 or just use IntelliJ Jan 24 07:29:00 and have a windows xp vm around for those things that you can't get working in linux Jan 24 07:29:23 i did that for several years Jan 24 07:29:35 all the linux desktops suck IMO Jan 24 07:29:37 Does IntelliJ give windows a decent shell, decent package management etc? ;p Jan 24 07:30:06 also Netflix. I just use Windows now Jan 24 07:31:53 I would be surprised if you couldn't get that stuff working. Most people want an easy life I guess ;) Jan 24 07:32:03 shell? package management? Jan 24 07:32:06 it's an IDE Jan 24 07:32:43 JakeWharton: using intellij instead of eclipse on linux wouldn't give you all the benefits of unix Jan 24 07:33:12 It seems I am not the only one who has this problem: http://www.pastebin.com/n22XbLhM Jan 24 07:33:34 use cygwin Jan 24 07:33:43 KNERD: I see that in my logs.. I doubt it's an issue Jan 24 07:34:09 well if the app refuses to get installed onto the eumlator, then it is Jan 24 07:34:43 KNERD: do you understand what that message means? I doubt it's related to your issue, it just happened to pop up at the same time Jan 24 07:35:19 i cleared the logs then click RUN AS -> android Jan 24 07:36:10 That is some background service looking for something in /proc that the emulator probably doesn't have because it doesn't have real networking.. unlikely to be related to your issue Jan 24 07:36:28 I see that in my logs all the time and I can install stuff Jan 24 07:37:48 then you ave an idea why I can run any app? Jan 24 07:37:51 JakeWharton: when i use scrollview with fillViewPort and LinearLayout as main container - footer is not aligned, if relative - layout not scrollable and content truncated. Jan 24 07:38:12 sorry: cannot Jan 24 07:38:31 KNERD: Is there anything coming out in the window in eclipse.. like "timed out trying to install"? Jan 24 07:38:47 no..nothing like that Jan 24 07:38:57 hey Jan 24 07:39:23 can anyone help me with a very basic question? Jan 24 07:39:25 give me a moment and I will try to run again Jan 24 07:39:32 KNERD: It should say in the android console that it's trying to deploy the apk and where it's going.. Jan 24 07:39:54 KNERD: if you don't see that then the tools aren't even trying to install it Jan 24 07:40:09 Check that the code is actually building (look in the problems tab etc) Jan 24 07:40:17 I want an light action bar... I but i only see the light with dark action bar option... Jan 24 07:40:35 there's a light one... Jan 24 07:41:31 antido: it's the hello world example..but i am checking now Jan 24 07:41:57 oops...cantido Jan 24 07:41:59 derp. thanks JakeWharton Jan 24 07:42:20 KNERD: Eclipse will be telling you what is going on .. if anything it has too much output ;) Jan 24 07:43:15 the log coming out of android is usually filled with stuff you don't care about, which is why the LogCat view can be told to filter it Jan 24 07:43:47 i am starting the emulator now..takes a while Jan 24 07:45:39 KNERD: if possible don't use the 4.1 or 4.2 images.. they have some issues (tons and tons of stuff coming out in the log). 4.0.3 runs pretty fast in the emulator here Jan 24 07:46:54 oh, okay..shutting down emulatpr Jan 24 07:47:42 * cantido dreams of the day the kvm based emu works on any of his machines.. Jan 24 07:47:43 i am going to have to download the others Jan 24 07:48:35 If you don't want to test against 4.x, the 2.x images are probably faster again Jan 24 07:49:06 i hope the emu gets bluetooth support soon - google said they were going to add it like, about a year ago Jan 24 07:49:31 and faster to donwload I gues..2 minutes Jan 24 07:49:55 g00s: some sort of mock NFC would be good too Jan 24 07:50:04 * cantido only has one device with NFC Jan 24 07:50:21 yeah Jan 24 07:51:21 at least with the GPU stuff it's actually useful to test stuff.. before it took longer to start the app in the emulator than to write the app Jan 24 07:52:26 you download the nVidia version of Eclipse for that :-p Jan 24 07:52:51 Tegra Jan 24 07:53:04 Nothing to do with tegra Jan 24 07:53:28 GPU programing in nVidia it does Jan 24 07:53:39 on adroid stuff Jan 24 07:54:03 KNERD: the GPU stuff in the emulator refers to the emulator feature where it uses opengl on the host to do the drawing Jan 24 07:54:12 which is a lot faster than it used to be Jan 24 07:54:38 hmmm. Jan 24 07:55:06 KNERD: there is a checkbox in the AVD settings for it, if your emulators are really slow you might want to try it Jan 24 07:55:55 oh really?? I have not seen it..let me look Jan 24 07:56:12 oh yes..i see it now.. Jan 24 07:59:53 Hi, I am standing at a crossroad in need of some experts opinion. What technique is preferred when consuming a asp.net webservice. KSOAP2 or plain HttpGet/post ? are there disadvantages with either of theese? Jan 24 08:00:23 I will constantly be retrieving data. Jan 24 08:06:45 oocantido: yeah, I am getting nothing here Jan 24 08:07:54 KNERD: my guess would be that it's not building Jan 24 08:08:08 it's set to autobuild Jan 24 08:08:46 can anyone share your package folder structure? Jan 24 08:09:03 KNERD: look in the problems tab (it should be in the collection of windows at the bottom of the screen with the default layout) Jan 24 08:09:50 empty Jan 24 08:10:05 KNERD: what about the android console? Jan 24 08:10:15 empty Jan 24 08:11:03 brainv: iosched (open source, online) had a good structure Jan 24 08:12:04 KNERD: ok, so something is wrong.. without looking at your screen I can't really tell. browse around eclipse and see if you can find some output from something.. Jan 24 08:14:43 oocantido: yeah..the problem is called Google Jan 24 08:16:05 oocantido: now I can't even run as...it's blank nw too Jan 24 08:16:14 i am sick of this google crap Jan 24 08:16:23 guess I am, going to windows phone Jan 24 08:16:34 It works for a lot of people, so I doubt it's an issue with Eclipse/ADT Jan 24 08:16:34 at least I know it will work Jan 24 08:16:46 i just downloaded it 2 days ago Jan 24 08:16:56 the ADT package Jan 24 08:17:02 or bundle Jan 24 08:17:54 I have a layout that contains 3 layouts...the center is a layout that I wish to swipe with the viewpager to switch to another layout. How can I launch my activity that contains the 3 layouts, and then the viewpager in the center? Jan 24 08:22:10 i am deleting it all and going to try again Jan 24 08:31:26 if I wan't to contain a viewpager in a layout (like in the middle of two linearlayouts) how would I start my applictation? like would I start it with the viewpager first, or what? Jan 24 08:54:25 brainv: https://github.com/adelnizamutdinov/Vibes/tree/master/src/com/stiggpwnz/vibes Jan 24 08:54:48 WHEEE. There's very few programs that make one as giddy as a brand new fragment-based app Jan 24 09:00:57 stiggpwnz: thanks Jan 24 09:02:04 how exactly do layout themes work? if i specify a holo layout i wont be able to distribute my app on pre-holo devices? Jan 24 09:04:41 JakeWharton, are you alive? Jan 24 09:04:56 balls2thewall: HoloEverywhere and ActionBarSherlock google these two up :) Jan 24 09:05:12 JakeWharton, http://stackoverflow.com/questions/14457312/sherlock-action-item-style-for-button-in-custom-action-bar-layout Jan 24 09:05:20 timroes, hello :) Jan 24 09:05:26 good morning Jan 24 09:06:18 * squ got 11 o'clock Jan 24 09:06:29 10 here :) Jan 24 09:06:34 10am! Jan 24 09:06:50 HoloEverywhere is nice, makes me feel a bit dirty basically shipping the UI framework in the APK though Jan 24 09:07:42 I would alos recommend just using actionbarsherlock, but leave the widgets the default. WOn't look so bneautiful of course, but people using 2.3 devices normally don't care so much about that, otherwise they would have bought a new device ;) Jan 24 09:09:52 11 am Jan 24 09:10:11 6pm.. in the future Jan 24 09:10:18 :D Jan 24 09:10:19 can't do that, have design guidelines Jan 24 09:10:21 * cantido makes future sound and waves arms Jan 24 09:10:34 future always disappoints me Jan 24 09:10:49 'Back to the future' promissed me flying hover boards for 2012... Jan 24 09:10:53 I still haven't got mine Jan 24 09:11:01 maybe you know how to apply just default (not support version) of action item touch feedback Jan 24 09:11:17 and also I need touch area sizes Jan 24 09:11:36 timroes: really? I got mine free with my exoskeleton robot suite Jan 24 09:11:37 in that pasted code the area is kinda small :) Jan 24 09:11:44 cantido: damn Jan 24 09:49:22 Haha... hover boards... Jan 24 10:20:19 what is "Sony Ericksonn Xperia ST18i" resolution ? Jan 24 10:20:48 http://en.wikipedia.org/wiki/Xperia Jan 24 10:21:33 squ: 480x854 px? Jan 24 10:22:04 at least that says a quick google for xperia ST18i technical data Jan 24 10:22:52 perfect keyword is "xperia xt18i resolution" Jan 24 10:23:10 no need open any page, you just see on list :) Jan 24 10:32:10 thank you Jan 24 10:51:47 which one might it be Jan 24 10:51:52 Hello! Is there any possibility to add to fragments backstack for each fragment - specific additional fragment? I have tabs which switch ViewPager fragments. I want to have for each ViewPager's fragment - own "back stack"/ Jan 24 10:52:00 3.7" or 5.4" Jan 24 10:52:59 it means that when i try to switch on tab - it should be shown top stack fragment instead of root ViewPagers Jan 24 10:53:17 what is the difference between ADT and SDK? Jan 24 10:55:57 adt is sdk + eclipse Jan 24 10:56:12 secondly, I want some advice. I am a java developer, usually in desktop and Java EE web development. I observe that java is high paying for a job. but if you dont find a job. you starve. Php on other hand has a low pay rate in regular jobs as well as in freelancing on the popular sites like odesk and vworker, but you theres a lot of work opertunities too.. you dont starve atleast.. Now what about android? any comments? Jan 24 10:56:47 squ, then why adt is to be downloaded if i already have sdk and eclips installed? Jan 24 10:56:58 adt is not included int he sdk] Jan 24 10:57:09 it's the interface between eclipse and the sdk Jan 24 10:57:21 and needs to be installed through eclipse Jan 24 11:00:45 meh Jan 24 11:00:55 people started asking me how they could donate money to me <.< Jan 24 11:01:11 seems too much of a hassle Jan 24 11:02:19 Free money is such a hassle. Jan 24 11:03:47 Anoia, I aww Jan 24 11:03:52 Anoia, I see* Jan 24 11:04:24 Quest: it depends a bit on where you are, and another thing: I see shops that realize Android (and app development in general) is "serious" programming, so they'll pay Java wages or even a bit more, seeing as Android devs are a bit more scarce. But there's a lot of shops that hack stuff together, obviously they'll pay less. Jan 24 11:04:38 There's a lot of "hobbyism" in the scene. Jan 24 11:04:40 Anoia, xgear squ Zharf HDroid I assume you guys are android developers? Jan 24 11:04:48 HDroid, i see Jan 24 11:04:51 I am... sometimes :) Jan 24 11:05:06 We're a java shop, but if something app-related has to be done, I'm the Android guy. Jan 24 11:05:11 Anoia, xgear squ Zharf HDroid I mean experienced .. Jan 24 11:05:36 I am not Jan 24 11:05:38 I dabble Jan 24 11:05:45 Isn't that the same? Jan 24 11:06:02 HDroid, android apps an devs are not scarce... its quite increasing. isnt it? Jan 24 11:06:07 some might consider me an android developer ;) Jan 24 11:06:07 I started a android app for work which was then taken over (and screwed up ) by someone else Jan 24 11:06:15 I;m also doing a project for mysefl Jan 24 11:06:28 proffessionally, I'm a Windows dev Jan 24 11:06:29 it is not grateful being an android developer! can't even provide a simple web service consumer library... duuuh Jan 24 11:06:44 Quest: I guess there are quite a bit of hackjobs, but people with real java skills are quite scarce. Jan 24 11:07:18 HDroid, beside the locate market. that only i can be aware of. .. what do you think about the international market and freelance jobs . (specially the popular odesk vworker etc) i mean whats the trend... as i quoted java and php above Jan 24 11:08:32 odesk, elance, etc. will destroy wages because there's a lot of devs from low-wage countries. Jan 24 11:08:42 Anoia, xgear squ Zharf HDroid nice to know about you... I have just started learning android.. Jan 24 11:08:51 :) Jan 24 11:08:55 HDroid: odesk actually tends to have sensible rates Jan 24 11:08:58 no need to highlight us everytime Jan 24 11:09:01 Still, more php devs than android devs, but in the end, $10/h vs $12/h doesn't matter much. Jan 24 11:09:10 and I'm beginner just as you Quest Jan 24 11:09:16 I make 17€/h ... Jan 24 11:09:18 but you need to be picky about clients Jan 24 11:09:24 p_l: hm ok, interesting, I should check it out. Jan 24 11:09:37 HDroid, ya. thats a big problem. low wage countries... but i guess I dont have a choice for making extra money other than my job Jan 24 11:09:40 low-wage countries .... :( Jan 24 11:09:43 i am Jan 24 11:09:47 squ hmm Jan 24 11:09:52 from this country Jan 24 11:10:01 will work for food ;) Jan 24 11:10:18 Quest: it doesn't have to be a big problem... if you build a reasonable local network, you won't even notice. Jan 24 11:10:22 p_l, indians and bangladeshies dont make good rates anywhere Jan 24 11:10:43 Most people that need software done like to talk face to face, still. Jan 24 11:10:53 xgear, where are you from? Jan 24 11:10:53 Quest: depends which indians. There's god-dammit sweatshops, and guys that use the fact of lower costs Jan 24 11:11:05 belarus Jan 24 11:11:15 hm.. Jan 24 11:12:02 so guys..... as a rough idea and a general percieved trend, (as i mentioned php with more jobs and less rate, java as opposite) where does android stand? Jan 24 11:12:26 Zharf: I make equivalent of ~525€/month turning Lockheed crap into something that works... android would be a better job ;) Jan 24 11:12:28 in context to freelancing sites. and in context to average locale market Jan 24 11:13:43 p_l, you probably have lot lower prices overall in your country than we do in Finland, though Jan 24 11:15:23 I've worked with a Ukranian dev shop, with what we were paying them, they're laughing themselves all the way to the bank, but weren't even paying them a third of what I'd pay devs with their qualities locally. Jan 24 11:15:33 Now there's a win-win situation. Jan 24 11:15:43 if I had to pay for food and living, there wouldn't be much left of my money :) Jan 24 11:16:15 * p_l is on industrial placement as student, but actually works full time as normal employee Jan 24 11:16:18 Anoia, xgear squ Zharf HDroid p_l ok. without wasting your time further. how about i just get marks from you. I just want an idea . how much will you give each (php , java desktop / java ee , android ) out of 100 for jobs availability and pay rate.. I would say php, java, android as jobs 90,70,75 and 60,90,90 for pay rate.. what do you say.4 Jan 24 11:16:51 HDroid, hm Jan 24 11:17:01 Zharf: someone in Helsinki, assuming avg pay etc. gets ~50% more spending money than someone here Jan 24 11:17:08 I can;t answer that Jan 24 11:17:19 Anoia, why not ?:) Jan 24 11:17:22 I;m paid as a developer and I use whatever language is suitable Jan 24 11:17:30 k Jan 24 11:17:32 I;m not an employer or contractor Jan 24 11:17:32 Quest, stop highlighting me Jan 24 11:17:34 * p_l wouldn't take a php job anymore Jan 24 11:17:37 any one else? Jan 24 11:17:49 p_l, why not? Jan 24 11:18:02 Quest: horrible, horrible language, tools, everything Jan 24 11:18:03 no more Jan 24 11:18:12 HDroid: maybe you want to try belarussian developers? ^) Jan 24 11:18:25 Zharf, where are you from? Jan 24 11:18:27 Quest: those numbers aren't entirely crazy, but the Android world is a bit complicated, with high-end java dev shops on one end and hackjobs on the other end. Jan 24 11:18:47 HDroid, hack jobs? Jan 24 11:19:01 Quest: small shops with little programming skills Jan 24 11:19:07 squ, finland Jan 24 11:19:18 HDroid, your $/hour is nearly $12/h? and where are you from? Jan 24 11:19:29 HDroid, what type of apps are usually made in android. small ones or big ones.. i mean like the usuall trend on java ee is big apps and php is small apps. what about android? Jan 24 11:19:37 Zharf, android dev? Jan 24 11:19:44 among other things Jan 24 11:19:50 HDroid, oh. you mean steealing work of others? Jan 24 11:19:50 squ: no it's not, that's what Indian devs tend to cost if you do business with a larger shop and not individuals. Jan 24 11:20:04 thats not bad? Jan 24 11:20:15 $17 is quite high Jan 24 11:20:18 For the dev or for us? :) Jan 24 11:20:18 no? Jan 24 11:20:28 For an Indian, that's a lot. Jan 24 11:20:30 for 1 worker Jan 24 11:20:33 squ, €, not $ ;) Jan 24 11:20:42 Zharf, euros? Jan 24 11:20:46 yes Jan 24 11:20:50 HDroid, whats your per hour rate . if may i ask Jan 24 11:20:52 meh, my memory profile ran out of memory :| Jan 24 11:20:54 and my wage is on the low side Jan 24 11:21:06 but I don't really know what to do with all that money still Jan 24 11:21:17 17 euro per hour?!?!?!?!!?!?!?!?! Jan 24 11:21:27 oh god Jan 24 11:21:37 Quest: see, Java is mostly used for rather large projects, for smaller projects, people would use a php or python framework, or even a cms. With Android, it's all Java, the small 3-page web service consuming apps and the huge enterprise apps. Jan 24 11:22:04 contractors in various (skilled) software jobs tend to start at 100 GBP/hour in UK Jan 24 11:22:23 I remember seeing 400 GBP/hour offered for embedded dev :) Jan 24 11:22:25 I think my wage is around € 20 now, but I'm salaried so it's a bit complicated. Jan 24 11:22:52 HDroid, you experience? Jan 24 11:22:57 HDroid, you experience is ? Jan 24 11:24:04 HDroid, my guess is that you talk about minimum of 3 years experience in android Jan 24 11:24:13 I can probably make double that or more if I'd do contracting, but a lot of that would go to unemployment insurance, having to pay for equipment and space, time for acquiring customers, meetings, etc. Jan 24 11:24:45 HDroid, hm.. Jan 24 11:24:59 Quest: I have about... 2 years of experience (both java and android) Jan 24 11:25:05 Professionally, that is. Jan 24 11:25:07 xgear, I honestly can't find much use for the money... Jan 24 11:25:21 HDroid, so no one can give marks better than you then. Jan 24 11:25:27 and now someone wants to make donations for my free time project(s) Jan 24 11:25:47 Well, I'm in the Netherlands, this market is quite different than for example, the US. Jan 24 11:25:49 Zharf, our company pays 1.64 ?/h (Latvia) Jan 24 11:25:58 squ: woa Jan 24 11:26:00 * xgear will work for 10-12$ Jan 24 11:26:07 I can't even park for an hour in the city for that. Jan 24 11:26:23 I could've just lived without working at all for many more years Jan 24 11:26:29 but I got so bored of doing nothing Jan 24 11:26:51 Zharf: wow did you get acquired or something? Jan 24 11:27:24 if I have an image that I want in the different screen sizes, hdpi, mdpi etc. is there a tool that can convert it in fitting sizes, for instance something that should fit about the width (I know there isn't any fixed size, but a stretch of an image looks better if it's not too much) or something that should be around 1/3 of the screen tall or similar setups? Jan 24 11:27:26 HDroid, nah, it's just really easy to live in finland Jan 24 11:27:49 people with accessibility problems get here to live on social money which Finland government pays them :) Jan 24 11:27:55 HDroid, and I don't have a lot of the expenses other people have, like car, drinking problems, relationships, etc Jan 24 11:28:26 * Quest observed that most projects demand a similar app for iphone as well as android. (Quest dont wnat to learn iphone though) Jan 24 11:28:27 HDroid, our parking costs are 2 ?/h Jan 24 11:28:28 I have a car and it's outrageously expensive in this country. Jan 24 11:28:50 squ: that's nasty.. considering the wages. Jan 24 11:28:55 I don't understand the need for cars for most people Jan 24 11:29:05 HDroid, developing for 2 years got you a car? congrats Jan 24 11:29:06 it seems like an unnecessary luxury really Jan 24 11:29:10 me too Jan 24 11:29:12 HDroid, if I look at the window right now I see 3 porsche Jan 24 11:29:17 2 cayenne 1 911 Jan 24 11:29:21 ^) Jan 24 11:29:36 * Quest observed that most projects demand a similar app for iphone as well as android. (Quest dont wnat to learn iphone though) Jan 24 11:29:36 HDroid, what car? Jan 24 11:29:52 wlad_, thie thing with 4 wheels Jan 24 11:29:54 2004 Audi A3, not quite a Porsche but it's nice :P Jan 24 11:30:05 anyone has any experience with external barcode scanner, if it works fine with android ? Jan 24 11:30:07 Quest, hahaha lol Jan 24 11:30:12 :) Jan 24 11:30:19 Quest: best thing to do is to team up with an iphone dev, I guess. Jan 24 11:30:33 My car has 5 wheels Jan 24 11:30:37 Spare one in the trunk Jan 24 11:30:48 Quest, I always found that case to be a failure for either android or the iphone... whichever the app wasn't designed for Jan 24 11:30:53 HDroid, ah.. welcome to programming. people get rich or keep struggling for 10 years. and then die Jan 24 11:31:04 too many people do direct ports from ios to android and they all just suck Jan 24 11:31:09 Zharf, ya Jan 24 11:31:22 finally Jan 24 11:31:31 Zharf, HDroid iphone is dead in my eyes though Jan 24 11:32:01 Well, there's 2 issues there, of course: often people want both ios and android apps, which is reasonable (and good for devs). The other issue is that they want the android app to look like an iphone app, which is silly. Jan 24 11:32:09 oh ya. one other thing. when we make an app. any one can upload to google store. isnt there a check for malicious code? when users download it. is it reliable? Jan 24 11:32:18 HDroid, indeed Jan 24 11:32:38 Quest: there's a filter but a lot goes right through it. Jan 24 11:32:46 so, if someone is seeking for android dev from low-wage country - you are welcome! :) Jan 24 11:33:05 HDroid, Zharf the success of android included a reason that it gave similar apps like iphone and cheaper Jan 24 11:33:13 Iphone is very much alive, but as a dev I wouldn't want to play the "make an app and hope I get featured" roulette. Jan 24 11:33:15 xgear, where are you from? :) Jan 24 11:33:21 ive heard iphone apps bring in a lot more revenue than android apps Jan 24 11:33:32 Yes, cheaper isn't better for devs. Jan 24 11:33:33 wlad_: belarus Jan 24 11:33:42 for devs at least.. not having to go through the store to be installable is a good thing Jan 24 11:33:48 But as a contractor / independent dev it doesn't matter a lot. Jan 24 11:33:49 I don't dev for android because I want money Jan 24 11:33:56 it means you can do custom apps for enterprise etc Jan 24 11:33:56 ^^^ Jan 24 11:33:56 I dev for android because I like the platform Jan 24 11:34:12 and because I wanted a good music player ;) Jan 24 11:34:15 VBBG: i think Android is catching up to iOS on revenue, but like both - the wealth is concentrated in a few players Jan 24 11:34:18 Zharf, android dont give money? Jan 24 11:34:24 (the data was recently available) Jan 24 11:34:25 xgear, how much does a junior dev earn in belarus? are you from Minsk? Jan 24 11:34:29 Quest, I wouldn't know really Jan 24 11:34:31 it is technically catching up if you look at the stats. Jan 24 11:34:45 but still far behind... Jan 24 11:34:49 g00s: thats overall not per device though right? Jan 24 11:34:55 Zharf> I don't dev for android because I want money Jan 24 11:34:56 wlad_: 500 - 600 Jan 24 11:35:14 Zharf, you mean its not the only reason i gues Jan 24 11:35:16 and you, where are you from? Jan 24 11:35:21 Quest, some people find that the only motivation, but I think a lot of apps don't really make much money Jan 24 11:35:28 cantido: yes, i think overall Jan 24 11:35:47 xgear, Latvia, about the same amount of $ Jan 24 11:35:52 about 60% of all android apps only ever earn between 0 and $499 in their lifetime (stats were recently available on this) Jan 24 11:35:55 whats the population of android vs ios now? must be many times already Jan 24 11:35:55 Zharf, i think you are impling that the app is sold at google store? Jan 24 11:35:58 http://www.fiercedeveloper.com/story/distimo-google-play-revenue-climbs-43-apple-app-store-jumps-21/2013-01-22 Jan 24 11:36:02 and I absolutely hate apps that use ads, so to me it feels like that in order to make a profit from android apps, you'd have to make a ton of super good apps Jan 24 11:36:18 Zharf, i think you are impling that the app is sold by google store directly by the dev* Jan 24 11:36:36 Zharf: it's very hard to make profit if the only thing generating revenue is the app itself Jan 24 11:36:38 Zharf: Freemium + decent ad placement. Paid just doesn't work on android. Jan 24 11:37:04 cantido, elaborate if you please Jan 24 11:37:12 cantido, I know, luckily I don't care about the money ;) Jan 24 11:37:20 Zharf, HDroid i though most apps in android are games........ Jan 24 11:37:20 Zharf: you won't make money from a media player.. but if you could offer downloadable content etc you might make money on the content Jan 24 11:37:25 * Quest hate making games Jan 24 11:37:40 GAMES! I'm making a game right now... Jan 24 11:37:57 I refuse to use applications that have ads in them though Jan 24 11:37:57 The games that make money are basically traps.. free to play, very expensive to do well at Jan 24 11:38:04 I absolutely despise people who support ads :p Jan 24 11:38:09 but Jan 24 11:38:12 that's how people make money Jan 24 11:38:21 I support ads, because I support developers. Jan 24 11:38:24 sure, I can understand that, doesn't mean I like it Jan 24 11:38:24 I understand they need to make money SOMEHOW Jan 24 11:38:31 I would rather donate to the developers directly Jan 24 11:38:36 :) Jan 24 11:38:36 but by refusing, that doesn't simply mean you "don't like it" Jan 24 11:38:36 Zharf: you might want to read up on how google make most of their money.. Jan 24 11:38:40 bypassing all the crap in between that takes a big chunk of their money Jan 24 11:38:46 cantido, google's a piece of crap Jan 24 11:38:54 :/ Jan 24 11:38:59 guys, anyone from Bulgaria? Jan 24 11:39:22 so, i want to finland Jan 24 11:39:29 there really aren't any good big companies around Jan 24 11:39:36 i like permafrost Jan 24 11:39:37 * cantido thought Bulgaria was wiped out by zombies ages ago Jan 24 11:39:49 Zharf: the problem is that most people don't want to do that, or can't be bothered to at least Jan 24 11:40:00 * why is that? Jan 24 11:40:30 optional ads, donations etc are basically pointless Jan 24 11:40:33 appel1, I was asked how people could donate to me, I investigated a little bit and found that it's too bothersome because of all the laws and other crap, so I denied their donation Jan 24 11:40:51 I'm not in it for the money Jan 24 11:40:51 I simply plan on making either ad-less or paid Jan 24 11:40:53 Laws against donation? What the... Jan 24 11:40:55 do you guys have anything on the google play store? Jan 24 11:40:58 I have optional ads for some extra features.. out of 10,000 installs maybe 10 people have them turned on Jan 24 11:41:07 HDroid, not against Jan 24 11:41:10 HDroid: donations can be sometimes hard on laws Jan 24 11:41:28 Weird Jan 24 11:41:37 I know I'd have to report it for income tax, but that's mostly it. Jan 24 11:41:43 remember also that people tended to use "donations" to avoid taxes, launder dirty money, corruption, etc. Jan 24 11:42:07 * Quest thanks all for talking and thinks he will be coming here often Jan 24 11:42:08 * cantido wonders how many small devs actually declare app earnings.. Jan 24 11:42:08 Zharf: one app I use allows donations using unmanaged in-app purchases, solves at least some of those issues Jan 24 11:42:42 appel1, I thought of that but I don't like how I can't let the user decide how much they want to pay Jan 24 11:42:47 * cantido thought it was against market policy to not use google's payment services.. Jan 24 11:42:59 cantido: yeah, give it another year or 2, and the government will get its hands on it Jan 24 11:43:29 Zharf: you can have a number of amounts to pick from like $1, $2, $5, $10, $30 :) Jan 24 11:43:30 loads of different payment methods in the market sounds shit to me Jan 24 11:44:03 appel1, yeah, but it's too limited :) Jan 24 11:44:06 cantido: from within the app yes, but nothing stops you from having a donate link on your website :) Jan 24 11:44:07 cantido: agreed, but google's current system is shit as well. Jan 24 11:44:15 appel1, and unnecessarily complex to implement Jan 24 11:44:16 Man, that's one convoluted POS. Jan 24 11:44:38 Zharf: I doubt many needs to be able to donate $2.37 ;) Jan 24 11:44:42 :) Jan 24 11:45:08 HDroid: mmm with google checkout you can just buy stuff and it gets billed, nice and simple Jan 24 11:45:22 maybe too simple Jan 24 11:45:23 which version should be used? its a newbie question Jan 24 11:45:34 From a consumer's point of view, yes. Have you tried to implement it in an app? Jan 24 11:45:48 HDroid: I haven't done in-app purchases Jan 24 11:46:01 * cantido made all his apps free because he couldn't be arsed to support them Jan 24 11:46:10 you can always look at an open source app that has implemented iap donations like https://github.com/jberkel/sms-backup-plus/tree/master/src/com/zegoggles/smssync/billing Jan 24 11:46:23 Quest: generally, target the newest, minSDK (the minimum supported level) set to the earliest version you can afford to support. Jan 24 11:47:30 An 880-line class to handle billing alone, that's what I call convoluted :) Jan 24 11:47:44 HDroid: I thought that was generated via the aidl stuff? Jan 24 11:47:47 Mind you, that's wrapping the actual billing SDK even Jan 24 11:48:13 There's just a ton of events and callbacks and checks that need to happen. Jan 24 11:48:24 does sound like a PITA Jan 24 11:48:26 The flow is very hard to get right. Jan 24 11:48:28 It is Jan 24 11:48:36 can you get the list of products from the server yet with the billing api? :) Jan 24 11:48:44 on a slightly different topic.. what happens if you purchase some in-app thing and the dev pulls the app? Jan 24 11:48:48 that's like super silly part of it too, that you couldn't do that Jan 24 11:48:48 do you get the money back? Jan 24 11:49:05 cantido: money gone, I'm guessing Jan 24 11:49:22 It's the wild west all over again Jan 24 11:49:40 HDroid: at least with IAB v3 you don't leak running services as is so popular Jan 24 11:50:34 HDroid, if latest is selected. the older versioned mobiles wont work for it Jan 24 11:50:58 They will if you set minSDK Jan 24 11:51:10 Quest: you target a new SDK but set the min sdk to something sensible like 2.1 Jan 24 11:51:26 and lint will warn you when you use a new api Jan 24 11:51:42 I use 2.3 as some of the account/sync methods aren;t available before that Jan 24 11:52:23 HDroid, cantido oh you mean using latest sdk but using android version (i heard jelly beans for one) to be low or in middle . 2.1 that is? i think the latest is 4.x Jan 24 11:52:28 * cantido mutters about the stupid JS interface bug in 2.3 .. garhhahaha Jan 24 11:53:05 Quest: you want the latest sdk so you can use all of the nice stuff it has, you set the minimum to however low you want to go Jan 24 11:53:16 Quest: you have to make sure you don't use new stuff on old devices though Jan 24 11:53:22 Quest: there is targetSDK and minSDK, targetSDK is the SDK that will be used to build the app. Jan 24 11:53:31 I wish the support library in maven gets updated soon Jan 24 11:53:52 v10? Jan 24 11:54:27 HDroid, cantido ok. Jan 24 11:54:46 v4-r7 is the latest it has, I think r11 was the latest from sdk manager? Jan 24 11:55:23 btw, the NDK, is there a way to keep that up to date? Jan 24 11:55:25 sdk comes with adt bundled. i thought its better to use eclipse download the adt? Jan 24 11:55:51 belgianguy, manually Jan 24 11:55:51 as I have some version here on my HDD, but I just noticed I never updated it Jan 24 11:55:51 Zharf: I have r11 apparently.. I didn't realise it changed haha Jan 24 11:55:57 I'm at r8 IIRC Jan 24 11:57:13 The only things I use the support lib for are for ActionBarSherlock and GridLayout Jan 24 11:57:30 GridLayout is in it's only library project though Jan 24 11:58:47 thanks Zharf I'm still on 8b Jan 24 11:58:52 they're at 8d already Jan 24 11:59:27 belgianguy: It would be nice if they had debian packages for the NDK Jan 24 11:59:44 a version.txt or --version flag for ndk-build script would also be welcome Jan 24 11:59:50 at the moment it's a lump of tarred up stuff with some other guys permissions etc Jan 24 12:00:03 now I had to find doc/changes.txt and look for what matched with the site's listing Jan 24 12:00:15 cantido: that'd be nice indeed Jan 24 12:00:23 and make Eclipse play nice with ndk-gdb Jan 24 12:00:33 atm it can best be described as "magic" Jan 24 12:01:00 (as you have to even disable a line in ndk-gdb to even get it to work with Eclipse) Jan 24 12:02:02 I've never managed to get gdb working :( Jan 24 12:02:27 it's all you have if the c++ segfaults somewhere Jan 24 12:04:13 I never use c++ so I'm safe ;) Jan 24 12:06:48 cantido: well it has some benefits when building a game Jan 24 12:07:08 but the NDK devs get treated like red headed stepchilds Jan 24 12:07:26 belgianguy: existing code? Jan 24 12:07:45 cantido: nope, from the bottom up, using libraries though Jan 24 12:08:10 any reason for not using java? Jan 24 12:08:30 cantido: I have more experience with c++ libs Jan 24 12:08:35 and know my way around them Jan 24 12:09:13 not to do with performance per se, but more to do with good experiences in the past Jan 24 12:11:07 what is better to do? sprite animation or step animation? Jan 24 12:11:23 but finding the info you need is hard, I've found it easier to just download AOSP and go see myself :) Jan 24 12:11:41 grep ftw Jan 24 12:11:54 makes sense. I think people write off java instantly for performance reasons.. but opengl stuff doesn't seem to be all that bad from java in my experience Jan 24 12:12:13 OpenGL probably is always native Jan 24 12:12:24 even if it gets called from "within Java" Jan 24 12:12:31 belgianguy: yeah, it's just a wrapper around it Jan 24 12:12:37 OpenGL is a module under the Zygota Jan 24 12:12:47 it runs C code only Jan 24 12:13:15 cantido: it's all fun and games until you run into mister Kalman and friends :) Jan 24 12:13:29 mister Kalman> Jan 24 12:13:33 ? Jan 24 12:13:37 Kalman filters :) Jan 24 12:13:55 does anyone have XP in animating sprite sheets? is it much better than step animations? Jan 24 12:13:58 to keep my gyro and accelerometer in check (keep it from drifting) Jan 24 12:14:45 i thought that programming was fun : -{ Jan 24 12:14:47 AOSP has some synthetic sensors that do that, too Jan 24 12:15:16 Looney: it's awesome! Jan 24 12:15:22 Loonacy: programming is turning caffeine into code :p Jan 24 12:15:48 but Kalman and estimation thing :-( Jan 24 12:15:56 true belgianguy Jan 24 12:16:01 Looney: those are challenges :) Jan 24 12:16:12 I picked them to conquer them Jan 24 12:16:19 and add them to my CV Jan 24 12:16:50 and I thought they were tools to make sense out of data Jan 24 12:17:52 Looney: well they ensure the data keeps making sense Jan 24 12:18:04 and that your sensor doesn't start spewing out unphysical values Jan 24 12:18:42 with that said, I'm going to take another swing at it Jan 24 12:19:07 AFAIK nobody computates Q, they just set some random float value to its diagional and go with it Jan 24 12:19:21 hello: how do i check/listen if the defaults keylocks are correctly or incorrectly unlocked? like wrong/correct pin or correct/wrong pattern used? Jan 24 12:21:24 wth Jan 24 12:21:29 :> Jan 24 12:21:32 last installment of NDK was 299MB Jan 24 12:21:44 8b, now 8d is 899MB Jan 24 12:22:20 more libraries perhaps ? ? Jan 24 12:22:27 either I'm searching the wrong way or I don't get what people try to tell on the net. If I have my activity.xml and have a button on this, when the user press the button I want to push about.xml on the top of the screen. I just don't get how it's done from the explanations I found. Can anyone either explain it or direct me to an explanation that works? Jan 24 12:24:38 rohdef: it's a bit hard to understand, but it looks like you want to show a certain element upon a button click? There's a few ways: 1) include about.xml, give it an id, set it to invisible by default, make visible when button is clicked. 2) inflate about.xml using a layoutinflater and add it to an existing layout that is in your activity.xml. Jan 24 12:24:55 Loonacy: 909MB in total, of which 694MB toolchains Jan 24 12:25:01 By "include" I mean use the include xml directive in your layout. Jan 24 12:25:03 Looney: * Jan 24 12:26:02 Hi, I need a quick help Jan 24 12:26:13 yup Jan 24 12:26:26 whats the best way to run native code via browser Jan 24 12:26:29 npapi? Jan 24 12:26:43 I usually love to lurk around, not much of a chatter/typist :-) Jan 24 12:26:45 HDroid, from what I found include isn't the way I want to go. I think of it as pushing the view on top of a view stack (weather it is a stack in practice or not) so when I press the back button it goes back to the first view Jan 24 12:26:48 or am I in the right channel for this question Jan 24 12:27:31 so from what I've read is that NPAPI might be dropped anytime moreover I don't know if it's officially supported Jan 24 12:27:36 rohdef: typically the only things responding to a back button are activities and dialogs, so you'd be implementing that behavior yourself anyhow. Jan 24 12:27:55 I don't know how to code in any thing and I want to start learn how to make android app. Where would be the best place to start? I'm working on Ubuntu Jan 24 12:28:12 tarelerulz: get sdk from developer.android.com Jan 24 12:28:36 You can't "go back" to a view. And loading a new copy of the activity just to display an about thingy is poor user experience. Jan 24 12:28:46 Not to mention horrible to code. Jan 24 12:29:08 HDroid, so basically I should implement my view as an activity and then use an intend (a bit like the way he does it in the eventhandler in this one: http://stackoverflow.com/a/4187714) to sort of push it too the screen? Jan 24 12:30:29 rohdef: I think I'm misunderstanding. Jan 24 12:30:35 about.xml is a full page? Jan 24 12:30:46 NOt some sort of popup that only covers part of the existing activity? Jan 24 12:30:52 intended to, yes Jan 24 12:31:11 If it's a page, it should be an activity, yes, and should be started with the intent. Jan 24 12:31:12 about was just an (poorly chosen) example (sorry) Jan 24 12:31:58 Don't need startActivityForResult if you only want to display it, if you don't need to return a result to the calling activity you can simply use startActivity. Jan 24 12:32:32 ah yeah, think I've seen an example of that too Jan 24 12:33:11 and to make it an activity I have to modify my manifest to bind the xml with an Java class is that correct? Jan 24 12:33:47 Yes, pretty much Jan 24 12:34:25 ok then I'll Google the rest and ask more questions later, thanks very much HDroid Jan 24 12:35:41 or actually there might be a step of producing a hot consumable in the middle, to parse caffeine into code, but I guess that's in the details department Jan 24 12:36:24 I have a nice coffee machine, so I can help you with that, though the shipping costs would probably be excessive and you'd have to warm it up. Jan 24 12:36:59 I think I saw you write you're in Finland? Jan 24 12:37:16 ah you irc says Netherlands Jan 24 12:37:31 then it was some other person, never mind that, the result will be the same Jan 24 12:37:32 Yes I'm in the Netherlands Jan 24 12:37:39 it was probably mwe Jan 24 12:37:41 me* Jan 24 12:37:58 Haha, yeah, unless you're across the street from here, I doubt it'll work out. Small chance. Jan 24 12:38:27 an very overpriced cold coffee (when it reaches Denmark at least) Jan 24 12:38:41 I am a business man ;) Jan 24 12:39:23 depending on your price I'd say the only winner would be KLM Jan 24 12:42:18 of course you could send it with a P&O truck, we see quite a lot of those in DK, but I'm pretty sure the driver will empty my coffee :p Jan 24 12:44:45 does http://developer.android.com/ show you how to make a app from the ground up. If you never coded before at all or is it for people that just need to learn how to code for android Jan 24 12:46:22 tarelerulz: if you never coded at all then starting with developer.android.com is probably not the way to go Jan 24 12:46:38 appel1: they do have a training section now Jan 24 12:46:48 it used to be more of a reference only Jan 24 12:47:20 but when I last visited it, it looked inviting, but there's always the "tutorial" keyword that might bring up more detailed explanations Jan 24 12:47:32 belgianguy: if you don't have even the most basic knowledge about java syntax or programming then even those are probably too difficult to follow Jan 24 12:48:04 appel1: you have a point, if he never saw any programming, he/she better learns that first Jan 24 12:48:27 tarelerulz: Head First Java I quite liked :) Jan 24 12:48:40 When using startActivityForResult, are the views from the starting activity going to be the same as they were before the invocation? Jan 24 12:48:56 For example Text in textviews etc. Jan 24 12:49:30 sonOfRa: depends on if your process was killed to free memory or not, and if you handle the activity life cycle properly (restoring data and so on) Jan 24 12:51:47 None of you started program for android first ? Jan 24 12:52:18 Getting a book for Android seem the wrong way to start since , it such a fast moving thing Jan 24 12:53:49 I started with BASIC on the C64 :) Jan 24 12:54:36 tarelerulz: that's why you'd best start with Java, get your feet wet Jan 24 12:54:47 get to know Object Oriented programming Jan 24 12:54:54 Design Patters Jan 24 12:54:59 and Refactoring Jan 24 12:55:03 Patterns* Jan 24 12:55:26 How different is normal java vs java for android ? Jan 24 12:57:22 if you know java, it's not a very big leap Jan 24 12:57:32 but a different API for some parts Jan 24 12:58:06 tarelerulz: don't go too far into the Java rabbit hole, it'll teach you things you'll probably never need in Android Jan 24 12:58:33 Head First went just far enough, and relies on practical things around you to explain its contents Jan 24 12:58:47 which was a big plus for me (I'm more of a visual oriented learner) Jan 24 12:59:33 From the one program book I did try to learn from. The normal see you learn concept and then sometime later learn stuff to use them for Jan 24 13:00:56 tarelerulz: take whatever fits you best Jan 24 13:01:05 but diving into Android first I wouldn't recommend Jan 24 13:01:34 is it possible to get the logcat output on sdcard Jan 24 13:02:01 like some option which I use and all the logcat messages are saved to some text file Jan 24 13:03:28 I tried learning C++ and once I got past hello world it , lost me. The concepts stopped being for a program I could make and something I could make in 5 years Jan 24 13:04:59 tarelerulz: well, start slowly Jan 24 13:05:10 find a hello world in Java, and get started with that Jan 24 13:05:17 in Eclipse, IntelliJ or NetBeans Jan 24 13:05:25 it took me maybe 2-3 years of c++ before I made my first usable programs ;) Jan 24 13:05:42 Zharf: really? Jan 24 13:06:02 sure, everything before that was just toys/tests/funstuff Jan 24 13:06:19 we had to make a full fledged game in Uni in C++, AI, Physics, engine, sound, models etc in a few months Jan 24 13:06:25 ahh Jan 24 13:06:37 I thought usable as in "it compiled" Jan 24 13:06:44 :p Jan 24 13:06:51 a real application Jan 24 13:07:13 it's not easy to start writing the big stuff Jan 24 13:07:18 is it possible to get the debug message of logcat in some text file ?? Jan 24 13:07:19 too many people just jump into it Jan 24 13:07:46 Zharf: yeah, patience is a virtue, and I like oversight Jan 24 13:07:48 Looney, with aLogcat you can save the log in a file.. so I'd say yes? Jan 24 13:07:55 while others seem to inline whenever they can Jan 24 13:08:44 can you tell me the way or point me to somewhere on Interwebz for solution. buzz words to look up will also suffice Jan 24 13:09:13 Looney: there's this library Jan 24 13:09:21 looking into all this , you never find someone start out , they all seem to be doing it for years. It seem every one get one book and live happy ever after Jan 24 13:09:34 I know that I use Log.d() in code Jan 24 13:09:47 but I use the terminal with adb Jan 24 13:10:41 Looney: wouldn't it be easier to just use an IDE? Jan 24 13:11:03 like Eclipse, IntelliJ and Netbeans, they offer search and coloring and sorting options as well Jan 24 13:11:16 (it'll save you time) Jan 24 13:11:22 I am testing remotely with someone who is just a genius Jan 24 13:11:48 there's this remote library at a .ch domain Jan 24 13:12:03 Looney, not sure what you would really want to do? install an application that saves the logs? why not just use aLogcat Jan 24 13:14:06 if it were possible, that would have been great Jan 24 13:15:57 Looney: http://acra.ch/ Jan 24 13:16:07 that's what I meant, not sure if it's what you need though Jan 24 13:17:38 this seems something which intends to solve the problem which I am facing belgianguy Jan 24 13:17:50 Acra could be used for this, with a custom Sender, or you could look at their source and steal the relevant pieces of code. Jan 24 13:19:01 stealing is bad :-( Jan 24 13:19:34 stealing is harder than just using in this case Jan 24 13:19:48 after you're done, remove the lib and everyone's happy Jan 24 13:23:16 going to a android dev meeting in a month, with code puzzles. a test puzzle is 'name 5 ways to handle a button click in an activity' . so i'm thinking setOnCLickListener and defining it in xml. What others are there? Jan 24 13:23:53 osxorgate: those are the only 2 I know :/ Jan 24 13:24:24 maybe soimeting cheese like grabbing input events Jan 24 13:24:35 implementing OnClickListener on the Activity and call setOnClickListener(this) Jan 24 13:24:43 has anyone ever uses Mahout on Android? Jan 24 13:24:49 I guess inline initialization and field initialization are separate ways as well. Jan 24 13:25:24 my nexus 7 has a notification at the top "system update downloaded"...i clicked "restart and install". when it restarts its asking do I want to install "untrusted zip". why untrusted? Jan 24 13:25:25 *used Jan 24 13:29:01 it says in clcokwork recovery mode "failed to verify whole file signature, signature verification failed" Jan 24 13:29:12 anyone got ny ideas? Jan 24 13:33:06 is there some tools, to scale images for *dpi automatically? I'm thinking if I have a picture xxx.png and want it at a height around 1/3*(expected height of *dpi) or similar Jan 24 13:34:07 I'd probably use imagemagick's convert for that (but I'm on Linux) Jan 24 13:44:19 holy shit the stupidity Jan 24 13:44:20 it hurts Jan 24 13:44:37 https://github.com/search?p=1&q=path%3A.ssh%2Fid_rsa Jan 24 13:46:31 the adt is bundled with eclipse? Jan 24 13:48:05 sonOfRa: lol Jan 24 13:48:14 some things are shareworthy Jan 24 13:48:26 your private RSA key is not one of those things Jan 24 13:48:45 hello Jan 24 13:49:16 Quest: http://developer.android.com/tools/sdk/eclipse-adt.html Jan 24 13:49:40 Quest: yes Jan 24 13:49:55 Quest: the newest versions of the SDK will contain a bundled version of eclipse that comes with the ADT pre-installed Jan 24 13:50:10 if you don't want to use this, you can always install the ADT plugin separately to an existing eclipse install Jan 24 13:50:11 oh, I didn't know that :/ Jan 24 13:50:16 belgianguy: yeah, it's actually pretty neat. Jan 24 13:51:37 lov, but i already have eclipse for javaEE Jan 24 13:51:47 lov, oh ok Jan 24 13:52:00 lov that will give the same results ? Jan 24 13:52:29 lov, i guess i can add javaEE plugin to adt eclipse bundle too? Jan 24 13:52:52 uh, you could... Jan 24 13:52:55 if oyu have an existing instlal of eclipse, I would just add ADT Jan 24 13:52:58 Do you actually do J5EE stuff? Jan 24 13:53:03 if not, why bother Jan 24 13:53:11 Help->Marketplace and find "ADT" Jan 24 13:53:16 install it from there, and you're donw. Jan 24 13:53:18 *done Jan 24 13:54:45 HDroid, sorry was interrupted :) Linux options is good, do you have any scripts or just as a general suggestion? Jan 24 13:56:22 I don't have scripts, I'd use it on a per-file basis or write a simple bash loop to do it if I wanted to convert all images. Jan 24 13:56:51 sonOfRa: dude stupid ppl :D The ones I tested even where the privat keys for their github account, but i am now too lazy to leave them a note in their rep, how not to be stupid Jan 24 13:57:20 lov, sorry for late reply. yes i do Jan 24 13:58:00 Hello! Is there any possibility to add to fragments backstack for each fragment - specific additional fragment? I have tabs which switch ViewPager fragments. I want to have for each ViewPager's fragment - own "back stack". Jan 24 13:58:03 HDroid, hmm ok, will do it lake that then :) perhaps I could write some simple Python QT4 gui for it if I feel I have the time :) Jan 24 13:58:07 it means that when i try to switch on tab - it should be shown top stack fragment instead of root ViewPagers Jan 24 14:00:22 is there a way to show a dialog without dimming the screen and preventing touch on the whole screen? Jan 24 14:00:36 I want to bind the dialog to a specific layout and to it alone Jan 24 14:00:42 thepoosh: yes Jan 24 14:00:55 how? Jan 24 14:01:12 thepoosh: you have to create a style for the dialog Jan 24 14:01:17 anyone know anything about the "license key" given to my app by Play Store? i'm trying to import it (programmatically) in various formats and i don't think i'm doing it correctly.. it appears to not be an actual certificate, just a key maybe? Jan 24 14:01:29 thepoosh: and then set the "android:backgroundDimAmount" to 0.0 Jan 24 14:01:37 ok Jan 24 14:01:49 thepoosh: this took me ages to find out... Jan 24 14:01:52 and this will not prevent clicking on other elements on the screen? Jan 24 14:02:04 thepoosh: a dialog is "modal" Jan 24 14:02:31 in default dialog.show() prevents doing anything on the screen Jan 24 14:02:33 thepoosh: no the dialog is always on top of your activity Jan 24 14:02:42 tophyr: you mean http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html ? Jan 24 14:02:53 well, I want it to be within only one layout in my screen Jan 24 14:03:08 HDroid: no, it appears to be different than the key i use to sign the app Jan 24 14:03:14 Oh hm Jan 24 14:03:18 Don't know then :/ Jan 24 14:03:32 it's the key that shows up when you go to Play Store and "Settings & APIs" under your app's section Jan 24 14:03:39 as a publisher Jan 24 14:03:47 montsi: do you know what I'm talking about? Jan 24 14:03:56 thepoosh: yeah you want a modal dialog Jan 24 14:04:21 thepoosh: .show() sets the dialog ontop of your activity and the eventhandling is only inside the dialog layout Jan 24 14:04:22 Is there a way to SCALE a ratingbar? I can only see the style for normal and small? Jan 24 14:06:30 monsti: I'm sorry, my noobness is preventing me from understanding exactly what you mean Jan 24 14:06:34 can anyone tell me what LLVM is? Jan 24 14:06:52 thepoosh: a dialog.show() creates the dialog on top of your activity Jan 24 14:06:55 I read the wikipedia article, but also noticed it's in the NDK dir Jan 24 14:07:10 and I don't really get where I should associate it with Jan 24 14:07:22 thepoosh: clicks to that dialog go only to the dialog Jan 24 14:07:54 ok, is there a way of showing it without this? or with limiting the location of the dialog to a specific height and width? Jan 24 14:08:08 thepoosh: you can set the size of the dialog Jan 24 14:08:21 I see it as some sort of thing that allows to generate bytecode for whatever arch necessary Jan 24 14:08:28 which would be quite cool indeed Jan 24 14:08:28 but it wont affect the area that is not clickable Jan 24 14:08:43 monsti: ^ Jan 24 14:08:58 thepoosh: dialog.getWindow().setLayout(w,h); Jan 24 14:09:11 thepoosh: a dialog is always modal Jan 24 14:09:28 thepoosh: in other words the activity behind can't be touched when the dialog is visible Jan 24 14:09:40 can I set the dialog to be inside a layout instead of in android.R.id.content? Jan 24 14:09:59 thepoosh: you cant put a dialog in an activity Jan 24 14:10:02 well, I want it to block only a small potion of the UI Jan 24 14:10:11 instead of the whole activity Jan 24 14:10:17 *portion Jan 24 14:10:23 thepoosh: well you might want to use a relative layout Jan 24 14:10:34 thepoosh: and make a certain area visible Jan 24 14:10:58 thepoosh: a dialog is usually full feature blown with a titlebar and a button bar and some border Jan 24 14:11:21 I have a camera preview, and I want to add a custom Toast that has a ProgressDialog, but I don't want it to prevent the rest of the UI from being responsive Jan 24 14:11:37 just a Toast that has a spinner Jan 24 14:11:52 I thought that a spinner styled dialog will do the trick Jan 24 14:12:08 instead of animation-list Jan 24 14:12:18 thepoosh: what i suggest is a LinearLayout with 1) your content of the image 2) the waiting spinner Jan 24 14:12:25 thepoosh: then make either 1 or 2 visible Jan 24 14:12:47 thepoosh: do the loading in a thread and everything is still responsive Jan 24 14:12:47 monsti: is there a way to create just the animated circle instead of a fully blown dialog? Jan 24 14:13:07 thepoosh: the circle is a gui element in android - a progressbar with a certain stile Jan 24 14:13:08 it's just for show, the loading will not do anything Jan 24 14:13:22 thepoosh: you can use drag'n'drop in the ADT designer Jan 24 14:13:22 yes, but showing it like this will block UI Jan 24 14:13:33 thepoosh: did you read what i wrote? Jan 24 14:13:38 thepoosh: the part with the "thread"? Jan 24 14:13:44 yes yes Jan 24 14:13:52 I'm not getting myself through Jan 24 14:14:00 I think one thing and write another Jan 24 14:14:14 thepoosh: a linear layout - 2 sections ether image or loader section is visible Jan 24 14:14:37 thepoosh: when loading make the loader section visible with the progressbar inside - so the progressbar is cycling Jan 24 14:14:51 thepoosh: and in a thread load your stuff from net/db/sdcard whatever Jan 24 14:15:00 well, I'll give it some thought and design Jan 24 14:15:04 thanks a bunch Jan 24 14:17:07 thepoosh: anyway in android 4 you have to use threads for network access Jan 24 14:17:15 thepoosh: so you have to deal with this anyway Jan 24 14:23:24 if any one have experience with incorporating adobe AIR game with android app, please take a look at this question on SO. http://stackoverflow.com/questions/14438524/add-adobe-captive-runtime-to-android-eclipse-project Jan 24 14:27:30 Alrighty... question of the morning... I need to swap out the background drawable on my LinearLayout...what's the best way to do that? myLinear. setMyBackGroundTo ( R.drawable.myImage ) ... any takers? :) Jan 24 14:28:52 Actually, I spoke too soon... I just messed my getResources() line up... thanks anyway. Jan 24 14:32:13 Any of you guys ever scale a ratingBar? ratingBarStyleSmall is TOO small, and the regular one is too large Jan 24 14:32:48 and when using scaleX and scaleY it scales the stars, but not the frame that contains them Jan 24 14:34:55 sonOfRa: did you try a custom style? Jan 24 14:35:17 monsti: well, I found out why I was so confused, I was trying to create a ProgressBar and was thinking about a hack to create it via ProgressDialog instead Jan 24 14:35:21 silly me Jan 24 14:36:10 thepoosh: well it takes some time to become familiar with android ;) Jan 24 14:36:10 monsti :( was trying to avoid that Jan 24 14:36:55 monsti: I know my way around, but don't handle UI too much, mostly under the hood crap Jan 24 14:37:07 so the terminology was confusing to me Jan 24 14:37:26 I knew exactly what you were talking about and it had nothing to do with what I was trying to ask Jan 24 14:39:35 thepoosh: yeah i did some very very nasty hacks in my first android project ;) Jan 24 14:39:44 :) Jan 24 14:40:09 still we have 8000+ installations ;) Jan 24 14:40:53 :( we are working on a few millions Jan 24 14:41:08 http://www.glide.me/ Jan 24 14:41:24 I'm doing the Android version Jan 24 14:41:33 eh... just noticed a detail, if I'm scaling images for android, and I have for instance that a sdpi phone is expected to be around 426dp, 320dp, what would that be in pixels? Jan 24 14:42:01 you should work with Assets Studio Jan 24 14:42:33 rohdef: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Jan 24 14:43:06 thepoosh, and now I'm not creating an icon, but an image, will it still work fine for that? Jan 24 14:45:29 thepoosh, for example I might get the idea that I want an image that fills around 1/3 of the screen height, I'd like to have the 4 different versions of the image (ldpi, mdpi, hdpi and xdpi) will I be able to do that using that tool? Jan 24 14:45:46 rohdef: it can work well if you create a generic icon Jan 24 14:45:53 oh Jan 24 14:50:18 thepoosh, hmm http://developer.android.com/guide/practices/screens_support.html#screens-table perhaps this would do, then I could just take my base in large screen for ldpi and mdpi and then extra large for the two last, would that work do you think? Jan 24 14:50:59 oh they've got a link to statistics Jan 24 14:51:08 that might be way better than to assume Jan 24 14:53:38 does anyone happen to know a bit about when images scale in a nice way and when they don't? I was thinking if we have an image that should scale to 3 sizes (small, medium and large) will it scale best if it's medium or large? Jan 24 14:56:22 for instance with hdpi displays we've got around 87% of the hdpi users on an normal display whereas the last 13% is on large. Can I safely do it for a the normal display creating an optimal experience for the main part of the users and scale it for the rest or will this create a bad user experience? Jan 24 14:58:01 Due to a (shitty) client requirement, I have Categories in my Database, and it is a polyhierarchy. It is not allowed to have any cycles though. Jan 24 14:58:20 I was thinking about checking this with Tarjan's algorithm, but this would require me to instantiate every single Category when adding a new one Jan 24 14:59:27 Can anyone think of a way to do this more efficiently? :/ Jan 24 15:00:59 sonOfRa: you can add a sqlite trigger Jan 24 15:01:28 sonOfRa: so if you insert a new entry or update an entry you can trace back and test if you just added a cycle Jan 24 15:01:48 that makes sense, I'll take note of that Jan 24 15:03:52 sonOfRa: well cycles are only a problem in UIs Jan 24 15:05:41 sonOfRa: you might can use some code if an element is already loaded with a common root Jan 24 15:05:57 yeah, that's kind of how tarjan would work Jan 24 15:06:06 it steps through a graph and takes note of things it has already seen Jan 24 15:06:23 what are we talking about Jan 24 15:07:09 sonOfRa: this can be easily done as hashset but it's for every node - so this will eat your ram Jan 24 15:07:17 Polyhierarchic datastructure, ron_frown Jan 24 15:07:23 And I have to avoid cycles Jan 24 15:07:31 sonOfRa: a marker in the database to the cycle start would be the deal Jan 24 15:08:11 Worst case is that I have to instantiate the entire Tree when adding an Object Jan 24 15:08:13 sonOfRa: anyway if you mark your nodes with a parent id, it should be no problem to do n queries to the root Jan 24 15:08:35 I think the datastructure isnt the problem but more how do you efficiently store/query Jan 24 15:08:40 if you have an index to id/rootid thats not too bad Jan 24 15:09:20 sonOfRa: the tree won't have a depth of 10000 on a cell phone ;) Jan 24 15:09:39 I'd be curious to see what sort of data really require polyheirarchies Jan 24 15:09:55 most cases I've seen, it was some theoretical problem someone in mgmt threw out Jan 24 15:09:56 i have that too, on my current app Jan 24 15:09:57 Flashcards. It doesn't require this, but the professor thought it would be fun to do Jan 24 15:10:12 ^ Jan 24 15:10:14 It's a semester scale software project for university Jan 24 15:10:28 pl asume depth_max = 5 Jan 24 15:10:44 so ax = 4 queries per insert ;) Jan 24 15:10:48 And the polyhierarchy is a requirement, not using it will let us fail the course. Jan 24 15:10:49 +m Jan 24 15:11:03 i really can't make that assumption Jan 24 15:11:12 ahh school Jan 24 15:11:24 glad I never made that mistake =) Jan 24 15:11:50 I don't understand why we're doing the polyhierarchy really Jan 24 15:11:55 it's absolute bullshit =D Jan 24 15:12:03 I think there are cases for it for sure Jan 24 15:12:10 but I also think people like ot make up bs requirements Jan 24 15:12:58 I'd think a relationship table and entity table you could easily achieve polyheirchies Jan 24 15:13:22 parent relationship with many to one Jan 24 15:13:47 the table is already done Jan 24 15:13:48 parent id would be fine and infact easier to query, but with multiple parents I dont know how you'd achieve that Jan 24 15:13:55 whats the problem then Jan 24 15:14:05 the fact that we have to check for cycles on each insertion Jan 24 15:14:28 And for a worstcase, that means instantiating ALL categories to check them with Tarjan's algorithm Jan 24 15:14:55 I am a fan of problem solving, but problems that are so very unlikely to ever occur in the real world Jan 24 15:15:22 What I'm scared of, is the crappy garbage collection on android Jan 24 15:15:41 instantiating 1000 objects or something like that at once, and then releasing them later Jan 24 15:15:44 well how you're pulling categories, I'd be worried abotu that too Jan 24 15:16:06 do they require you to use sqlite? Jan 24 15:16:09 yes Jan 24 15:16:11 or a rdbms for that matter? Jan 24 15:16:23 fuun Jan 24 15:16:26 indeed Jan 24 15:16:29 we're using ormlite Jan 24 15:16:36 you don't want to look at this table structure Jan 24 15:16:54 and considering synchronization, hierarchy suggestions to the main server Jan 24 15:17:07 there is SO much shit in this that makes it ridiculously load-heavy on android Jan 24 15:17:39 thats why I asked, I'm the type of person that would rather circumvent the rdbms if there was a valid reason for it Jan 24 15:17:45 if you need a database use a database Jan 24 15:17:48 if you need a b+tree Jan 24 15:17:50 write one Jan 24 15:18:01 (not that I am suggesting a b+tree is the solution here)_ Jan 24 15:18:33 oh well. I think I'm just going to not-give-a-shit Jan 24 15:18:49 good luck with school Jan 24 15:19:01 I'll just do tarjan and instantiate it all Jan 24 15:19:26 if they want a loadheavy android application, they can have one -.-' Jan 24 15:19:42 I know all about load heavy =) Jan 24 15:21:55 if this is for a class, i can see using android for that since doing inefficient things is VERY inefficient and you can see that Jan 24 15:22:23 anyone ever implemented IAB and a scheme to verify the signed response? Jan 24 15:22:23 unlike most desktop PCs where you can do a lot of crap and it's all fast enough students are like "whatever" Jan 24 15:23:21 oGMo: everyone is like who cares about efficiency Jan 24 15:23:28 we'll just throw more resources at the problem Jan 24 15:23:44 drawable-es Jan 24 15:23:52 ron_frown: well nextgen tablets have 8 cores ;) Jan 24 15:23:59 ron_frown: why not waste resources? Jan 24 15:24:18 I assume that with the same hardware, instantiating them and doing Tarjan might not be a problem Jan 24 15:24:34 sonOfRa: i suggest the trigger solution Jan 24 15:25:12 sonOfRa: it's very simple and has a maximum of maxdepth -1 queries Jan 24 15:25:14 I'm seeing the DalvikVM as the bottleneck for this, or am I wrong about this? Jan 24 15:25:31 Might be a good idea, yeah Jan 24 15:25:53 sonOfRa: when inserting you might already have the path in memory where the new node is inserted Jan 24 15:26:10 so then it's a simple for loop Jan 24 15:31:14 i have a fragment that has setRetainInstance(true), and it fires an asynctask. In the OnPostExecute i call getActivity(). could it return null ? Jan 24 15:31:58 fragments can be detached with no explicit activity I thought Jan 24 15:33:04 i guess i could save my info on the fragment and have it do stuff on onActivityCreated Jan 24 15:55:38 I've used repo sync to download the aosp, and I later removed one of the folders. Now repo sync fires an error on that folder, but it does not update it. Does anyone here know how to get repo to update a modified/missing folder? Jan 24 15:56:40 on a new device, stock... is it possible to use a standard recovery to add libs to /system and some binaries ? Jan 24 15:56:46 or would that vary from device to device? Jan 24 15:56:59 so that users could install some system stuff without having to have root Jan 24 15:57:20 Megatron03: Update.zip is pretty universal. Jan 24 15:58:17 so i can assume it's doable using the standard script in Update.zip? Jan 24 15:58:27 /com/updater-binary thing Jan 24 15:58:50 Yes, although it can run on most devices, so it is easy to put something incompatible on, if they use it on the wrong device. Jan 24 15:59:57 does update.zip need to be signed or something? Jan 24 16:02:42 rage... http://developer.android.com/reference/java/lang/Long.html#getLong(java.lang.String, java.lang.Long) Jan 24 16:21:16 hello: how do i check/listen if the defaults keylocks are correctly or incorrectly unlocked? like wrong/correct pin or correct/wrong pattern used? Jan 24 16:25:23 misterli: closest is probably http://developer.android.com/guide/topics/admin/device-admin.html Jan 24 16:29:41 hi, quick question about android preferences: i got pref a, and b with android:dependency="a" Jan 24 16:30:08 how do i get preference b indented a bit to the right, so it's ovious it belongs to a? Jan 24 16:33:10 m0viefreak, add space char in title of b Jan 24 16:33:14 ) Jan 24 16:33:37 looks ugly if the summary text is wrapped Jan 24 16:33:55 i tried android:layout="?android:attr/preferenceLayoutChild" Jan 24 16:33:58 but it had no effect Jan 24 16:34:12 you can implement descedant of PreferenceActivity and override its methods Jan 24 16:36:04 actually I don;t think it a good idea to indent it at all Jan 24 16:37:26 why not Jan 24 16:37:30 oocantido: maybe it has something to go with 4.2..i did a target for 2.2 and now it is working Jan 24 16:38:09 bahh..he is not here Jan 24 16:39:15 ukgamer:???? is that the same one from Empires Mod? Jan 24 16:39:52 http://developer.android.com/guide/topics/ui/settings.html Jan 24 16:40:21 m0viefreak, you can use groups Jan 24 16:40:55 i already have a group Jan 24 16:41:34 but this preference b is a specific sub-preference to a Jan 24 16:41:59 im trying to make that ovbious without creating further preference-screen Jan 24 16:43:04 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/preference_child.xml Jan 24 16:43:09 this obiously has a margin Jan 24 16:43:14 im wondering why it doesnt work Jan 24 17:01:09 hmmpf, Udmurt: it actually works, at least in Theme and Theme.Holo, the problem seems to be the default theme that comes with the galaxy s3 ... Jan 24 17:03:20 yes, i've checked it works in my app with actionbarsherlock Jan 24 17:03:46 i might force Theme.Hole in the manifest Jan 24 17:03:50 *Holo Jan 24 17:09:31 how can I start a viewpager from a custom ArrayAdapter for a listview? Jan 24 17:09:57 like I assume I have to load it in the getView() method, maybe in between the if(row==null) statement Jan 24 17:23:43 what version made it possible to slide to remove notifications? Jan 24 17:23:51 x Jan 24 17:23:55 4.0 I think Jan 24 17:23:55 why Jan 24 17:24:28 I've been thinking about the Cyclic graph problem I mentioned above again, might it be a good idea to implement this in C/C++ via NDK? Jan 24 17:24:40 Cause I was thinking of having slide on notification to stop something running Jan 24 17:24:54 that's a terrible idea Jan 24 17:24:59 no other app does that Jan 24 17:25:10 just put a button in it if you want to give the user some control Jan 24 17:25:16 Just a countdown timer Jan 24 17:25:18 i think that's 3.0+ too Jan 24 17:26:01 I think I want this working for 2.3 Jan 24 17:26:16 so maybe just tapping the countdown notification should stop the countdown Jan 24 17:26:39 yeah Jan 24 17:28:47 WhatsApp messages are actually buttons, aren't they? Jan 24 17:28:54 (talking about the UI) Jan 24 17:29:31 vuln: i guess they use a custom background Jan 24 17:29:45 semitransparent png/9patch Jan 24 17:29:47 it seems more like a listview Jan 24 17:29:58 with transparent background, and custom textviews in there Jan 24 17:30:36 how can I inflate a viewpager inside a listview with custom adapter? Jan 24 17:30:54 Yeah, background, listview and so on. But the MESSAGES arent textviews :o Jan 24 17:31:11 sonOfRa: can a textview be clickable? Jan 24 17:31:20 sure Jan 24 17:31:25 the list item is clickable Jan 24 17:31:27 oh, I didnt know Jan 24 17:31:32 you can click anywhere in the same row as the message Jan 24 17:31:32 I see. Jan 24 17:32:38 vuln: for the bubles i would use a 9patch Jan 24 17:32:42 very simple Jan 24 17:33:08 9patch? Jan 24 17:33:13 the whole widget is a listview - android 2.x because it has an orange highlight glow Jan 24 17:33:58 well maybe i should rephrase the question, but, is it possible to start up a viewpager from within a listview custom adapter? Normally i know you start up a viewpager by setting the content view to the viewpager layout. How can I start it up without that Jan 24 17:37:15 vuln: http://developer.android.com/reference/android/graphics/NinePatch.html Jan 24 17:38:40 vuln: http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch Jan 24 17:39:04 ty Jan 24 17:53:42 How can I get the screen size with different methods based on the current phone's Android API level? Jan 24 17:54:16 I could put in an if statement but I get the error "Call requires API level 13 current min is 8" Jan 24 17:55:02 jdawes: you need to add the annotation to surpress lint in that case.. but I don't know what method you're using that only works in 13+ Jan 24 17:55:24 s/surpress/suppress/ Jan 24 17:55:28 cantido: display.getSize(Point size); Jan 24 17:55:34 Is the dalvikvm still slow for creating objects/Garbage collection, or has that changed with newer android versions? I keep hearing this and kind of want to find out if it is actually true Jan 24 17:56:05 jdawes: what is display Jan 24 17:56:13 hi, which api do you suggest for config file parsing? I mean, key/value pairs config files. Jan 24 17:57:34 cantido: it's a Display object, getWindowManager().getDefaultDisplay() Jan 24 17:57:36 jdawes: ok you mean Display.. you should use getSize on 13+ and use getWidth, getHeight or getMetrics on anything else Jan 24 17:57:56 cantido: I know, how does one surpress Lint for this one line? Jan 24 17:57:57 or just use the ones that are available since your minsdk Jan 24 17:58:13 jdawes: eclipse should be giving you a quickfix Jan 24 17:58:35 sonOfRa: I don't know, is it? Jan 24 17:58:40 Do some tests Jan 24 17:58:55 If you have performance related code, make sure you do as few allocations as possible anyway Jan 24 17:59:06 try to reuse components, etc Jan 24 18:00:50 The fuck.. if I run sdk/tools/monitor, it asks me for the path to the sdk Jan 24 18:01:44 I thought this would be a simple thing... I need something like ConfigParser in python Jan 24 18:01:51 any idea Jan 24 18:03:15 cantido: found it, thanks for the help Jan 24 18:03:24 SharedPreferences is key value pairs Jan 24 18:04:18 SimonVT, I was reading about that, really wanted to be sure, so asked here. Ok I'll stick with SharedPreferences Jan 24 18:05:48 gmagno: key/value pair parsing? http://developer.android.com/reference/java/util/Properties.html Jan 24 18:05:56 I'm assuming you want file parsing Jan 24 18:06:18 read up on Java Properties files, that might be the solution for you. Jan 24 18:06:46 make sure to reuse all your strings Jan 24 18:06:53 or you get the mammary leaks Jan 24 18:07:46 hmm, lemme check that Jan 24 18:08:01 check it Jan 24 18:08:04 before you wreck it Jan 24 18:09:19 mammary leaks?? I'm in my office laughing out loud with all my colegues looking at me Jan 24 18:10:03 i'm glad I could make your day Jan 24 18:10:47 Hi hi, I was wondering.. Jan 24 18:10:52 me too Jan 24 18:10:59 Can I put 2 classes into 1 .java file? Jan 24 18:11:06 yes Jan 24 18:11:08 uw Jan 24 18:11:14 you should have a good reason for it though Jan 24 18:11:18 Do both have to be named after the .java file? Jan 24 18:11:28 that would be impossible wouldn't it? Jan 24 18:11:36 i.e. MainActivity.java, menaing both have to be called MainActivity? Jan 24 18:11:51 *meaning Jan 24 18:11:57 no, you would have MainActivity and MainActivity.SomeOtherClass Jan 24 18:12:00 no. Jan 24 18:12:06 hmm Jan 24 18:12:07 In fact you should not do that as it would be confusing Jan 24 18:12:08 alright Jan 24 18:12:14 Consider asking regular Java questions in #java Jan 24 18:12:23 consider drinking more Pepto Jan 24 18:12:24 :< Jan 24 18:12:54 I have named myself, the official Developer Pharmacist of #android-dev Jan 24 18:13:04 works for me Jan 24 18:13:14 if it does for you.. Jan 24 18:14:04 I got a button but I need it to do something, and it's in MainActivity, that's why I was wondering.. Jan 24 18:14:32 oh dear it sounds like you might need to go to the ER Jan 24 18:14:38 aw well back to oracle Jan 24 18:14:45 please explain your requirement in detail Jan 24 18:14:57 no time Jan 24 18:15:02 have to leave class Jan 24 18:15:04 later maybe Jan 24 18:15:12 like you want the OnClickListener to be in the MainActivity? Jan 24 18:15:26 you are going to die without my help Jan 24 18:15:47 anyway, has anyone played Tokyo Jungle Jan 24 18:15:56 for PS3 Jan 24 18:19:43 * cantido wishes tokyo really was taken over by animals.. Jan 24 18:35:04 I am a fucking tool. I wondered why my program didn't work. Then I realised I was working in manifest.xml and not activity.xml Jan 24 18:35:08 holy fuck I am so bad at this Jan 24 18:35:12 please kill me Jan 24 18:35:57 I've implemented loads of code for one project in a totally different one before Jan 24 18:36:35 cantido: the worst thing about this is that I have programmed the exact same app before, just that Iaccidentlly deletedthe sauce when transfering my os Jan 24 18:36:37 I refactored something for about an hour before noticing I was refactoring because it was a totally different class with the same name once.. heh Jan 24 18:37:00 Im glad that it's just not me Jan 24 18:37:08 but that doesn't make me feel any less retarde dlol Jan 24 18:38:17 well, as it gets closer to 6am and the bottle of rum it getting emptier and all the coke is gone weird stuff starts getting push to git :p Jan 24 18:38:19 i lost ll my web os source codes :( Jan 24 18:38:24 i cry Jan 24 18:38:37 also old windows mobile stuff too ;/ Jan 24 18:39:42 hi Jan 24 18:40:05 winmo lol Jan 24 18:40:55 looking forward to developing for ubuntu phones though Jan 24 18:40:57 I managed to delete a project for a client I had been working on for about a month once.. Jan 24 18:41:04 that wasn't a good feeling Jan 24 18:41:12 cantido: never heard of source control? Jan 24 18:41:32 birbeck: that's what saved my pants Jan 24 18:41:33 yeah, i had them in source control i have no idea where the repos went :| Jan 24 18:41:45 and the fact that I backup my workspace.. so I rebuilt the work Jan 24 18:41:56 i have a bunch of old harddrives floating around, they gotta be on there i figure Jan 24 18:42:23 i sync my workspace to ubuntu one Jan 24 18:42:24 mikedg: get a bitbucket account ;) Jan 24 18:42:27 does anyone know how to make ListPopupWindow set its width to wrap the list content? Using ListpopupWindow.WRAP_CONTENT actually sets its width to the width of the anchor view, which is confusing and does not behave as the docs specify Jan 24 18:42:30 i have one Jan 24 18:42:43 just toay i moved all my current active repos there Jan 24 18:42:51 that is when i realised i have no idea what happened to my old code Jan 24 18:43:07 and that i also tend to commit locally and forget to push with git Jan 24 18:43:09 at least it was old stuff.. Jan 24 18:43:12 oops :/ Jan 24 18:43:33 birbeck: looking forward to making the starbucks card app? Jan 24 18:43:43 lov: possibly Jan 24 18:43:55 lov: havent decided what to develop for it yet really Jan 24 18:44:10 i need a quick but impressive app idea so i can get a free lumia Jan 24 18:44:12 any thoughts Jan 24 18:44:23 going to try my hand at ubuntu and firefox phones though Jan 24 18:44:24 something crappy like a starbucks card app would work i bet Jan 24 18:44:27 mikedg: android emulator? Jan 24 18:44:48 i used to write gtk apps for linux, im hoping ubuntu phones use gtk :) Jan 24 18:45:09 mikedg: an app for signing pdfs or other docs Jan 24 18:45:43 * cantido wonders how many Linux phones the market really needs Jan 24 18:46:08 cantido: its good for competition Jan 24 18:46:34 when apple and microsoft are no longer players in the mobile space, someone needs to keep google in check Jan 24 18:47:07 Barack Obama will keep Google in check Jan 24 18:47:11 birbeck: I'm not sure what advantage ubuntu or firefox can offer Jan 24 18:47:16 that commie won't let Google win Jan 24 18:47:19 though bad news for me, our ios guy just quit. his last day is wednesday Jan 24 18:47:28 that mean i have to develop for that shitty platform again Jan 24 18:47:38 birbeck shitty? Jan 24 18:47:40 i have no idea what I'm talking about politically Jan 24 18:47:46 birbeck: that was me last week :| Jan 24 18:48:06 StingRay_: i dont think i made a typo Jan 24 18:48:27 indeed, my question was why shitty? Jan 24 18:48:38 as in never looked at ios Jan 24 18:48:47 decided to learn dev stuff on android Jan 24 18:48:53 but often thought of ios Jan 24 18:48:54 try it, and you will understand very quickly Jan 24 18:49:00 i'm also curious about ios Jan 24 18:49:02 StingRay_: objectivec makes me feel like throwing up.. Jan 24 18:49:20 yeah, it does look … odd Jan 24 18:49:23 what app ideas have you guys been thinking about to interface with google glass? Jan 24 18:49:24 I wrote a kernel extension control tool of ios in objective c Jan 24 18:49:31 wasn't all bad Jan 24 18:49:38 the entire stack makes me feel like throwing up... mac hardware, os x, xcode, objective c, ios, iphones/ipads Jan 24 18:49:40 StingRay_: kernel extension control? Jan 24 18:49:51 .kext Jan 24 18:49:59 birbeck: did you ever try making xcode work with something like jenkins.. Jan 24 18:50:10 what a complete pile of shit Jan 24 18:50:19 cantido http://www.youtube.com/watch?v=kvAeoyGK_5I version controll and single user rollback too Jan 24 18:50:27 cantido: no. i looked at it a bit, but then it was out of my hands since i hired the ios guy Jan 24 18:50:29 my 1st attempt at programming anything Jan 24 18:50:32 :) Jan 24 18:50:52 install versioning etc Jan 24 18:51:04 for experimentation purposes Jan 24 18:51:08 though getting android set up with continuous integration and auto deployment was pretty simple Jan 24 18:51:10 so its a tool for installing kernel modules? Jan 24 18:51:38 and versioning, disabling, modding etc, but like I said with version control Jan 24 18:51:46 birbeck: getting signing etc to work basically means disabling all security in osx Jan 24 18:52:11 i finally got my mac book (with ubuntu) replaced by a new dell xps13 (ubuntu pre-installed), i dont want them to take it away and give me a new mac again Jan 24 18:52:36 i remember signing my first ios app, what a nightmare. though it has gotten much better now Jan 24 18:52:41 StingRay_: versioning == reading some header from the .kext? Jan 24 18:52:49 it was like 35 steps back then Jan 24 18:53:28 cantido versioning == info from kext, file.db, gen single user rollback script entry etc Jan 24 18:53:48 with android, export signed apk, or run jarsigner & zipalign and youre done Jan 24 18:53:50 Nothing that is slightly outside the normal use case is a pain with apple stuff it seems Jan 24 18:54:15 StingRay_: to me that just seems like shell scripty sort of stuff to be honest Jan 24 18:54:47 well it's for install of modded kexts for hackintosh stuff Jan 24 18:55:14 that can for many users cause the need for re-install if you cant recover in single user Jan 24 18:55:18 yeah, I get it.. I've built a few of those Jan 24 18:55:37 well neways that was my 1st attempt at using xcode/objc Jan 24 18:56:09 I guess cause I'm not a programmer, I dont have the experience to call something shitty Jan 24 18:56:11 :) Jan 24 18:56:31 StingRay_: if you want some fun you should try something like build a busybox userland and stick it inside a linux kernel image Jan 24 18:56:42 you can have an os in a single file ;) Jan 24 18:56:59 fun to me is making a t-rex talk and lipsync it to a music track Jan 24 18:57:12 so no...thats not my idea of fun :) Jan 24 18:57:55 again maybe it's my lack of dev experience that makes me miss the fun in that :) Jan 24 18:58:54 hm.. as soon as Iadd a webview my linearlayout design breaks down :/ I can't seem to get it to force the webview to be vertically under the button and edittext Jan 24 18:59:39 has anyone in the house used SurfaceTexture before? Jan 24 18:59:56 Nibble pastebin ? Jan 24 19:00:53 "Ubuntu is the world’s favourite Linux distribution" Actually, I think Android can claim that spot Jan 24 19:02:15 StingRay_: (it's basically just the example with an added webview) http://pastebin.com/XZXJVLAg Jan 24 19:02:40 Nibble android:orientation="horizontal" Jan 24 19:03:04 birbeck: acutally, linksys might have had it beat years ago Jan 24 19:03:44 StingRay_: changing it to vertical doesn't produce the desired result either, I could draw you an image of what I want (something I got to work in the other exact same app I made before that I deleted the source code for lol) Jan 24 19:03:59 muhoo: linksys firmware is basically kernel + busybox, not much of a distribution Jan 24 19:04:10 Nibble sure Jan 24 19:04:21 Nibble i like drawings Jan 24 19:04:48 Nibble but I think I can guess Jan 24 19:04:48 Hello. I'm currently trying to make a camshot. It works well in my app but the user have to press the "Shoot" button by himself. Is there any way of a Autoshot as soon as the Cameraintent started? Jan 24 19:04:58 http://imgur.com/uiZL3Pt StingRay_ Jan 24 19:05:24 misterli: I don't think so, why not implement the camera part in your app? Jan 24 19:05:25 if it's too high quality for your computer I could produce antoher one with slightly less details Jan 24 19:05:36 misterli: you would have control over autofocus, shutter etc Jan 24 19:05:40 Nibble then you need a parent linlay vertical, then put 2 lin lays in it Jan 24 19:05:53 well just 1 linlay and webview Jan 24 19:06:06 the child linlay would be horizontal Jan 24 19:06:08 is linlay what the kids on the street say? Jan 24 19:06:20 or, start using relativeLayout Jan 24 19:06:23 birbeck: thats like saying the 8051 is the word's favorite processor :) Jan 24 19:06:25 well cantido. I need it easy and simple. Just a single Shot and storage on the SDCard. This works already.. but not autoshot.. Ive no clue how to build up an OWN Camera-App aslong as there's possibilie to use the Camera Intent Jan 24 19:06:32 linlay = me cant be arsed typing Jan 24 19:06:44 misterli: the camera is very easy to use Jan 24 19:06:46 Hey u guys, first time in here, can anyone point me to some help creating desktop icons/shortcuts in Android to run shell scripts? Willing to hire someone to contract if anyone is interested.... Jan 24 19:06:55 StingRay_: oh, thank you. with your awesome hlep I now recall that that's how I probably did it last time around too Jan 24 19:07:24 Nibble but I would use relative layout hosting all the components Jan 24 19:07:30 g00s: won't be long until there are more ARM cores than anything else Jan 24 19:07:39 or actually I implemented image scrolling and zooming that time so I didn't, but it was akin to osmething similar Jan 24 19:07:54 StingRay_: that would require me to learn somtehing new :DD Jan 24 19:08:08 Nibble ah, yeah, f*** that then ;) Jan 24 19:08:51 StingRay_: I would suggest GridLayout from the support stuff over RelativeLayout btw Jan 24 19:09:07 StingRay_: You can do most of the same stuff without going insane in the process Jan 24 19:09:19 ewww no, grid ??? Jan 24 19:09:23 ah okay. Figured it out Jan 24 19:09:29 can a grid have offset cells ? Jan 24 19:09:33 StingRay_: I didn't know this was a religious issue Jan 24 19:09:41 Has anybody setup android desktop shortcuts to run shell scripts ? Jan 24 19:09:49 StingRay_: offset cells? Spaces> Jan 24 19:09:50 as in a row of 2,3,1 etc ? Jan 24 19:10:09 StingRay_: yes Jan 24 19:10:17 you have col and row span Jan 24 19:10:27 oh really, though it was more like a table Jan 24 19:10:36 and there is a special view called Space for when you need spaces Jan 24 19:11:12 StingRay_: TableLayout is the clunky thing from old days.. GridLayout is the new shiny Jan 24 19:11:41 Also I don't know how to program java, but who needs to know that Jan 24 19:11:52 it's all brackets and paranthesis anyways Jan 24 19:12:09 Nibble: you need to get a design patterns book Jan 24 19:12:31 cantido: I just need to finish this app and then remove eclipse from my computer Jan 24 19:13:02 or install CDT and get some function pointer love on the go Jan 24 19:13:44 I stopped using eclipse for c dev once I stopped doing c dev Jan 24 19:13:51 vb.net is the new black guys Jan 24 19:13:52 when I download the source of an android release using the SDK manager, does it not include native code & JNI? Jan 24 19:14:25 * cantido hopes you didn't mean black and guys as a single unit Jan 24 19:14:48 actually I didn't mean to type guys at all Jan 24 19:14:56 nvm, I meant black, guys Jan 24 19:15:07 MercuryTW: no, the NDK is a seperate weird thing, there are some NDK tools available for eclipse now apparently though Jan 24 19:15:17 Once you go VB.Net, you never go back, Nibble? =D Jan 24 19:15:30 s/seperate/separate/ Jan 24 19:17:29 lame, my exchange email prevents me from using lock screen widgets :| Jan 24 19:17:30 so stupid Jan 24 19:18:00 Is there a way to make a textview place its text baseline at a specific height within the widget? Jan 24 19:18:52 (essentially, I would like to align the text-baselines to an underlying grid; so alternate ideas would be great too.) Jan 24 19:18:59 mikedg: I've solved this problem (and many others) by just not having work email on my phone Jan 24 19:20:21 i like it, cause i see my upcoming meetings in google now Jan 24 19:20:31 but i inevitably use touchdown then turn it off Jan 24 19:20:42 hey mikedg Jan 24 19:20:45 hey napalm Jan 24 19:21:04 what did you think of that G+ post about programmers getting interrupted Jan 24 19:21:05 :D Jan 24 19:21:10 wait Jan 24 19:21:12 that was yours Jan 24 19:21:16 stop bothering me Jan 24 19:21:19 yeah it was mine Jan 24 19:21:21 :P Jan 24 19:21:21 i mean my one about late night programming Jan 24 19:21:30 :D Jan 24 19:21:31 yeah, ive seen that before Jan 24 19:21:50 there's a ton of great articles around that crap, that always wind up interrupting me Jan 24 19:22:06 napalm Jan 24 19:22:12 yus Jan 24 19:22:19 Linky? to the post Jan 24 19:23:17 http://www.businessinsider.com/why-programmers-work-at-night-2013-1?0=careers-contributor Jan 24 19:25:22 James-UBC: ^ Jan 24 19:26:00 I work late at night because of screaming baby and insane chair throwing wife.. is that in there? Jan 24 19:26:16 how do I make it so that a edittext is not focused automagically? Jan 24 19:28:27 Apparently people work when there isn't lots of distracting shit going on.. Jan 24 19:28:33 * cantido is shocked! Jan 24 19:30:52 Nibble: set the android:descendantFocusability on the parent ViewGroup / Layout Jan 24 19:31:30 cantido: are you married to ballmer? Jan 24 19:31:36 can the string value of webview.loadData contain an actual url? Jan 24 19:37:07 yeah I'm usually most productive 8 to 5 Jan 24 19:38:04 coding wise but problem solving is usually on the morning or around noon Jan 24 19:40:12 hi... I have 14 different translations of my app. In the past (before yesterday), I always got ranked for my app's name at most a few hours after an addition of a language. Yesterday I added two new translations (Simplified Chinese and Japanese) and after 30 hours I'm still nowhere to be found in the results for my own app's name... can anyone give a possible explanation? Jan 24 19:40:22 I'm talking about the Play Store Jan 24 19:41:41 how the play store ranks is opaque; some things are know but not all, and how its done probably changes over time Jan 24 19:42:23 great, now there's a graphical artifact that dissapears when I exit keyboard inside the app with the back key on my phone and then never appears again Jan 24 19:42:50 g00s: it looks like a glitch, though... I'm not ranked low, I'm not ranked at all (for that phrase). I'm still doing more than fine in all the other languages. Jan 24 19:43:35 it looks like the rankings have not been updated (or my translations have not been taken under consideration) Jan 24 19:43:43 muszek what appName ? Jan 24 19:44:05 StingRay_: https://play.google.com/store/apps/details?id=info.percentagecalculator Jan 24 19:45:54 http://imgur.com/yL7jipc at the top of the screen Jan 24 19:46:30 example German name: https://play.google.com/store/search?q=prozentrechner&c=apps&hl=de (I'm #1), Chinese: https://play.google.com/store/search?q=%E7%99%BE%E5%88%86%E6%AF%94%E8%AE%A1%E7%AE%97%E5%99%A8&c=apps&hl=zh (I'm not anywhere). Same with Japanese. Jan 24 19:47:00 6 in uk Jan 24 19:47:03 6th Jan 24 19:47:30 StingRay_: for which phrase? Jan 24 19:47:38 app name Jan 24 19:47:58 (btw, you can add &hl=pl to change the language and thus rankings) Jan 24 19:48:37 StingRay_: yeah, I know I rank for the English phrase. I'm having an issue with recently added Chinese and Japanese. Jan 24 20:05:44 cantido: linksys is kernel + busybox, exactly the same buildroot as android. but of course it's not the same as a desktop linux distro, and neither is android. my subtle point is that android is as much "linux" as linksys is, which is to say, it isn't at all. it's something different. Jan 24 20:06:26 but whatever, it's kind of moot anyway Jan 24 20:11:35 mhm... ive a custom Camera now which has an Photohandler as Callback.. How can i finish the Camera-Activity (Finish) out of the Callback? ((Activity)_context).finish() does not work. Jan 24 20:17:32 rms would probably say it should be called android/linux (a.k.a. gnu/linux :-) Jan 24 20:19:37 root mean square ? Jan 24 20:20:25 he's no square, for sure Jan 24 20:21:15 [er, the one and only richard stallman; just to avoid confusion for any...] Jan 24 20:22:49 <`teh1> where does juno download ADT to if you use "install new software"? Jan 24 20:23:08 <`teh1> Eclipse wants me to specify a path to the software first, but I have no idea where it downloaded to. Jan 24 20:27:39 i think eclipse wants the path to your android sdk Jan 24 20:27:46 not the ADT Jan 24 20:28:49 Do you know how to fix this HierarchyViewer issue ? > [2013-01-24 21:27:37 - hierarchyviewer]String index out of range: 414 Jan 24 20:30:07 413 Jan 24 20:33:44 mikedg: Yes, but is it my fault? :) Jan 24 20:35:03 <`teh1> sonOfRa: i realized in the shower :P Jan 24 20:35:13 <`teh1> Thanks. Lame that the instructions dont tell you to download it separately Jan 24 20:36:56 JulienDev, probably. maybe you're doing some kind of loop and <= length instead of < length of something? Jan 24 20:37:06 if it's off by one, it's usually something like that Jan 24 20:37:08 anyone have experience with appwidgethosts? Jan 24 20:41:21 mikedg: tiny bit Jan 24 20:42:38 JakeWharton: any thoughts on if I can find out when a widget is updated? Jan 24 20:42:57 sonOfRa: I have no loop on my Activity and fragments and also I have no array with 413 objects :/ Jan 24 20:44:14 JulienDev: my experience has been that HV is the buggies part of the sdk Jan 24 20:45:27 even the first book i read on android dev in 2009 (conder) described HV as 'unfinished'; it never worked at all on my droid-1 because of the screen resolution Jan 24 20:45:43 mikedg: for most widgets you can create a custom AppWidgetHostView (checkout the launcher2 source code for an example of a LauncherAppWidgetHost which creates LauncherAppWidgetHostViews, and then override the updateAppWidget(RemoteViews). however for scrollable widgets finding out when they update would be more complex Jan 24 20:46:09 g00s: I love the idea that my code is ok :) Jan 24 20:46:13 thak you for that feedback kevinb Jan 24 20:46:51 damn those scrollable widgets! Jan 24 20:47:52 the scrollable widgets would be because they are backed by some content provider right? Jan 24 20:50:56 whats a Serializable alternative to Pair ? Jan 24 20:51:25 your Pair :) Jan 24 20:52:15 aka a 'holder' Jan 24 20:52:23 yeah Jan 24 20:52:24 mikedg: yeah they do a bindRemoteViewsService which i think then connects to the content provider and it gets really confusing and mostly is inaccessible by standard APIs . maybe you could use a contextwrapper to change the layout inflater to use a custom listview to notify you when it's updated, but i wouldn't recommend it Jan 24 20:52:25 ugh Jan 24 20:53:50 is there any way to stop a MediaPlayer instance when it's preparing ? Jan 24 20:54:05 nothing can stop a mediaplayer when it's prepared to die Jan 24 20:54:07 i don't want to stop the playback. i want to stop the preparation Jan 24 20:54:47 lov: :D Jan 24 20:57:14 chuck norris Jan 24 21:02:24 lov I caved and just get primary for now. then give option to set a custom storage path Jan 24 21:03:12 I'm not going to fight it. I got 4 devices into testing and realised I created a rabbit hole Jan 24 21:04:44 would just end up having to maintain a list of possible mount points for storage Jan 24 21:04:51 I am having trouble adding a ViewPager to my ListView's custom adapter. Can anyone help me with this?? Jan 24 21:05:38 MajorZero: there are plenty of good tutorials on stackoverflow showing adapter/viewpager stuff Jan 24 21:05:57 my other thought was to read the vold.fstab Jan 24 21:07:22 ViewPager inside a ListView sounds unusual, if you mean ListView inside a ViewPager then indeed tutorials and stackoverflow cover this stuff well. If you really meant ViewPager inside a listview and are trying to do a Swipe To Dismiss style thing then search for Roman Nurik's Swipe To Dismiss example Jan 24 21:08:47 my main goal was to enable the viewing of all storage devices avail. so like if someone docks their tab and uses the dock storage I could allow the user to search media on it or even on otg devices ect Jan 24 21:09:20 kevinb I did mean viewpager inside a listview...I am trying to have a layout appear in every row of my listView, and in this layout, there is a viewpager. I dont know how to initialize the viewpager Jan 24 21:09:41 MrMaffen_ I havn't been able to find an adapter/viewpager article on stack overflow unfortunately Jan 24 21:09:55 zinx: any ideas? I couldn't find a public api to do this Jan 24 21:11:11 I have MainActivity starting a notification with NotificationCompat.Builder. When the notification is clicked on, it executes: "Intent resultIntent = new Intent(this, newActivity.class);" Instead of that newActivity being run, how can I run a method within MainActivity? Jan 24 21:13:48 toastcfh: for "external" storage that isn't actually external? which version? Jan 24 21:14:28 all versions of android really. but any version would do Jan 24 21:15:23 and yeah like if a dock has a storage device or the device has a external and internal sdcard. i wanna find my apps folder on all storage devices mounted Jan 24 21:15:27 toastcfh: newer ones let you get a path for specific types of files Jan 24 21:15:35 I hope my question makes sense :P Jan 24 21:17:07 toastcfh: and in really new ones, it becomes rather interesting Jan 24 21:17:17 toastcfh: because every user has their own external storage Jan 24 21:19:20 Quacked: you want to set an extra on the intent, and then check for it when the activity starts, using getIntent() Jan 24 21:21:14 what if I dont want the activity to start at all? I want the click/cancellation of the notification to stop a countdown timer/alarm without opening the app again Jan 24 21:21:56 toastcfh: looks like there's an intent for media mount/unmount/remove/etc Jan 24 21:22:22 clever: also, what do you mean by "set an extra"? Jan 24 21:22:23 toastcfh: kinda sucks to have to register one though Jan 24 21:23:02 Quacked: i would use a service then, point the intent to a service and use the extras there Jan 24 21:23:47 Quacked: https://developer.android.com/reference/android/content/Intent.html#putExtra%28java.lang.String,%20android.os.Bundle%29 Jan 24 21:26:56 Hmm Jan 24 21:27:46 have a service running the countdown instead of MainActivity? Jan 24 21:28:02 Quacked: yeah Jan 24 21:28:43 Quacked: or use alarmmanager to run the countdown, and the service just to handle starts and stops (thru the intents) Jan 24 21:29:04 zinx: cool ill check that out Jan 24 21:29:21 make a listener Jan 24 21:29:28 might be best anyhow Jan 24 21:30:02 overly complicated tho Jan 24 21:30:08 may be intentional tho Jan 24 21:30:20 keep people off storage Jan 24 21:32:27 any ideas in regards to adding a viewpager to my listview row adapter then? Basically I wan't each row to have a horizontal sliding animation that takes the user to a new view Jan 24 21:32:52 and I was able to implement my design with a viewpager, but I want to display an individual instance of this, in each row. Any advice would be greatly appreciated...this is the final stretch for my project Jan 24 21:36:19 clever: I see. Thanks. Jan 24 21:36:46 Quacked: one problem ive run into, android tends to kill off my service if its been running a while Jan 24 21:36:52 and the system needs ram for something else Jan 24 21:37:12 I probably won't go for a service to begin with Jan 24 21:37:13 so you will want to either use alarmmanager to re-start things at the target time, or Service.setForeground Jan 24 21:37:29 I'm trying to make this as easy as possible Jan 24 21:37:34 As my first app Jan 24 21:38:01 I'll probably just set an option to cancel the countdown within an activity instead Jan 24 21:49:08 recruiter asks for 7 years of android development :| Jan 24 21:49:41 g00s: tell him you've got 10 :P Jan 24 21:51:28 Take the time you spend at night and weekends and add that to the time you spend during the day. It should double the experience you have. Jan 24 21:51:47 Ge0rG: :D Jan 24 21:53:32 interesting, so it seems like Samsung is making some pretty interesting changes to the Android UI with regards to multitasking Jan 24 21:54:26 http://www.geek.com/articles/mobile/samsung-adds-multi-window-despite-threat-from-google-2012109/ Jan 24 21:56:39 http://www.informationweek.com/byte/samsung-adds-multiwindow-mojo-to-android/240146885 Jan 24 21:56:54 "To accomplish this, Samsung added a multiwindow app framework to its proprietary Android "TouchWiz" user interface, and tweaked a range of Android apps to support the framework." … Jan 24 21:57:07 so , do you have to do something special to use this functionality? Jan 24 21:57:13 i guess, if they changed the stock apps Jan 24 22:17:26 g00s: If I remember well there is on xda a patch to allow every apps to be used inside the multiwindow app. So I think you don't have to do a thing to your app, you "just" need to tweak touchwizz Jan 24 22:20:26 i thought the Note 1 had some of this ability, but never looked into it Jan 24 22:21:58 but the geek.com article is interesting in many ways; i agree with dianne's position; but i find the politics between google / CM rather fascinating Jan 24 22:22:46 especially about the part of removing Play access to CM because they don't pass CTS, and they can never pass CTS because i guess the test includes both HW & SW, and no phone comes with CM Jan 24 22:23:41 hell, i would be perfectly fine with play only accepting reviews only from official roms ;) Jan 24 22:26:37 [sorry for a repeat question; more people awake I hope] is there a way to align the baseline of the text in a TextView at a certain height within the View? (I basically want to align text to an underlying grid. Any alternate ways to accomplish this?) Jan 24 22:27:21 kbs: the grid is external to the TextView ? Jan 24 22:27:46 g00s: right. I have a grid that's global, and there are several widgets inside. Jan 24 22:28:22 I think GridLayout allows some unique positing int this way Jan 24 22:28:37 http://developer.android.com/reference/android/widget/GridLayout.html#BASELINE Jan 24 22:32:13 thanks for the pointer... api 14, hm. but won't this also affect the height of a given row? Jan 24 22:32:30 omg i am kicking myself for not switching to intellij sooner Jan 24 22:32:32 kbs: its also in the compat lib Jan 24 22:32:34 ie, row1 -- all textviews. row2, textviews + imageview. will the height of row2 > row1? Jan 24 22:32:35 what was i _THINKING_ using eclipse!? Jan 24 22:33:17 jasta: so i should rm -fr ~/eclipse ? Jan 24 22:34:43 g00s: the thing is -- let's say I have a row with a single textview. I don't see a way with gridlayout to align its baseline to an external grid line Jan 24 22:35:25 it seems to be specific to aliginng multiple views on the same row (and I don't also see how it can do that without also altering the row height) Jan 24 22:37:39 ok ; i see. well, design guidelines are 8dp gaps between elements Jan 24 22:37:55 g00s: it's like so much better it just makes me feel like such a putz for using eclipse at all Jan 24 22:40:10 mabye I can crystallize the problem as: I want to write a line of text whose baseline is 96dp from the top of the screen. Would love to hear (simple ;-) solutions for this. Since I know the font in use, I can use padding values to nudge the text into the right position; but if there are better ways please enlighten me... Jan 24 22:51:32 can I have several ListViews in one Activity? Jan 24 22:51:43 kbs: GridLayout is also available in compatibility library v7 Jan 24 22:51:45 stacked vertically? Jan 24 22:51:50 sure … does it make sense ? dunno Jan 24 22:52:27 hey guys, how would one go about resizing a View in an Adapter in the getView() method? Jan 24 22:52:33 jasta: you only just figured out? :p Jan 24 22:52:37 I want to set the height based on a condition Jan 24 22:53:43 i use eclipse only for the ADT, the newest one seems decent Jan 24 22:54:08 but … the ADT has a long history of … bizarre behavior ;) Jan 24 22:55:10 is the intellij android plugin open source? i was thinking about submitting some stuff to ADT Jan 24 22:56:18 SimonVT: i know, i feel like such a fool. Jan 24 22:56:26 g00s: i don't know, maybe? Jan 24 22:56:47 canadiancow: i think you and i are the only ones using eclipse still :P Jan 24 22:57:03 JulienDev: right; but gridlayout doesn't seem to be the right solution :-) Jan 24 22:57:03 yup Jan 24 22:57:17 ADT isn't really a reason to stick with eclipse Jan 24 22:57:32 kbs: Yes, it was just for information ;) Jan 24 22:57:41 only reason to stay with eclipse is its gui builder imo Jan 24 22:57:56 JulienDev: gotcha, thanks for the tip. Jan 24 22:58:02 with that said, I've dropped eclipse Jan 24 22:58:04 IntelliJ has just as good integration. You stick with eclipse because you like eclipse, not because of adt Jan 24 22:58:30 Can anyone point me on documentation to understand and use the binder RPC feature? I'd like to use the feature to bind a remote service and call functions on it. I found some tutorials and example code but don't feel to really understand it yet Jan 24 22:59:06 pleed I've just finished a service like that Jan 24 22:59:13 Gui builder, blah.. IntelliJ has that as well, only just figured out yesterday how to disable it ;d Jan 24 22:59:15 just using a Messenger Jan 24 22:59:18 i have both on my box; playing with intellij here and there Jan 24 22:59:21 StingRay_: what documentation did you use? Jan 24 22:59:59 trial and error, cause only ways I could see were AIDL stuff or 1 way intent Jan 24 23:00:26 but binder with messenger is quite ok to understand Jan 24 23:00:51 StingRay_: I just need it for a POC so I'd rather not try and error for several days Jan 24 23:02:01 well I choose the Bind/Messenger way for easy 2 way stuff without having to use AIDL Jan 24 23:02:10 depends on what you really want to do Jan 24 23:02:43 I'm not a programmer so I have to choose easy/simple :) Jan 24 23:02:46 StingRay_: All I want is the capability to call a function synchronously being able to put parameters into the function and get a result value Jan 24 23:02:49 StingRay_: How do you deal with configuration changed like screen rotation? Jan 24 23:02:51 StingRay_: in process ? Jan 24 23:03:19 errr what the hell just prompted all the questions Jan 24 23:03:55 Looks like 99% of the people are using simple intents for android IPC Jan 24 23:04:27 JulienDev what do you mean ? in relation to my service ? Jan 24 23:05:24 JulienDev it unbinds and binds again Jan 24 23:05:28 How do you receive message from your messenger if the screen has been rotated so your handler doesn't exist anymore Jan 24 23:05:30 if thats what you were asking Jan 24 23:05:49 my service tracks id's of requests Jan 24 23:05:50 you use a simple Service? Jan 24 23:05:56 and destinations Jan 24 23:06:01 not an IntentService? Jan 24 23:06:01 caches and holds Jan 24 23:06:04 no Jan 24 23:06:08 ohnoez! somebody took my app idea and made an app that is only one third of the price! Jan 24 23:06:09 not an intent serivce Jan 24 23:06:38 Ge0rG: did you already build it ? Jan 24 23:06:47 hummm ok Jan 24 23:07:33 the Messenger object can change but the message tied to it had a uuid and a calling id Jan 24 23:07:51 so it knows that onbind, this activity wanted xxxx data Jan 24 23:08:03 cause the act has the same caller id Jan 24 23:08:12 well it seems to work neways Jan 24 23:08:21 like I said, not really a programmer :) Jan 24 23:08:26 g00s: https://play.google.com/store/apps/details?id=com.pt.divert vs https://play.google.com/store/apps/details?id=de.duenndns.forwardedcall Jan 24 23:08:30 I see but does it possible with an IntentService? Jan 24 23:08:40 not sure Jan 24 23:08:55 I always wanted a 2 way connection from 1 service to many acts Jan 24 23:09:07 without haveing to handle thread/task management Jan 24 23:09:28 so thats the Messenger/Bind method from what I have learned Jan 24 23:09:35 could be wrong though Jan 24 23:10:08 ask me 3D Graphics questions cause those I CAN/WILL be correct with :) dev questions not so much Jan 24 23:10:28 Has anybody setup android desktop shortcuts to run shell scripts ? Jan 24 23:11:34 StingRay_: ok thanks :) Jan 24 23:13:14 Ge0rG: hmm, maybe you could compete on UX. if for example, a primary use case is forwarded calls from a business, could you think of context-specific behavior your competitor doesn't have ? Jan 24 23:13:46 this is schnazzy, when the UI tries to anticipate the needs of the user Jan 24 23:14:57 g00s: the crazy part is getting the right snippets from the logs when a diverted call comes in Jan 24 23:15:21 oh, so there is no api and you have to scrape the logs :| Jan 24 23:15:24 gross Jan 24 23:15:44 g00s: gross++, since since 4.1 you can't read radio logs any more without root Jan 24 23:15:55 Quick question. Is there a way to have a service that can detect joystick motion events (e.g. onGenericMotionEvent)? Jan 24 23:15:57 there is an internal api... which is not better Jan 24 23:26:00 How is it possible that multiple layouts are pushed off screen when their weights are set? Jan 24 23:28:03 jdawes why? could use negative padding I guess, on the parent, but not sure thats a good idea Jan 24 23:28:58 Stingray That's a whole other question really, I may not even be laying out the screen properly. Jan 24 23:29:43 StingRay_ I've got 12 lines of text (which will act as buttons) to display, I want them to take up a certain amount of screen space each, basically evenly. All of their weights are set to 1 Jan 24 23:30:09 StingRay_ but for some reason the last couple of lines aren't appearing in the GUI editor or when run on a device. Jan 24 23:31:12 would you not put them in a scroll view ? Jan 24 23:31:35 I just want them to be on screen, no scrolling. Jan 24 23:31:45 Normally, yes. Jan 24 23:32:09 is the screen maxed out ? Jan 24 23:32:26 It's a fullscreen activity with no title bar if that's what you are asking. Jan 24 23:32:30 as in wrap content prevents them from being small enough ? Jan 24 23:39:23 StingRay_ Just realized that both my height and width values were set on each layout, therefore negating the weight. I think this should fix it. Jan 24 23:56:42 I have a viewpager containing a framelayout containing a progressbar and scrollview, the scrollview contains a full-screen image and a button. The button never seems to show up-- anyone with a good eye know why? http://pastie.org/private/dmfol452hwhgon2yf3desa Jan 25 00:00:11 is it possible to make a custom adapter for a listview with data type ArrayList>> ? Or are only simple data types allowed like ArrayList? Jan 25 00:00:25 anything you want Jan 25 00:01:29 StingRay_: sure? i think an array is needed because every line in the array gives a line in the list Jan 25 00:01:58 well i think thats more of a ref Jan 25 00:02:03 from getCount Jan 25 00:02:17 of which you can reaturn myPenis.size() Jan 25 00:02:21 if you want Jan 25 00:02:26 :) Jan 25 00:02:31 then getView counts to that Jan 25 00:03:54 ok, i didnt overwrite getCount, but getCount of ArrayList>> should not fail... Jan 25 00:05:13 if i want a linear layout bigger than the screen, its right to have a linearayout having wrap_content and be enclosed in scrollview with fill_parent, right? Jan 25 00:11:47 StingRay_: now, it works, i have overwriten th functions get etc Jan 25 00:11:55 :) Jan 25 00:12:15 StingRay_: but would it also be possible to have an adapter with type Vector>>? Jan 25 00:12:45 never wanted to but I dont see why not Jan 25 00:13:50 i will test it Jan 25 00:13:55 mhh, it works Jan 25 00:14:06 cool Jan 25 00:15:01 finally, one example where data exchange between an activity and a class is not a pain like exchanging data between two activities via intent Jan 25 00:15:45 why cant i exchange my current data formats like this? why should it be converted to string? Jan 25 00:16:15 imho, this is a big bullshit since i didnt completely misunderstood something Jan 25 00:16:22 I've been using Jackson to serialize objects to json strings before slapping it onto the intent and deserializing it on the other side. Jan 25 00:16:22 dont get you Jan 25 00:16:45 Typesafe, maintenance free, been doing it for years. Jan 25 00:18:40 TheTrash: i will look at jackson, but why isnt there a native way to do it? how is ment to be used? Jan 25 00:19:08 Parcelable, but it's a complete pain. Jan 25 00:19:23 StingRay_: i dont like this "convert to string, send it via intent, convert it back"-method Jan 25 00:19:38 cliffer send any data Jan 25 00:19:45 as anything Jan 25 00:20:10 yes, i didnt do it yet, but i read about parcelating and found out, that im doing it likes this but without class for it Jan 25 00:20:29 ^ TheTrash parcelating Jan 25 00:21:00 StingRay_: so how do i exchange a Vector>> between two activities? Jan 25 00:21:35 does create a holder for it Jan 25 00:21:43 and cast it Jan 25 00:22:07 does = just Jan 25 00:22:17 I'm drinking funny tea that my g/f gave me Jan 25 00:22:22 sure it's making me nuts Jan 25 00:23:01 If I never return to IRC, the girlfriend did it with tea, in the kitchen, using the kettle ! Jan 25 00:23:03 StingRay_: so i will ask you again tomorrow with you having the tea? Jan 25 00:23:17 with=without Jan 25 00:23:55 cliffer well should you not consider your own data object for that neways ? Jan 25 00:24:12 and implement serializable or parcelable Jan 25 00:24:33 then just putExtra("sdsds", myboj); Jan 25 00:24:34 StingRay_: what do you mean with this? convert this into, separated with whatever and convert it back? Jan 25 00:24:46 no Jan 25 00:25:06 ya, i wanted to avoid the parcelization, since it has three levels... Vector>> Jan 25 00:25:28 Parcel a Vector>>? Good luck with that :D Jan 25 00:25:50 yeah but..... would it not just go in as is as a list<> Jan 25 00:25:51 ? Jan 25 00:26:16 putArrayStringExtra? supports only one level Jan 25 00:29:11 I will emphasize once more... if you make a class e.g. Holder with a field Vector>> myVector, with Jackson it's as simple as intent.putExtra("key", new ObjectMapper().writeValueAsString(holderInstance)) and on the other side: Holder holder = new ObjectMapper().readValue(intent.getString("key"), Holder.class));. Jan 25 00:29:40 TheTrash StingRay_ so the best way to deal with a Vector>> is to share it globally via application? Jan 25 00:30:23 It's a bit harder without the holder class because you'll have to construct parametric types (because of type erasure) and that will be quite a line with so many levels of parametrization. Jan 25 00:30:31 (but can be done) Jan 25 00:31:19 ya i know it can be done... but the best way... Jan 25 00:31:28 I dislike using application, because it introduces state in the application object. Jan 25 00:31:33 TheTrash: according to you its jackson :) Jan 25 00:31:38 Yes Jan 25 00:31:50 introduces state in the application object? Jan 25 00:32:55 Yes, it'll contain variables that stick around or have to be cleaned up manually, and sooner or later your activity is going to have an outdated version of the variable. Jan 25 00:32:58 It's just iffy. Jan 25 00:34:19 I still think a list>> would work no ? Jan 25 00:35:29 work to exchange via intent? Jan 25 00:35:35 ya Jan 25 00:35:44 without having to do anything but cast it Jan 25 00:35:53 cast it to? Jan 25 00:36:06 (list>>) Jan 25 00:36:21 How is List any different from Vector in that regard? Jan 25 00:36:41 implements serial Jan 25 00:36:52 So does Vector? Jan 25 00:37:04 oh then why wont simply casting it work??? Jan 25 00:37:20 It might Jan 25 00:37:35 If intent.putExtra() swallows it, I don't see why it won't work. Jan 25 00:37:48 mhh, i will test it Jan 25 00:38:20 well i think it will just work then :) Jan 25 00:58:00 cliffer ? Jan 25 01:24:35 StingRay_: still tsting :) Jan 25 01:29:57 dam if my current open project wasnt broken to hell i would test it Jan 25 01:30:04 should only take about 20 seconds Jan 25 01:30:06 :) Jan 25 01:30:49 mhh, it is not broken :) Jan 25 01:31:26 and furthermore, i'm a beginner, so if it doesnt work, it is perhaps my fault Jan 25 01:34:28 but it does not seem to work Jan 25 01:37:27 StingRay_: http://pastebin.com/fReavU9S Jan 25 01:40:47 did you init the vector ? Jan 25 01:41:02 or it will be just null right ? Jan 25 01:41:06 yes, contect is atually displayed Jan 25 01:41:16 content Jan 25 01:41:21 actually Jan 25 01:42:34 so it's != null b4 putting it in ? Jan 25 01:43:12 i double check Jan 25 01:43:16 indeed Jan 25 01:43:17 :) Jan 25 01:46:54 hmm Jan 25 01:46:56 yes, its filled Jan 25 01:48:00 try just get rather than getPa* Jan 25 01:48:50 but putSerializable when putting it in Jan 25 01:50:51 it crashes with java.util.ArrayList cannot be cast to java.util.Vector Jan 25 01:51:02 seems i should check the input Jan 25 02:00:33 Excuse me all Jan 25 02:07:34 i used tab widget, and i want to change the color when the user switch to another tab Jan 25 02:11:18 i could run my application but i can not see stop button how can i stop it Jan 25 02:13:18 can someone help me Jan 25 02:14:20 yes Jan 25 02:15:16 no Jan 25 02:15:22 here is my code: http://pastebin.com/DSWDuhxZ Jan 25 02:15:23 how can i stop my hello world i am ruuning adt Jan 25 02:15:34 android developer tool Jan 25 02:15:44 i can not see stop button on my ide Jan 25 02:16:16 you only stop an app when you are in a debugging session and its paused :/ Jan 25 02:16:26 ok so any one use little fluffy location lib? Jan 25 02:16:29 the code to handle the change tab in line 107 - 114 Jan 25 02:16:38 you might be able to kill it from ddms or something, i guess Jan 25 02:16:52 ron_frown: fuck fluffy shit Jan 25 02:17:00 anyone can help..? Jan 25 02:17:01 or just stop it on the phone Jan 25 02:17:10 ron_frown: i've looked at it, you could do worse Jan 25 02:17:16 where is the pause button Jan 25 02:17:18 haha Jan 25 02:17:27 is there something that does what little fluffy does, and does it better? Jan 25 02:17:49 nothing that I know of that's open source Jan 25 02:18:09 little fluffy apparently has some issues Jan 25 02:18:27 I've seen it take my battery life from 20hr to 8 Jan 25 02:18:36 and I literally do nothing with location fixes Jan 25 02:18:46 those radios are super batery intense Jan 25 02:19:02 little fluffy is supposed to be more or less passive location updates Jan 25 02:19:10 eg like how gogole now works Jan 25 02:19:24 infact using already fetched location if it can Jan 25 02:19:52 anyone can help? Jan 25 02:20:58 i'd love a limited-access android channel Jan 25 02:21:18 ? Jan 25 02:21:20 i run hello world in adt how can i stop it , just appear one windows on my phone but i can not sopt it Jan 25 02:21:22 funkbox: we could put ron_frown in there all by himself :) Jan 25 02:21:36 ron_frown: channel you can get into only by invite Jan 25 02:21:37 funkbox: it's called Google Jan 25 02:21:48 and I mean the search engine, not the company Jan 25 02:21:57 JakeWharton: i don't get it Jan 25 02:22:00 you know... I've tried to start android porting channels Jan 25 02:22:05 you get good enough to figure shit out yourself Jan 25 02:22:16 cause the information is just not out there Jan 25 02:22:21 android-porting lists Jan 25 02:22:29 I answer a good deal of the questions lol Jan 25 02:22:35 JakeWharton: fair point Jan 25 02:23:03 this place is useful for about 15% of the questions you have Jan 25 02:24:08 what I'd say is, I've got no problem helping people who help themselves Jan 25 02:24:22 if somone has a quick question and is willing to listen to what people give them for answer Jan 25 02:24:26 yes, i totally agree Jan 25 02:24:42 and try to do bare minimum as far as attempting to find the answer themselves, Jan 25 02:24:42 if you can show you've done a bit of work to understand the problem then you're worth a few minutes of time to explain something Jan 25 02:25:09 and honestly improving your google-fu is probably the best thing you can do for yourself Jan 25 02:26:42 nevermind I had little fluffy configured completely wrong =) Jan 25 02:27:07 60*1000 for wake lock alarm, and 60*1000*2 for minumum age location Jan 25 02:27:27 ron_frown: remember the dark ages when samsung sgs had a busted GPS ? Jan 25 02:27:34 sucks when popular phones are broken :) Jan 25 02:27:43 ye Jan 25 02:27:56 maybe thats the sort of shit I'd be fixing if I took the job at samsung Jan 25 02:28:06 ron_frown: don't be silly Jan 25 02:28:10 someone can offer me one video how to work android developer tool run and stop apps Jan 25 02:28:13 lov said their code was like sausage Jan 25 02:28:14 ron_frown: it takes a lot of people to fuck android up that badly Jan 25 02:28:26 so Jan 25 02:28:32 doesnt mean it doesnt take 1 person to fix it Jan 25 02:28:49 well you could fix it, then bust 10 other things :) Jan 25 02:28:52 I ripped apart a broke wl1271 wireless chip driver yesterday Jan 25 02:28:55 and fixed it Jan 25 02:29:08 they need an executive who'll decide things like "hey, all this gimmicky stuff, we don't need it. how about we fix the messaging app?" Jan 25 02:29:08 firmware loader ws jacked Jan 25 02:29:55 I worked with htc engineers for a bit Jan 25 02:30:00 and it was def the same problem there Jan 25 02:30:05 ditto, and yes. Jan 25 02:30:21 spaghetti code, and shiny sparkly thins were def higher priority Jan 25 02:30:26 phone manufacturers make awful software engineers, as it turns out. Jan 25 02:30:30 too bad they dont know that yet Jan 25 02:30:59 jasta: they're aware. they need to differentiate their products Jan 25 02:31:14 jasta - whats worse is they dont understand the android build system, so they do one off builds for x hardware Jan 25 02:31:22 then you go to upgrade the os to next version Jan 25 02:31:24 hehe yeah Jan 25 02:31:30 and ooop time to start from scratch all over again Jan 25 02:31:31 their engineers are really, relaly bad. Jan 25 02:31:43 just frankly stupid people Jan 25 02:32:04 JakeWharton did you go to edu? Jan 25 02:32:04 and i know this first hand. i've met lots of them :) Jan 25 02:32:08 same Jan 25 02:32:22 bbl, gotta run, bus is almost in san francisco Jan 25 02:32:26 haha Jan 25 02:32:33 oh, and parting thoughts, i hate the bay area. Jan 25 02:32:37 haha Jan 25 02:32:37 same Jan 25 02:32:39 same same Jan 25 02:32:40 jasta: move ? Jan 25 02:32:41 jasta: come to NYC! Jan 25 02:32:46 g00s you go to edu? Jan 25 02:32:46 g00s: Facebook "bootcamp" Jan 25 02:32:51 ron_frown: yes Jan 25 02:32:53 ron_frown: yeah Jan 25 02:32:56 i'll be back hom sunday, thank god Jan 25 02:32:56 fuck you both Jan 25 02:32:57 haha Jan 25 02:33:02 waste of 5 years of my life Jan 25 02:33:10 home* Jan 25 02:33:11 JakeWharton: really? which uni? Jan 25 02:33:12 Facebook bootcamp? wtf is that Jan 25 02:33:17 Anyone knows fix for zsema1 rom / omega v38, when making a call the sound is distorded so that I cant make calls. tryed flashed rom more then once and different modem + different kernels.. no affect... Jan 25 02:33:25 funkbox: IUP Jan 25 02:33:27 g00s: all new FB devs go through bootcamp where they're taught stuff Jan 25 02:33:32 tiny school, useless Jan 25 02:33:38 ah Jan 25 02:33:39 learned more hacking on crap nights and weekends than any class Jan 25 02:33:50 i taught a kid to program Jan 25 02:33:56 android and c# Jan 25 02:33:58 4 mo Jan 25 02:34:07 ron_frown: now he's better than you , right ? Jan 25 02:34:12 :D Jan 25 02:34:21 and he'll school my coworker who is educated and experienced Jan 25 02:34:22 JakeWharton: that's usually the case. Jan 25 02:36:02 for complicated shit I Jan 25 02:36:05 go to the new guy Jan 25 02:36:06 haha Jan 25 02:37:57 why is it telling me i don't have a launcher activity? http://pastie.org/private/k637x08crixcwlgpydsnag Jan 25 02:38:07 androidmanifest.xml Jan 25 02:38:12 Guys, my problem is, i set the fist tab bg color with black color Jan 25 02:39:51 when i switch to next tab, the previous tab should be return to default color Jan 25 02:40:01 ron_frown: that is what i just pasted... i have defined my laucher activity in the manifest Jan 25 02:40:02 and the next tab set to black color Jan 25 02:40:15 what's the best way to detect that I am running on Android? I previously was doing Class.forName("android.os.Build") and monitoring whether or not an exception was thrown but for tests the android jar is on my classpath so that doesn't really work. Jan 25 02:40:46 str8uplinux: you need action.MAIN along with category.LAUNCHER, not action.SPLASH (not even sure if action.SPLASH is a real thing?) Jan 25 02:40:49 but it conversely, the first tab and next tab is set to balck color Jan 25 02:40:56 *black Jan 25 02:41:06 yep Jan 25 02:41:09 main/launcher Jan 25 02:41:38 JakeWharton: do you mean something like this? SystemProperties.get("ro.kernel.qemu").equals("1") Jan 25 02:42:03 jake java vs android Jan 25 02:42:07 or device vs emu Jan 25 02:42:14 jvm vs android Jan 25 02:42:37 g00s: that doesn't exit on my device Jan 25 02:42:47 exist* Jan 25 02:43:00 whaa Jan 25 02:45:05 JakeWharton check if build prop exists and look at contents ? Jan 25 02:45:59 I am assuming his library is java Jan 25 02:46:25 and he wants to easily be able to tell if its running on bb, or android or some other java platform Jan 25 02:46:44 kevinb: Thanks for the clearification. I must have been mislead somewhere becaue i always thougth you used the name of the class such as ...action.SPLASH (where SPLASH is the name of the class)? That is how i've always done it when defining other activities within the manifest Jan 25 02:46:59 name is name Jan 25 02:47:04 ron_frown: correct Jan 25 02:47:07 mostly just android vs. everything else Jan 25 02:47:16 and there is no SystemProperties? Jan 25 02:47:20 I thought that was android wide thing Jan 25 02:47:29 er jvm wide thing including android Jan 25 02:47:43 yeah but what property is the best to check? Jan 25 02:47:53 java.runtime.name? Jan 25 02:48:29 i'm mostly looking to identify that I'm on Android rather than identifying that I'm on the JVM Jan 25 02:49:21 stupid test classpath! Jan 25 02:49:25 ? Jan 25 02:50:16 might be a stupid idea but why not just define something in the unit tests ? Jan 25 02:52:00 yeah that might be a good idea. the detection happens in a static block in this class which makes it difficult. oh well, i'll figure it out Jan 25 02:52:43 GCM question, although possibly valid for generic network-driven things: If I have a button to enable/disable GCM, what's a good way to go about disabling the button while a request is in progress and we're waiting for a GCM message back from the 3rd party app server? Jan 25 02:52:44 just in test initialize have it set a magic value Jan 25 02:53:15 (clarification: disabling is easy, knowing when to re-enable is more interesting) Jan 25 02:55:32 JakeWharton you know what you need to build next... object persistence framework thats not an orm Jan 25 02:55:33 haha Jan 25 02:55:50 GOSN + File Jan 25 02:55:53 GSON* Jan 25 02:55:54 :) Jan 25 02:56:01 cramming shit into rdbms seems Jan 25 02:56:02 oh god so much GC Jan 25 02:56:03 ballstastic Jan 25 02:56:09 ron_frown: i do it, it works Jan 25 02:56:17 you do what Jan 25 02:56:29 this windows 8 app i wrote does that gson + file stuff and it's pretty not great Jan 25 02:56:32 ron_frown: orm Jan 25 02:56:46 I have orms Jan 25 02:56:51 I really really dont like Jan 25 02:56:57 we use GSON + file for our very limited persistence. we have no relational needs and it works amazingly Jan 25 02:56:57 well orm + rdbms Jan 25 02:57:18 yeah my issue was that we do have lots of relational stuff Jan 25 02:57:19 well I was gonna say it'd be nice to query but probably only having a few items persisting Jan 25 02:57:22 ~20 tops Jan 25 02:57:26 oh don't bother Jan 25 02:57:48 20 tops but lots of little bits of info tied to it Jan 25 02:57:59 and trying to get it to map to db columns is just not great **** ENDING LOGGING AT Fri Jan 25 02:59:58 2013