**** BEGIN LOGGING AT Wed Aug 06 02:59:59 2014 Aug 06 03:00:09 I mean description in the class overview Aug 06 03:04:02 anyone? Aug 06 03:05:00 jimmy_lo_chien_f: https://weblogs.java.net/blog/2006/05/04/understanding-weak-references maybe? Aug 06 03:05:10 weak references are a java thing, not an Android thing really Aug 06 03:05:27 so ask in #java?? Aug 06 03:07:13 sure, why not Aug 06 03:08:43 Leeds, thanks. Though I've read the blog. Aug 06 03:09:06 Maybe I have to read more carefully. Aug 06 03:19:06 in the sdk manager, Android 4.4W (Api 20) does not have any Google Apis system images. why is this ? Aug 06 03:21:04 is Api 20 (W) *ONLY* for wearable stuff? Aug 06 03:21:47 I'd assume thats what the (W) is for? Aug 06 03:21:55 Saying that Aug 06 03:22:22 Doesnt seem like a great idea. Does that mean you have to develop for wear separately? Aug 06 03:22:37 Cant do because you can add wearables to your AS project when you create it Aug 06 03:22:45 Dunno haha Aug 06 03:22:58 google is aweful at communication Aug 06 03:23:02 *awful Aug 06 03:23:43 ^ I'll go ahead and say you did that ironically ;-) Aug 06 03:24:18 yeah, they have said a few times that W is for Wear Aug 06 03:25:31 Leeds right, but what if you aren't doing any wearable components. its not a preview, so should targetSdk=20 ? Aug 06 03:25:59 g00s: if you're not writing a Wear app, don't target 20... I think Aug 06 03:26:25 i get confused because the W app is packaged in the big app Aug 06 03:26:36 yo dawg, we heard you like apps ... Aug 06 03:29:43 Api 20 W not having Google API images makes sense in light of " Wearables don't support the Google Play store" Aug 06 03:30:00 so again my question is - is 20W only running on a watch ? Aug 06 03:30:32 holy shit, for the first time in 10 years i want a fucking UML deployment diagram Aug 06 03:32:53 Its good to know as a recent graduate that we weren't bullshitted when we were told that UML diagrams actually get used. Aug 06 03:33:24 For the projects we had to do during our assignments, there was absolutely no need for a UML diagram, and they were never referenced by students, but we had to do them anyway. Aug 06 03:33:55 g00s: again, I think the answer is "yes, 20W only runs on watches" Aug 06 03:34:12 so then i should be saying targetSdk=19 i guess Aug 06 03:34:16 (still) Aug 06 03:34:36 Thing is Aug 06 03:34:42 That begs the question of why not 1W then? Aug 06 03:34:50 and I suspect L-release will get an API bump over L-preview Aug 06 03:34:54 If W only runs on wearables, why continue the counting system? Aug 06 03:35:01 Anthaas exactly Aug 06 03:35:24 Anthaas: because it's still Android? Aug 06 03:35:46 can anyone tell me how to grab a copy from the original samsung core firmware? is it /system/system.img ? Aug 06 03:35:48 yeah but presumably Wearable and Mobile versions will be divergent Aug 06 03:35:49 But if its a separate API, its not really a continuation of the previous APIs? Aug 06 03:35:54 LFS: #android-root Aug 06 03:36:11 bankai_au: I've been trying there for three days Aug 06 03:36:17 and googling it as well Aug 06 03:36:29 and, like we keep saying, not getting an answer there doesn't make this the right place to ask Aug 06 03:36:41 ah we have the desperation / entitlement / fuck your rules situation Aug 06 03:36:47 g00s: My honest guess would be no, 20W doesnt only run on wearables - I'd imagine there is something in there for interaction between devices and wearables, or maybe one or two bug fixes? Aug 06 03:37:29 Like you said, an app within an app. Aug 06 03:37:42 oh I didn't know it's a taboo Aug 06 03:37:48 Anthaas this seems like a very bizarre situation to me. i'm guessing there needs to be some ABI / protocol version stability between the mobile and wearable pieces Aug 06 03:37:51 fine Aug 06 03:38:36 but still, i would imagine lets say a big security issue is found on the watch side ... do they put out a new image for both watch and mobile ? Aug 06 03:39:41 i would think maybe the watch gets a .1 and an OTA, but the mobile device stays the same Aug 06 03:39:43 Hmm, I'd imagine they'd just use the opportunity to push out more bug fixes at the same time? Try and force a silver lining? Aug 06 03:40:00 this is a SCM trainwreck Aug 06 03:40:16 Lets write a letter. Aug 06 03:40:17 haha Aug 06 03:40:29 Didn't some Google people used to frequent this place? Aug 06 03:40:32 dear hipsters, Aug 06 03:40:47 please read up on the last 10 years of all good things in software Aug 06 03:40:49 thanks, Aug 06 03:40:52 --g00s Aug 06 03:41:01 p.s Anthaas said Hi. Aug 06 03:41:05 hehe Aug 06 03:41:57 Haha, honestly, this is the kinda shit I stay on here for. I've just graduated (going on to post grad studies), but getting knowledge and stuff from guys in here is awesome. Aug 06 03:42:58 there are at least two people in here right now who are - or were - Google/Android engineers Aug 06 03:43:08 doesn't mean they're listening, or active in any way anymore Aug 06 03:43:24 Oh of course, I just remember a time when they were. Aug 06 03:43:48 that time has passed, for unknown reasons... Aug 06 03:44:18 they went to google+ Aug 06 03:44:25 ^ Aug 06 03:44:36 If I remember, one of the people actually left Google altogether? Aug 06 03:44:52 I suspect they were encouraged to do that, but they don't seem to be particularly active there now, either Aug 06 03:45:10 Anthaas: you're probably thinking of romainguy - he's still at Google, as far as we know, but not Android Aug 06 03:45:37 Thats the one. I thought I remembered a tweet saying he was leaving. Aug 06 03:46:11 he still spoke at I/O this year Aug 06 03:46:12 i was surprised romain gave a talk at i.o Aug 06 03:46:35 on android stuff too Aug 06 03:47:15 jbq was probably the biggest engineering quitter Aug 06 03:47:23 highest-profile, that is Aug 06 03:47:24 Anthaas the reason for UML, as i recall, was back in the OO hayday, you had 3 notations: booch, OMT, and something else ... Aug 06 03:48:07 UML was to ugh, unify :) the 3 so you didn't have all these software books using different notations Aug 06 03:48:24 turned out, they went nuts though, and there was a big cultural change to agile Aug 06 03:48:34 I vaguely remember, wasn't that from 3 different schools of thought as to what was actually important within OO design? Aug 06 03:48:38 and in agile, nobody does big upfront planning or documentation Aug 06 03:48:55 Anthaas oh, probably more than 3 schools. Aug 06 03:49:03 nobody could even agree on a definition Aug 06 03:49:42 Meiler Paje-Jones said this Aug 06 03:49:46 Booch said that Aug 06 03:49:50 Rumbaugh said that Aug 06 03:49:58 Bertrand Meyer thought it was that Aug 06 03:50:00 How often is it even used in industry then, given that the majority of applications apart from those which are safety-critical or embedded are ran using agile methodologies. Aug 06 03:50:07 Ivar Jacobson thought it meant this Aug 06 03:50:28 s/applications/projects Aug 06 03:50:45 i'm not actually sure. If you were at Mitre, i suspect they may be using RUP Aug 06 03:50:53 maybe some UML in there Aug 06 03:52:26 Anthaas there are parts of UML that are useful Aug 06 03:52:35 speciically, harel statecharts XD Aug 06 03:52:44 Oh I agree - never seen one of those though. Aug 06 03:52:46 thats about it ;) oh , and sequence diagrams Aug 06 03:53:15 static views of the system - class - can be grabbed from code through analysis Aug 06 03:54:43 Anthaas i'm not even sure how a UML deployment diagram would look these days with things like virtualization, docker containers Aug 06 03:54:48 The thing I found is, there was so much focus on documentation, project management styles and techniques, and assessments within conception etc, that I kept thinking how often is this even used. Aug 06 03:55:28 used, and used sucessfully are 2 different things ;) Aug 06 03:55:39 Oh we have had that pointed out to us too. Aug 06 03:55:42 the latter -- probably not much Aug 06 03:56:09 Such as there is no point in forcing different methodologies or approaches or documentation on a team that is unfamiliar or willing to change, etc. Aug 06 03:57:24 Anthaas sure, especially when your CEO makes 300x the worker bee Aug 06 03:57:35 woker bees don't give a shit Aug 06 03:57:40 ^ Aug 06 03:58:03 now, if the excess capital is redistributed to the worker bees, they may be more interested in improving things Aug 06 03:58:06 Exactly. On my industrial placement, everybody was underpaid and overworked, and the CEO turned up every day (Small company) in a McClaren MP4-12C. Aug 06 03:58:14 The company was falling apart. Aug 06 03:58:23 any ideas how to exclude certain resource directory e.q. values-da from build.gradle? Aug 06 03:58:24 About 3 months in, I was asked to run the department. Aug 06 03:58:55 eln: I think JakeWharton tweeted recently about something he was using for just that. Aug 06 03:58:59 eln huh, interesting. i can thing using gradle, make it additive Aug 06 03:59:05 rather than trying to take it out Aug 06 03:59:24 anthaas .. this gradle is nice but ehm can't find much tutorial on specific tasks. Aug 06 03:59:30 so have main, and then a flavor with values-da Aug 06 03:59:50 eln look at the iosched gradle files Aug 06 04:00:25 well, i make the resource files for language on main and the flavor to exclude them g00s Aug 06 04:01:01 if i do it the other way round, i will have to dup files for other flavors g00s. Not clean :( Aug 06 04:01:10 ok Aug 06 04:01:33 any ideas how to do this? :P g00s Aug 06 04:01:46 Anthaas anyhow, OO turned out not to be the great thing we were all hoping for; reuse, software factories, etc Aug 06 04:02:24 g00s OO is great :p but .. many don't agress .. e.q. linus :p Aug 06 04:03:04 part of OO is encapsulation of state; and state == bad for concurrency so ... in areas people are going to functional Aug 06 04:03:11 It was never going to be the perfect solution just because of the nature of products being made. How often are components going to be able to overlap between projects? Aug 06 04:03:52 from an ontology perspective, i find it easier to model a domain in terms of objects and behavior Aug 06 04:04:10 almost wonder if the human mind is just wired in a way that makes OO seem mostly natural fit Aug 06 04:04:15 for domain analysis anyhow Aug 06 04:04:42 but then the design, and implementation models, hmm. i read a book on compilers using OO that was a failure ;) Aug 06 04:05:26 I have to admit, I find OO the easiest of designs to understand. I dont really understand functional design (not the word Im looking for but brainfart) Aug 06 04:05:42 That might just be because I've tried to do it from reading languages (Haskell etc) rather than reading. Aug 06 04:05:50 Anthaas thats one interesting thing about Scala, is that it is multi-paradigm Aug 06 04:06:01 you can use as much functional as you are comfy with Aug 06 04:06:22 if you go haskel, you have no choice :) Aug 06 04:06:35 Hmm, i may have to have a peak at Scala at some point then :P Aug 06 04:06:50 I dont really do enough concurrency stuff on my own at the moment to warrant the need for improvement. Aug 06 04:06:57 the trade off is that, its kinda complicated :| Aug 06 04:07:22 Anthaas even in C++, the shift has been from OO (hierarchies, polymorphism) to generic programming Aug 06 04:08:18 I was actually reading something interesting the other day about C++. There is a lot of focus around pointers, but someone who had been developing for a long time was saying that there is actually very rarely a need for them. Only when you need to dynamically assign something. Aug 06 04:08:25 Anthaas yeaah ... especially on mobile, power constrained devices - more cores On isn't a sure bet Aug 06 04:08:58 I think PHP is an interesting approach - semi OO. Aug 06 04:09:12 OO when you need it, not when you don't. I guess thats similar to what you were saying about Scala? Aug 06 04:09:30 pfn can talk more about scala Aug 06 04:09:39 i prefer the lisp family languages Aug 06 04:09:41 Dont think he likes me :P Aug 06 04:09:51 me neither, well shit Aug 06 04:09:58 Haha Aug 06 04:10:08 I think my lack of experience/knowledge frustrates him. Aug 06 04:12:33 hm, so iosched has app targetSdk=19, wearable targetSdk=20 Aug 06 04:12:47 i guess that helps clear some things up Aug 06 04:13:02 Hmm, would maybe be a good idea to follow suit, but still doesn't really answer the question. Aug 06 04:13:06 hm g00s is still here Aug 06 04:13:17 i didn't do it Aug 06 04:14:30 Anthaas so are you thinking about getting your masters ? Aug 06 04:14:34 or PhD ? Aug 06 04:14:41 I've actually been accepted onto a PhD. Aug 06 04:14:56 Should that go tits up, I'll fall back to a Masters (which I was previously accepted on) Aug 06 04:15:14 Anthaas ah, OK. i'm not so sure in Comp Sci, if PhD is a good bet Aug 06 04:15:20 AI. Aug 06 04:15:32 Reasoning with Preferences. Aug 06 04:15:48 there was an article about this in the past 2 weeks or so, crap Aug 06 04:16:31 I think the University I am at was talking about putting on a course at the same time to become a lecturer there after. Aug 06 04:16:37 For free. Aug 06 04:17:13 I graduated with a First Class BSc(Hons) Software Development Aug 06 04:17:17 oops Aug 06 04:17:21 Software Engineering* Aug 06 04:17:26 It was rejigged. Aug 06 04:17:55 81% average (in the UK 70%+ = first class) Aug 06 04:18:46 My American friend says apparently 70% is equivalent in difficulty to 80% in the US from his experience. (He said its harder to obtain marks) Aug 06 04:20:54 very good ;) Aug 06 04:21:04 Guys, any ideas how to exclude certain resource folder in gradle build ? Aug 06 04:26:13 I am trying to create a SimpleCursorAdapter but I am having trouble figuring out how to get the layout integer of my list view Aug 06 04:27:09 it is in a fragment called fragment_main.xml and has and id of: Aug 06 04:27:10 pass it in? Aug 06 04:27:28 how do I reference it? Aug 06 04:27:33 R.layout.??? Aug 06 04:28:00 SimpleCursorAdapter adapter = new SimpleCursorAdapter(Context context, ListView listView); Aug 06 04:28:13 and have an appropriate constructor for your adapter. Aug 06 04:28:29 If you are overriding that is? Aug 06 04:28:41 I tend to use BaseAdapter and modify it to suit my needs. Aug 06 04:28:53 no Aug 06 04:28:54 http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html Aug 06 04:29:33 http://developer.android.com/reference/android/widget/SimpleCursorAdapter.ViewBinder.html ? Aug 06 04:29:38 just don't know how to reference the list view layout from that constructor Aug 06 04:30:18 tab1293: SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) use this constructor Aug 06 04:30:42 bhargavg, yes I know but for int layout how do i reference the list view described above? Aug 06 04:31:14 pass context, R.layout.YOUR_LAYOUT, YOUR_CURSOR, [FROM_FIELDS], [TO_FIELDS] Aug 06 04:31:42 it is in a fragment layout called fragment_main.xml and the ID is need some help again Aug 06 04:31:59 with that information what would YOUR_LAYOUT be in my case? Aug 06 04:32:15 bhargavg ^ Aug 06 04:32:20 tab1293: your layout file for listview rows Aug 06 04:32:22 I'm using phonegap Aug 06 04:32:31 i am trying to use Aug 06 04:32:36 why? you poor thing ... Aug 06 04:32:42 ant release Aug 06 04:32:52 but it says build.xml doesn't exist Aug 06 04:33:04 not sure what manifest file i should use if any Aug 06 04:33:20 not sure what i am doing really Aug 06 04:33:32 just want the errors to go away like this guy managed to do: Aug 06 04:33:36 https://github.com/ludei/webview-plus/issues/10 Aug 06 04:34:01 tab1293: first get the listview, ListView lv = (ListView)findViewById(android.R.id.list) Aug 06 04:34:34 tab1293: then create the cursoradapter, passing the layout file for your rows, from[] and to[] Aug 06 04:34:49 tab1293: then set lv.setAdapter(YOUR_CURSOR_ADAPTER_REF) Aug 06 04:35:01 okay thank you Aug 06 04:35:34 i have the same error Aug 06 04:41:09 bhargavg, in my list view item, do the IDs have to match the columns Aug 06 04:42:53 i have no idea what i am doing Aug 06 04:42:58 can anyone help me? Aug 06 04:44:21 Agamemnus were you using phonegap ? Aug 06 04:45:44 i was yes Aug 06 04:45:58 i am trying to add the webview+ plugin but it is proving impossible Aug 06 04:46:04 Agamemnus hardly anyone - if anyone at all - uses that here Aug 06 04:46:19 I got this error: https://github.com/ludei/webview-plus/issues/10 Aug 06 04:46:30 this guy is using ant Aug 06 04:46:37 i don't know how i can do what he did Aug 06 04:47:10 any ideas on "ant"? Aug 06 04:47:25 i am throwing the kitchen sink at this but it isn't sticking Aug 06 04:47:37 i have an ant problem in my kitchen too Aug 06 04:47:49 bankai_au use those little ant hotel thingies Aug 06 04:47:57 don't let the dogs eat them though Aug 06 04:48:07 especially the ones that smell like peanut butter Aug 06 04:48:09 what is it ? like a cockroach trap ? Aug 06 04:48:12 ya Aug 06 04:48:55 come on guys Aug 06 04:48:55 Ive just been on an amazon wish-list spree. Aug 06 04:49:08 (Kitchen related) Aug 06 04:49:08 :[ Aug 06 04:49:13 So many recipe books. Aug 06 04:49:16 Anthaas oh no, i have like 15 pages on my wish list :( Aug 06 04:49:38 i don't know how to work with ant or how he bypassed the errors Aug 06 04:49:43 :( Im hoping to get these soon though - all cooking things - I love cooking and happen to be good at it :D Aug 06 04:49:56 tab1293: you just create an int[] from = {R.id.FIELD_1, R.id.FIELD_2.....} Aug 06 04:49:58 Made a steak and ale pie yesterday - was sooo good. Aug 06 04:50:07 make the pastry too? Aug 06 04:50:14 Yeah - always. Aug 06 04:50:18 tab1293: those fields should be present in the layout file that you are passing Aug 06 04:50:27 home made pastry is so f'ing good Aug 06 04:50:31 Shortcrust though - I always prefered shortcrust on pies. Aug 06 04:50:40 and puff is a pain in the breasts. Aug 06 04:50:45 So much butter in pugg Aug 06 04:50:46 puff Aug 06 04:51:13 But yeah - it really is. Thinking of making some caramalised balsamic red onion and goats cheese tarts today after making some bread. Aug 06 04:51:29 tab1293: oops, typo that should be `to` not `from`. from should be String[] from = {COLUMNNAMES_IN_YOUR_TABLE} Aug 06 04:51:33 do you have a spare room? i'm coming to live with you Aug 06 04:51:40 Haha as a matter of fact I do :P Aug 06 04:51:44 bhargavg, okay thanks Aug 06 04:51:58 Cooking is so much fun and so enjoyable. My girlfriend calls me a feeder haha. Aug 06 04:52:23 Anyone that wants to get into cooking - I always say make your own loaf of bread and homemade soup to start with (still a favourite of mine) Aug 06 04:52:24 haha i've been called that before. i have no concept of portions and always make 10x more than i need Aug 06 04:52:28 Same! haha Aug 06 04:52:36 Too much is better than too little :D Aug 06 04:52:56 bankai_au i'm sure your dogs don't mind left overs XD Aug 06 04:53:04 I know that it is approx 75g pasta per person, for example, but I just chuck more in incase people want more! Aug 06 04:53:09 i keep getting in trouble for feeding them :( Aug 06 04:53:18 I like homely food though Aug 06 04:53:31 And only make from scratch Aug 06 04:53:41 Anthaas i've been curious about microfarming and stuff lately Aug 06 04:53:52 g00s: if one of them didn't load himself up on the shit of the other, there wouldn't be a problem. not MY fault they're getting fat Aug 06 04:54:02 For example, in the recent heat wave, homemade bread rolls, burgers, potato wedges, coleslaw, potato salad, etc. in the garden with a cold beer. Aug 06 04:54:08 bankai_au oh noes Aug 06 04:54:10 guys....anyone? Aug 06 04:54:29 Agamemnus phonefap isn't native android dev :( Aug 06 04:54:36 how did this guy "fix" the problem.... any hints? Aug 06 04:54:43 forget phonegap Aug 06 04:54:45 https://github.com/ludei/webview-plus/issues/10 Aug 06 04:54:59 and this channel isn't about "native android dev" Aug 06 04:55:12 as far as i know it is about android dev Aug 06 04:55:16 g00s: Its a great idea - over here its easy to get allotments, but I grew spring onions in my garden and they were fantastic. Herbs are the easiest things to keep going. They can sit in your kitchen window. Aug 06 04:55:58 I think Americans call them scallions? Aug 06 04:56:06 Just incase anybody was confused. Aug 06 04:56:21 Anthaas i'm worried about the crap on food these days, gmo, etc Aug 06 04:56:34 I just have a strict rule. Aug 06 04:56:42 of course, you have to make sure your soil is good and not contaminated Aug 06 04:56:42 I won't eat anything I didn't put together myself. Aug 06 04:56:59 must make for a hectic schedule Aug 06 04:57:04 Not at all Aug 06 04:57:10 Anthaas do you like the topic of nutrition also ? Aug 06 04:57:23 Err. For me its more of a matter of enjoying good food. Aug 06 04:57:40 I'd like to say that I paid a lot of attention to that, but I'd be lying. Aug 06 04:58:12 I just know that the stuff thats boxed together in supermarkets these days doesn't taste as good as my food, I don't enjoy it as much, and the nutritional value is better in my food. Aug 06 04:58:35 in the US, pretty much all processed / boxed stuff is shit + gmo Aug 06 04:58:44 Agamemnus: Slow cookers are fantastic for busy days. Get up early, pop your food in, go away for the day, come home and dinner is done. Aug 06 04:58:45 in the EU maybe stricter regulations Aug 06 04:58:56 i'm sure monsanto is working on fucking everybody over though Aug 06 04:59:14 the UK has quite a few strict regulations. I know golden grahams were illegal over here for a while - they had to change the recipe Aug 06 04:59:33 yeah we can't expert our effing apples because the pesticides are banned Aug 06 04:59:40 The best thing is too, if I make a load of soup, I can freeze it in plastic containers for a rainy day. Aug 06 04:59:52 Haha - I live in the part of UK famous for Apple Cider. Aug 06 05:00:00 And Cheddar Cheese :P Aug 06 05:00:07 oh man, cheddar + bacon Aug 06 05:00:16 Yeah Pork too. This is a good area for that. Aug 06 05:00:53 NO BACON Aug 06 05:01:06 if i raised a pig, i don't htink i could slaughter it though. it becomes family ;) Aug 06 05:01:14 I made some Stilton and Bacon bread rolls the other day - they were nice :D Aug 06 05:01:24 Haha, yeah, I don't think I could rear my own animals. Aug 06 05:01:35 Leeds can have turkey bacon Aug 06 05:02:00 heh heh, 'rear' animals :D Aug 06 05:02:16 Its the relationship with Wales coming through there :P Aug 06 05:02:22 They fill 'em, we grill 'em. Aug 06 05:03:17 how do I got about passing a contentresolver to a defined class? Aug 06 05:03:51 public function? Aug 06 05:03:59 public void setContentResolver(...) Aug 06 05:04:02 or a constructor? Aug 06 05:05:56 tab1293 probably pass in a Context, and do getContentResolver() Aug 06 05:07:54 Might make some cheese and bacon scones too Aug 06 05:08:00 Haha, sorry Im in a right cooking mood. Aug 06 05:09:51 oh man i'm hungry now Aug 06 05:10:04 Haha same. Aug 06 05:10:51 i am always hungry :( Aug 06 05:10:58 ALWAYS Aug 06 05:11:28 grigor oh no. maybe meals don't have enough protein, or your microbiota is messed up Aug 06 05:12:27 Prader-Willi syndrome Aug 06 05:13:11 Could be worse. Aug 06 05:13:15 Could be that hair eating one. Aug 06 05:13:47 g00s: i intake about 100-120 grams of protein Aug 06 05:13:49 bankai_au never heard of that one before O.o Aug 06 05:13:55 #IWORKOUT Aug 06 05:14:11 brb Aug 06 05:14:21 Clearly gone to work out. Aug 06 05:14:26 are we doing hashtags in IRC now ? Aug 06 05:14:34 They're everywhere. Aug 06 05:15:03 There are people on my social media feeds who honestly dont have a clue how they work Aug 06 05:15:23 back Aug 06 05:15:28 Recent post: #who put paperclips on the back of my shirt? Aug 06 05:15:37 It wasn't a typo - they happen all the time. Aug 06 05:18:35 Anyway - time for me to go and start making and baking! See you all soon! Aug 06 05:22:19 hmm, got an app I published a few weeks ago, for the day job - no promotion for the app or website so far, so very very few users Aug 06 05:23:03 during July, my total installs went from 8, to 9, to 10, then back to 9... Aug 06 05:23:07 g00s: as I was saying, no deficiency in anything :) I did however used to have when I had decided to pretty much stop eating Aug 06 05:24:14 the developer console is showing me this in a graph with steps of 0.5 installs :) so 8, 8.5, 9, 9.5, 10... what's 0.5 of an install? Aug 06 05:24:34 bailed half way through lol Aug 06 05:25:42 saw permissions, said bugger that? Aug 06 05:26:47 Leeds: what's the App? I will download it :) Aug 06 05:27:13 detachYo: are you in Hong Kong? do you want to ridicule me? if the answer to at least one of those isn't "yes", don't bother :) Aug 06 05:28:18 One of them is yes. Aug 06 05:28:21 lol Aug 06 05:30:11 https://play.google.com/store/apps/details?id=com.belegin.app Aug 06 05:30:13 go on, laugh Aug 06 05:30:17 morneng Aug 06 05:30:38 ondroed: morning? I am about to hit the bed... but, HI :) Aug 06 05:30:53 yes morning ^) Aug 06 05:31:02 ondroed: good afternoon Aug 06 05:33:05 Leeds: the app is solid dude Aug 06 05:33:20 What is your website backend? Aug 06 05:33:25 django Aug 06 05:33:31 F Yeah Aug 06 05:33:38 Are you from HK? Aug 06 05:33:53 I live in HK, I'm from the UK Aug 06 05:34:16 Oh ok. Aug 06 05:34:43 so i have service running in same thread with activities, and when activities exits, service restarts, onCreate called again. that's sad Aug 06 05:37:06 Leeds: may i know where you've hosted your backend? app looks good Aug 06 05:37:26 bhargavg: we're on Linode Aug 06 05:37:37 I have an ec2 instance running Perl Catalyst Aug 06 05:37:51 when I say "we" - it's me and the boss, and he's on his summer holidays right now :) Aug 06 05:38:00 Leeds, i have one suggestion in UI Aug 06 05:38:58 oh yes? Aug 06 05:39:07 instead of the popup, you can place the text in the log in screen as a note, with both login and register buttons Aug 06 05:40:00 er... not quite sure what you mean by that Aug 06 05:40:11 Leeds: any reason why you didn't do reg in app? Aug 06 05:40:58 detachYo: yeah... our whole model is around getting people to fill out a marketing survey when they register, so we can target offers better than things like groupon, give merchants info about people who view/claim/redeem offers, etc. Aug 06 05:41:01 when i tap on any offer, it is showing a popup with text and 3 buttons(login, ok, register). you can remove that popup and place the text in login screen Aug 06 05:41:50 where's desmin88 or whatever his name is Aug 06 05:42:10 bhargavg: ah... you mean just send the user straight to the login screen? Aug 06 05:42:31 yes, just put text and register button there itself instead of a popup Aug 06 05:44:20 hmm, fair point Aug 06 05:46:13 Leeds you launched with minSdk=9 ? Aug 06 05:46:21 yup Aug 06 05:46:29 did I? guess so Aug 06 05:46:57 my min sdk is L :D Aug 06 05:47:18 we actually had to turn away one of the boss' friends as a tester, because she had a Froyo phone Aug 06 05:48:03 oh minSdk=10 Aug 06 05:48:40 What is the difference between 'yyy' and 'yyyy' in simpledateformater? Aug 06 05:49:27 Leeds lots of people using GB over there still ? Aug 06 05:49:50 not really... probably more than in the US/Europe though Aug 06 05:50:31 it wasn't much of a conscious choice - just aiming at the 99% rather than the 85% Aug 06 05:52:06 it's a pretty basic app :) Aug 06 05:55:33 Leeds what libs did you use / Aug 06 05:56:37 picasso, volley, support-v4, and GCM Aug 06 05:57:04 given that I've had bugger all to do for weeks, I really should get on and swap volley out... Aug 06 05:58:53 Leeds tablet layouts ? Aug 06 05:58:59 nah Aug 06 05:59:10 i think that messed up your ranking Aug 06 05:59:11 detachYo: No difference: http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html#year Aug 06 05:59:27 ranking? Aug 06 05:59:40 Leeds in organic searches through Play Aug 06 05:59:55 Thorbear: thanks ! Aug 06 05:59:58 i'd drop minSdk=9 and put in tablet layouts Aug 06 06:00:02 minSdk=15 Aug 06 06:00:11 I don't expect anyone to find us in the play store through search, to be honest Aug 06 06:00:23 ok Aug 06 06:00:54 my boss disagrees, but I think our primary channel is still our website - particularly since you have to go there to register anyway - but with zero promotion, you get zero users Aug 06 06:02:00 Can't we use PreferenceFragment with ActionBarSherlock? Aug 06 06:02:04 if you assume that it's essentially Groupon... the boss spent some time knocking on doors to get merchants to sign up and offer stuff, but no time or effort whatsoever trying to get users in... Aug 06 06:02:05 no Aug 06 06:02:28 then he had to go away unexpectedly early on his summer travels, for some reason, so the whole thing ground to a halt Aug 06 06:03:34 JakeWharton: So whats the alternative sir? Aug 06 06:03:46 hehe Aug 06 06:03:52 nothing Aug 06 06:04:03 use PreferenceFragment on 11+, PreferenceActivity on pre-11 Aug 06 06:04:07 or just stop supporting pre-15 Aug 06 06:04:07 oh i thought the alternative was minSdk=15 Aug 06 06:05:05 Leeds maybe your boss should have waited until getting back from vacation before launch or something Aug 06 06:05:56 g00s: I honestly don't know... he may have a master plan, but I think he's just winging it... this is the Nth project I've worked on for him, and I actually thought this one he was serious about Aug 06 06:06:19 I'd be happy to stop supporting pre-15. I actually don't support pre-11 on my personal apps. But my Google Summer of Code project uses 9+ :/ Aug 06 06:07:07 he has all sorts of ideas and possibilities... met up with a guy a couple of months ago who'd worked with my boss on the original idea, and he was talking about millions of users, and getting multinationals to use it, and blah blah... right now, we've got <10 users Aug 06 06:07:36 ideas are a lot easier than execution - and a lot cheaper too Aug 06 06:10:11 yeah, i'm reading some business stuff lately ; even for a dev its probably good to be slightly business savvy Aug 06 06:10:50 g00s: totally agree Aug 06 06:11:04 its also about a solid team Aug 06 06:11:11 business, product/designer, dev Aug 06 06:11:22 its hard to be good at all of those Aug 06 06:11:38 <_abc_> Good morning. Can anyone say what the app at the bottom of the screenshot is? The Asian character one? http://188.27.185.3:8881/mypaste/5568c8d82c0a2c109e83 Aug 06 06:11:53 <_abc_> This is in the default android sdk image for 2.3 Aug 06 06:12:13 _abc_: i can't access that url Aug 06 06:12:21 <_abc_> hm? Aug 06 06:12:26 <_abc_> Just a sec, it's my laptop Aug 06 06:12:56 I'm trying to walk a line between accusing my boss of being essentially useless when it comes to business stuff, and just keeping my head down and doing tech stuff... Aug 06 06:13:25 <_abc_> bhargavg: What error do you get please? Aug 06 06:13:34 he's essentially retired, but he was a senior partner - think country manager level - in one of the big accounting firms, so he should really have more of a clue about business Aug 06 06:13:41 _abc_: I see it, but my Chinese isn't up to reading it Aug 06 06:13:49 <_abc_> Ah. Anyone else? Aug 06 06:14:03 Same with me :P Aug 06 06:14:05 I can ask my young lady, her being Chinese :) Aug 06 06:14:29 <_abc_> Do it! ;) Aug 06 06:14:43 <_abc_> I assume it is one of the popular services there but which one? Aug 06 06:15:13 _abc_: http://app.cnmo.com/android/124964/ Aug 06 06:15:15 ? Aug 06 06:15:57 <_abc_> Looks like it, the same icon. I can't read the script. What is that please? And thanks ondroed Aug 06 06:16:25 it's definitely Chinese characters Aug 06 06:16:31 <_abc_> No kidding. Aug 06 06:16:59 _abc_: http://tinyurl.com/npd6mhw Aug 06 06:17:02 as opposed to other 'asian' ones... my gf agrees with ondroed - it's a Google-written Chinese input method Aug 06 06:17:39 <_abc_> ondroed: /me no read Russian either. Just a second. Aug 06 06:17:48 _abc_: it's a Chinese keyboard Aug 06 06:18:13 <_abc_> Yeah I am beginning to understand. This should run as a service when normally installed, no? Aug 06 06:18:30 _abc_: i cut out icon from picture you posted and searched it by google Aug 06 06:18:36 <_abc_> Ah, ok Aug 06 06:19:00 I just got a Chinese reader to read it :) Aug 06 06:19:14 <_abc_> Leeds: So you have a private search engine? ;) Aug 06 06:19:22 Ah yes. I knew I had seen it :P Aug 06 06:19:25 sometimes comes in quite handy Aug 06 06:20:25 she even does live translations - even things like ordering pizza, I just let her call... Aug 06 06:20:42 <_abc_> :) Aug 06 06:23:04 <_abc_> Does Google translate do a reasonable job of translation from Chinese to, say, English? Aug 06 06:23:17 no, it's terrible Aug 06 06:23:22 <_abc_> I mean, as good as Systron/Donner translation ever is with other language combinations? Aug 06 06:23:56 no idea what that is - but no, google translate Chinese->English most often comes out with something which is at least 50 Aug 06 06:23:59 50% nonsense Aug 06 06:24:32 Why does CursorAdapter item click return id's as Long types? Aug 06 06:24:37 I think one of the reasons is that it's not well tuned for Hong Kong Chinese, which can be quite slangy - but even on official stuff, it's really bad Aug 06 06:24:56 Hi all, I've been having trouble with an NDK project over the last few days. I finally got the project to build via command line (I gave up on using gradle to do this). However, now I'm getting a linking error(?). Can anybody help? It complains about not being able to find the function strtof (UnsatisifiedLink Error). I've looked around SO and nothing seems to help. Ideas? Aug 06 06:25:21 and what's the difference between Long and long? Is Long just a wrapper around long? Aug 06 06:25:23 I found this article: http://www.obj-sys.com/blog/?p=602 but that didn't help either. Aug 06 06:26:25 detachYo: isn't one an object type, and one a built-in primitive type? Aug 06 06:26:31 * Leeds not Java expert Aug 06 06:26:37 Leeds: no clue Aug 06 06:26:46 don't even know the differences Aug 06 06:26:48 detachYo_ because the long is presumably an ID (primary key) Aug 06 06:27:54 pk is 8 bytes (long) Aug 06 06:28:17 Yeah Long is a wrapper on long Aug 06 06:28:39 just like Integer is on int Aug 06 06:29:47 one is a primitive type one isnt. A basic of Java and its type. Aug 06 06:30:53 think adding toString etc etc Aug 06 06:31:16 btw, this is apparently going away in Java 9 Aug 06 06:31:45 as well as needing objects (non primitive) for adding to Collections and all the things that make Java bearable. Aug 06 06:36:51 Hi all, I've been having trouble with an NDK project over the last few days. I finally got the project to build via command line (I gave up on using gradle to do this). However, now I'm getting a linking error(?). Can anybody help? It complains about not being able to find the function strtof (UnsatisifiedLink Error). I've looked around SO and nothing seems to help. Ideas? I found this article: http://www.obj-sys.com/bl Aug 06 06:40:01 <_abc_> As a general rule, would you say it's wise to start the emulator with [x] Wipe User Data checked whenever changing skins and anything else in the ADV? I found it can crash or become unstable if not. Aug 06 06:47:40 Hi all, I've been having trouble with an NDK project over the last few days. I finally got the project to build via command line (I gave up on using gradle to do this). However, now I'm getting a linking error(?). Can anybody help? It complains about not being able to find the function strtof (UnsatisifiedLink Error). I've looked around SO and nothing seems to help. Ideas? I found this article: http://www.obj-sys.com/bl Aug 06 06:57:06 you know you can build from the commandline using gradle? Aug 06 06:57:35 (and a link error suggests that the project still isnt building) Aug 06 06:58:09 Of course. gradlew taskName Aug 06 06:58:18 gradlew assembleDebug, for example Aug 06 06:59:54 I was aiming that at valder : not just stating the obvious for the fun of it ;) Aug 06 07:02:39 any way to speed up my AS? Aug 06 07:03:18 it takes 2 seconds when I switch between apps on my mac Aug 06 07:05:16 how is AS speed related to the time it takes you to switch tasks on a Mac? Aug 06 07:06:01 (You might try power save mode in some instances) Aug 06 07:08:04 hey Aug 06 07:08:49 Possible to override the recent tasks button with your own activity? Aug 06 07:10:56 What recent tasks button where? Aug 06 07:13:20 <_abc_> What is gradlew please? Aug 06 07:14:26 _abc_: it's a shell/batch script that will download the specified version of gradle and run it Aug 06 07:17:19 the recent tasks button on galaxy s5 for instance Aug 06 07:17:35 the task switcher button Aug 06 07:17:40 oh, he left Aug 06 07:19:42 no Aug 06 07:19:53 switched machines. Aug 06 07:22:40 oh Aug 06 07:23:08 bascially I want to intercept the app switcher button for my own purposes Aug 06 07:24:12 in cyanogenmod theres an option to change the menu button of my s4 to recent tasks (so it behaves like the s5) Aug 06 07:24:21 so it must be possible on some level to modify it Aug 06 07:25:04 yes, you download source code of android, you change the button handler and build the ROM back Aug 06 07:25:11 <_abc_> Is it possible to cyanogen/root an emulator phone on the sdk? Aug 06 07:25:14 you can't intercept that from user app. Aug 06 07:26:33 grr Aug 06 07:26:38 <_abc_> http://stackoverflow.com/questions/8820127/cyanogenmod-on-android-emulator-is-it-possible ah ok Aug 06 07:26:38 Mavrik: not even with root access? Aug 06 07:33:42 doing so would really piss people off... ;) Aug 06 07:35:18 rgr: hehe, yeah Aug 06 07:36:43 but, I guess it could work on phones without physical buttons Aug 06 07:37:25 I've seen apps that can modify and add more overlay buttons (or what theyre called) Aug 06 07:41:28 whats the best way for an activity to show logo/launcher icon but not show activity title? like Trello Aug 06 07:55:25 Hi guy's, with every Fragmnt activityTabs example i have the same problem ... If you are in the Tab1, you switch to the Tab2, then when you come back to Tab1 your fragment is "restarted"(the activity is reseted so) here is an example with Sherlock https://gist.github.com/andreynovikov/4619215 Aug 06 07:58:42 is a constant like SCREEN_ORIENTATION_LANDSCAPE guaranteed to always have the same value ? Aug 06 07:59:10 maybe yes Aug 06 08:01:11 pellis: useLogo|showHome Aug 06 08:01:34 BoD: for some reason - with this i only get the text, which is opposite to what i want Aug 06 08:01:43 strange right? Aug 06 08:02:08 are you sure you have set this to be used in the actionBarStyle of your theme? Aug 06 08:06:28 ok :) Aug 06 08:08:23 BoD: verifying.. Aug 06 08:22:16 BoD: still seeing the title text :( Aug 06 08:23:05 pellis: show the relevent parts of your themes.xml / styles.xml Aug 06 08:24:01 http://pastebin.com/j80v9Hxn Aug 06 08:24:51 pellis: and you're using AppTheme in your Manifest? :) Aug 06 08:25:01 yes indeed :) Aug 06 08:25:41 well this is weird, it seems that I do exactly the same thing (and it works) Aug 06 08:26:09 here is my version, maybe you can spot a difference, but I can't : https://github.com/BoD/bikey/blob/master/app/src/main/res/values/themes.xml Aug 06 08:26:51 BoD: wow, thanks for the reference code - i'll see what is different :) Aug 06 08:27:12 no pb Aug 06 08:27:32 the relevent theme is Theme.Bikey.ActionBarLogo Aug 06 08:28:23 yep. is this app on market? Aug 06 08:30:51 yes Aug 06 08:31:39 Bod tu as une idée pour se que j'avais demander ? tu as deja rencontré se probleme ? Aug 06 08:33:22 cyber37: wrong chan Aug 06 08:36:24 BoD: nice app :) Aug 06 08:37:43 hey thanks dude :) Aug 06 08:42:42 BoD: my g/f is looking for interesting redesign projects for apps. if you want a free redesign let me know and i can suggest your app to her Aug 06 08:47:43 pellis: the problem is I have very little time currently so I may be a bit unavailable to discuss things and so on Aug 06 08:48:12 what ever you prefer :) Aug 06 08:49:51 :) Aug 06 08:55:53 hi all Aug 06 08:56:43 I have a class file which has some predefined methods.And I am able to access those methods using dot operator Aug 06 08:56:55 while I am creating methods I am not able to access them Aug 06 08:56:57 why? Aug 06 08:57:23 public String lastKnownTime(){ return "12:10 PM 01-08-2014"; } Aug 06 08:57:36 I want to access this outside of this class Aug 06 08:57:39 how can I do? Aug 06 08:57:55 is it not possible for String type? Aug 06 08:57:58 add "static" Aug 06 08:58:35 hi all, I'm lunching chrome with intent from my application - how can I get chrome's context? Aug 06 08:58:40 Either get an instance of the class or make the method static, depending on your use case. Aug 06 08:58:49 *launching Aug 06 08:59:38 meital: what do you mean by "context" ? Aug 06 09:01:13 BoD: I want to use robotium to make sure that a specific text exists in the web page that I opened, so actually I need the new instrumentation and activity in order to init the Solo object "Solo solo = new Solo(getInstrumentation(), getActivity());" Aug 06 09:02:36 ah ok I have no idea, I don't kknow robotium Aug 06 09:03:55 do you know maybe on any other way to make sure that chrome was actually opened by the intent? Aug 06 09:04:02 I don't really care how Aug 06 09:04:23 no idea Aug 06 09:04:31 what if the user has a different browser? Aug 06 09:04:46 BoD: yes static worked Aug 06 09:04:57 i'm using only one specific device, and it has only chrome Aug 06 09:05:12 BoD: what is the rule there? Aug 06 09:05:22 is it mandatory to give static with String Aug 06 09:05:28 niru: you should read a Java tutorial Aug 06 09:05:35 before trying to do anything :) Aug 06 09:06:56 flipin' onBoundsChanged is causing a SIGSEGV Aug 06 09:11:30 A lot of wpa_supplicant Errors/Debugs in LogCat, They make reading LogCat Harder, can i exclude them? Aug 06 09:11:48 OverCoder: of course Aug 06 09:11:53 how Aug 06 09:12:02 which tool do you use? Aug 06 09:12:08 Eclipse Aug 06 09:12:10 with ADT Aug 06 09:13:13 then click the green plus to create a filter and in "by Log Tag:" you can put a regular expression Aug 06 09:13:30 for instance, I use this for Samsung: ^((?!MP-Decision|UiModeManager|SSRMv2|EDMNativeHelper|BatteryService|FOTA|STATUSBAR).)*$ Aug 06 09:13:47 awesome Aug 06 09:13:53 i will make my own regex Aug 06 09:13:55 thanks Aug 06 09:14:00 yeah :) nopb Aug 06 09:16:11 are custom permissions not being done anymore? Ive been trying to follow the andriod gcm tutorial all day and their manifest uses a custom permission just above the application tag. When compiling, a new manifest file is generated in the R folder that causes errors. Aug 06 09:16:35 r/com/myapp to be specific Aug 06 09:35:02 My mouse is dead :'( Aug 06 09:35:05 wire is cut Aug 06 09:36:27 in https://developer.android.com/training/basics/firstapp/building-ui.html , what is fragment_main.xml ? Aug 06 09:38:40 I only have activity_main.xml ... should I create that file? Aug 06 09:45:10 A fragment is like a micro activity who runs only in an activity Aug 06 09:55:08 I just made another project, thanks cyber37 Aug 06 10:30:30 hi guys quick question how does one customize the PagerTabStrip which is not part of the actionbar Aug 06 10:36:18 from my tests onviewcreated is called many times on a fragment while oncreate is called once Aug 06 10:36:35 how then - can I do a one-time only initialization of the view ? (such as loading stuff from the network) Aug 06 10:44:57 read the android lifecycle document in the docs. https://developer.android.com/training/basics/activity-lifecycle/index.html Aug 06 10:45:33 trust me : without a firm understanding of this you can forget programming Android. One short answers will not help. Aug 06 10:45:41 one *shot* Aug 06 10:45:57 Boom Aug 06 10:46:38 Keep the data in a variable, load if it doesn't exist, bind it when the view is created Aug 06 10:46:50 (short answer : it depends what kind of resources e.g layout specific? then you need to reload depending on orientation and resolution etc, Then you might be looking at using a bg thread so as not to hog the Main UI. See AsyncTask. Aug 06 10:49:05 You almost certainly want to start loading "stuff from the network" before your view is constructed anyway in a bg thread. Loading stuff from the network probably isnt "view initialisation" - rather you want to update components of the view later when the data is downloaded. Aug 06 10:51:04 rgr: thanks Aug 06 10:51:33 rgr: however - i'd like to start a 'spinner' - but with onCreate i dont have access to view Aug 06 10:51:51 i only have access to view in onCreate Aug 06 10:51:55 sorry in onCreateView Aug 06 10:53:20 (i dont have findViewById in fragment) Aug 06 11:03:56 can someone watch that issue ? http://www.developpez.net/forums/d1461868/java/general-java/java-mobiles/android/tabhost-p-intent-p-activite/#post7920074 I need to get the instance of my class, but it's the tabhost who instance the class Aug 06 11:06:00 I dont know when or why you want to start your spinner but then this isnt where. You need to sit down and work out what is created when, and where you really need to start the spinner from. Start it in the onCreate if you are doing a bg thread. See AsyncTask. If you dont use AsyncTask you use a Handler and send a message from the work thread back to the Activity when the download or whatever is done so it can cancel the spinner. The Aug 06 11:06:00 possibilities are endless. But really, from my own experience and floundering around, you really really really really will benefit from studying the life cycle document I linked. Aug 06 11:07:00 me ? Aug 06 11:19:06 hi guys quick question how does one customize the PagerTabStrip width and style in android to mimic a tabhost Aug 06 11:21:30 pm install failed: "INSTALL_FAILED_ALREADY_EXISTS" , ow do i force install ? Aug 06 11:21:55 you delete the existing app. probably a different api version Aug 06 11:22:32 what do i delete and how ? it's a payed app Aug 06 11:26:34 did it via play :/ Aug 06 11:29:54 @rgr, using gradle, I can't seem to exclude files from being compiled. Thus why I switched to running ndk manually. using sourceSets.jni.excludes doesn't seem to do any filtering of files. Aug 06 11:31:16 with gradle it includes the files in the sourcesets and any dependencies you manually add to your build.gradle. sourceset.jni is what? an Intellij file? Aug 06 11:31:58 sorry sourceSets.jni is a directive in the build.gradle file Aug 06 11:32:49 ah right. I havent had to exclude things I must admit. Aug 06 11:32:51 oops sourceSets.main { jni.srcDirs = [ ] jni.excludes = [ ] } Aug 06 11:33:03 but if I were you I'd ask in #gradle - there usually are people there. Aug 06 11:34:01 @rgr, well with the response I've been getting here over the last few days (almost none unfortunately) I didn't think to try #gradle. Aug 06 11:34:20 thanks for helping out.. btw Aug 06 11:34:43 so my current issue seems that my linking isn't correct in some way Aug 06 11:35:00 gradle is a point of contention with somepeople because they dont like replacements for things they know so well already ;) With some help here I finally got used to gradle and havent looked back - I'd need to relearn it all again if something were to go wrong. But, shrug, it works well for me. Aug 06 11:35:13 the libraries all compile down into .so files now.. (much more progress) Aug 06 11:35:43 rgr, now you just make it look like the only reason why someone would dislike Gradle is aversion to change Aug 06 11:35:47 *golfclap* Aug 06 11:35:51 most things work well with gradle I admit. just when it comes down to my custom setup things break down. :( Aug 06 11:35:53 I updated ADT and so on, and now LogCat is talking about "OpenGLRenderer" a lot. Aug 06 11:35:59 I never noticed this before. Is this new? Aug 06 11:36:17 logcat talks whatever the device software talks about Aug 06 11:36:26 and it IS a bug learning curve. Almost nonsensical at first - the whole assumption that the world and his mother knows about closures with next to no "browse" facility in the AS editor for the tasks makes it a tough proposition at first. Aug 06 11:36:48 its been a while since I had to deal with JNI code.. is the extern "C" required in the header and impl files ? Aug 06 11:37:01 valder, depends, do you use C or C++ compiler? Aug 06 11:37:04 So my phone was always talking about this? The update made no difference? Aug 06 11:37:10 Mavrik: I specifically said "some people". Aug 06 11:37:17 Mavrik, c++ I believe Aug 06 11:37:46 valder, C++ code or code compiled with C++ compiler does need extern "C" declaration Aug 06 11:37:52 there is no "C" code I am using. everything was written using c++ as the target compiler Aug 06 11:37:56 or it'll mangle your function names and Dalvik won't be able to resolve them Aug 06 11:38:07 ah. Aug 06 11:38:23 Mangle, I love that word :) Aug 06 11:38:42 Mavrik, so all my native code needs to be wrapped in extern "C" Aug 06 11:38:43 Is there a version of the PostgreSQL database running on Android? Aug 06 11:38:52 valder, just the interface to Java Aug 06 11:39:01 valder, what you do internally doesn't matter Aug 06 11:39:20 Nivag, ugh, no luckly Aug 06 11:39:51 valder, I suggest you look up on what exactly extern "C" does :) Aug 06 11:39:51 ok. that's what I thought.. good.. that doesn't resolve my linking issue though since the Java interface is surrounded by extern C Aug 06 11:40:55 valder, well, nm is your friend Aug 06 11:41:05 it'll dump symbols in your .so so you can check if everything is there Aug 06 11:42:18 Mavrik: what have you got against PostgreSQL? In suspect that pg is too heavy weight for simple user situations with small amounts of data, but do you see any other issues? Aug 06 11:43:12 Nivag, the fact that it's a RDBMS heavily optimized to run as a single daemon on a dedicated high-performance server machine serving multiple clients Aug 06 11:43:24 which is very much a total opposite of what apps on Android do Aug 06 11:44:17 Mavrik: fair enough, I was more curious than desperate to use it! :-) Aug 06 11:44:38 yeah, the thing is, Android isn't really good for system-wide daemons Aug 06 11:45:03 which is what pgSQL expects to run as (remember just how much you can trash your DB server performance by adding MySQL to pgSQL machine? :P ) Aug 06 11:45:17 that's why default DB implementation on Android is the embedded SQLite Aug 06 11:47:33 I'm a back end boy from way back, being dragged into the web & mobile age - I started with FORTRAN & COBOL with punch cards (though funnily enough, I my first program was written in BASIC with keyboard & screen)! Aug 06 11:49:33 mavrik, how do I use nm? nm seems to bring up nothing Aug 06 11:50:37 my IRC client crashed Aug 06 11:50:56 valder: It should, though. Aug 06 11:51:21 valder: $ nm /usr/lib/ld-*.so does not output anything? Aug 06 11:51:28 uh oh. War stories... ;) Aug 06 11:52:12 flan3002: /usrlib/ld-*.so doesn't exist Aug 06 11:52:34 I'm on MacOS Mavricks btw Aug 06 11:52:41 Oh... Aug 06 11:52:46 but /usr/local/lib too Aug 06 11:52:47 Well, any other shared lib? Aug 06 11:53:18 obviously Aug 06 11:53:24 OS X does not have nm. Aug 06 11:53:33 And it will not dump symbols for Linux shared libraries. Aug 06 11:53:35 nm does exist Aug 06 11:54:02 nm /usr//local/lib/python2.7/site-packages/cv2.so -> does output things Aug 06 11:54:18 so maybe my ndk-build isn't really doing anything? Aug 06 11:56:33 what Linux kernel is Android 4/5/5.0 likely to be using? Aug 06 11:56:33 wtf? re Aug 06 11:56:49 4.5/5 Aug 06 11:58:10 Nivag, whatever the manufacturer will use Aug 06 11:58:17 current L dev releases are running 3.4.0 Aug 06 11:59:43 Mavrik: I thought Google would be the one to specify the kernel... Aug 06 12:00:15 mavrik: if nm isn't available/useful on Macos what should I use then? Aug 06 12:02:10 mavrik: one of the so files I generate is created using this make file: Aug 06 12:02:10 http://stackoverflow.com/questions/7144008/how-to-build-protocol-buffer-by-android-ndk Aug 06 12:02:34 it seems to complete without errors. Aug 06 12:02:38 Nivag, as long as the ABI works, phone can run whicever kernel Aug 06 12:02:44 Nivag, but yeah, most devices use the same one Aug 06 12:06:56 google has nothing to do with kernel versions Aug 06 12:07:15 they use whatever is latest/most appropriate from the original linux kernel source tree Aug 06 12:09:17 @rgr any other tips ? Aug 06 12:14:37 so in building using Android make fiels, it seems that the build order is alphabetical by module name. Is there a way to specify the order explicity? Aug 06 12:16:58 is it possible to get the id of every appWidget via appWidgetManager or something? Aug 06 12:20:20 prior to L it was 2.6 . And thats it. Aug 06 12:20:59 L has same kernel as kitkat - 3.4.0 Aug 06 12:22:29 Mavrik, what are the contents of the .o.d files supposed to look like? Aug 06 12:22:42 mm? o.d. files? Aug 06 12:23:03 valder, btw, can you explain what exact problem are you solving? I seemed to miss the start of the conversation. Aug 06 12:24:52 mavrik: I have a proejct i'm trying to port to Android, there are a collection of C++ libraries that are a part of it. All I'm trying to do is make a call to them. I was able to get the iOS version done fairly quickly. However, I'm having a heck of a time linking up the Android part Aug 06 12:25:29 so all I want to do right now is call into the Java interface the equivalent to "hello world" and that isn't even working for me Aug 06 12:25:36 huh. Aug 06 12:25:44 that really should not be a problem Aug 06 12:25:52 first of all, do you know, you don't HAVE to use ndk-build right? Aug 06 12:26:06 especially if you already have C++ build scripts - just call gcc from NDK toolchain directly with proper arch parameters Aug 06 12:26:23 second, you just need a glue header for JNI, which is ugly as fuck, but should work Aug 06 12:26:34 then throw .so files into libs/ and so System.loadlibrary in Java Aug 06 12:26:40 nope.. didn't know that.. I thought I needed ndk-build to link everything toghether Aug 06 12:27:07 I have Makefiles for the c++ libs Aug 06 12:28:02 but I have some dependencies like google protobuf and opencv I need to link to as well. on the other platforms (ubuntu, iOS) I needed to have them installed locally Aug 06 12:28:10 there's even a "make-standalone-toolchain.sh" script in NDK which extracts a standalone minimal GCC or LLVM toolchain to use for building C code :) Aug 06 12:28:13 which is what I thoguht I was doing iwth ndk-build Aug 06 12:28:24 well you'll have to build those with ARM target as well. Aug 06 12:28:38 you can't link Mac x86_64 libs to ARM code :) Aug 06 12:29:13 the link above was to build protobuf for Android targets. Aug 06 12:29:25 I think anyways. Aug 06 12:29:38 as for opencv, there are prebuilt so files Aug 06 12:29:44 *shrug* Aug 06 12:29:49 building is the same for pretty much everything Aug 06 12:30:02 set proper CC, CXX, LD parameters, set proper arch and target Aug 06 12:32:28 mavrik, so I don't need to build any shared libs then? Aug 06 12:32:41 you need to build _everything_ you need Aug 06 12:33:15 isn't that obvious? If you need to call opencv.so, you NEED that opencv.so ready for the processor it'll run on right? Aug 06 12:33:34 right.. I am providing that Aug 06 12:34:02 the issue I thought was that my c++ code isn't linking properly. Aug 06 12:34:15 the opencv.so is provided b the vendor Aug 06 12:34:32 so I'm just including those into the lib directory to be packaged and referenced by my code Aug 06 12:34:55 protobuf I need to build since there isn't any prebuilt files for it Aug 06 12:34:55 hello, I'm trying to make an android app with ads, so I need google-play-services.jar. But the latest version is 2.7MB !!! Aug 06 12:35:25 am I missing something or is google forcing every single developer who wants ads to add 2.7 MB to their app size? Aug 06 12:35:51 only the ones that want to spam users with ads :P Aug 06 12:36:12 Mavrik: what do you mean? Aug 06 12:36:22 what is the file name of adb usb device under /dev ? Aug 06 12:37:10 Mavrik: a few months back the older version of "google-play-services.jar" had 380 KB Aug 06 12:37:45 Mavrik: the latest version is 2.7 MB. are you saying google is doing this intentionally to discourage devs from using ads? Aug 06 12:37:50 manixrock, no Aug 06 12:37:58 I just don't get what are you trying to say. Aug 06 12:38:02 It's 2.7 MB. Deal with it. Aug 06 12:38:13 It's not opensource, there's no alternative. Aug 06 12:38:45 Mavrik: so you're saying google is to blame and there's no alternative. So basically google sucks. Aug 06 12:39:06 *shrug* Your words not mine. Aug 06 12:39:10 then fuck off and dont use it. Seems pretty simple. You're not paying anyone. Aug 06 12:39:24 meant to type "fek" ;) Aug 06 12:39:37 i'm just trying to understand why google is doing this Aug 06 12:39:58 one would think they would want to encourage devs to add ads to their apps not discourage them Aug 06 12:40:26 whole 2.7MB? Aug 06 12:40:43 wauw, my high-speed android phone wont handle any apps. I am doomed. Aug 06 12:40:48 and anyway I'm only adding a small ad to my game's start page, it sucks to add 3 megs just for that Aug 06 12:41:28 mpajor: for my other apps an increase of 300 kb led to 20% fewer installs (from analytics) Aug 06 12:41:51 I feel sorry for you. It's a shame to make money on a whopping 3MB. Aug 06 12:41:52 manixrock, you can, of course, use Proguard to throw away parts of lib you don't use Aug 06 12:42:04 manixrock, yes, the size of the GPS library sucks ass Aug 06 12:42:23 and I don't get why Google does this obviously terrible practice of a monolithic shit of a library Aug 06 12:42:38 but since you're trying to use their services you really don't have a choice Aug 06 12:42:41 Mavrik: I searched for that specifically and found that proguard can't optimize it in any way since it's protected in some way Aug 06 12:43:01 You found wrong. Aug 06 12:43:25 But you WILL have to know what to keep and what to throw away. Aug 06 12:44:05 I've modified it myself, It can be done. Aug 06 12:45:01 trying it now... Aug 06 12:45:07 Have fun. Aug 06 12:47:24 @Mavrik, sorrty to be a bother, but I must be misunderstanding you, using the standalone toolchain seems to be no different than using ndk-build except that is more customized ? Aug 06 12:48:23 huh? Aug 06 12:48:37 standalone toolchain is a toolchain containing standard linux compilers Aug 06 12:48:43 >> (in regards to abi compatibility) If none of the above makes sense to you, it's probably better not to use the standalone toolchain, and stick to the NDK build system instead, which will handle all the details for you. Aug 06 12:48:43 ndk-build is a build script Aug 06 12:48:58 Are you SURE you know how C/C++ compilation works? Aug 06 12:50:48 I'm trying to keep things as simple as possible, ndk-build is a generic build script which seems like it should handle the build OOTB. the standalone toolchain seems (haven't tried it yet) to be a more focused vesion of ndk-build Aug 06 12:51:10 That's total nonsense. Aug 06 12:51:24 You're saying "I think java compiler is a more focused version of this .sh script I use to build Java apps." Aug 06 12:51:38 no.. Aug 06 12:52:51 I must not be understanding the purpose of the standalone toolchain then.. the docs at first blush seem to indicate that it makes a customized build Aug 06 12:53:24 it just copies preconfigured GCC to some other folder Aug 06 12:53:36 for each environment. so if I wanted to build for a new arch I'd have to rerun the whole process again vs modifying a few parameters in the ndk-build script Aug 06 12:55:34 mavrik, I'm no expert in how C/C++ compilation works. I just know how to write my code, how to link them and target them for specific platforms is not something I really know much about. Aug 06 12:56:22 It may just be weariness at this point so please forgive my stupidity. I"ve been worried about this for the last few days. Aug 06 13:05:30 at this point, I am so confused, I think it would be best if I could sit down with somebody and just have it all spelled out for me what I need to do to get my Java code to talk to the C++ underlying code. Aug 06 13:05:59 what I initially htought I needed to do and what it has turned out to become are two very differnt things Aug 06 13:06:00 :( Aug 06 13:09:04 i need to perform a repetitive background task that issues notifications...are services the best way to do this and would i need a while(true) loop in the service? Aug 06 13:10:23 oh ye gods, no, don't do a busyloop in a service Aug 06 13:10:38 gmg85, there's AlarmManager, which is Android's Cron Aug 06 13:10:48 and you schedule execution of your service with it Aug 06 13:13:37 Nice Aug 06 13:13:50 so it seems i dont need a forever loop Aug 06 13:14:07 oh ye gods :D Aug 06 13:17:08 Please someone help me... how can i use gradle in eclipse and add library path?? Aug 06 13:33:56 anyone have experience with gcm from play services? Aug 06 13:36:17 I'm trying to import a library module from a local forked project (forked PagerSlidingTabStrip), but I can't seem to import the library module - AS complains that the project already contains a module with that name Aug 06 13:37:13 Why video files that I record using the video capture intent doesnt have myme type set. Even if I try to set the intent with intent.putExtra(MediaStore.Video.Media.MIME_TYPE, "video/mp4") ? Aug 06 13:39:15 Hey guys. Is there any way I can make my layout inherit style that of a AlertDialog? I am looking to use the default AlertDialog design but I want to add some details to the title and the whole layout. I was doing this programmatically but thought maybe it's possible to do it through xml? Aug 06 13:40:36 skulltower: just set the style attribute of your custom layout with the alertdialog style. Aug 06 13:40:42 Hello friends Aug 06 13:40:45 Hello friends Aug 06 13:40:49 Please someone help me... how can i use gradle in eclipse and add library path?? Aug 06 13:41:24 skulltower: or create a custom style that inherit the alertdialog style and override the attributes you want to change Aug 06 13:42:15 Birk_, If I went with your 1st suggestion how could I modify the style of the title's TextView ? Aug 06 13:42:33 hello friends Aug 06 13:43:54 Jesperhead, just ask the actual question. Aug 06 13:44:10 Hello Aug 06 13:44:30 Following http://developer.android.com/google/gcm/client.html and I get a "Error: Duplicate class: Manifest.java" due to the custom permission in the manifest Aug 06 13:45:08 skulltower: What you want to change? Here are some attr that you can change. https://sites.google.com/site/androidhowto/how-to-1/customize-alertdialog-theme Aug 06 13:45:44 removing the permission allows the app to build properly, but I believe its required for the whole process to complete (it is not completing because my log.v's end just before gcm = GoogleCloudMessaging.getInstance(getApplicationContext()); gets called Aug 06 13:46:02 I've recently realised that I can't update my application with a fix since my project contains an unfinished feature as well...this leads me to realise the point of git branches. The thing is, I don't use git or anything since I'm not planning to make my application open source this moment. What's the recommend thing to do instead? Aug 06 13:46:25 ive gone through my gradle and nothing looks off Aug 06 13:46:37 hackable: please stop saying "hello friends" and repeating your Q. It's a fast way to get /ignored. Aug 06 13:47:01 Birk_, I want to make the TextView a marquee and the text selectable. I don't think that's possible just through attributes Aug 06 13:47:47 Moony22: git has absolutely nothing to do with whether your code is open source. To NOT use git or some other VCS in a complex buil environment etc like Android borders on silly IMO. Use it. You wont regret it. Aug 06 13:48:15 rgr: Use git? What, just a local repository? Aug 06 13:48:21 skulltower: So maybe you must extend the AlertDialog class and create your own or create a new one. :( Aug 06 13:48:52 Birk_, ahh.. I hoped I could do it through xml :/ Aug 06 13:49:30 Moony22: and/or a private upstream repo on github or bitbucket or your own server. never good to only have your repo in one place. Aug 06 13:49:30 Moony22: huh? plenty of private remote repositories around Aug 06 13:49:51 yolo Aug 06 13:50:10 jbrjake_ & Estel I'd rather not pay for a git server when I already have a VPS... Aug 06 13:50:20 Moony22: sure. Why not? If you have a webserver on something like Hostgator they probably have git too : I use my business domain hosting for a private git repo too. Aug 06 13:50:25 Set up a bare repository on your VPS Aug 06 13:50:29 okay, so don’t use github. bitbucket offers free private repos. Aug 06 13:50:33 Use bitbucket's private, which are free.. Aug 06 13:50:35 but you dont need remote. Though it helps. Especially when moving between machines/locations. Aug 06 13:50:36 skulltower: Maybe this can help you http://www.helloandroid.com/tutorials/how-display-custom-dialog-your-android-application Aug 06 13:51:01 Please someone help me... how can i use gradle in eclipse and add library path?? Aug 06 13:51:08 hackable: stop spamming. Aug 06 13:51:23 if someone can help they will. repeating will not help your cause. Aug 06 13:51:46 Ok. Last question before I start. Should I use a plugin with eclipse? Aug 06 13:51:58 ? Aug 06 13:52:04 thanks rgr Aug 06 13:52:23 hackable: open up your Gradle Tree and trim some Eclipse Fruit Aug 06 13:52:28 I mean, should I use a plugin with eclipse to use git? Like egit or something? Aug 06 13:52:34 i've been trying to add a particular library to eclipse... dont want to move to android studio for now Aug 06 13:53:03 how Mikedg Aug 06 13:53:52 Moony22: http://lmgtfy.com/?q=eclipse+with+git ;) EGit is included with latest Juno+. Aug 06 13:54:12 rgr: Yeah, I know there is such plugins I just meant do you recommend it? Aug 06 13:54:34 Try it, YMMV. You can always just open a terminal Aug 06 13:54:46 Fair enough Aug 06 13:54:59 have open my .gradle folder which comprises of caches, daemon, native, wrapper Aug 06 13:55:12 its always nice when its properly integrated in an IDE. its pretty well done in AS. I cant personally comment on Eclipse which I find to be a dog anyway. Aug 06 13:55:57 hackable: what are you actually trying to do? What's your objective? Aug 06 13:55:59 rgr: I've found AS too buggy for me. Aug 06 13:56:43 how? (OK I use intellij EAP) and its nigh on rock solid. Aug 06 13:57:02 Moony22: AS crashed for me once, Oh no wait sorry I wrote and infinite loop never mind. Aug 06 13:57:04 Thanks Moony22, i want to build gradle with eclipse Aug 06 13:57:19 i have some library i want to add using build.gradle Aug 06 13:57:21 hackable: to add a library path you use your settings.gradle afaik. e.g in my project root I have "include 'androidbit', ':libraries:purejavalib'" Aug 06 13:57:32 MadMan2021 & rgr: I have lots of issues with my whole project somehow messing up Aug 06 13:57:37 but his is a gradle Q abd you might be better off asking in #gradle. Aug 06 13:57:54 I just suddenly get a load of errors while I'm programming Aug 06 13:58:05 Lint errors? xD Aug 06 13:58:28 Moony22: Don't sneeze you'll scare the electrons, I bet that's your issue. Aug 06 13:58:33 Moony22: you need to rearrange your code into the gradle directory hierarchy OR change your sourcesets. When done you wont look back. Aug 06 14:00:00 rgr / MadMan2021: I'm not really sure how to migrate... Aug 06 14:00:15 I use a lot of different libraries Aug 06 14:00:19 Birk_, I was able to mimic the AlertDialog by setting style="@android:style/Theme.Dialog".. And the title TextView is there. If only I could modify it somehow through xml >.< Aug 06 14:00:33 Moony22: Not going to Lie, I mainly started with AS. :( Does that make me a bad person? Aug 06 14:00:45 MadMan2021: Not if it worked Aug 06 14:00:57 Anyone know if this is still true about using rootProject.ext.*? http://tools.android.com/tech-docs/new-build-system/tips#TOC-Controlling-Android-properties-of-all-your-modules-from-the-main-project. Aug 06 14:01:13 MadMan2021: I continued to use eclipse when android studio was available. Does that make me a bad person? Aug 06 14:02:37 How do you manage libraries in android studio? Is it as simple as eclipse? Aug 06 14:02:37 Moony22: Nope, Use the tools your familar with untill a change is needed, That's how I see it. Aug 06 14:03:18 MadMan2021: Yes, but it's not like I don't like android studio. I tried it, and I do really like it. It's just that it never worked for me Aug 06 14:04:30 Moony22: All I've ever had to do is move it into the Libs folder Right click > Add as Library. Aug 06 14:04:57 skulltower: I never tried. But don't know if its possible. I think you need to extend AlertDialog to change the behavior of it's main components, like the title Aug 06 14:05:25 MadMan2021: Great, I'll try to start migrating Aug 06 14:06:03 haha http://tools.android.com/download/studio "Stable (coming soonish)" Aug 06 14:06:30 one simple question does the Listname.add() method add it to the next free index? Aug 06 14:07:05 whats Listname? Aug 06 14:07:19 Let's say we handle deep-linking by intent and we realize in the onCreate() method that we don't want to deal with the URL Aug 06 14:07:25 is there a way to delegate it to the browser? Aug 06 14:07:25 Hi Aug 06 14:07:45 I am getting this error Aug 06 14:07:46 java.lang.VerifyError: com/qfsfce/etsutb191331/a Aug 06 14:08:17 skulltower: maybe you could try this solution here. But you have to build your own layout and set the style. On the title layout you can try to set the click listener. http://stackoverflow.com/questions/6693729/clickable-icon-in-the-title-of-a-dialog-box Aug 06 14:08:19 No head way here... still getting error Aug 06 14:08:34 Trying to use gradle with eclipse Aug 06 14:08:59 Moony22: Haha, "Stable" lol. Also good luck migating shouldnt be too much trouble. Aug 06 14:09:09 hackable: have you read a gradle getting started or something? Aug 06 14:09:11 Moony22: Backup Backup Backup, Always Backup ;) Aug 06 14:09:36 please give me the url link to where i can read it,.... pls Aug 06 14:09:44 skulltower: or you can try to find the Id of the title text of an alert dialog and set the listener using findViewById. Aug 06 14:10:47 Hmm Aug 06 14:10:48 Birk_, I'm not trying to set the listener. Still thanks for all your help. Unfortunately it seems I can't do what i'm after, I'll just have to stick with what I have been doing till now, setting it through code Aug 06 14:10:57 can someone help me? Aug 06 14:11:48 hackable: if you cant google the gradle docs then no I cant. sorry. Aug 06 14:12:09 skulltower: I thought that you were trying to make it selectable like allowing the user to click on it like a link. Aug 06 14:12:28 Birk_, nah I ment the text to be selectable for copying :) Aug 06 14:12:52 skulltower: now I got it lol Aug 06 14:13:05 rgr: custom permission for Google Cloud Messaging results in a "duplicate class: manifest.java" error build in AS. Gradle is good, removing the permission allows successful build. Thoughts? Aug 06 14:15:16 hi Aug 06 14:15:18 can someone help me with this code Aug 06 14:15:27 http://dpaste.com/33DMJST Aug 06 14:15:44 skulltower: If you could get a reference of the alert dialog textview you can try this one. http://stackoverflow.com/questions/6025818/select-copy-text-in-a-textview. Look the comments. Aug 06 14:16:46 I have zero idea. Aug 06 14:17:25 Thanks anyways Aug 06 14:17:28 molavy: it's java. Unfortunately my crystal ball is broken so have zero idea why "help" you need. Aug 06 14:18:04 rgr: :) i get this error Aug 06 14:18:05 Cannot cast from Class to AbsClassFilter Aug 06 14:19:54 which line? Possibly you could comment your paste where the issues are to make it easier for people to look at? or was this runtime error? Aug 06 14:20:35 anyone in here do open source contributions with android stuff? Aug 06 14:20:42 rgr: this is why I don't like AS. I'm importing a build.gradle, and I don't know what's happening. I have 2 android studio windows, and nothing is happening. I can't close one of them, and I can't press anything in the other Aug 06 14:20:57 Yes, you need to do some work and learn the new system. Aug 06 14:21:11 molavy: this line I take it : List> filters; The Q is why? Aug 06 14:21:32 rgr: Does the new system involve not knowing what's happening? Aug 06 14:21:36 (are you doing it like that) Aug 06 14:21:57 I'm trying to figure out how to use forks of a gradle project locally to fix an issue I'm having with the library, but can't seem to figure out what needs to be done Aug 06 14:22:22 Moony22: what do you mean? You need to udnerstand any new system. Its not going to magically work with the older eclipse stuff unless you import or manually rearrange it. Aug 06 14:22:58 hmm how about whenever choreographer skips a number of frames? Could that contain relevent debug info? If so is there a way I can view those skipped frames? Aug 06 14:22:59 rgr: Yeah, it crashes when importing a build.gradle that i exported from eclipse Aug 06 14:23:02 in Ruby/Rails, I can just point my Gemfile to a github fork or a local path (same with iOS+cocoapods), but with android it just feels like there's a huge barrier to getting this to work Aug 06 14:23:08 s'pose i should google that first Aug 06 14:23:17 It depends how you priortise you time. I spent *ages* migrating from Emacs to intellij : and I havent looked back. I used eclipse briefly but its a mess and a victim of its own success : too much expansion with little eye on the end goal IMO. Aug 06 14:23:32 rgr: i found there is no need "Class" in List> filters; Aug 06 14:23:46 i just must be Aug 06 14:23:47 List filters; Aug 06 14:24:00 thanks anyway Aug 06 14:24:08 molavy: why are you doing that? Why not just Absclassfilter? I cant see from the code. Aug 06 14:24:42 I try importing a module locally, do the dynamic reference to build tools and sdk with ext, which seems to work, but then I'm getting a new error complaining about a GROUP property, which I can't seem to find in my project *anywhere* Aug 06 14:24:57 Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer Aug 06 14:25:35 shekibobo: this is not an "android" issue. Its a gradle configuration issue. Aug 06 14:26:00 the group property is probably the dependency group field. Aug 06 14:26:03 rgr: because each class in list has there own "apply" method and i want call them not Absclassfilter Aug 06 14:26:24 http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html Aug 06 14:26:49 rgr: Do you have any tips? Android studio completely freezes when importing a build.gradle Aug 06 14:27:09 no. Aug 06 14:27:11 Moony22: how long ya waiting? Gradle can take its sweet time occasionally Aug 06 14:27:34 Jesperhead: Am I supposed to get an indication of it actually working? Aug 06 14:27:52 molavy: standard polymorphism. The appl for the subclass will be called. No need from what I can see. Aug 06 14:29:12 Jesperhead: Also, about 4 minutes this time Aug 06 14:29:35 is google analytics the best option to get for mobile analytics these days? Aug 06 14:29:47 pellis: depends what information you like Aug 06 14:29:48 :-\ Cant say ive encountered that Aug 06 14:30:13 If the business is using another platform, it's often better to use the same platform across platforms Aug 06 14:30:27 *analytics platform between different platforms Aug 06 14:30:31 rgr: thanks, i think about it Aug 06 14:30:55 Estel: its for my first app. i guess. my biggest challanges will be to understand usability and to promote it Aug 06 14:31:30 im wondering if to use flurry or GA Aug 06 14:32:06 You won't go wrong with either Aug 06 14:32:27 In either case simple data is easy to get, deeper insights will require more configuration on your part Aug 06 14:36:42 How can I log with android studio Aug 06 14:36:59 something tells me to go with flurry.. Aug 06 14:37:20 it's definitely not one of us pellis :p Aug 06 14:37:30 Moony22: the same you log with any android app. Aug 06 14:37:31 Moony22: uhh, Log.d? :P Aug 06 14:37:36 Moony22: ? Aug 06 14:37:41 try googling. Aug 06 14:37:57 rgr and Estel you misunderstand me, I meant some sort of verbose mode of android studio Aug 06 14:38:05 ? Aug 06 14:38:10 I want to log android studio itself, not the app Aug 06 14:38:21 ?? Aug 06 14:38:34 What? Aug 06 14:38:39 Which compontent of it? Aug 06 14:38:53 Explain further what are you talking about? Log what? Aug 06 14:39:17 I want to see if android studio is actually doing anything when it freezes Aug 06 14:39:23 if you're interested in better gradle error reporting then try from the command line. Aug 06 14:39:34 Moony22: when it freezes it isnt. Aug 06 14:39:51 htop or somesuch, Aug 06 14:39:57 Why does https://gist.github.com/freeone3000/05d06b2ff5e7cb529fe7 only get complete data for *some* contacts? Some contacts I don't get phone for, for instance. Aug 06 14:40:12 (fwiw I think it would be better if it gave more compile/build output) Aug 06 14:41:55 rgr: what do you recommend I do now? Aug 06 14:42:13 I can't import a project because it freezes Aug 06 14:43:44 Moony22: ooi, which version? Aug 06 14:44:11 Estel: 0.8.2 Aug 06 14:44:11 hmm. maybe i should start with google analytics instead. Aug 06 14:44:31 Well for a start, though I doubt it will fix your problem, update to 0.8.4 Aug 06 14:44:54 Estel: 0.8.4? canary build? Aug 06 14:45:08 rgr: turns out, the maven-push plugin was in the library's build file. removing that seems to get it working now Aug 06 14:46:27 Estel: Ok, it did not fix my issue. Aug 06 14:48:14 Estel: there's nothing else I can do? I can't use AS? Aug 06 14:48:56 Moony22: if it's the import that's not working, do an export from Eclipse first? Aug 06 14:49:23 Estel: I'm exporting a build.gradle from eclipse, then importing from AS Aug 06 14:50:00 In AS you should just be able to open the gradle file without importing, iirc Aug 06 14:50:20 Hello Aug 06 14:50:33 Estel: I'm not sure; I'll try - http://tools.android.com/tech-docs/new-build-system/migrating-from-eclipse-projects says import Aug 06 14:50:42 With google admob changing will my apps running the usual ads still register those ads ? Aug 06 14:51:40 Or must the apps be upgraded for ads to work ? Aug 06 14:52:22 Estel: It does not work Aug 06 14:52:36 Moony22: have you tried importing the eclipse project? Dunno. Never had to do it. Aug 06 14:52:37 Estel: "could not find the property VERSION_NAME on project Aug 06 14:53:09 but "importing a gradle" sounds wrong. Aug 06 14:53:21 rgr: eh, I'll try but I wish importing the build.gradle file worked properly. Aug 06 14:53:37 who knows whats in that? Aug 06 14:53:43 Just open it. Aug 06 14:53:59 How did you create the build.gradle? Aug 06 14:54:06 rgr: generate gradle files from eclipse Aug 06 14:57:02 then you should just open the build.gradle I would think. But the bottom line is : get your project hierarchy into the recommended gradle/AS format. It will save a ton of time. Aug 06 14:57:29 I can't just open it. http://i.imgur.com/HBL4Wu5.png Aug 06 14:57:33 actually no, you should import now I come to think of it. I take it it includes the andoird tools plugin etc? Aug 06 14:58:06 rgr: the page about migrating seems to say that the as importer rearranges it for you Aug 06 14:58:26 I feel sorry for people with a million apps relying on ads. Aug 06 14:58:33 With this change. Aug 06 14:58:48 Looks like you have to change the id in all your apps. Aug 06 14:58:51 How rude of google. Aug 06 14:59:51 I tried to follow from here http://tools.android.com/tech-docs/new-build-system/migrating-from-eclipse-projects Aug 06 15:00:42 wow the new v4 google analytics API is so bizzare! Aug 06 15:02:21 http://pastebin.com/m8KND3fH Aug 06 15:02:33 why Action Bar stays white? Aug 06 15:04:39 i tried changing "android:background" to "background" as i use Compitability but it says "Color Types are not allowed" :( Aug 06 15:04:43 OverCoder: because you didnt apply the style in your manifest. Aug 06 15:04:54 (maybe) Aug 06 15:04:55 i apply it inside the mainAcitivty Aug 06 15:04:58 using setTheme Aug 06 15:05:03 it works for other themes Aug 06 15:05:08 the theme changes Aug 06 15:10:01 how can i set NavigationBar color depending on the Theme chosen? Aug 06 15:10:10 hello all, i have been asking this question for long time and i was suggested that the chances of it getting answered with suggestions was at the US time... so here i am Aug 06 15:10:28 is there any library to project my accelerometer and gyro readings ? Aug 06 15:10:46 2. how accurate is the accelorometer reading ? Aug 06 15:11:19 solofight: Whould depend on the phone, Age, treatment for the accuracy. Aug 06 15:11:20 solofight: you mean show them as a graph or something? or just read the value? Aug 06 15:12:26 OverCoder: suppose i give it the ous three readings can it tell me the next three projections based on the given 3 ? Aug 06 15:12:51 MadMan2021: generally the phones running 4.4 Aug 06 15:13:14 How do I update gradle? Aug 06 15:13:18 if i have that as a baseline ^ that should narrow down latest phones right ? then what percentage of accuracy can i get ? Aug 06 15:13:46 solofight: You asked how Accurate the accelorometer reading is right? That would depend on the hardware, unless I am misinterperting your question. Aug 06 15:15:07 MadMan2021: yes, thats what i asked, and now, just guessing whether is it safe to consider that devices running 4.4 and above can always be a good hardware always ? Aug 06 15:15:08 Moony22: unsure but over-install it? Aug 06 15:15:29 OverCoder: did i ask something wrong or noobish ? Aug 06 15:15:44 solofight: no Aug 06 15:15:53 i'm just a noob too Aug 06 15:15:55 xd Aug 06 15:16:29 OverCoder: oh, ok Aug 06 15:16:39 solofight: nah, you probably can't assume that a user will always have an incredible accelerometer Aug 06 15:16:46 but they're usually... okay! Aug 06 15:17:00 solofight: Main brand devices will typically have decent hardware in terms of the sensors, But if someone's using some chinease cheap brand device, I wouldnt trust it being a good quility sensor Aug 06 15:17:15 Im not sure what you mean by Projecting? You want to extrapolate a future reading? Aug 06 15:17:36 Estel: correct... thats the word.. thank you Aug 06 15:17:41 Also damaged/dropped phones and age can play a part in the sensor's acuracy. Aug 06 15:17:51 yes i want to extrapolate the readings based on previous 2 or 3 reading Aug 06 15:17:57 MadMan2021: got it Aug 06 15:17:59 thanks Aug 06 15:18:11 How do I get gradle-wrapper to be generated? Aug 06 15:19:01 Estel: i googled and read that they use the term physics Aug 06 15:19:07 but its al lmanually defined and coded Aug 06 15:19:32 solofight: yeah, there probably won't be a library for that Aug 06 15:19:37 like jquery for javascript... is there any library for such accelorometer, gyro readings extrapolation Aug 06 15:19:45 Estel: ohh.. Aug 06 15:20:02 solofight: i believe that sensors are not 100% accurate but not less than 95% Aug 06 15:20:11 why do you need all that accuracy Aug 06 15:20:13 ? Aug 06 15:20:20 OverCoder: to track a phones location Aug 06 15:20:26 No you can't do that Aug 06 15:20:36 and its motion speed Aug 06 15:20:47 displacement Aug 06 15:20:49 Integrating to get the phone's physical position can't be done Aug 06 15:21:10 I can't find gradle-wrapper.properties Aug 06 15:21:11 Your error climbs to many, many kilometres within a second. Aug 06 15:21:25 Estel: maybe you are wrong, maybe he is using some-other-stuff to achieve this Aug 06 15:21:43 If someone has a Tango device, more power to them :P Aug 06 15:21:57 xd Aug 06 15:23:00 solofight: do you want to track phone location inside a specific place? Aug 06 15:23:02 is there some expedited way of determining what excetion a function will throw? Aug 06 15:23:43 jamesson: as far as i know when something need to be thrown Eclipse will tell you want give you the aproperiate exception Aug 06 15:23:53 Someone has to use gradle here... Aug 06 15:24:12 *if i understood your question correctly btw Aug 06 15:24:14 OverCoder:? Aug 06 15:24:48 oh now i got your question Aug 06 15:24:51 sorry Aug 06 15:25:05 OverCoder: so I should just type catch and eclypse will autocomplete? Aug 06 15:25:08 Moony22: maybe, but they probably just find it being autogenerated xD Aug 06 15:25:35 Estel: within second to many many more km ! ? Aug 06 15:25:42 can you please explain why you say that Aug 06 15:26:11 jamesson: as far as i've tried, when you enter a wrong exception in catch method, eclipse will tell you that it need a different exception Aug 06 15:26:18 Integrating ? Estel ? Aug 06 15:26:23 OverCoder: ah, cool Aug 06 15:26:43 Estel: haha, I love gradle so much. http://i.imgur.com/TCkdFeY.png Aug 06 15:26:47 OverCoder: eclipse would be a great program if it werent such a shitty program Aug 06 15:26:54 solofight: if you're tracking the absolute position of a phone in space, the process of determining how far it has moved based on its acceleration is integration Aug 06 15:27:08 But you'll have a huuuggeee error when you do it Aug 06 15:27:10 jamesson: not much alternative Aug 06 15:27:17 jamessson: "shitty"? why? Aug 06 15:27:43 I'm getting an error. Aug 06 15:27:44 OverCoder: location inside a place ... my use case is mostly outside of a building Aug 06 15:27:45 Without a message. Aug 06 15:27:46 OverCoder: google "uninstall eclipse plugins", but make sure youve taken your hear tmeds first Aug 06 15:27:55 solofight: what are you trying to make? Aug 06 15:28:37 jamesson: by the way when you use some function that requires try/catch and you didn't do that eclipse will auto add it for you Aug 06 15:28:49 jamesson: trust me, at least with eclipse you can code Aug 06 15:29:03 android studio doesn't let you... Aug 06 15:29:32 Estel: and the huge error being caused due to the motion of the device ? do you mean that it takes so much time to get a fix in the meanwhile the device would have travelled ? Aug 06 15:30:34 Kind of Aug 06 15:30:41 I'm now going to dedicate myself to warning people not to use android studio Aug 06 15:30:49 Moony22: I haven't tried Android Studio but Eclipse is a must-have app for a programmer Aug 06 15:31:09 Moony22: why not use it? Aug 06 15:31:11 Moony22: maybe it's the export functionality in Eclipse that broke? :P Aug 06 15:31:40 * p_l is happily Eclipse-less Aug 06 15:31:40 Estel: it's nothing to do with the project. It's to do with gradles retarded system of errors Aug 06 15:31:41 xd Aug 06 15:31:58 Estel: I have never seen something say error: without telling me without the error is Aug 06 15:32:02 what the error is* Aug 06 15:32:21 Mooney22: what is gradle btw? what it differs from the standard one? Aug 06 15:32:50 OverCoder: gradle is a stuipd build tool which will work 0.2% of the time Aug 06 15:32:57 stupid* Aug 06 15:33:07 false Aug 06 15:33:08 xd Aug 06 15:33:10 it works 100% of the time Aug 06 15:33:11 what do you mean Aug 06 15:33:14 you only work .2% of the time Aug 06 15:33:21 gradle is a build system Aug 06 15:33:34 a programmer work 120% all time as i know Aug 06 15:33:35 xd Aug 06 15:33:50 p_l: what do you use? if anything? Aug 06 15:33:52 nicer than Ant (though more complex), less inane than Maven IMHO, understandable unlike Eclipse's Aug 06 15:33:55 pfn: I'm following instructions. I can't be doing anything wrong Aug 06 15:34:16 pfn: It's gradle which is giving me no error so I can't see what's wrong Aug 06 15:34:20 Estel: i want to pair gps + acc + gyro to get a fix Aug 06 15:34:23 jamesson: depending what I'm doing, usually Emacs, if I have to deal with Java then IntelliJ IDEA, sometimes other things (inlucing ViM) Aug 06 15:34:32 Moony22: why ? Aug 06 15:34:35 Write your own build.gradle if whatever eclipse generated for you doesn't work Aug 06 15:34:37 as a moderate programmer, will i see a difference? Aug 06 15:34:38 xd Aug 06 15:34:41 solofight: why what? Aug 06 15:34:56 Listening to constant whining gets boring Aug 06 15:35:03 Moony22, you're doing everything wrong, I'm sure Aug 06 15:35:28 it uses intellij right ?.... i spent several hours to decide why i should choose intellijj over eclipse and why not android studio Aug 06 15:35:31 pfn: All I did is import a project. Aug 06 15:35:37 dont say its all gone to waste Aug 06 15:35:40 * solofight cries Aug 06 15:35:55 solofight: you should stick to GPS only. It's really not worth trying to use the gyro to get position :) Aug 06 15:36:01 how do you "* solofight cries" Aug 06 15:36:06 Moony22, so? Aug 06 15:36:12 solofight: AndroidStudio is based on IntelliJ beta Aug 06 15:36:17 OverCoder: /me Aug 06 15:36:18 Moony22: you cant just expect it to work. Sounds like your project is a total mess. It cant solve that for you. Aug 06 15:36:22 You could consider creating a pedometer , which you could maybe use to calculate steps Aug 06 15:36:26 solofight: is tracking in a specific location or everywhere? Aug 06 15:36:26 OverCoder: /me Aug 06 15:36:28 And that would be more accurate Aug 06 15:36:29 pfn: So, I don't see where I could have gone wrong. Android studio website tells me to do so. Aug 06 15:36:50 * OverCoder sad Aug 06 15:36:57 Moony22: did you try running gradle in terminal to get some output? Aug 06 15:37:00 OverCoder: everywhere ... why ? Aug 06 15:37:29 Moony22: ^ Aug 06 15:37:32 i was just thinking if it was a locked room you can track the position using multiple wifi cards Aug 06 15:37:40 solofight: if it's a specific location you could look at using BTLE beacons to get more accurate locations Aug 06 15:37:44 p_l: so ? Aug 06 15:37:45 Estel: no, I'm not too sure how Aug 06 15:38:08 Moony22: there's an executable ./gradlew thing, I think Aug 06 15:38:18 Can't remember exactly, been stuck with maven for a few months Aug 06 15:38:44 Estel: well it's not in my project directory Aug 06 15:38:49 solofight: i remember i've been able to track down a network position using a single wifi card, but not accurate at all, but tells you a bit where Aug 06 15:39:08 so if you used multiple ones by some way, you might be able to get accurate position with the use of GPS Aug 06 15:39:11 rgr: It could at least tell me what's wrong though, so I can fix it myself Aug 06 15:39:20 Moony22, if you haven't run gradle from the commandline to identify your problem, then you haven't even begun to diagnose anything Aug 06 15:39:47 Who cracked a wifi network ever? Aug 06 15:40:05 * OverCoder special Aug 06 15:40:08 pfn: I don't have a gradlew file in my project root Aug 06 15:40:21 copy one from somewhere Aug 06 15:40:25 maybe android update project does it Aug 06 15:41:25 Moony22: ah, you didn't fix AS not responding when importing the project? Aug 06 15:41:54 Estel: BTLE beacons ? you mean bluetooth beacons ? Aug 06 15:41:55 Estel: I fixed that part Aug 06 15:42:31 solofight: yeah, they're good for positioning someone accurately if they're configured beforehand. Aug 06 15:42:54 OverCoder: oh.. is resolving the ping response time better ? Aug 06 15:43:00 to find an inside location ? Aug 06 15:43:30 No, don't do that Aug 06 15:43:41 OverCoder: use GPS inside a building ! ? is it even possible ? it will be a AGPS and be inaccurate was my understanding ! Aug 06 15:44:13 oww GPS inside a bulding = no signal Aug 06 15:44:17 how fool am i Aug 06 15:44:18 xd Aug 06 15:45:07 hmmm Aug 06 15:45:50 solofight: is the phone connected to a network? Aug 06 15:46:14 yes Aug 06 15:46:30 with disconnection at few time intervals Aug 06 15:46:49 solofight: it might be easier if you explain your usecase Aug 06 15:47:00 Estel: +1 Aug 06 15:47:46 Estel: i want to build a app which uses phone sensors to identify ups and downs while travelling Aug 06 15:48:11 "ups and downs"? what are these? Aug 06 15:48:12 xd Aug 06 15:48:20 Hills? Potholes? Aug 06 15:48:25 hmmm Aug 06 15:48:53 OverCoder: That's not true. In the US, you get a decent fix with 5 sats even inside most buildings. Aug 06 15:49:10 in major areas.. Aug 06 15:49:20 i've never used GPS personally xd Aug 06 15:49:21 Estel: yes Aug 06 15:49:32 it works.. Aug 06 15:49:34 Estel: hwo did you get to know about the project tango ? from where do you get such updates ? hoow do i update myself like you ? Aug 06 15:49:42 shadynastys: They're *satellites*. The only reason it works better in the US than other places is a geo-lock preventing people from outside the geographic US getting the fifth sat. Aug 06 15:49:44 i'm unsure but android tells that it needs the view of the sky Aug 06 15:49:45 Estel: you got it right - thats exactly what i want to build Aug 06 15:51:09 OverCoder: If you're north of, say, 50 degrees N, or south of 50 degrees S, or don't have a view of the horizon, you won't get your fourth sat either, and timing and resolution will be awful, but you'll still get a fix (about a minute or so later). Aug 06 15:51:12 Estel: can i pm you ? Aug 06 15:51:27 I'm heading home soon, so easier not to Aug 06 15:51:34 i think the best and the most accurate way is to use Google Earth/Maps with GPS by some kind of a way Aug 06 15:51:41 but i think it's harder than i think Aug 06 15:51:53 That would be https://developer.android.com/google/play-services/location.html and it's not hard at all. Aug 06 15:52:03 Estel: ok, np ... now that i have given my usecase - any ideas ? Aug 06 15:52:16 solofight: is it hills or potholes you care about? Aug 06 15:52:29 potholes Aug 06 15:52:38 Ha, a fortuitous guess xD Aug 06 15:52:57 freeone3000: lol i'm anoob Aug 06 15:52:58 xd Aug 06 15:53:29 solofight: is the idea that you can drive in your car and it would automatically detect any potholes you drive over? Aug 06 15:53:38 Estel: :| Aug 06 15:53:49 yes Aug 06 15:53:52 (Which is a cool idea, btw) Aug 06 15:53:53 would have to be some pretty bloody bit pot holes or crappy suspensions. Aug 06 15:53:55 solofight: Okay. You'll want to plot periods of high "jerk" - rate of change of acceleration. So you'll need to keep a rolling buffer of the last few dozen entries, and look for areas where there's a high rate of instantaneous change. Aug 06 15:54:00 s/bit/big Aug 06 15:54:32 In terms of the pothole position, you'll have to use GPS alone, you won't be able to do anything with the gyro Aug 06 15:54:46 Other than use the gyro to detect the pothole, of course. Aug 06 15:55:18 are there any recommended ways of doing SQLite database operations? like are there any external jars I can use, or people just use the default SQLiteOpenHelper package? Aug 06 15:55:19 If the GPS works in the car properly.... Aug 06 15:55:22 solofight: yes! you can use GYRO Aug 06 15:55:29 Estel: so is there any library which i can use of for this purpose ? Aug 06 15:55:29 only gyro Aug 06 15:55:29 Yeah, but there won't be anything better than the GPS. Aug 06 15:55:50 Estel: thanks for acknowledging the idea Aug 06 15:55:53 solofight: http://developer.android.com/guide/topics/sensors/sensors_motion.html . TYPE_LINEAR_ACCELERATION is the sensor most aligned to what you want to do. Aug 06 15:55:54 actualy it's faster *i think* Aug 06 15:56:09 solofight: And of course, https://developer.android.com/google/play-services/location.html to plot them on a graph. Aug 06 15:56:17 my company did not think so... so i am resigning my job to build this and then get a new job into mobile development focussed company Aug 06 15:56:30 any ideas why I'm not having android.graphics.Outline ? (android-L) Aug 06 15:56:35 honestly? I think the idea is doomed. youd need potholes the size of bore holes to register properly with modern cars suspension. Aug 06 15:56:51 Nah, you'll probably just have to test to see what sort of acceleration corresponds to hitting a typical pothole through trial and error Aug 06 15:57:02 rgr: but the people with crap suspensions will care about potholes most! Aug 06 15:57:17 solofight: take a look at this https://play.google.com/store/apps/details?id=kr.sira.measure&hl=en app, it's something a bit similar Aug 06 15:57:27 but good luck anyway.. Here's some inspiration from dilbert : http://www.dilbert.com/strips/comic/2014-08-04/ Aug 06 15:57:41 i mean you can see how he measured an object with sensors Aug 06 15:57:53 potholes are rarely that much of an issue and you use eyes to detect them : not staring at a small mobile screen. It's an awful idea... sorry... Aug 06 15:57:56 If the sensitivity is set well and you use some BIG DATA stuff to aggregate reports, the accuracy might be non-crap. And you can definitely highlight "trouble" areas, even if they aren't actual potholes Aug 06 15:58:06 thank you freeone3000 escalant3 OverCoder rgr.. will read them Aug 06 15:58:14 is this the usual time you all appear in the room ? Aug 06 15:58:24 for me it's not Aug 06 15:58:33 rgr: depends what the purpose is. Automated reporting to authorities might make more sense than active information Aug 06 15:58:45 yeah, but seriously, where they are "such a big problem" the road is generally closed or diverted. its inventing a problem ... but what do I know. I know I wouldnt use it. Aug 06 15:58:50 Ok, so I'm running gradle through the command line and fixing various issues. I've come across something saying "Cannot add extension with name android, as there is an extension already registered with that name Aug 06 15:58:54 " Aug 06 15:59:03 Estel: that it is true. But again there would be a lot of false positives I reckon. Aug 06 15:59:17 rgr: you need not stare Aug 06 15:59:22 freeone3000: GPS alone not the best indoors that is why https://www.youtube.com/watch?v=Bte_GHuxUGc 12:32 Aug 06 15:59:24 rgr: Have you ever been to Michigan? Aug 06 15:59:30 this is my build.gradle http://pastebin.com/TAXhKEDS Aug 06 16:00:23 Not too sure what's wrong Aug 06 16:00:48 You don't apply both android and android-library Aug 06 16:00:52 They also go outside of buildscript Aug 06 16:01:02 ah Aug 06 16:01:11 ok, ok, you would use an app telling you there is a big hole in the ground right in front of your face. Another solution for a non existent problem IMO but as I said ... maybe it has a market. Aug 06 16:01:13 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Simple-build-files Aug 06 16:01:31 rgr: yeah, definitely difficult to know how many false positives you'd get, but it would be interesting to see a proof of concept Aug 06 16:01:56 Or you could just use one thats already made.... Aug 06 16:01:59 https://play.google.com/store/apps/details?id=its.potholedetector Aug 06 16:02:21 solofight: first, you need to point the phone down the hill (if you were top for e.g.) you can use camera to do that, then you need to do some calculation between the distance and how much the phone is tilted, i think it can be done that way Aug 06 16:02:22 Is it possible to re-use my DialogFragment after I dismiss it? Here's what I've tried: http://pastebin.com/jTUVVUCt Aug 06 16:02:31 my bad didnt search enough to find that app thanks rgr... thought there is no such app existing Aug 06 16:03:02 OverCoder: phone down the hill ! ? Aug 06 16:03:10 solofight: execution is everything, the fact that someone else has made something shouldn't be much of a deterrant Aug 06 16:03:11 yeah, thats pretty stupid. Which suggests the app would be worse ;) This review also sums up how bad the idea is (IMO etc etc) : " Aug 06 16:03:11 Stupid idea First of all, the app doesn't work. But if it did, it would only be effective if you hit potholes. I drive around potholes." Aug 06 16:03:30 solofight: point it Aug 06 16:03:36 not put the phone there Aug 06 16:03:43 Now thats a good point .... youd have to drive over the pot holes to record them .... lol... Aug 06 16:03:48 SimonVT: thanks, it fixed that part, but I get " Could not find method compile() for arguments [directory 'libs']" with this build.gradle http://pastebin.com/B8uhJJRe Aug 06 16:04:09 rgr: similarly xd Aug 06 16:04:53 rgr: it could be generified so that it's reporting "bad road conditions" more than just "potholes" Aug 06 16:05:03 OverCoder: ohh you were talking about the app which the link was posted ? how did you get to know how it works already ? Aug 06 16:05:06 have you used it ? Aug 06 16:05:25 Estel: thanks for the word of confidence Aug 06 16:05:46 Estel: yes, it could also deliver mail. Lets not move the goalposts here. Aug 06 16:06:05 Estel: :) yes.. Aug 06 16:06:08 and theres more Aug 06 16:06:18 solofight: im genius Aug 06 16:06:21 xd Aug 06 16:06:36 actually in that app Aug 06 16:06:40 Moony22: Im not sure your dependencies are in the right place. Why in the buildscript closure? Im not 100% sure. Aug 06 16:06:40 one simple question does the NameOfAList.add() method add it to the next free index? Aug 06 16:07:00 you specify how many meters the phone is away from the ground Aug 06 16:07:11 ulli909: it adds it to the end Aug 06 16:07:14 http://developer.android.com/reference/java/util/List.html#add(E) Aug 06 16:07:24 so you get the first distance Aug 06 16:07:39 Is it possible to re-use my alertDialog when using a DialogFragment after I dismiss it? What i want is to dismiss->after some time show+setTitle. Here's what I've tried: http://pastebin.com/jTUVVUCt Aug 06 16:07:40 ok good thx Aug 06 16:07:41 and then when you tilt the phone you get the second distance Aug 06 16:07:51 rgr: Maybe I'll move them Aug 06 16:07:56 and the third can be got though calculations Aug 06 16:07:56 OverCoder: ahh i was thinking you were talking about this https://play.google.com/store/apps/details?id=its.potholedetector Aug 06 16:08:04 but for appcompat etc you should be using maven dependencies from here Aug 06 16:08:06 lol no Aug 06 16:08:09 http://gradleplease.appspot.com/ Aug 06 16:08:31 thank you freeone3000 escalant3 OverCoder rgr.. for the time and knowledge share Aug 06 16:08:34 http://gradleplease.appspot.com/#appcompat Aug 06 16:08:37 will start reading about them Aug 06 16:08:58 solofight you are welcome :) Aug 06 16:09:28 so won't any1 help me with my damn style? Aug 06 16:09:36 pfft Aug 06 16:09:49 rgr: meh, didn't mean to move the goalposts :P but technologically at least it isn't /entirely/ out of the realms of possibility, and far from the worst app idea I've ever heard in here... Aug 06 16:10:30 :| Aug 06 16:10:30 and if i remove sth from the list do those other objects move to fill up the spot Aug 06 16:10:30 Estel: @ mine ? Aug 06 16:11:50 can i use google maps inside my app ? is it allowed ? Aug 06 16:11:53 rgr: you don't have an example of a gradle file you use with 0.8.4 I could maybe see? Aug 06 16:12:22 i have heard earlier that people usually run into licence issues when they use google maps commercially Aug 06 16:12:32 any inputs ? Aug 06 16:12:48 no Aug 06 16:12:54 solofight: yes you can, there's a free usage limit before you have to worry about anything Aug 06 16:12:55 you won't get any trouble Aug 06 16:13:07 Estel: oh Aug 06 16:13:10 OverCoder: :) Aug 06 16:13:12 ok thank you Aug 06 16:13:17 tnp Aug 06 16:13:20 np* Aug 06 16:13:25 0.8.4 what? Aug 06 16:13:40 NavigationBar shows the same UI? Aug 06 16:13:41 wtf Aug 06 16:13:44 rgr: of android studio Aug 06 16:13:59 this is the first time i use NavigationBar :P Aug 06 16:14:09 should i replace fragments? Aug 06 16:14:18 i can't see a tutorial for that Aug 06 16:14:29 solofight: the limits are high enough that you only worry if you're actually successful Aug 06 16:14:32 rgr: or any build.gradle file come to think of it Aug 06 16:14:44 I dont use Android Studio. I use intellij. But heres mine for one small project :https://gist.github.com/anonymous/964f190768644743d44 Aug 06 16:15:29 escalant3: got it.. so il not worry about that when trying to build this Aug 06 16:15:29 rgr: er, 404 Aug 06 16:15:37 thanks Aug 06 16:15:52 solofight: oh sorry, my mistake, no limits on ANDroid Aug 06 16:15:53 and using android studio for building is a good idea right ? Aug 06 16:15:59 or should i go with intellij ? Aug 06 16:16:12 Estel: oh wow Aug 06 16:16:27 solofight believe me Eclipse is the best ever, trust me Aug 06 16:16:44 Android studio is just an easy way to install IntelliJ and the Android plugin, really. Aug 06 16:17:17 Does anyone have a build.gradle file I could see? Aug 06 16:17:26 OverCoder: http://java.dzone.com/articles/why-idea-better-eclipse Aug 06 16:17:35 that uses gradle 1.12 Aug 06 16:17:48 Estel: but better than eclipse + ADT right ? Aug 06 16:17:53 just to add that Android Studio is still beta and it indeed has some bugs and troubles and actually it's not worth going for it Aug 06 16:18:02 sure Aug 06 16:18:17 Moony22: just create a new blank project in AS? Aug 06 16:18:57 solofight: i beleive IDEA is crap Aug 06 16:19:06 believe* Aug 06 16:19:36 Estel: Could idea Aug 06 16:19:51 Estel: "could not find any version that matches com.android.tools.build:gradle:0.12.+" :( Aug 06 16:26:17 Moony22: https://gist.github.com/anonymous/492c7e90bd1643297615 .. no idea why that didnt work Aug 06 16:29:02 It's this http://imgur.com/V96l2KF even though i set this http://pastebin.com/m8KND3fH , i will pull my hair if none helped me Aug 06 16:29:10 :'( Aug 06 16:29:20 i've been stuck with it for around an hour Aug 06 16:36:12 rgr: Thanks, I think I'm just going to create a new project and just copy over files manually Aug 06 16:38:12 OverCoder: try replacing parent="@android:Theme.Holo.Light" with parent="@android:style/Theme.Holo.Light" Aug 06 16:44:30 is it possible to put icons/pictures with styls on every "corners" of the shape ? like that http://img4.hostingpics.net/pics/511090Sanstitre.png Aug 06 16:51:59 bhargavg: it requires API >=1 Aug 06 16:52:03 >=11 Aug 06 16:52:13 i want it to work on API 8 Aug 06 16:54:39 is there a way to "gradually" fade in views Aug 06 16:54:48 or something else nice looking Aug 06 16:56:27 "gradually"? Aug 06 16:58:27 iffa: http://developer.android.com/training/animation/crossfade.html Aug 06 16:59:28 SimonVT: well, im bad at explaining, but something like elements start fading in at the top and the "fading" moves down, so it doesnt fade in all at once but rather in a sqeuence of sorts Aug 06 16:59:51 This http://android-holo-colors.com/ generates a Holo Theme based on my needs, it also generates the XML files, but what should i do with those XML files? Aug 06 17:00:13 what's the guideline for updating UIs if data items change? Aug 06 17:00:18 they are ending with _apptheme (such as layout_apptheme.xml) Aug 06 17:00:20 update immediately? Aug 06 17:00:26 OverCoder: keep in appropriate drawable folders? Aug 06 17:00:55 i copied the drawables, that's OK Aug 06 17:01:00 but the XML's? Aug 06 17:01:13 let me check what all it is generating Aug 06 17:01:23 k thanks btw Aug 06 17:01:38 Afzal sure; unless its so fast you should throttle it like every 250ms Aug 06 17:01:45 25ms-500ms Aug 06 17:01:57 oops, 250ms-500ms Aug 06 17:02:18 g00s, hmm. Yeah, I'm facing an issue where I update a toggle on the watch if it's changed on the phone and sometimes it just keeps toggling like mad Aug 06 17:02:22 on both Aug 06 17:03:20 g00s: can we just update the listview rows directly from code? i saw in google i/o session video that you shouldn't update the view yourself but update model and call notifyDataSetChanged() Aug 06 17:03:46 Afzal like this :P https://www.youtube.com/watch?v=u0-OGlWjxsg Aug 06 17:03:47 SimonVT: please correct me if i'm wrong Aug 06 17:04:14 g00s, LMAO yup but less funny :p Aug 06 17:04:16 bhargavg i've done both; notifyDataSetChanged is much easier Aug 06 17:04:59 iffa: Oh, so like apply an alpha to only part of the view? Or as a gradient.. I have no idea Aug 06 17:05:16 g00s: the talk says that if we modify the UI, it will cause inconsistency with the model... blah blah blah... did you ran in to any issues with this approach? Aug 06 17:05:34 SimonVT: yeah, as a gradient sort of Aug 06 17:05:35 bhargavg: As long as the view can be re-constructed as it is by the adapter you're fine Aug 06 17:06:19 SimonVT: so, we can update the view directly 'but' we have to change the model also right? Aug 06 17:06:24 got a question on rx.BehaviorSubject Aug 06 17:06:24 Yes Aug 06 17:06:37 hmm Aug 06 17:06:49 do we have any GitHub app example of app using RxJava extensively? Aug 06 17:07:22 any body here used Reactive Programming in any of thier projects? how good is it? Aug 06 17:07:46 pretty good for certain scenarios. don't leak inner classes. Aug 06 17:07:55 little verbose without lambdas Aug 06 17:07:59 If I have a BehaviorSubject that starts with an item from my database, and and I want to trigger a remote refresh of that item, it goes something like this: Aug 06 17:08:13 1. initialize behaviorsubject with item from the database. Aug 06 17:08:15 bhargavg i think this http://blog.rafaelks.com/post/47898772164/how-to-use-custom-holo-theme-in-android-with-titanium is what i want? right? Aug 06 17:08:44 2. flatMap it to the observable API call with retrofit Aug 06 17:08:58 3. flatMap the retrofit response to update the database Aug 06 17:09:22 4. flatMap that and return the updated object from the database Aug 06 17:09:47 in theory, I should hit onNext() twice, shouldn't I? Aug 06 17:10:44 once immediately on subscribe, and a second time once the API call and database is updated Aug 06 17:10:44 OverCoder: i didnt understand what they are saying, but have you tried this http://jgilfelt.github.io/android-actionbarstylegenerator/ ? Aug 06 17:12:18 in Google Play Books, there is an 'Aa' icon that shows a fragment or popupWindow - is it most likely that Tab thing is a TabHost ? Aug 06 17:12:21 i've seen it but http://android-holo-colors.com/ seemed better for unknown reason, btw i think it generates the same files Aug 06 17:12:46 oh actually, its the little icon on the bottom that looks like table of contents Aug 06 17:13:03 Autoformat in my Android Studio does not appear to do be working, anyone else have this problem? Aug 06 17:13:17 lasserix yeah sometimes Aug 06 17:13:26 Know a solution? Aug 06 17:13:30 usually if there is a misplaced { } somewhere Aug 06 17:13:51 nah it's all proper, just won't break the lines if the line is going wwayyy off the screen Aug 06 17:14:22 the only problem i have seen is indentation within the same statement flowing a few lines Aug 06 17:14:31 hmm Aug 06 17:16:49 guess ill play with "Wrapping and Braces" options till iget it Aug 06 17:24:43 anyone see an example using TabWidget without TabHost ? Aug 06 17:25:20 Uhm... Does anyone in here use Wayland with IntelliJ/AS/Eclipse? Aug 06 17:26:37 oh yeah forgot there was FragmentTabHost also Aug 06 17:29:10 flan3002: which distro are you using? Aug 06 17:30:59 bhargavg: ArchLinux, Weston, starting Idea, I get a NoClassDefFoundException for sun.awt.X11GraphicsEnvironment, which obviously hints that the JDK (Swing) does not support Wayland (yet?). Aug 06 17:32:28 yes guess so Aug 06 17:32:52 by the way which jdk version? Aug 06 17:32:55 Is there a way to catch if my application crashes? like a callback I can do somehow? Aug 06 17:34:19 lasserix there is a thread uncaught exception handler - but thats already handled :| Aug 06 17:34:53 not really a good idea to change that unless you want custom crash analytics or something Aug 06 17:35:25 Anyone familiar with BehaviorSubject? Aug 06 17:42:16 hi i just want to create two layout xml files and have a button on each that can switch to the other layout. I'm trying to figure out what i should look into Fragments, intents? what? any help appreciated thanks. Aug 06 17:43:57 i've tried just making a function that calls setContentView(R.layout.activity_my); Aug 06 17:45:35 you can achieve that fragments, not with setContentView Aug 06 17:46:00 veQue, personally I'd have both layouts in a single XML, each within its own LinearLayout (or whatever else is appropriate), and then switch them with View.setVisibility() Aug 06 17:47:27 ok, so would it be fair to say that there's not much use for having multiple xml files for layouts ? Aug 06 17:48:01 no, it would not be fair Aug 06 17:48:13 there's plenty of use for multiple XMLs Aug 06 17:48:23 layout XMLs? Aug 06 17:48:32 you mean for the same activity? Aug 06 17:48:43 same app Aug 06 17:48:52 i guess not so much same activity Aug 06 17:48:54 anyone use android studio? How do I view errors, like in eclipse Aug 06 17:48:54 seems like let the teeth pulling begin Aug 06 17:48:55 ? Aug 06 17:48:55 yes layout XMLs Aug 06 17:48:56 yeh of course you need multiple layout files within the app Aug 06 17:49:13 veQue, your problem is, you're using them (or trying to) wrong Aug 06 17:49:51 ok, so for the time being i'll working on getting the multiple layout via one xml working. Aug 06 17:50:00 View -> tool windows - > messages isn't there Aug 06 17:50:07 veQue, I guess what you're trying to say is, not much use for multiple *main* XML layouts for a single activity Aug 06 17:50:12 in AS code errors show up in red by default... or did you mean the console? Aug 06 17:50:21 g00s, fixed it. Just had to use freezable utils on the data event buffer :) Aug 06 17:50:27 njcomsec: I meant the messages window Aug 06 17:51:04 njcomsec: which has disappeared from my layout Aug 06 17:51:05 hmm. yes i suppose i have some confusion about it. Aug 06 17:52:20 Basically, I no longer have Messages in my tool windows. How can I fix this? Aug 06 17:52:46 Is there some indicator that you are in a Viewpager and can swipe to change page? Aug 06 17:52:51 Also, I just fixed it Aug 06 17:53:39 ok, just for my understanding. if i want to, I can create two xml files(each with a single layout) and switch to them? Aug 06 17:53:52 within one activity? Aug 06 17:54:40 theoretically yes but it's tricky, because that's not the intended usage Aug 06 17:54:48 ohhh ok. Aug 06 17:54:57 thanks, that's what i needed to know. Aug 06 17:55:04 yw Aug 06 17:55:12 so just use one xml file with two layouts? Aug 06 17:55:23 do some reading Aug 06 17:56:02 canvs2321: i kinda wish i couldv'e gotten one more sentence out of ravilov before you said that. Aug 06 17:56:10 lol Aug 06 17:56:13 ^ sentence Aug 06 17:56:13 because i was going to do that. Aug 06 17:56:21 but seriously, yes Aug 06 17:56:23 like I said Aug 06 17:56:33 two (or more if you want) linearlayouts, play with visibility Aug 06 17:56:34 ok much thanks. Aug 06 17:56:56 * veQue exits on good vibe afterall Aug 06 17:56:57 =) Aug 06 18:01:01 Is there some indicator that you are in a Viewpager and can swipe to change page? Aug 06 18:02:26 Do you recommend the bitbucket plugin instead of the version control plugin Aug 06 18:03:56 Moony22: in Android Studio/IDEA? Aug 06 18:04:03 JesusFreke: Yes Aug 06 18:04:14 What are the best beginner android dev tuts with IDEA? Aug 06 18:04:38 Yeah, you should be using some form of external source control. git or mercurial or something. Don't rely on IDEA's automatic local version control thingy Aug 06 18:04:43 anyone know if you can emulate "physical" dimension on nexus 10 (of other devices obviously) ? Aug 06 18:04:48 (which is great, but isn't a replacement for actual source control) Aug 06 18:05:09 JesusFreke: But I mean the plugin Aug 06 18:05:53 oh, gotcha. I haven't used the bitbucket plugin specifically Aug 06 18:06:07 JesusFreke: As in, do you recommend using either the inbuilt Version control system, or something else, and if something else, what :p Aug 06 18:06:08 I just use a local git repo and manually push to bitbucket/github/googlecode when needed Aug 06 18:06:26 JesusFreke: How do you manage it Aug 06 18:06:42 I mostly just use the command line for source control Aug 06 18:06:52 JesusFreke hmmm what about branches? Aug 06 18:06:54 I use the IDEA git plugin a bit, but just command line "git" for the most part Aug 06 18:07:01 git branch, git checkout -b, etc. Aug 06 18:07:59 Although, I do have to say, IDEA's "show history for selection" feature is *awesome* Aug 06 18:08:34 kinda like git blame, but it shows all changes affecting the selection, rather than just the last person that touched that line Aug 06 18:09:11 g00s: despite my warnings to my superiors, they want to go ahead and release an sdk for android that uses a executable. we start this executable from java using java.lang.proc but once started it forks its own system/deamon level process (sorry if my wording is off here). anyways, if the app crashes for instance, it will continue to run... Aug 06 18:09:22 hence i was trying to figure out a hook to send a flag to shut it down Aug 06 18:09:46 otherwise i guess i'll have to tell them it is necessary to put a inactivity timer or something for shutdown Aug 06 18:09:49 is anyone experienced with Fuse support in the android kernel ? Aug 06 18:10:11 hi. My Debian Wheezy box doesn't recognize my ASUS Fonepad 7 (ME373CG with an Intel SoC) in fastboot mode even with fastboot running as root, although the device shows up on the USB. any tips on what might be amiss? Aug 06 18:11:27 someone know a good ViewPager example? Aug 06 18:11:31 JesusFreke: I'm kind of new to git as well, what does switching a branch actually do Aug 06 18:11:35 adb works. Aug 06 18:13:10 Moony22: it switches all the files to the version in whatever branch you checked out Aug 06 18:13:31 JesusFreke: so it literally switches them, so it'll change in the IDE as well? Aug 06 18:13:38 yes Aug 06 18:14:26 In most cases, IDEA will automatically notice and refresh everything. If it doesn't, you can right click on a directory or the module/project and do a "refresh" (I don't recall what the item it's actually called) Aug 06 18:15:18 If your project files are in source control, then IDEA will reload the entire project. Otherwise, it will just reload the files, without reloading the whole project Aug 06 18:16:01 JesusFreke: yeah, I've noticed that it updates the files quickly, unlike eclipse :) Aug 06 18:16:08 I just wish it didn't take so long to get it working :p Aug 06 18:29:12 if I create a fragment and give it an argument, then I change orientation, the newly constructed fragment will still have that argument right? Aug 06 18:29:58 yes Aug 06 18:30:08 assuming you used setArguments Aug 06 18:32:19 Hello Aug 06 18:36:19 JakeWharton so that leads me to another thought. if I am injecting fragments view FrameLayout, should I check if the fragment already exists first? Otherwise I just inject a new one each time in my activity's onCreate and the savedInstanceState is useless right? Aug 06 18:36:29 yes Aug 06 18:37:15 JakeWharton sweet, thanks. I think I just had a mini moment of realization about some stuff Aug 06 18:41:30 How do you indicate to the user that you are using a Viewpager? Maybe they will never notice the other levels... Aug 06 18:41:53 And csn you implement a circular ViewPager so that swiping at the last fragment will get you back to the first? Aug 06 18:41:56 * ravilov should really try doing some sort of project involving fragments Aug 06 18:42:26 tuna, from what I've seen, the most common visual cue would be the little dots/lines at the bottom/top of the screen Aug 06 18:42:35 one of them being different, meaning "current page" Aug 06 18:42:55 now don't ask me how to get them, I've never used a paged view Aug 06 18:43:32 as for swipe-around, I guess at worst you can always extend ViewPager and implement this feature Aug 06 18:43:38 hmm, i cant see them, maybe they are the same color as my background. can I set their color? Aug 06 18:44:28 ... I never said they're actually in there Aug 06 18:44:35 you may need to implement that yourself as well Aug 06 18:57:12 tuna, indicator showing where they are in the pager Aug 06 18:58:52 Afzal, yes? Aug 06 18:59:11 nothing Aug 06 19:12:08 I have an activity C, that can be reached in two ways: A -> B -> C and A -> C. When going via B, i want up to go back to B, same for going from A to C. Is this possible? Aug 06 19:13:01 syndarion, I believe that is the default behaviour already Aug 06 19:13:25 unless you mean you wanna go to B in both cases Aug 06 19:13:36 Afzal: I'm not talking about the back button, I'm talking about the Up navigation. Aug 06 19:13:44 the little arrow next to the app icon Aug 06 19:13:54 which goes to the parent activity Aug 06 19:14:42 syndarion, yeah you can customize it by using the android.R.id.home menu item but you should be careful so that it's actually the hierarchy of the app and not the "screen history" Aug 06 19:16:01 Afzal: do you happen to have a guide on the subject? Aug 06 19:16:25 syndarion, http://developer.android.com/design/patterns/navigation.html Aug 06 19:17:52 Afzal: I've parsed the official documentation already. I don't really find what I need. Aug 06 19:18:23 syndarion, you know how to use items on the action bar? The up button is exactly like them Aug 06 19:18:30 does anyone know why the Sony Xperia Z1 doesn't send android.hardware.action.NEW_PICTURE intent? Aug 06 19:18:37 do you think the easiest would be to create a separate activity and just reuse the fragment? Aug 06 19:18:49 so you just have a case for android.R.id.home menu item in OnOptionsItemSelected method Aug 06 19:18:52 That way I could set the parent in the manifest Aug 06 19:19:28 can i query Youtube APi using Google+ as well Google play? Aug 06 19:19:32 syndarion, can't say, depends on your scenario Aug 06 19:19:45 Is it not possible to have nested packages? Like I want a package for UI then I want different subUIs as packages in there Aug 06 19:20:05 yes? Aug 06 19:20:59 no ? maybe? Aug 06 19:21:52 does a Viewpager have to have a separate Activity Aug 06 19:22:25 Afzal: some context maybe: it's an app to create alerts. It has a main menu with a big "Create alert" button, which goes directly to the activity for creating alerts. Besides this button, there's also a "Alert types" button, which goes to an activity containing a list of alert types, which, on click, open the create activity. Aug 06 19:23:03 Afzal: so, in the first case, the parent is the main menu, while for the second case, the parent is the list activity Aug 06 19:24:19 syndarion, IMHO, the up button in this app should always go to the main menu from both activities Aug 06 19:24:46 Afzal: was considering this too. Thanks for your insight :) Aug 06 19:24:58 gtg now, thanks a lot! :p Aug 06 19:25:00 the system back button can handle if the user wants to reselect the alert type if they want to change it Aug 06 19:25:02 yeah np Aug 06 19:26:27 I'm fighting with a problem for days and cant find a resolution for it. I'm recording and playing audio using the mp4 format. THe problem is that in galaxy s5 the first time I try to play a video or audio it fails. The second time it succeeds, but it takes 5 seconds to load audio or video. Any ideia if there is a problem with the mediaplayer on galaxy s%? Aug 06 19:27:49 It works on other devices. Aug 06 19:30:58 How can we change or remove X-Requested-With header for webview Aug 06 19:42:57 Hi guys, a bit of a personal note here, my girlfriend was put into a threatening position in work today with a client, are there any applications where, for example, the volume down button can be pressed 5 times in quick succession when the screen is locked and have it send emergency SMS to set numbers? If not, how easy would this be to make? We are taking extra precautions. Aug 06 19:44:29 is this CIA? Aug 06 19:44:52 Huh? Aug 06 19:45:14 Anthaas I have that exact feature on my to do list :) Aug 06 19:45:24 it should be easy to implement Aug 06 19:45:31 well along with other conditional things for my filter system Aug 06 19:45:46 listen to volume down button. when it gets pressed, send txt message Aug 06 19:45:58 saml: when the screen is locked would it still be easy? Aug 06 19:46:02 StingRay_: Fantastic :D I couldnt find one on quick glance which didn't first require you to open the device, open the application and press a button on the screen. Aug 06 19:46:08 sure? no? Aug 06 19:46:11 I'd imagine a service would allow that? Aug 06 19:46:20 even ear buds volume control works Aug 06 19:46:46 isn't there an app already that can customize volume button actions? Aug 06 19:46:56 tasker ? Aug 06 19:47:00 things like that no ? Aug 06 19:47:19 http://stackoverflow.com/questions/21041557/is-it-possible-on-android-to-send-sms-email-and-make-a-phone-call-on-pressing-t Aug 06 19:50:14 Anthaas, what kind of threats is your gf facing? just curious? CIA text message stuff sounds like a wrong solution. or XY problem Aug 06 19:51:04 She had an aggressive client at her clinic today, and needed someone to come to aid her. They have a panic button but she wasn't able to access it (they are adding more security cameras and panic buttons, but this is an additional precaution) Aug 06 19:51:43 sounds intense Aug 06 19:51:46 yah SMS delay is too long to replace panic buttons Aug 06 19:51:57 Yeah, its not a replacement, but an addition. Aug 06 19:52:39 walkie talkie? or buy a panic button from local store as addition to what the clinic provides Aug 06 19:52:46 JesusFreke: Yeah - she is fine, it was dealt with well and she managed to get the client to calm down, but its more of a what if situation now - if its happened once, it could happen again. Aug 06 19:52:53 It is her clinic. She owns it. Aug 06 19:55:18 It's weird how the Play Music app doesn't react to key events in 4.4.4 but does in Android L Aug 06 19:58:36 Anybody noticed that 9-patch images with a one pixel solid border around something, that something (inside the solid pixel frame) "bleeds" over?? Aug 06 19:59:24 hey, all, anyone really good at RxJava in here? Aug 06 20:00:47 When Android stretches my 9-patch (where the solid frame is supposed to just fill it with one single color), it actually creates a gradient from my solid frame color to the next pixel to it (which is inside the non-stretchable area).. Really weird. Aug 06 20:01:36 Cool effect, but totally unexpected. The next pixel inside there again does not affect anything. Just wondering if this is expected or not. Aug 06 20:01:37 (N) -> (retrofit call IF > 0) -> (do thing with retrofit call) -> (finish not caring if retrofit call was made, but after if it was) Aug 06 20:04:05 kjeldahl: hard to visualize Aug 06 20:04:17 but sounds like it's not patching Aug 06 20:04:27 or you not understanding the quadrants Aug 06 20:04:40 Working on it; I'll show you in a sec. Aug 06 20:06:07 StingRay_: Did you have the button event listener on a thread that starts on boot? Aug 06 20:07:28 Anthaas: no not added it yet, just on my list to do for my filter system, like shake, orientation etc as coditions Aug 06 20:07:37 just not got round to it yet Aug 06 20:08:19 StingRay_: Is that how it should be implemented then? Aug 06 20:09:20 9-patch weirdness here: http://snag.gy/N17p2.jpg Aug 06 20:09:57 That redness was just put in to demonstrate the effect, although you see the gradient from the letters as well which supposedly is inside the non-stretchable area. Screenshot is from the phone. Aug 06 20:10:06 Where did I f*** up? Aug 06 20:11:22 kjeldahl: you didn't, there render/pre filter system for textures probably did Aug 06 20:11:33 just add another pixel space Aug 06 20:12:02 but why is that a 9-patch ? Aug 06 20:12:22 Yeah, I've verified that an extra border pixel row fixes it, just could not understand why it was necessary. Aug 06 20:12:32 and why is there content area there in it ? Aug 06 20:12:40 I'm a bit confused as to your use :) Aug 06 20:12:49 It's a nine patch so it fits all types of screens (assuming you do not want the inside content stretched at all, just the space around it). Aug 06 20:13:03 (splash screen - always full screen) Aug 06 20:13:09 do you have a 9-patch for the density on which you are displaying? Aug 06 20:13:18 well, erm, ok but it's..erm Aug 06 20:13:26 that looks like the 9-patch was scaled causing multiple rows to be stretched Aug 06 20:14:01 it's a solid stretch ? is it not better just having the background view a solid color ? Aug 06 20:14:07 for all screen sizes ? :) Aug 06 20:14:22 I'm probably missing something here …. off to get coffee Aug 06 20:14:30 I'm generating the 9 patches automagically (literally, using imagemagick). Somebody give me originals, I run my scripts and add the 9-patch stuff. Aug 06 20:14:57 what density is the phone? what densities are there versions of this 9-patch for? Aug 06 20:14:59 yeah, but what jake said is probably the cause of the filtering (the resize) Aug 06 20:15:14 but I question the use of 9-patch in your case, but that just me Aug 06 20:15:44 JakeWharton: You could be on to something. Aug 06 20:16:25 in addition the word "loading" as bitmap ? Aug 06 20:16:28 Truth be told, I _do_ scale the inside area based on the densities, but always so it fits well (regardless of orientation) and I just want to fill the rest of the screen with solid color - regardless of resolution. Aug 06 20:17:06 setColor(Color.CYAN) ? on the view ? Aug 06 20:17:15 and use real type so it can be localized ? Aug 06 20:17:17 I create a new fragment for my ViewPager like this: http://lpaste.net/108941 Aug 06 20:17:24 At the risk of being thrown out of here, it's a phonegap app I'm helping out with, using the splashscreen extension... On iOS I just generate all the screens fullsize. Aug 06 20:17:33 The Bundle returned by getArguments() is null, why? Aug 06 20:17:48 you didn't set one Aug 06 20:19:05 Hey guys. Galaxy s5 supports just some encoding types of mp4. How can I set the camera intent to record supported mp4 videos? Because im recording some mp4 files that cant be played just on s5. Aug 06 20:20:09 This link http://www.techisky.com/how-to/play-video-on-samsung-galaxy-s5.html recommends to convert the mp4 files. Ive tested with the videos that I recorded and s5 was able to reproduce them Aug 06 20:20:35 StingRay_/JakeWharton: Thanks you for the hints; I'll try some things and see what works best, but the lazy solution is probably just to add an extra border pixel inside the "non-stretchable" area. Aug 06 20:21:01 yeah, tis phonegap, cant make it any worse ;) Aug 06 20:21:39 Very true. Aug 06 20:24:40 Now I just found this. https://groups.google.com/forum/#!topic/phonegap/EEVvvICoz3o Recommendation is "use 9-patch" - lol. Anyways, enough of this phonegap crap.. Aug 06 20:27:18 I tried using phonegap once.. it wasn't pretty.. Aug 06 20:27:46 I have no way to debug my app.. sometimes things work.. sometimes they don't Aug 06 20:29:09 JakeWharton: question, is there any way to simulate "physical" dimensions with "wm size/denity" ? Cause that would be awesome Aug 06 20:29:44 Yeah, not my favorite either, but the main platform for THIS app isn't native mobile unfortunately. Having said that, an extra border got rid of the gradient shadow stuff. Sticking with it for now. Aug 06 20:34:25 I would like to just add a filled circle and an empty circle to my layout, what is simplest way? can I define a circle in xml?7 Aug 06 20:35:25 http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Aug 06 20:39:17 Why does https://gist.github.com/freeone3000/05d06b2ff5e7cb529fe7 only get *some* of the data for each contact, instead of all of it like I'm requesting? Aug 06 20:42:45 freeone3000, does it only get you nickname, address, name, company and phone number? Aug 06 20:44:06 gah. I must admit that width/height/coordinates wreck my head with Android - especially when it comes to bitmap scaling and orientation changing. Aug 06 20:48:37 Afzal: It gets me *one of* nickname OR address OR name OR company OR phone numbers. Aug 06 20:49:18 freeone3000, makes sense. The cursor moves to the next contact after a case, doesn't it? Aug 06 20:49:40 evening fellas Aug 06 20:49:41 Afzal: Yes, while it should fetch additional rows for the same contact. Aug 06 20:49:51 Afzal: Or in other words, each contact should have multiple rows. Aug 06 20:49:57 freeone3000, line 42 Aug 06 20:50:50 Afzal: Yes, that's where I advance to the next row. By definition, each row can only have one entry for the CONTACT_DATA_PROJECTION_MIMETYPE_IDX (or, the ContactsContract.Data.MIMETYPE field in the projection), so I then assumed that each row would have one type of data for a Contact. Aug 06 20:51:44 Afzal: And if a String is equal to ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE, it cannot be equal to ContactsContract.CommonDataKinds.Nickname.CONTENT_ITEM_TYPE. Aug 06 20:51:45 freeone3000, that would mean you'd have no idea when you switch to another contact. I haven't dealt with contact data but it seems like that each row in that cursor would hold the data for a single contact Aug 06 20:52:29 Afzal: Then I should be getting more data in each row, whereas currently, DATA1 through DATA3 are the most filled, keeping in with the description of ContactsContract and the CommonDataKinds.(Foo).CONTENT_ITEM_TYPE description. Aug 06 20:53:04 Afzal: What I expected, from reading the docs, is each contact to have multiple rows with the same ID, each one iwth a different MIMETYPE and different values in their DATA1, DATA2, and DATA3. Aug 06 20:53:15 freeone3000, yeah nvm what I said Aug 06 20:53:50 (I search by ID, so I don't have it in the projection, but I'd hope that wouldn't mess things up.) Aug 06 21:01:17 what is a process in terms of an android app? Aug 06 21:01:44 is it what i expect a process to be? e.g my app and all activities inside it are in one process? Aug 06 21:02:04 or do threads and stuff count as seperate processes? Aug 06 21:02:50 AKK9: http://developer.android.com/guide/components/processes-and-threads.html Aug 06 21:08:03 freeone3000, thanks Aug 06 21:08:16 but can I make a circle that is not filled? just a ring... Aug 06 21:09:10 is thing ring going to... rule them all and bind them? Aug 06 21:09:24 is this* Aug 06 21:11:31 also need to make it in secret …shhhh Aug 06 21:11:56 tuna: Drawing a Shape and filling a Shape are two separate actions. Aug 06 21:12:54 anyone use realtime crash reporting and ever all out of the blue get loads of crash reports for even disabled elements of your app ? Aug 06 21:13:06 just started to get lots for a class that is not even used Aug 06 21:13:18 same for a few activites and broadcast receivers Aug 06 21:13:27 really confusing Aug 06 21:14:38 * xximjasonxx is tearing his hair out with layout_weight Aug 06 21:17:15 how do I get the rightmost element to only take as much space as it needs?] Aug 06 21:17:16 if I have defined a shape and I just want to display it in a layout, how do I add it there? Aug 06 21:17:49 tuna: should be able to add it to the views collection, assuming its a view Aug 06 21:17:51 By making the rightmost element wrap_content Aug 06 21:18:40 SimonVT: well that kind of worked Aug 06 21:18:57 truncating the right most value now Aug 06 21:21:52 SimonVT: any other ideas Aug 06 21:21:53 ?? Aug 06 21:21:55 Then you're provably doing something to cause that Aug 06 21:22:37 I would agree, the output supports that statement Aug 06 21:22:56 wrap_content would cause it to be the size of its content, including paddings, etc. Aug 06 21:23:08 even when the leftmost is using match_parent Aug 06 21:23:14 and we involve layout_weight Aug 06 21:24:04 So both views have weight? Aug 06 21:24:10 right now, ues Aug 06 21:24:12 *yes Aug 06 21:24:25 but i am having trouble accurately understanding the weight concept for dynamically spaced views Aug 06 21:24:37 When I implemented my ViewPager the Actionbar text was cut from "Choose level" to "Choose l...", why? Aug 06 21:24:43 Right.. Make the leftmost 0dp with weight, rightmost wrap_content without weight Aug 06 21:24:45 and how can I fix it? Aug 06 21:25:47 weight distributes leftover space between views with weight.. If the content is larger than the linearlayout, it makes views with weight smaller Aug 06 21:26:55 hold on one second, Xamarin is complaining about something in the XML Aug 06 21:28:02 SimonVT: is weight 0 the same as no weight? Aug 06 21:28:10 Is there a workaround for this : E/AndroidRuntime(15196): android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Aug 06 21:28:15 Yes Aug 06 21:28:25 Pointless to define 0 Aug 06 21:28:53 i realize that, but for whatever reason when i drop layout_weight, the app wont build Aug 06 21:29:10 i am not sure if its xamarin or mvvmcross that is causing this issue Aug 06 21:29:31 And if yes what is it Aug 06 21:30:06 ulli909: how are you calling this code? it sounds like you are doing so from outside the UI Thread? Aug 06 21:30:34 Yes I have some other threads for networking Aug 06 21:31:20 Via sth process.setpriority sth background Aug 06 21:31:59 How could I make a layout that looks similar to how the new Googel Play looks? Aug 06 21:31:59 I have a handler for the text view I'm accessing Aug 06 21:32:16 where the image scrolls up and the actionbar changes from transparent to solid? Aug 06 21:32:45 tmobile ftw http://www.androidpolice.com/2014/08/06/laptop-mag-battery-test-shows-tmobile-smartphone-best-battery-life/ Aug 06 21:32:45 Well I suppose its just a listview Aug 06 21:33:02 But how can I change the transparency fo the actionbar during scroll Aug 06 21:34:02 good call SimonVT Aug 06 21:34:06 thank you for that Aug 06 21:34:49 xximjasonxx also it works if I call a method in the handler from the main thread Aug 06 21:35:18 ulli909: what exactly are you doing? Aug 06 21:35:41 generally if you need to do a threaded operation you either go with Runnable or AsyncTask Aug 06 21:35:47 the latter being preferred Aug 06 21:36:17 I'm using sockets to transfer text and the text received should end up in a text view via a handler Aug 06 21:36:28 Why does https://gist.github.com/freeone3000/05d06b2ff5e7cb529fe7 only get one field ofdata for the selected contact, instead of all of it like I'm requesting? Aug 06 21:36:49 I'm using extends thread Aug 06 21:37:28 Because async task didn't work out for me with two input parameters Aug 06 21:38:54 ulli909: Which means you need to wrap your paramters in a data transfer object, because threading is hard. Aug 06 21:39:50 freeone3000 is it? Aug 06 21:39:56 Why? Aug 06 21:42:08 ulli909: Well, you seem to be having problems with it, and you don't even know what the problems should be. Aug 06 21:42:33 ulli909: AsyncTask provides a proper thread-to-method line-up, which is easier (conceptually) to understand. Aug 06 21:42:38 http://stackoverflow.com/questions/21092888/windowsoftinputmode-adjustresize-not-working-with-translucent-action-navbar/22266717#22266717 Aug 06 21:42:40 seriously? goddamnit Aug 06 21:42:44 that's so lame Aug 06 21:44:35 is there a way to have an LED flash only once? I tried Notification.flags = Notification.FLAG_SHOW_LIGHTS|Notification.FLAG_ONLY_ALERT_ONCE but that still blinks indefinitely Aug 06 21:45:29 I changed the theme of my Android Studio... and I need to change it back: the editor window will change, but everything else will not. Anyone know how I can fix it? Aug 06 21:47:22 nm Aug 06 21:47:24 lasserix: settings->appearance->theme Aug 06 21:49:35 I have a listview where I want to make the first item a completely differeny layout and also contain different data. Aug 06 21:49:44 So I just do in the getView method of the adapter? Aug 06 21:50:24 e.g if (pos = 1) { load the speical stuff } else { load the normal stuff } Aug 06 21:50:25 ? Aug 06 21:50:43 or is that a not a good way to approach it? Aug 06 21:50:55 if the layout is the same, that works Aug 06 21:51:16 if different layouts, your adapter has to say it has 2 types of views Aug 06 21:51:22 Hello Aug 06 21:51:49 http://pastebin.com/npfhcTf1 this is my code, I get "recursive call to executePendingTransactions()" error when rotating screen. Aug 06 21:52:03 What could be the issue? Aug 06 21:53:38 g00s, but can't I just inflate a different layout if the position is 1? Aug 06 21:53:44 Can I draw an OvalShape in a View or do I have to have a canvas? Aug 06 21:53:47 Or is it not that simple. Aug 06 21:54:18 AKK9 well sure, you inflate the right view for that position :| Aug 06 21:54:55 ok thanks. Aug 06 21:55:08 that's an interesting question.. I don't see why it wouldn't work.. Aug 06 21:55:47 How can I control the actionbar transparency on scroll? Aug 06 21:55:49 inflating layout based on the index of the adapter Aug 06 21:56:01 I see many apps using this but I can't find examples of how to achieve it? Aug 06 21:56:13 Does anyone know how i can fix this? Aug 06 22:10:51 How would I draw a circle in code in the onCreate method of a Fragment? Aug 06 22:11:02 (onCreateView I mean) Aug 06 22:11:39 draw it ? or "create" it ? Aug 06 22:12:09 both Aug 06 22:12:25 can someone point me to a doc that explains how a team of developers can use the same maps api key? Otherewise we have to get the same person to build it each time and this not always feasible across different timezones Aug 06 22:13:19 canvas and paint ? Aug 06 22:13:39 onDraw() etc Aug 06 22:16:56 tried to get debug.keystore but this is for debug apk, we need to test the apk on different devices Aug 06 22:20:13 viperZ28: You can test the debug apk on different devices, it's just not suitable for store release. Aug 06 22:36:55 When I implemented my ViewPager the Actionbar text was cut from "Choose level" to "Choose l...", why? and how can i fix it? Aug 06 22:37:14 How do you do it so swiping from the last fragment in a viewpage goes back to the first? Aug 06 22:38:42 bankai_au http://www.slideshare.net/TimoTuominen1/rxjava-architectures-on-android-android-livecode-berlin Aug 06 22:40:45 freeone3000: let me try that again, I thought only release one were. Aug 06 22:42:25 g00s: "makes you understand where bugs come from", but they fail to mention how bitchy it is to debug rx issues Aug 06 22:49:36 hmm, how amenable is TextView to having thousands of lines of text? Aug 06 22:50:01 freeone3000: so then I just update my ant.properties to point to debug.keystore? Aug 06 22:50:08 that's something I've never bothered to experiement with... Aug 06 22:50:38 can a view be drawn from bottom up instead. So the elements at the bottom are given space first? Aug 06 22:51:12 How do I do to have LinearLayout has 30 dp on top of the screen then a RelativeLayout that takes up the rest? Aug 06 22:51:31 layout weights in linear layouts Aug 06 23:01:19 How do I draw a circle on a view? Aug 06 23:01:43 can I just add an OvalShape directly to a View? Aug 06 23:04:05 override onDraw , call super.onDraw, then draw your circle. Aug 06 23:09:20 is there an android development for beginners channel? lol Aug 06 23:10:29 don't think so... Aug 06 23:10:43 bitemeoftn: begginers = d.android.com getting started ? Aug 06 23:11:11 I've gotten a simple web view app written, but I'm looking to elaborate on it with some buttons and alternate sites. Aug 06 23:11:42 this is more android dev than web stuff Aug 06 23:11:48 you could try the phonegap channel Aug 06 23:12:39 Awesome! I'll give it a shot. Thanks! Aug 06 23:12:44 anyone noticed a probelm with fragmentDialog cancellableOutsideTouch and IMMERSIVE_STICKY ? Aug 06 23:13:07 bitemeoftn: why not some videos etc ? Aug 06 23:13:15 there are tons of it on youtube Aug 06 23:13:19 whole series Aug 06 23:13:47 I've tried videos, online courses, and books but nothing helps like being able to bounce it off another person 'ya know? Aug 06 23:15:12 bitemeoftn i think there is some coursera stuff Aug 06 23:15:50 coursera is one of them i did lol Aug 06 23:16:26 They go through a lot of stuff and I learned a lot, but I already know what I'm looking to write so that's really the only information that I want. Aug 06 23:17:51 can anyone help with this error "java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL" Aug 06 23:22:01 guys, android:background uses a color, but background needs a drawable, what are the dimensions should i put there? Aug 06 23:23:34 i mean if i used a 1x1 orange image will it stretch to the whole ActionBar making it colored to orange for example? Aug 06 23:25:42 it will draw to the view bounds I would think Aug 06 23:26:03 unless you used a view type that had extended control, like imageView Aug 06 23:26:10 then you have scaleTypes etc Aug 06 23:26:54 but you can set setBackgroundColor() too or even have a colorDrawable Aug 06 23:32:18 Hello world! Aug 06 23:32:47 I'm noticing that setting a ColorFilter during onAnimationRepeat() isn't quite working as expected. Bah. Aug 06 23:33:14 It more or less looks like it's shifting colors more often than "every time it fades out" Aug 06 23:34:17 What gives? :( Aug 06 23:37:04 https://gist.github.com/pfn/cdb7f1b4288c38993345 Aug 06 23:37:05 yuck Aug 06 23:38:12 I hope this picture makes someone elses day like it made mine: http://blog.inner-active.com/wp-content/uploads/2013/08/313095-android-trojan.jpg Aug 06 23:43:32 is there a way to get the zoom level of the image inside a webview dynamically (after the user does it)? I have tried using the webview API but to no avail since the zoom level has to do with the image inside the webview which has been loaded as an html img. Could someone use javascript to do it? Aug 06 23:44:00 Whats the default AS version of alt shift s in Eclipse? Aug 06 23:44:08 Has Override/Implement etc on it. Aug 06 23:45:02 Anthaas: were you talking to me? Aug 06 23:45:10 Oh no, sorry. Aug 06 23:45:13 ok Aug 06 23:47:13 * pfn kicks appcompat Aug 06 23:47:20 wtf is it ignoring my actionBarStyle Aug 06 23:52:46 oh, appcompat uses native actionbar on >=14 or whatever Aug 07 00:00:59 Can I use import javax.something in android ? Aug 07 00:01:07 if it's not in d.android.com no Aug 07 00:02:29 pfn, example javax.websockets ? Aug 07 00:02:41 if it's not in d.android.com no Aug 07 00:02:58 pfn, how to check is it in ? Aug 07 00:03:04 by going to d.android.com Aug 07 00:06:12 hmm, that's weird. Clearing app data doesn't clear the Wear DataItems Aug 07 00:06:16 how can i connect my app with weber ? Aug 07 00:06:23 websocket server* Aug 07 00:06:25 or at least the wear app can still access them Aug 07 00:06:39 KeyboardNotFound, use DatagramSocket class Aug 07 00:06:50 DatagramSocket and DatagramPacket Aug 07 00:10:15 lasserix: is that just a funny looking android robot or is that supposed to resemble someone/something? Aug 07 00:10:19 either way, I like it :) Aug 07 00:10:50 I think it is from asite about trojan viruses in android ;p Aug 07 00:11:01 Hi Aug 07 00:11:53 When using RECEIVE_BOOT_COMPLETED, some say HTC devices when using fast boot don't receive this and as such should use , does this require any additional permissions beyond adding it to the receivers intent filter? Aug 07 00:14:44 anybody else faced this issue? https://code.google.com/p/android/issues/detail?id=74571&thanks=74571&ts=1407370470 Aug 07 00:16:39 Afzal, Datagramsocket is UDP, websocket is TCP Aug 07 00:16:48 KeyboardNotFound, ah my bad Aug 07 00:17:00 KeyboardNotFound, try socket.io or Ion, I think Ion has support for websockets Aug 07 00:18:59 Afzal, I found https://github.com/TooTallNate/Java-WebSocket but it doesn't work Aug 07 00:19:32 KeyboardNotFound, https://github.com/koush/AndroidAsync Aug 07 00:20:32 Afzal, will this work for native java ( not android ) ? Aug 07 00:20:41 KeyboardNotFound, no idea Aug 07 00:20:54 Is there a hack for a service to listen to key events (volume?) Aug 07 00:21:10 Apparently its not easily possible Aug 07 00:21:59 If at all Aug 07 00:27:27 Hmm, anyone about that knows about broadcastreceivers, services, and intent filters Aug 07 00:27:49 Looking in the direction of g00s et al. Aug 07 00:27:59 https://plus.google.com/111751695436781052143/posts/8MtvGsLrFrf Aug 07 00:28:51 Nice Aug 07 00:29:22 Can I make a suggestion? Aug 07 00:29:25 dont really like it Aug 07 00:29:27 Feel free to ignore of course, pfn Aug 07 00:29:34 the overlap Aug 07 00:29:36 The UI is kind of in the way of the text. Aug 07 00:29:38 Yeah Aug 07 00:29:51 but I'm old and not a nice person :) Aug 07 00:30:05 The most recent messages are hidden behind the edit text or whatever. Aug 07 00:30:11 you can not like it all you want, the text overscrolls Aug 07 00:30:25 and they aren't hidden, that's when scrolled down Aug 07 00:30:35 or up, as the case may be Aug 07 00:30:35 Oooh, I see. Aug 07 00:31:23 I like it then :D Aug 07 00:32:09 pfn: This might be an odd question, but I've never met anybody with that surname, but have seen it many times - how is it pronounced? Aug 07 00:33:13 https://plus.google.com/111751695436781052143/posts/PJ6nPXNHfXv Aug 07 00:33:28 um, like it's spelled :p Aug 07 00:34:12 Haha :P I've heard "n-you-gun", "n-goy-un", "n-guy-un", and several others haha Aug 07 00:35:19 could someone use javascript to get the zoom level of an html img inside a webview? because anything else won't work (using the webview api) to get the zoom level as being changed by the user pinching in/out Aug 07 00:36:49 I have an app which needs to listen for button presses (power? volume?) when the screen is locked, and also needs to start from boot complete, now, I have a receiver listening for boot_completed, should I use that to start a service which listens for power button presses? I dont see how I could set a broadcastreciever up at boot which listens for events? Aug 07 00:39:28 Aren't those button presses just accessible from manifest receivers? Aug 07 00:39:39 you just need a context to register a receiver Aug 07 00:39:58 just = already Aug 07 00:40:10 Apparently not - not through a service anyway? Aug 07 00:40:27 a service context is not valid ? Aug 07 00:40:32 basically, I need to trigger an event if, for example, the volume down button is pressed 5 times in 3 seconds. Aug 07 00:40:34 you tried ? Aug 07 00:40:50 a service context is always valid for all receivers Aug 07 00:41:00 pnf thought so Aug 07 00:43:25 * pfn slowly switches all of qicr's layouts to using macroid Aug 07 00:45:50 Anyone have a list of the environment variables I should set in order to move the .android folder in my home directory? Aug 07 00:45:59 you dont Aug 07 00:46:25 I've set ANDROID_AVD_HOME, ANDROID_HOME, and ANDROID_SDK_HOME, but the .android folder is still created. Aug 07 00:48:31 Sorry - got disconnected and then my name was stuck in use. Aug 07 00:48:38 So, were you saying to have Boot_Completed registered in manifest, and start a service which registers another reciever which listens for volume down? Aug 07 00:49:24 aye Aug 07 00:50:15 jumblemuddle: you should just need to add the env variable pointing to the sdk folder... maybe platform and platform-tools if you are running from commandline Aug 07 00:51:01 stupid question - is onBind the equivalent of onCreate for activities (I use equivalent loosely here). i.e. is this where I should do the setting up in my service? Aug 07 00:51:19 not really Aug 07 00:51:26 onCreate is the same as onCreate Aug 07 00:51:33 :) Aug 07 00:51:43 Hmm, I've logged out to test it, but it's still creating it. It's also creating the .local/share/android/{avd/cache} also, so I'm not really sure... Aug 07 00:52:12 Oh haha - Im still getting used to AS. In Eclipse, I'd press alt shift and s and go to override/implement to see all functions publicly available in a class, can't do that in AS - need to find the equivalent :P Aug 07 00:52:21 I will say though, Im really enjoying AS. Aug 07 00:53:05 Anthaas: onBind in a service is if you bind your service Aug 07 00:53:18 Ahh to a specific activity? Aug 07 00:53:21 itll be called when ana ctvity calls bindServe() Aug 07 00:53:22 On second test, it's not creating the folders in the .local folder. Is $ANDROID_AVD_HOME the right variable I should be setting? Aug 07 00:53:50 Ahh, its alt and insert btw Aug 07 00:54:04 lasserix: Ahh I see - that was my second guess hehe. Thanks :-) Aug 07 01:00:47 Hi anyone here any good with am start stuff? Aug 07 01:01:18 I got an app i want to open using am start commands but all i get is a message on screen of device that says could not launch the requested activity Aug 07 01:03:33 anyone know of a calendar library that isn't too slow on honeycomb & > devices? Aug 07 01:03:48 caldroid is ok, but it's pretty slow Aug 07 01:07:51 Anyone know how to link a local aar file to its javadoc jar in android studio? Aug 07 01:12:06 anyone use a nexus 10 for testing density/res ? Aug 07 01:14:59 Is their anyone here who could help me out with an am start prob? Aug 07 01:16:59 you mean just start another app > Aug 07 01:17:00 ? Aug 07 01:17:17 the only place i've seen a n10 is in the store Aug 07 01:17:34 I have one at home what's the problem? Aug 07 01:17:38 hehe Aug 07 01:17:45 heya g00s Aug 07 01:17:47 lasserix you got one of the 10 they sold :) Aug 07 01:17:51 hey StingRay_ Aug 07 01:17:53 g00s: Hi! Aug 07 01:17:55 nexus 10 is goodd Aug 07 01:17:57 I have my moms rt now lol Aug 07 01:17:58 technically it was a gift ;p Aug 07 01:18:02 hey Anthaas how did the meal turn out :D Aug 07 01:18:06 g00s: Amazing! :D Aug 07 01:18:06 but a little flawed in emulation mode Aug 07 01:18:32 I made BBQ pulled pork, bread rolls, potato salad, an egg and bacon salad :D Aug 07 01:18:36 lasserix: you use wm stuff ? Aug 07 01:18:43 Anthaas omg , yumm Aug 07 01:18:46 wm density/size etc ? Aug 07 01:19:02 g00s: Needless to say I am currently flavour of the month here :P Aug 07 01:19:14 no i dont use it much right now, but that is pretty cool Aug 07 01:19:30 Anthaas indeed :) Aug 07 01:19:37 well yeah and no… it needs to emulate physical size Aug 07 01:19:48 StingRay_ how did the sms app go ? Aug 07 01:19:51 size != res, so they got that a bit wrong Aug 07 01:20:18 g00s not bad, still doing it :) got 17k downloads with no advertising or promotions Aug 07 01:20:40 still holding off on full release till I'm happy Aug 07 01:22:08 StingRay_ oh man, you can't be in beta for 6 mos :D Aug 07 01:22:24 i hope you dropped the gingerbread stuff Aug 07 01:22:30 yes Aug 07 01:22:36 ;) Aug 07 01:22:38 just added android L themes too Aug 07 01:22:43 I'm all up to date Aug 07 01:22:45 :) Aug 07 01:22:57 i don't know anything about L yet Aug 07 01:23:10 I think lots of it is just air and fluff Aug 07 01:23:14 looked at a few videos and ... well we'll see Aug 07 01:23:22 StingRay_ yeah Aug 07 01:23:24 they reminded me of apple Aug 07 01:23:36 although apple are better at air and fluff sales Aug 07 01:23:38 :) Aug 07 01:23:43 g00s: I made the bread rolls with a little bit of a crunch to the crusts - nice and chewy. 300ml water for that in the dough, for soft rolls, I do 225 water, 75 semi-skimmed milk. Aug 07 01:24:01 Cheated with the salad a little and bought pre-packaged salad. :( Aug 07 01:24:03 Anthaas oh come on, this isn't far ... now i'm hungry again :| Aug 07 01:24:08 *fair Aug 07 01:24:12 g00s: Haha one sec ;-) Aug 07 01:24:49 g00s: http://imgur.com/a/bxQFE Aug 07 01:24:50 StingRay_ when i watched the videos, the rationale and theory behind the "material" ... i was thinking "you've got to be kidding me" Aug 07 01:25:10 Anthaas yuuuuummmm Aug 07 01:25:23 * g00s goes to eat something Aug 07 01:25:28 hehe :P Aug 07 01:25:50 Popped it all on the table and everyone just helped themselves :D a family meal. Aug 07 01:31:21 Haha sorry for turning this into ##cooking Aug 07 01:41:15 http://pastebin.com/4KBajQFi Aug 07 01:41:33 Can someone look at that and tell me why Im never getting threshold reached? Aug 07 01:41:38 in a toast* Aug 07 01:42:10 mTimestamps is an ArrayDeque Aug 07 01:42:25 Im never getting "Adding!" either. Aug 07 01:44:06 strange, Picasso doesn’t display my webp image http://obrol.shopafter.com:9090/fid/0001-webp-medium-list-da39a3ee5e6b4b0d3255bfef95601890afd80709-0883-160-120 … It does support webp, right? Aug 07 01:45:31 Does Android? Aug 07 01:46:11 Feel that reply is somewhat on par with "Does the Pope shit in the woods?" Aug 07 01:46:27 ...and I like it :P Aug 07 01:46:54 It isn't. It's meant to convey that Picasso isn't an image decoding library, it's an image downloading library. Aug 07 01:46:59 Anyone get a chance to look at my paste bin? Aug 07 01:47:31 Oh no, I understand completely. Aug 07 01:56:06 JakeWharton: yes, it is Android 4.0 and above Aug 07 02:06:18 Hi Aug 07 02:06:45 in my bachelor thesis I am using MQTT to push stuff to android. but as I am writing a thesis, I have to show up alternatives...first there is of course GCM... this I already covered Aug 07 02:06:59 are there other serious push technologies used in android environment? I read a little bit about long polling, but didn't find good stuff about it in connection to android Aug 07 02:12:51 hrn: that’s good subject you chose :) yeah, I only read about those two push technologies. Aug 07 02:13:46 for less frequent you can do RESTful stuff, but this isn't helpful for >push< Aug 07 02:14:42 which time(zone) this channel is more crowded? Aug 07 02:17:10 is using XMPP an alternative? Aug 07 02:23:24 http://pastebin.com/4KBajQFi << Can someone take a look and see why only "Service Started" toast is being created Aug 07 02:29:27 Anthaas: at a guess "Intent.ACTION_MEDIA_BUTTON" is not being sent Aug 07 02:30:01 not all flavours of android are the same … I think there are some that do not class that volume rocker in that class Aug 07 02:30:10 Ahhhh Aug 07 02:30:11 but I am just guessing Aug 07 02:30:13 :) Aug 07 02:30:13 Hmmm Aug 07 02:30:24 let me guess, your using a sammy phone ? Aug 07 02:30:57 you're Aug 07 02:32:50 N5 Aug 07 02:33:09 ah, should work then Aug 07 02:33:13 I would have thought Aug 07 02:33:22 maybe I got it backwards Aug 07 02:33:33 or maybe even wrong Aug 07 02:33:35 :) Aug 07 02:35:15 hello people Aug 07 02:35:30 Hi there Aug 07 02:36:29 im a noobie android dev Aug 07 02:36:43 and mi english its so por jeje Aug 07 02:37:19 i have a problem with a library of my app. HttpClientManager Aug 07 02:37:53 when i try yo send post data, the library dont works fine Aug 07 02:38:09 in my apache acces log i dont see any access Aug 07 02:40:03 there are many people here, but because no one speaks? Aug 07 02:40:33 soler: without code, stacktrace or a proper description no one can help you Aug 07 02:40:48 no problem Aug 07 02:40:51 wait a second Aug 07 02:41:36 this is my httpclientmanager class Aug 07 02:41:37 http://pastebin.com/xE89hSV9 Aug 07 02:43:35 i call http post in this method: http://pastebin.com/1Uzqags9 but process still await in "Enviando Informacion" Aug 07 02:44:30 hrn MQTT is pretty good because over the wire its very efficient Aug 07 02:44:53 FB has a blog post about using MQTT for their apps Aug 07 02:44:58 yep :). I like it, too. But nevertheless I have to discuss some alternatives in my work. Aug 07 02:45:12 parse may have something Aug 07 02:45:33 for now I have GCM, XMPP/BOSH and Long Polling which I will describe as alternatives. Aug 07 02:45:56 I think these are the most common used... even if xmpp and long polling are not that nice :). Aug 07 02:46:07 parse? Aug 07 02:46:15 oh , well thats a platform Aug 07 02:46:32 long polling how ? http ? Aug 07 02:47:25 afaik long polling is usually (/always) via htp= Aug 07 02:47:28 http Aug 07 02:47:31 ?! Aug 07 02:47:40 can use COaP Aug 07 02:47:54 but thats kinda depricated in the mobile world, isnt it? Aug 07 02:48:19 streaming : state transfer :: mqtt : coap Aug 07 02:48:35 ? Aug 07 02:49:04 but coap still is not push? Aug 07 02:49:11 go to bed people Aug 07 02:49:20 it's based on http just like REST?! Aug 07 02:49:22 bye Aug 07 02:49:24 bye Aug 07 02:49:45 hrn, and one more : Aug 07 02:50:09 STOMP Aug 07 02:50:34 http://stomp.github.io/ Aug 07 02:50:57 mqtt and stomp in http://shop.oreilly.com/product/0636920032366.do Aug 07 02:51:42 too much for this late hour :/ Aug 07 02:51:51 there are a bunch of protocols popping up Aug 07 02:52:07 because the IoT consortiums, and there are several, are all "inventing" stuff :) Aug 07 02:52:33 yes, everyone is inventing the wheel on his own Aug 07 02:53:13 I like mqtt and will stick to it; moreover it has a great base with paho. Aug 07 02:54:08 and for my work I will keep gcm, xmpp and long polling, as they are very different and enough in my eyes. Aug 07 02:54:21 the problem with all 3rd party push is that you need to run your own persistent service Aug 07 02:54:29 otherwise it's no longer push Aug 07 02:54:44 thats true; but even for GCM you need to have a server which provides the date Aug 07 02:54:45 data Aug 07 02:55:00 hrn do you ? Aug 07 02:55:10 do I? Aug 07 02:55:17 dont think so lol Aug 07 02:55:20 I dont Aug 07 02:55:25 and playing with it right now Aug 07 02:55:28 but where the pushed data comes from? Aug 07 02:55:37 ah, app2app Aug 07 02:55:43 no Aug 07 02:55:51 web > google > app Aug 07 02:56:12 what exaclty u mean w/ "web" Aug 07 02:56:15 trip time of 18ms Aug 07 02:56:29 well a simple POST Aug 07 02:56:48 to google, from my control page Aug 07 02:56:55 hosted on my server Aug 07 02:57:17 yes, so u need something hosted Aug 07 02:57:21 which sends the data Aug 07 02:57:37 well yeah, you would want to send something Aug 07 02:57:43 or what would be the point ? Aug 07 02:58:00 that something can come from anything that conforms Aug 07 02:58:15 I thought the point was, that u need some [server|platform|thing] which provides data to be pushed to app Aug 07 02:58:39 hrn the issue is maintinaing millions of open tcp connections ;) Aug 07 02:58:47 still doable if you know what you are doing though Aug 07 02:58:49 okay, thats true Aug 07 02:58:54 well I suppose if I have php installed on my dev station I would not Aug 07 02:59:04 but: mqtt 3MB RAM with 1000 connections Aug 07 02:59:06 I could do it local, forget hosting a page Aug 07 02:59:24 I just "submitt" to google, google sends it all 3 of my users :) Aug 07 02:59:36 :) Aug 07 02:59:47 but dam it's fast Aug 07 02:59:53 mqtt too **** ENDING LOGGING AT Thu Aug 07 02:59:58 2014