**** BEGIN LOGGING AT Tue Apr 16 02:59:58 2013 Apr 16 03:33:41 I need to make a Wizard style interface. I was thinking Preferences, but I don't need to store them as preferences, I just need to act on data entered. Is android.preference a good fit? Or is there another similar style package I can use? Apr 16 03:53:44 I'm looking for a freelance that have worked before with smsManager to make a one weekend app Apr 16 03:54:01 go use rentacoder Apr 16 03:54:06 see topic Apr 16 03:55:44 pfn, thank you. I would not to bug you :) Apr 16 03:57:09 BTW, anyone have dealt before with smsManager? I'm getting random "General Failures". I mean random because there aren't any constant. Sometimes works, sometimes throw a "General failure" Apr 16 04:05:22 hello all Apr 16 04:05:42 I'm missing latest comments on the Play Store, when is Google fixing this crap -- so annoying :\ Apr 16 04:12:14 "one weekend app" <-- :D Apr 16 04:12:24 ? Apr 16 04:12:42 QubeZ: i've noticed that the top paid list hasn't been updated since the new play store was released Apr 16 04:13:35 (the disney games that were accidentally free for a while have held their position perfectly, which seems rather unlikely) Apr 16 04:15:12 g00s: =) Apr 16 04:15:24 hey QubeZ Apr 16 04:15:30 yo Apr 16 04:16:27 got a couple 5-star ratings in the last few days and eager to read them but oh now... Google wont show them to me. Apr 16 04:16:33 They do not exist, phantom :\ Apr 16 04:16:47 are you sure they weren't ratings left without comments? Apr 16 04:19:39 g00s, I'm weekend - week :) Apr 16 04:20:48 On another note, just got a Raspberry Pi and playing with that. Apr 16 04:20:53 Now my Leap Motion is collecting dust Apr 16 04:21:17 Raspberry Pi sounds like fun; a i have a few projects i would like to do Apr 16 04:21:21 god. this one guy imitated another guy's coding style and it's making me tear my hair out it's so ugly... Apr 16 04:21:22 dilettante :P Apr 16 04:22:18 still waiting for my Ouya, next little toy to play with Apr 16 04:26:49 i'm looking forward to Glass though i'm hoping for a native API not just the mirror stuff Apr 16 04:28:34 looking... Glass... mirror Apr 16 04:31:25 kevinb: you're going to buy one? Apr 16 04:31:36 yeah i signed up at IO last year Apr 16 04:31:44 nice Apr 16 04:32:01 I'm curious about its applications, should be a fun toy Apr 16 04:32:08 Wonder when it goes on sale for mass purchase Apr 16 04:32:34 originally they had said before the end of this year, but with the dev editions just starting to go out i kind of doubt that Apr 16 04:33:18 I'm sure it's not a coincidence that the dev editions are going to end up going out a couple of months before I/O Apr 16 04:33:47 er... couple of *weeks* Apr 16 04:33:56 yeah, though it sounds like you have to pick them up in person, in either NYC, San Fran, or somewhere else Apr 16 04:34:07 I wanted to go to IO this year but other things came up, hope to go next year. Apr 16 04:34:09 so potentially pick up while in town for IO as well Apr 16 04:34:10 I've never been to San Fran Apr 16 04:34:23 even though I/O is earlier this year, it would have been a bit embarrassing for them to have taken orders last year and failed to deliver them by this year Apr 16 04:34:33 NY, SF or LA, AFAIK Apr 16 04:35:00 Leeds: so whenever google announces anything at I/O, we know the arrival time will be 1-2 weeks before the next I/O :) Apr 16 04:35:08 g00s: if at all ;) Apr 16 04:35:19 ha, i was just going to add that :/ Apr 16 04:37:30 while I was happy with last years IO and its announcements Apr 16 04:37:38 I'm just kinda meh this year Apr 16 04:38:03 apart from Android K (KLP, 5.0, etc) what are we expecting to see? Apr 16 04:38:08 oh, and lots of Glass Apr 16 04:38:28 i think google TC Apr 16 04:38:30 *TV Apr 16 04:38:31 while glass is cool Apr 16 04:38:32 meh Apr 16 04:38:50 I dont think android has gone stale or anything Apr 16 04:39:10 just not as interesting to me Apr 16 04:39:23 to quote from Eric Schmidt, in December 2011: "By the summer of 2012, the majority of the televisions you see in stores will have Google TV embedded." Apr 16 04:39:41 haha Apr 16 04:39:47 heres part of the problem with that Apr 16 04:40:01 develop only on linux, it doesnt appear to have an AOSP branch Apr 16 04:40:03 I mean wtf Apr 16 04:40:09 gogole tv as a platform is a second class citizen Apr 16 04:40:48 they didn't have any SDK at all for a long time Apr 16 04:40:48 a Apr 16 04:40:59 and the out of the box experience is weak Apr 16 04:41:13 if they were able to just merge that shit together Apr 16 04:41:24 and let you use eclipse+emulator etc Apr 16 04:41:28 much much better reception Apr 16 04:42:08 isn't the roadblock mainly content deals? Apr 16 04:44:14 which may take the form of apps, '10 foot interfaces', or just not blocking websites? Apr 16 04:45:44 there's a native netflix app but it's poorly done, it feels like a port from some other system. it doesn't support the cursor and it doesn't seem to save any preferences aside from your login information Apr 16 04:45:46 maybe they will announce a watch; seems to be fashionable these days Apr 16 04:45:54 and amazon streaming works, but through chrome and flash which is awkward/annoying Apr 16 04:46:20 i'm on i/o site now, i still cand find a list of the technical sessions Apr 16 04:46:37 they want to keep us in suspense :) Apr 16 04:46:45 of course Apr 16 04:47:39 if they can sell out in minutes without posting any idea of content, at all - for the freebies, of course - why mess around posting the schedule before it's necessary for attendees? Apr 16 04:47:50 i saw the HTC One today (wow, thats a nice phone) Apr 16 04:48:09 yeah, I'm going to get me one of them Apr 16 04:48:22 I'm still tryign to figure out if its ever coming to Verizon Apr 16 04:48:28 android needs a nexus phone as nice as the One :) Apr 16 04:48:34 last I heard, no then some shit went down on the forums hehe Apr 16 04:48:44 yeah, a Nexus One (see what I did there?) would be outstanding Apr 16 04:51:13 I still haven't seen one actually working - when I was in the UK I went hunting, but the shops only had dummies, and they only started taking pre-orders here on Saturday, along with dummies in the shops Apr 16 04:51:25 g00s I was looking at bb10's offerings Apr 16 04:51:38 actually pretty surprised how much they embraced developers Apr 16 04:54:01 ron_frown: its pretty modern, yeah. i think its a good example of the generation of mobile device, where everything has converged onto a single thing Apr 16 04:54:19 i guess Ubuntu Phone would be like that too Apr 16 04:54:41 well I mean if you wnat to build apps with c++ they have a pertty extensive offering there, if you want to do html+js, same, adobe air, android etc Apr 16 04:55:01 c++ appears to be glorified qt Apr 16 04:55:05 but I got no complaints there Apr 16 04:55:28 I cant wait until qt 5.1 or 5.2 or wahtever comes out and we can see the nature of c++ apps in android Apr 16 04:55:48 I've been pretty impressed with bb10 - and blackberry as a company, actually - when it comes to being developer-friendly Apr 16 04:56:55 not even joking when I say I've made like 500 bucks off giving them feedback on what I'm wanting as a developer Apr 16 04:57:27 leeds, werent you a google guy? Apr 16 04:57:43 you can be both :) Apr 16 04:57:50 or neither Apr 16 04:57:53 I mean work for google Apr 16 04:58:30 nope, I've never been a google guy Apr 16 04:58:35 oh ok Apr 16 05:09:01 The graphic logic is put inside the onDraw method if I extend the android.view.View method. And I can call the invalidate() to make the view redraw. But how about if I extend the SurfaceView? Apr 16 05:13:23 Howdy folks Apr 16 05:34:43 hey guys. after completion of the app i just copy paste the app.apk located in project's /bin and give it to client right? Apr 16 05:42:28 hi... can I listen to SMS sent from a particular number? Apr 16 05:43:32 I know how to listen when SMS s received but I want to start my App only whn I get a msg from a particular number Apr 16 05:53:53 Rrjois: I think if you know how to listen for SMS, it's simple to look for a particular number Apr 16 05:53:58 check this out: http://developer.android.com/reference/android/telephony/SmsMessage.html#getOriginatingAddress() Apr 16 05:55:04 thanks. will check it out. Apr 16 06:07:52 hi people Apr 16 06:08:36 g00s, =] Apr 16 06:08:37 i have a library project in which I have a layout and I would like to include it within my main app, but somehow it always complains that it cannot find such layout Apr 16 06:08:51 makes sense Apr 16 06:08:58 hesperaux: all done with JCIP ? Apr 16 06:09:03 afaik, library projects dont support that crapola Apr 16 06:09:04 any idea how to fix this ? note: I have tried with and without defining the namespace of the lib project Apr 16 06:09:06 nah, but my app is working now :D Apr 16 06:09:20 thanks to bluetoothchat and JCIP (didn't read it all) Apr 16 06:09:21 i hope you learned something from it; or it helped Apr 16 06:09:31 but now i've got 10 analog channels updating on the UI :D Apr 16 06:09:32 cool Apr 16 06:09:47 and i've got a custom packet format for the data Apr 16 06:10:43 thanks for your help Apr 16 06:10:54 hesperaux: cool, np. hesperaux: are you saving it to disk yet? Apr 16 06:11:00 no =\ Apr 16 06:11:10 thats where things get tricky Apr 16 06:11:13 right now it's in a fifo which i clear after a configured amount of elements Apr 16 06:11:16 yeah... Apr 16 06:11:59 before i conquer that, i'm probably going to do some more on the embedded side Apr 16 06:12:10 right now it's sort of random sample data. I want to set up the ADC so it's real data Apr 16 06:12:33 sounds like a fun project Apr 16 06:12:41 sometimes ;P Apr 16 06:13:01 how often should I see GC_CONCURRENT messages on the logcat? I think i might be leaking data somewhere Apr 16 06:13:27 every time the UI updates, I see GC_CONCURRENT messages about freeing memory Apr 16 06:13:28 i dont remember; could differ with os versions Apr 16 06:13:48 freeing memory is one thing, maybe you are making too much garbage Apr 16 06:13:49 can someone explain pre and post matrix concats to me with regard to skia? Apr 16 06:13:49 one thing i'm not happy with...i have more than 80 views in my layout lol Apr 16 06:14:16 for example, maybe you have a Packet object for your special packets - if so, perhaps some sort of object pool is appropriate then Apr 16 06:14:22 i'm annoyed digging around the h/cpp files Apr 16 06:14:40 is it just the regular transformation matricies Apr 16 06:14:45 g00s, my Packets are going into a ConcurrentLinkedQueue Apr 16 06:14:45 or something else your asking about Apr 16 06:14:59 hesperaux: < 100 views is probably OK Apr 16 06:15:04 i'm just curious about the pre/post operations Apr 16 06:15:10 and how they actually work Apr 16 06:15:19 that I honestly dont know Apr 16 06:15:22 g00s, 50 of the 80 are the data table elements Apr 16 06:15:26 I messed with that stuff a bit Apr 16 06:15:45 i'm down in the SkMatrix.cpp file digging around but C++ just puts me to sleep Apr 16 06:15:46 and 10 more of them are buttons to turn the channels on and off (not operational yet) Apr 16 06:16:06 I think I might just toss a demo apk together with some sliders and play with it Apr 16 06:16:11 dont remember anything specific to pre/post Apr 16 06:16:48 but I know the concept is common Apr 16 06:16:55 http://en.wikipedia.org/wiki/Transformation_matrix Apr 16 06:16:59 iirc it was just that Apr 16 06:17:04 no as to what calls pre/post Apr 16 06:17:04 no idea Apr 16 06:17:35 yeah all the setXxx methods work like that Apr 16 06:17:57 but the pre/post are basically additional matrices that are multiplied before and after Apr 16 06:18:10 i think you can only safely do one pre/post operation Apr 16 06:18:16 and then as many setXxx as you want Apr 16 06:18:21 ahh Apr 16 06:18:51 I need to hook up Vogar to an intellij run target so i can run code on dalvik easily for things like this Apr 16 06:19:40 hrm i think it's like you currently have matrix, set to A, and if you do a postConcat with B, then the matrix is set to A X B, but preConcat is B X A Apr 16 06:20:47 kevinb: yeah, nice. so you can theoretically chain pre/post calls as long as you do them correctly Apr 16 06:21:01 and the scale/rotate/etc are basically wrappers for a transform on an identity matrix Apr 16 06:21:06 yeah Apr 16 06:21:24 I almost which I had a bit lower-level access to the underlying matrix Apr 16 06:21:36 I used to love matrix math Apr 16 06:22:18 i found matrix math to be a lot easier in school than the real world Apr 16 06:22:38 haha that's probably true Apr 16 06:34:11 : I'm trying to install AWS SDK in Eclipse but getting an error at the very end. What am I missing? 'Installing Software' Has encountered a problem. I'm on a mac Apr 16 07:09:20 how can I prevent dialog from closing, after user chose something from list? Apr 16 07:12:58 anyone ever notice odd behaviour with gradients using transparency ? like dark to fully transparent after a while makes the fully transparent affect the views underneath to be lighter ? Apr 16 07:13:24 restarting the app fixes said blending Apr 16 07:20:21 Hi all!, im developing android application, im using bluetooth to receive files. In some phones not receive the file, if i install bluetooth file transfer, i can receive files, Should I create a bluetooth server ? Apr 16 07:20:39 Is the view redraw a resource consumed operation? My view is a subclass of SurfaceView which use the canvas to draw multiple bitmaps. Apr 16 07:21:18 anyone familiar with tapjoy or flurry sdk's ? Apr 16 07:21:31 ByronZED: yes Apr 16 07:22:04 do you do appdev ? Apr 16 07:22:31 I do Apr 16 07:23:08 would you say tapjoy/flurry are good or there's better alternative ? Apr 16 07:24:41 i've only used analytics, not ads Apr 16 07:24:46 what are your rates for appdev ? Apr 16 07:25:06 i'm not for sale Apr 16 07:25:50 still, if you were, how much would you charge ? Apr 16 07:26:23 :D Apr 16 07:27:19 any devs that are for sale here ? Apr 16 07:27:46 ByronZED: you should read the chann topic! Apr 16 07:28:41 you mean the part about no adv. ? I wasn't Apr 16 07:28:50 no the part about no jobs :) Apr 16 07:29:36 just looking for some answers, feel free to dispense Apr 16 07:30:25 if you are looking for some answers you should just ask questions (ant not meta questions). I am sure here are several ppl willing to answer questions. Apr 16 07:30:48 ByronZED: you asking what some1 is worth, now unless you know almost everything about them, the answer whatever it is, is meaningless Apr 16 07:31:19 you always worth as much as you can convince someone you are worth ;) Apr 16 07:31:42 true Apr 16 07:31:54 so convince me lol Apr 16 07:31:57 I see jake and timroes as a gifty talkers, so yeah, quite a lot Apr 16 07:32:06 :) Apr 16 07:32:30 I want to appify and gamify my shopping site Apr 16 07:32:36 ByronZED: you may have better luck courting an artist turned dev Apr 16 07:32:40 * g00s runs Apr 16 07:32:42 ByronZED: this 'worthy' topic has been discussed here several times. And main conclusion for me was: it HIGHLY depends on where you are living :D Apr 16 07:32:48 i guess much more then how good you are Apr 16 07:33:06 geographics is trivial Apr 16 07:33:19 g00s: I not a real dev, and I really aint an artist "TURNED" dev Apr 16 07:33:23 can someone explain to me why my ViewPager is showing both of the 2 views at the SAME time.. even when I have both views set to fill_parent? Apr 16 07:33:29 I'm an artists playing as a dev!!! Apr 16 07:33:34 :) Apr 16 07:33:36 shouldn't it only show one view at a time... StingRay_ you around man Apr 16 07:33:45 aww yes.. the wonderful StingRay_ :D Apr 16 07:33:57 i have seen here ppl earning 8€/h or so, often latin america. thats something I wouldn't even make the effort to write a denial message to the request Apr 16 07:34:06 g00s sorry I didn't understand the reference Apr 16 07:34:22 StingRay_: i guess you should become a writer :) your first book "An Artist playing Dev" Apr 16 07:34:26 sounds like something I would buy :) Apr 16 07:34:35 any idea StingRay_ ?.. you been solving my silly problems with ease lately Apr 16 07:34:40 artists are the soul of humanity Apr 16 07:34:44 "Painting in Code" Apr 16 07:34:45 without them we'd have nothing Apr 16 07:35:37 xastey: sorry dont quite understand what you said Apr 16 07:35:38 so anyone has experience with appifying/gamifying an existing web ? Apr 16 07:36:01 what does gamifying an online store consist of? Apr 16 07:36:13 StingRay_ .. so I have a ViewPager.. I want to show one view per page, so I created my apapter set the count to 2 but when testing it shows both views at the same time Apr 16 07:36:17 achievements if you but enough :D Apr 16 07:36:46 erdos, many different things all focused on increasing user engagement Apr 16 07:36:55 sounds like a buzzword Apr 16 07:37:07 give me an example Apr 16 07:37:18 good morning! im developing an application, i need receive files via bluetooth, my phone have bluetooth opp profile, but other phones are not. if i install bluetooth file transfer , can receive files, any idea? Apr 16 07:37:18 "like" button Apr 16 07:37:21 xastey: sounds like your doing it wrong…but not from your desc Apr 16 07:37:26 from the result Apr 16 07:37:48 yeah but I can't figure out what I'm doing wrong Apr 16 07:37:48 badges, reward points, achievements etc Apr 16 07:37:54 ByronZED: you should take that to a designer/artst 1st, then a developer Apr 16 07:37:54 right Apr 16 07:38:06 StingRay_, I'm the artist Apr 16 07:38:24 then you should have concept tied down, user flow, interactions etc Apr 16 07:38:33 all you should be missing is implementation Apr 16 07:38:40 so are you looking for gamey ideas to add to your shop? or how to implement ideas you already have? Apr 16 07:38:58 StingRay_ http://pastebin.com/Lb6vdf54 current code Apr 16 07:39:12 implement existing ideas and mastermind on new ones Apr 16 07:39:33 it's not a shop, it's a shopping comparison portal Apr 16 07:40:11 it would help alot to work with someone who can tell me what is possible and feasible Apr 16 07:40:17 oh right Apr 16 07:40:32 well any good developer will be able to look at what you want and tell you if it's possible Apr 16 07:40:52 i don't think you'd particularly need experience gamifying something Apr 16 07:41:13 that's why I came here, to find a good developer Apr 16 07:41:25 any takers ? Apr 16 07:41:36 good developers work on their own projects Apr 16 07:41:39 heh what's your rate? Apr 16 07:41:41 so , probably not Apr 16 07:41:55 we can discuss deeper collaboration Apr 16 07:42:28 I would rather have someone who's looking at it from a partnership standpoint rather than a freelance job Apr 16 07:42:51 erdos, my rate ? Apr 16 07:42:55 $/hr Apr 16 07:43:00 ah the tipically: I can't pay you, but ofc if my idea works you might get some money from it :D Apr 16 07:43:16 did I say I can't pay ? Apr 16 07:43:41 the first thing I asked was for a rate =] Apr 16 07:43:48 i'm trying to get my device id to add to test devices for google admob to stop getting false impressions. i found on stack overflow that i need to use TelephonyManager to get the device id and to add it to testdevices on my ad. i did just that but i still get real ads! Apr 16 07:43:49 okay i give you one Apr 16 07:43:51 1000€/day Apr 16 07:44:10 in $ its $1307,50 a day Apr 16 07:44:12 erdos, sorry I don't follow.. my rate to pay ? Apr 16 07:44:25 $1307 for how many hours ? Apr 16 07:44:35 average working day (8 hours) Apr 16 07:44:51 so 163$/hr Apr 16 07:44:54 that's high-end dev ? Apr 16 07:45:00 i'm just trying to get an idea of what you're looking to spend Apr 16 07:45:13 this is way against the topic Apr 16 07:45:24 but afaik we calculate byu days and not by hours, but thats something the sales departement have to decide :) Apr 16 07:45:29 I am just gathering information, sorry if it violates any rules Apr 16 07:45:49 erdos, money isn't an object Apr 16 07:46:10 really? Apr 16 07:46:10 shit Apr 16 07:46:12 i'm in! Apr 16 07:46:19 timroes, "we" means a company you work for ? Apr 16 07:46:24 yeah Apr 16 07:46:30 got a website ? Apr 16 07:46:40 www.inovex.de Apr 16 07:46:46 oh germans Apr 16 07:46:55 wie gehts Apr 16 07:46:58 thats why i put it in €/hr :) Apr 16 07:47:23 any english speaking person I can contact ? Apr 16 07:47:28 sorry my german is rusty Apr 16 07:47:50 i am pretty sure everyone can speak english in this company :D but lemme search who you can contact in general Apr 16 07:48:35 http://www.inovex.de/leistungen/mobile-development/ <-- contact this guy in english if you wish information :) Apr 16 07:48:35 Dominik Helleberg is the guy I need ? Apr 16 07:48:40 yeah Apr 16 07:48:47 awesome thank you Apr 16 07:49:46 dat background pattern Apr 16 07:51:34 kakazza: i think the background pattern is the least problem at this page :D Apr 16 07:52:07 we're developing an app for sound field analysis. the test-persons are supplied with a smartphone which we wish to lock-in, e.g. put into some kind of kiosk-mode so that the person can only use our app and maybe a few selected others (camera to take a picture of a scene..) any suggestiona? Apr 16 07:53:24 freiform: use a custom launcher, that does this for you Apr 16 07:53:40 there are also several out there in the market, if you search for 'kiosk' Apr 16 07:56:19 timroes: i'll give it a shot, thanks Apr 16 08:10:39 is here any developer from Germany selling apps via google play? Apr 16 08:12:44 Ja, Mr. timroes is I think. Apr 16 08:13:58 thanks, kakazza Apr 16 08:14:01 not selling anything via my private account, so I guess I can't answer any tax question (what that seems to end up like :D) Apr 16 08:15:25 kinda :) I'm curious how the correct accounting should be done, per sell or once a month per payment by google Apr 16 08:16:05 EPG: i guess I read something about that in the XING android group some time Apr 16 08:18:03 but afaik the only reliable sales data you get is once per month, and since you can set the VAT for each country in your developer console, I guess you should wait for the monthly bill and use this for tax reasons Apr 16 08:18:38 and the VAT pre-fee is anyway just guessed so you can use the previous month income to guess the pre payment for next month Apr 16 08:19:44 yeah, fortunately I'll start without VAT anyway (small business rule) Apr 16 08:19:55 so about what taxes are you worrying? Apr 16 08:20:06 ah you just want to see what you have to book? Apr 16 08:20:15 as income Apr 16 08:21:05 for financial accounting (needed for company) i need an invoice for each booking Apr 16 08:21:26 question is, if you really want to book that for every single buy? Apr 16 08:21:30 i mean that would be insane Apr 16 08:21:38 especially if you have a lot of income Apr 16 08:21:54 yeah, i wouldn't want to do it, but i don't know if i have to or not Apr 16 08:22:13 i guess it works like in averyage stores, where you can book everything on the same account (CPD conto pro diverse) and don't need to split it up any further Apr 16 08:23:44 thanks for this keyword :) i hoped there's something like this but did not find it Apr 16 08:24:11 yeah i also really don't find much. But if you have a tax consultor, I guess s/he will know Apr 16 08:27:01 ok, thanks, I'll go to one and ask him what he thinks about it :) Apr 16 08:29:07 yeah but also looking through 'the internet' I really think, you just create an account for 'App sales' perhaps split it between germany and worldwide (if you can see the difference in the bill from google) and book it monthly on this Apr 16 08:29:21 the money anyway is only monthly transfered, so i guess nothing else makes sense Apr 16 08:29:52 and as long as you anyway using Kleingewerberegelung, noone really cares how clean your finance will look :) Apr 16 08:31:43 any reason by my OnGlobalLayoutListener isn't called for index 0 of a GridView cell? Apr 16 08:32:05 well, i want to incorporate a Unternehmergesellschaft and thus need proper accounting, annual accounts etc. Apr 16 08:33:18 in that case it might anyway be helpfull to use a tax cancelor :) though there are a lot of applications out there really helping you with Doppelte Buchführung. But also in that case I think, income on an "app sales" account should be enough Apr 16 08:35:07 yeah, in fact, I'm considering doing the accounting my self (but using a method my tax consultant think is ok), and only let him to the annual accounts (which i must not do myself) Apr 16 08:35:38 become an ordained monk, then tax is irrelevant ;) Apr 16 08:35:38 http://support.google.com/googleplay/android-developer/answer/2482017?hl=de&ref_topic=15867 this also states the only reliable data is the monthly report Apr 16 08:35:43 so you cannot make it anyhow more detailed :) Apr 16 08:35:58 ordained coding monk :) Apr 16 08:36:11 indeed, or artist monk Apr 16 08:36:13 ;) Apr 16 08:36:20 theoretically, i could write an invoice for every sale based on the report from google Apr 16 08:36:43 yeah but .. no :D Apr 16 08:36:51 exactly :D Apr 16 08:37:00 it;s like Aldi want to write a full grown bill to every shopper Apr 16 08:37:27 thats why you are allowed to put several persons into one account, if it doesn't make sense to write personaliced bills for everyone Apr 16 08:38:02 http://de.wikipedia.org/wiki/CpD-Konto Apr 16 08:43:20 and concerning an invoice/receipt, it seems sufficient to write a receipt for received payment and attach google's report to it Apr 16 09:25:53 Hello... can anyone please point me in the right direction on how to create this sort of EditText input box? http://cdn-static.zdnet.com/i/story/50/06/274957/6274960.png Apr 16 09:26:13 is it a graphic or a shape? or something else maybe? Apr 16 09:26:16 photoshop ? Apr 16 09:26:26 be aware though Apr 16 09:26:35 there are things you have to consider Apr 16 09:26:39 theme/style Apr 16 09:26:47 and version differences for api Apr 16 09:26:54 I see. Apr 16 09:26:55 like textCursor etc Apr 16 09:27:07 So by photoshop you mean, I crate the background and inner shadow of the shape etc... Apr 16 09:27:09 as in it's color Apr 16 09:27:15 and then drop it into my relative layout Apr 16 09:27:29 well you would maybe have 4 states Apr 16 09:27:32 and then a edit text on top? Apr 16 09:27:38 like the normal edit text Apr 16 09:27:39 ohh with selector? Apr 16 09:27:41 focused Apr 16 09:27:46 normal Apr 16 09:27:46 etc Apr 16 09:27:47 yeah Apr 16 09:28:19 so basiclly what I have here is an ImageView with a background and an edit text on top? Apr 16 09:28:46 no Apr 16 09:28:52 you have an editText Apr 16 09:29:00 with a background state list Apr 16 09:29:09 ahhh right right alright Apr 16 09:29:19 ok gonna try that :) Apr 16 09:29:28 be aware though Apr 16 09:29:45 style choices can be tricky Apr 16 09:30:15 and to do what you have shown requires 3 types of background states Apr 16 09:30:24 top/middle/bottom etc Apr 16 09:30:53 there are 2 in that login example that you have shown, top and bottom together Apr 16 09:31:27 hmm Apr 16 09:32:11 I hope ill be albe to produce something... Ill start with photoshop and read more about background states.. Apr 16 09:32:26 as always , StingRay to the rescue !! Thanks ! :) Apr 16 09:32:30 well you see there on that example Apr 16 09:32:45 the email and passwords are inverse of each other Apr 16 09:32:59 hence why they fit into what looks like a single unit Apr 16 09:33:23 yeah... I assume thats the tricky part Apr 16 09:33:24 so there you have a editText of type TOP and one of BOTTOM Apr 16 09:33:35 theres no example or anything on google for such a thing Apr 16 09:33:40 so if you want a quick fix do as you said Apr 16 09:34:15 just have a ViewGroup containing edit texts that have no selector/states and use the ViewGroup BG Apr 16 09:34:35 thats the quick fix Apr 16 09:34:56 meh, works if the indication to the user about it's state is not all that important Apr 16 09:35:17 and I would assume that 75% of the time, it's not, RE: TextInput Apr 16 09:35:33 yeah, in this case i think that the use would click in Apr 16 09:35:35 and start typing Apr 16 09:35:40 then press the button Apr 16 09:35:49 the keyboard popup would be the indicator Apr 16 09:35:56 and a blinking cursor Apr 16 09:36:00 yea Apr 16 09:36:17 now, one final question before I go and try it Apr 16 09:36:37 the words themselves, their part of the background? (i mean email and password) ? Apr 16 09:36:40 if I use the quick fix Apr 16 09:36:48 they're* Apr 16 09:36:49 no Apr 16 09:36:56 that would be bad on many counts Apr 16 09:37:03 localization being one Apr 16 09:37:13 ohh right Apr 16 09:37:13 size/unit/scale/dp being another Apr 16 09:37:29 you either want a textView label Apr 16 09:37:35 or Apr 16 09:37:44 set a "hint" Apr 16 09:37:56 ohh! for the edittext Apr 16 09:37:57 right Apr 16 09:38:00 alright Apr 16 09:38:01 indeed Apr 16 09:38:24 great! thanks again! gonna try this now Apr 16 09:38:25 brb Apr 16 09:38:27 you can have a lesser color for the hint Apr 16 09:38:36 eg… not as black as user input Apr 16 09:38:37 yeah i like those hints Apr 16 09:38:45 good luck :) Apr 16 09:38:52 thanks :) Apr 16 09:38:56 brb Apr 16 09:44:56 hey hey hay Apr 16 09:45:18 anyone got any experience with MediaPlayer? specifically on Samsung devices that like to report 'info' 1, extra, 35? Apr 16 09:46:45 I'll even accept placebo knowledge Apr 16 09:58:38 When one of my activities is opened the focus goes straight to the edittext at the top, and the keyboard shows up, how do i stop this? Apr 16 09:59:14 feesh: What is placebo knowledge? Do you Apr 16 09:59:30 .. take a sugar pill that says "knowledge" on one side? Apr 16 09:59:43 joar`, that's where someone goes "Oh you have that problem? Have you tried turning your device upside down?" Apr 16 09:59:48 before I add a view to a relative view using code. how can I define the above and below attributes like i can define it when i palce i Apr 16 09:59:48 it gives you hope for 2-3 minutes Apr 16 09:59:53 then you're back to square 1 Apr 16 09:59:54 i place it in an xml layout Apr 16 09:59:58 ? Apr 16 10:00:16 ufk, have you investigated the RelativeLayout.LayoutParams class? Apr 16 10:00:20 guessing it would be in there Apr 16 10:00:38 feesh: That's not placebo, that's hilariousness. Turning your device upside down might work as a placebo workaround though. Apr 16 10:00:49 i know what are the parameters.. i don't know how to implement them using code Apr 16 10:01:32 LayoutParams params = new RelativeLayout.LayoutParams(); Apr 16 10:01:53 ufk: http://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html Apr 16 10:02:35 ahhh ok setLayoutParams to that Apr 16 10:02:41 ok thanks that helped a lot :) Apr 16 10:02:42 featureView.setLayoutParams(new LayoutParams(screenW, Apr 16 10:02:42 LayoutParams.MATCH_PARENT)); Apr 16 10:02:54 yeah :) Apr 16 10:09:02 i can't find the android:layout_above attribute in this class Apr 16 10:09:35 you dont set relative layouts like that Apr 16 10:09:38 tis a rule Apr 16 10:10:04 oh.. so how do i set layout_above not in xml Apr 16 10:10:04 if your wanting above "something" Apr 16 10:10:31 i'm using params.addRulle() Apr 16 10:10:37 so myRelativeLayoutParams.addRule(RULE, anchor.getId()); Apr 16 10:10:50 if your wanting to do it in code Apr 16 10:10:53 ok so where do i find the rule android:layout_above Apr 16 10:11:09 RelativeLayout.ABOVE Apr 16 10:11:14 i think Apr 16 10:11:15 awesome!! Apr 16 10:11:55 the anchor is the view id that it's "relative" to Apr 16 10:12:11 not needed if there is no, relative relationship Apr 16 10:12:23 eg CENTER_IN_PARENT Apr 16 10:12:44 but needed for ABOVE, LEFTOF etc Apr 16 10:12:56 thanks a lot :) Apr 16 10:13:57 here to RelativeLayout.ALIGN_PARENT_LEFT i paste 1 for true ? Apr 16 10:14:21 I understand NOT your question Apr 16 10:14:23 :) Apr 16 10:14:32 ok Apr 16 10:14:34 * feesh 's head explodes Apr 16 10:14:40 :) Apr 16 10:14:54 addRule(RelativeLayout.ALIGN_PARENT_LEFT, ????) Apr 16 10:15:02 like i said Apr 16 10:15:06 since in the xml RelativeLayout.ALIGN_PARENT_LEFT is supposed to be true Apr 16 10:15:09 PARENT is not relational Apr 16 10:15:18 simply adding the rule is enough Apr 16 10:15:23 so no second param Apr 16 10:15:28 ahhhhhhhhh Apr 16 10:15:49 anything that relates to parent (in a relative way) it already knows about Apr 16 10:15:54 i'm sorry for not getting that! Apr 16 10:15:59 no prob Apr 16 10:16:12 thanks again! Apr 16 10:26:04 any of you using aquery? Apr 16 10:26:41 funkbox, never saw the point pal Apr 16 10:26:49 mostly interested in the image caching stuff Apr 16 10:26:51 I'm not afraid of a couple of key presses iih Apr 16 10:29:50 is it possible to nest a TextView inside a TextView? Apr 16 10:30:28 no Apr 16 10:30:32 widgets go in layouts Apr 16 10:30:44 thanks, I suspected that Apr 16 10:31:00 I can still create a relative layout and setting visibility, right? Apr 16 10:31:08 elegos: what are you trying to achieve? Apr 16 10:31:25 funkbox: one layout for one adapter, but multiple "post" type Apr 16 10:31:41 how much do they differ? Apr 16 10:32:59 well, I've got a text post (just text), photo set (text plus ImageViews), quote text (a little more complicated, i.e. imageview + textview and another textview in the bottom), answer (question and answer, question similar to quote, answer as a separate textview) Apr 16 10:33:17 I could inflate different layouts Apr 16 10:33:24 recycling could get odd Apr 16 10:33:41 you could have a single layout and just hide things you don't need Apr 16 10:33:49 that's an option Apr 16 10:33:51 if it gets too slow then just use viewstubs Apr 16 10:34:00 viewstubs? Apr 16 10:34:10 yeah, look'er up Apr 16 10:34:30 looking at them Apr 16 10:35:12 uhm... what's the difference between inflating different layouts and a single layout with a ViewStub and different layouts in it? Apr 16 10:35:31 with multiple layouts the convertView is not reusable Apr 16 10:35:35 which means more inflatin' Apr 16 10:35:55 thus one layout to rule them all (with a ViewStub) and inside it different layouts? Apr 16 10:35:55 with viewstubs you inflate it, but you don't inflate the things you don't need Apr 16 10:36:14 first i'd do it without viewstubs and see how it performs Apr 16 10:36:51 sounds promising Apr 16 10:37:21 I may reuse as much as possible common widgets and hiding the particular ones Apr 16 10:38:28 TBH I already do something like this: photo set posts use the same TextView as text posts, but use a vertical LinearLayout which its height = wrap_content inserting ImageViews Apr 16 10:38:32 reuse is good stuff Apr 16 10:38:40 how does it perform ? Apr 16 10:38:55 don't optimize early too much Apr 16 10:39:08 it performs well, considering that 95% of the posts are photo sets :P Apr 16 10:39:13 and when you do need to optimize, be clever about it Apr 16 10:39:30 ah that's good Apr 16 10:39:33 i've got bigger problems Apr 16 10:40:00 for example I may use a RelativeLayout to put a big quote " character just before the TextView to enable quote posts Apr 16 10:40:30 and set its visibility depending on the post type (i.e. quote and Q&A) Apr 16 10:53:51 before i do this, how bad of an idea is it to use TransitionDrawable > 10 images displayed? Apr 16 10:56:22 hi. I'm running NanoHTTPD on my Android device. how would i prevent my Android device from going to any form of standby? Apr 16 11:04:07 http://pastebin.com/d4tWFwxj <-- when I programmatically set the TextView quote_symbol's visibility:VISIBLE, the post_description TextView will overlap it... any hint? The idea was to have the post_description be incapsulated between the quote_symbol and the favourite_star views (it stays on the left of the second) Apr 16 11:04:47 the problem is as follows: the server runs, but somewhen after i issued some commands to the server, it tells me GC freed 49% ... and my thread exists. what's the matter with that? Apr 16 11:05:23 Hey, I'm using the Eclipse SDK and a virtual device for testing. I need to test https functionality, but the web server I need to access lies on the host pc so I'm using the 10.0.2.2 IP to access it from the device. To test ssl I need a hostname though. Any idea how i can add a hostname alias or the like to my virtual android device so that e.g. https://foo/... resolves to https://10.0.2.2/...? Apr 16 11:05:53 Or can I assign SSL certs to IPs? Apr 16 11:06:58 stephanmg: GarbageCollector frees memory constantly, that's a false problem. Your error resides elsewhere Apr 16 11:07:35 stephanmg: most probably your thread exits normally and GC frees it as it will never run again Apr 16 11:09:09 ah i see my problem i have no action in my UI thread ... Apr 16 11:09:19 therefore my app gets freed and therefore my worker threads get freed? Apr 16 11:09:21 :) Apr 16 11:09:27 StingRay_ IT WORKED! :) your a genius Apr 16 11:09:39 thanks Apr 16 11:09:54 StingRay_: artist, dev, and genius ! Apr 16 11:10:13 agreed Apr 16 11:11:42 elegos: mh if i put some while loop in UI thread it will exit my background/worker thread also Apr 16 11:12:58 while loop in UI thread? lol Apr 16 11:13:28 as much as the UI is visible, it won't end Apr 16 11:13:46 but you have to think android as an event-driven environment, not an imperative way of programming Apr 16 11:14:31 stupid me yes. maybe I was not precise enough. i have a worker thread (NanoHTTPD runs as a daemon) and that thread get's somehow destroyed but NanoHTTPD is fine when i'm using it as a standalone. Apr 16 11:14:34 how can I "sync" asynctask? Like, I want to send 2 REST requests and when I get responses from both, do something. Apr 16 11:14:49 Pitel_IPEX: send broadcast messages Apr 16 11:15:14 i have a question. i read on the develoeprs guide that .webm is the most supported video format. so i converted my intro to my application to .webm and my friend's phone who has android 2.3 still can't play my video. maybe i misread the document. is .webm not the most common format for android phones ? Apr 16 11:15:16 or - create boolean values and check if both are set Apr 16 11:15:38 ufk: webm was introduced in ICS Apr 16 11:15:45 (AFAIK) Apr 16 11:15:54 shit.. i need to learn how to read Apr 16 11:16:26 stephanmg: you should watch the NanoHTTPD workflow Apr 16 11:16:31 http://pastebin.com/d4tWFwxj <-- when I programmatically set the TextView quote_symbol's visibility:VISIBLE, the post_description TextView will overlap it... any hint? The idea was to have the post_description be incapsulated between the quote_symbol and the favourite_star views (it stays on the left of the second) Apr 16 11:17:46 stephanmg: btw, why would you EVER run an HTTP demon inside an Android app? May I remember you that webviews are the most laggous things ever created for Android? Apr 16 11:20:37 this is because i'm new to Android Development and I was not aware of this - additionally I was told to integrate NanoHTTPD in the application. I'm sorry. Apr 16 11:21:24 stephanmg: you don't need to worry :) just personal experience Apr 16 11:21:38 i'm just curious about that. Apr 16 11:22:01 stephanmg: it may be way easier to write an app using HTML and WebAPIs (through JavaScript hooks), but it's way slower Apr 16 11:23:05 thank you very much - your help is much appreciated Apr 16 11:23:28 i guess setDaemon is faulty. i will try that Apr 16 11:25:00 in my opinion i should not run that NanoHTTPD thread as a daemon, i. e. setDaemon(false). Apr 16 11:26:21 stephanmg: the only thing I'd use an HTTP daemon for would be for having an HTML interface to access the phone from an external browser, like the PC's Apr 16 11:26:44 for example an HTML interface to monitor the app execution Apr 16 11:28:59 mh i changed setDaemon(true) to setDaemon(false) in NanoHTTPDs sources and now it works - at least since about 10 minutes Apr 16 11:34:11 stephanmg: what is your goal in using NanoHTTPD ? Apr 16 11:42:26 Is there any common way to handle zebra stylings on lists? Apr 16 11:42:46 backgound Apr 16 11:42:48 I have a linearlayout with a linearlayout Apr 16 11:43:05 Yeah, but there's no "even" or "odd" selectors? Apr 16 11:43:16 oh naaa Apr 16 11:43:19 dont think so Apr 16 11:43:20 :) Apr 16 11:43:42 * StingRay_ is making a switch :) in PS….and is happy! Apr 16 11:44:33 StingRay_: sounds tedious Apr 16 11:44:48 erm… nope! Apr 16 11:45:01 designing art/look is fun Apr 16 11:45:26 specially when you set yourself the challenge that no matter what background it's on, the 1 switch works Apr 16 11:45:27 :) Apr 16 11:50:56 How do I get a color resource programmatically into View.setBackgroundColor? Apr 16 11:51:21 setBackgroundResource(R.*) Apr 16 11:51:22 setBackgroundResource seems like the thing for me Apr 16 11:51:26 :) Apr 16 12:03:31 joar`: View.setBackgroundColor(getColor(R.color.your_color)) Apr 16 12:04:06 or if you already have a ColorDrawable defined : View.setBackgroundResource(R.drawable.your_color)) Apr 16 12:06:15 or getColor(R.color.my_col) Apr 16 12:06:24 (getResources().getColor(..)) Apr 16 12:24:14 elegos: now it works. Apr 16 12:24:40 stephanmg: good to read that :) Apr 16 12:45:38 how is called the thing, when you start writing, and it shows contacts with the text in name/mail/etc? and how to do it? Apr 16 12:46:11 cursor/adapter/filter autoComplete Apr 16 12:46:59 thanks Apr 16 12:47:03 http://developer.android.com/reference/android/widget/AutoCompleteTextView.html Apr 16 12:49:49 hello, for some reason my password for my keystore doesn't seem to be working. i wrote down the exact password when i created it through eclipse, but it just wont work now. Any idea what could be causing this? I used some # characters. not sure if that would be a problem though Apr 16 12:50:09 try using keytool from the command line, see if that works Apr 16 12:50:14 if it doesn't, welp Apr 16 12:51:18 yeah thats what i'm trying :\ Apr 16 12:52:56 ooook i just entered no password and it worked Apr 16 12:53:06 well i guess problem solved Apr 16 12:54:31 is there a way to force soft keyboard close on android 2.x Apr 16 12:54:45 without windowtoken Apr 16 12:54:54 except now the android export wizard doesn't like a no password Apr 16 12:54:56 hmm Apr 16 12:57:00 is there a way to create an application which would filter web traffic on built-in browser? Apr 16 12:57:32 zhulikas ndk? Apr 16 12:57:45 how about regular java-based application Apr 16 13:00:54 is there an api/method to get my dev console stats programatically? Apr 16 13:01:57 Hey guys, need some help. I finally got network working my android x86 vmware install Apr 16 13:01:57 but any file i try to download it just calls it and doesn't download it, just says 'in progress'. any idea? Apr 16 13:01:57 Basically I'm trying to download an APK, but any other file is the same. Apr 16 13:02:16 hmm nope..password isnt blank Apr 16 13:02:27 well this sucks... why would the keystore just randomly break like that Apr 16 13:03:28 aha nm Apr 16 13:07:15 zhulikas: no, I don't believe so. Not without root access. Apr 16 13:07:30 Omnicide: my guess is that it didn't, and the error is PEBKAC related. Apr 16 13:07:39 hmm Apr 16 13:07:44 and what are the means with root access? Apr 16 13:08:02 anything you want, really, that's the point of root. Apr 16 13:08:13 take a look at what some ad blockers do Apr 16 13:21:27 sweet Apr 16 13:21:34 wget + adb = success Apr 16 13:21:37 :) Apr 16 13:37:37 where does obb expansion pack data go on 4.2.2? Apr 16 13:38:42 anybody familiar with rapns in rails for GCM or is there a better alternative? Apr 16 13:39:00 woah thmz, get in the queue, I asked first! Apr 16 13:39:05 hmm, interesting Apr 16 13:39:32 I have an ImageView with wrap_content layout_height and layout_width but it's larger than the image I gave it Apr 16 13:41:33 dafug... Apr 16 13:41:44 crap forgot the flag for this.. I have a nested ListView Apr 16 13:42:13 I want the clicks to be tied to the children and not the actual row for the first ListView Apr 16 13:42:50 Zharf: wrap_content in both height and width? Apr 16 13:43:09 thmz, yes Apr 16 13:43:24 Zharf: I think setting adjustBounds to true on the image view causes it to re-eval , not sure though Apr 16 13:43:25 http://pastebin.com/euYuvxd7 like so Apr 16 13:43:32 StingRay_, tried it, didn't work Apr 16 13:45:21 http://eclipser.xmms2.org/git/xmmsclient-android-test.git/tree/res/layout-land/info.xml my layout, http://eclipser.xmms2.org/xmmsclient-android/device-2013-04-16-164421.png result (with background colour added) Apr 16 13:46:57 Zharf: your doing that Apr 16 13:47:03 * Zharf puzzled Apr 16 13:47:12 by telling the bottom edge to be "ABOVE" Apr 16 13:47:14 hmmm Apr 16 13:47:16 and aligning to top Apr 16 13:47:23 so there is an application called kaspersky parental control Apr 16 13:47:31 it is a device administrator application and allows blocking web content Apr 16 13:47:34 and applications Apr 16 13:47:36 StingRay_, ok?, how should I do it then Apr 16 13:47:41 I need to know how it is done Apr 16 13:47:45 any help StingRay_ ? Apr 16 13:47:56 zhulikas: decompile the application? Apr 16 13:48:02 forgot the flag I'm suppose to use Apr 16 13:48:03 zhulikas: I don't know why you're asking us. Apr 16 13:48:14 lov, hoping for some tips/clues Apr 16 13:48:19 on how such applications are made Apr 16 13:48:24 Zharf: well for example dont have constraints on that image, lets say you put it in a linearLayout, and then the linearLayout has those relative rules Apr 16 13:48:25 zhulikas: "device administrator" is probably the biggie. Apr 16 13:56:37 hmm, about NDK... does Google precompile NDK applications on your selected devices? Apr 16 13:56:43 it isn't exactly managed code as I see... Apr 16 13:56:58 ndk is unmanaged code Apr 16 13:57:21 how would google precompile ndk applications on your device? Apr 16 13:57:23 StingRay_, putting it in a linearlayout or framelayout has the same effect... Apr 16 13:57:48 pastebin new layout Apr 16 13:57:53 pfn, would an ndk app still work on various devices as long as I support their android version? Apr 16 13:59:38 zhulikas, no, you must compile per-target you want to support Apr 16 13:59:52 seriously? Apr 16 14:00:00 that's messed up :) Apr 16 14:00:01 that's what using the ndk means Apr 16 14:00:05 no, it's not messed up Apr 16 14:00:12 it's completely intentional and the whole point of the ndk Apr 16 14:00:24 and by per-target, I mean cpu target Apr 16 14:00:25 not android target Apr 16 14:00:27 per-target you mean - per device? Apr 16 14:00:29 if you got confused Apr 16 14:00:33 oh, ok Apr 16 14:00:36 StingRay_, well ok I got the image to the far right side but the underlying linearlayout is still wider than needs to be, will paste in a sec Apr 16 14:00:52 StingRay_, (gravity="right" :)) Apr 16 14:00:57 well yeah it will be Apr 16 14:01:00 I was hoping that google offers some service for that Apr 16 14:01:06 since you have rules making it so Apr 16 14:01:23 zhulikas, why would you need a service, you can ndk-build each target you want to support Apr 16 14:01:43 zhulikas, since the sdk ships with a cross compiler with all currently available cpu archs Apr 16 14:01:48 ahh, ok Apr 16 14:01:55 I thought I need a device for that :) Apr 16 14:02:48 you'll need one if you want to test Apr 16 14:03:02 but the cross compiler is supplied Apr 16 14:04:49 StingRay_, https://gist.github.com/anonymous/5396149 Apr 16 14:05:37 Zharf: well thats getting you what you want now right ? Apr 16 14:06:01 not exactly, the linearlayout is larger than the image :) Apr 16 14:06:15 and thats relevant why ? Apr 16 14:06:33 it take space from the textfields on the left side Apr 16 14:07:17 your inflating this view yourself ? Apr 16 14:07:21 hello everyone, Is there a way to view current kernel configs within android? -or if this is not the right chatroom, can you direct me to the correct place? Apr 16 14:08:19 StingRay_, the whole layout is created in onCreateView of a fragment Apr 16 14:08:36 StingRay_, I also create the bitmap from a byte array Apr 16 14:10:15 hi there... anyone here having experience with gcm? I have a test phone and various sender applications - one manages to get the message to the phone.. the other ones just get a success result from gcm but the message does not appear on the phone.. any ideas? Apr 16 14:11:41 pawni so what is your concrete question Apr 16 14:14:11 zhulikas: Have you considered altering the /etc/hosts file and using your application to act as a proxy? Apr 16 14:15:57 StingRay_, http://eclipser.xmms2.org/xmmsclient-android/device-2013-04-16-171434.png ... I guess I'll debug this later, have to get home Apr 16 14:18:16 xorgate - my question was why does the phone not receive the message from another server application while the request is almost (only the data section is not the same) the same - now I got it to receive the message by having the same data section - why does the data section influences if the message is displayed? Apr 16 14:18:46 xorgate - oh .. i think its clear.. just me not correctly talking to the mobile devs ;) Apr 16 14:21:08 why isn't repo sync getting me tools/base and tools/swt Apr 16 14:26:06 whats the current method of choice for displaying a pdf Apr 16 14:26:27 use an intent to let the appropriate application handle it Apr 16 14:26:56 hmmm Apr 16 14:27:19 whats the likelyhood they have a reader installed? Apr 16 14:27:38 brx_, high Apr 16 14:28:36 i might use that but have a fallback option too Apr 16 14:28:42 in fact ye that'l do it Apr 16 14:29:21 there already exists a pdf on a 3rd party reader online, ill fall back to that Apr 16 14:31:06 doesnt stock gallery/preview read pdf or something ? Apr 16 14:31:25 pdf is a silly format for so many people to adopt…. hate it! Apr 16 14:31:27 no StingRay_ Apr 16 14:31:35 apparently adobe are snide Apr 16 14:37:32 why do people say are when talking about companies? Apr 16 14:37:38 e.g. "adobe are snide" Apr 16 14:37:44 it's a singular entity Apr 16 14:38:10 pfn, many people make up adobe Apr 16 14:38:24 like Apr 16 14:38:28 manchester united are wankers Apr 16 14:38:55 i think that relates to the practices of a company ? eg the collective drive of the individuals who make or contrib. to decisions Apr 16 14:39:20 yeah, but it's a proper name, not a collection Apr 16 14:39:49 e.g. adobe's leaders, or adobe's employees would be plural Apr 16 14:40:14 feesh, must be a british thing Apr 16 14:40:20 it's not an american english thing for sure Apr 16 14:40:29 yeah, it's a British/American English thing Apr 16 14:44:18 'adobe are snide' refers to the collective Apr 16 14:45:03 'adobe is snide' would be a more ontic reference, either works Apr 16 14:45:48 Anybody know why, after pausing a MediaPlayer and later resuming, it resumes from a position as if it had never been paused at all? Apr 16 14:47:53 Hmm, never mind. Better question: Anybody know why a VideoView would flicker while playing media? Apr 16 14:50:39 is there other way to slide from screen to scree without using viewpager? Apr 16 14:50:48 hello everyone, Is there a way to view current kernel configs within android? -or if this is not the right chatroom, can you direct me to the correct place? Apr 16 14:51:12 #android-root Apr 16 14:51:16 or #romofyourchoice Apr 16 14:51:56 pdf is a great read-only format for documents Apr 16 14:51:58 what's to hate Apr 16 14:52:03 popers: I'm swapping fragments in and out of an activity with the fragment manager, but not getting view transition animations Apr 16 14:52:31 then how? Apr 16 14:53:02 I listen for swipe gestures and execute FragmentTransactions as appropriate Apr 16 14:54:40 jasta, I know you were asking about sdklib and ddmlib, did you find them? my repo sync isn't picking up tools/* Apr 16 15:01:57 hey, what's the deal with android:taskAffinity, if i set the affinity of an activity to a different application, how does other application access the contents or whatever of the activity? Apr 16 15:02:19 er... Apr 16 15:02:36 is that the point of it? Apr 16 15:02:37 if that's what affinity is, my understanding of it is totally wrong Apr 16 15:03:02 oh Apr 16 15:03:10 then my understanding is most likely very wrong Apr 16 15:03:35 i'm reading the docs for the manifest file and came across it... Apr 16 15:04:17 is there a simple explanation for it or should i just shutup and keep reading? Apr 16 15:04:28 actually I dunno, you could be right Apr 16 15:04:40 what's your understanding? Apr 16 15:05:54 I'm not really sure, I actually thought you were talking about something else, lol Apr 16 15:06:02 I'll shut up now Apr 16 15:06:14 lov: any input? Apr 16 15:06:28 haha all good Apr 16 15:09:13 taskAffinity just lets tasks belong to particular task groups Apr 16 15:09:18 the documentation is a little misleading Apr 16 15:10:16 task != process right? Apr 16 15:10:18 er_dos: you know how if you long-press home (or press the running activities button) it shows the list of activities Apr 16 15:10:24 yeah Apr 16 15:10:41 and if you have a picker activity (gallery, etc) it can appear for a particular application, even though gallery isn't part of that application? Apr 16 15:10:45 that's the concept of the task stack Apr 16 15:11:17 you might want to read through http://developer.android.com/guide/components/tasks-and-back-stack.html to make things more clear Apr 16 15:11:37 ok cool i'll read through that now, thank you :) Apr 16 15:14:09 ohhhhh Apr 16 15:15:20 got it! i've read through this, i forgot that that was what a task was Apr 16 15:17:54 (offtopic) Anyone knows why my browser crashes when I open a specific link (OPEN AT OWN RISK: http://stackoverflow.com/feeds/tag?tagnames=TAGS+GO+HERE&sort=newest)? Apr 16 15:18:36 probably because it can't handle rss feeds Apr 16 15:19:06 But... crashing? Apr 16 15:19:16 * lov shrugs Apr 16 15:19:19 it's your browser not mine. Apr 16 15:19:21 maybe an extension? Apr 16 15:19:45 ok bed time, later dudes Apr 16 15:20:19 Have you ever used HideBar in kiosk mode? Apr 16 15:20:31 No. :D Apr 16 15:34:59 how can I know if app is made with NDK or SDK? Apr 16 15:36:42 does it contain an .so? Apr 16 15:36:49 does it contain classes.dex? Apr 16 15:36:51 oh, I mean if app is on a market Apr 16 15:36:52 <__import__> NDK? Apr 16 15:37:06 hmm, maybe I could browse my device for its files Apr 16 15:37:14 download it? Apr 16 15:38:04 zhulikas: yeah download the apk from your device Apr 16 15:38:33 <__import__> what is the NDK? Apr 16 15:38:55 android Native developement kit Apr 16 15:38:55 http://developer.android.com/tools/sdk/ndk/index.html Apr 16 15:39:00 ninja development kit Apr 16 15:39:13 <__import__> ah Apr 16 15:39:19 nasty developer krap Apr 16 15:40:26 * __import__ likes his java too much Apr 16 15:40:32 hey guys quick question regarding hard drives for my working build machine Apr 16 15:40:48 i am considering getting an ssd+hdd hybrid for my laptop Apr 16 15:41:06 you have two drive slots in your laptop? Apr 16 15:41:07 <__import__> Ask in ##hardware? Apr 16 15:41:07 to help increase build speeds and alo help my games run smoother etc Apr 16 15:41:24 im not sure yet was thinking about looking in the slot and seeing if i have two or one Apr 16 15:41:36 laptop is acer v3-571g Apr 16 15:41:36 <__import__> NinjahMeh, That isn't exactly on topic here. Apr 16 15:41:36 woot ":D Apr 16 15:41:50 i know but it is really as its regarding build for anroid Apr 16 15:41:58 if its about experience with building android its at least better here, then ##hardware Apr 16 15:42:08 ssd will speed you up like hell Apr 16 15:42:08 just i dont know of a seagte irc channel to ask them obviously or i would be there :P Apr 16 15:42:15 and RAM and a good cpu does :) Apr 16 15:42:19 ok didnt see ##hardware Apr 16 15:42:25 <__import__> :P Apr 16 15:42:41 <__import__> THey specialize in that kind of stuff, you'll get better advice there. Apr 16 15:42:44 for me it takes (not building from ssd, but RAID 1 with hdd) 20 minutes for a clean build of android Apr 16 15:42:59 compared to my work laptop it takes around 3 hours or so :D Apr 16 15:43:06 either way though i thought would be worth asking here and in the cyanogenmod chan as im building android from the hdd and presumed ppl here would know at least a bit Apr 16 15:43:14 * NinjahMeh scuttles off to ##hardware Apr 16 15:43:20 <__import__> Ah, well, carry on then. Apr 16 15:43:32 <__import__> No offense meant :P Apr 16 15:43:39 <__import__> . Apr 16 15:43:39 <__import__> . Apr 16 15:43:44 <__import__> >_> Apr 16 15:43:47 ... Apr 16 15:43:51 <_< Apr 16 15:43:53 >_> Apr 16 15:43:58 okay he's gone Apr 16 15:44:22 what is it called the menu you get up if you click a button and get various alternatives for sending email? Apr 16 15:44:40 hi! can I add android library projects to my project with maven? Apr 16 15:45:38 thmz: you mean the specialized for share or in general any 'picker dialog'? Apr 16 15:46:00 timroes: specialized for share yes:) Apr 16 15:46:22 has anyone attributed to an open source library before? Apr 16 15:46:34 thmz: context menu? Apr 16 15:46:42 feesh: meta question :D Apr 16 15:46:54 thmz: share dialog? share choser? Apr 16 15:46:54 I'm planning on using an apache 2 lib, but I don't know how to say in a way that's legally arse covering Apr 16 15:47:06 "I'm using this open source library that is under Apache 2.0 licence" Apr 16 15:47:54 feesh: I usually add their licenses to the project Apr 16 15:48:16 feesh: using apache 2 lib you will need to copy the NOTICE file in its root dir (if existing) to your code, leave the copyright notices in the code, but actually doesn't really need to provide it in some gui (if you don't distribute your source code), though it would be nice Apr 16 15:48:25 <__import__> feesh, "This project makes use of the following libraries, under the Apache 2.0 license:" Apr 16 15:48:27 <__import__> Apr 16 15:48:29 timroes: just trying to have a Preference, and when you click it you get up various alternatives of how to send mail to that person (through normal mail, gmail, skype etc) Apr 16 15:48:40 e.g. look at google music app how they do it, under settings -> about -> .. something Apr 16 15:49:17 cheers __import__ Apr 16 15:49:22 and timroes Apr 16 16:01:47 timroes: thnx :) Apr 16 16:11:54 anyone here know the typical lifecycle of a mobile game app e.g. the average time it takes to get to a certian rank, how long it lasts there etc? Apr 16 16:12:39 lseactuary: an indie, one from EA, one from Gameloft/Glu/etc? Apr 16 16:12:55 one with a big marketing budget, one with no budget? Apr 16 16:13:05 big marketing budget Apr 16 16:13:05 e.g. Apr 16 16:13:17 200-400,000 a year Apr 16 16:13:31 and a brand new game from brand new developers Apr 16 16:14:28 so Apr 16 16:14:33 .apk contains .so and .dex Apr 16 16:14:35 it's NDK, right? Apr 16 16:14:44 yeah it has some parts from NDK also Apr 16 16:15:07 ok Apr 16 16:17:28 leeds - any ideas? Apr 16 16:17:48 nope Apr 16 16:18:05 I'd guess anywhere from millions of users within a month, to never more than a few thousand Apr 16 16:18:18 this isn't really a business channel, you know... Apr 16 16:26:24 ye i just thought developers would know :) Apr 16 16:32:42 most developers aren't necessarily business people Apr 16 16:33:03 true Apr 16 16:33:10 do you know of a suitable place i can ask? Apr 16 16:35:51 I think it's the sort of thing you get with experience Apr 16 16:38:20 i need to put it in a model for a project.... trying to find info :S Apr 16 16:40:11 Anybody know what theme to use with ActionBarSherlock to have the ActionBar overlay the activity rather than take up its own space at the top? Apr 16 16:40:21 it's not a theme Apr 16 16:40:23 it's a window flag Apr 16 16:40:38 What's the flag? Apr 16 16:40:41 https://github.com/JakeWharton/ActionBarSherlock/blob/master/actionbarsherlock-samples/demos/src/com/actionbarsherlock/sample/demos/Overlay.java#L27 Apr 16 16:40:47 ahh, thanks Apr 16 16:41:01 Thanks for ABS too. It's *way* useful. Apr 16 16:43:54 hey hey, we're featured in the play store Apr 16 16:44:10 this channel is? Apr 16 16:44:21 uhh, no, our app >.> Apr 16 16:44:56 lagann: Congratulations! :) Apr 16 16:45:03 thanks Apr 16 16:45:45 What is it about? Apr 16 16:45:58 cloud storage apps Apr 16 16:46:04 Name? Apr 16 16:46:10 ASTRO File Manager Apr 16 16:46:35 now all that's left is that elusive Top Developer label Apr 16 16:47:23 Ah, you're behind ASTRO? Apr 16 16:48:13 yeah, one of a handful Apr 16 16:49:14 lagann: ASTRO was my first file manager (a while ago), but I stopped using it, because the ads took 1/4 of the screen :D Apr 16 16:49:56 yeah, i've tried to figure out a better way to get them to fit in landscape Apr 16 16:50:11 i was thinking of throwing them up in the actionbar if there's enough room Apr 16 16:51:34 lagann: I thought about removing ads on an app forever if the user clicked the ad ten times (much more than I usually do). That way, both parties are happy. Apr 16 16:52:11 that's a cool idea, but then you could get hit with click fraud Apr 16 16:52:39 Sorry, I learn english in school, what's fraud? Apr 16 16:52:49 yeah, I'm pretty sure you're not meant to 'incentivise' clicks Apr 16 16:52:51 Vocabularies! :P Apr 16 16:53:01 flan3002: cheating Apr 16 16:53:33 So, who cares? What do you get paid for, if not clicks? Apr 16 16:53:52 flan3002: most ad companies will ban you Apr 16 16:53:57 and not pay you Apr 16 16:54:01 Hm... Apr 16 16:54:02 The ones paying for the ads most likely cares Apr 16 16:54:06 but apart from that, it's not an issue Apr 16 16:55:20 What about only counting one ad-click every time? That way, the user still sees the ad in full-screen, and the provider doesn't get angry... Apr 16 16:55:28 *Every day Apr 16 16:56:23 you don't have that much control - the ad company counts the clicks, not you Apr 16 16:56:58 But there has to be some kind of callback... Apr 16 16:57:04 i'm going to grab lunch. i'll be back in a bit Apr 16 17:16:33 Hi, can anyone tell me if there's a Facial Recognition API for Android yet? I don't mean face detection, but some way to identify whose face is in the camera (with a degree of confidence) Apr 16 17:17:28 it would be cool if we could add files to the dev console for in app download on demand content instead of having to depend on some external site Apr 16 17:19:18 Smashcat: you can use OpenCV Apr 16 17:27:12 how can i update members of a fragment from an activity Apr 16 17:28:01 popers: Why aren't you able to access them as always? Apr 16 17:28:36 yes but i cant update the view Apr 16 17:29:08 popers: I usually (for encapsulation) provide methods to do just that in the fragment class. I get references to them in one of the create methods... Apr 16 17:29:28 i've a FragmentStatePagerAdapter with a ViewPager Apr 16 17:29:49 but i cant update the view of a new instantiated Fragment Apr 16 17:30:11 pfn: yeah, i got it with repo init -g tools or something similar Apr 16 17:30:13 pulled them down right Apr 16 17:30:19 the -g feature is pretty handy, actually Apr 16 17:30:22 just sucked down tools, nothing else Apr 16 17:30:29 i only implemented getItem and getCount in the Adapter Apr 16 17:31:38 Wait a seconds, restarting Eclipse... Apr 16 17:31:43 *second Apr 16 17:34:12 thanks Apr 16 17:34:45 popers: I'm sorry, but, as always, things don't work when needed. Eclipse won't restart... Apr 16 17:35:15 love it when that happens Apr 16 17:36:02 Now it opened, but the UI shows Errors everywhere?! Apr 16 17:36:36 love that too Apr 16 17:36:51 eclipse is such a piece of junk. ditch it. Apr 16 17:36:59 intellij is less broken, and more useful anyway. Apr 16 17:37:23 jasta: not as easy to work with main + lib projects though Apr 16 17:37:26 I guess so, but the google (android) support for it is just good... Apr 16 17:38:41 Oh god, did ANYONE touch my HoloEverywhere Library project? I didn't! And suddenly, a LOT of errors in the res dir appear :( Apr 16 17:39:18 Just delete it, it's crap anyway Apr 16 17:39:22 StingRay_: uhm, seems even easier where i'm sitting. Apr 16 17:39:29 just use modules Apr 16 17:39:35 instead of projects Apr 16 17:39:35 Modules? Apr 16 17:40:10 SimonVT: Why? I need it, because of backwards compatibility... Apr 16 17:40:18 jasta: What are modules= Apr 16 17:40:21 ? Apr 16 17:40:30 i was talking to stingray about an intellij feature Apr 16 17:40:53 You really don't need it Apr 16 17:41:08 If you know how styles work, it takes you no time to pull the few resources you actually need Apr 16 17:41:40 The rest of the library is unnecessary Apr 16 17:42:27 Hm, that'd be an interesting way to reduce the .apk size... Apr 16 17:50:37 I'm having a hard time getting my PopupListWindow to have my ListView rows set to FILL_PARENT Apr 16 17:51:47 xastey: your what ? Apr 16 17:52:00 rows set to fill_parent ? Apr 16 17:52:35 a ) fill parent is depreciated and b ) how would a list row fill it's parent ? Apr 16 17:52:48 not a list.. but its rows Apr 16 17:53:02 I know fill_parent is depreciated but wouldn't I need to use that if i'm targeting old api's as well? Apr 16 17:53:08 no Apr 16 17:53:36 but how would a row be set to "match_parent" ? Apr 16 17:53:43 o really.. thought I would since its loaded at runtime Apr 16 17:53:51 guess android converts it to its actual value? Apr 16 17:53:54 same int value Apr 16 17:53:58 yeah I know that Apr 16 17:53:59 Its parent is the listview Apr 16 17:54:08 but thought the const name was still saved Apr 16 17:54:18 static final are inlined Apr 16 17:54:20 so if you use match_parent on say 2.3 devices it would break Apr 16 17:54:32 match_parent was introduced in 2.2 Apr 16 17:54:44 xastey: you have bigger probs than fill match, attempting what you want Apr 16 17:54:45 well hot damn again Apr 16 17:54:50 what is it your after ? Apr 16 17:54:51 I need to read the api docs a bit more Apr 16 17:55:01 just use match_parent Apr 16 17:55:08 nah I fixed it now Apr 16 17:55:37 now I'm having issuses with the redraw rate with my GridView Apr 16 17:55:45 I scroll and have a shadowing effect left Apr 16 17:56:11 I'm having an issue with shitty android Apr 16 17:57:13 i recommend against using shitty android and prefer the real thing Apr 16 17:57:32 atm android somehow sh*ts up my gradients after a few minutes of use Apr 16 17:57:58 sounds like pebcak Apr 16 17:58:17 a what ? Apr 16 17:58:44 great seems to be a 4.2 bug Apr 16 17:58:46 just wonderful Apr 16 17:59:00 https://groups.google.com/forum/?fromgroups=#!topic/android-developers/bX07iZl33tg same bug :'( Apr 16 17:59:06 StingRay_: Problem Exists Between Chair And Keyboard Apr 16 17:59:28 evanc: ah, nice, but no… it aint oGMo Apr 16 17:59:37 StingRay_: did you write the code? Apr 16 17:59:44 i am assuming so since this is -dev Apr 16 17:59:47 nothing to do with code Apr 16 17:59:56 there are 2 constants that dont change Apr 16 18:00:00 start and end color Apr 16 18:00:04 work fine Apr 16 18:00:12 however, after at time, they dont Apr 16 18:00:16 with no change Apr 16 18:00:57 if it were games/console dev, I would say android caches drawables to a bitmap page, and what I get is the result of some odd filtering on that page Apr 16 18:00:57 you say "no change" yet "over time", which is contradictory Apr 16 18:01:11 as in the values stay the same Apr 16 18:01:16 the viisual result differs Apr 16 18:01:33 anyone here know how to figure out the average no of downloads for a mobile app game per month? Apr 16 18:02:16 Get total number of downloads, divide by total number of apps * average time on play store Apr 16 18:02:24 time in months, that is Apr 16 18:02:24 :) Apr 16 18:02:36 lseactuary... I just came across a recent article recently... Apr 16 18:02:41 yup i did Apr 16 18:02:45 but only the top 200 apps are available Apr 16 18:02:49 for that data Apr 16 18:02:53 thing is im trying to find out what the average number is if i just launched the app Apr 16 18:02:54 andrewcarter: Sorry, got called away - yeah thanks I'm looking into OpenCV, but haven't found anything that actually does the recognition, only detection, and mapping other objects etc. Probably need to look into working with the data the face identification can output Apr 16 18:02:58 they wont get to the top 200 in one day haha Apr 16 18:04:18 popers: So, resolved all error (mood just got a lot better), were you able to solve it? Apr 16 18:06:25 do you see my issue? Apr 16 18:07:24 the average will do you little good anyways Apr 16 18:07:34 i see Apr 16 18:07:37 what method do you suggest Apr 16 18:07:45 i basically want to calcualte expected revenue per month (or year) Apr 16 18:07:49 for a brand new gamind mobile app Apr 16 18:07:52 *gaming Apr 16 18:07:54 cause 10% will account for 95% of the average Apr 16 18:07:58 ;) Apr 16 18:07:58 i thought rev = users * price Apr 16 18:08:11 right Apr 16 18:08:14 you are 100% correct Apr 16 18:08:17 thats the issue :( Apr 16 18:08:20 lseactuary: too many variables Apr 16 18:08:45 what alot of people are doing is trying to track the total number of installations at any given point in time. How this is done is not so clear, but... Apr 16 18:09:11 your asking something that cannot be answered with any degree of accuracy, without complete and entire knowledge of the product/marketing/plan/demographic/etc Apr 16 18:09:17 if you were able to do that, I'm sure you could also find out Apr 16 18:09:38 hmm Apr 16 18:09:52 product = gaming app for ios and/or android Apr 16 18:10:00 marketing - about 400k $ a year Apr 16 18:10:06 plan - development time 1 yr Apr 16 18:10:16 i dont need exact figures Apr 16 18:10:25 just some estimate/range is fine Apr 16 18:10:30 but i need to project revenue figures Apr 16 18:10:33 which is tough to do Apr 16 18:10:59 if that were my info, I would be able to give you a 0.1% accuracy estimate Apr 16 18:11:30 if you think that it's possible to come up with a figure with just that paragraph, your in trouble my friend :( Apr 16 18:12:13 have you done games industry market analysis before ? Apr 16 18:12:22 and done all of the research ? Apr 16 18:12:51 i have yes Apr 16 18:12:58 i did the no of downloads/no of apps Apr 16 18:13:04 to get the average downloads per app Apr 16 18:13:11 but then this data was only available for the top 200 Apr 16 18:13:16 so its not really a good way of doing it Apr 16 18:13:19 sorry but to me thats terrible Apr 16 18:14:02 thats like shooting an arrow randomly upwards hoping to hit a target 100m away in 50mph winds Apr 16 18:15:47 exactly Apr 16 18:15:51 but im not sure of another way Apr 16 18:15:55 there is no other user data :S Apr 16 18:16:17 ok thats where experience and historical analysis comes in Apr 16 18:16:18 How do you let taps go through an XML element so that the tap is registered but it also falls through to another button? Apr 16 18:16:36 im an undergrad :S Apr 16 18:17:17 let me guess; an actuarial track undergrad at LSE? Apr 16 18:17:57 Hello, i need to pass a LinkedHashMap between activity. I am following this way http://pastebin.com/k309Jsry but it returns the strange error at the end on my pasteBin. Why does it recognize my object as HashMap? Apr 16 18:18:28 lov - not quite :S Apr 16 18:18:41 in which order are the following called (what's their life cycle?): SurfaceHolderCallback.SurfaceChanged/SurfaceCreated/SurfaceLost and activity onPause/onResume Apr 16 18:18:58 barque: have you considered looking at the documentation that tells you exactly when these happen? Apr 16 18:19:11 Or even just adding some log statements and figuring it out yourself Apr 16 18:19:24 It is different from tablet to tablet that I've worked with Apr 16 18:19:39 I haven't found a single documentation rolling all of those into 1 Apr 16 18:19:46 There you go, it's undefined Apr 16 18:19:49 so if you can point me to any document, please, by all means Apr 16 18:20:01 Ok, so basically paraphrase and say : I have no clue. Apr 16 18:20:22 And please spare me the defensiveness Apr 16 18:20:27 barque: Have you tried just adding handlers and watching order in which they're called in the LogCat? Apr 16 18:20:52 Smashcat, I've seen different behavior from 1 tablet to the next... based on what kind of things happen anyway Apr 16 18:21:08 activity switch-aways, AlertDialogs etc. Apr 16 18:21:14 barque: So you know there's no fixed order? Apr 16 18:21:25 I'm not sure whether there is or not Apr 16 18:21:29 that's what I'm asking Apr 16 18:21:38 is there something Android-common that I should look for. Apr 16 18:21:45 Some rule Apr 16 18:22:04 barque: It depends on what is happening with the device. The code should cope with it. Apr 16 18:22:13 well that's the thing Apr 16 18:22:30 if you're dealing with a native surface, 'coping' with it becomes an arduous task Apr 16 18:22:41 native EGL surface Apr 16 18:23:10 I have to know when I can and when I can't fully resume a native application/thread Apr 16 18:23:11 barque: Please stop using as a form of punctuation. Apr 16 18:23:14 working with that surface Apr 16 18:24:00 anyone got any ideas? Apr 16 18:24:38 my thoughts exactly. Anyone worked with surfaceHolder Callbacks across multiple devices? anyone know the full details of their relative order to activity pauses and resumes? Apr 16 18:24:46 lseactuary: asking like that will not work Apr 16 18:25:00 barque: Well, there's plenty of examples of handling this sort of thing. Even as simple as try-catch. There is no fixed order. Apr 16 18:25:10 sorry :( Apr 16 18:25:11 no info to base any estimate off Apr 16 18:26:35 I honestly don't know how a try catch block is going to help anything. But I sure hope there is some order... because Kindle Fire 1st gen does not like a resumed native surface while an AlertDialog is shown on top (apparently.) Apr 16 18:28:16 heck , apparently that's not even the issue. I don't know what is. I'm getting crashes inside libdvm.so. Apr 16 18:37:18 How do you start a repeating function in Android? I want switch images on an ImageSwitcher every 2 seconds with a fade between pictures. Apr 16 18:37:45 timers? Apr 16 18:38:10 jdawes: Handler Apr 16 18:38:35 Oh, I was using a handler to run the task I didn't know you could set it to repeat. Thanks Apr 16 18:39:24 evanc: What is the call for this? I'm using handler.post(runnable); to run the task but how do I repeat it? Apr 16 18:39:53 nevermind I was doing it correctly, I forgot to change the value of the resource ID Apr 16 18:39:53 hi guys, can anybody help me out with building a project with the commandline tools? I'm trying to build a project which depends on a library project, which depends on a library project. Apr 16 18:39:54 duh Apr 16 18:40:09 so it's like: Apr 16 18:40:09 app <- lib1 <- lib2 Apr 16 18:40:09 app <- lib2 Apr 16 18:40:18 jdawes: postDelayed, then when your runnable finishes, it schedules itself again Apr 16 18:41:00 the error message i get when trying to compile with "ant release" is: {PATH OF LIB2} resolve to a path with no project.properties file for project {PATH OF LIB1} Apr 16 18:41:32 Sounds like that library project doesn't have a project.properties Apr 16 18:41:37 I'm pretty sure I've set up the project.propertires file correctly Apr 16 18:41:47 evanc: mhm that's what I had but I didn't change the image id so it kept showing the same one each time. Apr 16 18:41:56 SimonVT: yea but it does :S that's the weird thing Apr 16 18:42:23 both lib projects and the main app project have a project.properties file Apr 16 18:42:41 jdawes: nice Apr 16 18:43:22 SimonVT: lib1's project properties has this in it Apr 16 18:43:22 android.library=true Apr 16 18:43:22 target=android-16 Apr 16 18:44:09 lib2's project properties has this in it: Apr 16 18:44:09 android.library=true Apr 16 18:44:09 target=android-16 Apr 16 18:44:09 android.library.reference.1={PATH OF LIB1} Apr 16 18:44:46 and the main app this: Apr 16 18:44:46 target=android-16 Apr 16 18:44:46 android.library.reference.1={PATH OF LIB2} Apr 16 18:44:46 android.library.reference.2={PATH OF LIB1} Apr 16 18:45:09 Maybe the paths are wrong Apr 16 18:45:27 evanc: ;) Apr 16 18:46:11 MrMaffen: Look into using maven instead of ant. I'm not an ant expert but maven worked better for my multi-build projects in the past. Apr 16 18:46:36 SimonVT: I've set up the absolute paths there, something like: /home/user/workspace/ActionBarSherlock Apr 16 18:46:53 or do i have to escape the slashes or something Oo ? Apr 16 18:47:24 itechjunkie: yea i'll do that :) thanks for the tip. but ant has to work somehow too :S Apr 16 18:47:35 Unless you've only pulled the library part, the path is ActionBarSherlock/actionbarsherlock Apr 16 18:47:50 SimonVT: i did only pull the library part Apr 16 18:48:06 SimonVT: and then it would be ActionBarSherlock/library afaik Apr 16 18:48:18 Naw Apr 16 18:49:05 Maybe you should just try and use the command line tool to generate project.properties as well Apr 16 18:49:16 android update project/lib-project Apr 16 18:49:45 SimonVT: ah they've chagned the subfolder name. sry i didn't see that. Apr 16 18:49:53 SimonVT: yea i did it with the cli tool :S Apr 16 18:50:24 SimonVT: I should add, that everything compiles just fine in IntelliJ Apr 16 18:50:32 is it legal to have a string like: , Apr 16 18:50:37 i mean, will the space be preserved? Apr 16 18:50:59 tnzr: no afaik you need to put it in " then Apr 16 18:51:10 MrMaffen: ok I'll try that Apr 16 18:51:19 Eh, why put something like that in strings Apr 16 18:51:40 SimonVT: team member did it :( but I agree, I might just get rid of that Apr 16 18:53:43 yeah screw that Apr 16 19:13:48 flan3002 if your still here, this is my fragment code i want to update the views Apr 16 19:13:58 in a moment i post my activity Apr 16 19:15:26 http://pastebin.com/hGydsbvy Apr 16 19:16:55 i want to update the views from the adaper Apr 16 19:17:02 but i dont know how Apr 16 19:22:30 Anyone ever had issues with glCompileShader and Nexus 4 ? Apr 16 19:22:41 for native EGL coding Apr 16 19:25:40 is there some tutorial on debugging activity lifecycle exceptions? I have some trouble getting into debugger from there Apr 16 19:30:47 newbie question ... is it better to use SupportMapFragment or MapFragment with Googles Map API? I assume SupportMapFragment to support older android versions? As well as other android.support.v4.app methods such as FragmentActivity? Apr 16 19:41:37 developer guide says SupportMapFragment should only be used if you need support for those older android version Apr 16 19:48:21 How do you fade between two images on the background of an ImageView? Apr 16 19:49:54 I've tried using an ImageSwitcher which only works when the imageView's source is set, but I want to change the background of the imageview. Apr 16 19:50:07 Hi, im reading a book on Java, do I need to know about applets/webstart at all for Android applications? Apr 16 19:51:34 no Apr 16 19:56:31 Okay Apr 16 19:56:43 Didn't think so, I think those technologies are pretty much obsolete anyways Apr 16 19:59:27 jdawes: use a TransitionDrawable Apr 16 20:00:26 I was looking into that, but I don't understand how it works. Apr 16 20:00:32 What version(s) of Android must be dropped in support to adopt C++11 for the NDK? Apr 16 20:00:43 Is there any documentation on this? I've found none. Apr 16 20:01:00 i doubt any version of android supports C++11 Apr 16 20:01:10 g00s: You'd be incorrect. Apr 16 20:01:16 android 9.2 Apr 16 20:01:19 r8b had GCC 4.6 Apr 16 20:01:21 Napalm: Using a ViewSwitcher with two ImageViews in it works for my purposes, would you still suggest a TransitionDrawable? Apr 16 20:01:30 r8d supported GCC 4.7, and rbe is out now. Apr 16 20:01:31 yes Apr 16 20:01:39 canadiancow: Based on what? Apr 16 20:01:42 jdawes: much less overhead and less views Apr 16 20:02:00 im just saying it takes a while for android to use the latest compilers and language specs Apr 16 20:02:01 jdawes: TransitionDrawable is designed for what you want Apr 16 20:02:02 s/rbe/r8e/ Apr 16 20:02:03 i.e. it will be a while Apr 16 20:02:03 hey canadiancow Apr 16 20:02:18 mooooooo Apr 16 20:02:36 hey, is ActionSherlock ever gona have support for Preference Page? Apr 16 20:02:37 thanks nullie for your reply Apr 16 20:02:44 net split?? Apr 16 20:02:55 no reason why you couldnt compile C++11 and have it work on android? Apr 16 20:02:56 you mean PreferenceFragment? Apr 16 20:03:00 because thats not really an ABS thing Apr 16 20:03:03 that's a support lib thing Apr 16 20:03:05 No, meetoman - it's outside the scope of ABS Apr 16 20:03:06 and no, probably not Apr 16 20:03:23 hey SimonVT Apr 16 20:03:35 im getting your MenuDrawer in a few more apps Apr 16 20:03:42 I just mean getSupportFragmentManager Apr 16 20:03:43 \o/ Apr 16 20:03:50 because all my popups are now Fragments Apr 16 20:03:58 getSupportFragmentManager is part of the support library Apr 16 20:04:00 Not ABS Apr 16 20:04:01 and I have to launch them within the preference Apr 16 20:04:20 SimonVT, not under SherlockPreferenceActivity Apr 16 20:04:36 anyone here been coding android for a while? do you recommend the Support library to support older versions of android on devices or should we just code for 11+ Apr 16 20:04:37 * canadiancow gives up Apr 16 20:04:46 myregistration, i do not recommend 11+ Apr 16 20:04:49 meetoman: i had similar problems, with preferences and fragments Apr 16 20:04:50 if you're going to go that route, do 14+ Apr 16 20:05:00 however, support lib is awesome Apr 16 20:05:03 and should be used regardless Apr 16 20:05:07 Napalm|afk, how did you solve it? Apr 16 20:05:19 canadiancow, can't, all my dialogs use v4 Apr 16 20:05:19 SherlockPreferenceActivity, surprisingly, extends PreferenceActivity Apr 16 20:05:24 I'd have to create another class for it Apr 16 20:05:29 meetoman: just explain your problem just to make sure i understand your problem Apr 16 20:05:31 ok yeah i think we can support more devices using that so probably a good idea, but wondered what the consensus is Apr 16 20:05:36 Not FragmentActivity where getSupportFragmentManager is defined Apr 16 20:05:50 i had to make my own PreferenceFragment that inherites from SherlockFragment or whatever it was Apr 16 20:05:55 let me dig out the old code Apr 16 20:06:23 any recommendations for books? Apr 16 20:06:36 Napalm|afk, I am having a problem launching my dialogs that was made for v4 support library using getSupportFragmentManager() Apr 16 20:07:03 meetoman: like what sort of problem? Apr 16 20:08:17 Napalm, accessing getSupportFragmentManager inside SherlockPreferenceActivity Apr 16 20:08:30 erm, what? Apr 16 20:08:36 why would you have problems with that? Apr 16 20:09:16 well, there is no getSupportFragmentManager() inside SherlockPreferenceActivity Apr 16 20:09:31 and I need it to reuse all the dialogs I've made Apr 16 20:09:31 Napalm: So I can grab the drawable from the transition xml, the imageView's background to that drawable, and then in anywhere I can call startTransition() on the drawable and the ImageView will be changed? Apr 16 20:10:03 meetoman: thats because its called getFragmentManager Apr 16 20:10:09 isnt it? Apr 16 20:11:04 http://pastebin.com/wtH9KFnL well this was a backwards compatible solution for a PreferenceFragment Apr 16 20:11:06 SherlockPreferenceActivity doesn't extend FragmentActivity Apr 16 20:11:12 nothing todo with SherlockFragment Apr 16 20:11:36 does the support lib now have that? hmm Apr 16 20:11:47 Napalm: Never mind, I found a Google DevBytes video that uses TransitionDrawables, thanks for your help. Apr 16 20:12:19 You should define your preferences in xml Apr 16 20:12:23 getFragmentManager wouldn't work, since all my dialog is extending android.support.v4.app.DialogFragment Apr 16 20:12:33 Use just preferenceactivity on unless now I'd have to make another set of clones Apr 16 20:12:55 Sounds like you need too many dialogs in preferences Apr 16 20:12:56 which doesn't make sense to have 2 of them Apr 16 20:13:04 SimonVT, they are all custom dialogs Apr 16 20:13:36 i still dont get it why the java coded layer is SO fat... have you ever considered how much power java draws? not to mention the programming language chaos created Apr 16 20:13:42 I don't get it Apr 16 20:16:24 https://groups.google.com/forum/#!msg/actionbarsherlock/tpR0bLF2U8o/UiEBJlEtqLYJ Apr 16 20:16:37 why did Jake Wharton do this? sigh, anybody know any branches that supports it? Apr 16 20:16:57 Eh? Apr 16 20:17:08 Blame google, Jake did nothing Apr 16 20:17:21 jake did everything Apr 16 20:17:29 he should invent a time machine so he can go back and fix it Apr 16 20:17:35 It's outside the scope of ABS, which is to provide an action bar Apr 16 20:17:45 It's still the support library that handles everything fragment Apr 16 20:17:58 any other library or tool? Apr 16 20:18:00 b.android.com and request a FragmentPreferenceActivity Apr 16 20:18:08 I mean, I can help writing it when I get time Apr 16 20:18:21 is there any ActionSherlockFragmentPreferenceActivity? Apr 16 20:18:52 meetoman: just use my PreferenceFragment and the activity can extend your normal SherlockFragmentActivity Apr 16 20:24:29 has anyone every gotten "Failed to load map. Could not contact Google servers."? Apr 16 20:30:51 meetoman: there is a SherlockPreferenceActivity Apr 16 20:31:54 whoosh Apr 16 20:39:43 SimonVT++ Apr 16 20:40:20 i basically created a wrapper object so that with like three lines of code in a PreferenceFragment and PreferenceActivity, i can support both Apr 16 20:41:22 ok figured it out, i had to add a new SHA fingerprint to my API Access for my new computer Apr 16 20:57:40 hey Apr 16 20:59:06 I'm doing a httpost but the content returned lacks certain foreign symbols. I tried doing toString("UTF-8") but it didnt help. What to do? http://pastebin.com/h6Ebts8e Apr 16 21:05:16 http://www.youtube.com/watch?v=FjYns7zqW0Y Apr 16 21:08:43 I've read some one Google guice and want to include it in my project since we need testing. Googling i get alternatives such as Dagger and RoboGuice. Maybe someone here has experience in this. Are those alternatives (RoboGuice/Dagger) = Guice+extras (enabling me to use basic Guice for e.g. testing my model) - or are they completely different. (I understand AOP can't be included) but how Apr 16 21:08:43 about fundamental @Inject annotations that i might want to test for instance in a closed environemnt with console output only. Apr 16 21:09:20 I'm working with a small team... Don't have time to experiment. Would appreciate someone with experience in using Guice and Android Apr 16 21:10:39 ByronZED: looks like a pyramid phishing thing Apr 16 21:11:53 what's a pyramid phishing thing ? Apr 16 21:12:19 you know a prymid scheme ? Apr 16 21:12:52 like a bank or government ? Apr 16 21:12:58 where the first one who joins makes all the money Apr 16 21:13:01 hahaa Apr 16 21:13:05 well done, kinda Apr 16 21:13:14 this isn't it Apr 16 21:13:33 https://www.youtube.com/watch?v=NYeR_gD73zs&list=PLRKRiObmDXxlzkkDd4bzH5EWqd1OGe5jl Apr 16 21:14:06 A pyramide consists of a golden "top" which relies on proletarian mass. This golden part of this pyramide will detoriate over time and left is the workers creation. Apr 16 21:15:32 well in my reference I mean the exponent of growth Apr 16 21:15:47 but still think it's vapourware Apr 16 21:15:50 :) Apr 16 21:17:31 maybe, maybe not Apr 16 21:17:38 you're not losing anything, so it doesn't hurt to try Apr 16 21:17:56 well there are a few things that stand out Apr 16 21:18:04 the use of an NDA for one Apr 16 21:18:24 I can send you an invite so you can review it yourself Apr 16 21:18:32 na Apr 16 21:18:44 but thanks Apr 16 21:18:49 np Apr 16 21:19:24 I'm getting a crash inside dvmHeapScanMarkedObjects() inside dvmCollectGarbageInternal () Apr 16 21:19:28 anyone familiar with this? Apr 16 21:19:33 it's ok Kindle Fire 1st gen Apr 16 21:19:42 very random Apr 16 21:19:48 ly* Apr 16 21:20:02 I think the Kindle is very random :) Apr 16 21:20:20 tell me about it x_X Apr 16 21:20:32 I really would appreciate any hints/pointers on that crash Apr 16 21:20:54 never seen any dvm* crashes Apr 16 21:25:13 Hey fellas, anyone here have experience with ORMLite? I'm trying to figure out if it's a "better" option (DRYer, more maintainable, etc.) than the standard sqlite stuff Apr 16 21:28:05 is there some reason you need it ? Apr 16 21:28:12 cause usually thats how I decide Apr 16 21:29:47 StingRay_: That's a good way to look at it. Honestly, no. Coming from my webdev experience with rails though, I was feeling like writing the sql queries directly in my activity felt… smelly. Apr 16 21:30:14 naa Apr 16 21:30:19 not smelly Apr 16 21:30:23 flexible Apr 16 21:31:30 Zagnaut: if you are just worried about embedding a language in a language and string concats, there are a few fluent interfaces / builders to create queries - although i haven't used them Apr 16 21:31:47 if you are also after the o/r mismatch, then yeah - ormlite seems popular Apr 16 21:32:02 i just use straight queries Apr 16 21:32:25 In my use case, I have a collection of ServerKeys (title, host, port, pass) being written to a file, however, overwriting them has become a pain. I want to refactor out the writing/reading from files and take advantage of tables Apr 16 21:33:19 Zagnaut: so just key / values , or more ? Apr 16 21:33:34 Yep, key/values. Strings and an int for the port Apr 16 21:33:57 The IO is being currently written into a singleton that I use in my activities, so in the process of trying to refactor to a database, my design choices are being called into question. Apr 16 21:34:12 i.e. should I do database work in the activities Apr 16 21:34:41 if there were a lot of keys , i would use MapDb .. but if you just have a few , yeah - sqlite / or plain file journaled the way Preferences does Apr 16 21:35:15 or if you need to index on multiple things, etc Apr 16 21:35:48 anyone here developed for Kindle Fire ... possibly 1st generation Apr 16 21:35:51 ? Apr 16 21:35:56 a little off topic, but can anyone see mirror API in their dev console (under services)? Apr 16 21:40:54 bankai_: no but I can add it from google api eclipse plugin Apr 16 21:41:06 you nick from bleach ? Apr 16 21:41:12 yep Apr 16 21:41:16 nice Apr 16 21:41:18 :) Apr 16 21:42:08 i'll take a look at eclipse, thanks -- wonder what's going on with the dev console... not sure if google haven't rolled it out or only rolled it out to those who ordered glass Apr 16 21:46:27 StingRay_, g00s: Sorry, got pulled into some reading. Thanks for the advice, do you have any examples that you'd recommend I follow? Currently digging into http://www.vogella.com/articles/AndroidSQLite/article.html Apr 16 21:51:08 Zagnaut: personally I didn't like that article Apr 16 21:51:20 confused me on what turned out to be quite simple Apr 16 21:51:36 but natively and artist, so… that could be why Apr 16 21:51:56 yeah, i empathize with the confusion :/ Apr 16 21:52:31 StingRay_: any recommendations for alternatives then? Apr 16 21:53:13 not sure tbh, not sure there was anything that made me think, "hang on, this is easy" :) Apr 16 21:56:33 any intellij users here? Apr 16 22:03:40 <__import__> Anyone here using netbeans? Apr 16 22:04:08 <__import__> When I try to change options for Android SDK, the Ok button greys out, and I can't save anything. Apr 16 22:04:26 <__import__> Using netbeans 7.3, all up to date, no plugins. Apr 16 22:09:59 How can I kill an AIDL-based service in middle of a call? Apr 16 22:11:58 Well I'll ask anyway in case there is a universal fix. I've rebuilt my project in intellij and now I'm getting a Apr 16 22:12:14 "cannot find symbol" error every time I have a class name in a file. Apr 16 22:17:32 I've been trying for 2 weeks to solve a problem but I just can't wrap my head around it! Apr 16 22:18:22 I have an activity that calls a pendingIntent via alarmmanager. Apr 16 22:18:36 Rescue9: that sentence makes no sense Apr 16 22:18:59 I'm just learning. I am probably describing it wrong. Apr 16 22:19:16 evanc: but I'm guessing you understand what he means :P Apr 16 22:19:16 let me try and explain more simply... Apr 16 22:19:49 I have an activity. it starts an alarm. the broadcastreceiver catches when the alarm ends and restarts the alarm if no activity occurred. Apr 16 22:20:09 Quacked: if I had to guess, he's passing a PendingIntent to AlarmManager, but I've learned me lesson about making assumptions when it comes to #android-dev Apr 16 22:20:17 learned my lesson, too Apr 16 22:20:19 :) Apr 16 22:20:24 now, I need to catch screen_off and user_present events as well. Apr 16 22:20:48 the user_present cancels the current alarm, and the screen-Off restarts a new alarm. Apr 16 22:21:06 My probem is that I can't seem to use the same alarm to catch it for canceling and restarting. Apr 16 22:21:26 does this make better sense now? Apr 16 22:21:50 weeeelll.. Apr 16 22:22:20 the root problem isn't that I can't code it, it's that I don't know how to design it to work properly. Apr 16 22:22:26 to cancel an alarmmanager you have to create an identical intent and do alarmManager.cancel(pendingIntent) Apr 16 22:23:42 What causes a "cannot find symbol" error, in my case the symbol is: class MainActivity Apr 16 22:24:54 Rescue9: like so: http://pastebin.com/k3HaeeVK Apr 16 22:25:02 Quacked: can I create an identical intent in another class and have it cancel the initial alarm? Apr 16 22:25:36 yup Apr 16 22:25:46 like in the example I pasted Apr 16 22:26:54 Aaaaah... so if I use the same requestCode then it will cancel the previous requestCode. Apr 16 22:26:56 RIght? Apr 16 22:27:22 Could someone tell me how to kill an AIDL-based Service? Apr 16 22:28:13 Rescue9: correctomundo Apr 16 22:28:36 Woot! Thank you. I think you've just solved my problem. Apr 16 22:28:49 :) Apr 16 22:29:36 maslen: tell the service to call stopSelf() Apr 16 22:29:44 on another note... can someone explain Context to me in simple terms? or at least point me to a page somewhere. Everything I've found explaining context is exceptionally hard to understand. Apr 16 22:31:07 Rescue9: you looked at the class page ? Apr 16 22:31:25 I found it quite easy to understand, and I'm quite thick Apr 16 22:31:29 and not a programmer Apr 16 22:31:31 lol Apr 16 22:31:42 yea yea yea... we've been here before StingRay_ Apr 16 22:31:44 lol Apr 16 22:32:00 see, I even have no memory too Apr 16 22:32:00 which class page are you refering to? Apr 16 22:32:06 or a crap one cause I dont remember Apr 16 22:32:12 android docs Apr 16 22:32:29 http://developer.android.com/reference/android/content/Context.html Apr 16 22:32:41 like just the overview there Apr 16 22:32:47 zhobbs: The issue I'm having is that AIDL calls can sometimes raise exceptions. However, there is no mechanism to transfer that exception over IPC. So I'm trying to kill the Service from the AIDL call it makes. Apr 16 22:34:09 StingRay_: so for this word app I'm working on I first created the httppost request in the Activity (knowing that running it in the main thread was bad, but planned to move it when I got it working). Then I got it working and figured IntentService would be nice. So I got it working fine in IntentService until I wanted to abort the search midway. Apr 16 22:34:23 Ok... say I have an Intent(context, MyClass.class); Is this the same as Intent(this, MyClass.class);? Apr 16 22:34:52 maslen: you'll get a RemoteException Apr 16 22:34:54 StingRay_: which cannot be done in IntentService. So I wanted to try a Service, but it turned out Services runs in same thread (by default). So now I'm almost done with an asynctask Apr 16 22:34:57 depends what your context is Apr 16 22:35:04 :D Apr 16 22:35:15 <__import__> When I try to change options for Android SDK, the Ok button greys out, and I can't save anything. Netbeans 7.3. Apr 16 22:35:24 maslen: I do connection counting, and when no one is connected, and the service isn't running background tasks I call stopSelf() Apr 16 22:36:11 Rescue9: "this" in an Activity is usually the context Apr 16 22:36:32 but not always :P Apr 16 22:37:13 whew.... ergo a simple explanation of context would be nice. :-P Apr 16 22:37:42 * Rescue9 knows he's...... newb. Apr 16 22:38:05 Contexts are needed for Androidy things, like system services or starting another activity or creating a notification Apr 16 22:38:35 Activities and Services are contexts, so often you use "this" to mean this activity which is a context Apr 16 22:42:57 is there a way to give out a paid app free via download code or something Apr 16 22:43:40 zhobbs: I can't just let the exception be raised though, as the AIDL Service makes a call into my main Activity (for sending UI updates). I need a way to terminate the Service during the AIDL call, within the Activity. Apr 16 22:43:43 i.e. it's my app and i'd like ot give out free downloads as promotion Apr 16 22:43:52 speakingcode-wor: no Apr 16 22:44:08 evanc: o. there should be :( Apr 16 22:44:13 zhobbs: If I don't catch the exception, the entire app will crash Apr 16 22:44:36 maslen: guess I don't understand. Apr 16 22:45:11 maslen: you'd catch the appropriate exceptions in your service code, and the remote exceptions in your activity code Apr 16 22:48:41 What causes a "cannot find symbol error" if I explicitly import the file that the compiler is looking for? Apr 16 22:48:44 zhobbs:Activity A lanches Service S, which uses AIDL. S makes an AIDL call into Activity A. That call can raise an Exception. If it does, I want A to kill S, without crashing. Apr 16 22:49:32 maslen: so S calls a callback registered by A? Apr 16 22:50:27 zhobbs: I would describe it as S making a call (via AIDL) into A. I'm not sure if that's the same thing or not. Apr 16 22:50:51 maslen: I wouldn't know how that would be done except via a callback Apr 16 22:52:30 zhobbs: It's possible to have two-way AIDL-based communication between a Service and Activity, where both the Service and Activity are able to initiate AIDL calls. Apr 16 23:08:59 So retrofit doesn't support multiple concurrent requests.. hmm Apr 16 23:09:49 basically I'll have to daisy chain the callbacks Apr 16 23:10:20 time to find food and charge my laptop Apr 16 23:13:30 is there something special you need to do with widgets to handle a screen rotation? Apr 16 23:13:33 or other configuration change Apr 16 23:14:32 How can gui components be added and removed on while the an app is running? For example, if a user has toggles on a ToggleButton, an EditText displays and if the user toggles off the button, the EditText is removed. Apr 16 23:15:28 canadiancow: appwidgets? make sure you're doing a full update with updateAppWidget, only the latest RemoteViews are cached and the widget is recreated on rotation Apr 16 23:16:32 BullShark: Look up View.GONE and View.INVISIBLE Apr 16 23:16:52 Any NDK pros here? Apr 16 23:19:03 Anyone got experience with AIDE - Android Java IDE? It looks awesome Apr 16 23:19:10 https://play.google.com/store/apps/details?id=com.aide.ui Apr 16 23:19:16 It's a pain to use simply because it's.. well, on your device. Apr 16 23:19:40 ˆ-- this Apr 16 23:19:46 But I was able to set up libGDX while at work without the help of a PC Apr 16 23:21:44 I'm starting to think System.loadLibrary's implementation is System.loadLibrary(String s) { throw new java.lang.UnsatisfiedLinkError(); } Apr 16 23:25:34 kakazza -> do you know if there's an example of that in the api demo? Apr 16 23:25:35 Quacked -> how do you get java jdk on android? Apr 16 23:25:35 Quacked -> i saw it but have not tried it yet Apr 16 23:25:56 Aide is awesome. Apr 16 23:26:32 I dev with it when I'm on the road with only my tablet. The only thing I wish it would do is properly run native Java, but I understand the problems with that. Apr 16 23:27:34 I only wish for one thing right now, and it doesn't seem to want to happen. Apr 16 23:30:23 Rescue9_AFK: I'm thinking it would be better just to get a Win 8 tablet :P Apr 16 23:34:14 ok can anyone tell me what an is outside of xml, cant seem to find a class reference Apr 16 23:34:33 Don't believe it is anything. Apr 16 23:34:37 and need to do a stateList with id's that in xml are set on Apr 16 23:35:07 It's more of an entry to the specific XML item. Apr 16 23:35:11 hmm well in a stateList* how does one set id's ? Apr 16 23:35:58 and example being that the standard seekbar wants id's to control the background statelist Apr 16 23:36:57 I've honestly no clue, and Google turns up one useless result. Apr 16 23:37:50 I know Apr 16 23:38:04 I ask in here as a last resort normally Apr 16 23:38:29 Oh, I see. I believe you send addState() to the StateListDrawble Apr 16 23:38:38 indeed Apr 16 23:38:39 Whereas the first parameter is a list of true states, and the second is the drawable. Apr 16 23:38:49 yeah I get that Apr 16 23:38:57 I'm assuming to change it, you'd send the same first array. Apr 16 23:38:58 except there are no states of progress Apr 16 23:39:16 I've done that with android.R.attr.* for switches etc Apr 16 23:39:26 but in a seekbar it expects id's Apr 16 23:39:42 Hm... Wish I knew. Apr 16 23:40:03 And yeah, this is my usual last resort. I've had it with the NDK. Apr 16 23:47:47 re Apr 16 23:48:04 So trying to figure out a nice clean solution to allow Retrofit to support multiple concurrent requests Apr 16 23:50:15 Wow, awesome work Google Apr 16 23:50:20 how so Apr 16 23:50:37 Making your project have native support makes it clear your library folders. Apr 16 23:50:46 That's just spiffy. Apr 16 23:58:31 huh? Apr 17 00:00:29 is the sctp kerlen option activated? Apr 17 00:02:06 Any one can have a check to this post? http://stackoverflow.com/questions/16028450/surfaceview-refresh-in-android Apr 17 00:06:05 hi Apr 17 00:11:57 I asked over in #android but maybe you developers might know. Apr 17 00:13:02 Am using emacs on Nexus7 but is stuck in landscape. So I got running in Terminal Emulator app. Works in landscape but segfaults in portrait. Any idea why? Apr 17 00:14:06 why don't you just gdb the core dump and figure it out yourself? Apr 17 00:14:13 Got my issue fixed by modifying the Apache client for retro and providing my own impl Apr 17 00:14:41 obviously it's not intended to be run in portrait and makes some assumptions about that Apr 17 00:17:44 wabz: I took a look at a few likely spots but didn't see a core dump file. Apr 17 00:17:57 StingRay_: new java updates for mac Apr 17 00:18:20 huh, and xcode Apr 17 00:18:28 ;) Apr 17 00:18:32 and motion Apr 17 00:18:39 i have got a question: i started a new Thread in the MainActivity of my app to do some work. now i want to give some info about the progress in my UI. i think there are two possibilities: 1 using an intent to send the info as local broadcast 2. using a handler, which i call from my new thread. am i correct? which one is to prefer? Apr 17 00:18:40 hey how do i run 'am' or 'pm' from terminal or ssh ? when i try to start either from outside 'adb shell' it crashes my phone Apr 17 00:19:09 g00s: holy fk! Apr 17 00:19:17 1.24gb ??! Apr 17 00:19:45 also, did they skip 19? Apr 17 00:19:58 why would an app segfault in portrait but not in landscape? what kind of assumptions might an app make that would result in a segfaut? Apr 17 00:19:59 Has anyone ever seen an issue with startActivity(Intent); in which it just hangs and the intent getting invoked doesn't get created/ Apr 17 00:19:59 last week, I installed 7u17 on a fresh gentoo install, and now I see 7u21? Apr 17 00:20:26 rburton-, no Apr 17 00:20:34 okay strange I need to track this down Apr 17 00:20:52 rburton- is this from adb shell ? Apr 17 00:20:59 device Apr 17 00:21:28 let me get the gist Apr 17 00:21:33 https://gist.github.com/rburton/5400775 Apr 17 00:21:52 It hits line 4 and I have break points in my MessageListActivity (even the constructor) Apr 17 00:21:53 notta Apr 17 00:23:09 https://gist.github.com/rburton/5400783 Apr 17 00:24:00 Hi, I'm design an app with only one activity. I'm using fragments, it's ~15 fragments. Is it a good practice ? Apr 17 00:24:15 yea its fine Apr 17 00:24:20 depends on what your app is doing Apr 17 00:24:25 fragements don't share the same lifecycle that activies do Apr 17 00:24:32 so all you incur is the cost of objects and gc Apr 17 00:25:16 Okay so when I remove startActivity(intent); from the source Apr 17 00:25:18 it doesn't bomb Apr 17 00:25:28 and the app functions fine. Interesting Apr 17 00:25:38 how do you figure it's bombing? Apr 17 00:25:41 read the logcat Apr 17 00:25:50 Nothing there... Apr 17 00:25:54 it just .. hangs? Apr 17 00:26:16 maybe it's there Apr 17 00:26:17 there is something in logcat Apr 17 00:26:19 I shouldn't use the term bombing out since its not doing that Apr 17 00:26:36 you probably started some activity that just doesn't do anything Apr 17 00:26:38 The logs are soo full of junk ugh its aoo anoying Apr 17 00:26:40 or you looped yourself Apr 17 00:26:50 AH I know what it is Apr 17 00:26:54 well I know whats triggering it Apr 17 00:27:00 interesting Apr 17 00:27:08 intent.putExtra(CONVERSATION_KEY, conversation); Apr 17 00:27:20 if I comment that out, the activity loads Apr 17 00:28:06 do u need to have something in your manifest file to load new activities (ie. do what 'am' does?) Apr 17 00:28:27 you need to define them in the AndroidManifest Apr 17 00:28:48 Apr 17 00:30:41 do what 'am' does? Apr 17 00:31:17 Android manifest I think Apr 17 00:31:19 am start -a android.intent.action.MAIN -n com.example.hellojni/ Apr 17 00:31:21 com.example.hellojni.HelloJni Apr 17 00:31:36 it is something you would run with 'adb shell' - a command line interface for activity manager Apr 17 00:32:13 huh? Apr 17 00:32:25 you *have* to have that in your manifest before you can run that am command Apr 17 00:32:45 i see Apr 17 00:35:47 any NYC people here Apr 17 00:35:56 nah MTL Apr 17 00:36:08 MTL? Apr 17 00:36:20 yea its 6 hrs north of NYC Apr 17 00:36:27 ah Apr 17 00:36:32 Well I get "04-16 17:37:31.012: WARN/dalvikvm(15431): threadid=1: thread exiting with uncaught exception (group=0x415ca438)" Apr 17 00:36:42 well now time time to see what this is Apr 17 00:38:51 what's the command to pull the trace logs again. adb pull Apr 17 00:39:05 it should all show up in logcat Apr 17 00:39:10 logcat -s AndroidRuntime:* Apr 17 00:39:15 or logcat -s dalvikvm:* Apr 17 00:39:19 http://developer.android.com/tools/help/adb.html Apr 17 00:40:00 nick9998 doesn't show you the path of the trace files Apr 17 00:40:12 pfn I don't have logcat hmm Apr 17 00:40:14 the command Apr 17 00:40:18 adb logcat Apr 17 00:42:16 Gasp nothing but that one line Apr 17 00:43:39 try this again to verify the warning Apr 17 00:44:53 you need to check both lines Apr 17 00:45:16 adb logcat -s 'AndroidRuntime:*' 'dalvikvm:*' Apr 17 00:46:42 I'll check it out thanks Apr 17 00:47:48 * StingRay_ wants to kill seekbar Apr 17 00:47:59 * rburton- dies Apr 17 00:48:01 ;) Apr 17 00:51:50 * nick9998 quits Apr 17 00:53:12 We have another winner! Apr 17 00:53:13 ;) Apr 17 00:53:50 Why do people quit Apr 17 00:54:32 Iam creating a Widget Configuration Activity but wanted to show a preview of the widget as it is being configured. Apr 17 00:55:53 I guess Iam trying to figure out how a container to put the layout in for displaying. Ive done grids , lists and such but not a layout in a layout before Apr 17 00:56:23 Apr 17 00:57:31 ok bed time for me Apr 17 00:57:36 later Apr 17 00:57:41 failed attempt i modding the existing seekbar Apr 17 00:57:43 ugh Apr 17 00:58:00 laters all Apr 17 00:58:08 there is always tomorrow, or for u a few hours from now Apr 17 00:58:23 well it is my tomorrow Apr 17 00:58:31 or rather my tomorrow is 22h away Apr 17 00:58:33 :) Apr 17 00:58:36 night Apr 17 01:19:53 i previously installed the SDK into a custom directory using the installer exe, before the last release. i uninstalled it before doing a fresh install with the latest sdk, and let it install to the default Program Files (x86)\Android\android-sdk this time. Apr 17 01:21:10 i can only start the SDK manager and tools\monitor.exe etc fromt he directory i originally installed to the first time, and the SDK manager says the SDK path is in that custom directory, and not the new path. Apr 17 01:23:29 then set your path manually Apr 17 02:20:27 http://android-developers.blogspot.com/2013/04/update-on-tablet-app-guidelines-and.html Apr 17 02:25:30 when is it best to use the master/detail flow and when not to use for an android app? Apr 17 02:25:56 anyone have a recommendation for a color selector library? Apr 17 02:29:55 there's https://github.com/attenzione/android-ColorPickerPreference , though if your users aren't going to demand being able to chose /any/ color, I'd recommend having them pick from swatches rather than using a full color picker like that one Apr 17 02:31:14 cbates: I've used https://code.google.com/p/color-picker-view before Apr 17 02:31:45 color-picker was what I was looking at as well Apr 17 02:32:11 take a look at https://play.google.com/store/apps/details?id=org.jf.Penroser if you want to see it in action Apr 17 02:32:22 open source, so you can peer there, as well :) Apr 17 02:33:20 haven't tried to integrate a library yet figured it would be interesting Apr 17 02:33:52 its a bit overkill but users can be so fickle about their colors Apr 17 02:33:56 It was pretty easy. I just grabbed the source and threw it in src :) Apr 17 02:35:35 i like the picker in Keep, but it is very simplistic. though i've considered doing something like that with a button to open a full color picker Apr 17 02:36:49 stupid question, "keep" ? Apr 17 02:37:10 https://play.google.com/store/apps/details?id=com.google.android.keep Apr 17 02:37:29 oh that keep Apr 17 02:37:42 not open source, but the picker would be easy to imitate as it's just a grid of like 9 colors or so Apr 17 02:38:24 that was what I was going to do, then I saw that there was a bunch of open source ones Apr 17 02:38:43 why use a hammer when you can use a freight train ;-) Apr 17 02:39:25 a problem with the picker is that it's hard to specifically select a color, or hard to match it if you allow multiple selections Apr 17 02:39:40 some have hex input which is good for power users, but awkward Apr 17 02:40:02 yeah. you can usually solve that by having a "recent colors" thing at the bottom or something Apr 17 02:40:10 was having the same debate with the transparency slider I added Apr 17 02:42:57 thanks for all the input, going to try to add the picker now. Apr 17 02:42:58 hey guys, I have a login page and I wanted to add a sort of rounded box aruond the text fields to make it look better, how do I do this? Apr 17 02:43:47 add a shape to background I think Apr 17 02:44:10 cbates, you can do that? Apr 17 02:44:59 yeah saves a ton of time. just define a shape.xml in drawable and reference the shape in your layout Apr 17 02:45:12 can add curves, borders, colors etc Apr 17 02:46:08 you my need to wrap your text box in a layout, haven't tried it directly on object only layouts Apr 17 02:48:12 cbates, ah cool i'll look it up and give it a shot, thanks man! Apr 17 02:50:51 Apr 17 02:50:51 Apr 17 02:50:51 Apr 17 02:50:53 Apr 17 02:51:01 Apr 17 02:51:03 Apr 17 02:51:05 Apr 17 02:51:07 Apr 17 02:59:05 JesusFreke thanks that worked perfect. That was a LOT easier then I thought it would be Apr 17 02:59:16 heh :) Apr 17 02:59:21 also: pastebin! :p Apr 17 02:59:38 yeah sorry about that **** ENDING LOGGING AT Wed Apr 17 02:59:58 2013