**** BEGIN LOGGING AT Wed Mar 11 02:59:58 2015 Mar 11 03:00:24 groxx, would you know how to do it programmatically? Mar 11 03:02:54 i.e if i know that its only the item in the recyclerview, make it fill it out Mar 11 03:04:36 desmin88: modify the layout manager, or add a view to the parent layout so it displays over the RV, or hide/replace the RV with the other view. Mar 11 03:04:58 or use listview, which has an "empty" view built in Mar 11 03:13:04 Hey guys, in my app I need users phone numbers. From what I've read, there is no "reliable" way to gather phone number information aside from asking the user to input their phone number. Is this correct? Mar 11 03:14:04 yeah Mar 11 03:15:53 Alright. So then next question (and this may be trivial): The account registration process in my app right now requires the user to input a .edu email address to verify they are a student. Should I get their phone number before, during, or after the email collection? Mar 11 03:16:12 during? Mar 11 03:16:57 Well, I would put them on the same screen Mar 11 03:17:09 sure Mar 11 03:17:24 and then I think use GCM to send to the device whether or not the activation of that particular component was successful Mar 11 03:17:39 t0astt: a) definitely a fair number of devices where you can't get the number. like, 10%+ globally, maybe quite a bit higher. Mar 11 03:17:54 t0astt: b) eh, whenever. fewer steps is usually better. Mar 11 03:18:34 groxx: alright. Uh, is SMS validation fairly easy? Mar 11 03:19:04 t0astt: when it works ;) Mar 11 03:19:08 Actually, what would be slick is if I could do it like Google does 2FA in Lollipop when you first setup the device Mar 11 03:19:17 how it automatically listens for the 2 factor SMS Mar 11 03:19:50 building an sms-based verifier with twilio is simple, getting it working reliably is fundamentally impossible Mar 11 03:20:08 Is twilio for sending the sms? Mar 11 03:20:29 so pick how much work it's worth, build up to that point. Mar 11 03:20:33 t0astt: yeah Mar 11 03:20:55 they're a big one, I've used it a few times, very easy api Mar 11 03:21:00 Ok. Mar 11 03:21:12 So I'm thinking the process would be this Mar 11 03:22:15 User enters phone number -> phone number is sent to my web service -> phone number is parsed, finaggled with twilio -> SMS with verification URL sent to phone -> user clicks verification url in SMS -> activated Mar 11 03:24:50 Crap, it looks like twilio costs money groxx ? Mar 11 03:24:59 t0astt: yep. sms ain't fre. Mar 11 03:25:02 free* Mar 11 03:25:27 android studios xml editor just sucks, it randomly stops autocompleting Mar 11 03:25:35 they're not the cheapest, but they're cheap enough that it doesn't really matter for small volumes. you only really start shopping around once you start sending millions. Mar 11 03:25:56 Ok. Just considering my options since this is for a contest project Mar 11 03:26:12 and considering I have no monetization setup yet, I don't want to pay a crapload for this lol Mar 11 03:26:56 t0astt: if the total number of users will be relatively small, twilio is still relatively cheap: https://www.twilio.com/sms/pricing it's basically all pay-as-you-go, though there may be a minimum purchase of like $10. Mar 11 03:27:55 international smses can cost quite a lot more than the local SMSes, btw. so if you're price sensitive, a) only load a bit of money, and b) query the cost to send before sending, because it could be up to almost $1/sms. Mar 11 03:28:14 jeez ok Mar 11 03:28:30 generally it's like a $0.01/sms Mar 11 03:31:29 t0astt: re sms verification URL: yeah, that's a way to do it. one thing to watch out for though is that if you don't try to verify the device _clicking_ the url is the same as the device who _requested_ the url, you can open up a way to steal accounts because people will click anything. Mar 11 03:32:29 t0astt: or at the url have a big warning + make them click "yes, I requested this" before activating. Mar 11 03:34:06 True Mar 11 03:34:14 I think I will do it via 6-digit code Mar 11 03:34:20 to enter in the app Mar 11 03:34:25 Also, before I get ahead of myself Mar 11 03:34:44 I can setup a button in my app that will launcher the android phone dialer using a provided phone number, right? Mar 11 03:35:02 t0astt: yep. it won't auto-dial (which is a good thing), but anyone can pre-populate. Mar 11 03:35:07 Alright, perfect Mar 11 03:35:15 Phew Mar 11 03:35:20 iirc it's ACTION_DIAL + an E164 number or something Mar 11 03:35:28 Ok Mar 11 03:35:47 So yeah I finished the basic functionality of my app, so now I'm tacking on the more advanced things Mar 11 03:36:06 I've been working on it 10+ hours every day since I've been on spring break haha Mar 11 03:36:15 t0astt: ah. "tel:+15558675309" Mar 11 03:37:22 t0astt: well, while you're developing it, you can probably build all that for free: https://www.twilio.com/help/faq/twilio-basics/how-does-twilios-free-trial-work Mar 11 03:37:55 t0astt: i just got back, did you arleady mention what the app does? Mar 11 03:38:10 DadFoundMy: Nope Mar 11 03:38:38 t0astt: Whats it do (if you dont mind answering) Mar 11 03:49:27 DadFoundMy: I'm keeping it secret for a little while longer, at least until this contest is over Mar 11 03:51:47 t0astt: understandable Mar 11 03:55:28 groxx, i went with a simple overlay of the recyclerview which just gets hidden once i load some data in Mar 11 03:55:40 t0astt: ah, I didn't mention it before, but: 6 digit code is a very common approach. it also means (for good or bad, mostly good IMO) they can request a code for their dumbphone and type in the code on their android. Mar 11 03:55:57 desmin88: yeah, very likely the easiest way :) Mar 11 03:56:33 feels kinda dirty though having some two views set to GONE though Mar 11 03:56:33 at some point I need to look into building a LayoutManager, but until then I can't really recommend fancy things :| Mar 11 03:57:03 GONE views are pretty cheap, fwiw. they get skipped entirely in layout and drawing Mar 11 03:57:32 oh great Mar 11 03:57:35 so not _free_, but awfully close. and simpler than dynamically adding / removing the views. Mar 11 03:57:59 yeah Mar 11 03:58:22 all im doing is GONE'ing the overlay, the actual recycleritem progress, or both. Mar 11 03:59:10 easiest solution. Mar 11 03:59:24 interesting. I haven't tried GONE on a listview / recyclerview entry. it works? I would assume it's still relatively cheap, but I dunno what LayoutManager does in that case. Mar 11 03:59:59 yep it works. I actually take the viewholder.viewItem and set it to GONE Mar 11 04:00:10 cool. I'll have to remember that one. Mar 11 04:04:47 hey guys, I have a quick question, I made a button with custom background color, and whenever I button.setEnabled(false) the button doesn't even look like it is disabled (greyed out) is there something else I need to change to correct that? Mar 11 04:06:16 you need a custom drawable Mar 11 04:06:22 desmin88: fwiw it looks like GONE views in recyclerview _may_ still get decorated (e.g. if you're adding row separators). I'd have to read (a lot) more to be sure, but it's a thing to watch out for. Mar 11 04:07:00 groxx, yeah i initially noticed that but rather than fucking around with multiple view types and item counts + 1 i just got rid of my divider decorator and used margins.. Mar 11 04:07:14 Demon_Jester: you probably want a state-list drawable, with a disabled state. http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Mar 11 04:07:24 desmin88: essentially I just need to set my button to look greyed out? Mar 11 04:07:36 groxx: thanks i will look into it. Mar 11 04:07:39 desmin88: heh. practical :) Mar 11 04:07:57 yeah lol, cost/benefit wise its better than doing it the 'right' way Mar 11 04:08:20 yeah. besides, row separators seem to be disappearing in material styling Mar 11 04:08:35 groxx: There is even a service provider for twilio when using Laravel as a backend framework! SCORE! Mar 11 04:08:44 Check how easy it is to use: http://packalyst.com/packages/package/aloha/twilio Mar 11 04:09:32 Quick feedback question, what do y'all think of my current master/detail tablet layout? http://gyazo.com/e3089f6d0b99b20108e8209ba128a4c5 Mar 11 04:09:36 are there any channels taling about android dalvik or ART? Mar 11 04:09:51 t0astt: :) I've been repeatedly surprised how simple their API libs are (they build quite a few in-house iirc). usually twilio, despite wrapping an _incredibly_ complex system, is the easiest part of . Mar 11 04:10:01 hello, I've a simple question: I want to share preferences between an activity and a widget provider. I stored the preferences in the activity context, but I couldn't see them from the widget provider, so now I'm storing the preferences in the application context. It works. Is that the correct approach? I'm asking because the api docs for Activity make it seem that sharedPreferences are shared between activities and components, Mar 11 04:11:01 desmin88: cards on the left: hm. it might work... I haven't really seen that though. (but I don't use tablets) Mar 11 04:11:37 groxx: its more common than you might think Mar 11 04:11:46 especially on tablets Mar 11 04:12:04 I'd believe it. some day I'll tablet, probably, but my phablet (nexus 6) covers quite a lot of scenarios :) Mar 11 04:12:37 i have a droid dna and it does alright Mar 11 04:12:57 well, in general + that being common: looks pretty good to me. I generally recommend people skip the "empty" state as much as possible (e.g. just load the first item automatically), but there are pros and cons to any approach. Mar 11 04:13:11 empty states are almost always ugly Mar 11 04:13:45 yeah i tried to prettify it with the grey 'splash' Mar 11 04:13:47 (well, ugly / wasteful / requires a tap to get past. not saying yours is ugly!) Mar 11 04:14:03 IMO it helps :) Mar 11 04:15:15 sunway: probably here, just best to ask your question Mar 11 04:16:08 sunway: yeah, dunno if there are special channels. might not be enough volume to merit it. Mar 11 04:18:51 groxx: interesting to note, when you view.GONE a recyclerview item, you must GONE both the viewholders.itemview and every child view within it Mar 11 04:19:22 hm. I wonder if that means the view is being explicitly set to .visible? Mar 11 04:19:37 perhaps Mar 11 04:19:44 all i know is that it works, for now Mar 11 04:20:09 desmin88: http://shipitsquirrel.github.io/ Mar 11 04:20:21 lol Mar 11 04:21:34 whats the term for that color overlay you get when you pull up/down on a list at its beginning or end? Mar 11 04:21:46 eventually I'll read all of recyclerview :| I've read part of listview, then ran screaming for the hills. Mar 11 04:22:06 desmin88: probably the overscroll indicator? or maybe there's another term... Mar 11 04:23:01 How does one differentiate between an activity being created or the screen being turned? Mar 11 04:23:18 (switching from portrait to landscape that is) Mar 11 04:24:01 groxx: yup your right. im trying to get the same overscroll on api21 as on my api19 Mar 11 04:24:06 I have some stuff that happens on activity create which also happens when the screen is rotated (and I don't want it to occur again) Mar 11 04:24:11 color, that is Mar 11 04:24:21 phix: use your bundle Mar 11 04:24:27 phix: what happens? Mar 11 04:24:36 bankai_: My bundle knows what is going on? Mar 11 04:24:47 if you tell it Mar 11 04:25:36 desmin88: A few things, if my activity contains a webview the page is reloaded when the screen is rotated. If I have any alert dialogues or toasts they are shown again when the screen is rotated Mar 11 04:25:36 regardless of what causes the activity to be destroyed, it still gets destroyed. You need to manage your data with bundles, or some other means Mar 11 04:25:44 desmin88: you'll also see it called "edge glow" in the source. I'm poking around at the moment, I feel like there's a class for this, but I don't remember what it is. Mar 11 04:26:02 desmin88: you could probably copy the v21 one and use it in older versions Mar 11 04:26:44 desmin88: I am also using ORMLite in my activity, and that is recreated too when rotating the screen Mar 11 04:26:48 desmin88: ah, there we go: http://developer.android.com/reference/android/widget/EdgeEffect.html Mar 11 04:27:01 huzzah Mar 11 04:27:05 dunno how to use it, but it's there Mar 11 04:27:51 phix: use a WebViewFragment, and I think you can call setRetainInstance(true) on it to keep it between rotations Mar 11 04:28:47 phix: otherwise: rotations / recreations will have a savedInstanceState bundle (both in onCreate and in onRestoreInstanceState). and there's .isChangingConfigurations(), though that's not guaranteed. and there's onSaveNonConfigurationInstance(), which is also not guaranteed. Mar 11 04:29:20 groxx, im just trying to see how on API21 it determines the edge effect color based on your primary material color Mar 11 04:29:24 phix: in general though, use the bundle first, then add the other things to speed up the rotation if they're available. Mar 11 04:29:25 so i can set that pre lollipop Mar 11 04:29:57 groxx: can I add objects to my bundle? like an instance of my ORM DAO? Mar 11 04:30:13 no only serializable, parcelable, or primitives Mar 11 04:30:18 phix: ah, sorry. onRetainNonConfigurationInstance. horrible method name. Mar 11 04:30:49 groxx: yeah it is quite bad Mar 11 04:30:58 but better than what I would of called it :) Mar 11 04:31:16 phix: no. a) you should probably be using a singleton instance (or nearly) of your DAO (or maybe the lib provides that), and b) the bundle is also used when your process is being restarted, so anything "alive" can't be put in there. Mar 11 04:31:31 couldn't they have called it something like onRetainState or something :| Mar 11 04:31:45 g00s: like maybe "onSaveInstanceState" Mar 11 04:31:53 groxx: yeah where is a singleton object but I still need to free resources when the activity is destroyed Mar 11 04:32:35 phix: for the most part, because java is garbage collected, you just don't need to worry about that. don't use static variables unless they're appropriate, don't make threads, and you should be fine. Mar 11 04:32:39 i always forget whats its called, when talking to someone like "that method, on retain config thingy" yeaah Mar 11 04:32:40 generlaly Mar 11 04:32:42 generally* Mar 11 04:33:09 heh, no they should of found the common use case that it was used in and rename all of the function calls / key words that you would of used in order to make a story unrelated to what the application is trying to achieve :) Mar 11 04:33:37 onGoingToTheMarket(), onFoundSomeEpicBurgers(), onPizzaPartyOmg() Mar 11 04:33:56 sprinkled with some android.util.Log.wtf() calls of course Mar 11 04:34:07 they would be stuff like onDeath() onDetachedHead() etc Mar 11 04:34:17 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/provider/Settings.java#2628 Mar 11 04:34:19 onComatose() Mar 11 04:34:32 onDetachedHead() is, obviously, the only way to kill a zombie activity Mar 11 04:34:34 if(goingToTheMarket()) { throw BreadAtBeggers();} Mar 11 04:34:54 new Bread even :P Mar 11 04:34:56 lolwhat Mar 11 04:34:59 not stale bread Mar 11 04:35:00 @JesusFreke Mar 11 04:35:08 groxx: I actually don't see a way to set edge glow on seemed.. topical :) Mar 11 04:35:41 desmin88: ListView has code going back a long way that you can look at (it's in AbsListView.java), but I've never used it directly :| sorry Mar 11 04:36:30 groxx: of course :) Mar 11 04:38:13 desmin88: it's entirely possible that there's just nothing built-in to allow doing that. as far as I can remember, I've only noticed EdgeGlow used in internal-only ways. overscroll / etc is all internal, (almost?) never exposed :( Mar 11 04:38:31 but you can capture touch events and do it by hand, at worst Mar 11 04:38:50 which is ridiculous, how else can one get the same edge glow on >=21 and <21 Mar 11 04:39:07 on my kitkat phone its white and lollipop its my primary color Mar 11 04:39:51 JesusFreke: woah, it's actually in use in aosp: http://androidxref.com/5.0.0_r2/xref/frameworks/base/core/java/com/android/internal/app/PlatLogoActivity.java#176 Mar 11 04:40:20 desmin88 ... i think you've been working on this for at least a yeat. i'd forget about the glow; who knows - maybe you will by becoming a saint yourself Mar 11 04:40:26 *year Mar 11 04:40:31 desmin88: that seems to be the intent. kitkat does grays, holo does blues, gingerbread does whatever the hell gingerbread does, and OEMs "improve" things by doing it entirely differently. Mar 11 04:40:53 but if i want consistent design across all api levels.. Mar 11 04:41:06 and, magically! all apps inherit that, leading to guaranteed-ugly color combinations. Mar 11 04:41:15 desmin88 is the app done ? Mar 11 04:41:21 g00s Mar 11 04:41:24 whoops Mar 11 04:41:27 more or less Mar 11 04:41:51 well thats good :) Mar 11 04:42:08 So, digging through the source all edge effects color is set by: (themeColor & 0xffffff) | 0x33000000 Mar 11 04:43:37 I'm about to reflect the fuck out of this recyclerview Mar 11 04:43:42 hold on to your horses. Mar 11 04:43:42 lol Mar 11 04:43:47 horses: held Mar 11 04:45:06 desmin88: my horse won't drink. wtf? Mar 11 04:45:15 well did you lead them to water Mar 11 04:46:09 submit a pull request Mar 11 04:48:11 so was api 22 with a few features like a huge bugfix release? not really sure how to find all the issues that were closed Mar 11 04:51:45 desmin88: yeah! stack trace: http://pastebin.com/77VP9jUp Mar 11 04:52:02 lol Mar 11 04:52:39 http://phandroid.com/2015/03/10/android-m-multi-windows-commit/ Mar 11 04:53:39 g00s: fffuuuuuu.... that'll destroy my "is keyboard up" logic Mar 11 04:53:58 hopefully that's paired with a "getKeyboardBounds()" method? Mar 11 04:55:24 well guys i tried Mar 11 04:55:35 horse got away? Mar 11 04:56:01 RecyclerView has 4 EdgeEffectCompats which basically delegate to a EdgeEffectIcs which delegates to a regular EdgeEffect Mar 11 04:56:05 ... or something like that Mar 11 04:57:24 aha https://paste.teknik.io/1010 Mar 11 04:57:29 (changelog) Mar 11 04:58:01 desmin88: sounds believable Mar 11 04:58:42 g00s: that's quite the paste Mar 11 04:58:44 76 bluetooth related commits Mar 11 04:58:51 groxx should i paste it here ? :P Mar 11 04:59:01 g00s: lol Mar 11 04:59:19 g00s: does this mean good news, or more features to support news? Mar 11 05:00:07 "Fix BT crash due to unset value for BluetoothGattDescriptor from API user" hmmmm Mar 11 05:00:49 "Fix Bluetooth crash when all filters are used. Mar 11 05:01:20 no "fix all BT crashes"? booo Mar 11 05:03:31 why is appcompat for material so half assed Mar 11 05:04:55 desmin88 i dont think they give a crap, seriously Mar 11 05:05:04 agreed Mar 11 05:05:11 internally they are probably sharing stuff Mar 11 05:05:27 and eventually maybe some of that stuff finds its way to the support lib ... Mar 11 05:06:08 they even suck when it comes to implementing their own design specs Mar 11 05:06:24 maybe they figure all the important apps from big players have large enough teams to polish everything without their help Mar 11 05:06:25 all of they're apps are different when it comes to how it implements material Mar 11 05:06:41 g00s, and screw the little guy? Mar 11 05:06:54 they dont need the little guy any more. only in the beginning Mar 11 05:07:03 ugh Mar 11 05:07:33 this is the 'socialized risk, privitized profit" part Mar 11 05:09:41 i missed many opportunities to give people a free copy of my app for playing / review just because Play doesn't have promo codes Mar 11 05:09:55 i mean hell, ios has had that for years Mar 11 05:10:22 its pretty tough for the little guy / indie dev. only getting worse Mar 11 05:16:22 still waiting to grandfather paid app users to IAP Mar 11 05:24:22 https://stackoverflow.com/questions/28978989/set-recyclerview-edge-glow-pre-lollipop-when-using-appcompat Mar 11 05:24:27 WE SHALL SEE. Mar 11 05:26:16 so whiney Mar 11 05:27:00 ? Mar 11 05:29:08 so how does one use a SVG for a background? Mar 11 05:29:27 while keeping compatibility with gingerbread and above Mar 11 05:31:21 is svg a necessity? Mar 11 05:31:38 also, why gingerbread ? minsdkVersion="15" Mar 11 05:32:24 of course it is, better than this hdpi, mdpi, xhdpi, xxhdpi non-sense Mar 11 05:33:32 ehh Mar 11 05:33:47 in terms of what? you want svg's for things like the icons? Mar 11 05:34:06 background in particular, but there would be nothing wrong with using it for icons Mar 11 05:38:50 phix: Take your pick from any one of the android svg libraries, although im curious as to why your supporting gingerbread Mar 11 05:44:30 heh. gingerbread still makes up almost 20% of the users for my app Mar 11 05:44:54 whats your app? Mar 11 05:45:06 https://play.google.com/store/apps/details?id=org.jf.Penroser Mar 11 05:45:26 interesting, i wonder why Mar 11 05:47:43 JesusFreke i only have like 5.7% users on gingerbread Mar 11 05:48:11 50% on 4.4 Mar 11 05:48:31 8% on 5.0 Mar 11 05:48:31 the top 4 versions are all right around 18-19% Mar 11 05:48:34 gingerbread is #3 Mar 11 05:48:49 4.4, 4.0.3, 2.3.3, 4.1 Mar 11 05:55:39 groxx: turns out on prelollipop you can set a color filter on the overscroll.png drawable to change it to what you want Mar 11 05:56:39 desmin88: because people still use it Mar 11 05:56:46 desmin88: handy. probably still a gradient on older versions, but closer anyway Mar 11 05:57:22 phix: whats your app? Mar 11 05:57:28 hm, this looks nice http://shop.oreilly.com/product/0636920026228.do (data driven UX) Mar 11 05:57:28 desmin88: ok I am using the unmaintained fork of the unmaintained project called svg-android Mar 11 05:57:47 phix time for another fork ! Mar 11 05:57:51 desmin88: barcode scanning, inventory, etc... Mar 11 05:58:17 desmin88: when it is in a workable state I will link you :P Mar 11 05:58:38 <7% of devices are gingerbread, do a cost/benefit if the extra work is worth it for whatever gain there might be Mar 11 05:58:44 hmmm ok I cannot programmatically set the background on this layout :/ Mar 11 05:59:11 desmin88: either way I am having issues with my background image displaying wonky on different sized displays Mar 11 05:59:26 The image source is a SVG so it makes sense to me to use that ;) Mar 11 05:59:58 there are tools to generate appropriate densities from a svg Mar 11 06:02:22 there may be fewer gingerbread devices, but perhaps they're underserved, and you could gain greater penetration because you have less competition? everyone's competing for the newer systems. Mar 11 06:02:52 desmin88: what's it called? Mar 11 06:03:04 not that I'm claiming this is true. just food for thought. raw numbers don't tell the whole story, especially on android. Mar 11 06:03:23 you have to consider the users of these low-end gingerbread devices though Mar 11 06:03:36 they probably aren't a prime market in terms of monetization Mar 11 06:03:39 desmin88: is it part of the android sdk? Mar 11 06:03:49 just google Mar 11 06:05:30 desmin88: hmmmm what's the correct search term to use?? I am getting nothing Mar 11 06:05:42 "android svg to png" Mar 11 06:06:52 wooo! Mar 11 06:07:13 lollipop has vector support, nice Mar 11 06:07:20 wow, still no FAB in supportv22 Mar 11 06:09:32 desmin88 do you see support22 in your sdk manager ? Mar 11 06:09:37 nope. Mar 11 06:10:39 i was hoping they would add those bottom sheets but, i have no expectations from this thing going forward Mar 11 06:10:59 the snackbar thing? Mar 11 06:12:11 no . http://www.google.com/design/spec/components/bottom-sheets.html Mar 11 06:12:22 oh Mar 11 06:13:33 i'll probably use this https://github.com/soarcn/BottomSheet Mar 11 06:13:51 good thing all those people pick up the slack from google's incompetence Mar 11 06:14:15 i mean they must have in house implementations of these material specs for use in their own apps Mar 11 06:14:18 problem then, you have all these little libraries of varying quality in your project Mar 11 06:14:41 g00s: that usually only follow the spec to a certain degree Mar 11 06:14:57 yeah, and can be funky when combined Mar 11 06:15:22 this one is different than the other one i looked at , which couldn't be used with navdrawer Mar 11 06:15:32 .. Mar 11 06:15:48 its like google is asking for a fragmentented ux across devices Mar 11 06:15:49 because it was a viewgroup and the panel was a child Mar 11 06:15:52 fragmented* Mar 11 06:16:25 i've been banging my head on this for a long time. they are smart people Mar 11 06:17:20 either (1) they don't have the experience to create consumer software that isn't a web service or (2) android is an A/B test which only gets half the resources necessary, because the other half are working on B Mar 11 06:19:08 My favorite is the material spec for how big the navigation drawer should be Mar 11 06:19:14 heres a nice blog post that makes fun of it Mar 11 06:19:14 https://medium.com/sebs-top-tips/material-navigation-drawer-sizing-558aea1ad266 Mar 11 06:19:29 google just gives me a different feeling than apple or MS. those companies, you can tell those platforms are their lifeblood Mar 11 06:20:14 ffs, i cant scroll up without swiperefreshlayout triggering Mar 11 06:20:15 wth is this Mar 11 06:21:47 or (3) they just lack the discipline to fire on all cylinders Mar 11 06:21:50 where do i find the explanations of kernel features when you compile a kernel Mar 11 06:22:14 the linux kernel has a nice little menu gui thingy Mar 11 06:22:22 yes Mar 11 06:22:40 but i want to know what those features do Mar 11 06:23:38 just add all of them :D Mar 11 06:29:11 how do I know when a SurfaceView's Surface is ready to be used by my CameraDevice? Mar 11 06:32:01 how do you automate module loading? Mar 11 06:32:08 when you compile a kernel Mar 11 06:32:14 im really confused Mar 11 06:41:31 where do i go for android rom development Mar 11 06:41:44 i want to patch something please help Mar 11 06:42:24 linuxuz3r: xda? Mar 11 06:48:55 But really though, what width are we supposed to make our nav drawers Mar 11 06:49:44 desmin88 i wouldn't worry about it. whatever works Mar 11 07:02:53 i just got a new Nexus5, why I cannot open google play? Mar 11 07:03:04 rrr: wrong channel Mar 11 07:05:49 desmin88: which channel? Mar 11 07:06:33 you could ask in #android but a) you'd have to give more info for anyone to have any chance of helping and b) it's *not* a support channel anyway Mar 11 07:11:10 Has anyone encountered an issue with swiperefreshlayouts + lists where your listview scrolling gets 'frozen' and unless you want to trigger the refresh you have to scroll down, then up Mar 11 07:13:16 nvm solved it Mar 11 07:17:18 sup guys Mar 11 07:19:07 for some reason I don't seem to be able to include Hugo into my project as mentioned in its github repo https://github.com/JakeWharton/hugo Mar 11 07:20:09 I get that that gradle couldn't find the the plugin name under both local and maven paths Mar 11 07:21:13 Apparently RecyclerView is not compatible with SwipeRefreshLayout, SRL won't delegate scroll ups to the recycler view and instead tries to refresh mid-list Mar 11 07:22:53 desmin88 i vaguely remember you have to do something, i think on SO Mar 11 07:23:18 yeah i found the fix Mar 11 07:45:59 anybody able to explain why I'm getting "app passed NULL surface" and the EGL error seen here? (source included): http://pastebin.com/sESf6C1p Mar 11 07:51:06 do cameras require something to be run in a separate thread? Mar 11 07:51:31 no Mar 11 07:51:53 hrm Mar 11 08:03:59 i'm still stuck with testing on android Mar 11 08:28:03 What's the theme for Material dialogs and in particular their buttons? It can't be right that one has to do all this manually? http://www.google.com/design/spec/components/buttons.html# Mar 11 08:31:05 does anyone have a code example for file upload to asp.net mvc webapi? Mar 11 08:35:23 file upload? Mar 11 08:35:36 I have calling webmethod example of SOAP service (asmx) Mar 11 08:37:14 yea choose a file from the filemanager and upload it Mar 11 08:37:28 this code might give me an idea of what i need to do Mar 11 08:37:47 you probably need to do a http post? Mar 11 08:37:55 yea it's http post Mar 11 08:38:07 then that's easy, thought you were asking about something worthy Mar 11 08:38:10 just google Mar 11 08:38:18 =) Mar 11 08:38:22 i also want to provide chunking Mar 11 08:45:21 Anybody familiar with RxJava? I'm trying to use Retrofit and make a request per each element of a list, then combine the results of all requests into one observable Mar 11 09:02:16 I tried this but no luck: http://pastie.org/10017958 Mar 11 09:45:50 desmin88, you're probably looking for collect() Mar 11 09:46:17 which takes multiple observables in a stream and joins them into a single datastructure Mar 11 09:56:34 now i have to learn how to use git Mar 11 11:04:11 how can i get all SMS ? Mar 11 11:36:50 Its been 3 day and I still dont have a testing link Mar 11 11:36:51 http://i.gyazo.com/d918f420209face76ae87fb0bc834089.png Mar 11 12:12:06 Hi guys Mar 11 12:12:19 i am trying to use webview to open http://mvc.myorange.ca Mar 11 12:12:36 but i am unable to use the nav bar Mar 11 12:12:47 doesnt come Mar 11 12:12:57 webview is acting woered Mar 11 12:14:10 please help Mar 11 12:14:48 webviews suck balls! Mar 11 12:15:24 so what do i do ?? Mar 11 12:16:44 need full control for javascript Mar 11 12:16:51 in webview Mar 11 12:16:54 please help Mar 11 12:17:32 what have you tried? Mar 11 12:18:12 tried enabling the javascrit Mar 11 12:18:23 tried using chreome client Mar 11 12:18:52 i am able to control the redirect issues Mar 11 12:19:14 but the nav menu doesnt work Mar 11 12:19:30 http://mvc.myorange.ca this is the website Mar 11 12:19:58 please help :-) Mar 11 12:29:19 A problem I run into a bit too frequently is piping more data than I want to from fragment to fragment, pushing too much state into an event bus or data layer Mar 11 12:31:03 Often I find solutions that don't require plumbing everything are right on hand, but..something like passing an inner class from the object to somethign that would fire off an event to avoid so much ping pong feels right Mar 11 12:32:25 In dialogue fragments this becomes especially true Mar 11 12:32:57 the click handling events just need some stupid bits of the opening classes functionality. I guess I shoudl construct the fragment with the handlers Mar 11 12:33:21 from Inner classes from that instance. That's starting to sound intelligent. Mar 11 13:01:05 Looks like I need to serialize handlers int bundle...and...why do I care about this instead of simply using public fields or setter methods? Mar 11 13:03:49 Doesn't seem like any dark voodoo will come to devour this pathway's obviousness Mar 11 13:08:20 I just ran my first android app, it's pretty cool even seeing "hello world". Mar 11 13:08:50 pardelkat, congrats. "hello world" is the correct lense for every problem Mar 11 13:09:02 I call it "hello-world space" Mar 11 13:09:19 Every problem exists as a finite number of steps on some hello-world dimension Mar 11 13:09:58 hello world is the greatest program to ever exist Mar 11 13:11:09 So... I realized that by using setters and/or public fields, I'm losing some signature enforcement Mar 11 13:11:18 which is bad for the maintenance of the code eventually Mar 11 13:11:22 until Oracle patented it ... Mar 11 13:12:13 I'm getting the error "horizontal" in attribute "orientation" is not a valid integer Mar 11 13:12:28 android:orientation = "horizontal" Mar 11 13:12:53 pardelkat, look at xmlns, Mar 11 13:13:01 possibly others =D Mar 11 13:13:08 whoops Mar 11 13:13:11 i wrote "horizonal" Mar 11 13:13:15 lol sorry. Mar 11 13:13:18 and spelling Mar 11 13:14:16 just a stupid question but Mar 11 13:14:20 What exactly does android:oritentation do? I set it to horizontal, but the preview didn't show it as a horizontal app. It still looks like the phone + app is vertical Mar 11 13:14:23 which would you prefer for starting a new activity Mar 11 13:14:24 pardelkat: that will happen a lot, and you'll be pulling your hair a lot Mar 11 13:14:26 which syntax Mar 11 13:14:32 XActivity[LoginActivity].start() Mar 11 13:14:34 or Mar 11 13:14:48 XActivityStart[LoginActivity] Mar 11 13:16:03 and its quiet Mar 11 13:16:58 Found the difference, had to do a bit of googling Mar 11 13:17:17 Apparently it's not phone orientation, it's how the objects are placed Mar 11 13:18:35 hello world 2.0 Mar 11 13:19:22 yes pardelkat Mar 11 13:21:02 does picasso not support bitmap xmls? Mar 11 13:22:02 lemonxah: startActivity(new Intent(this, LoginActivity.class)); Mar 11 13:22:30 shmooz, lol no not what i was asking Mar 11 13:22:44 i am doing this in another language and i am making a "framework" around this stuff Mar 11 13:22:52 was just wondering lookin at those 2 implementations Mar 11 13:22:57 which looks better? Mar 11 13:22:57 lemonxah, which lang? Mar 11 13:23:00 cause i can do either Mar 11 13:23:02 scala Mar 11 13:23:12 they both loock ugly :p Mar 11 13:23:23 why is it ugly? Mar 11 13:23:49 why not XActivity.start(LoginActivity) ? Mar 11 13:24:11 nobody likes square brackets Mar 11 13:24:39 the Square brackets is scala is type brackets Mar 11 13:24:44 like in java its < > Mar 11 13:24:48 i know Mar 11 13:24:52 the type of activity to start Mar 11 13:25:23 scala shmala Mar 11 13:25:32 lol shmooz Mar 11 13:25:33 why? Mar 11 13:26:05 i have to say it wasn't super easy to get into scala but i like it a lot more than java Mar 11 13:26:10 more info to clutter my mind Mar 11 13:26:11 lemonxah, didnt you hear that kotlin is the new scala? :D Mar 11 13:26:16 no Mar 11 13:26:22 its not the new scala i was looking at kotlin Mar 11 13:26:30 and i dont like it as much as i do scala Mar 11 13:26:57 granted i haven't spent nearly as much time on kotlin as i have on scala Mar 11 13:27:02 but it looks ugly Mar 11 13:27:33 I will make a language that you code by choosing pretty girl faces Mar 11 13:27:33 the pattern matching isn't as rich and the formatting of it just puts me off Mar 11 13:27:34 i still think both syntaxes are ugly and i shoudnt need to set the type if i want to start an activity Mar 11 13:27:44 but maybe you have to ask that question in ##scala ;) Mar 11 13:28:06 i am in there Mar 11 13:28:15 then you guys won't have anything to complain about Mar 11 13:28:19 but this was more an android framework question Mar 11 13:28:34 XActivity isn't an activity its just a helper class Mar 11 13:28:37 id do XActivity.start(LoginActivity) ;) why do you need an additional type there? Mar 11 13:28:40 if that makes sense Mar 11 13:29:05 this makes the syntax much clearer Mar 11 13:29:19 but its not DSL Mar 11 13:29:31 :) Mar 11 13:29:51 look ath this one Mar 11 13:29:54 well. you asked for an opinion ;) Mar 11 13:29:56 it might be ugly for you Mar 11 13:29:58 XButton(R.id.login).onClick = v => XActivity[LoginActivity].start() Mar 11 13:30:27 but that will get the view in the current view root with the login id then cast it to a button then set the onClick method on it to start the login activity Mar 11 13:30:35 i know scala Mar 11 13:30:36 I looked at pfn's qicr scala code and it does look shorter and cleaner than the java way Mar 11 13:30:51 I mean, my app is working and all but Mar 11 13:30:59 I feel like the tutorial is spoonfeeding a bit? Mar 11 13:31:01 I'm not sure Mar 11 13:31:11 cause i dont like Button b = (Button)findViewById(R.id.login); b.setOnclickListener(new View.Onclick ... Mar 11 13:31:12 still i dont like it to put types in front of static method calls like that XActivity thing Mar 11 13:31:13 i dont like that Mar 11 13:31:18 but I'm not sure how it will do for more performance critical stuff Mar 11 13:31:42 shmooz, its nearly the same performancewise if you use it *correctly* Mar 11 13:32:06 you can do a shitload of object creation and force gcs if not doing it correctly though Mar 11 13:34:26 also i am trying to make it less OO and more funcional Mar 11 13:34:38 meh Mar 11 13:35:21 What is a "context" and why is "this" used as the context here? It says "A Context as its first parameter (this is used because the Activity class is a subclass of Context)", but I still don't really understand... https://developer.android.com/training/basics/firstapp/starting-activity.html Mar 11 13:35:53 pardelkat, context basically gives you a connection to all the resources of the app Mar 11 13:36:02 its the "context" under which stuff is running Mar 11 13:36:24 and activity extends context so everywhere where you need a context, you can also give an activity instead Mar 11 13:36:29 pardelkat: also "this" is a keyword referencing an object's self. Mar 11 13:36:48 I see. Thanks Mar 11 13:38:04 http://levinotik.tumblr.com/post/15783237959/demystifying-context-in-android Mar 11 13:39:15 Is it rare to create a new context? Mar 11 13:39:24 I don't see why you would create a new context. Mar 11 13:39:39 you dont Mar 11 13:39:49 you get the context, you never create it Mar 11 13:42:00 Do I need to publish my game to test it? or can I test while its still in Draft mode? Mar 11 13:42:19 for testing it you can just load the apk on your device lol Mar 11 13:42:40 google play store is not needed to put the app on a phone Mar 11 13:42:43 I mean testing IAP and leaderboards Mar 11 13:42:53 just install the apk Mar 11 13:42:57 i think you have to release it for that Mar 11 13:43:07 but you can do beta/alpha Mar 11 13:43:32 I am in draft mode and uploaded my app in alpha but not sure If I need to publish Mar 11 13:44:24 This all makes sense now - sort of - I never really understood android apps when I tried last time. I guess I was just asking the wrong questions or not asking at all. Mar 11 13:46:32 i.gyazo.com/d918f420209face76ae87fb0bc834089.png Mar 11 13:46:44 I dont see the testing link while my app is in Alpha Draft mode. Anyone knows if I need to publish to test? Mar 11 13:47:10 http://i.gyazo.com/d918f420209face76ae87fb0bc834089.png Mar 11 13:47:13 you have to setup a G+ community for it Mar 11 13:47:20 KingMe, yes you have to Mar 11 13:47:32 I did I set up a G+ and googlegroups Mar 11 13:47:43 you have to publish the alpha to test it Mar 11 13:48:11 If I publish wont everyone have access to it? Mar 11 13:48:17 Any idea how I can display the full device name in the statistics on the google play developer console? Mar 11 13:49:01 both the samsung galaxy s4 and S5 show up twice, but with a (... behind it, i want to figure out what's the difference between them. Mar 11 13:49:26 but I can't see what's after the (... Mar 11 13:49:38 danijoo if I publish will only the G+ community have access? Mar 11 13:49:42 Syzygy, maybe if you export it as csv Mar 11 13:49:58 KingMe, if you publish to alpha, only people in the alpha have access Mar 11 13:50:08 if you publish in full production, its for everyone Mar 11 13:50:59 Is there way to remove a ongoing notification whan app is closed ? close from multi task view. the notification stay's open Mar 11 13:51:53 danijoo I cant publish in Alpha mode Mar 11 13:51:55 fanno: might be a background service Mar 11 13:52:05 fanno: you tried force stopping the app? Mar 11 13:52:23 KingMe, i can Mar 11 13:52:50 jalcine: yes well i assume that is what happens when it close it from the multi window thingy Mar 11 13:53:04 jalcine: "application stack view" i guess you could also talk it Mar 11 13:53:44 not sure if removing it from the task does that Mar 11 13:53:45 * jalcine shrugs Mar 11 13:55:16 jalcine: when i use force stop the notification is indeed removed Mar 11 13:55:31 interesting Mar 11 13:55:35 jalcine: when i do it from the stack view the notification remains Mar 11 13:55:51 so that stack view might be only killing foreground activities Mar 11 13:55:56 hm Mar 11 13:56:15 okay after refreshing I was able to publish :) Mar 11 13:56:35 danijoo, that actually seems to have worked. many different s5 devices i guess Mar 11 13:57:10 How long does PENDING PUBLICATION last? Mar 11 13:58:24 jalcine: onStop/onDestroy is not called =( Mar 11 13:58:39 Where did you guys first learn to create android apps? Mar 11 13:58:58 I really feel like I'm not understanding this. Maybe I just need more practice? Mar 11 13:59:11 KingMe, its pretty new that they have that. so nobody might know here Mar 11 13:59:54 k thanks for your help danijoo but I also published game services and notice it said I cant change some things. Did I mess up? Mar 11 14:00:54 dont know. never used play services Mar 11 14:01:08 maybe you just have to wait until the pending stuff is over to change Mar 11 14:02:25 pardelkat the docs and Android studio is a great way to start Mar 11 14:02:43 KingMe: That's what I'm using Mar 11 14:02:45 pardelkat, youtube videos was my way :p Mar 11 14:02:50 Maybe I just don't have enough programming experience? Mar 11 14:03:06 you need to be pretty confident with java Mar 11 14:03:48 If you're familiar with OOP it shouldnt be hard to understand Mar 11 14:04:01 pretty is a understatement ;) Mar 11 14:04:05 factories everywhere :P Mar 11 14:04:12 * jalcine is (kind of) kidding Mar 11 14:04:26 KingMe: I'm really not familiar with OOP lol Mar 11 14:05:16 I come from making Love2d (Lua 2d game engine) games, so I have a bit of knowledge with Lua, but it's not OOP Mar 11 14:05:25 It's just a scripting language Mar 11 14:06:00 pardelkat I would read a android dev for complete beginners book then Mar 11 14:06:25 Dunno, I might stick with games. I'm really not sure Mar 11 14:06:33 (As in PC games) Mar 11 14:07:09 If I would describe my programming experience, I would say I know so much but I know so little. Mar 11 14:07:18 JAVA can actually do both :) Mar 11 14:07:51 pardelkat, did you consider Unity or something like that? Mar 11 14:08:11 Mavrik: I've considered it. Mar 11 14:08:36 Unity 5 is new and free looks like a great option Mar 11 14:08:54 Free, but they take a lot of the money you make Mar 11 14:08:58 So really not free lol Mar 11 14:09:21 well only if you hit the lotto and make a game that makes over 100k a year :P Mar 11 14:10:06 I doubt a game made in Unity would make a lot of money, I thought the games that make lots of money don't use engines? Mar 11 14:10:57 They normally have there own engine they reuse Mar 11 14:11:11 UE4 is actually free too and its really good Mar 11 14:11:15 i think the 8 of 10 top games in android use an engine Mar 11 14:11:28 and 5 of them unity Mar 11 14:11:58 just look on the unity page under popular games and filter android Mar 11 14:12:05 Cliffhorse made 100 usd (game by markus persson made in unity) Mar 11 14:12:06 youl recognize some of them ;) Mar 11 14:12:36 pardelkat, um, most of commercially successful indie games were built on Unity in those last few years Mar 11 14:12:38 even on PC. Mar 11 14:12:49 Huh, really? Mar 11 14:12:56 Personally I like Unreal Engine way better, but it does require you to know C++ :) Mar 11 14:13:22 even hearthstone by blizzard is made with unity Mar 11 14:14:47 I still have to wait for internet to download Unity Mar 11 14:14:56 I'm currently tethering from my phone Mar 11 14:18:02 how do you set the environment to 32 bit? Mar 11 14:18:32 you must download the 32 bit version Mar 11 14:19:13 I do have the 32 bit version, "ERROR: 32-bit Linux Android emulator binaries are DEPRECATED, to use them you will have to do at least one of the following: - Use the '-force-32bit' option when invoking 'emulator'. - Set ANDROID_EMULATOR_FORCE_32BIT to 'true'" Mar 11 14:19:31 should've phrased that better probably Mar 11 14:20:52 do that then. Mar 11 14:22:32 pardelkat: tethered to your phone and downloading hope you have unlimited, with no network reductions Mar 11 14:23:15 alien64: i'm not downloading it when i'm tethering lol Mar 11 14:23:20 that'll use lots of data Mar 11 14:23:28 how much is unity? a few gb? yeah no lol Mar 11 14:23:39 4 or so ^^ Mar 11 14:23:48 exactly lol Mar 11 14:27:35 data is downloading based on a current rate Mar 11 14:30:20 Thank you, Google, for that wonderful Eclipse plugin: android:name=".ui.MainActivityvity" Mar 11 14:31:46 The joke is, of course, someone actually using Eclipse still. Mar 11 14:32:10 pfff Mar 11 14:32:42 AS is too ugly, and I still have to do regular Java projects too. Mar 11 14:33:13 danijoo: yeah, how, I don't know where that settings are kept Mar 11 14:34:21 Zta: Android Studio is where the tools team is focusing its efforts now. It doesn't make sense to stay on Eclipse. Mar 11 14:34:25 You could use IntelliJ for Java. Mar 11 14:34:36 In fact, you could use IntelliJ for both, as some do. Mar 11 14:35:48 It's not just the IDE, it's actually using a build system with dependency management which allows you to do builds decoupled from the text editor. Mar 11 14:38:47 you can still use gradle in intellij Mar 11 14:39:32 or use AS and stick to eclipse for your other java stuff Mar 11 14:39:36 KingMe: I just remembered Mar 11 14:39:39 Unity is free and all Mar 11 14:39:44 But it has the splash screen Mar 11 14:39:53 (youll switch your other stuff to intellij after sometime because its awesome, but can use eclipse for now) Mar 11 14:40:14 javnut, it looks like a command line setting for me Mar 11 14:40:24 no, that's dumv Mar 11 14:40:28 -force-32-bit Mar 11 14:40:29 use just 1 ide Mar 11 14:40:39 there's no advantage to using Android studio Mar 11 14:40:40 I dont think a splash screen is that serious but u can always buy the pro version to get it removed Mar 11 14:40:51 pfn, atm there is Mar 11 14:40:56 there isn't Mar 11 14:41:10 or did intellij EAP update to support the gradle 1.1 stuff Mar 11 14:41:29 (unit tests) Mar 11 14:41:33 dunno, but you can still run gradle independently for build Mar 11 14:42:06 yes. you can also write everything via cmd echo but do i want that? ^^ Mar 11 14:42:43 yes, if it's a better workflow Mar 11 14:43:49 Greetings people. Mar 11 14:44:09 its not a better workflow to do my unit tests with command line gradle just to avoid AS beside intellij if you ask me Mar 11 14:44:20 but IDEs... its all about personal preferences.. Mar 11 14:44:24 nothing to argue here Mar 11 14:44:25 in any case, I get unit. and instrumentation tests in intellij just fine Mar 11 14:44:45 not my fault you guys insist on using shitty tools Mar 11 14:46:10 intellij cost money? Mar 11 14:46:21 yeah. its easy to insist on someones own opinion and call everything else shitty Mar 11 14:46:28 KingMe, only the pro version Mar 11 14:46:51 never insisted Mar 11 14:46:59 matter of fact Mar 11 14:47:07 android studio is limited Mar 11 14:47:17 its specialized Mar 11 14:47:20 gradle doesn't let you do unit tests on intellij Mar 11 14:47:21 all facts Mar 11 14:47:47 android studio is the best :) Mar 11 14:48:10 thats like calling phpstorm shitty because its limited to php and cant do c++ Mar 11 14:50:58 Do I have this right, to change the checkbox background ( the actual inside of the checkbox only not the whole view ) I must use a different image ? with a new style for the checkbox ? Mar 11 15:04:25 pfn: This is.. not true? Mar 11 15:04:35 ? Mar 11 15:05:02 pfn: IntelliJ will totally run `gradle test` for you as a run instruction, and 14 will grab the output and put it in a nice test-runner window. Mar 11 15:05:21 freeone3000, well then, not a problem :p Mar 11 15:05:32 people (danijoo) are saying it doesn't work Mar 11 15:06:06 Ah. It doesn't have explicit support for 1.1, no, so if you're following android-studio instructions and not treating gradle as an external process, you're going to run into issues, yeah. Mar 11 15:19:46 freeone3000, yeah, I just treat my build tools as an external process and use my ide as a code editor Mar 11 15:19:51 freeone3000, works perfectly Mar 11 15:22:59 In Retrofit is there a way that I can display an error message to the user in one place, so that I don't have to duplicate the logic across all of my async callbacks? Mar 11 15:24:04 I guess I could write an ErrorHandler that uses Application Context to show a Toast Mar 11 15:24:45 theblang: Also RXJava handles this nicely Mar 11 15:25:04 yiata how so/ Mar 11 15:25:58 you can define one generic error state for a chain of network requests Mar 11 15:26:30 You can do the same thing without it to though with listeners if you want Mar 11 15:26:35 yiati, interesting. Did not know this, checking it out Mar 11 15:26:36 s/to/too/ Mar 11 15:28:10 yiati, doOnError ? Mar 11 15:28:43 http://blog.danlew.net/2014/09/30/grokking-rxjava-part-3/ Mar 11 15:29:04 I recommend the whole series, but this part 3 specifically covers Errors in rxjava Mar 11 15:29:21 You can handle it in onError() Mar 11 15:29:53 yiati So say you have three fragments that each do a network request. You don't want to rewrite error handling code in all three of them, but at the same time you do require Context to do UI manipulation. Mar 11 15:29:54 I have a MediaPlayer to play a sound. Is it possible the get an event every second it's playing like '00:01' - '00:02'. Or do I need to create a timer for it? Mar 11 15:30:11 theblang what is against standard inheritance? Mar 11 15:30:12 oh i guess I was mistaken. I have a ton of network observables that i'd like to all call one error callback on error (to do analytics / crashlytics). I thought what you meant was you could add in a "callOnAllError" method or something :) Mar 11 15:30:34 defining a class that extends callback and has your error message logic, and let all your other classes extend that one. Mar 11 15:31:00 danijoo, what i currently do Mar 11 15:31:12 it'd be nice though to just have a split error subscription Mar 11 15:31:24 danijoo, yiati That question gets into my confusion about how to properly handle this I think. I am using Otto to do View manipulation, but it doesn't work with inheritance. Mar 11 15:31:25 Hi, I am trying to take a photo with an android camera. I get the RuntimeException: startPreview failed. I checked that the Flashmode and the Preview-size are supported. Mar 11 15:32:33 danijoo Oh wait, I think I see what you mean Mar 11 15:32:58 I did not configure a surface holder Mar 11 15:33:08 danijoo Extend the Callback itself. I was thinking about having @subscriptions in parent activities / fragments Mar 11 15:35:30 theblang, yeah. Mar 11 15:35:46 or maybe have an ErrorEvent class for otto Mar 11 15:36:18 danijoo Problem with that is how do you do something like say, use a Snackbar to show the message and an action button Mar 11 15:36:25 danijoo since you need the Activity context Mar 11 15:36:49 activity in callback constructor maybe Mar 11 15:37:30 and I agree that it sucks that otto does not support inheritance -_- Mar 11 15:37:36 Has Google released v22 version of appcompat? AS complains that it can't find it. And you can't build targetAPI 22 with appcompat_v7_21. Mar 11 15:37:38 had the same problem some days ago Mar 11 15:39:16 danijoo Yeah, it would be nice if I could just put a generic error subscription in my BaseActivity that all other Activities inherit from that has the Snackbar code, for example. Then it'd be easy to extend the Retrofit Callback to always throw an ErrorEvent. Mar 11 15:39:51 *in my BaseActivity WHICH all other Activities inherit from, that Mar 11 15:39:58 danijoo sorry, confusing grammar mistake Mar 11 15:41:24 theblang, you can do this Mar 11 15:41:29 why shoudnt you Mar 11 15:42:05 danijoo because Otto won't find the subscription in BaseActivity Mar 11 15:42:28 so register an inner class instance Mar 11 15:43:55 you can work arround that. I was more talking about it not supporting inheritance at the even level. if you have class A and B extends A, you cant just subscribe to A and receive A and B Mar 11 15:45:36 http://stackoverflow.com/questions/16945524/app-passed-null-surface-while-taking-a-picture-without-a-surfaceview Mar 11 15:45:45 Can I not take a picture without a surface view? Mar 11 15:45:59 We are developing a head tracking system for the epson BT-200 Mar 11 15:46:04 JakeWharton, danijoo: I think I am confused about what I could do with an inner class instance Mar 11 15:46:14 register it on the bus Mar 11 15:46:24 in your base activity Mar 11 15:46:55 theblang, make an inner class, that is instantiated in onCreate and has the subscribe annotation Mar 11 15:47:06 the class then calls a method on the base activity Mar 11 15:53:52 What controls what resources are copied into a resulting AAR file for an android library, or even an apk? i'm trying to add a certificate to a package, but it's not being placed in the resultant res directory after building Mar 11 15:59:11 JakeWharton: I my confusion is, if I register the class in BaseActivity, I can't post in ChildActivity to trigger the registration in BaseActivity right? Mar 11 16:01:55 Throwing OutOfMemoryError "Failed to allocate a 12 byte allocation with 0 free bytes and 3GB until OOM" Mar 11 16:02:18 How come I get a failed allocation with 3gb until out of memory? Mar 11 16:02:59 hey Mar 11 16:04:00 when developing an android application, if there is a setting in the app, for example, an IP_ADDRESS that I want change during the build or pass it in as an argument, how do I go about doing that? Mar 11 16:04:18 imalray, manifest placeholders is one way Mar 11 16:04:23 imalray, buildconfig generator is another way Mar 11 16:04:32 gradle has options for configuring buildconfig Mar 11 16:04:44 * Napalm whales out loud, "Why gradle? why do you torment me so?!" Mar 11 16:04:47 imalray, in gradle you can set BuildConfig class variables Mar 11 16:05:02 Napalm, use sbt :p Mar 11 16:05:06 is better Mar 11 16:05:18 imalray: you can use a bindConfig Mar 11 16:05:22 imalray: you can use a buildConfig Mar 11 16:05:29 which one would be the simplest. I was looking at gradle but didnt understand exactly how to set buildconfig class variables Mar 11 16:05:45 buildconfig is simplest Mar 11 16:05:57 JakeWharton, danijoo: Okay, so I found this which I think is what Jake was talking about. I'm still a little confused at how this works, but I am studying it now. https://medium.com/@murki/handling-generic-http-errors-across-your-android-app-eaff4e49bbb2 Mar 11 16:06:29 im a rookie, can someone provide me with an buildconfig example and how it would be read in, in the code Mar 11 16:06:43 theblang: thats not exactly right Mar 11 16:07:20 theblang: I don’t speak for Jake but these days, I think Retrofit’s support for Rx makes the method described in this article obsolete Mar 11 16:07:46 theblang: I just use a common base class for all my subscribers that catch 401 (and other auth) errors. Mar 11 16:08:24 theblang: the ErrorHandler is suppose to detect the type of error and construct your own exception Mar 11 16:09:41 jaana: once you catch them, can you update stuff in the Context (like display a Snackbar message) Mar 11 16:09:56 theblang: Sure, just pass the context to your subscriber Mar 11 16:10:13 Napalm: Yeah, the question I have is, how to update the UI or show a Context specific action such that I don't have to duplicate logic across many Activities and Fragments Mar 11 16:11:29 jaana: Maybe It is time that I make myself learn RxJava. Was putting it off due until the next version of our app due to the learning curve it seemed to have. Mar 11 16:11:52 theblang: It’s worth spending some time to understand the basics, even if you end up not using it Mar 11 16:12:20 I’m not completely sold on it but I use it here and there in our code base Mar 11 16:12:34 theblang: since your restAdapter is created with a interface, implement it and wrap the calls and fire a callback Mar 11 16:12:51 Can you change the property of a BuildConfig property from the command line? Mar 11 16:13:17 imalray: buildConfigField "String", "IP_ADDRESS", "\"192.168.1.1\"" Mar 11 16:13:56 imalray: once added to your gradle it will add the field to your BuildConfig class Mar 11 16:15:04 @napalm Got you. but can i change that field some how when i run "gradle build" build command or set it that way form the CL Mar 11 16:15:08 is there a way to hotswap code? Mar 11 16:15:39 Syzygy: use a DexClassLoader Mar 11 16:16:00 [2015-03-11 17:15:13 - HeadTracker_Production] ActivityManager: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=de.tu_darmstadt.fsr.headtracker/.OnlyPoseActivity } from null (pid=18996, uid=2000) not exported from uid 10044 Mar 11 16:16:03 what does that mean? Mar 11 16:16:15 imalray: CL? Mar 11 16:16:20 command line Mar 11 16:16:25 @Napalm commandline Mar 11 16:16:34 I'll google it Mar 11 16:16:38 tokam: it means you've been denied Mar 11 16:16:43 by who? Mar 11 16:16:53 tokam: the system Mar 11 16:17:03 tokam: did you add permissions to the Activity? Mar 11 16:19:03 that is my manifest file http://pastebin.com/NndPpc4p Mar 11 16:20:04 ok I had the activity twice Mar 11 16:20:13 i commented out the second one and now it works Mar 11 16:29:25 Hey everyone, can someone tell me where to place a native lib (.so file) so that I can use it in my application? I'm using gradle, and I see all sorts of hacks online, but they don't seem to work with 1.0.0 plugin. Mar 11 16:30:55 what Mar 11 16:32:15 pieces029, jniDir property sets the location of libraries when building Mar 11 16:32:24 by default it's your_project/lib Mar 11 16:32:35 so you put your files in your_project/lib/ Mar 11 16:32:58 sorry, your_project/libs Mar 11 16:33:21 you can always set it manually with something like jniLibs.srcDirs=['libs'] Mar 11 16:33:23 so like top level? Mar 11 16:33:35 I have mutli project Mar 11 16:33:52 Ahh the manual way is better :) thanks Mar 11 16:33:58 Hello Mar 11 16:34:11 How can I compile libsuperuser from command line? Mar 11 16:34:24 Any ideas? Mar 11 16:36:11 hi Mar 11 16:38:06 cristian_c: can you link to what you are talking about. I would guess gradlew assemble Mar 11 16:38:23 i want create a media player that record video at playing a movie , on pause video , pause recording and save recorded on finish movie, Mar 11 16:38:42 that should use front camera Mar 11 16:38:55 @napalm ? Mar 11 16:38:59 pieces029, ok Mar 11 16:39:20 that use for record emotions of user that view movie Mar 11 16:39:24 pieces029, https://github.com/Chainfire/libsuperuser Mar 11 16:39:31 any idea? Mar 11 16:39:36 pieces029, I usualli compile my app from command line Mar 11 16:40:05 imalray: what? Mar 11 16:40:05 how can i implement it? Mar 11 16:40:32 *usually Mar 11 16:40:55 @Napalm can you change the values of the buildConfigFields from the command line or do you always just have to update the ConfigFile manually Mar 11 16:41:34 pieces029, can I get .so or .jar file in some ways? Mar 11 16:41:43 for libsuperuser Mar 11 16:41:51 Napalm: My goal is to take pictures with the camera and save them to the ssd. (maybe without displaying a surface view). My next step will be to use these pictures for pose estimation in an AR application Mar 11 16:41:54 imalray: thats up to how you write your gradle script Mar 11 16:42:39 @Napalm - im new with gradle. How do you write the script where I can update the value from the command line? Is there something I can just google and learn real quick. Mar 11 16:42:56 imalray, gradle scripts are Groovy/Java code Mar 11 16:43:08 so just create a task that writes the value and grabs it from command line option Mar 11 16:44:12 'lo. i'm using URL.openStream() in an app. i'm passing the address of an http proxy to the emulator with -http-proxy, but the emulator is not using this proxy for http:// URLs. is there something extra i need to do to get it to use my proxy during development? Mar 11 16:44:36 i've looked online and it seems like it should be enough, but it apparently isn't Mar 11 16:44:36 @Mavrik -Thanks. got it! Mar 11 16:44:49 Actually I think you don't even need a task Mar 11 16:45:13 cristian_c: gradlew assemble there will be a jar or arr in the build outputs folder somewhere Mar 11 16:45:28 pieces029, ok Mar 11 16:45:34 imalray: http://lmgtfy.com/?q=gradle+pass+command-line+arguments+to+build Mar 11 16:45:47 imalray, just add buildConfigField "String", "MY_PARAMETER_HERE", "$myParameter" Mar 11 16:45:51 pieces029, is gradlew the one method I can use? Mar 11 16:45:52 @Napalm lol i got it now. Mar 11 16:46:00 and then you run gradle with ./gradlew assemble -PmyParameter=bla Mar 11 16:46:07 *only Mar 11 16:46:32 ah, gradlew from command line Mar 11 16:46:46 Mavrik, but gradlew is not an IDE? Mar 11 16:46:57 I thought gradle was an ide, lol Mar 11 16:47:04 I didn't know :O Mar 11 16:47:11 O.o Mar 11 16:47:18 It's a build system. Mar 11 16:49:36 sorry Mar 11 16:49:41 I'm very sorry :( Mar 11 16:50:58 Mavrik, pieces029 thanks Mar 11 16:51:01 :) Mar 11 17:00:51 there is really no idea? Mar 11 17:01:26 molavy, You explained yourself kinda badly Mar 11 17:01:38 I for one couldn't understand what you were asking Mar 11 17:01:47 Hello Mar 11 17:01:57 I’ve developed an app with 2 modules (mobile and wear) Mar 11 17:02:31 can i publish both with a single APK? or do I need to create 2 apps on the developer console and create 2 separate apk? Mar 11 17:05:22 How do I access files (using windows explorer) that were created in the getFilesDir() directory? Mar 11 17:10:12 it will be somewhere in /data/data/ Mar 11 17:15:11 can i publish both with a single APK? or do I need to create 2 apps on the developer console and create 2 separate apk? Mar 11 17:17:18 l0pher, that is exactly where it was, i just had to do a backup and then unpack it using a special unpacker to be able to view it Mar 11 17:17:38 or root my phone and void my warranty. what a PITA Mar 11 17:17:43 Gandalf84: https://developer.android.com/training/wearables/apps/packaging.html Mar 11 17:18:59 Mittendeep: You can use 'adb shell'. Mar 11 17:19:16 Forget Windows Explorer. Mar 11 17:21:43 Moter8, i want create a media player that on press play button start record from face camera too Mar 11 17:22:16 Oh, basically recording a reaction, yeah Mar 11 17:22:17 yeah, adb is the best alternative you got Mar 11 17:22:23 Not sure if that is possible Mar 11 17:26:27 would like to verify that using android support library appcompat_v7 rev21 I can use Material design on 3.0+ devices? Mar 11 17:26:28 Mittendeep: I believe you can use "run-as" to access your application files, if it's a debuggable application Mar 11 17:26:38 Has anyone worked with a web app wrapper on Amazon Fire TV stick? I can only get my app to run well in the Web App Tester and not the wrapper I wrote myself. I think it’s because they are using a different optimized browser which is cool but I can’t keep my app from sleeping the display. It needs to stay on all the time. Mar 11 17:27:45 So i either need to know how to prevent an Amazon web app from sleeping or maybe a better browser library to use for my wrapper Mar 11 17:28:38 I guess that’s what I really need to know, is there a better browser I can use in my wrapper app? Mar 11 17:28:59 I couldn’t find amazon’s optimized chronium even though i thought it should be open source right? Mar 11 17:51:24 I am re-writing an app. At first we extended the application class to have global variables and global methods. Is there a better more recommended way or should I continue to extend Application for Global behavior in app Mar 11 17:54:10 android_sandwich, extending application is fine Mar 11 17:54:59 Thanks Mar 11 17:57:45 but keep in mind the information gets destroyed once the app is destroyed Mar 11 17:57:56 if there are memory issues for example Mar 11 18:04:22 danijoo, yes I am aware of that. I wasn't sure if Singletons are recommended. I know a few years ago extending application was recommended over singletons Mar 11 18:06:38 Anyone know how to solve this IAP error? Mar 11 18:06:42 "ERROR Authentication required. You need to sign into your google account." Mar 11 18:08:49 android_sandwich: Note that extending Application isn't the only way. Having static class members is sufficient. Mar 11 18:11:32 TacticalJoke, but if I need to have variables set as soon as the app starts, so other activities can use them as needed, then I need to extend Application since it's called at the start of the app, right? Mar 11 18:19:00 android_sandwich: Not necessarily. Initializers for static fields run before the fields are accessed. Mar 11 18:20:05 Is registering the Application class with Otto and passing a Context in the posted event a bad idea? Mar 11 18:20:12 Imagine you have this: public class Foo { public static Something something = new Something(); } Anything that accesses Foo.something will not see null. Mar 11 18:20:29 theblang: not really Mar 11 18:21:19 JakeWharton: So I could use that idea then to put Snackbar creation logic in one place, so that all of my Retrofit calls can show a message to a user? Mar 11 18:21:47 android_sandwich: Some people prefer dependency-injection frameworks to all of this, though. I don't know much about that, so I can't comment much. Mar 11 18:22:27 (As far as I understand, such frameworks use statics under the hood.) Mar 11 18:22:39 uh… no Mar 11 18:31:05 how do you find out what gradle android plugin versions are available? Mar 11 18:31:23 jaana: 'No' to what? Mar 11 18:31:41 i tried android create project -g -v 1.7 -k com.example.test -t 4 -p android_gradle_file -a MainActivity and there's no error message Mar 11 18:32:13 -v 10.2 works also..... Mar 11 18:32:45 yay, updating the support library only cost me 30 minutes this time Mar 11 18:33:19 http://tools.android.com/tech-docs/new-build-system/user-guide only mentions v0.9 Mar 11 18:34:02 Norrin: This is one way, but it's not bleeding edge: http://tools.android.com/tech-docs/new-build-system Mar 11 18:34:46 This is another: https://bintray.com/android/android-tools/com.android.tools.build.gradle/view Mar 11 18:36:34 hi Mar 11 18:38:02 john67: ! Mar 11 18:39:25 TacticalJoke, thanks! Mar 11 18:41:32 wonder how ieasy it is to convert that 2015 Chome Pixel to vanilla linux Mar 11 18:43:00 g00s: Probably pretty easy, I would absolutely get one if it had a regular size disk Mar 11 18:43:02 :P Mar 11 18:43:02 TacticalJoke: DI containers don’t use statics under the hood Mar 11 18:43:38 jaana: I was talking about @Singleton stuff. Mar 11 18:43:44 If that doesn't use statics, how does it work? Mar 11 18:44:42 TacticalJoke: http://3.bp.blogspot.com/-QWWMt9EIYGY/UYh2TDoTjcI/AAAAAAAACBc/OjfEmjyi2EU/s1600/magic+meme.gif Mar 11 18:44:51 hey all, I have a GLSurfaceView and a regular SurfaceView. I do .addView() for each one to put it in my heirarchy. However, I need to set some sort of Z ordering so I can layer them. Doing `setZOrderOnTop()` for each just results in a black screen. Any clues? Mar 11 18:45:02 More seriously, they all have the concept of a graph, they hold singletons in those graphs Mar 11 18:45:10 dagger (maybe 2.0) does something where you hold onto the graph in your application, right? you could base it entirely off that instance. if you don't hold it, it gets garbage collected. Mar 11 18:45:28 you can do whatever you want with the graph Mar 11 18:45:30 it's just an object Mar 11 18:45:31 Yeah, but there has to be a static something underpinning everything, surely. Mar 11 18:45:40 well, the thread, the Application, etc. Mar 11 18:45:55 TacticalJoke: public static void main in the Zygote Mar 11 18:47:31 You’d be surprised how far you can go without ever using static :) Mar 11 18:51:09 meh crap, they didn't fix the BLE GAP service changed attribute bug in 5.1 either Mar 11 19:02:59 g00s: do you remember the issue i had with debugging in eclips? Mar 11 19:03:05 no Mar 11 19:03:23 hmmm Mar 11 19:03:37 sometimes when debugging i get to a break point Mar 11 19:03:47 and no stack is shown for the main thread Mar 11 19:03:53 super annoying Mar 11 19:04:10 thepoosh: Y u no use Android Studio? Mar 11 19:04:20 it's on the road map Mar 11 19:04:26 to be done after this release Mar 11 19:04:37 the gradle script was not compatible Mar 11 19:04:46 could be on either end of jdwp Mar 11 19:04:49 there is a pull request for that Mar 11 19:05:17 g00s & thepoosh: does the missing stack thing happen more or less often if you have the breakpoint on a method definition, vs somewhere inside the method? Mar 11 19:05:31 no, it doesn't matter Mar 11 19:05:35 /me is trying to remember when I've seen it Mar 11 19:05:44 now it's happening only in onClick Mar 11 19:08:44 thepoosh: Are you using any specific Java language features where it messes up Mar 11 19:09:15 do i have to have a test suite for tests to take place? Mar 11 19:09:33 yiati: nope, a regular onClick Mar 11 19:10:04 Nick-S: Not by typical definitions of "test suite", no. Mar 11 19:10:11 thepoosh: the stack goes missing the second you step into the onclick? Mar 11 19:10:20 or x lines into it? Mar 11 19:10:32 it's where the break point is, and it doesn't matter Mar 11 19:10:44 all through the method call chain Mar 11 19:11:31 I like this construct a lot nowadays: for (int n = stream.read(buffer); n != -1; n = stream.read(buffer)) { doStuff(buffer, n); } Mar 11 19:11:55 i can't remember the last time i used the debugger. rubby ducky ftw! Mar 11 19:12:08 I seldom used it in Eclipse, but I've found myself using it in Android Studio. Mar 11 19:12:14 TacticalJoke: do i need this ? http://developer.android.com/reference/junit/framework/TestSuite.html Mar 11 19:12:46 No, Nick-S. Mar 11 19:12:48 TacticalJoke: since i get test failed to run, i'm trying to get on with it :) Mar 11 19:12:57 so what am i doing wrong?? Mar 11 19:13:23 Let me gaze into my crystal ball and find out. Mar 11 19:14:13 maybe the problem is in the instrumentation tag at the manifest? what is android:targetPackage supposed to be? i looked at the documentation but i didnt get it Mar 11 19:14:57 g00s: this means you don't have enough qa Mar 11 19:14:58 anyone using the new AS unit testing yet? Mar 11 19:15:11 wondering if anyone outside google has got this working on a real project yet Mar 11 19:15:13 thepoosh my stuff always works Mar 11 19:15:22 Nick-S: Isn't there a wizard for creating an instrumentation-project in Eclipse with ADT? Mar 11 19:15:22 you sound like a developer Mar 11 19:15:28 not because i'm smart, but because i'm simple Mar 11 19:15:30 Norrin: Yeah. Mar 11 19:15:34 TacticalJoke: i used it Mar 11 19:15:36 TacticalJoke: prefer it over `while ((n = stream.read(buffer)) != -1) { ... }` ? Mar 11 19:15:42 groxx: Yah. Mar 11 19:15:48 I hate "int n;". :D Mar 11 19:15:51 lol Mar 11 19:15:55 there is that, yeah :) Mar 11 19:16:19 Also the expression-within-an-expression thing. Mar 11 19:16:22 g00s: here is my chrome: http://i.imgur.com/kzjEaYo.png Mar 11 19:16:41 Actually, it's more about the assignment within the expression. Mar 11 19:16:47 TacticalJoke, i did finally get robolectric to run but what i'm seeing is, it seems to be single threaded Mar 11 19:17:02 thepoosh :D does it point to IRC XD Mar 11 19:17:10 next time tell your boss you are talking to the duck Mar 11 19:17:12 i have callbacks that don't execute until all the TCs have run, even though I sleep for several seconds in the TCs Mar 11 19:17:21 Oh, I haven't used Robolectric. Mar 11 19:17:38 g00s: it points here: http://www.rubberduckdebugging.com/ Mar 11 19:17:46 I would like to ask a question about the google play store TOS that can not be answered by FAQs or the community. Can someone point me into the right direction on how and where to ask? Mar 11 19:18:04 is it true to say, in junit/robolectric, each TC is a new instance of the test class? Mar 11 19:18:22 Syzygy, ask here Mar 11 19:18:34 It's not a community question. Mar 11 19:19:07 oh. i dont know. i haven't dealt with the store Mar 11 19:19:25 It's a question about certain TOS of the store, basically a "Can I do that in my app?" Mar 11 19:19:26 sweet thepoosh http://www.amazon.com/dp/B000CIU7A8 Mar 11 19:19:26 Norrin: Yeah. Mar 11 19:19:30 How to force calling getItem() where I swipe elements in ViewPager (Support) ? Mar 11 19:19:53 TacticalJoke, that's probably my problem then... i pass 'this' for the callback but other TCs are a different 'this'.... Mar 11 19:19:55 g00s: i have one at my desk and a nice collection at home Mar 11 19:20:10 TacticalJoke: i used the wizard. and still.. ? Mar 11 19:20:18 by TC (testcase) i mean just another method in the same class, TacticalJoke Mar 11 19:20:25 thepoosh and while your thiking about the code in the shower http://www.amazon.com/InterDesign-Novelty-Shower-Curtain-72-Inch/dp/B0026RI1GU Mar 11 19:20:37 Yeah, it should instantiate the class oncd per (normal) test method. Mar 11 19:20:39 Norrin: did you get normal unit testing to work? Mar 11 19:20:40 once* Mar 11 19:20:47 * thepoosh feels someone went a bit too far Mar 11 19:20:49 Nick-S, instrumentation? no Mar 11 19:20:58 Norrin: did you try? Mar 11 19:21:10 thepoosh no way man, bring on the rubber duck wallpaper Mar 11 19:21:30 Nick-S, briefly. couldn't get it to compile. could find target. all sorts of errors Mar 11 19:21:42 Nick-S: It might be easier in Android Studio. Mar 11 19:21:46 Norrin: so you resorted to robolectric? Mar 11 19:21:47 I sound like an Android Studio commercial today. Mar 11 19:21:52 Nick-S, yeah Mar 11 19:21:58 TacticalJoke: do you... Mar 11 19:22:05 Norrin: are you using eclipse? Mar 11 19:22:08 gopar: https://mrcolley.files.wordpress.com/2014/07/rubber-ducky-2.jpg Mar 11 19:22:12 and considering AS/gradle unit testing at this point Mar 11 19:22:15 Nick-S, no Mar 11 19:22:17 g00s: Mar 11 19:22:22 sorry gopar Mar 11 19:22:29 Norrin: they have something saying its not the easiest on eclipse Mar 11 19:22:44 Nick-S: Android Studio is where it's at nowadays. Mar 11 19:22:49 It's where all the cool kids congregate. Mar 11 19:23:29 ha Mar 11 19:23:33 its where all the cool aid is for sure Mar 11 19:23:41 Android Studio _is_ the water cooler. Mar 11 19:23:44 * TacticalJoke passes Nick-S a strange-coloured liquid. Mar 11 19:24:07 DON'T DRINK FROM STRANGERS!!! Mar 11 19:24:14 TacticalJoke: yes i know, i AM a cool kid, i wanna feel it... i need android studio so badly you have no idea, every time i start eclipse there is some purple pukish feeling runs all through my body. but its not always a good time to make a switch... now is one of those times its better not, cuz my project is an SDK which means i need to tweak those gradle scripts and it won't be a a short trip Mar 11 19:24:31 TacticalJoke has support v22 been OK ? Mar 11 19:24:33 my coworker has one of those rubber ducky things on his desk Mar 11 19:24:36 I haven't tried yet, g00s. Mar 11 19:24:43 thepoosh: solid advice. strangers are rarely liquid. Mar 11 19:25:06 well, it all depends on the temperature Mar 11 19:25:07 besides, how do you go about creating a jar from a library project in gradle/android studio? Mar 11 19:25:07 I have like six srs-bsnss branches going right now. The situation is too crazy to do anything crazy. Mar 11 19:25:34 They'll all be rebased as if no divergence ever happened. Mar 11 19:25:54 ugh. why is the sdk manager insisting I install all the non-google-api system images? it's auto-selecting them every time I launch it. Mar 11 19:26:00 thepoosh, all good Mar 11 19:26:03 With "hg amend --date now" to make it look like I'm some kind of master-mind. Mar 11 19:26:20 gopar: you still got a cute rubber ducky so i guess we're good Mar 11 19:26:34 Specifically I believe my app to not contain any sexual content but others might think otherwise, before I put it in the playstore (or even code it) I would like to have confirmation. Mar 11 19:26:52 thepoosh, thats the only reason I forgive you :D Mar 11 19:27:03 yay Mar 11 19:27:30 Nick-S: For what it's worth, it's easy to do JVM unit testing in Eclipse. Mar 11 19:27:47 TacticalJoke: you mean non android? Mar 11 19:27:51 Having said that, I thought it was easy to do instrumentation testing too. Mar 11 19:27:51 Yeah. Mar 11 19:27:59 TacticalJoke Mar 11 19:28:01 ping Mar 11 19:28:09 TacticalJoke: probably it is. but it won't work Mar 11 19:28:09 android_sandwich, doesn't matter which approach you take, singleton or application context Mar 11 19:28:14 oops Mar 11 19:28:16 Nick-S, your project is a jar? so is mine... Mar 11 19:28:17 was scrolled back Mar 11 19:28:52 well... Mar 11 19:29:04 Syzygy: there's probably a legal definition of sexual content for [market X], which is probably what Google is bound by, which is probably what they'll require you to fit. if it's legal in X, but not in Y, change the maturity level / don't distribute it in market Y. Mar 11 19:29:47 Norrin: i think we should have a serious talk :) Mar 11 19:29:57 Syzygy: since you're the one deciding where to distribute, abiding by the local rules is _your_ responsibility, not google's. Mar 11 19:30:11 Nick-S, i guess so Mar 11 19:30:30 smh this gradle / testing ish is such a nightmare Mar 11 19:30:46 Norrin: Isn't it a Robolectric-specific thing? Mar 11 19:31:09 I understand that, but google has certain guidlines. e.g apps focusing on sexual content are prohibited on the playstore entirely. My app might or might not fall under that definition and I would like to know that beforehand before I even start developing it. Mar 11 19:31:26 TacticalJoke, i've tried nearly everything at this point Mar 11 19:31:41 TacticalJoke i want to create a folder than a file inside it on google drive how can i do that ? Mar 11 19:31:51 have you guys ever seen support lib break compatibility between major versions? i'm thinking i'll just use 22.+ Mar 11 19:31:51 and just overhead that my next move doesn't have a clear way to do libraries. everything is broken on this platofrm Mar 11 19:31:53 platform Mar 11 19:31:58 s9iper1: I have no idea about Google Drive. Mar 11 19:32:09 hmm Mar 11 19:32:14 any body else Mar 11 19:33:09 Syzygy: ah. "focusing on" is different than "may contain", e.g. due to user generated content. I'd imagine it's done on a case by case basis, which basically means if you're screwed, you're screwed, and there's no real prediction :| Mar 11 19:33:30 pretty much. Mar 11 19:34:10 I mean, it might be considered medical by certain people. Mar 11 19:34:12 you could pay the Google Tax (buy an I/O ticket, aka "win the lottery") and ask directly :) Mar 11 19:35:03 supposedly last years tickets were 900$ Mar 11 19:35:15 yeah, somewhere around there at least Mar 11 19:35:21 and that doesn't include the flight from europe to the US Mar 11 19:35:46 ok screw this, i go android studio Mar 11 19:36:01 Nick-S: now you're one of us. welcome to the swarm. Mar 11 19:36:09 thanks Mar 11 19:36:26 how do i make more than one project rely on a library project? Mar 11 19:36:48 God damn it, I don't want to do my project with the other professor :/ Mar 11 19:37:31 because i have a few of eclipse projects using same library, but importing a project into AndroidStudio means i will have just one project everytime and it iwlll put the libbrary inside it. and i want them all at the same level Mar 11 19:38:15 Nick-S: afaik that's a "module", and they don't have to be in the same folder as the rest of the project Mar 11 19:38:53 so can i just move the folder after its created by the importer? Mar 11 19:39:03 There's a "Contact Us" button on this page https://support.google.com/googleplay/android-developer/answer/113474?hl=en#ts=6062711,6080281 , but I haven't found a combination of options that let me actually enter a question. Mar 11 19:39:30 Nick-S: ah. you have a bunch of high-level projects in the same workspace in eclipse, I'm guessing? Mar 11 19:40:11 Nick-S: fwiw I'd recommend version control / copy everything to a backup folder before going too far. Mar 11 19:40:36 Nick-S: otherwise I would think so. I assume you'll have to correct the module afterward though. Mar 11 19:40:52 fwiw? Mar 11 19:40:56 ++ Mar 11 19:40:58 "for what it's worth" Mar 11 19:41:11 groxx: its all there don't worry Mar 11 19:41:42 fuck its so much more beautiful, the colors in AS Mar 11 19:42:22 how do i generate a jar from a module Mar 11 19:42:26 http://gtapolicemods.com/attachment.php?attachmentid=1850&d=1343984978 Mar 11 19:42:45 I'm going to _guess_ it's an export step, but unsure. Mar 11 19:43:00 Darcula is good, if you haven't tried that. Mar 11 19:43:20 Darcula? Mar 11 19:43:26 A theme. Mar 11 19:43:34 because everything needs themes Mar 11 19:43:39 I use the IntelliJ theme with the Darcula theme for the code editor. Mar 11 19:44:02 I couldn't bear to look at a white code editor anymore. ;| Mar 11 19:44:03 i am happy with what i have now its ok, i'll turn dark later Mar 11 19:44:21 oh yea, the good old days of the text mode, lets not go there YET Mar 11 19:44:39 lets not get too nostalgic now Mar 11 19:44:43 http://www.ideacolorthemes.org/themes/ Mar 11 19:45:26 ok i went darcula, what the heck Mar 11 19:45:29 tbh I like the default look :D Mar 11 19:45:38 yeah darcula --not default, woops Mar 11 19:46:35 uh this is weird, AS is stuck in some endless indexing loop Mar 11 19:47:03 g00s: you do find the fun ones Mar 11 19:47:29 i have a gift for destruction, thats why my code (almost) always works ;) Mar 11 19:47:30 g00s the "monitoring" thing? Mar 11 19:47:55 g00s: I assume you know of the "invalidate caches and restart" menu option? Mar 11 19:47:55 there aren't any processing changing the tree, i just shut it down Mar 11 19:48:02 sure Mar 11 19:48:11 just makin' sure Mar 11 19:48:21 Invalidate caches, the "heck if I know what's wrong with this thing" option :P Mar 11 19:48:29 The JLS is so easy to read. Mar 11 19:48:33 I am surprised. Mar 11 19:48:46 LSes are usually a cluster-something. Mar 11 19:49:16 Mavrik: heh. I do kinda feel like everything needs an "I don't care how long it takes, just fix yourself damnit" button Mar 11 19:49:26 :D Mar 11 19:50:05 g00s: Do you think that Kotlin thing is weird -- the feature where compile-time null safety switches off for "platform types"? Mar 11 19:50:12 ie, validate config settings / etc, delete all caches, restart yourself, hope for the best, all in one button. Mar 11 19:50:15 That irks the consistency-loving side of me. Mar 11 19:50:22 i didn't see that Mar 11 19:50:36 haven't really done much with kotlin yet, mostly just looking through the windows Mar 11 19:50:53 Yeah, same here. Mar 11 19:51:14 "When we call methods on variables of platform types, Kotlin does not issue nullability errors at compile time, but the call may fail at runtime[.]" Mar 11 19:51:32 They use an exception for Java platform types because people's code was getting messy with the defaults. Mar 11 19:51:53 s/exception/exception to the rules/ Mar 11 19:52:02 Worst word choice ever. :D Mar 11 20:01:21 hello guys, question here: There is any built-in widget or library that give me the swipe functionality of a viewPager with the simplicity of viewFlipper? I want to build a "tabbed" view, but the view have only static content (no need to fragment and other things). but i really dont wanna make a viewFlipper get the same smoothness swipe dection from viewPager. Mar 11 20:01:23 ? Mar 11 20:02:26 uhm Mar 11 20:02:32 ViewPager can page views as well. Mar 11 20:02:43 it doesn't really care, the object just has to be some kind of ViewGroup Mar 11 20:03:32 Mavrik: but i need to "set" via code right? i wanna set the layouts to show just like we do over viewFlipper Mar 11 20:04:04 yes. Mar 11 20:04:07 Why is that a problem? Mar 11 20:05:10 hehe,. Command-Q on eclipse Mar 11 20:06:26 Mavrik: not a problem at all, but i will be happy to just inflate my layout withou have to recover itens from them and set over the pager Mar 11 20:06:44 you can inflate views in PagerAdapter as well Mar 11 20:07:18 developing your own view seems a bit harder as an alternative :) Mar 11 20:12:21 anyone can help me with gradle to generate a jar file out of sources? Mar 11 20:14:27 Nick-S: maybe http://gradle.org/docs/current/userguide/java_plugin.html#N12A7C ? Mar 11 20:14:31 never tried :| Mar 11 20:15:32 reminder: don't forget to observe your retrofit observables on the mainthread if your updating ui or you will pull your hair out Mar 11 20:15:55 you're Mar 11 20:16:28 what? Mar 11 20:16:42 desmin88: http://blog.danlew.net/2015/03/02/dont-break-the-chain/ Mar 11 20:17:27 Is there a way to make the default behavior of "Refactor -> Rename" not rename all of the strings in the whole damn project Mar 11 20:18:00 it should ask you first O.o Mar 11 20:18:07 Rename for the selection? Mar 11 20:19:29 well in the "Find" screen 100 files with text occurances of "mock" shows up Mar 11 20:19:47 on top of the ONE place where the function called "mock" is used Mar 11 20:20:05 uncheck "find usages in strings" or whatever it's called Mar 11 20:20:05 Right click, tell it not to rename those Mar 11 20:20:31 Is there a way doesn't involve manually de-selecting the 100 files/ Mar 11 20:20:54 try not use the same name next time. Mar 11 20:20:58 explodes: there's a checkbox in the dialog Mar 11 20:21:18 shift-f6 -> search in comments and strings Mar 11 20:21:56 Ah, ok. I have to hit Shift+F6 x2 to get that dialog, thank you Mar 11 20:26:34 So this retrofit/rxjava api call with correctly update the screen with the new data: http://pastie.org/10019339 this one will still get the data, but wont update the screen http://pastie.org/10019341 Mar 11 20:27:31 what are you using to get lambda expressions in your code? Mar 11 20:27:35 "To observe on ...Android's main thread call observeOn(Scheduler) on the returned Observable." whoop there it is Mar 11 20:27:54 explodes, a special java8 version ofandroid Mar 11 20:28:25 just fuckin with ya, https://github.com/evant/gradle-retrolambda Mar 11 20:28:40 heh Mar 11 20:29:06 Apparently you must tell the returned retrofit observable directly which thread and not the other way around Mar 11 20:29:15 I believe in the past there were some google developers here in this channel, right? Mar 11 20:29:40 sometimes they pop in Mar 11 20:29:42 the ops are all googlers Mar 11 20:30:55 Except that shady SimomVT guy Mar 11 20:31:02 I don't like him Mar 11 20:31:09 He banned my friend Mar 11 20:31:15 HevvyMetal Mar 11 20:31:23 haha Mar 11 20:31:37 :D Mar 11 20:31:37 hmm Mar 11 20:31:58 but they're never active and I don't just want to namedrop or pm out of the blue :( Mar 11 20:32:14 hey Jake, reading retrofit docs that I pasted above, am I correct in saying you must call onbserveOn(androidmainthread) directly on the returned observable, and not else where (if i was to say, use flatmap like in the paste) Mar 11 20:32:51 It sets the subscribeOn Mar 11 20:32:58 From there you do whatever you want Mar 11 20:33:29 Okay, thanks :) Mar 11 20:33:52 I keep seeing camera_request = 1888 in camera app tutorials online but haven’t found an explaination. can someone point me in the right direction? Mar 11 20:45:46 in_deep_thought, can you explain what are you talking about? Mar 11 20:46:03 so I have an Activity called MapActivity in my app that is a little different between the two flavors. this Activity can be launched from SessionActivity that again is launched from the MainActivity. these two Activities are the same in both flavors. do I really have to duplicate these two just because MapActivity has small differences? Mar 11 20:46:42 Mavrik: so like in the example of the top answer here: http://stackoverflow.com/questions/5991319/capture-image-from-camera-and-display-in-activity . from what I can determine, this calls ACTION_IMAGE_CAPTURE which uses the default camera app and returns the captured picture Mar 11 20:46:53 oh Mar 11 20:47:00 as opposed to using your own code for a camera Mar 11 20:47:06 in_deep_thought, that code doesn't matter Mar 11 20:47:24 in_deep_thought, it's used whenever you call startActivityForResult Mar 11 20:47:35 and it's only function is that it gets returned to you in onActivityResult Mar 11 20:47:49 so if you'd have multiple startActivityForResult calls, you can distinguish between them Mar 11 20:48:26 Mavrik: do you know when using startActivityForResult, can you dictate anything about that activity? like add an image view over it? or does it just launch the default camera as it appears and then returns when there is a result Mar 11 20:49:15 in_deep_thought, it's entirely out of your control. Mar 11 20:49:27 you can pass extras if the activity reads them but that's it Mar 11 20:49:30 and set the animation. Mar 11 20:49:43 so what camera does it use? just google camera? Mar 11 20:50:01 JesusFreke they are missing just one ingredient (unicycle) https://sports.vice.com/article/get-in-the-bubble-if-you-want-to-live-bubble-soccers-improbable-rise Mar 11 20:50:21 g00s: yeah, I've seen that before :) Mar 11 20:50:21 I love Google Street View. Though I need zoom-enhance technology. Mar 11 20:50:24 looks like a blast Mar 11 20:50:26 I'd love to try it Mar 11 20:54:21 is it possible to disable the possibility to get sidemenu on an actionbar with swipe ? Mar 11 20:54:29 hey hi, i have an Eclipse project which i'd like to import into Android Studio.. but it doesn't have a build.gradle file, how would i import it? Mar 11 20:55:15 are lambdas still anonymous classes or are they better? Mar 11 21:02:57 Afzal: afaik (at the very least, on Android), they're still anonymous classes, but they're a bit stricter. they can't have state, for instance, unlike an anonymous class. Mar 11 21:03:36 I see, yeah I'm just reading up on lambdas now. Looks like they're actually useful :P Mar 11 21:03:48 supay: I guess you could create a new project in Android Studio and manually copy stuff over. Mar 11 21:03:54 It's often easier than it sounds. Mar 11 21:04:07 TacticalJoke: hm, that actually seems like a great idea Mar 11 21:04:11 will give it a shot! Mar 11 21:04:12 That's what I did, FWIW. Mar 11 21:04:30 for some reason I just read llamas not lambdas Mar 11 21:05:03 Even in cases where I can import (from another IDE), I don't. I never trust those things. :D Mar 11 21:05:18 haha, yeah Mar 11 21:05:25 they almost never seem to work right! Mar 11 21:05:35 Is there a way with rxjava to combine and collect emitted lists of the same type? Mar 11 21:05:48 Trying to add up some emitted lists all together so i can sort them at the end Mar 11 21:11:55 so Mar 11 21:12:05 desmin88, are you looking for zip() ? Mar 11 21:12:09 it seems to be a problem to use the java gradle plugin with the android one Mar 11 21:12:25 Whats up TacticalJoek Mar 11 21:12:27 Nick-S: Yeah, you can't use both. Mar 11 21:12:28 TacticalJoke Mar 11 21:12:34 Hey, drose379. Mar 11 21:12:40 How you doing? Mar 11 21:12:41 Nick-S: Y u want the Java plugin? Mar 11 21:12:41 TacticalJoke: so how do i go about the jar creation? Mar 11 21:12:56 drose379: Not too badly. Currently looking to buy a new digital piano. Et toi? Mar 11 21:13:19 haha cool, not bad, workin on the app Mar 11 21:13:21 Nick-S: Why? Mar 11 21:13:33 TacticalJoke: i wanna give my clients a jar with my sdk Mar 11 21:13:54 they just love it Mar 11 21:15:10 Nick-S: Can't you do that by creating a Java module? Mar 11 21:15:19 I thought that created a JAR. Mar 11 21:15:26 or why not an android library module? Mar 11 21:15:42 TacticalJoke: thats true Mar 11 21:15:48 TacticalJoke: you are right Mar 11 21:15:52 drose379: How is the app going? Mar 11 21:16:30 quinnjn: Yes, thank you! I was actually able to use the fact my "Lists" only have one element to map them into the one element, then use toSortedList Mar 11 21:16:37 Not bad thanks, got some new stuff wanna maybe test it out later? Mar 11 21:16:46 TacticalJoke: when i do new module its not an option Mar 11 21:17:17 oh here it is Mar 11 21:18:51 Sure, if I'm here. But I gotta run soon. Mar 11 21:20:03 Ok, be back later? Or off for the night? Mar 11 21:21:20 Oh, for the night.. Mar 11 21:21:33 .* Mar 11 21:21:53 hmm, ok Mar 11 21:21:55 How soon? Mar 11 21:24:48 TacticalJoke: i did a java project but i haven't got the android dependencies now.. :( Mar 11 21:25:28 TacticalJoke: not to speak about the api version linting Mar 11 21:27:12 TacticalJoke: see my jar is an android library but i wanna deliver it ask jar. Mar 11 21:27:23 why? becase.,.. Mar 11 21:28:07 Nick-S: maybe try adding a jar task to your normal android/android-library module Mar 11 21:28:23 JesusFreke: yes i would prefer that but i don't know how Mar 11 21:28:33 and the jar task is a java plugin task i think Mar 11 21:28:53 yeah, I'm not positive if it will work Mar 11 21:29:03 here's how you would do it in a java module: https://github.com/JesusFreke/smali/blob/master/smali/build.gradle#L92 Mar 11 21:29:41 If I have a camera app and I want to show the captured picture full screen, should I make another activity that shows this captured image? or should I just onPictureTaken setContentView(R.layout.image_preview); (just set the layout to my captured image) Mar 11 21:29:44 you mean without android? Mar 11 21:29:58 yeah, that's not an android projet Mar 11 21:30:01 project* Mar 11 21:30:08 but I suspect you could do something similar in an android project Mar 11 21:31:34 suppose i've already got android studio.. that means i already have the sdk, right? so i can use that sdk with eclipse? Mar 11 21:32:52 supay you need to open SDK manager in AS and download the API stuff Mar 11 21:33:01 then yes, you can use the same sdk with eclipse Mar 11 21:33:14 Afzal: i've done that! any idea how i can find the location of the SDK? Mar 11 21:33:40 supay, Project Structure > SDK Location Mar 11 21:33:46 Afzal: cool, thanks! Mar 11 21:34:37 what do you guys do to consolidate all of your dependency versions throughout gradle sub-projects ? i'd like to say something like compile "foo:bar:$bazVersion" so i'm always using the same bazVersion everywhere - but where should bazVersion go, settings.gradle ? Mar 11 21:34:48 JesusFreke: without the java plugin? Mar 11 21:35:04 what about this: http://stackoverflow.com/questions/19307341/android-library-gradle-release-jar Mar 11 21:37:07 I hate that "edited by" thing on SO. Leave my damn comments alone! Mar 11 21:37:16 Though occasionally it's handy, I guess. Mar 11 21:37:32 You can't edit comments, afaik Mar 11 21:37:38 just questions/answers Mar 11 21:37:47 Answers, yeah. Mar 11 21:38:25 * JesusFreke goes to find one of TacticalJoke's answers on SO :D Mar 11 21:38:49 lol Mar 11 21:38:59 I shall never reveal my username! Mar 11 21:39:03 you'd need a better name to be taken seriously than TacticalJoke ;) Mar 11 21:39:20 you are straying of the point Mar 11 21:39:28 I hate SO not letting me do crap without having answered at one point, arggg Mar 11 21:39:37 which is helping me to migrate to android studio Mar 11 21:40:09 hi folks, can anyone help me out with some Retrofit questions Mar 11 21:42:45 Nick-S: I would just add a jar task directly (e.g. like in the link I gave), rather than adding it programmatically like in that answer. But based on that answer, it sounds like either way should work Mar 11 21:43:17 i just did the stuff that was posted in the SO link and i think it worked. i am looking for the resulting jar in my filesystem now Mar 11 21:43:40 project_root/module_folder/build/outputs/etc Mar 11 21:43:42 iirc Mar 11 21:44:07 i found it Mar 11 21:44:19 in build/libs Mar 11 21:44:27 Zaxim: What if you had only one question. Would you make that your question? Mar 11 21:44:57 i am quitge happy at the moment Mar 11 21:44:59 quite Mar 11 21:45:00 Nice way of putting it TacticalJoke Mar 11 21:45:08 SO LETS MOVE ON TO THE TESTING PART!! Mar 11 21:45:11 Nick-S: This is one of the benefits of joining the cult. Mar 11 21:45:14 Im gonna start thinking of my question like that Mar 11 21:45:17 :) Mar 11 21:46:01 Hi. I am using ant, project.properties and build.xml. I need to add package android.support.v4.app to my app. I know I can simply copy the JAR file, but I feel like there must be a better way, like automatic dependencies. I know it's available when using gradle, but this project doesn't use gradle. Mar 11 21:46:19 So is there a way to do it in build.xml or project.properties? Mar 11 21:46:38 Moter|8 I dedicated an hour everyday for a couple weeks just to get to 100 points so I could downvote or something lol Mar 11 21:46:46 Well then, my question is: I keep getting a retrofit networkError: unexpected end of stream when trying to read a Response object. I think it might be because the "Content-Length" is 0 Mar 11 21:46:50 still 400 to go for 1000 :( Mar 11 21:47:05 Afzal, haha yeah Mar 11 21:47:16 I got 3 points for getting an edit approved. Hooray. Mar 11 21:48:01 I like that you lose points for downvoting Mar 11 21:48:12 discourages people from going on downvoting sprees Mar 11 21:49:31 anybody ever used J2ObjC for translating android app src into ios? Mar 11 21:53:15 gradle told me it has duplicate definition of retrofit bla bla in dex file Mar 11 21:56:00 Nick-S: if you're sure it's irrelevant: `android { defaultConfig { packagingOptions { exclude "the file" } } }` Mar 11 21:56:33 groxx: i think maybe theres some problem with the way the build.gradle is defined Mar 11 21:57:14 Nick-S: ah. unfortunately I can't spend much time helping at the moment :| maybe in a few hours Mar 11 21:57:25 groxx: hopefully i'll be asleep Mar 11 21:57:39 i'll try to google it Mar 11 21:59:34 I've got a BaseActivity that all my Activities inherit from. Is there a way to put a click listener for the screen? Mar 11 21:59:39 I know that setcontentview is usually called in oncreate. but can I call it twice? once when it is created and later to change the view to a different layout? Mar 11 21:59:42 but its clear that the libraries i use in my library module are being exported to the using project Mar 11 22:01:08 What do you guys think would be an appropriate material icon (http://google.github.io/material-design-icons/) to indicate the concept of 'latest' or 'newest' items Mar 11 22:01:47 For gradle-mvn-push how can I get all of my source into the classpath for the androidJavadocs task Mar 11 22:02:12 I can't find any gradle documentation to tell me about any functions in project.files(android.getBootClasspath().join(File.pathSeparator)) Mar 11 22:03:25 I'm calling "./gradlew clean my-sub-project:androidJavadocs" and getting all kinds of Class X not found for dependencies Mar 11 22:03:43 Although it does finish 'successfully' Mar 11 22:09:17 desmin88: whatshot' Mar 11 22:09:39 thanks! didnt even see it! Mar 11 22:10:22 wait can I use a viewFlipper instead? so onPictureTaken flip to the other view with the captured image? or does the viewFlipper have to be totally defined at the start of the activity? Mar 11 22:12:01 in_deep_thought you could use two different fragments and then replace the fragment when the photo is taken, depends on what you wanna do with each "view" Mar 11 22:12:20 Why not use the camera intent though? Mar 11 22:12:25 Afzal: is that better than a viewFlipper? Mar 11 22:12:51 Afzal: I want to add an image view over the camera preview. I also want to control the countdown for the user Mar 11 22:12:56 It would be if you plan to do things unique to each state. Otherwise you might end up putting code for both states in one place Mar 11 22:12:59 instead of letting them capture the photo themselves Mar 11 22:13:02 Nick-S, smh damn can of worms Mar 11 22:13:21 this gradle ish seems to be so half baked Mar 11 22:13:21 i am building my project in android studio Mar 11 22:13:26 i have problem of dependencies Mar 11 22:13:41 Nick-S exclude not working for you? Mar 11 22:13:54 why do i need to exclude? its only defined in the module? Mar 11 22:13:56 !?!? Mar 11 22:14:07 Because the module needs its dependencies (?) Mar 11 22:14:24 Oh, it's only defined in the module, not in your app's build.gradle? Mar 11 22:14:30 build is working Mar 11 22:14:42 for the library Mar 11 22:14:44 runtime? Mar 11 22:15:07 (I think I didn't understand the problem) Mar 11 22:15:44 but when i hit the run button it fails Mar 11 22:15:50 Afzal: ya Mar 11 22:16:00 i'll paste it in a pastebin Mar 11 22:16:15 it only happens when i hit the run buton Mar 11 22:16:21 ugh wtf, xml autocomplete for support widgets messed up >_<>_<_>_<>_< Mar 11 22:16:30 do they not have test cases for this shit >_< Mar 11 22:17:05 omg i did clean and now it works Mar 11 22:17:09 lol Mar 11 22:18:08 #java Mar 11 22:18:21 JesusFreke hm trying to do this with 'depends' https://github.com/JesusFreke/smali/blob/master/build.gradle#L85 .... but in my subprojects, when i say something like "compile depends.xxx" i get an error : "cannot convert a null object to an object of type Dependency" ... any ideas? Mar 11 22:18:34 seems like its working Mar 11 22:18:40 what's the verdict? Newline after annotation or no new line? :p Mar 11 22:18:47 now i can move on to testing Mar 11 22:20:01 JesusFreke ah, you have it in a subprojects {} block Mar 11 22:20:52 yeah, it's in subprojects, so each project gets all of those vars Mar 11 22:21:50 but yeah, it's nice having all the versions centralized like that Mar 11 22:23:00 JesusFreke have you seen other ways of doing that ? Mar 11 22:23:08 I haven't looked Mar 11 22:23:12 k, thanks Mar 11 22:25:57 why is it that every time I switch between flavors, gradle complains 'error: package R does not exist' ? I can get rid of this by importing my app's own R but I would have to do that every time I switch between flavors and that makes no sense Mar 11 22:28:17 Afzal: are you sure fragments are the right way to do this? It seems they are best for having 2 fragments on 1 page rather than creating a new one inside of the same activity when the first one is finished. Would I just use setContentView in the 2nd fragment to redefine the view? Mar 11 22:28:27 or would I use viewFlipper even in this case? Mar 11 22:29:06 If you have to use ".setDisplayHomeAsUpEnabled(true)" with a drawer toggle to get the hamburger, how would you get the actual back arrow to appear on compatv21? Mar 11 22:32:10 desmin88 it gets the default arrow if you do .setDisplayHomeAsUpEnabled(true) Mar 11 22:37:56 in_deep_thought the way I see it, you'll have to call the camera stop stuff and then flip the view and do whatever you want with the view Mar 11 22:42:20 omg docker is awesome Mar 11 22:42:25 might as well tear down the camera fragment then do whatever with the photo Mar 11 22:42:25 has to be said Mar 11 22:45:26 show do i get a signed apk with android studio Mar 11 22:45:40 Nick-S double-tap shift, search for sign apk Mar 11 22:46:07 memorion: I'm getting really weird behavior with the toolbar on appcompat set as the actionbar. It won't swap between hamburger or back arrow, and i'm not getting back arrow clicks in my optionselected method Mar 11 22:46:36 it asks me to generate a key Mar 11 22:46:44 i didn't do this with eclipse... Mar 11 22:47:06 Nick-S erm, browse to a keystore Mar 11 22:47:10 yes, generate a key. and make sure you keep it somewhere safe. Mar 11 22:47:17 Pretty sure you did it with eclipse too Mar 11 22:47:19 if you lose the key, you won't be able to update the application Mar 11 22:47:20 like in git or not? Mar 11 22:47:25 Afzal: have not Mar 11 22:47:31 not if it's a public repository :) Mar 11 22:47:34 lol Mar 11 22:47:38 desmin88 never tried the custom drawable but https://gist.github.com/anonymous/449dd70e73bfe6eaa47e get's me the correct default behaviour, not sure if that helps you Mar 11 22:47:40 i only need it for crashlytics Mar 11 22:47:50 for crashlytics beta Mar 11 22:47:55 You don't need to sign apk for crashlytics, do you? Mar 11 22:48:04 all apks have to be signed Mar 11 22:48:13 only for play store :p Mar 11 22:48:17 no Mar 11 22:48:22 you can't install an unsigned apk Mar 11 22:48:23 debug keystore. Mar 11 22:48:37 when building a "debug" apk, it uses a pre-generated keystore specific to that machine Mar 11 22:48:43 Right okay, yes Mar 11 22:49:11 when building a release apk, you have to generate your own, so you can fully control its creation Mar 11 22:49:30 you have to provide your own* Mar 11 22:50:53 I threw my keystore in my lastpass database :) Mar 11 22:51:10 be gentle with your keystores, JesusFreke Mar 11 22:51:46 it's just a binary blob. it's quite resilient to being thrown about Mar 11 22:51:52 it just bounces back into shape Mar 11 22:52:07 memorion: So, I can get the hamburger to change to the back arrow. I have a frag. backstack listener: http://pastie.org/10019664 Mar 11 22:52:25 Adding a fragment changes it to a back arrow, but removing the fragment gets rid of the hamburger/back arrow altogether. Mar 11 22:54:23 desmin88 sorry, never tried something like that :/ Mar 11 22:59:35 Guys, when in a fragment isnt getActivity() concidered context? Mar 11 22:59:42 yes Mar 11 22:59:46 an Activity is-a Context Mar 11 23:00:56 A method im using needs context Mar 11 23:01:13 and whenever I put in getActivity() its saying cant cast context to Fragment Mar 11 23:01:41 an Activity is /not/ a Fragment Mar 11 23:01:46 and a Fragment is /not/ a Context Mar 11 23:02:12 Isnt getActivity() getting me the context though? Mar 11 23:02:56 The method or whatever isn't expecting a context, it's expecting a fragment Mar 11 23:03:03 at least, based on the message you gave Mar 11 23:03:23 Actually, Mar 11 23:03:29 memorion: im just trying to recreate with one fragment what a new activity would be like with up navigation Mar 11 23:03:31 it looks like its expecting an activity Mar 11 23:04:38 JesusFreke does this make sense Mar 11 23:05:49 desmin88 sorry, I only started getting serious with android-dev last week I'm afraid I can't help you much Mar 11 23:06:06 np thanks for the help Mar 11 23:06:46 i'm trying to call a simple system() libc call from a JNI function on a rooted device.. no matter what i run (even system("/system/bin/sleep")), system always returns 32512.. using fork/exec also fails to execute a process.. this is on 4.4.4. anyone suggest a debugging path? Mar 11 23:07:31 drose379: I can only go by the information you've given Mar 11 23:07:43 Fixedm thanks Mar 11 23:07:45 the error message is clear that you're attempting to cast an Activity to a Fragment Mar 11 23:07:48 fixed* Mar 11 23:12:36 This is odd. Doing setDisplayHomeAsUpEnabled(true) then setDisplayHomeAsUpEnabled(false) immediately after it removes the icon completely, no hamburger or back arrow. Mar 11 23:13:51 migrating to android studio from eclipse gets me flavors but also lots of new errors and troubles. sigh. Mar 11 23:14:01 desmin88 isn't that expected? Mar 11 23:15:08 im not sure, but i cant get the hamburger icon to come back Mar 11 23:15:38 how did you get it there in the first place? Mar 11 23:15:53 setHomeButtonEnabled(true) Mar 11 23:16:03 Calling that again doesnt bring it back Mar 11 23:16:29 oh I see Mar 11 23:18:12 desmin88 just guessing from the docs maybe setHomeAsUpIndicator(Drawable indicator) Mar 11 23:18:12 ? Mar 11 23:19:24 getDrawerToggle().syncState() will bring the hamburger back again.. Mar 11 23:29:08 in Activity onCreate() will I get a bundle if my process is killed by the System... or only on config changes like rotation? Mar 11 23:31:00 memorion: Figured it out. I used the wrong actionbardrawertoggle constructor Mar 11 23:31:01 Yes, you'll get a Bundle in that case. Mar 11 23:31:14 eghdk, as I understand it: if the system killed your instance, when it is recreated you will get a bundle (see: http://developer.android.com/training/basics/activity-lifecycle/recreating.html ) Mar 11 23:32:04 desmin88 nice, care to tell my which one is the right one? Mar 11 23:32:30 If you set your toolbar as your activitys actionbar, dont use the constructor that takes a toolba.r Mar 11 23:32:43 TacticalJoke: and miketo this is if my process is killed or if my activity is killed by the system? or both? Mar 11 23:32:54 Both. Mar 11 23:33:07 desmin88 thanks! Mar 11 23:34:56 question to anyone: how can i save a reference to an object ? [i *think* i've got a runnable postDelayed()'ing itself outside the life of any of my framework objects(activity, service) -- this is what i want, but how to i get a hold on it when activity is recreated?] Mar 11 23:36:41 memorion: Scratch that, i was right about which constructor to use but still getting weird behavior. Mar 11 23:42:25 there is nothing i dread more than modifying my database Mar 11 23:43:41 setDisplayHomeAsUpEnabled(false) gets rid of the hamburger completely, not return it from back arrow to hamburger. Mar 11 23:46:26 miketo: What object? Mar 11 23:47:14 a runnable (used to update UI) Mar 11 23:47:17 Does it make more sense to save a Calender object as miliseconds or convert it to a jsonobject? Mar 11 23:47:47 If you've posted the runnable to the message queue, the queue should hold a reference to it (making it not subject to garbage collection). I think, anyway. Mar 11 23:48:00 DadFoundMy: millis, probably, unless the type of calendar is important. Mar 11 23:48:00 TacticalJoke, although i realized i was making a simple mistake: i should stop the runnable in Activity.onPause() (then restart it in onResume() ) Mar 11 23:48:24 if this is some bug in appcompat im gonna die. Mar 11 23:48:51 miketo: Why? In my app, I don't necessarily pause a Runnable just because of rotation. Mar 11 23:48:55 TacticalJoke, yea, it was running every .5 sec (even though there were no activities/services instantiated) Mar 11 23:49:05 Though I guess in many cases it would make sense. Mar 11 23:49:19 I see. Mar 11 23:49:54 when activity is recreated, i get a new runnable -- while old one is still running in background, lost :) Mar 11 23:51:14 I see. I guess you can call Handler.removeCallbacks(Runnable). Mar 11 23:53:42 TacticalJoke, cant :D thats what i was using, but it will be a reference to the new runnable crated in onCreate() of this new instance of Activity. the problem is getting the *old* reference to the old object created in the old activity before it was destroyed Mar 11 23:54:02 You could do it in onPause. Mar 11 23:56:05 yea, i'm removeCallbacks()'ing in onPause() -- if it's left running then there is no way to stop it later Mar 11 23:56:43 although even doing that i'm getting the runnable running twice (instantly) instead of once every post Mar 11 23:56:54 Has anybody else had their hamburger in the toolbar disappear after setDisplayHomeAsUpEnabled(true) then later setDisplayHomeAsUpEnabled(false)? Mar 11 23:57:32 hamburger? Mar 11 23:58:24 three lines vertically Mar 11 23:58:45 i.e what would normally open the nav drawer when clicked Mar 11 23:58:58 a photo-realistic representation of what McDonalds sells, yeah Mar 11 23:59:05 lol. Mar 11 23:59:57 My simple backstack listener "setDisplayHomeAsUpEnabled(count > 0)" properly adds the back arrow when a fragment is added, but when its remove, it removes the back arrow but doesnt add the hamburger. Mar 12 00:00:00 lol Mar 12 00:16:15 Heres a gif of what I'm talking about: http://gfycat.com/SatisfiedYellowishHypacrosaurus it just disappears for no reason Mar 12 00:19:06 desmin88: love that first result Mar 12 00:19:32 lol Mar 12 00:19:57 desmin88: dunno. did I see earlier that syncState() (or whatever) fixed it though? since it's changing something that appears in the same place, that would mostly make sense to me. Mar 12 00:20:02 if annoying Mar 12 00:20:23 ah, or was that something else? Mar 12 00:20:52 miketo: If you're posting the Runnable in both onCreate and onResume it'll be posted twice. Mar 12 00:22:27 groxx, well syncstate fixed it Mar 12 00:22:30 but i have no idea why Mar 12 00:23:51 argh math! Mar 12 00:24:07 TacticalJoke, absolutely right. thats what was happening (just saw your message) Mar 12 00:24:08 can't figure out a grid layout manager enter animation math >_< Mar 12 00:24:47 http://hastebin.com/hilewuwejo.java Mar 12 00:25:07 okay so this code animates each item one by one in a 3 x 6 grid Mar 12 00:25:22 but I want to do it like this http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0B08MbvYZK1iNTGRLb2Zud2RUNFE/animation-meaningfultransitions-hierarchicaltiming-4do_large_xhdpi.webm Mar 12 00:25:55 (this is super slowed btw) Mar 12 00:30:21 Afzal: what's the math not working? Mar 12 00:30:53 groxx I honestly have no clue what's common between position 1,3 to run them together, or between 2,4,6 etc Mar 12 00:31:29 ah Mar 12 00:32:01 you know about modulo, right? it'll be a part of the answer Mar 12 00:32:37 yeah, I think that's how I can get the Y pos, and the X pos would be 3 mod position - 3 or something Mar 12 00:33:08 then get the bigger one out of that an animate it. That way (1,0), (0,1) and (1,1) would animate together Mar 12 00:33:09 y pos = x / 3, x pos = x mod 3. but yeah. Mar 12 00:33:36 x / 3? wouldn't that be fractions? Mar 12 00:33:41 yup Mar 12 00:33:51 o.O Mar 12 00:34:14 unless I'm thinking about this in the wrong orientation. does it lay out views to fill a row first, then move to the next row? Mar 12 00:34:23 yeah Mar 12 00:34:25 or is it the opposite, where it fills a column first? Mar 12 00:34:27 but x seems right Mar 12 00:34:44 well it goes 0, 1, 2, then next row, 3, 4, 5 Mar 12 00:35:33 ahhh I see! Mar 12 00:35:37 fractions (if using ints) are "floored" to the next-smaller int. so 0/3 = 0, 1/3 = 0, 2/3 = 0. then on the next row, 3/3 = 1, 4/3 = 1, 5/3 = 1. etc. Mar 12 00:35:52 yeah, in this case, it's probably the next higher though Mar 12 00:36:09 or actually no Mar 12 00:36:11 you're right Mar 12 00:36:14 damn, thanks!! Mar 12 00:37:34 fwiw that animation looks to me like "delay * (row_number + column_number)". item 0 has no delay, items 1 and 4 have the same one-step-larger delay, 2, 5, 7 have 2 steps larger, etc. it's essentially "delay * distance_from_0". Mar 12 00:39:19 oh snap! It was about the start delay all along!! Mar 12 00:39:40 (this is why I'm practicing animations lol, I suck at them) Mar 12 00:40:09 Afzal: it takes time to think fluently in them, yeah. also other drawing-related code. Mar 12 00:40:46 yup, btw, for the translation stuff, is top-left 0,0? Mar 12 00:40:58 top-left of the animating view I guess? Mar 12 00:41:48 generally Mar 12 00:44:20 It works!! Mar 12 00:47:03 w00t :) Mar 12 01:01:34 What happens to the fragment backstack on activity rotation? I'm getting backstackcount and its zero after I rotate, but the fragment in the backstack is still visible. Mar 12 01:12:32 so beautiful :/ http://streamable.com/bd2k Mar 12 01:12:59 :') Mar 12 01:13:05 Afzal: nice :) Mar 12 01:13:48 thanks for the help groxx, next stop, this: http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0B08MbvYZK1iNT2dLWHE1NG8tV00/animation-meaningfultransitions-consistentchoreography-do1_large_xhdpi.webm Mar 12 01:14:12 Afzal: easy. "starting_location / 0" Mar 12 01:14:31 lol, divide by zero? Mar 12 01:17:49 I guess that was a joke that I partially believed. lol Mar 12 01:18:21 :) Mar 12 01:36:49 christ why is the tool bar back arrow misbehaving so badly. Mar 12 01:39:12 wrong parent in the manifest Mar 12 01:39:26 i only have one activity in my app Mar 12 01:44:59 desmin88: misbehaving how Mar 12 01:45:00 desmin88: you need hamburger helper ;) Mar 12 01:45:32 how do you flash a zimage Mar 12 01:46:29 linuxuz3r: go to #android-root or #xda-devs Mar 12 01:47:20 Napalm, I'll set the back arrow to show on fragment creation, rotate and it goes back to hamburger Mar 12 01:47:30 hi there , do you know any working tutorial about how to compile a hello world application with the ndk, i am at loss here, nothing i am doing is working. And besides it seems you can't compile directly with android studio! Mar 12 01:47:34 thanks Mar 12 01:48:20 desmin88: thats because you hooked it up with the ActionBarDrawerToggle Mar 12 01:48:41 oh Mar 12 01:48:42 damn Mar 12 01:48:53 desmin88: remove the call to syncState in your Activity Mar 12 01:49:02 should resolve it i think Mar 12 01:49:36 the fragment is probabaly causing an options menu invalidation and that it kicking off the syncState Mar 12 01:50:33 desmin88: i assume your getting the support action bar and toggling the state there? Mar 12 01:50:40 yes Mar 12 01:50:54 yea, ok, so hows the sync state doing? Mar 12 01:51:20 Removing sync state lets me properly have the back arrow persist through rotation but i dont get the hamburger as default Mar 12 01:51:46 you have to only call syncState when savedInstanceState == null Mar 12 01:52:38 i love you Mar 12 01:52:59 thats been the problem this whole time Mar 12 01:57:03 Yeah, loving Napalm is always a problem Mar 12 01:57:26 :O Mar 12 01:58:06 Hmm. If I only syncState when savedInstanceState == null, the hamburger disappears on rotation w/o even touching backarrow yet Mar 12 02:00:46 The recording is janky but it shows what I mean: http://gfycat.com/EmotionalRevolvingAsianconstablebutterfly Mar 12 02:06:17 desmin88: when were you calling syncState Mar 12 02:06:25 onPostCreate Mar 12 02:06:30 just that? Mar 12 02:06:33 yes Mar 12 02:06:56 I have a feeling there is also a call to the drawer toggle during onPrepareOptionsMenu Mar 12 02:07:21 built in to android? my fragment doesn't have an options menu Mar 12 02:07:25 no Mar 12 02:07:28 i mean in your code Mar 12 02:08:09 unless find usages isnt working there is only 1 usage of syncstate in my app Mar 12 02:08:26 ok i just checked Mar 12 02:08:29 https://developer.android.com/training/implementing-navigation/nav-drawer.html Mar 12 02:08:37 it was isDrawerOpen i was thinking of Mar 12 02:08:45 do you have a call to that? Mar 12 02:08:55 wait a sec Mar 12 02:09:00 explain your problem again Mar 12 02:09:09 you loose the up arrow when you rotate Mar 12 02:09:16 I lose the hamburger when I rotate Mar 12 02:09:32 ok stop a sec Mar 12 02:09:46 put the onPostCreate -> syncState back in Mar 12 02:09:51 now you get your icon Mar 12 02:09:58 but its not the back arrow when you rotate? Mar 12 02:10:14 you mean without the null check of savedinstancestate Mar 12 02:10:18 yes Mar 12 02:10:22 let me see Mar 12 02:10:39 desmin88: are you using a DrawerLayout aswell? Mar 12 02:10:45 Yes Mar 12 02:11:23 check your Activity's imports.. is it importing v7 version of ActionBarDrawerToggle Mar 12 02:11:41 yes Mar 12 02:11:59 pastebin the code you use to construct it Mar 12 02:12:03 Heres the behavior without the null check: Open app, see hamburger. Rotate app, hamburger remains. Navigate to fragment, see back arrow. Rotate app, see hamburger - should be arrow. Mar 12 02:12:25 desmin88: ok good. Mar 12 02:12:32 pastebin said code Mar 12 02:12:36 http://pastebin.com/TJp8JgQA Mar 12 02:13:11 so your doing this within the DrawerLayout Mar 12 02:13:23 are you using your own Toolbar? Mar 12 02:13:41 I have a base toolbar in my activity set as the supportactionbar Mar 12 02:13:49 thats your problem Mar 12 02:13:57 your using the wrong constructor Mar 12 02:13:58 and yes, this occurs in the DrawerLayout, through a method called in my activity - http://pastebin.com/dHcDTkp8 Mar 12 02:14:06 ActionBarDrawerToggle (Activity activity, DrawerLayout drawerLayout, Toolbar toolbar, int openDrawerContentDescRes, int closeDrawerContentDescRes) Mar 12 02:14:13 this is the one you should be using Mar 12 02:14:39 Let me try that. Mar 12 02:14:53 pass your Toolbar into your setupDrawer method and give it to the DrawerToggle Mar 12 02:15:04 if it doesnt fix it.. its one "correction" that still needs to be made Mar 12 02:15:37 the answer if it doesnt fix it so it "automatically" uses the right state.. is that you can save the state and adjust it Mar 12 02:16:04 Yeah the back arrow still goes after on rotation Mar 12 02:16:09 ok Mar 12 02:16:18 so do you understand whats causing the problem Mar 12 02:16:37 the call to syncstate? Mar 12 02:16:41 the toggle is maintaining the state of the drawer in the arrow icon and you are trying to set it manually Mar 12 02:17:11 ahh Mar 12 02:17:50 If the navigation drawer slides over the toolbar, do I even need the toggle? Mar 12 02:17:52 im just looking to see if you can stick a delgate in the middle Mar 12 02:18:24 Because I though the purpose of the toggle was to change the back arrow to hamburger depending on nav drawer open or close Mar 12 02:18:41 But if it slides over the toolbar (the hamburger/backarrow) then what is the point? Mar 12 02:19:11 desmin88: https://www.youtube.com/watch?v=V_zrWhIrDgI Mar 12 02:19:16 unless you want one like that Mar 12 02:19:55 I've never seen a material nav drawer like that Mar 12 02:20:10 http://www.google.com/design/spec/patterns/navigation-drawer.html Mar 12 02:21:13 well then Mar 12 02:21:26 if you want it like that.. then no it doesnt Mar 12 02:21:32 just have it manually toggle the icon Mar 12 02:21:57 I think that would easier than the other way Mar 12 02:22:10 what would Mar 12 02:22:19 Not having a drawertoggle at all Mar 12 02:22:26 thats what i just said Mar 12 02:22:47 I know im agreeing Mar 12 02:23:01 no, you're right! Mar 12 02:23:11 ok i found a fix Mar 12 02:23:18 to have it work with both Mar 12 02:23:21 if your interested Mar 12 02:23:24 do tell Mar 12 02:23:38 override ActionBarActivity.getV7DrawerToggleDelegate Mar 12 02:24:25 call the super and pass it into an anonymous instantiation of the ActionBarDrawerToggle.Delegate and play man-in-the-middle Mar 12 02:25:03 when the toggle tries to call isNavigationVisible you can return a new boolean based on your manual state Mar 12 02:25:20 oh wait Mar 12 02:25:28 hmm, its not used for that Mar 12 02:25:34 uhm.. screw it Mar 12 02:25:36 whatever Mar 12 02:25:58 lol Mar 12 02:26:38 I mean if the nav drawer slides over the toolbar, then I don't really need the animation on slide from the drawer toggle anyway Mar 12 02:26:40 how are you toggling it at the moment Mar 12 02:26:57 getSupportActionBar().setDisplayHomeAsUpEnabled(toggle); Mar 12 02:27:00 yes Mar 12 02:27:00 ? Mar 12 02:27:14 I set it to true in my fragment that is supposed to be able to back-navigate Mar 12 02:28:05 when are you setting it Mar 12 02:28:21 onResume of your Fragment? Mar 12 02:29:02 no Mar 12 02:29:10 move it to there Mar 12 02:29:14 should solve it Mar 12 02:30:20 .. Mar 12 02:30:31 yup. Mar 12 02:30:54 solves the immediate issue because the fragment's onResume is being called after the syncState and what not Mar 12 02:31:00 but if you pull out the side menu Mar 12 02:31:06 whilst that fragment is on the screen Mar 12 02:31:11 it will go back to a hamburger Mar 12 02:31:30 because you dont have a way to & the to states together Mar 12 02:33:12 just dump the toggle Mar 12 02:33:22 right.. im off Mar 12 02:35:14 if i open the nav drawer on the fragment with the back arrow it doesnt reset Mar 12 02:35:41 but I think ill get rid of the toggle anyway Mar 12 02:35:59 i have an app post the time to my php script , the problem is the app post the time in this format : "TIME":"ah:ea:`a" what is this ? Mar 12 02:36:06 and the date is : "DATE":"b`ae-`c-aa" Mar 12 02:36:13 "DATE":"b`ae-`c-aa","TIME":"ag:bh:e`" Mar 12 02:36:21 any idea what is this format ? Mar 12 02:36:52 a screwed up server Mar 12 02:36:52 lol Mar 12 02:37:17 beshoo: http://php.net/manual/en/function.date.php Mar 12 02:42:08 where to look ? Mar 12 02:42:30 beshoo: http://php.net/manual/en/function.date.php Mar 12 02:42:49 right, im off now Mar 12 02:42:51 bye Mar 12 02:42:54 app send this kind of letters inested of numbers Mar 12 02:43:17 wait Mar 12 02:43:22 lol Mar 12 02:43:26 its not a format.. you recieve them Mar 12 02:43:30 well thats a easy code Mar 12 02:43:57 i am a php programmer and this ios the 1st time i sow this kind of numbers Mar 12 02:45:12 what the function to convert this latters to numbers Mar 12 02:45:17 its not Mar 12 02:45:21 they are trying to be clever Mar 12 02:45:27 here one sec.. want it in PHP? Mar 12 02:46:00 yes Mar 12 02:47:13 Napalm /? Mar 12 02:47:31 wait Mar 12 02:47:35 ok Mar 12 02:49:25 HIYOOOOOOOOO Mar 12 02:49:26 ok Mar 12 02:49:43 so what I'm trying to do, is get my app to do a countdown.. like "3... 2... 1..." Mar 12 02:49:49 and display those numbers every second Mar 12 02:49:53 what i have done, doesnt work Mar 12 02:50:03 here, lemme pastebin Mar 12 02:50:16 thats a lot of times you hit enter Mar 12 02:51:00 http://pastebin.com/jj1fc9Wc Mar 12 02:52:22 Napalm , i asked in #php , thay have no idea Mar 12 02:52:39 beshoo: he said wait Mar 12 02:52:49 cracks Mar 12 02:52:51 cracked Mar 12 02:53:06 LOL :) Mar 12 02:53:06 http://pastebin.com/SahQwatW Mar 12 02:53:13 2015-03-11 17:28:50 Mar 12 02:53:14 lol Mar 12 02:53:17 mega hard Mar 12 02:53:39 let me test please Mar 12 02:53:53 test.. fuck you... my codez is 1337z Mar 12 02:53:56 lol Mar 12 02:54:00 test away matey Mar 12 02:54:14 ok Mar 12 02:54:17 desmin88: check it Mar 12 02:54:19 can you fix my thing now Mar 12 02:54:41 sdailooK: do you think there is some sort of line to be spoonfed the answers Mar 12 02:54:42 sdailooK: we are not here to fix your crappy code Mar 12 02:54:56 look im just asking a simple question Mar 12 02:55:10 Napalm: breaking the mega codez can be difficult but you make everything look easy ;) Mar 12 02:55:14 sdailooK: you need to create a Handler() and paste it a runnable or just use a http://developer.android.com/reference/android/os/CountDownTimer.html Mar 12 02:55:15 why are you being so antagonistic Mar 12 02:55:30 Napalm: he could use rxjava heh Mar 12 02:55:33 sdailooK: i now retract my help :P Mar 12 02:56:00 WAW Mar 12 02:56:09 thats what i want to hear Mar 12 02:56:10 :) Mar 12 02:56:31 hes so wowed he WAW'ed Mar 12 02:56:40 lol Mar 12 02:56:52 aight Mar 12 02:56:53 thanks Mar 12 02:57:13 beshoo: http://www.asciitable.com/index/asciifull.gif < check this and you can figure out the math Mar 12 02:57:20 sdailooK: it doesn't even like you have an android question, more a knowledge of java in general question Mar 12 02:57:34 AHA Mar 12 02:58:07 Yes. HOWEVER this android class, countdowntimer, is what i need Mar 12 02:58:11 it POST as ascii Mar 12 02:58:14 lol Mar 12 02:58:19 desmin88: i can read his mind Mar 12 02:58:23 Napalm THANK YOU Mar 12 02:58:28 beshoo: its not ASCII Mar 12 02:58:29 you made my day Mar 12 02:58:31 well Mar 12 02:58:35 not in that sense Mar 12 02:58:36 * sdailooK farts Mar 12 02:58:40 its still probably UTF8 Mar 12 02:58:48 i understand Mar 12 02:58:51 they just decided to try and "encrypt" it Mar 12 02:58:52 and fail Mar 12 02:59:00 thank you for the script as well Mar 12 02:59:20 Napalm: So then the issue is dumping the drawertoggle is you dont get the hamburger icon at all unless you set it yourself. Setting it as the logo of the toolbar it doesn't look right :/ Mar 12 02:59:50 you dont set it as a logo Mar 12 02:59:54 you set it as the nav icon Mar 12 02:59:58 ahh fuck me **** ENDING LOGGING AT Thu Mar 12 02:59:58 2015