**** BEGIN LOGGING AT Mon Dec 08 02:59:59 2014 Dec 08 03:00:02 \o Dec 08 03:00:02 JakeWharton: Do you know if there's a way I can figure out what Gson saw when it threw a MalformedJsonException from somewhere beneath JsonParser.parse? Dec 08 03:00:17 Not necessarily in the past; also in the future. Dec 08 03:00:17 capella-s3 cancelled because "we changed a bunch of stuff, and we're not sure this is still a bug. so we'll just close it anyhow" Dec 08 03:00:18 debugger? Dec 08 03:00:52 I'm not sure, Groxx. Could take hours. Dec 08 03:00:56 moz resists ever closing things Dec 08 03:01:11 There are so many places from which it could throw that exact exception. Dec 08 03:01:14 TacticalJoke: you can add an on-exception-thrown breakpoint Dec 08 03:01:23 or break on non-caught exceptions Dec 08 03:01:37 then you can just dive down and check out the stack Dec 08 03:03:02 Hmm, I don't actually have the source on here. Dec 08 03:03:11 I guess the easiest way might be to packet-sniff the entire exchange. Dec 08 03:03:46 ah. packet-sniffing is often my first step because it's already 90% set up... Dec 08 03:04:33 TacticalJoke: use Gson 2.3 or newer Dec 08 03:04:47 It'll tell you the JSON path that failed Dec 08 03:05:03 handy Dec 08 03:05:49 Okay. I got this: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 12 path $ Dec 08 03:05:59 hello! Dec 08 03:06:11 The problem is that I can't print the data because that exception is thrown within JsonParser.parser. Dec 08 03:06:13 * Estel adds a million .fit().centerCrop() calls to every Picasso load >_> Dec 08 03:06:13 parse* Dec 08 03:06:16 any idea why proguard is ignoring my -keep class entry ? Dec 08 03:06:31 or maybe anyone is using aviary here? Dec 08 03:06:41 Is $ the root? Dec 08 03:06:54 after upgrading to new gradle plugin it stopped working Dec 08 03:08:12 TacticalJoke: hm. failing on the 12th character seems a bit early. Dec 08 03:08:36 TacticalJoke: maybe adding logging to whatever stream it's reading from would be easier? Dec 08 03:11:39 Groxx: I'm using OkHttp and giving Gson's JsonReader the ReponseBody.charStream. Hmm. Guess I could read it myself and then recreate it and give it to Gson. Dec 08 03:12:07 TacticalJoke: yes Dec 08 03:12:16 Ooh, JsonReader takes a String. Dec 08 03:12:28 Maybe I can say ResponseBody.string, log it, and give it to JsonReader. Dec 08 03:12:43 stringification FTW Dec 08 03:13:20 :D Dec 08 03:16:04 Okay, I found the issue. Reddit is giving me XML every now and then. :/ Dec 08 03:16:17 In fact, HTML. Dec 08 03:28:09 Okay, it sens a 504 every time this happens. Dec 08 03:28:12 Just need to check for that. Dec 08 03:29:41 (And related stuff, of course.) Dec 08 03:32:26 TacticalJoke: my prediction came out true! I CAN SEE THE FUTURE D:! Dec 08 03:33:12 also: that seriously sucks. and everything ever seems to do it. why is it so hard to always respond with the right content type? Dec 08 03:35:40 Groxx: Yeah, you were right. lol Dec 08 03:35:46 Thanks for talking through that with me, BTW. :) Dec 08 03:35:54 My brain is totally dead today, and suddenly this issue came out of nowhere. Dec 08 03:36:04 It should be sufficient for me to check for 200 or 5** or whatever. Dec 08 03:36:26 I'm thinking of printing the response header to a file, every single time, in fact. Dec 08 03:36:29 Could help debugging. Dec 08 03:36:45 I probably should make a debug thing like that. At least for now. Dec 08 03:36:51 Also displaying the request and stuff. Dec 08 03:37:15 TacticalJoke: also handy for debugging: save every request to disk (if the library supports it easily enough) Dec 08 03:37:49 then you can `adb shell run-as ur.package cat requests/` and just read it all out. Dec 08 03:38:10 not always an easy thing to do though Dec 08 03:38:19 OkHttp supports caching responses. Not sure whether it supports caching requests (but it's no big deal either way). Dec 08 03:38:34 Unfortunately, this device doesn't let me use run-as my.package. Dec 08 03:38:40 Though I guess I can save to a non-private place. Dec 08 03:38:54 I dunno why it doesn't let me. It's a Sony Xperia M. My Xperia U lets me. Dec 08 03:38:55 What does caching requests even mean? Dec 08 03:39:29 Yeah, I wouldn't have expected an HTTP library to support that. It's more of a debugging thing. Dec 08 03:56:57 hi guys, how to change an app's permission access ? is it in AndroidManifest.xml? Dec 08 03:57:08 Yes. Dec 08 03:57:32 Here's an example: Dec 08 03:58:06 TacticalJoke: ah, ok Dec 08 04:00:23 Hi, can someone point me to docs on how to play video in a VideoView from file in res/raw/? Dec 08 04:00:44 I can’t get this to work using either setVideoUri or setVideoPath, not sure which I should use anyway. Dec 08 04:02:58 Hmm, Log.whatever returns the number of characters printed. Dec 08 04:04:15 eagspoo: can you use an InputStream? I forget what VideoView supports. Dec 08 04:05:22 there are people on stackoverflow saying I can just create a uri like android.resource://org.foo.bar/raw/vid_name, parse that and play it but it isn’t working for me. Dec 08 04:05:33 tactical heh read Log.java :} Dec 08 04:05:41 VideoView has setVideoUri Dec 08 04:06:04 Log.wtf() heh Dec 08 04:06:25 "whats that failure" Dec 08 04:06:58 eagspoo: I'm also seeing some that say to use R.raw.vid_name (not the actual filename). does that work? Dec 08 04:07:23 no that doesn’t work either Dec 08 04:07:51 I’m getting a valid resource uri that matches up with what is in R.java Dec 08 04:07:57 so I think that part of it is ok Dec 08 04:08:00 I tried both though Dec 08 04:08:01 Yeah, that's a nice name. Dec 08 04:08:02 Very concise. Dec 08 04:08:06 eagspoo: what about "android.resource://org.foo.bar/" + R.raw.vid_name ? no /raw in the uri. Dec 08 04:09:27 eagspoo: also: ugh. surprisingly annoying. there might be a reason, with how Android deals with app resources… the completely-correct way is most likely to _copy_ the video file to another location, and play from the copy. Dec 08 04:11:43 I complain about Android a lot, but I must say that ListViews are freakin' powerful. Dec 08 04:12:04 I wish I'd had those on Windows. My apps would've been way better. Dec 08 04:12:05 eeehhhh….. I like iOS's approach much better Dec 08 04:12:22 What do they do? Dec 08 04:13:24 they're pretty strict. you define the height of each view when you set the data, and it includes essentially .insertAtLocation, .removeAtLocation, etc, and you can run them all in a single animation "transaction" so it automagically animates moves / etc. Dec 08 04:13:52 Sounds nice. :) Dec 08 04:13:57 it's awful Dec 08 04:14:07 the benefit is you get predictable scrollbars (none of this silly resizing-as-you-scroll stuff), instant jumping (because you know exactly where you'll move to), and trivial animations Dec 08 04:14:15 sounds odd Dec 08 04:14:49 Groxx: Do they allow variable-height rows? Dec 08 04:15:29 downside is dynamically sized views. I've built stuff to measure "offline" (render text with constraints -> figure out view size), otherwise I think you achieve dynamic sizing by tossing it on screen, measuring it, updating your list of row heights, and reloading. Dec 08 04:16:10 So all rows have to be as high as the highest? Dec 08 04:16:21 you can do it, it's just harder (pre ios8) Dec 08 04:16:28 TacticalJoke: it has a callback to provide the height of individual rows Dec 08 04:16:40 the catch is that it calls it up-front for ALL rows when you change the data. Dec 08 04:17:39 where Android guesses based on what's on screen (and doesn't remember anything), which is an estimation. when it's wrong, you get the weird scrollbar that changes sizes / speeds as you move around. Dec 08 04:17:48 Yeah, but you can disable that. Dec 08 04:18:00 by making it jump to each position. not a good solution either. Dec 08 04:18:25 It doesn't look great with a small number of items, but it's not too bad with a lot of items, from what I've seen. Dec 08 04:18:25 I almost never see it in apps. always smooth scrolling. the jumping looks way worse. Dec 08 04:18:43 I guess Reddit clients need to disable smooth scrolling. Dec 08 04:19:02 Unless the scroll bar is allowed to look weird. Dec 08 04:20:01 bankai_au: ah, does ios 8 have a flexible-sized-row UITableView or something? that would be handy Dec 08 04:21:11 i didn't read too much into it coz i'm still supporting ios7, but there's some new feature that stops you having to do measurements Dec 08 04:21:20 soemthing about expected cell height? i can't remember Dec 08 04:21:22 hey guys, anyone have experience with DialogPreference Dec 08 04:21:29 im getting and error with @Override Dec 08 04:21:35 nifty. my iOS work was 7 and earlier, and we supported 5 through 7 :| not. easy. Dec 08 04:21:45 The method createDialog() of type NotificationPickerPreference must override or implement a supertype method Dec 08 04:21:51 Android is waaay easier to support multiple versions Dec 08 04:22:22 i want to open up a dialog on my preference Dec 08 04:22:24 apple have made it very obvious they don't care about users on versions that aren't the current one Dec 08 04:22:34 and im following code from cyanogenmod but i get that error Dec 08 04:22:53 totally. admittedly, their upgrade %s are way better, but it's still pretty hostile to both users and devs. Dec 08 04:23:59 Apple doesn't want stranded user pools like XP or Eclair Dec 08 04:24:07 jareddlc: I don't think DialogPreferences has a createDialog method to override. Dec 08 04:27:10 TacticalJoke: look here https://github.com/CyanogenMod/android_packages_apps_Settings/blob/cm-11.0/src/com/android/settings/notificationlight/ApplicationLightPreference.java Dec 08 04:27:32 sorry, with line: https://github.com/CyanogenMod/android_packages_apps_Settings/blob/cm-11.0/src/com/android/settings/notificationlight/ApplicationLightPreference.java#L166 Dec 08 04:29:06 I don't see "createDialog" here: http://developer.android.com/reference/android/preference/DialogPreference.html Dec 08 04:29:10 Not sure what's going on with that code. Dec 08 04:30:01 Nor here: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/preference/DialogPreference.java Dec 08 04:31:03 cm code? Dec 08 04:31:45 capella-s3: yup i looked it up as well tactical, im not sure why that works then Dec 08 04:32:47 cm specific stuff exists.... mmmm... Dec 08 04:33:13 so what the way to open a dialo from dialogpreference? Dec 08 04:35:42 jareddlc: I've never used that class, but isn't it the case that you simply override onCreateDialogView? Dec 08 04:35:45 jareddlc: probably: build it by hand? my guess is that's why it exists in CM Dec 08 04:36:26 This is cool. Under post-1.0, the first item is "Better test support": http://tools.android.com/tech-docs/new-build-system/roadmap Dec 08 04:36:39 "post-1.0" * Dec 08 04:36:54 Also "Improved compatibility with Java plugins". Dec 08 04:36:54 _post_ 1.0? sadness Dec 08 04:37:18 Yeah, pre-1.0 would be much nicer, but I never expected that. Dec 08 04:37:26 bankai_au have you ever done this before? someObservable.takeWhile(activityIsActive).subscribe(s) Dec 08 04:37:36 ECLIPSE 4EVAH Dec 08 04:37:41 * Groxx cries in the corner Dec 08 04:37:50 g00s: no :/ Dec 08 04:38:05 I'm staying on Eclipse till AS gets JVM unit testing. :) Dec 08 04:38:10 It's like a one-man protest. Dec 08 04:38:17 not sure its needed, ben christensen threw it out there Dec 08 04:41:06 TacticalJoke: thanks i'll look into some tuts, Groxx i didnt know they had cm specific stuff Dec 08 04:41:43 bankai_au just found out about Operator.unsubscribeOn() Dec 08 04:43:01 i want to make sure the cursor is closed in the ui thread Dec 08 04:43:09 hmmmm Dec 08 04:44:02 better test support can mean anything Dec 08 04:45:15 TacticalJoke will love this: testUnsubscribeWhenSubscribeOnAndUnsubscribeOnAreOnDifferentThreads Dec 08 04:45:40 Sounds like one of my test names. :) Dec 08 04:46:46 i'm amazed by the level of intellect that went into writing rxjava code Dec 08 04:46:56 * g00s will never be there Dec 08 04:47:41 don't forget it was written by a LOT of people Dec 08 04:47:50 and developed over a LONG time... Dec 08 04:47:58 based on something that already existed (am i helping?) Dec 08 04:48:10 heh Dec 08 04:48:21 ben and eric are smart dudes Dec 08 04:48:59 They make ice cream? Dec 08 04:51:28 ben & jerries have some awesome flavor names. i think android guys should be using those Dec 08 04:51:41 here's a good name http://www.benjerry.com/flavors/half-baked-frozen-yogurt Dec 08 04:51:58 It's so easy to create duplicate code when doing stuff with threads and Runnables. Dec 08 04:52:05 'half baked froyo' :D Dec 08 04:52:11 And so hard to disentangle it all. Dec 08 04:52:39 rxjava will fix your problems, TacticalJoke ..... and create a whole array of new ones :) Dec 08 04:53:06 yeah , like ... how the fuck does all the tubes work Dec 08 04:53:07 Americone Dream :) Dec 08 04:53:49 bankai_au i keep missing stuff as there are lots of operators not in the wiki Dec 08 04:54:06 the new 1.x stuff ? Dec 08 04:54:23 bah i dunno, maybe esoteric stuff Dec 08 04:54:25 on the up side most of the operators have mostly sensible names Dec 08 04:54:55 like even this https://github.com/ReactiveX/RxJava/wiki/Alphabetical-List-of-Observable-Operators Dec 08 04:55:06 unsubscribeOn is not there Dec 08 04:55:18 i didn't know of this page :( Dec 08 04:56:13 lol its right there on the landing page 'Operators (Alphabetical List)' Dec 08 04:56:49 i use google for almost everything Dec 08 04:57:29 I also haven't been to that page in a while ... ;) Dec 08 05:00:23 Again, observables and futures/ (promises) seem too-jsy Dec 08 05:00:47 g00s: I've been considering using rxjava for a few things. how are you liking it? Dec 08 05:01:36 oh i like it. i struggle without lambdas, even with code folding. after all, you have to write it before you can read it. Dec 08 05:02:00 ha, yeah. I'll probably still throw retrolambda at it, if it works at all Dec 08 05:03:10 the docs are pretty good. especially for the operators. but when dealing with concurrency, you have to be precise - and they don't go into some things. which led me to unsubscribeOn .. just knowing what thread an unsubscibe Action would occur on Dec 08 05:03:58 if i had to guess, it would be the thread that unsubscribed ... Dec 08 05:04:40 but that could be (1) the UI thread if you do it yourself, or (2) if the sequence completes or the operator self-unsubscribes, which thread is it then ? Dec 08 05:05:20 yeah, threading is still hard, no doubt :) I'm mostly interested in rx for flow-control purposes. Dec 08 05:05:33 also things can get tricky when changing the temperature of an observable, like making a cold one hot Dec 08 05:05:39 side effects of subscriptions, etc Dec 08 05:06:32 Groxx yeah. atm my app has rx and queued state machines. not ready to replace the state machines though Dec 08 05:07:04 well Dec 08 05:07:08 speaking of state machines: know of any good ways to do them in Java? Dec 08 05:07:16 android 'karamel sutra' seems nice Dec 08 05:07:23 Groxx yeah, do you have the sources for android in the sdk manager ? Dec 08 05:07:42 I mean, I can hack one out, but I always feel like I'm missing something. more memory efficient, or that like 90% of it should be generated (but I don't know of any generators), or something. Dec 08 05:07:50 g00s: I do Dec 08 05:07:58 whole android repo, actually Dec 08 05:08:31 well that's like 25 gb Dec 08 05:08:36 Groxx find a file called StateMachine.java and StateMachineTest.java Dec 08 05:08:38 bigger, but yeah :) Dec 08 05:08:49 dont remember exactly Dec 08 05:08:50 and then, be amazed at all the places it is used Dec 08 05:08:51 got it too Dec 08 05:08:57 I have a separate partition just for AOSP, I think it's sitting at 60gb right now Dec 08 05:09:04 Ooh, clipboard bug is fixed in android 5 Dec 08 05:09:14 i can fix keepshare now, yay Dec 08 05:09:18 what bug ? Dec 08 05:09:54 Groxx for other cases , look at ragel and SMC Dec 08 05:10:02 holy documentation, batman Dec 08 05:10:06 https://code.google.com/p/android/issues/detail?id=41037 Dec 08 05:10:11 gordon_, Dec 08 05:10:39 pfn it just says its obsolete :) Dec 08 05:10:40 g00s: yeah, I just don't want to leave Java if I don't have to. at some point I think I'll try making a state machine generator based on annotations. Dec 08 05:10:44 i guess you tested it though ? Dec 08 05:10:53 yes, I tested it Dec 08 05:10:55 https://www.google.com/url?sa=t&source=web&rct=j&ei=zDKFVM2BIsSegwTUsIDIBg&url=http://fc13.ifca.ai/proc/4-2.pdf&ved=0CBwQFjAA&usg=AFQjCNGVUGNqgkdM30E9_N2QQ4kcUQqFEw&sig2=Ka3HMBEhsM9a9_8QsueDsw Dec 08 05:11:07 I can make keepshare immune to that Dec 08 05:12:16 basically clipboard obfuscation Dec 08 05:12:40 take a stream of random data and paste the password in 1 character at a time Dec 08 05:12:45 impossible to snoop Dec 08 05:13:00 g00s: StateMachine.java: thanks, I'll read through that more carefully. looks maybe over-fancy…? but useful. though in the interest of even more fanciness: it doesn't look like it has transition-events. know of any that do? or maybe I just missed them? I know you can model them as extra states, but it's (probably) more verbose. Dec 08 05:14:00 Groxx hm, no i dont think transition events. ragel can do that by assigning an action to all transitions to / from states or embed them in the states themselves Dec 08 05:14:23 luckily i haven't needed that yet :O Dec 08 05:14:34 yeah, it's not necessarily a good sign :) Dec 08 05:14:52 but definitely read-worthy. thanks again Dec 08 05:15:08 ;) Dec 08 05:15:22 https://github.com/pfn/keepshare/commit/d7745dd59cd30a4956b8d83dbe48f76115517f84 Dec 08 05:15:28 Groxx: it was just that I had the VideoView inside a RelativeLayout which for some reason wasn’t working. Now I have it in a FrameLayout and everything plays just fine. Dec 08 05:15:30 also! happen to know if there are any android libs for building UIs out of a constraint solver, like cassowary? Dec 08 05:16:12 eagspoo: huh, weird. well, it's progress anyway :) Dec 08 05:16:18 * g00s hasn't head of anything like that Dec 08 05:16:50 g00s: basically, define your views in terms of "view.bottom = otherView.top - 3px" Dec 08 05:17:16 RelativeLayout++ Dec 08 05:17:18 Groxx, relative layout does that Dec 08 05:17:30 yeah, there's layoutAbove and margins Dec 08 05:17:40 but you can't define view.width = view.height * 2. Dec 08 05:17:53 nope Dec 08 05:18:29 that's been pushed onto the views responsibility Dec 08 05:18:36 g00s: fwiw it's essentially what iOS and OSX use to solve their layout strings. Dec 08 05:18:48 iirc they're a "real" cassowary solver under the hood Dec 08 05:18:53 sometimes I wish that sort of utility were available for android Dec 08 05:20:30 "Constraints may be either requirements or preferences." cool Dec 08 05:21:14 pfn: 1password on lollipop has a password-filler that I think uses the accessibility system (no clipboard). might be worth looking at that? Dec 08 05:21:17 in 90% of cases relative layouts are easier ... Dec 08 05:21:29 Groxx, looking at what Dec 08 05:21:43 and accessibility system = using clipboard Dec 08 05:21:45 yeah, but those 10% remaining are really common too. like "make this view height relative to its width" Dec 08 05:21:59 Groxx, I know of, because I implemented it using the accessibility system as well Dec 08 05:22:10 When my VideoView starts playing, it very briefly shows some random image from another part of the app. Anyone know what that is or how to get rid of it? Dec 08 05:22:26 lol Dec 08 05:23:10 eagspoo: heh. I think we were seeing something like that - we "solved" it by capturing a frame (there's a thumbnail extractor tool), laying it on top of the videoview, and fading it out over a fraction of a second when the media player is prepared. Dec 08 05:23:27 never noticed that before Dec 08 05:23:34 not with video view Dec 08 05:23:39 ah, man that is exactly what I was hoping I wouldn’t have to do Dec 08 05:23:51 not a big deal but just kind of gross Dec 08 05:23:53 eagspoo: I'm not in any way claiming we had a good solution :) Dec 08 05:24:11 eagspoo: you might be able to get by with just hiding the view until the onPrepared callback fires? Dec 08 05:24:54 surfaceview stability / quality in those in-between stages seems to depend on the device, unfortunately. or I / we have always done something horribly wrong. Dec 08 05:25:08 (totally possible, I might add) Dec 08 05:26:57 yeah, I thought I heard this, onPrepared will never fire if the video view is invisible or gone Dec 08 05:29:07 that's quite possible. it can probably be covered though. Dec 08 05:29:23 sorry, no context for that. I’m showing the video right before I play it because it is on top of a preview image Dec 08 05:29:34 I should just put the preview image on top and remove it at the last second Dec 08 05:29:37 do facebook invites ever work Dec 08 05:30:03 my email invite system is at 0, no one uses it Dec 08 05:30:13 maybe fb is better Dec 08 05:30:22 eagspoo: I think I follow that… anyway, I wish you luck. sorry I can't give be of more help / give you better news :) Dec 08 05:31:15 Agamemnus: the quality of FB anything varies wildly over time, but in the past they've worked reasonably well _if_ the invite is optimized. Dec 08 05:31:53 email is always extremely low. it works great for some people for some situations, but so few people really rely on email. Dec 08 05:31:59 (for day to day stuff, that is) Dec 08 05:32:10 i don't understand that Dec 08 05:32:17 I use email all the time, it's like wtf Dec 08 05:32:20 probably because you're a programmer :) Dec 08 05:32:20 but ok Dec 08 05:32:58 just think about all the time people spend on facebook. do you see email applications open that often? Dec 08 05:32:59 without integrating facebook, do you have any other suggestions? should I try to get a user's google+ circles? Dec 08 05:33:16 Here's my flow right now Dec 08 05:33:33 user clicks the "challenge a friend" button in the selection screen Dec 08 05:33:43 user selects a finished puzzle Dec 08 05:33:53 user types in an email and clicks "send" Dec 08 05:33:57 also: lots of people sync contacts with facebook. which means you might be sending to their facebook email address (fuck them for modifying everyone's contacts like that, by the way). which means it gets dumped in a low-visibility area. Dec 08 05:34:12 but so far only one person did it, and they tried to cheat Dec 08 05:34:23 but i gave them the gems anyway Dec 08 05:34:36 or should I really integrate fb Dec 08 05:34:50 personally, i ignore all fb game invites Dec 08 05:35:02 but again... Dec 08 05:35:11 aaah. if you go the facebook route, make sure you have an app page & list it as an app & are in FB's "app store". then you can link it all internally and track it better. Dec 08 05:36:13 yeah, I don't think I've ever clicked on them. but if you go to FB to game, they get used pretty heavily. Dec 08 05:36:44 I think you can even use the invite to deep-link into the app, and "complete" the invite step pretty automagically. Dec 08 05:38:32 I see Dec 08 05:38:36 that said, programming on the FB API is a WORLD of pain. endless random errors, stats pages that drop data randomly, unhelpful bug reporting, and always-changing effectiveness of whatever it is you do (and something new always appearing). to really work it, it takes a lot of continuous effort. Dec 08 05:38:49 I'm still trying to figure out how to get the REFERRER Dec 08 05:39:03 without the INSTALL_REFERRER, it won't be automagic Dec 08 05:39:17 I think that the FB API is better than it was Dec 08 05:39:21 but I haven't used it a lot Dec 08 05:39:36 unless the app is on a website Dec 08 05:39:40 possibly. it has been about two years since I've used it significantly. I seriously doubt it though, tbh. Dec 08 05:40:05 i don't want my game to be publicly accessible, won't improve my rank on google play Dec 08 05:40:17 but then again it's messed up anyway, can't get any higher than #160 Dec 08 05:40:21 don't want it to be publicly accessible? Dec 08 05:40:35 i mean, as a website Dec 08 05:40:39 ah Dec 08 05:40:55 someone suggested twitter Dec 08 05:41:11 a lot of bad choices Dec 08 05:41:18 maybe i just need more art Dec 08 05:41:20 or something Dec 08 05:41:22 yeah, twitter has their "cards" (or whatever they're calling them). another thing I very rarely use :) Dec 08 05:41:35 a lot of pretty bad jigsaw games have hundreds of thousands of downloads Dec 08 05:41:54 I want to encourage people to use G+, because it's so heavily integrated, and because it has in-browser install-on-my-device support, but I don't really know how well it works. Dec 08 05:42:05 well Dec 08 05:42:28 so i think my accept permissions rate went up after i switched it from g+ to just G Dec 08 05:42:34 (basic permissions only) Dec 08 05:42:41 but that is all i needed Dec 08 05:43:02 perhaps provide an option to contact someone in your g+ list Dec 08 05:43:09 Or in your address book Dec 08 05:43:30 why can't that be a client-side thing? Dec 08 05:43:31 Maybe it is. Dec 08 05:43:39 there's a "make a post" API iirc, that you pretty much just pre-populate and requires no real permissions Dec 08 05:43:41 Like, "select someone from your address book" Dec 08 05:43:57 for fb? Dec 08 05:45:08 so, you know how there's a "select account" thing? Dec 08 05:45:11 I think there's something like that: https://developers.google.com/+/mobile/android/people Dec 08 05:45:15 I've never used it though Dec 08 05:45:28 fwiw this looks like what I was thinking of: https://developers.google.com/+/mobile/android/share/ Dec 08 05:45:45 but that's all g+ stuff Dec 08 05:46:00 it is, yeah. the share dialog doesn't require G+ permissions though, iirc. Dec 08 05:46:07 Aha Dec 08 05:46:29 they do have to be _users_ of G+, but that's almost a given if they have an Android (though they may not be aware of it) Dec 08 05:46:32 well, outside China. Dec 08 05:47:43 So have Dec 08 05:47:45 er Dec 08 05:47:50 cancel that Dec 08 05:48:01 ok Dec 08 05:48:06 i'll make a reddit post :d Dec 08 05:51:02 Groxx: i'm very actively not a G+ user with android devices. :) Dec 08 05:52:02 lewellyn: heh, I'd believe it :) out of curiosity though: your social circles don't use it at all? or do you actively ignore it? and do you get any notifications? Dec 08 05:53:01 i don't have any need for G+. i use Google Talk on my BB Q10 for the couple of people who insist on "you have to use hangouts!". but otherwise, i have no need for it really. Dec 08 05:53:09 and what sort of notifications? Dec 08 05:53:32 i use hangouts all the time Dec 08 05:53:42 you have to for people who don't have a google email Dec 08 05:53:52 I'd use the GTalk app if I still could :( otherwise quite a bit of hangouts. Dec 08 05:53:53 hated upgrading ._. Dec 08 05:54:16 it is still really buggy on the gmail addon version Dec 08 05:54:21 lewellyn: like friends making posts that mention you Dec 08 05:55:07 For me, it's just really hard to figure this out. Dec 08 05:55:21 And then I ask in a network full of programmers. Dec 08 05:55:22 Groxx: i don't know what that means. Dec 08 05:55:28 Self-sabotage. Dec 08 05:58:34 lewellyn: alrighty then… if one of your friends is on G+, and they make a post, and one of the people they share it with is "+lewellyn" (or they just mention "+lewellyn" in the post), your device will typically show a notification for the G+ app, with a summary of the post. Dec 08 05:58:42 this may have never happened Dec 08 05:59:07 bankai_au did you see this one ? i liked the dogs :) https://speakerdeck.com/dorvaryn/rxfy-all-the-things Dec 08 05:59:10 Agamemnus: ha, yeah, it definitely can be :) Dec 08 05:59:15 RxLab (rador) Dec 08 05:59:35 Groxx: since i disabled the G+-requiring apps, it hasn't ever happened. but i also suspect no one's ever done it. Dec 08 05:59:59 the only thing which still nags me to "upgrade" regularly is when a game is integrated with Google Play Games. which is surprisingly few. Dec 08 06:00:48 lewellyn: do you FB then, or are you just as antisocial as me? Dec 08 06:00:53 it gives me a selector for both my associated google accounts. neither of which i've upgraded. Dec 08 06:00:59 Host www.facebook.com not found: 3(NXDOMAIN) Dec 08 06:01:03 haha Dec 08 06:01:31 also a good policy. I strongly dislike FB. Dec 08 06:01:32 my work lan is as bad as china in some respects ;) Dec 08 06:02:11 the back of the napkin math of how much time is wasted on facebook scripts on web pages in a normal field office where the employees don't log in is... astounding. Dec 08 06:02:40 ugh. i know what you mean. Dec 08 06:02:46 a conservative estimate is a half-person per week is lost in an office of 25-50 people. Dec 08 06:02:55 all for stupid like buttons and comments Dec 08 06:03:00 FB / social blocker and/or disabling javascript makes the internet SO MUCH FASTER. Dec 08 06:03:26 it's almost enough to make you believe that computers actually _have_ gotten faster over the years Dec 08 06:03:36 i see Dec 08 06:04:06 * capella-s3 mango say Facebook bad! Dec 08 06:04:24 Groxx: use lynx Dec 08 06:04:37 I have lynx installed! I'm like 20% of the way there Dec 08 06:04:50 i had one place who didn't quite believe it (and they run a transparent proxy for regulatory reasons) do some traffic analysis. they were losing about 1 person's productivity per week for every 10, since the employees had very internet-facing jobs. i was surprised. Dec 08 06:05:15 * lewellyn compiles his own lynx and provides a dmg for those who still have an ancient powerpc mac ;) Dec 08 06:08:51 I've been following this to create country code selector: http://developer.android.com/guide/topics/ui/controls/spinner.html but my IDE does not recognize setAdapter method in Spinner.setAdapter(adapter); Dec 08 06:09:30 Bauer1: lowercase S or uppercase? Dec 08 06:11:26 Groxx: I tried setAdapter exactly as the link says... Dec 08 06:11:32 uppercase S Dec 08 06:12:03 use lowercase. "spinner" is the instance you're modifying, "Spinner" is the class. Dec 08 06:12:27 ahhh, thanks! my bad :) Dec 08 06:13:02 Groxx: could you also advice how to set a default value for the spinner? apparently the adapter object has no set method Dec 08 06:16:17 Bauer1: there's an example in the guide. Or if you just need to show a list of strings, you can use a ` new ArrayAdapter(this, android.R.layout.simple_list_item_1, new String[] { "a", "b", "c" }) ` Dec 08 06:18:30 otherwise, I suspect you'll have to do a fair bit more reading. there's not a whole lot more you can do really simply, and it sounds like you're very new to this Dec 08 06:20:34 oh, sorry I meant the default selected value, not the array of values.. but I think I got it now on stackoverflow. Indeed I am pretty new to Android development, its different from other things I do.. Dec 08 06:21:22 unfortunately many times my questions here remain unanswered, and often its not clear how best is it to do something Dec 08 06:23:07 android's a big system. there's a fair bit to read to understand even the basics. try: reading the guides on the developer site, reading the sample code on the developer site, and/or reading a book :) Dec 08 06:23:30 Is there anyway to get notified when a listview has overscrolled beyond a certain point? Dec 08 06:23:32 I hate that the sample code does not have the import dependencies Dec 08 06:23:36 it's really stupid Dec 08 06:24:04 I see getOverscrollHeader but not sure what that returns if that is what I want Dec 08 06:24:13 Agamemnus: actually the IDE is a great help with that Dec 08 06:24:14 eagspoo: looks like subclass ListView and override onOverScrolled? Dec 08 06:24:27 But I don't use an Android-specific IDE. Dec 08 06:24:35 I guess they assume everyone does Dec 08 06:24:52 Agamemnus: I use IntelliJ IDEA - its not specific for Android, but so far it works with it exceptionally well Dec 08 06:25:05 or even an IDE :P Dec 08 06:25:11 just notepad++ Dec 08 06:25:29 still. Dec 08 06:25:40 they should just put the imports in the sample code.. Dec 08 06:25:40 java nad notepad Dec 08 06:25:41 eagspoo: which sorta makes sense, and sorta sucks. I don't think there's really an "over-scroll" concept in Android. the edge shadows are faking it by estimating your "velocity" or by animating it instead of the view. Dec 08 06:25:42 good luck Dec 08 06:25:57 it's not notepad, it is notepad++ Dec 08 06:26:15 I do miss N++ at times. Sublime Text and Textmate are pretty decent though. Dec 08 06:26:43 I must head out for the night - o/ @ all Dec 08 06:26:47 Groxx, I need to reveal a menu from the top when people pull down a certain amount. Sort of like refreshing on pulldown. Seems like just waiting til the tension is > some threshold is an easy way to go Dec 08 06:28:04 eagspoo: ah. personally I prefer when it's a normal part of the list, but the list starts scrolled "down" just enough to hide it. more discoverable. Dec 08 06:28:31 yeah, designers, you know… Dec 08 06:28:38 eagspoo: you might want to check out pull-to-refresh code, since it's very likely similar. I don't know how to do it nicely in Android, but some people have managed. Dec 08 06:28:52 yeah :) I know. Dec 08 06:29:23 I write all my apps in edit.com Dec 08 06:29:28 Am I doing it wrong Dec 08 06:29:30 nooooo Dec 08 06:29:43 I looked at a couple examples and they all seemed pretty sticky. They are all doing some expandable element at the top of the list to fake that extra pulldown. I’m thinking something way simpler. Just > a certain tension and pop, the menu slides open. Dec 08 06:30:09 anyone has any idea how to sort R.array.country_codes array list of strings? Collections.sort is not suitable as that thing is an int... Dec 08 06:30:25 capella-s3 when did FF 34 come out ? Dec 08 06:30:44 * capella checking Dec 08 06:30:47 lol, a week ago Dec 08 06:31:06 "Default search engine changed to Yandex for Belarusian, Kazakh, and Russian locales" Dec 08 06:31:08 woohoo Dec 08 06:31:17 wake me up when e10 lands Dec 08 06:31:27 That was the horrible one right? https://wiki.mozilla.org/RapidRelease/Calendar Dec 08 06:32:16 ugh, yeah now i remember - this one includes a chat client Dec 08 06:32:20 I get confused cause I'm three versions ahead all the time Dec 08 06:32:35 Yah we have Firefox Hello now Dec 08 06:32:44 Voice calls Dec 08 06:34:39 * capella loves the silent b&w's on TCM at 1:30am :D Dec 08 06:34:59 * bankai_au loves weird acronyms Dec 08 06:35:26 black and whites? or Turner Classic Movies? Dec 08 06:36:01 oh tv, gotcha Dec 08 06:36:15 :) Old tech Dec 08 06:36:21 loser :P Dec 08 06:36:27 hahahaha Dec 08 06:37:21 * capella loves the b&w b&d's, but that's a different story Dec 08 06:38:38 g00s: I'm thinking v32 is the really buggy recent one Dec 08 06:39:03 I think you complained too Dec 08 06:39:25 ah. i stopped using FF for a while when i crashed it reordering a bookmark in the manage bookmarks window, and couldn't restore my session or OneTab state Dec 08 06:39:27 though that's kind of a pattern ;) Dec 08 06:39:49 yah yah ayh !!!! I remember now :/ Dec 08 06:39:50 i lost like 140 tabs, i was so pissed Dec 08 06:40:10 We have telemtry showing people w/1000 active tabs Dec 08 06:40:22 140 tabs in OneTab Dec 08 06:40:22 w ... t..... f .... !?!?!?! Dec 08 06:40:31 i only had a few open Dec 08 06:40:38 oic Dec 08 06:40:46 so yeah, fuck that extension too Dec 08 06:40:57 until i can see what tabs are eating cpu, FF is no go Dec 08 06:42:02 using chrome atm, since i don't have enough mem for more than 6 tabs - my browsing behavior changed Dec 08 06:42:17 so thats good too Dec 08 06:42:26 I think electrolysis will do that ... it just got to nightly like last week Dec 08 06:42:29 i'll try ff again when e10 lands Dec 08 06:42:50 heh ... it's rough atm Dec 08 06:43:04 "some known bugs" Dec 08 06:44:32 firefox for iOS oughta be interesting Dec 08 06:45:18 i dont understand why FF doesn't have a native way to hibernate tabs Dec 08 06:45:21 I tried to get you FF for metro / wp but that's still buried :( Dec 08 06:45:37 i use IE on WP its pretty good Dec 08 06:45:43 There was work for that ! I saw a bug Dec 08 06:46:03 let me put it this way, IE on my shitty $69 lumia 521 is smoother than chrome on android N7 2013 Dec 08 06:46:38 MS has been known to do some things well Dec 08 06:49:31 capella the other problem i had with FF was that i had to constantly restart it; it kept growing and growing in memory. but maybe it was an extension Dec 08 06:49:40 g00s, ff on pc or mobile? Dec 08 06:49:50 ff on pc Dec 08 06:49:55 ff on pc isn't multi process Dec 08 06:50:03 it can't really be paged out well Dec 08 06:50:45 it's singularly threaded as well Dec 08 06:51:31 closing a tab in chrome pretty much gets you all your memory back, closing a tab in FF didn't do shit Dec 08 06:51:42 well, as long as the Chrome Worker wasn't getting bigger Dec 08 06:51:44 it doesn't Dec 08 06:52:06 closing a tab in ff doesn't release the tab crap immediately Dec 08 06:53:13 capella so i'd go to a page like http://reactivex.io/RxJava/javadoc/rx/Observable.html (notice how big it is) and i'd have to restart FF when done with that page to reclaim memory Dec 08 06:53:39 or even the android javadoc for View :) Dec 08 06:54:40 ff extensibility beats chrome though Dec 08 06:54:51 yeah ... i like noscript Dec 08 06:54:55 amazon also killed FF Dec 08 06:55:03 a couple of amazon tabs open, bam Dec 08 06:55:42 xul, xpcom and js components OP Dec 08 06:56:43 Mutable observables? er, Dynamic event reordering? Dec 08 06:56:52 why? Dec 08 06:57:51 Or is simply event coalescing? Dec 08 06:58:44 g00s: What's led you to need RxJava? Dec 08 07:00:30 i wouldn't say "need"; its nice though Dec 08 07:01:34 Ah, though you had a requirement for a current project ... vs. exploring Dec 08 07:01:37 but in the context of android i'm finding it harder to get wins, because of the inherent statefullness of things Dec 08 07:03:52 Well I understand the usefulness of messaging ... that looks like a pretty fancy system there compared to basic JS <--> JAVA <--> C++ stuff we do Dec 08 07:04:17 * capella takes that back Dec 08 07:04:25 ours isnt really simple either Dec 08 07:09:22 i'm very excited that Play might be getting those discounts / reward vouchers Dec 08 07:19:22 g00s: seems 1.0 has issues, so it's a no-go with IJ14 Dec 08 07:19:58 bankai_au ahh, i thought so, thanks for checking Dec 08 07:23:33 if I say ctrl-P to get method signatures, is there any way to copy / paste one of the alternatives into the editor ? Dec 08 07:23:59 for example if i have the cursor inside parens of .flatMap() ... i get some crazy suggestions Dec 08 07:24:14 without lambdas, i'll just make a Func2 with the required signature Dec 08 07:24:43 would be nice if i could copy that from ctrl-P selection to the editor Dec 08 07:31:46 TacticalJoke: here? Dec 08 07:41:49 is it possible to explicitly mention the package name while sending a broadcast to a specific action ? Dec 08 08:02:56 thepoosh: Yeah. Dec 08 08:04:29 TacticalJoke: did you manage to set an onItemClickListener to the child views only in the end or did you end up setting an onClickListener to the view in the getView? Dec 08 08:05:04 Oh, that was lasserix, I think. :D Dec 08 08:05:25 oh Dec 08 08:05:28 O_O Dec 08 08:05:39 just got up Dec 08 08:05:46 haven't implemented it yet--not sure if i will Dec 08 08:05:48 I'm just struggling with the same thing Dec 08 08:05:54 the list is just to present some data, not for inteacting Dec 08 08:06:00 struggling ? Dec 08 08:06:01 ended up setting an onClickListener Dec 08 08:06:06 It's better to do it in the adapter, IMO. Dec 08 08:06:07 but I think it's bad Dec 08 08:06:08 its easy, you just set it in getView on the view you want Dec 08 08:06:13 And let the adapter call back to the activity. Dec 08 08:06:27 I prefer the onItemClickedListener Dec 08 08:06:33 well they are differnet hings Dec 08 08:06:36 item is for row Dec 08 08:06:40 click is for view within row Dec 08 08:06:41 I'd better run. Have fun! Dec 08 08:06:46 run run urn Dec 08 08:06:47 it's generic and doesn't create multiple listeners for the same thing Dec 08 08:06:50 take your jacet it too Dec 08 08:07:02 he's already out Dec 08 08:07:06 lasserix: you from the UK? Dec 08 08:07:10 and hurry up and finish that already redditisfun is pissing me off ;p Dec 08 08:07:16 thepoosh: no, why do you ask/ Dec 08 08:07:21 you just woke up Dec 08 08:07:24 haha Dec 08 08:07:31 yes Dec 08 08:07:37 no i am in california in the us Dec 08 08:07:45 why are you up now?! Dec 08 08:07:54 i have become unstuck in time Dec 08 08:08:03 it's still so early that bars are still open here! Dec 08 08:08:03 you are now on my timezone Dec 08 08:08:23 isn't it around midnight now? Dec 08 08:08:27 yeah Dec 08 08:08:55 i stopped working out about two weeks ago and since then my sleep schedule has become unstuck Dec 08 08:10:23 I don't get it Dec 08 08:10:34 ever since I had kids, my schedule is pretty much set Dec 08 08:10:39 yep Dec 08 08:10:42 fuck kids Dec 08 08:11:00 D: Dec 08 08:11:05 the last startup i worked at i had to go in at 9 everyday to accomodate the boss's schedule which revolved around taking his kids too school Dec 08 08:11:29 nevermind everyone in the company who didn't have kids usually would work until 4 in the morning, and stillwe had to come in at 9 Dec 08 08:11:38 Waking up before noon for work is a sin Dec 08 08:11:39 lasserix: i'd rather not. it's a felony. Dec 08 08:11:43 Graveyard shifts ftw Dec 08 08:11:53 lewellyn: sure sure Dec 08 08:13:10 does anyone know reading 400 lines from a text file or a sqlite database is faster? Dec 08 08:13:45 I prefer reading them aloud Dec 08 08:13:56 Has that classical feel Dec 08 08:14:03 you probably also ate the paints in grade school? Dec 08 08:14:15 :) Dec 08 08:14:37 You mean the rainbow sugar cakes? Dec 08 08:14:43 ahhh yeah Dec 08 08:14:52 3:15 am... sleep is for the weak :p Dec 08 08:14:53 lasserix: that is stupid Dec 08 08:15:01 thepoosh: ? Dec 08 08:15:10 all my bosses have kids and the office opens when the first person arrives Dec 08 08:16:12 oh Dec 08 08:16:15 yeah Dec 08 08:16:17 lasserix: about the 400 lines Dec 08 08:16:24 thepoosh: what do you mean? Dec 08 08:16:31 do you need to search anything? or is it sequential? Dec 08 08:16:37 this is for a keyboard Dec 08 08:16:43 i parse a textfile that has the mappings Dec 08 08:16:54 csv? Dec 08 08:16:54 but this creates some garbage (not much) Dec 08 08:17:03 so I am wondering if i should dump it into a db instead Dec 08 08:17:04 umm Dec 08 08:17:05 kind of Dec 08 08:17:21 hmmm Dec 08 08:17:33 you're thinking the cursor will be better with the garbage? Dec 08 08:17:40 yeah Dec 08 08:17:42 the db will still be loaded into memory Dec 08 08:17:51 memory is not a problem Dec 08 08:17:52 its the garbage Dec 08 08:17:57 BufferedReader should be just fine Dec 08 08:18:06 its not about the data Dec 08 08:18:08 is about how i parse it Dec 08 08:18:13 yes yes Dec 08 08:18:29 but if you readLine and reuse the same items it shouldn't be to wasteful Dec 08 08:18:36 um Dec 08 08:18:49 so the end result is hash -> value Dec 08 08:18:57 hmmmm Dec 08 08:19:08 but to do that i need a couple of various objects, for each line, like a keyboardmappingentry Dec 08 08:19:22 not to mention the strings Dec 08 08:19:30 i use substring instead of split, but still Dec 08 08:19:48 it's not like the garbage as is is a problem, just wondering if it would bemore efficient, once i have parsed a file and it is valid Dec 08 08:20:00 to use a db instead of reparsing it each time the keyboard needs to be created Dec 08 08:21:28 db will probably be faster Dec 08 08:21:46 and without garbage Dec 08 08:21:47 but I think the overhead of maintaining a db is higher than just regular parsing Dec 08 08:21:54 what do you mean? Dec 08 08:22:20 you say garbage is not an issue but don't care about memory use Dec 08 08:22:23 I'm puzzled Dec 08 08:22:27 hmm, i could parse it, then generate another text file with the hash->value mapping list Dec 08 08:22:33 using a db hase disc read and writes Dec 08 08:22:34 garbage causes gc pauses Dec 08 08:22:45 IO is slower than GC Dec 08 08:22:53 ram usage is not a issue Dec 08 08:23:03 since it is like 300kb tops Dec 08 08:23:03 but db might have IO Dec 08 08:23:16 lasserix have a sample of the file ? Dec 08 08:23:25 pastebin? Dec 08 08:23:58 pastie Dec 08 08:24:04 I like it better Dec 08 08:24:59 http://pastebin.com/eMb5hRUX Dec 08 08:25:09 so there are like 200-400 entries like this Dec 08 08:25:28 btw the user of the keyboard can define their own layout files, which is why i do this Dec 08 08:25:37 and the format of that is not quite set it stone Dec 08 08:26:20 g00s does that help? Dec 08 08:26:32 i don't use split, i just use substring to break each line into its components Dec 08 08:26:52 the thing is this eventually produces two hashmaps of the form hash->value Dec 08 08:26:54 yeah ... so is &panel=(#1),tile=(#1),position=(#4),down=(#1),up=(#3), the key and value= the value ? Dec 08 08:27:06 ahh Dec 08 08:27:12 two hashmaps Dec 08 08:27:21 one for display positoning the other for action event response Dec 08 08:28:01 so for istance this wuld produce something like 10014:Z and 10014:toPanel Dec 08 08:28:13 err not 10014 but 1013 Dec 08 08:28:18 for the second half Dec 08 08:28:29 if i use a db i don't need the intermediate keyboardmappingentry Dec 08 08:28:37 since i can just parse it when they load it in the settings Dec 08 08:29:53 i don't understand the dsl Dec 08 08:30:08 don't see 2 hash maps here Dec 08 08:30:31 dsl? Dec 08 08:30:42 so textfile is selected by user, my parser builds two hashmaps Dec 08 08:30:43 would it have been better to put this in xml or json :| Dec 08 08:30:53 which the custom view uses to build the keyboard Dec 08 08:31:01 g00s this textfile can be defined by a user Dec 08 08:31:03 and loaded Dec 08 08:31:14 oh so a user would make this file ? Dec 08 08:31:16 for now i am just doing ~csv but the parser can also handle xml or gson Dec 08 08:31:17 yeah Dec 08 08:31:19 that's the point Dec 08 08:31:26 then i would use ragel Dec 08 08:31:29 i can add xml / json style Dec 08 08:31:58 ? Dec 08 08:32:05 i have no problem parsing it Dec 08 08:32:10 i already have the parser built Dec 08 08:32:34 throw it out Dec 08 08:32:36 http://www.colm.net/open-source/ragel/ Dec 08 08:32:45 the question is not how to parse Dec 08 08:32:54 you just said, you had the parser built Dec 08 08:33:13 ? Dec 08 08:33:16 * g00s hands this back over to thepoosh Dec 08 08:33:43 the question is not how to parse, but once i have the hashmaps, should i use a db to store them or just continue to reparse it each time the keyboard view needs to be created? Dec 08 08:34:11 why not just parse it when the app starts up ? Dec 08 08:34:19 its not for an app its for a keyboard Dec 08 08:34:21 and leave it in memory ? like just a singleton Dec 08 08:34:26 ohh Dec 08 08:34:28 yeah Dec 08 08:34:36 yeha, i don't know anything about keyboards sorry :) Dec 08 08:34:40 oh Dec 08 08:34:49 well eachtime the user opens the softkeyboard it is created, Dec 08 08:34:49 i thought this was in an app Dec 08 08:35:03 if the keyboard is closed, it'll persist a while, but a short time later it'll have to be recreated Dec 08 08:35:21 so its equivalent to having an app that is needed to be restarted (ie oncreate) like every 4 minutes Dec 08 08:35:24 lasserix ok well then , i would use ragel to parse, and persist using mvstore Dec 08 08:35:37 mvstore? Dec 08 08:35:39 then i'd just read from mvstore each time until you get a new file Dec 08 08:35:46 persisted k/v store Dec 08 08:35:54 persisted in? Dec 08 08:36:02 err can you show me a link? Dec 08 08:36:03 persisted in file or memory, your choice Dec 08 08:36:19 http://www.h2database.com/html/mvstore.html Dec 08 08:37:10 you prefer this over sqlite because? Dec 08 08:37:19 i guess it depends how fast your parser is Dec 08 08:37:32 ragel is so fast, you might be able to just parse the file each time Dec 08 08:37:33 the pareser is fast enough Dec 08 08:37:42 there's no problem there Dec 08 08:38:52 is it possible to explicitly mention the package name while sending a broadcast to a specific action ? Dec 08 08:39:36 g00s is there a reason you prefer h2 over sqlite? Dec 08 08:39:50 for persisting to disk Dec 08 08:39:51 for k/v its faster Dec 08 08:40:09 and simpler for k/v Dec 08 08:40:26 basically just using Map intterface Dec 08 08:40:40 ah Dec 08 08:41:00 what is h2? Dec 08 08:41:24 but i don't understand. i have get going lasserix , but if you parser is fast enough, why not just reparse each time? then you don't have to worry about stale state, etc Dec 08 08:41:29 g00s any links of using ragel for building parser in java? Dec 08 08:41:54 lasserix ahh, ragel is super powerful Dec 08 08:41:58 ahh okay thanks for the help Dec 08 08:42:05 lasserix read the doc, dl sources, see samples Dec 08 08:42:13 hmm actually parsing takes 400 ms so that may be actually too slow Dec 08 08:42:21 yeah that sucks Dec 08 08:42:28 well i guess ill look at using h2 Dec 08 08:42:34 since i only need the maps after parsing is finishing Dec 08 08:42:37 *finished Dec 08 08:42:40 thanks Dec 08 08:42:46 ragel would be consuming this as byte stream Dec 08 08:42:52 good luck ! Dec 08 08:43:23 nom nom nom Dec 08 08:57:45 I have two XML layouts, placed in the correct folder (/layout and /layout-land). But my application still uses the same layout for landscape and portrait mode. Switching is wokring generally, but it uses the same layout. The courious thing is, that the layout switches every time I restart debugging O_o Dec 08 09:07:38 any hint or idea? Dec 08 09:08:01 You didn't accidentally add configChanges to your manifest? Dec 08 09:09:01 that's it. Thanks :-) Dec 08 09:18:50 haha awsome Dec 08 09:18:57 shift tab = delete tab Dec 08 09:33:37 sqlitestatements begin with index 1 Dec 08 09:33:40 correct? Dec 08 09:34:18 yes Dec 08 09:34:31 iirc Dec 08 09:56:49 is there a way to put extras in an intent going from a sub to a parent activity? Dec 08 09:57:38 ie like startActivityForResult, but if i have some state that changes in B that should be reflected in A if the user goes back from B to A what's the best way to notify A from B of this change? Dec 08 09:58:07 lasserix: yes, Activity.setResult gets a bundle Dec 08 09:58:30 even if A doesn't startActivityForResult for B? Dec 08 09:58:54 sorry, Intent Dec 08 09:59:07 hmmmm Dec 08 09:59:08 not sure Dec 08 09:59:30 you can always set the parent Activity to be singleInstance and catch the onNewIntent Dec 08 09:59:42 in the finish Dec 08 10:00:27 hmm Dec 08 10:00:30 sounds overkill Dec 08 10:29:36 Hi guys, how’s it going? Dec 08 10:30:19 sleepy Dec 08 10:31:43 mobius strip is awesome Dec 08 10:31:52 on the other side, mobius strip is awesome Dec 08 10:31:54 bazinga Dec 08 10:32:11 gordon_: I totally get ya, I’m on my first cup of coffee currently. I don’t even dare to look at code yet Dec 08 10:32:39 I'm moving home slowly Dec 08 10:46:39 I have a horizontalscrollview with 4 buttons on it. Right now you scroll indescriminately. I want it so that each time you swipe, it flies over the appropriate amount to center on the next button Image. Is there a certain flag I can set in the HorizontalScrollView for this? Dec 08 10:49:00 probably not Dec 08 10:49:12 how would scroll view know to set scroll to arbitrary value? Dec 08 10:49:58 it would focus on the 4 children when it passed them. like a little pause Dec 08 10:50:19 you'd have to calculate amount of energy in fling motion, translate that to a total distance travelled, then set up an animation to bounce it back to the center Dec 08 10:50:42 can't you use onScrollListener and just comapre children middles to focus offset? Dec 08 10:51:30 umm maybe? Ill look into that Dec 08 10:51:43 how else would you do it? Dec 08 10:52:36 idk is there no "anchor/focus on children" tag. so you would need 1 swipe right for every item. rather than just scrolling based on your finger Dec 08 10:53:02 ahh you could do that easily Dec 08 10:53:25 each swipe just smoothscroll by the difference between next child center and scroll view center Dec 08 10:53:33 or whereever you want it aligned Dec 08 10:53:50 on the ends you could impelement a little bounce back too Dec 08 11:02:53 lasserix, so like smoothscrollbyoffset? and then make the offset the number of dp between the item and the next one? would this be indicated in the layout? Dec 08 11:03:01 NOT dp Dec 08 11:03:06 you have to use pixels Dec 08 11:03:39 is that just for smoothscroll? or are you saying dp is bad in general? Dec 08 11:03:45 no Dec 08 11:03:48 you cant use dp Dec 08 11:03:55 when you are doing things with views in code Dec 08 11:03:57 dp is for layout Dec 08 11:04:08 but whenever you do translations on views, size views in code always pixels Dec 08 11:04:09 never dp Dec 08 11:04:17 you might use dp to find the number of pixels Dec 08 11:05:06 you either subclass horizontalscrollview Dec 08 11:05:10 or do it some other way Dec 08 11:05:17 but 1) you have to keep track of current focus child Dec 08 11:05:35 2) you have to capture swipe events Dec 08 11:06:15 3) you have to determine based on the swipe event to move focus next or back Dec 08 11:06:21 Or use ViewPager instead, it'll settle on a "page" Dec 08 11:06:25 or that Dec 08 11:06:39 which is probably a much better idea :) Dec 08 11:07:14 hmm ok. ill look into the viewpager as well Dec 08 11:07:50 anyways 4) would be to determine distance between horizontalscrollview current focus offset and the target focus childen middle, then smooth scroll translate it Dec 08 11:08:15 doing it with a viewpager would probably be a lot easier Dec 08 11:15:16 guys android-async-http or retrofit or is my question really stupid, please help Dec 08 11:15:16 is iterator faster than foreach? Dec 08 11:15:30 okhttp Dec 08 11:16:37 I prefer retrofit, but to each their own Dec 08 11:16:53 its a RESTFul API Dec 08 11:17:36 lasserix, isn’t foreach just iterators under the hood? Dec 08 11:18:14 ahh probably Dec 08 11:18:55 ok just googled it, it is basically the same bytecode Dec 08 11:34:20 wow autoboxing makes things SOO slow Dec 08 11:35:09 have like 600 entries to a sqlite database and it takes 5 seconds on my n7 and 12 on my low end phone even using sqlite statments Dec 08 11:46:49 so view.invalidate() can't be executed mote often then 60 times per sec? Dec 08 11:47:50 it can Dec 08 11:47:54 but it wont have an effect Dec 08 11:48:11 since the underlying opengl rendering caps out at 60 hz Dec 08 11:55:09 lasserix: are you sure it’s due to autoboxing and not due to sqlite? you using transactions? Dec 08 11:55:29 oh will transaction also speed itup Dec 08 11:55:37 thought they were just for error handling Dec 08 11:55:39 i am using statements Dec 08 11:56:06 well, i've never had this problem before, i've done the equivalent inserts with primitives and it only took 300-600ms Dec 08 12:08:27 lasserix: transactions really speed up when you have a lot of items Dec 08 12:08:54 I had about 14k objects, it took about 3-4 minutes to save them all the first time Dec 08 12:08:59 now it is under 3 Dec 08 12:14:54 *under 3 seconds Dec 08 12:16:38 hi, what do I need to import into my subclass of ListView so I can get the activity using getActivity()? Dec 08 12:18:14 eagspoo: Activity Dec 08 12:18:41 lasserix: you're still debating on that? Dec 08 12:28:51 ? Dec 08 12:28:56 on what Dec 08 12:29:07 bluecup thanks Dec 08 12:29:22 wow Dec 08 12:29:31 anyone know a FAST way to count occurances in a string? Dec 08 12:29:42 lasserix: did it improve? Dec 08 12:29:56 was working on something else Dec 08 12:29:59 let me see Dec 08 12:30:13 Hey! Does anyone know how I can get the Android Emulator to react to a screen rotation? I have learned that Left Ctrl+F11/F12 will rotate back and forth, but the stuff inside the emulator doesn't seem to react to the rotation. Dec 08 12:30:17 i.e., the home screen in landscape mode is "tipped over". It doesn't rearrange itself so the applications and phone button are at the bottom and the pull-down notification area is at the top. Dec 08 12:30:22 whats the order begin setSuccess end? or begin end setSuccessful? Dec 08 12:31:04 Is there some setting I have to turn on for the AVD? Dec 08 12:31:39 I can't seem to find any setting related to that by hitting "Edit..." ... Dec 08 12:31:46 The home screen only supports portrait on phones Dec 08 12:31:47 lasserix: it is begin, set, end Dec 08 12:31:56 guess i might switch to trove Dec 08 12:32:10 SimonVT: OK, but the browser isn't switching either. Dec 08 12:32:23 bluecup hahahaha Dec 08 12:32:25 hahaha Dec 08 12:32:33 from 5seconds to 250 ms Dec 08 12:32:34 It does here Dec 08 12:32:35 :) nice thanks Dec 08 12:32:38 SimonVT: ... and neither is the settings app. Dec 08 12:32:43 no problemo :) Dec 08 12:32:54 SimonVT: OK. THis is Android 4.4.2 inside the AVD. What version of Android do you have? Dec 08 12:33:38 SimonVT: Is there an app that should absolutely, certainly, be rearranging itself upon rotation? Dec 08 12:34:03 Try another api level Dec 08 12:34:10 Sometimes they break rotation Dec 08 12:34:37 SimonVT: OK, I just hope I can reproduce the bug I'm trying to fix using that other API level ... Dec 08 12:43:24 what mechanisms does adb use to realise a device is plugged in? My debian system is really not seeing either my nexus 4 or my nexus 7 after the first usage from intellij. Could it be someting dbus related? Dec 08 12:50:00 Hello Dec 08 12:50:09 Hello Dec 08 12:50:34 I have a question, why after surfacheChanged for a SurfaceView, the egl surface become EGL_BAD_SURFACE ? Dec 08 12:50:57 I explain : I initialize my EGL contexte on surfaceChanged Dec 08 12:51:31 If I draw things on this function (for example clear my screen in White), my screen become white, no problem Dec 08 12:52:10 But just after that, if I do eglSwapBuffer(m_display, m_surface), I have the following EGL_ERROR : EGL_BAD_SURFACE. Why ? Dec 08 12:55:28 sure you should be handling that? isn't there some sort of GLSurgaceview interface? I dont know. Maybe thats a pointer. Dec 08 12:55:51 I use Opengl ES 2.0 from NDK Dec 08 12:56:39 Here is the source : http://sprunge.us/BVGT?cpp Dec 08 12:58:12 (it is the CPP code). Here the java interface : http://sprunge.us/dIBM?java Dec 08 12:58:39 AlarmReceiver's onReceiver gets called the first time but does not get called any time after (it should happen every 10 seconds). code is here http://pastebin.com/3xa8ZAau am i missing something super obvious? Dec 08 13:03:38 aaearon: try using FLAG_UPDATE_CURRENT instead of ONE_SHOT Dec 08 13:09:25 blah thanks bluecup. the ONE_SHOT should have been a huge flag for me Dec 08 13:10:57 Did SurfaceView become unavailable after surfaceChanged ? Dec 08 13:12:59 Gaulois94, when surface changes it's fully recreated Dec 08 13:13:04 so you need to reinitialize it Dec 08 13:13:19 so if you're still trying to use old surface you'll get the BAD_SURFACE error Dec 08 13:13:59 Mavrik, HELP! ... killing myself here :( Dec 08 13:14:11 Mavrik: How can I get the new surfaceView ? Dec 08 13:14:20 smellymoo: Don't do that? Dec 08 13:14:38 flan3002, ok... problem solved then Dec 08 13:14:38 Is there a callback function for the function recreated ? Dec 08 13:15:18 aaeron: np, that flag should have been a flag :D Dec 08 13:15:37 I use holder.getSurface() on surfaceChanged Dec 08 13:17:15 made a private service, and using messenger to comunicate from the service to the client app... every configuration change the app sends a new intent with a parceled messenger... and the service maintains 1 background running always.... problem is, I hide app and reopen it works great, but if I rotate, the thread loses connection with the messenger, even though an intent is coming in and the reference is being updated I think. :'( Dec 08 13:18:27 * Mavrik hugs smellymoo Dec 08 13:18:42 Mavrik, *sobs* Dec 08 13:19:04 hmm Dec 08 13:19:14 messenger? :) Dec 08 13:20:00 you can Dec 08 13:20:09 Mavrik, to do IPC Dec 08 13:20:09 i dont think you can hold on to the reference of the thread Dec 08 13:20:34 but you can use wait/notify and just reassign the messenger smellymoo Dec 08 13:20:36 whats the problem? Dec 08 13:20:37 lasserix_, no you can't... it gets a new ref, by searching the thread group. Dec 08 13:20:57 config doesn't cause service to restart tho Dec 08 13:21:10 actually the thread is working fine... the messenger is what is killing me. Dec 08 13:21:13 smellymoo: have you tried using WeakReference and then reassigning? Dec 08 13:21:15 just use a handlerthread in the service Dec 08 13:21:31 bluecup, to be honest I don't understand you. Dec 08 13:21:47 lasserix_, for what? Dec 08 13:21:48 when the thread loses the messenger reference, just block it until the messenger is reassigned, waht's the problem? Dec 08 13:22:05 or make the thread terminate gracefully and restart it Dec 08 13:22:10 nah.... Dec 08 13:22:17 yeah then just block inside the thread Dec 08 13:22:23 until messenger is reassigned Dec 08 13:22:37 it's happy not having a reference, that doesn't matter, it's reconnecting the messenger after. Dec 08 13:22:43 (the problem) Dec 08 13:22:59 what's the problem? just block the thread until you reassign the messenger? Dec 08 13:23:15 lasserix_, that would cause problems, as it's a http connection thread. Dec 08 13:23:34 the problem is reconnecting the messenger. Dec 08 13:23:36 well dont block but do the equivalent Dec 08 13:23:43 what's your code for reconnecting the messenger now? Dec 08 13:23:51 are you using an async task or something? Dec 08 13:23:59 onstart, using an intent, it sets it... Dec 08 13:24:10 onStartCommand ?> Dec 08 13:24:16 if (intent.hasExtra("client_messenger")) client = intent.getParcelableExtra("client_messenger"); Dec 08 13:24:27 are you talking about in service or activity? Dec 08 13:24:33 service. Dec 08 13:24:35 this in the service? Dec 08 13:24:39 this is in onStartCommand? Dec 08 13:24:41 service onstart Dec 08 13:24:48 well duh Dec 08 13:24:52 yes on startcommand Dec 08 13:24:57 oh startCommand Dec 08 13:25:08 is called everytime startService is called Dec 08 13:25:25 yep. Dec 08 13:25:36 but why don't you use onBind and return the service, then have a setMessenger function? is this IPC? Dec 08 13:25:50 IPC using messenger. Dec 08 13:25:55 oh it is ipc Dec 08 13:25:58 one way, service > app Dec 08 13:26:00 yeah then dont use onStart Dec 08 13:26:05 ? Dec 08 13:26:07 use onBind Dec 08 13:26:10 why? Dec 08 13:26:18 don't need to Dec 08 13:26:29 pass the service messenger to client, then use that to let the client send the client messenger to service Dec 08 13:26:39 get an intent in, get the messenger object, done... thread is handled in oncreate. Dec 08 13:26:40 well what's the problem right now? Dec 08 13:27:02 sure, i'll say yes because why not but what's the problem with doing all this? Dec 08 13:27:07 i still dont see what the specific problem is Dec 08 13:27:11 don't need to send messages that way, only service to client. Dec 08 13:27:53 yeah well Dec 08 13:27:57 lets put in a pin in that for now Dec 08 13:27:59 the problem is that when the orientation changes, onstartcommand gets the intent, and the thread is already running, but it doesn't "reconnect" to the messenger handler Dec 08 13:28:01 what's the actual problem Dec 08 13:28:12 because the intent is empty? Dec 08 13:28:20 nope. Dec 08 13:28:26 so on orientation change, the activity will send a new messenger right? Dec 08 13:28:35 is it a cached intent maybe? Dec 08 13:28:38 yeah Dec 08 13:28:43 well Dec 08 13:28:45 no Dec 08 13:28:58 orientation change = onCreate was called = new intent Dec 08 13:29:15 does the intent in onStartCommand after orientationChange contain a messenger? Dec 08 13:29:40 yeah, on orientation change the idea is it sends an intent, the service reconnects the messenger and continues to feed info from the already running thread. (restarting it if it is not found) Dec 08 13:29:59 no i am asking you Dec 08 13:30:11 lasserix_, checked and it did, but didn't seem to match the one sent from the app (debug) Dec 08 13:31:11 works when the app is hidden then reopened, reconnects, but not when orientation changes. Dec 08 13:31:30 well when app is hidden its just onpause on resume Dec 08 13:31:36 (maybe onstart on stop) but not oncreate Dec 08 13:31:46 on config change causes on pause on stop ondestroy on create on resume Dec 08 13:31:53 (and on config change too) Dec 08 13:32:12 umm smellymoo here, use the debugger, look at the hashcodes of the messgener before and after config change in the intent in onStartCommand Dec 08 13:32:17 you can see if the intent was cached Dec 08 13:32:47 ok, am I looking for them to be the same> Dec 08 13:33:01 no Dec 08 13:33:29 1st messenger is product of first activity, AFTER config change it's a new activity (or oncreate was called again anyways) therefore the messenger should be new Dec 08 13:33:44 with alarms and setInexactRepeating, docs state: As of API 19, all repeating alarms will be inexact and subject to batching with other alarms regardless of their stated repeat interval. Dec 08 13:33:52 Mavrik: How can I get the new Surface Holder ? Dec 08 13:34:15 what is the scope of that? other alarms in the app or other third party apps' alarms? Dec 08 13:34:19 I tried this : http://sprunge.us/XFWD?java Dec 08 13:34:55 hi, i have a image with 4096x3072 , how i can reduce only max 2megabyte? Dec 08 13:35:03 Not sure, but I believe with the other apps in alarm Dec 08 13:35:57 smellymoo: you are not stopping the service on the config change right? Dec 08 13:36:11 ie the service return null for onBind and the activity does not call stopService in onPause/onStop/onDestory ? Dec 08 13:36:57 t0th_-_: you mean reduce size programatically? Dec 08 13:37:16 lasserix_, checking the hashcode now :) Dec 08 13:37:19 yes, size in bytes, kb, megabyte Dec 08 13:37:21 like, you download it and reduce the size or like you take a pic and reduce the size? Dec 08 13:37:27 smellymoo: make sure the service is not stopped by the config change Dec 08 13:37:42 lasserix_, the thread inside the service is not stopping, can't be sure about the service, guess not. Dec 08 13:38:05 lasserix_, the thread that I am running stays running. Dec 08 13:38:11 thread doesn't matter Dec 08 13:38:22 in fact if the thread doesn't stop and the service does that would probably be the problem Dec 08 13:38:33 since the service will start a new thread and the old thread will just be an artifact Dec 08 13:38:41 and might prevent the new thread from workign Dec 08 13:38:51 how do you stop the thread when the service needs to stop? Dec 08 13:39:16 aaearon: All alarms set by all apps Dec 08 13:40:18 lasserix_, hashcode seems to change. Dec 08 13:40:28 okay that's expected Dec 08 13:40:29 yes bluecup Dec 08 13:40:43 smellymoo: put a log in onDestroy of the service and see if it stops onConfig change Dec 08 13:40:53 lasserix_, nah, it finds the old thread, I wrote code for it to search the threadgroup for it. Dec 08 13:41:26 can you post that code? Dec 08 13:41:27 just curious Dec 08 13:41:31 ok... Dec 08 13:41:45 t0th_-_ try using Bitmap bitmap = Bitmap.createScaledBitmap(bmpSource, w, h, true); Dec 08 13:41:54 i was always wondering how to do that didn't know you could look it up in the threadgroup Dec 08 13:41:54 you can calculate w/h manually Dec 08 13:41:58 or use compress(Bitmap.CompressFormat format, int quality, OutputStream stream); Dec 08 13:42:24 how i can see if the bitmap created is not more than 2mega? Dec 08 13:43:38 lasserix_, http://pastebin.com/KBphbTYV Dec 08 13:44:16 t0th_-_: if you use BitmapConfig ARGB_8888, each pixel is stored on 4 bytes Dec 08 13:44:27 so you can calculate desired width/height from that Dec 08 13:44:33 to come up to 2 MB Dec 08 13:45:00 guys please help UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Lcom/orm/SugarApp; Dec 08 13:45:21 or you can use RGB_565, since it is without alpha, you can get a higher res, but possibly lower quality Dec 08 13:45:23 thanks Dec 08 13:45:27 np Dec 08 13:47:13 lasserix_, I know what it could be, how should I send the info of the messenger to the thread? I think I haven't done that right, as I just have a global variable, I guess when the service dies and then doesn't start a new thread as it detects it's already running, they are severed? so how should I send info to the thread (knowing I have a ref to it) Dec 08 13:48:50 ummm Dec 08 13:48:56 can you post your thread class? Dec 08 13:49:00 but basically Dec 08 13:49:08 best idea is to make a method like setMessenger Dec 08 13:49:18 then you can just do setMesseneger Dec 08 13:49:26 once you find it Dec 08 13:49:31 errr... Dec 08 13:49:38 think I get you. Dec 08 13:49:46 in the thread, add a method... Dec 08 13:49:51 yeah Dec 08 13:49:54 then call it from the ref I regain. Dec 08 13:50:09 from the thread ref you mean right? Dec 08 13:50:10 how does one do that? (from ref) Dec 08 13:50:13 ...... Dec 08 13:50:32 just cast it Dec 08 13:50:38 since you know it is of that type Dec 08 13:51:12 Gaulois94: there is a method Dec 08 13:51:14 getHolder Dec 08 13:51:35 and fyi a surface view IS NOT a renderer per say Dec 08 13:51:52 a surfaceview can implement renderer functionality, but a surfaceview uses a renderer Dec 08 13:52:15 lasserix_: What have I to use for implements an EGL surface from native code ? Dec 08 13:52:52 implementing* Dec 08 13:52:54 lasserix_, thanks, might be that which is the problem... but I am a java noob, will have to explain how to call the setMessenger inside my thread from a ref of the thread. Dec 08 13:53:38 smellymoo: http://pastebin.com/0VCHGtV0 Dec 08 13:53:56 Gaulois94: try phrasing that again? Dec 08 13:54:24 Sorry. Which view have I to use for handle an opengl surface from NDK ? Dec 08 13:55:45 smellymoo: http://pastebin.com/0EecB6Uy Dec 08 13:55:50 something like that Dec 08 13:56:05 smellymoo: excepti have no idea how you pass the data to the messenger currently so Dec 08 13:56:39 lasserix_, didn't subclass, added a method. Dec 08 13:56:44 Gaulois94: GLSurfaceView i believe Dec 08 13:56:48 smellymoo: what doyou mean? Dec 08 13:56:55 oh you are using inner classes in the service ? Dec 08 13:57:05 lasserix_, no. Dec 08 13:57:13 just code in runnable Dec 08 13:57:17 umm can you post your code, i wont steal your shit don't worry ;p Dec 08 13:57:22 post the runnable or whatever Dec 08 13:57:38 smellymoo: if you post the class or the relevant parts ill edit it to show you exactly what i mean Dec 08 13:57:41 lasserix_, steal it, doesn't work anyway ;) Dec 08 13:58:50 But I create myself the EGLContext Dec 08 14:00:06 Gaulois94: sorry beyond my skil level Dec 08 14:00:27 smellymoo: you going to post? Dec 08 14:00:32 lasserix_, http://pastebin.com/XCBvJYK2 Dec 08 14:01:30 smellymoo: you are using inner non-static classes so this is really easy Dec 08 14:01:48 lasserix_, I don't know what that means ;) Dec 08 14:02:51 guess I just need the 1 line of code to know how to call the setmessenger. as I really don't get this ;) Dec 08 14:03:59 smellymoo: youre thread is only a one shot thing Dec 08 14:04:05 hi. im developing an app which contains native libraries. i'd wish to install it as system app but doing so results in UnsatisfiedLinkErrors. any suggestions? Dec 08 14:04:12 once it send the messages it terminates Dec 08 14:04:29 thana you have to change out the native libraries link Dec 08 14:04:30 lasserix_: why are you still awake?! Dec 08 14:04:39 lasserix_: how? Dec 08 14:04:42 thana try and get a native dump of the unsatisified link error Dec 08 14:04:46 lasserix_, nah I cut out the loop Dec 08 14:04:58 and figure out which links are unable to be resolved and fix it Dec 08 14:05:02 smellymoo: ahh ok Dec 08 14:05:12 lasserix_, //#### is where I removed nonsense... a loop Dec 08 14:05:50 http://pastebin.com/9pujPNbR Dec 08 14:06:37 thana: at least when i ahd that problem i would get a native dump in logcat when trying to load the library which pointed to what was unable to be found which my coworker swapped out with other functions or rolled his own Dec 08 14:07:49 lasserix_, ? eh ? Dec 08 14:07:53 ? Dec 08 14:08:03 lasserix_, I'll read it again Dec 08 14:08:09 ig Dec 08 14:08:10 err Dec 08 14:08:25 delete the Messgener client public void setMess in the runnable -- you dont need it since its non-static inner class Dec 08 14:08:26 oh Dec 08 14:08:35 and Client at the top should be Messenger client not Client client Dec 08 14:08:38 also in the runn Dec 08 14:08:43 lasserix_: ok thanks, ill try my best :D Dec 08 14:08:45 fck it one second Dec 08 14:09:16 lol - ok Dec 08 14:09:27 http://pastebin.com/2HJF1KGu Dec 08 14:10:39 lasserix_, thanks for trying to help me btw, was 2 days of hair pulling. java is killing me. Dec 08 14:10:47 https://code.google.com/p/android/issues/list?can=1&q=status%3AObsolete&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars%20Modified&sort=-modified&num=1000&start=11000 check obsoletisation in live :) proof it can be human who makes all the tickets obsolete Dec 08 14:10:52 it CANNOT* Dec 08 14:10:59 line 36 may not work not sure how Messenger does equality, a better solution would be to pass a unique string or int or whatever inside the intent and compare it that way Dec 08 14:11:07 lasserix_, so sychronise is what exactly? Dec 08 14:11:32 means that get and set cannot be called at the same time, one will happen before the other ALWAYS Dec 08 14:11:59 so if the main thread calls set and the worker thread calls get you guarentee they happen one after another Dec 08 14:12:13 i dont know if it is strictly necessary here Dec 08 14:12:55 theoretically you can just do if (client != null) in the runnable, but if the onStart gets called again then it could cause issues so this guarentees the client reference will always be accessed in a safe way Dec 08 14:13:08 ie the runnable won't be using it while it's being switched Dec 08 14:13:29 lasserix_, when is setClient called? Dec 08 14:13:40 oh oops Dec 08 14:13:47 should be line 37 setClient(temp) Dec 08 14:13:51 ok. Dec 08 14:14:11 will try this and report back... thanks :D Dec 08 14:14:39 http://pastebin.com/1NJeBvr7 Dec 08 14:14:43 try this for now Dec 08 14:15:28 can you post the code before you tried changing it--the stuff that didn't work? Dec 08 14:15:30 lasserix_, wait, how does that set the thread version of client, don't understand? Dec 08 14:15:44 thread version of client doesn't matter Dec 08 14:15:51 since the runnable is non-static inner class Dec 08 14:15:57 you are directly accessing it from within the class Dec 08 14:16:01 so the thread is irrespective Dec 08 14:16:17 so then there was never any problem then! Dec 08 14:16:20 ? Dec 08 14:16:27 essentially yeah Dec 08 14:16:36 thats why i was asking can you post whatever the code was before that wasn't working Dec 08 14:16:40 then we are looking in the wrong place. Dec 08 14:16:44 well Dec 08 14:16:48 thats why i was asking can you post whatever the code was before that wasn't working Dec 08 14:16:51 as fixing no problem doesn't fix the problem. Dec 08 14:16:58 it might Dec 08 14:17:08 and also, did you verify service isn't restarted on config change? Dec 08 14:17:43 the thread is the only thing that matters, and it stays. Dec 08 14:18:13 dunno why you dont just stop and start it again Dec 08 14:18:27 also it does matter Dec 08 14:18:33 ACTUALLY it is very important that it matters Dec 08 14:18:42 because you are using a non-static reference of the runnable Dec 08 14:19:11 ie since you dig out the thread and the thread is using a runnable that is declared as a non-static inner class, it keeps a reference Dec 08 14:19:18 lasserix_, because android sucks, and I want it to stay running, as it's a tcp connection of streaming updates, stopping and starting shit for androids kinky pleasure is plain dumb for that. Dec 08 14:19:33 well Dec 08 14:19:42 the problem is that you are using non-static runnable Dec 08 14:19:54 ? Dec 08 14:20:29 non-static means its dependent on the parent class meaning it holds a reference to the parent class Dec 08 14:20:51 meaning it holds onto the service even if the service gets killed causing it to leak the service Dec 08 14:21:54 errrrrr Dec 08 14:21:57 lol Dec 08 14:23:40 lasserix_, how does setClient change anything? Dec 08 14:24:11 it doesnt Dec 08 14:24:15 well not this way anyways Dec 08 14:24:15 lasserix_, how is that setting the client within the worker class (thread) Dec 08 14:24:24 i just realized what the problem is one sec Dec 08 14:24:29 or at least the error Dec 08 14:28:16 smellymoo: here Dec 08 14:28:17 http://pastebin.com/smgyKkjf Dec 08 14:28:42 you have to abandon the runnable and just use thread since you have state information and it is not possible to retrieve the runnable inside a thread Dec 08 14:29:26 lasserix_, ooo, that might be it. Dec 08 14:29:45 yeah just send me 3 bucks to paypal account :) Dec 08 14:29:54 oops Dec 08 14:30:00 you can delete lines 42/43 Dec 08 14:30:24 might be a way to make money, tips for fixing peoples coding fuckups. Dec 08 14:30:32 fuck yeah Dec 08 14:30:56 I'll check how this works, if it fixes it, I'll hug the shit out of you Dec 08 14:31:29 smellymoo: here i fixed it up a bit http://pastebin.com/tYM9mVq7 Dec 08 14:31:33 If it doesn't, then... Dec 08 14:32:08 smellymoo: why are you doing this low level http request? why not use okhttp or retrofit? Dec 08 14:33:13 for just a json Dec 08 14:34:10 lasserix_, it is low level... Dec 08 14:34:23 socket = new Socket(InetAddress.getByName("www.tradingview.com"),80); Dec 08 14:34:49 you are just getting JSON Dec 08 14:35:04 why use this low level when you can just use okhttp or retrofit? Dec 08 14:35:47 are you streaming stock information to do picosecond trading from your phone or something? Dec 08 14:36:42 Anyone know if there is a FAB with a cirlce with a star in it>? Dec 08 14:36:43 picosecond trading hahah Dec 08 14:36:49 god damn I’m out of coffee Dec 08 14:36:57 lasserix_, it's chat Dec 08 14:37:07 yeah, futuresimple github FAB Dec 08 14:37:09 thePoosh because i told you i am unstuck from time Dec 08 14:37:13 https://github.com/futuresimple/android-floating-action-button Dec 08 14:37:14 lasserix_, a pushpipe on http, interfacing with it Dec 08 14:37:26 lasserix_: you're on IL timezone Dec 08 14:37:27 smellymoo: ahh so you are streaming Dec 08 14:38:15 bluecup: awesome thanks for this Dec 08 14:38:19 where is the star? Dec 08 14:38:45 lasserix_, Cannot cast from Thread to pushpipe.worker Dec 08 14:39:04 lasserix_, The constructor WeakReference(WeakReference) is undefined Dec 08 14:39:22 lasserix_: should be in res? isn’t it? :( Dec 08 14:39:46 smellymoo: construct is backwards probably reverse the () and <> Dec 08 14:40:02 bluecup: hehe right on the page ther ebut didn't see it in res Dec 08 14:40:08 there's nothing in res but shadow Dec 08 14:41:19 smellymoo: oops Dec 08 14:41:41 damn it :( Dec 08 14:41:48 Hello! I found some strange behaviour. I created test project. So I have relative layout as root parent and framelayout a child. When i set to child width (or height) to 2000 using LayoutParams - i see that size is changet to 800 because width of screen and root is 800. Is it regular behaviour? Dec 08 14:42:15 lasserix_: have you tried checking google’s icon pack? Dec 08 14:42:18 smellymoo: give me a second sorry i did that too quickly Dec 08 14:42:48 xgearx: is relative layout set to match_parent? Dec 08 14:42:50 then that is normal Dec 08 14:43:09 root - relative Dec 08 14:43:39 I would like to write my mercurial revision to a file Dec 08 14:43:55 xgearx: yeah, but what is the width of root? Dec 08 14:43:56 with gradle Dec 08 14:44:13 child can’t be wider than root, I’m pretty sure Dec 08 14:44:14 I have tried this, but without luck Dec 08 14:44:15 http://stackoverflow.com/questions/13920400/gradle-task-to-write-hg-revision-to-file Dec 08 14:44:25 bluecup: 800 Dec 08 14:44:32 i use mathc_parent Dec 08 14:44:58 xgearx: yeah, that is why your child gets set to 800, can’t be bigger than parent Dec 08 14:45:09 hm ... i switched to linear and everything is ok Dec 08 14:45:40 child can be as big as i want Dec 08 14:46:04 smellymoo: your coding aesthetic suck Dec 08 14:46:06 hehe Dec 08 14:47:25 lass :D Dec 08 14:48:14 lasserix_, WeakReference Dec 08 14:48:20 lasserix_, oppd Dec 08 14:48:34 lasserix_, Cannot cast from Thread to pushpipe.worker Dec 08 14:49:08 that's what I wanted to post... how can I fix that? ... got rid of the weak ref stuff, was giving me a headache. Dec 08 14:49:39 yeah yeah Dec 08 14:49:39 hold on Dec 08 14:49:39 post Dec 08 14:49:39 the logcat stack trace Dec 08 14:49:40 http://pastebin.com/ChLGqNSa Dec 08 14:49:40 no Dec 08 14:49:41 you need it Dec 08 14:49:42 here Dec 08 14:49:44 i fixed it for you Dec 08 14:49:47 look at the class Dec 08 14:49:50 and post the stacktrace Dec 08 14:49:59 ? Dec 08 14:50:08 of the error Dec 08 14:50:10 cannot cast Dec 08 14:50:13 it crashes right? Dec 08 14:50:25 it's not running, that is eclipse warning Dec 08 14:50:29 ohh Dec 08 14:50:30 fuck then Dec 08 14:50:35 look at the damn link Dec 08 14:51:01 *looking* Dec 08 14:51:15 here i fixed it http://pastebin.com/0DGVSQhe Dec 08 14:51:19 it'll resolve that error Dec 08 14:51:30 and YOU need the weak reference stuff Dec 08 14:51:33 so put it back Dec 08 14:53:13 is there a way to deploy a beta-apk to the play store? i found a gradle plugin, but it only works when you have a gradle project, which i don't. i wouldn't mind using a gradle plugin, but it would need to be able to just upload an already build .apk Dec 08 14:53:34 *by command line (was missing in my question ..) Dec 08 14:53:59 smellymoo: ? Dec 08 14:54:01 fancy42, https://support.google.com/googleplay/android-developer/answer/3131213?hl=en Dec 08 14:54:51 lasserix_, trying it Dec 08 14:56:27 Bubo, thanks, but this seems to explain how to do it manually, right? (i added to my question, that i want to do it from command line) Dec 08 14:57:11 fancy42, what do you mean? you do it through your dev console Dec 08 14:57:17 in a DrawerLayout is there a way to do something to all content except the drawer content? Dec 08 14:58:07 mattblang: the universe is a circle is center is nowhere and perimeter everywhere Dec 08 14:58:23 lasserix_ : what are you smoknig man? Dec 08 14:58:42 bluecup that's a famous quote actually, but mattblang--what's he smoking? Dec 08 14:59:12 in a__ DrawerLayout __ is there a way to do something to __ all content__ except the__ drawer__ content? Dec 08 14:59:19 lasserix_: Has Anyone Really Been Far Even as Decided to Use Even Go Want to do Look More Like? Dec 08 14:59:24 in a DrawerLayout what content is there but drawer content? Dec 08 14:59:27 oh hahaha Dec 08 14:59:47 Bubo, i want to publish my app to the beta channel automatically after a build on the build server Dec 08 14:59:48 bluecup: what the ? Dec 08 15:00:18 fancy42, you wanna automate the process? Dec 08 15:00:23 of publishing it to the beta channel Dec 08 15:00:26 lasserix_, fml...brb..life in the way of coding again Dec 08 15:00:28 smellymoo: success? Dec 08 15:00:41 Bubo, yep Dec 08 15:00:49 tried without weak ref, and it crashed, so will try your code on my return in 30min. Dec 08 15:00:57 lasserix_ When I say drawer content I mean the content that has a gravity set, thus making it a sliding drawer. Dec 08 15:01:06 you must use the weak reference or else you'll leak the service Dec 08 15:01:22 dont let it confuse you Dec 08 15:01:25 it's simple Dec 08 15:01:30 So I'd like to hide the main content when I close the nav drawer, it would be much easier to do if I could just hide all the content but the drawer itself Dec 08 15:01:32 <> is the type () is the constructor args Dec 08 15:01:39 fancy42, maybe AndroidPublisherPlugin ? Dec 08 15:01:40 just like an arraylist ! Dec 08 15:02:14 mattblang: you'd like to hide the content NOT inside the drawer layout when it slides? Dec 08 15:02:25 Bubo, thanks, i'll check it out Dec 08 15:02:35 what does it mean to call a method with arg0 Dec 08 15:02:40 lasserix_ yeah, trying to do a fade out when the drawer closes since I am waiting until the close animation is done to actually change screens Dec 08 15:02:55 mattblang: you could do this in a couple of ways Dec 08 15:03:12 get the root container of your main content and just use the sliding drawer callbacks to change its visibility Dec 08 15:03:23 lasserix_ i've done it already by creating a callback in each activity that has the drawer, but I'd love to just do it in one place from the nav drawer fragment Dec 08 15:03:33 i am trying to send the contents of incoming sms through a socket to a remote server. It works fine on the emulator, but doesn't work on device. Anybody faced this problem/ know the solution to this? Dec 08 15:03:43 add a framelayout as a child of the root container that covers up all the other content which you trigger the visiblity or opacity of (as a funciton of slide distance, for instance) Dec 08 15:04:35 lasserix_ so the animation I have working, but what I want to do is be able to implement it in one location, in the nav drawer fragment. to do this I need to be able to apply the fade out to everything except the sliding drawer (so the menu won't dissapear) Dec 08 15:04:47 CaioTorre: arg0 what are you talking about post an example Dec 08 15:05:05 well Dec 08 15:05:21 mattblang: that's not kosher--the nav drawer should call back to the activity which can set the opacity Dec 08 15:05:35 but the nav drawer shold not have directly control over the opacity of the main activity's contents Dec 08 15:05:57 lasserix_ I'm doing an activity per item architecture so I was thinking it would be okay Dec 08 15:06:00 so you could add an observer (the activity) the nav drawer calls back into (as a function of slide distance) Dec 08 15:06:04 lasserix_ when I try to set an onClickListener, Eclipse automatically completes my method with (View arg0) Dec 08 15:06:05 well Dec 08 15:06:23 either way mattblang all you need to do is get the reference of you root container for your content and pass that to nav drawer Dec 08 15:06:45 then set its opacity or use a dummy cover up view with a background as the windowbackground and then change its opaicty Dec 08 15:07:04 CaioTorre: oh that's because you are using eclipse WHY don't use eclipse you might as well use windows 95 Dec 08 15:07:50 CaioTorre: but click on the method Dec 08 15:07:55 and press shift f2 Dec 08 15:08:04 OR copy the method name and search google for its javadoc Dec 08 15:08:12 if you have this problem again, Dec 08 15:08:53 to answer your question specifically, the arg0 is a filler for what the original word was, which in this case is v. Dec 08 15:08:53 http://developer.android.com/reference/android/view/View.OnClickListener.html Dec 08 15:08:55 Is there a way to check if the Activity behind the current Activity is instanceof SomeActivity? Dec 08 15:09:13 and the View that is passed in the method parameter is the view that was clicked on Dec 08 15:09:15 lasserix_ thanks Dec 08 15:09:37 CaioTorre: and please, for the love of all things android, use Android Studio Dec 08 15:10:05 lasserix_ I'll download it asap Dec 08 15:10:54 MarkyC: you mean in the same task stack? Dec 08 15:15:57 [repost] i am trying to send the contents of incoming sms through a socket to a remote server. It works fine on the emulator, but doesn't work on device. Anybody faced this problem/ know the solution to this? Dec 08 15:18:36 I'm puzzled, I am trying to upload a new apk to google play it keeps saying:You need to use a different version code for your APK because you already have one with version code 1. Dec 08 15:18:59 Unknown0BC, that answer is so obvious Dec 08 15:19:08 how can you be puzzled Dec 08 15:19:16 I changed the version cod. Dec 08 15:19:21 to 2. Dec 08 15:19:29 it keeps saying: You need to use a different version code for your APK because you already have one with version code 1. Dec 08 15:19:35 then clean and build again Dec 08 15:19:42 I did. Dec 08 15:19:43 or you're uploading the wrong file Dec 08 15:20:01 aapt d badging Dec 08 15:20:10 will show that you're wrong Dec 08 15:20:54 How do I check the actual version code inside the apk ? Dec 08 15:21:03 the built one. Dec 08 15:21:38 Lol Dec 08 15:21:42 I think I found the problem. Dec 08 15:26:12 lasserix, after fixing a few bugs, it so far looks hopeful your solution works, now I need to research why ;) Dec 08 15:26:25 its not research Dec 08 15:26:31 did you put back the weak reference? Dec 08 15:26:39 its important, well should be anyways. Dec 08 15:26:57 anyways glad i could help Dec 08 15:27:13 donte two dollars so i may go get beer and goto the beach today :) Dec 08 15:27:40 lasserix, no wait, it broke the 1 thread only code. Dec 08 15:27:56 ? Dec 08 15:28:37 my reclaiming the thread code, now it makes a new thread for each time. meaning multiple, leaking threads. Dec 08 15:28:55 can you post the code Dec 08 15:28:57 lasserix, will look at it for a minute, and will get back if I can't figure it out. Dec 08 15:29:01 well Dec 08 15:29:04 make sure the name is correct Dec 08 15:29:17 it's not naming the threads anymore... Dec 08 15:29:24 ah Dec 08 15:29:27 so that should be easy to fix Dec 08 15:29:37 i moved the naming into the constructor Dec 08 15:29:46 but i dunno if i did it correctl Dec 08 15:29:47 OHH Dec 08 15:29:54 i know why--i deleted the constructor Dec 08 15:30:04 add a constructor to the WorkerThread and addsetname Dec 08 15:31:38 errr Dec 08 15:31:59 ok :) Dec 08 15:33:43 here Dec 08 15:33:43 http://pastebin.com/nfF9XN27 Dec 08 15:37:30 lasserix, it's ok, think I got it, trying it now... hug pending. Dec 08 15:37:51 ahh you should just pull out the thread look up code into a static method Dec 08 15:37:54 nice utility method Dec 08 15:38:57 lasserix, I am so lost when you speak :S. Dec 08 15:39:18 lasserix, not a java coder, your language is bizare to me. Dec 08 15:41:23 ? Dec 08 15:41:42 a static method is a method that does not depend on an object Dec 08 15:42:08 meaning you can always call it within the same process, no need to instance an object of the class containing the method. Dec 08 15:42:36 but i do mumble a lot so Dec 08 15:43:01 lasserix, you seem to know what you are doing... Dec 08 15:43:08 threads don't leak unless your run never finishes Dec 08 15:43:12 it works! (I think) *HUG!!!* Dec 08 15:43:32 pfn he had a non-static inner runnable holding onto a service Dec 08 15:44:11 pfn oh i see what you mean Dec 08 15:44:15 lasserix, there you go again, speaking an alien language. Dec 08 15:44:22 heh Dec 08 15:44:29 just been doing this far too long Dec 08 15:44:38 need to learn a new language,maybe python Dec 08 15:44:40 lasserix, millionare? Dec 08 15:44:45 do some pattern recognition Dec 08 15:44:51 no not yet partied too much Dec 08 15:45:05 yeah, life, always taking your money. Dec 08 15:45:12 so now i dont and just work all the time to become Dec 08 15:45:26 I live in Vietnam now, so a little money is all I need. Dec 08 15:45:58 cool Dec 08 15:46:01 where you from originally? Dec 08 15:46:10 Vietnam fairly fucking beautiful is it not? Dec 08 15:46:11 England Dec 08 15:46:20 oh wow that's a move Dec 08 15:46:23 lasserix, well, it's not bad. Dec 08 15:46:35 have you seen Vertical Rays of the Sun? Dec 08 15:46:52 lasserix, my rent is 150$ a month Dec 08 15:46:56 http://www.imdb.com/title/tt0224578/ Dec 08 15:47:14 damn Dec 08 15:47:25 same as my rent in the commune up in northern california Dec 08 15:47:42 lasserix, not yet, looking. Dec 08 15:47:50 you got a picture out your window? Dec 08 15:48:19 yeah, so android was an obvious move for a programmer that doesn't want hassle of paperwork... but I am really hating android so far. Dec 08 15:48:33 gets easier, how long you been? Dec 08 15:48:47 lasserix, nah, nothing interesting out my window Dec 08 15:48:53 what programming language "requires hassle of paperwork"? Dec 08 15:48:58 learning? about 1 month. Dec 08 15:49:22 exactly....a job I can do without paperwork in vietnam... android apps. Dec 08 15:49:37 what'd you do before? Dec 08 15:49:40 ahh Dec 08 15:49:45 yeah that's what iwant to do in the future Dec 08 15:49:49 electrician. Dec 08 15:49:58 oh cool Dec 08 15:50:01 why what do you do now? Dec 08 15:50:28 i was working at a startup they ran out of money so now i do independent contract work while developing some stuff for my portfolio whle looking for work Dec 08 15:50:48 had a bunch of jobs, computer repair, ROV pilot, electrician on a ship... never programmer... always did it for fun. Dec 08 15:50:53 problem is i left school to do startup so i really need to get my portfolio shining before I think i can get enough interest to land the interview Dec 08 15:50:59 ROV pilot? Dec 08 15:51:00 vietnam is cheap... Dec 08 15:51:09 you don't even really need a job, heh Dec 08 15:51:17 lasserix, would give you a job, your a android hero! Dec 08 15:51:28 pfn, so cheap! Dec 08 15:51:40 a couple hours of work a month and you're basically set Dec 08 15:51:41 nah i just like helping people Dec 08 15:51:42 ROV a remote control million dollar sub! Dec 08 15:51:49 oh Dec 08 15:51:50 cool Dec 08 15:52:09 pfn, my plan was to release 1 app per month and make my money like that. Dec 08 15:52:30 play store might be enough to support 2nd world living Dec 08 15:52:32 lasserix_: how is situation for developers in cali? I was thinking about moving to US when I finish college Dec 08 15:52:49 NY seems to have a better paying job market Dec 08 15:52:51 will have about 2-3 years of professional experience under my belt by then Dec 08 15:53:09 lasserix, maybe you could start a tip system? like the bitcoin tip thing (can't rem) or paypal / etc. after you help each person link them Dec 08 15:53:13 pfn: yeah, I saw that some places pay juniors about 130k in NY Dec 08 15:53:25 bluecup: lots of jobs Dec 08 15:53:43 damn Dec 08 15:53:47 130 as a junior Dec 08 15:54:08 I hate micro usb Dec 08 15:54:17 piece of shit connector fails so easily Dec 08 15:54:23 yep Dec 08 15:54:31 pfn, hoping so, want 7K$ a year... possible? Dec 08 15:54:40 pfn and they call it the wireless age Dec 08 15:54:43 smellymoo, it'll take some work Dec 08 15:54:52 pfn target 2k a month Dec 08 15:54:58 my 2nd gen moto x's micro usb port is already failing Dec 08 15:55:25 <_Auron_> I've yet to have a connector fail Dec 08 15:55:34 pfn, like doing it full time and releasing 1 app a month? Dec 08 15:55:37 damn, 2k $ per month would make me a reaaaally rich man here :) Dec 08 15:55:54 my galaxy nexus doesn't work with micro usb at all anymore Dec 08 15:55:59 I can barely plug it in to charge it Dec 08 15:56:08 and my nexus 7 keeps making disconnect sounds everytime it's plugged in Dec 08 15:56:45 I dunno about 130k for junior level, but yeah, ny is pretty inflated Dec 08 15:56:59 specialized junior level maybe Dec 08 15:57:18 like quant and financial specializations Dec 08 15:57:30 you won't get that as a general-purpose developer Dec 08 15:57:46 pfn: specialized for Android I meant Dec 08 15:57:55 android isn't specialized Dec 08 15:58:51 why do you think so? It is Java with a specific SDK/API knowledge, with it’s own set of rules and patterns… different than EE Java for example Dec 08 16:00:17 anyways, later guys, gotta go and take a break Dec 08 16:00:36 FAB take icons that are self-smybols, ie they are not in containers themselves? Dec 08 16:00:42 bluecup: thanks for the help have a good one Dec 08 16:03:56 bluecup, because android isn't specialized Dec 08 16:05:41 pfn why does firefox not allow you to specify where you download a file Dec 08 16:06:30 lasserix, because you have it set to automatically go into downloads in your preferences Dec 08 16:06:30 jesus internet explorer on windows 8 is fucked Dec 08 16:07:28 are all FAB icons circular? Dec 08 16:07:35 err are supposed to be Dec 08 16:07:37 looks like it Dec 08 16:10:31 haven't seen a non-circular FAB Dec 08 16:17:29 Hi. I have a small gradle issue. My main project (android studio) has two subprojects. ProjA has a couple of dependencies needed by ProjB. In ProjB's build file, I can use 'compile files ("../ProjA/libs/blah.jar")' but I cannot use "${rootProject.projectDir}/ProjA/libs/blah.jar" .. any idea why that might be? Dec 08 16:18:05 probably because it expands to the wrong thing Dec 08 16:18:57 pfn: how can I find that out? Dec 08 16:19:06 dunno, use an echo command or something Dec 08 16:20:15 is there a website out there that has a bunch of custom layouts for display? Dec 08 16:22:10 google image search Dec 08 16:31:13 is there a way to integrat ads into a list view? Dec 08 16:33:38 say every 10 items in a listview is an ad? that exist? Dec 08 16:34:51 ok got it http://googleadsdeveloper.blogspot.co.uk/2012/03/embedding-admob-ads-within-listview-on.html Dec 08 16:37:34 hi all, anyone using golang on Android yet? Dec 08 16:42:48 I'm adding another view programmatically within a RelativeLayout container but I get a NPE on line 16 , code here --> http://pastebin.com/iLjfcajN Dec 08 16:43:48 wtf i keep extracting google play icons and only action folder is there Dec 08 16:44:12 csst uhh Dec 08 16:44:16 When offering support to users you could write the logs to a text file, but how would users be able to access them unless they have a File Browser installed? Dec 08 16:44:21 textView1 where is that at? Dec 08 16:44:22 lass ??!!! what? :O Dec 08 16:45:04 injected with butterknife Dec 08 16:47:30 Does Butterknife not know how to inject a RecyclerView? Dec 08 16:47:37 ... Dec 08 16:47:41 android.support.v7.widget.RecyclerView cannot be cast to android.widget.AdapterView Dec 08 16:47:44 all it does is findViewById Dec 08 16:48:09 yeah, that's what I thought... Dec 08 16:48:15 just checking Dec 08 16:52:38 ok ... **now** is injected :/ Dec 08 16:54:21 so why might RecyclerView be getting cast as an AdapterView with butterknife? xml layout is using android.support.v7.widget.RecyclerView, containing fragment makes no mention of AdapterView... Dec 08 16:55:34 bah Dec 08 16:55:37 OnItemClick Dec 08 17:00:54 :P Still haven't got a lollipop update on my gen 1 moto x Dec 08 17:02:31 it's not out yuet Dec 08 17:06:25 I'm delaying updating my Nexus 7 till people stop complaining about the lags Dec 08 17:06:55 and I'm still just getting used to kitkat Dec 08 17:07:47 this stuff changes too quicki Dec 08 17:09:58 it doesn't lag Dec 08 17:10:11 but there is a system memory leak Dec 08 17:13:15 platzhirsch: you could run a intentfilter to open the log, if no activity found recomend they open it, and write hte logs anyways Dec 08 17:13:37 lasserix_: I see Dec 08 17:13:45 err Dec 08 17:13:46 sorry Dec 08 17:13:48 lack of sleep Dec 08 17:14:03 if no activity found -> recomend they download one, otherwise copy to a computer Dec 08 17:14:11 can the browser open a text file? Dec 08 17:16:51 don't think so Dec 08 17:17:06 fucking hell my computer is cursed Dec 08 17:17:41 hi Dec 08 17:18:31 hellllllooooo Dec 08 17:18:38 brought the moon shine this time shmoon? Dec 08 17:20:16 yay...I now have 24 HThreads of which only 8 are ever used in AS :) Dec 08 17:20:48 can anyone recomend an action bar icon for open/load (from) [saved/favorites] Dec 08 17:21:23 well a standard bookmark tag/card Dec 08 17:21:49 cannot see the moon tonight :D Dec 08 17:21:57 look at any application that stores fav's/bookamrks lasserix_ they all use the same thing Dec 08 17:21:59 kinda Dec 08 17:22:08 which one? Dec 08 17:22:11 Does anyone know a good way to show an EmptyView when using RecyclerView? Extra points if you have a way to work a SwipeRefreshLayout in there too Dec 08 17:22:22 oh I am looking for material specific Dec 08 17:22:33 uh ? Dec 08 17:22:44 a material spcific what ? Dec 08 17:22:59 Ankhwatcher: dump both into a container use a sizeChanged listener on recyclerview adapter toggle visibility Dec 08 17:23:05 you can plug it into whatever Dec 08 17:23:34 StingRay_: i am looking for open/load(from)[saved/favorites] icon in the style of the material theme Dec 08 17:24:20 lasserix_: so like a framelayout with two SRL as children, one with the emptyview and one with the RecyclerView? Dec 08 17:24:29 SRL? Dec 08 17:24:41 SwipeRefreshLayout Dec 08 17:24:46 oh yeah Dec 08 17:24:50 well you just use the same one Dec 08 17:24:56 but yeah that's the idea Dec 08 17:24:57 lasserix_ I fear what you want, there is no such thing ...martial is no a design standard, it's fluff, that is to say, pastel color and shadow...so I guess what you mean is you want a solid color icon ? Dec 08 17:25:09 StingRay_: yeah Dec 08 17:25:17 then do what I siad previous Dec 08 17:25:26 look at the standard for UID Dec 08 17:25:28 an SRL can only have one child, and if the list isn't it direct child it tends to screw things up Dec 08 17:25:31 which is a bookmark icon Dec 08 17:25:42 Ankhwatcher: oh okay well yeah i guess Dec 08 17:25:51 tho the empty view doesn't need SRL just need swipe Dec 08 17:26:06 ? Dec 08 17:26:08 StingRay_: nah not a bookmark icon Dec 08 17:26:24 this is for a lottery app to open favorite lucky numbers Dec 08 17:26:26 but what if someone wants to refresh from it? Dec 08 17:26:35 well there is little iconography that differentiates bookmarks and presets Dec 08 17:26:48 Ankhwatcher: frame layout with empty view has swipe gesture listener and SRL with recycler view Dec 08 17:27:42 StingRay_: i can mash something up Dec 08 17:27:49 StingRay_: was thinking trying to pull something out of http://google.github.io/material-design-icons/ Dec 08 17:27:55 StingRay_: thanks for the recomendation tho Dec 08 17:29:02 is it possible to explicitly mention the package name while sending a broadcast to a specific intent-filter action ? Dec 08 17:29:13 note package name not the broadcast receiver class name Dec 08 17:29:31 define "mention" Dec 08 17:29:39 that question is fairly vague shmoon Dec 08 17:30:03 by mention i mean if i want to send a broadcast even based on an action but only to a specific package is that possible? Dec 08 17:30:13 event* Dec 08 17:30:44 Intent intent = new Intent("intent.filter.action"); intent.setPackage("com.example.app"); sendBroadcast(intent); Dec 08 17:30:51 the setPackage part Dec 08 17:31:23 i could do setClassName, setClass, setComponent but i don't want to specify the broadcast receiver class name Dec 08 17:31:40 is using navigation cancel icon from http://google.github.io/material-design-icons/ OKAY to use instead of the content clear icon (for clearing content) ? Dec 08 17:32:11 shmoon: so you want to filter against the packagename is that it? Dec 08 17:33:52 lasserix_: ya Dec 08 17:34:16 this is for IPC ? Dec 08 17:34:23 ie its not just internal Dec 08 17:34:36 Hello ! I have a problem with my activity layout (http://pastebin.com/YaZeXxb4) : i cannot scroll my listview, except if I use the emulator and I use the keyboard keys. Any ideas ? Dec 08 17:34:37 damn google for making a content save icon (http://google.github.io/material-design-icons/) but not content open wtf Dec 08 17:34:53 talk about symmetry (since XML always goes oh you padding left make sure to pad right!) Dec 08 17:35:01 lasserix_: umm i think so yeah since other apps run in different processes Dec 08 17:35:24 you don't want to advertise the name of your receiver class? why? Dec 08 17:36:00 I just noticed the Intent class does has a setPackage method shit Dec 08 17:36:08 but I wnder if I could pass an array to it? Dec 08 17:36:24 lasserix_: if there are multiple receivers with same action thats why Dec 08 17:36:38 StingRay_: what if i turned this upside down for open? http://google.github.io/material-design-icons/content/svg/ic_archive_24px.svg Dec 08 17:37:06 lasserix_ it would look more sh*t that it does already Dec 08 17:37:28 and it already looks crap :) Dec 08 17:37:29 well if you have any ideas let me know Dec 08 17:37:40 maybe you're right bookmark thing is the way to go Dec 08 17:37:50 either a bookmark or folder with a bookmark Dec 08 17:37:55 they are uid standards Dec 08 17:38:02 except i am using a circle with a star for favorite Dec 08 17:38:05 for fav/presets Dec 08 17:38:09 ahh so folder with star Dec 08 17:38:44 cool Dec 08 17:38:45 thanks Dec 08 17:39:03 shmoon: how would there be mutliple recievers? Dec 08 17:39:10 and why not just embed the packagename in the action? Dec 08 17:39:23 ok Dec 08 17:39:46 ie getBroadcastReceiverAction(String packagename) { return action_prefix + packagename + action_suffix; } Dec 08 17:40:19 got it Dec 08 17:40:23 this guy is kickass btw http://stackoverflow.com/users/115145/commonsware Dec 08 17:40:40 half a million rep Dec 08 17:41:11 answers android only Dec 08 17:41:33 half a million should be good enough. i dont know what is the average for the most helpful people Dec 08 17:43:20 Material design is the end of history. Dec 08 17:43:37 singularity is next, then the post-singularity society. Dec 08 17:44:05 hey there, can anyone suggest a quick way to set the toolbar items to go white? I've tried so many combinations and none work, except to set the parent theme to a light version. Dec 08 17:44:30 sad to say that whatever apple do after "flat/bold" google will rename and call their own, just like this time round Dec 08 17:46:02 this is what I've set for my Toolbar http://pastebin.com/z61xUdxa Dec 08 17:46:15 do you guys like material design? Dec 08 17:46:26 initially I didn't lieke it felt like kitkat was better but now i am getting used to it Dec 08 17:46:43 it's just a copy of apples Dec 08 17:46:48 :D Dec 08 17:46:57 who were inspired by microsofts Dec 08 17:46:58 :O Dec 08 17:47:01 who wouldn't like adding an extra set of layouts to their apps Dec 08 17:47:06 * Chainfire has nothing better to do at all Dec 08 17:47:40 i like the fact material offers a lot specific metrics Dec 08 17:47:50 sup ppl Dec 08 17:47:51 incompatible compatibility libraries rock as well Dec 08 17:47:55 and the fact i can totally avoid standard UI compoentns but make it look like i am using them Dec 08 17:48:05 the heaps of xml and code required to keep something semi working from 2.1 to 5.0 is retarded Dec 08 17:48:17 like the action bar which i've forever thought is a huge fucking mistake Dec 08 17:48:23 +1 Dec 08 17:48:27 +2 Dec 08 17:48:36 +3 Dec 08 17:48:44 * StingRay_ never used ab so -1 Dec 08 17:48:47 :) Dec 08 17:48:57 but Dec 08 17:48:58 StingRay_: how? :O Dec 08 17:49:01 why put the main source of inputable action at the top of the screen away from where your fingertips are most likely at? Dec 08 17:49:08 One of our clients is trying to invite me to be an admin on the app we are working on. I made a new Google accout using my work email, and my work email is set as my primary email, but I am not seeing an invite notification. Anyone done this process before? Dec 08 17:49:09 now for material design we have toolbar which is supposed to take up 30% of the screen in a random color Dec 08 17:49:11 just stupid Dec 08 17:49:13 bluecup I use a view/toolbar fragment :) Dec 08 17:49:14 hehehe Dec 08 17:49:25 -1 for fragments Dec 08 17:49:34 but before toolbar? Dec 08 17:49:38 fucking fragments Dec 08 17:49:44 no, toolbar is not a google thing Dec 08 17:49:47 fragments have caused me lots of heartache Dec 08 17:49:49 it's a view, with icons Dec 08 17:49:52 bluecup: he rolled his own Dec 08 17:50:03 yeah, a view with button, wow, shocker Dec 08 17:50:05 sooo hard :) Dec 08 17:50:08 lol Dec 08 17:50:08 yeah fragments were a nice idea but failed, failed hard. Dec 08 17:50:13 ooh, you did it like that :) Dec 08 17:50:23 fragments....failed? Dec 08 17:50:36 instead of fragments they should of made an interface and give the interface a navigation stack to work with Dec 08 17:50:43 a presenter interface Dec 08 17:51:48 gman23: have you seen the full flow chart of the fragment lifecycle Dec 08 17:51:50 = fail. Dec 08 17:52:03 Isn't it very similar to the Activity? Dec 08 17:52:04 like git hard revert fail. Dec 08 17:52:07 no no no Dec 08 17:52:11 nooooo Dec 08 17:52:23 Oooh. Educate me Dec 08 17:52:23 fuck Dec 08 17:52:24 well, yes if you inject activity with equal parts amphetime and lsd Dec 08 17:52:35 i was about to learn about fragments, was feeling good Dec 08 17:52:42 gman23 nice way to ask for 1 on 1 tutorials Dec 08 17:52:44 let me see if i can find the diagram someone posted the other day Dec 08 17:52:45 if you took Inception, put it in Pimp My Ride and then make a combo of it with Dr. Who and Battlestar Galactica… that timeline would be like fragment lifecycle Dec 08 17:52:58 son of a Dec 08 17:53:13 https://plus.google.com/+StevePomeroy/posts/HsthxN21Yp1 Dec 08 17:53:19 lasserix_: this one? Dec 08 17:53:41 StingRay_: Is there a problem with what I asked? Dec 08 17:53:47 I'm having trouble enough just trying to sync by database with my view Dec 08 17:53:55 hehe Dec 08 17:53:56 yeah Dec 08 17:53:59 oh you were the one Dec 08 17:54:01 but yeah that's it Dec 08 17:54:14 oddalot hah everybody does Dec 08 17:54:17 oddalot: sure learn fragments Dec 08 17:54:26 add six or seven libraries, it'll work until it crashes Dec 08 17:54:38 <_Auron_> I try to avoid using fragments whenever possible Dec 08 17:54:42 oddalot: imean you can use them i just think there is much better way to do it: ie a presenter interface with a navigation backstack Dec 08 17:55:00 bluecup: much better description! Dec 08 17:55:09 that's like perfect, specially the inception comparison :) Dec 08 17:55:13 Doesn't Fragments make it easier to adapt for tablets? Dec 08 17:55:22 Everything is already working pretty well in my app, it's just I'm making sychronous calls to my database before I create my cursor Dec 08 17:55:22 brainwashed i see Dec 08 17:55:32 gman23: ideally yes, Dec 08 17:55:34 lasserix_: Can't fault me for seeking the truth Dec 08 17:55:35 I can't notice any delay, but I heard it's bad practice to block the main UI thread Dec 08 17:55:40 but it is not something you couldn't do with custom views Dec 08 17:55:53 gman23 https://plus.google.com/+StevePomeroy/posts/HsthxN21Yp1 Dec 08 17:55:54 gman23 https://plus.google.com/+StevePomeroy/posts/HsthxN21Yp1 Dec 08 17:56:05 how the fuck is that "easier" Dec 08 17:56:26 oddalot: just use async task? Dec 08 17:56:40 dont assume because it doesn't lag on your device it won't lag in the wild Dec 08 17:57:11 lasserix_: for the record, I agree that the set up is complicated. Dec 08 17:57:25 its not set up, its implementation, have you used fragments much? Dec 08 17:57:29 Yeah Dec 08 17:57:32 I was just trying to keep my view clean without adding too much boiler plate too it Dec 08 17:57:45 oddalot: big mistake Dec 08 17:57:45 Our app uses a lot of fragments. It's practically one fragment per activity Dec 08 17:57:48 I thought of using an IntentService, but I could't return a cursor through a callback Dec 08 17:57:56 you are sacrifcing reliablity for your own person ease Dec 08 17:58:00 actually Dec 08 17:58:04 oddalot: just use a async task Dec 08 17:58:05 gman23: one fragment per activity? why? Dec 08 17:58:07 there are more fragments than activities Dec 08 17:58:17 gman23: i used to be like you Dec 08 17:58:18 I tried using asych task as well, but I was getting an error somewhere Dec 08 17:58:41 probably need to try it again Dec 08 17:58:56 I use view pager, tabs, slide out menu Dec 08 17:59:39 oooh Dec 08 17:59:40 have you guys seen the StrictMode class? Dec 08 17:59:54 is that worth using for development? Dec 08 18:00:04 yep, just implemented it into one of my current projects, gonna test it out these days Dec 08 18:00:35 it was saying gridview.setAdapter is blocking Dec 08 18:00:45 oddalot: do you need onPreExecute ? Dec 08 18:01:30 Well anyways, we use fragments a lot and we're fine Dec 08 18:01:51 the thing with async task, to me - and granted I'm new to this - is that if I'm going to put all that code inside of it, why not just pull that out into it's own service? Dec 08 18:02:10 seems like I could abstract it away into it's own method you knw Dec 08 18:02:55 that way I can keep my activity (or fragment) clean, only changing the view around - keeping the logic seperate Dec 08 18:03:04 That IS a helpful image though, thank you lasserix_ Dec 08 18:03:09 saving it Dec 08 18:03:31 oddalot: why aren’t you using MVP pattern then? we decided to use it for all our development, just what you described. Dec 08 18:04:29 oddalot are you setting a cursoradapter ? Dec 08 18:04:30 I guess I am trying to do that, I'm just uncertain what android dev has defined mvp as Dec 08 18:04:45 yes, i'm using a cursoradapter from my sqlite database Dec 08 18:05:00 all that works fine Dec 08 18:05:28 oddalot id you're just doing db.query() yourself , not using loader or whatever, you should to call cursor.getCount() on the bg thread before returning the cursor to the UI thread Dec 08 18:05:58 I mean, everything works great, I'm just concerned about blocking the UI thread - obviously I can use Async task Dec 08 18:05:59 oddalot: View as an interface -> Implemented in activity / Fragment. Dec 08 18:06:06 oddalot yes, see ^^^ Dec 08 18:06:09 yeah, I was reading about loaders Dec 08 18:06:29 Presenter that calls an Interactor method to fetch data, works with the data, checks it, and then sends it to a View Dec 08 18:06:41 its like, jesus, now I'm like 8 layers deep just to create a database and show it to the screen Dec 08 18:07:06 with RecyclerView, if I implement getItemViewType(), will it automatically use that to grab the right kind of ViewHolder subclass in onBindViewHolder? Dec 08 18:07:54 new SDK tools availablle Dec 08 18:08:33 hey, are a Fragment's arguments automatically persisted alongside the instance state bundle when the fragment is stopped? Dec 08 18:08:47 orospakr i believe so Dec 08 18:09:08 OK! I haven't been able to find any documentation (or even code) that suggests that it is, to my confusion. Dec 08 18:09:52 in fact, i know so. if the system has to recreate the fragment for any reason, you'll receive the same arguments you got the first time Dec 08 18:11:37 oddalot: you still here? Dec 08 18:12:13 pasteofcode so ugly Dec 08 18:12:56 oddalot: http://pastie.org/9768296 Dec 08 18:13:03 here's a general async class you can use Dec 08 18:13:04 yeah Dec 08 18:13:17 do people have a favorite video/article on Android Chromium WebView (KitKat 4.4+) performance tips? Dec 08 18:13:23 do your cursor work in doInbackground you can modify to pass it to notifyObserver and the asynccompletelistener if you want to pass it back Dec 08 18:13:25 It looks like I can implement this LoaderManager and that works? Dec 08 18:13:38 AS 1.0.0 final Dec 08 18:13:53 hehe, not sure if final is canary XD Dec 08 18:14:06 sarbs, thank you! so, this is my weird problem, then: I'm creating a fragment, setting its arguments bundle, adding it to the fragmentmanager in my fragmentactivity, and for some reason within onResume() in my Fragment getArguments is coming up null. However, I also notice that the Fragment that comes to life has a different hashcode, so I assume that FragmentManager recreated it. Dec 08 18:14:41 I'm already using a somewhat similar pattern using IntentService I think. Dec 08 18:14:42 oddalot: what exaclty is the problem? are you using a listview to show active contents of a database, or are you fetching from a database and showing non-active contents of that database? Dec 08 18:15:11 yes, the former I think Dec 08 18:15:15 oh Dec 08 18:15:18 what exactly do you mean by active contents? Dec 08 18:15:27 then use cursorloader and cursoradapter Dec 08 18:15:34 and that'll solve yo problems Dec 08 18:15:44 you can use schematic or simplecontentprovider to generate a CP Dec 08 18:15:46 weeeee, we’re out of beta :) Dec 08 18:15:55 someone released an async cursor loader that doesn't require a CP Dec 08 18:16:05 orospakr paste up some code, definitely shouldn't be that way Dec 08 18:16:11 lasserix_ pretty easy to do yourself Dec 08 18:16:20 that’s weird…. Dec 08 18:16:23 Yeah, that's what I figured, so I just have to use cursorloader Dec 08 18:16:45 geeze, everytime I think i'm done i have to add a new layer on top haha Dec 08 18:16:54 oddalot: well anyways there's an async class you can modify instead of the asynctask Dec 08 18:17:07 at least my boss won't ever be able to understand this code Dec 08 18:17:10 lasserix_ commonsware guy did, but he discontinued it Dec 08 18:17:23 wish i could ask him why :* Dec 08 18:17:25 orospakr: do you have a non-arguement constrcutor in your fragment class? Dec 08 18:18:45 orospakr: make sure you are setting the arguements and not the create bundle Dec 08 18:21:04 g00s you want a loader for a non cp driven database ? Dec 08 18:21:11 none* Dec 08 18:21:27 StingRay_: should i use http://google.github.io/material-design-icons/file/svg/ic_folder_24px.svg or http://google.github.io/material-design-icons/file/svg/ic_folder_open_24px.svg if i add a star in the middlish or to the right for the open/load icon Dec 08 18:21:41 StingRay_: for a cp driven Dec 08 18:21:47 err as ar eplcment yeah Dec 08 18:21:54 for a sqlite driven Dec 08 18:22:26 lasserix_ netiher though if I had to the second but with a little bookmark hanging over Dec 08 18:23:09 for just a simple sqlite cursor loader you can extend AsyncTaskLoader quite easy Dec 08 18:23:11 StingRay_: i am not using bookmark because the save is done with a star Dec 08 18:23:44 lasserix_ irrelevant, you star a favourite to bookmarks Dec 08 18:23:51 star = action Dec 08 18:23:58 bookmarks = store Dec 08 18:24:13 StingRay_: so how about ? http://google.github.io/material-design-icons/action/svg/ic_book_24px.svg Dec 08 18:24:13 http://tools.android.com/ Dec 08 18:24:39 lasserix_ yeah thats good, but would use a folder rather than a book Dec 08 18:24:41 :) Dec 08 18:24:45 but thats just me Dec 08 18:24:49 there is no foder with that icon Dec 08 18:24:53 yeah i agree Dec 08 18:24:59 can you guys not use 'return' as punctuation ? Dec 08 18:25:18 StingRay_: http://google.github.io/material-design-icons/action/svg/ic_work_24px.svg if i added the bookmark thing to this would that work? Dec 08 18:25:29 g00s it's like taking breath in real life ;p Dec 08 18:25:42 lasserix_ thats like...erm...a breifcase ? Dec 08 18:25:51 oh yeah fucking tired duh Dec 08 18:26:06 g00s Dec 08 18:26:08 you don't Dec 08 18:26:11 like Dec 08 18:26:17 well-spaced out lines? Dec 08 18:26:31 well it interrupts his chatting he does so much of! Dec 08 18:26:36 ;p Dec 08 18:26:39 like 4srsly Dec 08 18:26:44 no way man, i'm chillin Dec 08 18:27:02 g00s what i really need is a script that buffers my enter keys :) Dec 08 18:27:25 finally, now I won’t see “ooh I’m not using Android Studio because it’s beta booo hoo hoo” -.-‘ Dec 08 18:28:09 lasserix_, my fragment includes no custom constructors, so just has the no-argument one inherited directly from Fragment. And yes, I'm using setArguments(), or rather, AndroidAnnotations is. I'm confirming (via getArguments()) the arguments are indeed set on my initial instance I pass into the fragmenttransaction. Dec 08 18:28:49 orospark: can we see some code? Dec 08 18:28:58 oh man, so if I want to use a CursorLoader I need to create a contentProvider? Dec 08 18:29:17 I usually use MyFragment.newInstance(Arguments here) Dec 08 18:29:23 i'm starting to think this is never going to end Dec 08 18:29:49 oddalot if you don't have all these things why do you want to use a CursorLoader in the first place? cursors kinda suck Dec 08 18:30:27 I thought you were supposed to do it this way? Dec 08 18:30:35 oddalot no Dec 08 18:30:41 I mean, I don't mind creating like a billion nested callback. Dec 08 18:30:54 you can load a cursor from sqlite by extending AsyncTaskLoader Dec 08 18:30:58 i just figured they had it set up this way so you could extend it easier later Dec 08 18:31:11 hehe oddalot yep Dec 08 18:31:20 oddalot: schematic or simplecontentprovider look em up Dec 08 18:31:39 sarbs wtf cursors don't suck loaders suck Dec 08 18:31:45 .... Dec 08 18:31:48 it all sucks Dec 08 18:31:51 haha Dec 08 18:31:55 g00s it's going to be okay Dec 08 18:32:00 its going to be okay. Dec 08 18:32:07 cursors definitely suck Dec 08 18:32:13 why? Dec 08 18:32:23 what alternative do you have anyways? Dec 08 18:32:25 i still use them though, dont trust any ORM Dec 08 18:32:26 loaders are kinda fixing a problem i didn't reeeally think existed but they can be pretty nice with the lifecycle Dec 08 18:32:48 the thign about cursors that suck is they don't handle their own allocation overflow Dec 08 18:32:53 lasserix_ i use greenDAO, i like ORMs unlike g00s and his hatred of newlines Dec 08 18:33:04 ah Dec 08 18:33:29 thought orms were based on sqlite? Dec 08 18:33:38 what i don't like about cursors is that, if you're not loading directly from the database, you've gotta take structured, strongly typed/checked data and unstructure it in order to transmit Dec 08 18:33:47 and then, usually, restructure it on the other end Dec 08 18:34:02 lasserix_ they are. what are you guys using cursors for here? Dec 08 18:34:15 well, s/sqlite/some sort of relational database/ Dec 08 18:35:03 sarbs how else would you stash data? Dec 08 18:35:15 i like having my database code be responsible for taking structured, typed data and sticking it into the db, and retrieving data from the db and giving back structured, typed data. all of the schema info thus lives in the db layer. Dec 08 18:35:18 csv and newlines Dec 08 18:36:58 http://www.pegasoft.ca/coder/coder_december_2012.html Dec 08 18:37:14 stupid reddit isn't letting me post becuase it says i'm a new user; plus i get getting 'page taking too long to load' Dec 08 18:37:32 i thought we would have flying cars by now, we just have this broken social crap and twitter Dec 08 18:37:59 oh g00s btw about the keyboard thing earlier i tested it the parser took avg 100-250 and reading sqlite took 75-200, but i am wondering if i just dump the parsed results into a text file and read that wonder if it'll be faster than 75ms Dec 08 18:38:05 g00s hahaha Dec 08 18:38:18 g00s that's because if we had had flying cars 30 years ago we'd all be dead Dec 08 18:38:40 sarbs: problem is overhead Dec 08 18:39:05 oh hrm i've been using the term ORM incorrectly, that's not what i use Dec 08 18:39:10 diff from DAOs apparently. Dec 08 18:39:12 bluecup, lasserix_, oh shoot, I'm a knob: I had a name specified in my target tag in my layout, so independently of my code interacting with the FM the fragment was getting created, without arguments! Thanks for the help anyway, guys. :) Dec 08 18:39:16 g00s you should talk to TacticalJoke and tell him his reddit client should handle crap like that ;p Dec 08 18:39:59 lasserix_ yeah, cursors do have an advantage in that they can return larger resultsets in a more "stream"-like fashion Dec 08 18:40:06 orospakr: hahah, oh well, at least it works now :D Dec 08 18:40:13 and if you're working with hundreds of rows at a time, that can become important Dec 08 18:40:34 sarbs: itsnot stream at all tho because the cursor allocates the whole fucking dataset Dec 08 18:40:41 every notice cursorwindowoverflows? Dec 08 18:40:42 but for queries on the order of dozens or smaller, which most of mine are, dao's are the way to go Dec 08 18:40:56 sarbs: ahh i see yea Dec 08 18:41:11 oh, well that sucks. i was under the impression that Cursors allowed streaming retrieval Dec 08 18:41:18 why google play app is not in emulator ? where can i get it? Dec 08 18:41:31 Play Service 6.5 is out StingRay_ , with split modules Dec 08 18:41:33 that was like the *one* advantage i saw for them lol. now i just think they're a shitty way to put loose data in a container Dec 08 18:41:46 sarbs: nah if you grab a huge table it grabs the whole damn thing up to a limit and then overflows Dec 08 18:41:52 g00s fk yeah! Dec 08 18:42:21 t2mkn you can't legally put google play in an emulator; that's the distinction that google makes between GMS-enabled devices and non-GMS enabled devices Dec 08 18:42:26 you on 10.10 yet ? they are now at *.1 ;) Dec 08 18:42:30 lasserix_ well that blows Dec 08 18:42:51 StingRay_ no, stil 10.7 heh Dec 08 18:43:01 g00s 10.7? hello 2010 Dec 08 18:43:16 StingRay_ i might upgrade just so that i can use the latest PixelMator and OmniFocus Dec 08 18:43:20 g00s I now have a 12 core mac pro :) I love it Dec 08 18:43:31 StingRay_ has it helped you release your app ? Dec 08 18:43:31 pxelmator and omnifocus? Dec 08 18:43:44 humm... x86 iso any where for virtual box or vmware Dec 08 18:43:47 g00s erm, no, well yeah...kinda I guess :) Dec 08 18:43:48 oh that mac ? Dec 08 18:44:01 StingRay_: jelly, I’m ona a mac air, gotta get a new one :) Dec 08 18:44:04 looking for x86 iso for lollipop Dec 08 18:44:42 t2mkn there should be one in the android tools Dec 08 18:45:33 today google is doing 'new all the things'. Gradle 1.0.0 final, AS 1.0.0 final, SDK tools 24, Play Service 6.5 Dec 08 18:45:42 yeah, ther eis Dec 08 18:46:31 sarbs: upto 4.3 only Dec 08 18:46:58 looking for 5 Dec 08 18:47:00 g00s in time for xmas Dec 08 18:47:16 I want a button which is an X with a semi-transparent circle around it. Is there an easy way for me to make it so that adjusting the opacity of the outer circle doesn’t make the x transparent as well? This may be a q about alpha channels in general Dec 08 18:47:50 in_deep_thought well it's a question of pixel masking Dec 08 18:48:41 if you want to use another channel and call that alpha then yeah, but no different than using 2 color index png seperate mask file and doing some bitmap modding in code I guess Dec 08 18:49:11 in_deep_thought: Check out PorterDuff http://ssp.impulsetrain.com/porterduff.html Dec 08 18:49:51 There are Android classes that make it easy to implement as long as you know what you want Dec 08 18:51:56 All kinds of fun stuff here Dec 08 18:52:12 http://www.piwai.info/transparent-jpegs-done-right/ Dec 08 18:52:22 BitmapShaders and all Dec 08 18:52:42 t2mkn it's there.. need to update your android sdk perhaps Dec 08 18:53:46 sarbs: oo its their but thats not iso and cant be installed in vmware. looking for a vmware installable Dec 08 18:53:49 http://screencast.com/t/sLQcPpt6 Dec 08 18:54:15 oh. that you'll have a harder time finding. try #android-root - this channel is about app development, not rom development. Dec 08 18:54:58 OK, so StrictMode is reporting that 'gridView.setAdapter(adapter);' blocks the UI thread, but if I put that line inside AsyncTask doInBackground it gives me an error saying: Only the original thread that created a view hierarchy can touch its views Dec 08 18:55:10 seems like a catch222 Dec 08 18:55:18 catch22 even Dec 08 18:55:32 oddalot your adapter is doing blocking work where it shouldn't Dec 08 18:55:51 sarbs: thanks. Dec 08 18:56:00 so what's the alternative? Dec 08 18:56:20 Don't do blocking work where you shouldn't Dec 08 18:56:32 oddalot setAdapter queries the adapter for the views and then puts them into the hierarchy.. you'll have to figure out how to make your adapter nonblocking (or, at least, non-strictmode-violating) Dec 08 18:57:04 I know, I understand that, that's why I asked the question. Dec 08 18:57:14 Sorry if my question was poorly worded. Dec 08 18:57:31 a common paradigm is to have the adapter return a "Loading..." cell and trigger off an asynchronous load, that updates that cell when it's complete Dec 08 18:57:38 An ADapter just has a list of items, and it returns views Dec 08 18:57:46 It doesn't load, or anything else that would block Dec 08 18:57:52 oddalot: why do you load stuff in the adapter? Dec 08 18:57:58 If it does, you're doing it wrong Dec 08 18:58:15 I'm not sure what you mean. Dec 08 18:58:30 where is 'in the adapter'? Dec 08 18:59:09 oh sry, I understood it wrong, I thought that you were loading stuff inside the adapter :) Dec 08 18:59:36 it's a simpleCursorAdapter Dec 08 18:59:55 used with a sqlite cursor Dec 08 18:59:59 and a gridview Dec 08 19:00:14 I get the values from the database, and display them to the view Dec 08 19:00:37 seems like every single app should do this in one form or another. Dec 08 19:00:52 either a database or network calls. Dec 08 19:01:04 but either way you are syncing data to your views Dec 08 19:01:19 user interacts some way, changes the data, the view updates Dec 08 19:01:32 not much more an app can do than that Dec 08 19:01:52 oddalot i think their thinking is that the db load operation should be completed before creating the adapter.. i do that for small calls, for larger ones i load it on the fly too Dec 08 19:02:23 but use the above "Loading... then cell gets updated with results" paradigm. can be more complicated because you want to make sure to abandon loads if the cell is recycled Dec 08 19:02:30 so maybe the StrictMode is just too sensitive? Dec 08 19:02:59 guess i should look into this cursorloader thing Dec 08 19:03:01 You're likely doing something wrong Dec 08 19:03:20 care to post adapter code* Dec 08 19:03:21 might be. StrictMode in your case appears to be crashing on disk access. you can set it to simply warn in that case, though i will say that sqlite isn't the fastest thing in the world - you can easily have queries take multiple seconds to return Dec 08 19:03:24 *? Dec 08 19:03:32 wrong is relative it feels like with some of this stuff, but i'll admit i'm not doing it the android way it seems. Dec 08 19:03:38 Hi Dec 08 19:03:43 So, Android Studio is out. Dec 08 19:03:45 hi mattx :) Dec 08 19:03:47 does anybody know about this error? https://gist.github.com/mparodi/57a9a89c589866380585 Dec 08 19:04:01 And they're saying we should move from Eclipse. Dec 08 19:04:08 haha Dec 08 19:04:09 it's related to the AdView or similar. it happens when i change the orientation of the screen Dec 08 19:04:10 Error 404 Dec 08 19:04:12 File not found Dec 08 19:04:26 I suppose the connection to the ads servier is lost, but I haven't found how to fix it Dec 08 19:04:30 any idea is appreciated :) Dec 08 19:04:59 I'm guessing that they didn't add JVM unit testing at the last moment? Dec 08 19:05:18 TacticalJoke: you use eclipse? Dec 08 19:05:24 Yeah. Dec 08 19:05:34 Mattx: do you unbind the service? Dec 08 19:05:40 Just for decent automated testing. :) Dec 08 19:05:43 omg we cant be friends anymore Dec 08 19:05:44 hehe Dec 08 19:05:50 Lol. Dec 08 19:05:54 why not intellij? Dec 08 19:06:04 or stop it? Dec 08 19:06:54 oddalot ill write you an asyn getView loader Dec 08 19:06:57 its pretty easy Dec 08 19:07:06 now that i think about it Dec 08 19:07:13 just use a single thread executor Dec 08 19:07:30 I've considered it. Guess I felt that, if I'm gonna move, I'll just wait for Android Studio (or IntelliJ + Gradle) to support JVM unit testing. Dec 08 19:08:05 God, it's slow typing on my phone. Even with gesture typing. Dec 08 19:08:26 I am now using voice dictation Dec 08 19:08:34 Much easier than typing Dec 08 19:08:37 Nice. Lol. Dec 08 19:08:48 I love my new Mac Pro Dec 08 19:08:49 I'm at my parents', though. Might sound really weird. Dec 08 19:09:00 an async cursor adapter is not much different than lazy loading images in a listview Dec 08 19:09:29 is cursor adapter final class? Dec 08 19:09:42 Is there any way to change background of rows in gridview(for example i want different backgrounds for different rows). Dec 08 19:09:53 I hate final classes in APIs. Dec 08 19:09:55 sure just change it in getView Dec 08 19:10:06 android studio 1! Dec 08 19:10:44 why isn't cursor adapter async? Dec 08 19:11:07 How would that work? Dec 08 19:11:09 what would be ? Dec 08 19:11:18 the cursor is the result Dec 08 19:11:27 no i mean Dec 08 19:11:27 lasserix_ i want single image for single row. Dec 08 19:11:40 getView just does an async callback to bind the data Dec 08 19:11:49 CursorAdapter is just an Adapter for a Cursor.. When you have the Cursor, you have the data Dec 08 19:11:58 ahoy. question relating to drivers - can android automatically detect and use a touch-screen without using a custom device descriptor (i.e. without having to r patch the kernel) Dec 08 19:11:59 derp yeah Dec 08 19:12:08 i guess i should think about going to sleep soon Dec 08 19:12:18 are there geometry shaders available in android/open gl? Dec 08 19:12:31 samskiter: prolly want to ask in #android-root Dec 08 19:12:35 fancy42: not yet Dec 08 19:12:41 thanks lasserix_ Dec 08 19:12:43 I become really dumb after programming all day. My brain just gives up. Dec 08 19:13:02 lasserix_, and even if it comes, it will only be supported by the new android versions / devices, correct? Dec 08 19:13:04 been smoking a lot earlier too ;p Dec 08 19:13:10 fancy42: yea Dec 08 19:13:30 While OpenGL ES 3.0 doesn't get geometry shaders, Dec 08 19:13:34 <_Auron_> TacticalJoke: I think I just hit that wall Dec 08 19:13:37 ... http://www.anandtech.com/show/6134/khronos-announces-opengl-es-30-opengl-43-astc-texture-compression-clu/2 Dec 08 19:14:08 lasserix_, thanks you very much :) Dec 08 19:14:10 TacticalJoke: I totes understand that. I’ve been at work for 10 hours now, and I’m braindrained. Like seriously, I’ve been staring at one line of code for the last 10 mins Dec 08 19:14:33 fancy42: guess it does have geometry instancing which is cool Dec 08 19:14:50 bluecup that's what adderal is for Dec 08 19:15:00 lasserix_, what does? the current or the upcoming? Dec 08 19:15:10 es 3.0 Dec 08 19:15:14 which is the latest Dec 08 19:15:20 Hi all Dec 08 19:15:23 lasserix_: man I wish adderal could be that easy to get here as it is in the US :) Dec 08 19:15:26 Hi Dr. Dec 08 19:15:56 fancy42: looks like 4.x supports es 3.0 Dec 08 19:16:13 fancy42: https://developer.android.com/about/dashboards/index.html?utm_source=ausdroid.net bottom chart Dec 08 19:16:22 bluecup: where are you? Dec 08 19:16:38 lasserix_: Croatia, if you’ve ever heard of it Dec 08 19:17:13 yeah i was talking to this girl the other day, fairly straight edge, went to a pyschatristic wanted to give her 300 30mg a month recomended taking 4 a day to start. that would literally kill most people i think Dec 08 19:17:18 Mattx: do you unbind the service? Dec 08 19:17:23 how do I? I'm not binding any service Dec 08 19:17:40 bluecup: croatia whaat's that? like somewhere near south america? Dec 08 19:18:22 If anyone can give me a hand with a ListView null value problem I'm having I'm ready to post my pastbin to you :-) Dec 08 19:18:22 or is that that island near the asian continent? Dec 08 19:18:34 drdroid post it up and stop asking to ask Dec 08 19:18:38 I'm not explicitly binding it, bluecup Dec 08 19:18:45 lasserix_: europe, to the right of italy. it’s a paradise if you’re on vacation here.. :) Dec 08 19:18:59 yeah i know where it is Dec 08 19:19:33 lasserix_, is there any direct correlation between android versions and openGL versions? like if my app requires android 3.0, can i rest assured users will have openGL x.y installed? Dec 08 19:19:54 but good idea, I could go to the doc and tell her some lack of focus bullshit story, might gimme some addies :) Dec 08 19:19:57 http://pastebin.com/NhqM26Te as soon as it hits line 86 bam no thank you maam. Dec 08 19:20:26 Mattx: oh, wait, are you starting the service yourself or? Dec 08 19:20:29 TacticalJoke the brain is actually a *serious* calorie sink, a ton of energy goes into it Dec 08 19:20:39 has anyone ever joined a developer account as an admin? Dec 08 19:20:41 you literally can physically wipe yourself out just thinking Dec 08 19:21:02 fancy42: no but you can use the manifest to filter against Dec 08 19:21:43 bluecup: tell her you can't get any work done on the computer unless you are watching television and browsing the internet at the same time ;p Dec 08 19:22:11 * bluecup takes notes Dec 08 19:22:25 lasserix_, thanks :) gotta get out the office, its half past 8 here :p Dec 08 19:22:31 lasserix_: I should just show her a screenshot of my average 40+ tabs chrome window :D Dec 08 19:22:49 fancy42: here too, where you from? Dec 08 19:22:57 germany Dec 08 19:23:43 bye :) Dec 08 19:23:45 that’s lovely… and yeah, I should get out the office too.. Dec 08 19:23:46 Ya. Dec 08 19:24:36 bluecup, I may be doing it wrongly, but here is the code more or less: https://gist.github.com/mparodi/50aeefe520f91b15079e Dec 08 19:25:09 AS 1.0 !!! Dec 08 19:26:09 (err, line 15 should be between line 13 and 14) Dec 08 19:26:57 Mattx: do you call AdView’s pause and destroy in the lifecycle methods? Dec 08 19:27:24 Hello, I'm trying to create a new project in Android Studio (I used eclipse until now), I get all sort of appcompact error in the skeleton project... any idea what's going on there? Dec 08 19:27:27 I tried. should I also call resume in onResume? Dec 08 19:27:31 I'll try again Dec 08 19:27:37 I've set the minSdk to 8 when setting up the project Dec 08 19:28:09 DrDroid : its an NPE? Dec 08 19:28:12 *at line 86 Dec 08 19:28:20 Mattx: yeah, you should, check out the docs - https://developer.android.com/reference/com/google/android/gms/ads/AdView.html Dec 08 19:29:00 oh nm the stacktrace is there Dec 08 19:29:08 Yes I know lasserix but I need to know how to fix it. Dec 08 19:29:09 DrDroid: why you sya line 86 its not line 86 Dec 08 19:29:49 drDroid nexttime post the code first so the line numbers match Dec 08 19:30:58 Well if I comment out line 86 to 108 it compiles ok. Dec 08 19:31:09 DrDroid need your main layout file Dec 08 19:31:24 drDroid if you look at the stack trace Dec 08 19:31:37 Caused by: java.lang.NullPointerException Dec 08 19:31:37 at com.example.datewithme.MainActivity.onCreate(MainActivity.java:53) Dec 08 19:31:48 that's where the error is originating from Dec 08 19:31:52 Ehh, can anyone here help me with GCM servers, and the like? Dec 08 19:32:17 I understand how GCM in general works, but like, is there an offical GCM server example Dec 08 19:32:20 Or is it all home made? Dec 08 19:32:27 DrDroid, probably your findViewById returns NULL Dec 08 19:32:43 And how do custom server calls, over http, probably in PHP turn into GCM calls on the google cloud servers? Dec 08 19:32:49 Sorry about the confusion lasserix in pastebin it's 86 in my ide it's 53. Dec 08 19:33:11 DrDroid either your listview is null or your adapter is null Dec 08 19:33:27 lasserix_, setting a null adapter doesnt give an NPE Dec 08 19:33:33 oh Dec 08 19:33:38 then you list is null Dec 08 19:33:44 DrDroid do you know how to use the debugger? Dec 08 19:33:53 and can you post your activity main . xml file? Dec 08 19:34:05 lasserix_, probably as easy as fixing the listview ID + clean/rebuild Dec 08 19:34:30 yeah Dec 08 19:34:38 he must be using eclipse Dec 08 19:34:48 See what I can do without posting the entire project :-) Dec 08 19:34:48 another reason why eclipse blows Dec 08 19:35:06 Eh, it's better than some, *looking at netbeans* Dec 08 19:35:12 I have so few issues with Eclipse. Dec 08 19:35:13 lasserix_, does AS check across files? i thought it also just lists all IDs Dec 08 19:35:14 Android studio Lasserix Dec 08 19:35:40 lasserix_, so if you have the ID defined in another layout file it doesn't throw an error Dec 08 19:35:43 when selecting the ID Dec 08 19:35:52 I think the Eclipse version that comes with the "ADT bundle" is like two years old, and this gives modern Eclipse a bad name. Dec 08 19:36:06 <_Auron_> TacticalJoke: Yeah, Luna is much better than the bundled one Dec 08 19:36:15 Yeah. Dec 08 19:36:20 <_Auron_> I recently was assisted in discovering that, perhaps you told me about it. Dec 08 19:36:30 "modern eclipse" Dec 08 19:36:47 that one of those terms like "military intelligence" or "efficient government"? Dec 08 19:36:48 eclipse and modern in the same sentence. huehuehue Dec 08 19:36:54 Eclipse is actually getting better and better. Dec 08 19:37:03 https://twitter.com/chiuki/status/535296413450506241 Dec 08 19:37:07 TacticalJoke yeah, so does 28year scotch Dec 08 19:37:30 doh nettsplit! Dec 08 19:37:34 I'm not a huge fan of Eclipse, but it's nowhere near as bad as people often say. It's improved a lot over the years. Dec 08 19:37:35 <_Auron_> XML files aren't that slow o.O Dec 08 19:37:49 <_Auron_> unless you're using like a 500mhz celeron Dec 08 19:37:59 I'm cleaning the project and seeing if that does anything :-| Dec 08 19:38:10 i like talking shit on IDEs becuase it's a victimless insult Dec 08 19:38:30 sarbs: IntelliJ/AS doesn't seem much better than Eclipse now. Dec 08 19:38:32 TacticalJoke, it's not bad at all, to each his own :) Dec 08 19:38:32 bluecup, no way, I've added .resume .pause and .destroy, and the error is the same Dec 08 19:38:40 also because i used eclipse for so long and it did a good job, tbh Dec 08 19:38:45 any other idea? Dec 08 19:38:47 Let's take refactoring. I think it's basically identical now. Dec 08 19:38:48 TacticalJoke: oh it Dec 08 19:38:58 TacticalJoke: it is much more responsive Dec 08 19:39:05 no Dec 08 19:39:15 if you change somethign in eclipse in xml you have clean it manually Dec 08 19:39:26 as/intellij picks it right up Dec 08 19:39:36 plus gradle makes life a lot easier Dec 08 19:39:38 Eclipse is way faster here. And way lighter. Dec 08 19:39:55 you haven't set up gradle correctly then Dec 08 19:40:01 but why are we doing this? Dec 08 19:40:22 TacticalJoke: same here, not way faster, but a little faster Dec 08 19:40:31 if we are going to do this let's make it " a thing " and have like a conversation / dialog event Dec 08 19:40:42 I don't believe Gradle wasn't set up correctly. Dec 08 19:40:46 where every week we can argue the merits of as versus eclipse Dec 08 19:41:01 like every tuesday at 8pm EST Dec 08 19:41:19 we only have till 9pm though Dec 08 19:41:29 The Android Integrated Development Question. Dec 08 19:41:37 darken: ;) Dec 08 19:41:40 we have to clear the room until 9:15, because the room is already booked for iphone vs android Dec 08 19:41:49 Bugger that didn't work. Dec 08 19:42:03 drdroid do you know how to use the debugger? Dec 08 19:42:13 oh weird Dec 08 19:42:14 wtf Dec 08 19:42:18 i never registered this nick! Dec 08 19:42:28 Mattx: nah, sry, I’m in my 11th hour of service, as I said before, brain dead and we don’t usually use ads in our apps so I don’t use it much Dec 08 19:42:32 Sorry alas not really still learning. Dec 08 19:42:42 hmm Dec 08 19:42:44 lasseric: you have really random nick changes Dec 08 19:42:54 lasserix: wait, are you two the same person or not? Dec 08 19:42:58 I’m confused. Dec 08 19:43:01 my brain hurts. Dec 08 19:43:02 bluecup, no problem, thanks. I'll check everything again. I don't see any diff between my code and the docs, there should be something else wrong Dec 08 19:43:14 yeah Dec 08 19:43:36 DrDroid this should be relatively easy to sort out just use the debugger and set a break point and see wahts up Dec 08 19:43:44 also verify the xml contains the proper code and Dec 08 19:47:04 ... Dec 08 19:47:15 Agreed lasserix but thanks for your input much appreciated. Dec 08 20:03:38 AS 1.0!! Dec 08 20:03:40 It's here! Dec 08 20:03:52 broken gradle build scripts rejoice! Dec 08 20:04:43 like every 30mins someone comes in and announces AS 1.0 :) Dec 08 20:05:03 I'll wait till 1.01 Dec 08 20:05:30 lool Dec 08 20:06:14 bummer that 1.1 is still based on Intellij 13 Dec 08 20:06:19 I'll announce when it supports JVM testing. :D Dec 08 20:06:39 and NDK Dec 08 20:07:08 1.1?! Dec 08 20:07:11 there's 1.1?! Dec 08 20:07:35 TacticalJoke we'll know when it gets JVM unit testing, because it will be so quiet around from you working feverishly to write those :) Dec 08 20:07:35 life is moving by too quick Dec 08 20:07:46 :D Dec 08 20:08:06 Time flies by. It worries me. Dec 08 20:08:25 soon Android will be dead Dec 08 20:08:28 lol Dec 08 20:08:33 Lol. Dec 08 20:13:32 Android is damn fun. It has it’s quirks, it can be annoying, but god dam you can do fun shit with it. Dec 08 20:14:23 if you can just figure out where that NullPointerException is coming from ... Dec 08 20:15:19 bluecup: can't wait till biofeed back devices are more mass produce Dec 08 20:17:08 lasserix: oh man, that’s gonna be awesome. shit, I can’t even wait for clients to start requesting android wear, let alone that stuff :) Dec 08 20:17:28 and as soon as I pay college tuition in 2 months, 360 is mine <3 Dec 08 20:18:11 cool Dec 08 20:18:16 you can beta test my keyboard Dec 08 20:18:33 well i gota figure out how to fit it to the round screen Dec 08 20:18:40 fits on smart watches, not round screen yet tho Dec 08 20:20:40 I can try, but I have huge ass fingers, so it’s probably gonna annoy the hell out of me :D Dec 08 20:22:18 I have activity A which starts activity B, some state (3 ints) can change in B that should be reflected in A if the user presses back: what's the best way to do this? Dec 08 20:22:53 probably finish B with a result intent, read it in onActivityResult in A Dec 08 20:24:57 yeah, override onBackPressed and finish with result Dec 08 20:25:23 or post a sticky using eventbus and clear it when you read data in A Dec 08 20:27:37 eventbus overkill Dec 08 20:27:43 so just use onActivityForResult Dec 08 20:27:51 even tho its not really for result? Dec 08 20:28:35 yeah, I’d say that..or cache it somewhere temporarily :/ Dec 08 20:29:01 Isn't the communicated state the result? Dec 08 20:30:32 no Dec 08 20:30:39 i'm not starting b for result on a Dec 08 20:30:48 i just need to reflect state change in b in a if the user goes back Dec 08 20:34:30 i’m out guys, later Dec 08 20:35:50 night Dec 08 20:38:24 hey in my manifest I have a uses-permission: android.permission.ACCESS_FINE_LOCATION followed by uses-feature: android.hardware.LOCATION and android.hardware.location.GPS, both of which have required=false Dec 08 20:38:37 anyone know why the number of supported devices would still go down? Dec 08 20:42:15 if you remove them (no other changes), the number goes back up? Dec 08 20:43:38 yep Dec 08 20:44:10 and you're using "android:required" and not just "required"? Dec 08 20:44:28 Dec 08 20:44:38 Dec 08 20:49:45 hm. try lowercase? http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions seems to have lowercase features, uppercase permissions Dec 08 20:50:52 k I'll try Dec 08 20:50:53 "If you've been using Eclipse with ADT, be aware that the ADT plugin is no longer in active development, so you should migrate to Android Studio as soon as possible." Dec 08 20:51:04 guess google not giving much of a choice Dec 08 20:51:10 That sounds a bit OTT, IMO. Dec 08 20:51:29 http://developer.android.com/sdk/index.html Dec 08 20:51:33 reached version 1.0 I guess Dec 08 20:51:38 I'm not switching for a while yet. Dec 08 20:51:47 <_Auron_> me either Dec 08 20:51:52 why not Dec 08 20:51:55 <_Auron_> I might when we start the next project Dec 08 20:52:04 JVM tests. Dec 08 20:52:06 I probably will at work in a week or two, if someone gets time to migrate our manifest-merger-based projects Dec 08 20:52:32 My spinner is consistently too narrow for items at the bottom of the list. Dec 08 20:52:39 any idea how to fix that? Dec 08 20:52:47 it's set wrap_content Dec 08 20:53:08 Groxx: that did it :) thanks for the help Dec 08 20:53:18 if I select an item once it's drawn a wider item it increases in size to allow it, but it defaults to the small items at the top of the list Dec 08 20:53:21 mdev: Eclipse supports running unit tests on the JVM with no effort. AS doesn't. Dec 08 20:53:25 bmcdermott: sweet. you're welcome, glad it worked :) Dec 08 20:54:29 Ankhwatcher: I suspect it's wrapping only to the selected value because the others don't actually exist until it's expanded, and changing the size then could be weird. how to fix: dunno. set a minWidth? match_parent? Dec 08 20:55:56 even if you get it "right", it probably won't work on all resolutions / versions due to variations in font rendering, or for people who change their default fonts, or for people who raise / lower the system font size. Dec 08 21:14:15 woah, geeze, I actually opened my window today - it's like an entire world out there I've been missing Dec 08 21:16:31 /r/outside Dec 08 21:19:49 oddalot: quick! close the window before it sucks you back in! Dec 08 21:19:54 my cats are pretty excited too: http://imgur.com/lbqAhp5 Dec 08 21:20:47 Maybe I'll head down to Mountain View since they released Studio 1.0 to mark the occasion. Dec 08 21:20:54 Google here i come!!! Dec 08 21:20:57 party in the streets? Dec 08 21:21:13 oddalot: shoulda known by your name you're a hippy Dec 08 21:21:54 haha, I just like good music. Dec 08 21:22:04 and hanging stoner tapestries Dec 08 21:22:09 plus I am a hippie too. Dec 08 21:22:20 unless you are a college student, in which case qed Dec 08 21:22:22 :) Dec 08 21:22:42 lol, actually, most of that is just the cost. It's like 30 bucks for a tapestry that covers your whole wall. I can decorate for practically nothing Dec 08 21:23:21 gee wonder why you have such a limited budge! Dec 08 21:23:37 cause i live in the bay area :( Dec 08 21:23:52 my county is actually the highest rent county in the country Dec 08 21:24:16 I don't see how nyc isn't highest rent, but ok Dec 08 21:24:18 downtown PA or something? Dec 08 21:24:25 but i'm sandwiched right inbetween google and SF though Dec 08 21:24:32 palo alto isn't a county Dec 08 21:24:38 San Mateo Dec 08 21:24:49 don't live where the rent is stupid high then Dec 08 21:25:05 it's stupid high everywhere around here Dec 08 21:25:05 what if you get payed to live where rent is stupid high? Dec 08 21:25:11 not really Dec 08 21:25:16 yeah, I totally moved here for a job. Dec 08 21:25:18 you can live in east oakland Dec 08 21:25:28 or east palo alto Dec 08 21:25:33 i actually did live in Berkeley before I moved here Dec 08 21:25:46 it's still high, even Oakland is high Dec 08 21:25:47 or the tenderloin. a different kind of stupid high. Dec 08 21:26:30 The web bootcamp i went to was in the tenderloin Dec 08 21:26:36 or right on the edge... Dec 08 21:26:50 quite an exciting place Dec 08 21:26:52 and here i was thining you were talking about meat Dec 08 21:27:40 Less like meat, more like pee. Dec 08 21:28:01 or, when you walk past a BART station: _warm_ pee. Dec 08 21:29:17 Android Studio 1.0! Dec 08 21:29:22 haha, I guess I shouldn't make fun, I actually love that area. Dec 08 21:29:37 I'm upgrading as we speak 0daym Dec 08 21:29:51 RC1.0? beta1.0? surely not release 1.0 Dec 08 21:30:10 http://android-developers.blogspot.com/2014/12/android-studio-10.html Dec 08 21:30:15 bam Dec 08 21:30:23 ooh, 1.0 is out Dec 08 21:30:25 * pfn updates his plugin Dec 08 21:30:43 Someone should make a meme about people talking about 1.0. Dec 08 21:30:48 Hmmm...I updated and it's still saying I'm at 0.8.6 Dec 08 21:31:01 Something about there being too many announcements. Dec 08 21:31:22 https://github.com/pfn/android-sdk-plugin/commit/4d1f233b1eaed3d25c74cf9fc1a22365cab283bf Dec 08 21:31:23 :) Dec 08 21:31:45 did the IJ14 add ons make it into AS 1.0? Dec 08 21:31:54 * pfn shrugs Dec 08 21:31:56 * pfn doesn't use AS Dec 08 21:31:57 pfn: don't work too hard, bro ;) Dec 08 21:32:27 much too hard Dec 08 21:32:32 oddalot, https://www.dropbox.com/s/wydajo8m7six6jj/Screenshot%202014-12-08%2023.31.16.png?dl=0 Dec 08 21:33:30 bankai_au, some updates have been harder than others Dec 08 21:34:07 0daym: Yeah i did all that and it reset, and then that same screen appeared. I'm just going to install the new one from scratch. Dec 08 21:34:16 https://imgflip.com/i/f2ol0 Dec 08 21:34:18 it's Odaym Dec 08 21:34:20 here you go Dec 08 21:34:26 you can't have a nickname starting with a number Dec 08 21:34:27 :P Dec 08 21:34:40 oh, did no know that. Dec 08 21:34:53 use nick complete Dec 08 21:34:54 win Dec 08 21:35:08 no one likes the meme? Dec 08 21:35:12 it's cool Dec 08 21:35:17 good effort Dec 08 21:35:59 hahaahahaha Dec 08 21:36:05 Does anyone have an example of a sync adapter service that depends on another service? Dec 08 21:36:08 it's funny cause it's true Dec 08 21:36:37 lasserix: Lol. Nicely done. Dec 08 21:36:59 Odaym: what's the build number on 1.0? 135.* or 139.* ? Dec 08 21:37:01 the ratio of the number of lines in the meme about the ratio of android studio anouncements is too damn high Dec 08 21:37:23 oh, wait Dec 08 21:37:35 well the patch says that by virtue of downloading it, I will then be able to update AS to 1.0 Dec 08 21:37:41 0.9.9 Dec 08 21:39:22 https://developer.android.com/sdk/index.html <-- Dec 08 21:39:24 it's done Dec 08 21:39:28 no more ADT! Dec 08 21:39:33 i should have just looked it up ... http://tools.android.com/build if anyone cares...studio-master-dev -> 14.x "This is the work for post-1.1 work" Dec 08 21:40:03 that's a Chromebook on the SDK page? Dec 08 21:40:05 it looks amazing Dec 08 21:40:07 which is a bit of a pity, 14 has some nice features that really should have made it into 1.0 release Dec 08 21:40:37 bankai_au: mine is 139.* Dec 08 21:41:21 is that AS canary or whatever it's called ? Dec 08 21:42:18 Odaym I cringe at the thought of using ADT now Dec 08 21:43:02 Why, mattblang? Dec 08 21:43:24 of course not man Dec 08 21:43:29 burn that thing since 1 year ago Dec 08 21:43:42 TacticalJoke because IntelliJ is far superior to Eclipse and Gradle is fantastic Dec 08 21:43:50 Odaym yeah, switched in about March here Dec 08 21:44:11 I prefer Vim. Dec 08 21:44:20 darned Google forcing us all over Dec 08 21:44:31 fuck the paypal confirm your identity is kind of frightening Dec 08 21:44:58 I don't like IntelliJ project management and Gradle is rumored to still not match the Eclipse build speeds. And I don't have time to convert a 100 or so projects between the two Dec 08 21:45:10 As far as I can tell, IntelliJ doesn't really do much that Eclipse can't do. Dec 08 21:45:41 Gradle is very heavy on memory use from what I've seen. Dec 08 21:45:58 cause you didnt set it up properly Dec 08 21:46:00 and slow, don't forget slow! Dec 08 21:46:06 cause you didnt set it up properly Dec 08 21:46:16 guys, we're witnessing the birth of a religious war Dec 08 21:46:18 hi all Dec 08 21:46:18 does android studio support c/c++ / Dec 08 21:46:19 ? Dec 08 21:46:25 Yes Dec 08 21:46:29 my religion is AS, please note that down Dec 08 21:46:33 where is our prophet Dec 08 21:46:34 the vanilla gradle is slow but you can configure it to doing some caching that makes it tremendously faster Dec 08 21:46:36 and obj C Dec 08 21:46:46 stefkos: not yet Dec 08 21:46:49 lasserix, I used Android Studio, IntelliJ, and command-line Gradle. What are the chances the setup was wrong every time? Dec 08 21:46:51 ok Dec 08 21:46:55 who has time to babyset their build system ? Dec 08 21:47:02 100% TacticalJoke Dec 08 21:47:08 you have to set it up once Dec 08 21:47:11 gradle that is Dec 08 21:47:30 to do its building in an optimized fashion--why it doesn't do that by default i dont know Dec 08 21:47:39 There was no problem with my Gradle setup. Dec 08 21:48:09 I guess you're talking about the Gradle daemon. Dec 08 21:48:25 TacticalJoke: again its not a problem, you have to do some configuring on how it does its build (once) and then its tremendously faster Dec 08 21:48:46 Android Studio turns on the daemon by default now. Dec 08 21:48:54 On my computer, I formatted a file as ext4 then mounted it and copied files in it. Then on my Android device, I mounted this file (loop device) and apps with root rights can view the content of the mount point, but not other apps : why ? Dec 08 21:48:56 And, yes, it was still incredibly slow after. Dec 08 21:49:09 Odaym haha! Dec 08 21:49:43 daggett: cause non root apps are very limited in what they can access Dec 08 21:49:49 Xcode for iOS is much nicer than AS for Android :( Dec 08 21:50:02 oh please Xcode is a fucking mess Dec 08 21:50:17 the only thing that's nicer is the simulator Dec 08 21:50:46 it depends really on what you're trying to do with the IDE :) Dec 08 21:51:06 there are ways of measuring these things I think Dec 08 21:51:13 AS UI is a bit of a mess. There's seven million customizable buttons when you start it up. Do I really need a cut/copy/paste in my toolbar? Dec 08 21:51:19 I think, in the future, AS will be far better than Eclipse for Android development. But to claim that is the case now is, as far as I can see, simply wrong. Dec 08 21:51:40 I just want my Vim commands darnit. Dec 08 21:51:44 it is, period Dec 08 21:51:47 it's not simply wrong Dec 08 21:51:49 Anyway, in general I'm liking AS more as I use it. It seems like it has awesome features and is just missing polish. Dec 08 21:51:52 What's better? Dec 08 21:51:52 lasserix, my goal is to make a debian chroot to mount SSHFS in this chroot then access it from all apps ... I did just that with an old Android Phone, but it does not work on my Android 4.4.2 tablet Dec 08 21:51:53 android development is unrelated to jvm unit tests Dec 08 21:51:54 Sir, are you sitting in a dark room? Dec 08 21:52:13 daggett: you should probably ask in #android-root Dec 08 21:52:18 What can AS do that Eclipse can't? Dec 08 21:52:18 as it stands right now, android studio is better than eclipse for android development, period Dec 08 21:52:30 lasserix, ok, I'll do that thanks ! Dec 08 21:52:55 TacticalJoke: include 3rd party libraries. booya! Dec 08 21:52:56 scroll 4K lines easily :) Dec 08 21:53:03 after 100 lines, you're done Dec 08 21:53:04 lasserix, pretty much Dec 08 21:53:04 It's not enough to simply claim that, pfn. Dec 08 21:53:05 can't scroll anymore Dec 08 21:53:11 eclipse can't include aar at all Dec 08 21:53:18 booya! Dec 08 21:53:19 Eclipse can do that, lasserix. Dec 08 21:53:20 simply scrolling man Dec 08 21:53:24 you have to jump through hoops anytime you want to use google play service Dec 08 21:53:24 s Dec 08 21:53:25 TacticalJoke: no it can't Dec 08 21:53:26 or appcompat Dec 08 21:53:28 or mediarouter Dec 08 21:53:37 or just about anything Dec 08 21:53:39 sorry not not include 3rd party libraries, but do it in one line Dec 08 21:53:54 you talk about jumping through hoops ismply to enable jvm unit testing Dec 08 21:53:58 which is an edge case Dec 08 21:54:01 You can use Gradle with Eclipse, can't you? Dec 08 21:54:06 TacticalJoke, you cannot Dec 08 21:54:10 booya! Dec 08 21:54:19 every single use-case in eclipse is an edge-case Dec 08 21:54:33 whereas in android studio, 90% of the use-case is normal scenario now Dec 08 21:54:43 ndk, and jvm unit tests are the edge cases currently Dec 08 21:54:46 We switched from Eclipse because it kept crashing, was slow, and just sucked Dec 08 21:54:54 Yeah, but if you need JVM testing or the NDK then using Eclipse (at least for now) is arguably better. Dec 08 21:55:04 if I need ndk, I don't use eclipse Dec 08 21:55:07 or android studio Dec 08 21:55:08 period Dec 08 21:55:08 :p Dec 08 21:55:10 In fact, it's required for the latter, I think. Dec 08 21:55:12 gradle is slow Dec 08 21:55:29 25 secs to build Dec 08 21:55:34 gradle only adds tens of seconds to build time Dec 08 21:55:45 I can't remember the last time Eclipse crashed. Dec 08 21:55:52 That's fine Dec 08 21:55:54 Well, maybe AS is better. It just annoys me that a few years back we all had to learn Eclipse (which everybody thought sucked at the time), and now it's pretty much unsupported by Google and we all need to switch to IntelliJ and some elaborate build system I couldn't care less about. Dec 08 21:55:59 I concede we switched a while ago Dec 08 21:56:01 And it's way faster than AS here! Dec 08 21:56:03 My time is valuable, and Google keeps wasting it on trivial shit Dec 08 21:56:09 What OS are you guys using, I'm on linux mint here. Dec 08 21:56:25 man I never touch gradle.. Dec 08 21:56:31 * pfn doesn't touch gradle either Dec 08 21:56:33 \o/ Dec 08 21:56:36 just drop the jar... Dec 08 21:56:37 gman: Are you comparing the "ADT bundle" with AS? Dec 08 21:56:41 Add As Library Dec 08 21:56:42 lol Dec 08 21:56:43 Chainfire, Odaym okay, well have fun sorting out mismatched dependencies problems Dec 08 21:56:45 das it Dec 08 21:56:50 The bundle features an ancient version of Eclipse. Dec 08 21:56:53 dependencies you add with 1 line Dec 08 21:56:55 das it Dec 08 21:56:58 well, gotta go! Dec 08 21:57:00 booya Dec 08 21:57:01 good luck getting better! Dec 08 21:57:04 :D Dec 08 21:57:06 adios oddalot Dec 08 21:57:10 oddalot, windows 8.1 Dec 08 21:57:12 adios Odaym Dec 08 21:57:20 peace out Dec 08 21:57:22 TacticalJoke: I'm saying that eclipse might have improved since I switched from it. Dec 08 21:57:29 windows, good lord. Dec 08 21:57:30 Totally possible Dec 08 21:57:41 Windows 8.1 here as well Dec 08 21:57:50 Job requires it Dec 08 21:57:58 what is that? Dec 08 21:58:13 If you're using AS your OS doesn't really matter. I have it installed on Windows+Mac+Linux. Dec 08 21:58:33 the font changes Dec 08 21:58:34 Yeah, I don't mind Windows anyways Dec 08 21:58:34 I mean installing git on Windows is a mild pain but other than that... Dec 08 21:58:42 Once AS supports JVM testing, I'll move, but it will be trading one set of problems for another in a way. Especially the slowness of AS on my laptop. Dec 08 21:58:50 on windows font is shit Dec 08 21:58:57 gauthierm: just use cygwin Dec 08 21:59:09 lasserix: that's my setup! Dec 08 21:59:17 TacticalJoke: sounds like your laptop is the one with the problems Dec 08 21:59:29 Nothing else has problems. Dec 08 21:59:40 gdrc thats fixable I think... at least it looks a lot better now than it used to Dec 08 21:59:40 when I was doing web developent I would just SSH into a VPS and do all my develoment there. So it wouldn't matter what OS i was using, as long as I had a terminal. Can't really do that with Android. Dec 08 21:59:41 Others have reported AS being slow, too. Dec 08 22:00:04 Chainfire, cleartype? Dec 08 22:00:38 you know eclipse is slow too Dec 08 22:00:43 Maybe there is someway to run adb remotely from a server.. Dec 08 22:00:51 Yes, but way less slow than AS on my laptop. Dec 08 22:00:55 I don't exactly remember, but I think I had to change some things in Windows settings, in/de/re-install some fonts, and change some intellij startup settings Dec 08 22:01:02 oddalot: sure, just plug in your phone on the server :p Dec 08 22:01:04 AS / gradle is definitely slower than Eclipse to build in my case. no ambiguity there - changes take several times longer to get to the "running on device" stage. Dec 08 22:01:14 (primarily small changes though) Dec 08 22:01:14 well, the server is remote Dec 08 22:01:25 (which by the way, is a great example of an hour or so wasting valuable time that could be spent on anything else but babysitting dev tools) Dec 08 22:01:26 oddalot: and set up a webcam and a remote touch robot. Dec 08 22:01:36 i mean, it is possible to compile everything command line Dec 08 22:01:46 Yes, Gradle feels like a serious memory hog here. Dec 08 22:01:52 i do plan to do that eventually Dec 08 22:01:59 gradle does use a fair amount of memory Dec 08 22:02:02 i can't stand using an ide Dec 08 22:02:11 memory is cheap these days Dec 08 22:02:15 I don't use an ide if I don't need to Dec 08 22:02:26 i'm in a terminal right now hehe Dec 08 22:02:34 on a remote server Dec 08 22:02:47 Chainfire, yeah. but don't think xcode is better. Dec 08 22:03:14 I never said that. I have used xcode for a while to try my hand at some basic iOS devving though Dec 08 22:03:28 code editing was fine, not a fan of the ui editing though Dec 08 22:03:52 Xcode does a better job at getting out of your face but a worse job at managing dependencies. The commit UI is many years ahead of AS. Dec 08 22:04:13 And, yeah, build times seem slower with Gradle. Dec 08 22:04:35 builds* Dec 08 22:05:13 Bbiab. Dec 08 22:05:29 great, my builds dont work no more Dec 08 22:05:33 Oh! Android Studio 1.0 is released! Dec 08 22:05:35 yay! Dec 08 22:05:38 stupid AS update crap Dec 08 22:05:58 ? Dec 08 22:06:22 StingRay_: which version did you update to ? Dec 08 22:06:40 fk knowns 1.0 Dec 08 22:06:47 lol Dec 08 22:06:59 My builds broke updating from gradle 1.x to 2.x but in fairness I was getting a deprecated warning for a long time before. Dec 08 22:07:04 Did updating to 1.0 break something>? Dec 08 22:07:20 "Library projects cannot set applicationId" Dec 08 22:07:25 StingRay_: may be a gradle version update that broke it. Dec 08 22:07:49 1.0 = 0.1 Dec 08 22:08:53 are you allowed to publish a game on gogoe play in alpha stage? Dec 08 22:09:05 if you state it is in alpha stage and then update it later Dec 08 22:09:10 a paid app Dec 08 22:09:11 sure Dec 08 22:09:19 its all Google does Dec 08 22:09:22 :) Dec 08 22:09:23 lol Dec 08 22:09:25 dont think paid? Dec 08 22:09:35 <_Auron_> njcomsec: you can do whatever you want as long as it doesn't violate terms like porn, stealing info, viruses, etc Dec 08 22:09:44 oh, some reason build cant find any of my library project Dec 08 22:09:49 well i cant change it from free to paid later Dec 08 22:10:11 i suppose i could release a free alpha and a seperate all of full version Dec 08 22:10:20 app* of full verison Dec 08 22:10:20 Alpha/beta test apps only show on Google Play for members of your test group who have opted-in as testers. Dec 08 22:10:31 I'm out Dec 08 22:11:26 i see... but im poor and would like paid support.... i suppose like an early access Dec 08 22:11:53 not that i expect anyone to pay me if they dont want to.... ill be honest about everything Dec 08 22:12:40 ok now lost, why the fk does everything break for me when a new version comes out Dec 08 22:12:48 like if 100 people bought my alpha version id be pretty happy Dec 08 22:13:14 applicationId is now not valid in a library project, but without that main project cant seem to fine anything in the libs path at build time Dec 08 22:15:32 Installing Android studio 1.0 now Dec 08 22:17:28 gman23 you use a library/module project ? Dec 08 22:19:11 Yeah Dec 08 22:19:15 library Dec 08 22:19:31 I'll be honest: I don't fully understand our build process Dec 08 22:19:37 and you just use compile project(':someLibModuleHere') ? Dec 08 22:20:45 gman23 you may do more than I, I'm just some artist attempting to do an app who has a failed build process everytime a new AS comes out Dec 08 22:20:56 lol Dec 08 22:23:36 intellij + sbt, works everytime for me, \o/ Dec 08 22:25:23 calendar.get(Calendar.HOUR) returns 0 for 12 am and 12 pm. isn't it strange? there should be no zero in 12-hour mode Dec 08 22:27:42 and I can't see it documented. Is it some weird standard or something? Dec 08 22:29:59 <_Auron_> icedp: I'd assume calendar returns 0-11 for 12 hour, and 0-23 for 24 hour. Dec 08 22:30:54 icedp that appears to be wrong Dec 08 22:31:53 icedp, calendar is calendar Dec 08 22:31:58 _Auron_: Yes, 0-23 is logical, but I'd never expect to see 0 in 12h mode since I never see 0 on the clock there. Maybe it's just me then Dec 08 22:32:05 icedp, who said there should be no 0 Dec 08 22:32:09 calendar is documented how it should be Dec 08 22:33:06 <_Auron_> unless it states otherwise I'm safe to assume it'd start with 0 Dec 08 22:33:23 oh wait yeah... obviously it would start at 0 Dec 08 22:33:35 and yes, it should start at 0 Dec 08 22:33:40 12.01 is the 1st min of zero hour of pm etc Dec 08 22:33:51 not yet 1hr Dec 08 22:34:12 anyone here use AS 1.0 and a library module ? Dec 08 22:34:18 I'm in real trouble here Dec 08 22:34:41 pfn: I'm not saying it should be zero, I'm just asking since the reality was not my expectations and only testing revealed that. Maybe mention of that 0 thing at Calendar.HOUR doc would help somebody like me. Anyway I'm in the country which does use 24h, so never mind me Dec 08 22:35:05 icedp, in programming, everything is 0-based unless documented otherwise Dec 08 22:35:06 lucky I have TimeMachine to just revert things, but this really gets to me Dec 08 22:40:20 TIL tnorbye is on Reddit: http://www.reddit.com/r/androiddev/comments/2oo0o1/android_studio_100_final_released/ Dec 08 22:43:03 so I'm trying to get added as an admin to our client's Play dev account, using a new Google account I made with my work email. They swear they have sent the invite, but I am seeing no email. Anyone done this process before? Dec 08 22:44:28 StingRay_: Yes, we just use compile project(':project') Dec 08 22:44:33 for dependencies Dec 08 22:44:50 gman23 and with new gradle does it find it ? Dec 08 22:44:54 Yep Dec 08 22:44:57 It's working fine Dec 08 22:45:00 ffs! Dec 08 22:45:13 You may need to update Android SDK or Gradle Dec 08 22:45:20 have done Dec 08 22:45:31 Installing the AS 1.0 seems to have installed its own sdk Dec 08 22:46:01 lol so we're all reinstalling AS today eh Dec 08 22:46:29 Well it finally released Dec 08 22:46:43 light gray as font color on dark gray backgrounds is also a good idea Dec 08 22:46:46 who needs to read, anyways Dec 08 22:46:55 I like it Dec 08 22:47:05 I like Darcula Dec 08 22:47:19 but you can change the font color, I believe Dec 08 22:47:53 my logcat is freaking out on first run of new android studio Dec 08 22:47:55 I like the overall look, but between my monitor calibration and f.lux for soft light in the evenings, the contrast is shot Dec 08 22:48:13 having a problem with the gradle sync apparently Dec 08 22:48:14 and you can change fonts Dec 08 22:48:30 someone was complaining about AS font Dec 08 22:48:35 we were Dec 08 22:48:37 pfn: well java 7 documentation mentions the moment I was confused about. Should be an updated version of what Android has atm Dec 08 22:48:44 pfn: https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html#HOUR Dec 08 22:48:47 Well the font is changeable Dec 08 22:48:51 its an issue between high dpi and intellij or whatever. strange that eclipse works fine though Dec 08 22:49:02 icedp, it looks straightforward to me, 0-11 Dec 08 22:49:07 icedp, that's what android returns, what's the problem? Dec 08 22:49:11 its not just the font, gman23, its the entire font rendering system that is somehow shot on Windows with highdpi Dec 08 22:49:23 its work-around-able, but it's still... odd. Dec 08 22:49:40 high dpi on the monitor? Dec 08 22:49:49 I've got 1080p monitors. How can I do what you're saing Dec 08 22:49:51 saying Dec 08 22:50:48 pfn: no problem, fixed my logic now. I just was expecting 1-12 and was reasoning that it would be good to add this to documentation, which is been done, as it turns out Dec 08 22:51:24 icedp, always 0-based unless explicitly documented otherwise Dec 08 22:52:04 what is the best way to create a static lookup table with information that won't change often? Dec 08 22:52:29 sqlite ? Dec 08 22:53:05 StingRay_ oh yeah, definitely sqlite. it is looking like the FTS extensions might be what I want. should I jsut do a one time raw text parse to populate I guess? Dec 08 22:53:11 Does anyone here have a OnePlus One invite? Dec 08 22:53:34 mattblang or include the actual db Dec 08 22:56:25 hey all, i have a notification that i'm showing. i've noticed that if a users presses back enough times to get the the home screen the notification disappears Dec 08 22:56:35 but if they just press the home button the notification stays Dec 08 22:56:49 what needs to be done to get the notification to persist throughout the application's lifetime? Dec 08 23:02:10 pressing back desroys your activity Dec 08 23:02:16 is it possible to send an element of an arraylist of custom objects and an mp3 file over nfc? Dec 08 23:02:30 so it's already just like you want it dcope :p Dec 08 23:04:35 I don't understand why the oneplusone needs an invite Dec 08 23:04:41 wqhat a stupid concept for getting a phone Dec 08 23:04:48 on that note, I don't even see why I'd want one Dec 08 23:06:02 They need an invite in order to build hype over their phone Dec 08 23:06:05 dont think you do need invites now Dec 08 23:06:14 they opened it now no1 is buying Dec 08 23:06:21 the website says you do Dec 08 23:06:40 odd, pretty sure it's not the case...oh....maybe was a black friday thing Dec 08 23:06:47 any news about the L update for moto g 1st gen? Dec 08 23:06:47 invites are "exclusive"... makes people think they're special when buying stuff Dec 08 23:07:22 i spent money and you can't Dec 08 23:19:49 squirrel: ah, ok. that makes sense then. i did notice that my service still runs though when back is pressed to exit the app Dec 08 23:20:27 dcope: perhapes it's the service that should be launching nitifications, then? Dec 08 23:20:53 n.b. swiping your app out of the recent apps does the same as pressing back Dec 08 23:21:25 Android design question: Dec 08 23:21:31 should I ever attempt to change the height of the action bar? Dec 08 23:21:36 or just leave it as the default Dec 08 23:21:48 no. it’s just asking for a world of pain Dec 08 23:21:52 leave it at default Dec 08 23:21:55 :) Dec 08 23:21:57 Thanks. Dec 08 23:22:03 why'd you do that matt_j D: Dec 08 23:22:19 well, unless design logic, purpose or user context dictates otherwise :) Dec 08 23:22:43 StingRay_: i remember you mentioned you developed an app with superior design Dec 08 23:22:49 may i see it already Dec 08 23:22:51 squirrel: the designs I'm being given to implement have a thicker nav bar Dec 08 23:23:13 matt_j: L has thicker action bar anyway Dec 08 23:23:19 just want for it :p Dec 08 23:23:31 squirrel: so, leave as default to keep it consistent? Dec 08 23:23:50 i vote aye Dec 08 23:23:54 squirrel: interesting, i hadn't thought about that. i have a helper class that presents the notification and i just show it when necessary Dec 08 23:23:56 squirrel superior design ? pretty sure I didn't claim that... but it's designed for purpose rather than silly guides that others normally copy to bypass actual design ;) Dec 08 23:24:01 as do aye! Dec 08 23:24:04 but it's not tied to the service now... even though that would make more logical sense Dec 08 23:24:35 squirrel fix my gradle build error and I will send you a version :) Dec 08 23:25:09 StingRay_: donwngrade that AS Dec 08 23:25:11 solved Dec 08 23:25:17 hmmm Dec 08 23:25:36 is 1.0 not supposed to be a stable release though > Dec 08 23:25:48 or just uh Dec 08 23:25:54 what's the new proguard? Dec 08 23:26:05 It is, but that doesn’t mean there’s no bugs Dec 08 23:26:42 yeah, “minifyEnabled” Dec 08 23:26:50 squirrel: is that done through PendingIntent.getService? Dec 08 23:29:15 dcope: i think my app does it in Service.startForeground() Dec 08 23:29:43 that method accepts a notification Dec 08 23:29:51 but i'm not sure Dec 08 23:30:41 squirrel: interesting.. Dec 08 23:32:25 StingRay_: what our devs did was replace http with https, Compile with JavaCompile and runProguard with minifyEnabled Dec 08 23:33:59 hah. the patch that *allows updating* to 1.x is 165mb. Dec 08 23:43:27 oooooooh Dec 08 23:43:29 NEW ICON Dec 08 23:44:15 Is there a simple way to send a string from through nfc to one android phone from another? Dec 08 23:51:31 hey guys did yall know Android Studio 1.0 is out? Also Eclipse sucks. (gets some popcorn) Dec 08 23:51:47 anyone else got error: package doesn not exist on library projects in new AS 1.0 ? Dec 08 23:51:53 mattblang_: yayy! Dec 08 23:52:22 mattblang_: it turned 1.0 days ago Dec 08 23:52:33 and it's already corrupting my files D: Dec 08 23:52:50 already stopped my development Dec 08 23:52:53 :(, I was just making a funny after all the debate I've seen today haha Dec 08 23:53:48 oh. Dec 08 23:54:01 sorry i ruined the joke :< Dec 08 23:54:17 squirrel it was a bad joke Dec 08 23:57:05 argh AS is taking 100% cpu Dec 08 23:58:29 build fails D: let's make the changes.. Dec 08 23:58:33 I would love to see that squirrel Dec 08 23:59:00 I only get 6 or so HT cores in use Dec 08 23:59:16 and 18 on standby :) Dec 08 23:59:25 18 :O Dec 08 23:59:31 * squirrel shoots StingRay_ Dec 08 23:59:43 well 24 total Dec 08 23:59:48 people should not be allowed to have 24 cores Dec 08 23:59:52 by law Dec 09 00:00:02 zero in use atm Dec 09 00:00:48 epic package does not exist Dec 09 00:01:12 no gradle, it really does and setup has not changed, only your version number Dec 09 00:01:34 project building. Dec 09 00:01:43 building building buildting Dec 09 00:02:19 i've got no idea what it's doing Dec 09 00:02:35 it's not using much cpu and there's free ram and process I/O is low Dec 09 00:03:01 i suppose there are random sleep()s in AS just to piss off users Dec 09 00:03:18 I'm about to roll back to beta Dec 09 00:03:44 hope someone with more experiance than I has my prob and is willing to share in this channel :( Dec 09 00:04:14 so what's your problem Dec 09 00:04:37 gradle doesnt know my library module exists Dec 09 00:04:47 error: package does not exist :) Dec 09 00:04:54 :\ Dec 09 00:05:26 Android Studio was unable to find a valid JVM. rughhhh Dec 09 00:06:01 still building. Dec 09 00:06:43 androind studio: bringing new meaning to “slow”. Dec 09 00:10:40 wow, gonna have to revert, will see if there are any peeps on here in 12 hours time that can maybe help Dec 09 00:19:21 StingRay_: not very descriptive on your issue. maybe next time say what library, show your gradle etc&someone maybe able to help. it no worky isnt gonna get much Dec 09 00:19:26 make a SO question Dec 09 00:20:30 whatitis I said, it was my own lib modules Dec 09 00:21:23 well single module, there are what ... 3 lines 1 to define in gradle settings, 1 to compile in main build thats it...so 2 I guess Dec 09 00:21:38 used to work, now doesnt on AS and new gradle Dec 09 00:27:11 what version of gradle worked and what version now, using 2.2.1 now? Dec 09 00:27:14 aw build finished! Dec 09 00:27:34 works just fine, including all the own modules. Dec 09 00:28:12 whatitis not sure what version I was on, previous to latest I guess Dec 09 00:32:00 calling it a night, pissed off, need sleep and clear head Dec 09 00:32:01 :) Dec 09 00:38:37 I'm trying to build a simple app where 4 phones will exchange the occasional xml file with each other, and I don't know whether I should go for WifiP2p or Bluetooth LE. The phones will be no more than a couple of metres apart, so I could go for either - are there notable differences in terms of power consumption? Dec 09 00:39:44 why not make it a couple millimeters and use nfc? ;) Dec 09 00:40:25 use speakers and mics Dec 09 00:40:30 emulate 2400 baud modem Dec 09 00:40:35 I'd give you a dollar for that Dec 09 00:40:39 if it worked Dec 09 00:40:59 Flonk: youll want to use bluetooth Dec 09 00:41:02 Chainfire: Oh god, that would be amazing Dec 09 00:41:07 Chainfire: i've tried it, actually. too much noise to do 2400. 300 is fine, but utterly and completely useless. Dec 09 00:41:21 lewellyn: not an option unfortunately :P Dec 09 00:41:32 lasserix: Okay, I figured... Thanks! Dec 09 00:41:37 Flonk: it'd semi-magically do the bt for you :D Dec 09 00:42:20 did you guys see http://chirp.io/faq/? Dec 09 00:42:34 use that and just play synethsized 2400 sounds Dec 09 00:43:10 Flonk: what about classic bluetooth? Dec 09 00:43:32 lasserix: crazy. Dec 09 00:43:32 but does it sound like the 90s Dec 09 00:44:10 p_l: Don't know, it just seemed like bluetooth low energy would be more energy efficient than classic bluetooth Dec 09 00:44:45 lasserix: see, i was trying to do actual modem transfers between two devices set on top of each other using software and speakers and mics. modern acoustic coupling! :D Dec 09 00:44:46 Flonk: make BT-LE an option then (i.e. if BT-LE not found/operational, fallback to BT, etcc) Dec 09 00:45:09 mIRC takes so long to realise my Internet connection went down. Dec 09 00:45:37 D: Dec 09 00:45:42 TacticalJoke: try weechat. Dec 09 00:46:35 p_l: Yep, that sounds like a plan Dec 09 00:46:42 Does it run in a terminal? Dec 09 00:47:29 yup Dec 09 00:47:54 and it also has a nice android client cowritte by yours truly :p Dec 09 00:48:53 so if we find bugs, should we bring them to you here? Dec 09 00:49:26 I haven't actually looked at weechat's homepage. sounds interesting. Dec 09 00:49:35 (haven't until now, that is) Dec 09 00:50:00 all you need is irssi, icb and irssi notifier ;) Dec 09 00:50:10 ew irssi Dec 09 00:50:50 squirrel: if i present a notification from a service, is it possible to still have tappable buttons in the notification? Dec 09 00:50:58 Groxx: there are github pages tho Dec 09 00:51:02 it seems that since moving the notification to my service buttons can no longer be tapped Dec 09 00:51:04 ewweechat :P Dec 09 00:51:23 dcope, tappable buttons are not a function of where the notification originated Dec 09 00:51:35 dcope: uh, well, i never tried to make any buttons i see no reasons why you wouldn't be able to Dec 09 00:52:09 pfn: yeah that's what i assumed but this is odd Dec 09 00:52:16 quit doing it wrong Dec 09 00:52:19 :p Dec 09 00:52:28 hehe Dec 09 00:53:34 works fine for me Dec 09 00:54:16 Zharf: using remote views and setOnClickPendingIntent ? Dec 09 00:54:59 yep Dec 09 00:55:24 works fine for me as well Dec 09 00:55:31 and I sent notifications and widgets from everywhere Dec 09 00:56:11 yeah it used to work fine Dec 09 00:56:21 so? Dec 09 00:56:22 until i started using startForeground Dec 09 00:56:23 you're doing it wrong Dec 09 00:56:31 clearly, you don't handle the intent Dec 09 00:56:32 pfn: clearly, but im having trouble tracking down where :P Dec 09 00:56:35 how do you expect it to work Dec 09 00:56:55 why don't you look at your intents you're attaching and your handlers for it Dec 09 00:57:15 pfn: i did, i put breaks in the listener (that extends BroadcastReceiver) Dec 09 00:57:45 and how is this receiver registered... Dec 09 00:57:48 hmmm. Android Auto simulators in SDK manager... Dec 09 00:57:49 did you attach broadcast intents Dec 09 00:57:54 It seems pretty easy to support multireddits. Not sure why so many Reddit clients don't support the feature. Dec 09 00:57:58 so many stupid questions that you are intentionally leaving blank so you waste our time :p Dec 09 00:58:04 squirrel: I don't suppose there are any cheap + trustworthy weechat relay hosts out there I could use? having an android client that can catch up with stuff that happened while the phone was disconnected sounds great. Dec 09 00:58:04 * pfn leaves Dec 09 00:58:07 It's not hugely different from supporting browsing a subreddit. Dec 09 00:58:09 pfn: :( Dec 09 00:58:29 pfn, come on, are you saying we have something better to do? Dec 09 00:58:40 well... it is 3 in the morning so I guess I should sleep... Dec 09 00:59:31 For some reason, I like creating a new BaseAdapter subclass. Dec 09 00:59:38 It's like "This time, I'll make it perfect!". Dec 09 00:59:43 Blank slate. :D Dec 09 01:00:01 Then again, I try to make the existing code perfect too. Just the blank slate is nice. Dec 09 01:00:12 TacticalJoke: heh. there is something about BaseAdapter that begs to be improved... Dec 09 01:00:23 like what Dec 09 01:00:32 Groxx: uhh hosts? Dec 09 01:00:39 as in vps? Dec 09 01:01:00 squirrel: yeah, basically. since renting a vps just to run this is a little excessive. Dec 09 01:01:07 i'm using a raspberry pi here Dec 09 01:01:10 :) Dec 09 01:01:12 although they did provide a new adapter with recycleview Dec 09 01:01:13 so i have no idea Dec 09 01:01:20 even if nothing was registed, wouldn't it still break in onReceive in my BroadcastReceiver class? Dec 09 01:01:35 heh. well, my brother is trying to get me into raspi, maybe this'll push me to it. Dec 09 01:01:41 Hey! Dec 09 01:01:49 Is there anybody alive in here? :) Dec 09 01:01:56 nope Dec 09 01:02:00 hehe Dec 09 01:02:05 Only the alive ones will be able to answer that question. Seems a bit biased. Dec 09 01:02:33 anyone having issues with their Wear emulator? Dec 09 01:02:57 I've created a simple widget and wants it to pop up a configuration activity when adding to the screen Dec 09 01:02:59 dcope: if it's not registered, it won't be called…. though I may be misinterpreting that sentence. Dec 09 01:03:15 But I've followed different guides and tried alot of stuff without getting it to pop up Dec 09 01:03:38 Is there any specific thing that I have to touch/do in the OS to make it pop up? Dec 09 01:04:36 sorry, too dead to help. and I've never touched widgets. Dec 09 01:05:04 aceus all you do is set something in the meta information in the XML file that defines thew idget Dec 09 01:05:21 in the manifest? Dec 09 01:06:03 umm Dec 09 01:06:05 android:configure="com.example.android.ExampleAppWidgetConfigure" Dec 09 01:06:07 Dec 09 01:06:07 you add this line Dec 09 01:06:13 to the res/xml/ file Dec 09 01:06:18 that the manifest points to Dec 09 01:06:28 Adding the AppWidgetProviderInfo Metadata http://developer.android.com/guide/topics/appwidgets/index.html Dec 09 01:09:18 hm Dec 09 01:09:38 I have a ViewPager containing fragments. Is there a way to temporarily move one fragment or disable the middle few fragments without destroying them? Basically, I want to temporarily have two of the fragments next to each other spatially. ing Dec 09 01:09:43 Shall I name it AppWidgetProviderInfo.xml ? Dec 09 01:09:45 - ing.* Dec 09 01:10:41 name what? Dec 09 01:11:49 no uppercase iirc Dec 09 01:18:13 lasserix : I solved it using android:configure="com.example.android.ExampleAppWidgetConfigure" Dec 09 01:35:37 Hmm. So I'm about to do some text parsing relating to Reddit comments. Should I be using String.codePointAt instead of String.charAt (and so on)? Dec 09 01:36:03 I'd imagine it depends on the parsing. generally I'd say yes, because UTF Dec 09 01:36:34 Okay. Dec 09 01:36:40 I guess I should worry about this stuff. Dec 09 01:37:28 what kind of parsing are you thinking? Dec 09 01:38:44 Well, for starters, I'm gonna have to do stuff such as removing unwanted whitespace. Dec 09 01:38:51 I notice a lot of Reddit comments have \n\n\n\n\n\n at the end. Dec 09 01:39:03 Guess users manually enter those. Dec 09 01:39:51 I guess I just wanna decide upon UTF handling right at the beginning, really. Dec 09 01:40:14 I mean "Unicode handling". Dec 09 01:49:59 urf-8 Dec 09 01:50:09 not much of a choice Dec 09 01:51:13 hi, i have a problem— howto run a apk under android system(just linux?) using c/c++ code? Dec 09 01:52:02 not use android sdk, just c or c++ Dec 09 01:52:07 wens07: er. do you want to launch an apk on a device when you're running linux? or do you want to make an APK which includes C/C++ code? or something else? Dec 09 01:53:28 i am writing an application, i use libcurl download an apk, install it; now i encounter the problem, how to run it ? Dec 09 01:53:40 just launch the apk Dec 09 01:54:20 wens07: use ADB: http://www.android.pk/blog/general/launch-app-through-adb-shell/ Dec 09 01:55:36 i known this command? but this commandline app just run under android? it’s no adb? Dec 09 01:55:49 isn’t it? Dec 09 01:56:11 do you want to launch the downloaded apk from another app on the device? Dec 09 01:57:10 this might cover that: http://stackoverflow.com/questions/3872063/launch-an-application-from-another-application-on-android Dec 09 01:57:40 as i just said, i writing a android(linux) deamon commandline application, it just download an apk, then install it; run it Dec 09 01:58:39 ah. not sure, sorry. there's probably an NDK version of that code, otherwise I dunno. Dec 09 01:58:56 i already search it on stackoverflow, but i found, this is using sdk/java? Dec 09 01:59:48 have the c++ pgm issue a system exec to shell the adb execute command-ish? Dec 09 02:00:00 mmmm ... Dec 09 02:00:03 i just using ndk standalone toolchain to compile the c/c++ code, the app is just using c/c++ Dec 09 02:00:39 en, i first using exec functions to run it Dec 09 02:00:57 but it returns -1, permission denied Dec 09 02:01:06 yah, thats the next trick Dec 09 02:01:11 i using shell to change the mode Dec 09 02:01:14 need root Dec 09 02:01:39 but it also return an error, “Text file busy” Dec 09 02:02:08 i use root previlege in the shell script to change the apk permission, Dec 09 02:02:27 and, in shell, i found the permission is changed successfully Dec 09 02:03:06 but use exec is just return “text file busy” Dec 09 02:03:15 what’s the problem, guys Dec 09 02:08:04 google around ... for ex; http://stackoverflow.com/questions/16764946/what-generates-the-text-file-busy-message-in-unix Dec 09 02:19:28 en, “Text file busy” is like some other process using the file, i’ll check around to see the problem, thanks capella and Groxx Dec 09 02:20:22 good luck ... you're charting interesting territory ;) Dec 09 02:21:22 clearing the FLAG_TRANSLUCENT_STATUS flag from the window dynamically seems to push my ActionBar toolbar down Dec 09 02:21:48 is that good? Dec 09 02:22:26 no Dec 09 02:22:44 ActionBar toolbar should stay in the same place as it was before. Dec 09 02:23:44 * capella-s3 gauging the appropriate emotional response Dec 09 02:27:05 alexfu: I think that's normal, actually. you're expected to draw something behind it with flag_translucent_status (if I'm remembering correctly, and that's the pre-lollipop flag) Dec 09 02:27:12 normal and sucky, to be clear Dec 09 02:28:08 ive got a weird bug now. when i push back a few time to close my app, the notification stays and i tap on it and the last activity appears. but when i try to go back again the app just closes. is there a way to keep the app running like google music does? Dec 09 02:31:28 dcope the app uses a service Dec 09 02:33:52 lasserix: i have a service too Dec 09 02:33:59 which is what is showing the notification Dec 09 02:35:37 dcope: since the notification has to create a new stack, you just need to create a pending intent which includes the back stack you want Dec 09 02:36:36 really easy method is to use PendingIntent.getActivities. I think there's also a TaskStackBuilder class or something. Dec 09 02:37:15 capella and Groxx: i found other process that use the apk, but use the exec to execute the apk file, it is the error “Segmentation fault” Dec 09 02:37:35 it’s like the exec cannot execute an apk file ? Dec 09 02:38:46 I have no idea how you're joining the two packages ... but guess you can't exec one from another due to Android limitations Dec 09 02:39:27 What the heck are you trying to achieve in the first place has me confusued :/ Dec 09 02:41:04 Groxx: ah you have to give it an array of intents Dec 09 02:41:46 Groxx: do you have to give it actual instances of the activities? Dec 09 02:41:59 capella: now i just test the simple function, just use c/c++ code to download an apk file, install it, run it; but the problem is happen at run stage; i cannot found a method to run it using c/c++ or shell script Dec 09 02:42:23 dcope: nope. you give it intents to launch those activities. when you hit back from the top-most one, it'll launch the next one "down" the stack Dec 09 02:44:08 wens07 Youre working around android security ... when you want an app that can download install and execute apks Dec 09 02:44:52 So like I said, why do you need that abstraction? Dec 09 02:45:48 capella: what can i say? it just a task that manager give me? Dec 09 02:46:08 Random virus injection? :p Dec 09 02:48:33 capella: O:) , sigh, i cannot found the solution Dec 09 02:48:51 Get me a left handed monkey ranch Dec 09 02:49:03 er, wrench ;) Dec 09 02:50:56 left handed monkey ranch? what’s this mean, english is not my native language Dec 09 02:51:32 It's what we tell new guys to keep them busy with impossible tasks while we get real work done Dec 09 02:54:07 we should leave it as "ranch". making a ranch full of only left-handed monkeys sounds hard. Dec 09 02:54:13 if you can do that, you can do anything Dec 09 02:54:19 Groxx: any ideas on how to fix it? Dec 09 02:54:29 he's banished to the left handed monkey ranch ! Dec 09 02:55:12 Lame, anyone know if there's a support library changelog/commit log when they update it? I have no idea whats different between 21.0.0 and 21.0.2 Dec 09 02:55:33 alexfu: if it's what I think it is, I think you have to add padding or something to the actionbar. it's probably pretty googleable, translucent status bar + actionbar is a fairly frequently attempted combination. Dec 09 02:55:59 hwrdprkns: not that I'm aware of. AOSP repo + git diff is the only way I've seen Dec 09 02:56:19 Groxx: wouldnt add padding push it down more? Dec 09 02:57:10 either way, i tried searching for it. got nothing Dec 09 02:57:39 ah, right, you said it was pushing it down. if it's added in xml, does it not push it down? and yeah, I would expect padding to push it down - I might be thinking of something else **** ENDING LOGGING AT Tue Dec 09 02:59:58 2014