**** BEGIN LOGGING AT Thu Apr 30 02:59:58 2015 Apr 30 03:00:03 Pwnies: that's kinda an odd question. why would you expect it to? Apr 30 03:00:04 I think I want to do something funny here.. I want a scrollable edittext inside of a scrollview.. Apr 30 03:00:27 but I also want the edittext to remain editable Apr 30 03:00:49 I should probably just not do that? What do you guys think? Apr 30 03:00:57 grabbing api data off the ui thread & being able to use a syncadapter/alarm with it Apr 30 03:01:20 simplifying, i know.. Apr 30 03:02:07 Also.. if I get too many lines in there, the scrollview starts cutting off the button thats on the bottom.. I can actually post example this time... Apr 30 03:02:50 Pwnies: services are lifecycle objects. I wouldn't expect an api wrapper to change how my app's process behaves. Apr 30 03:04:41 that's what confuses me about intentservice; it does its job, then dies a nice, quiet death Apr 30 03:04:46 http://pastebin.com/prFEchW4 this is the XML Apr 30 03:05:02 Pwnies yes, its a job-queue work load Apr 30 03:06:22 http://pastebin.com/g5mdV3Bn this is the code Apr 30 03:06:25 well fragment Apr 30 03:07:05 if anyone has any ideas let me know please Apr 30 03:07:46 otherwise I guess I'm taking that field and making it a dialog box to edit... Apr 30 03:08:18 Pwnies: that's the point. say you have a thing that you want to run occasionally, like to refresh a resource in the background. your process should stay alive until it completes, because you claim it's valuable. but as soon as it's done, your process no longer matters, and you should let other, more important processes take your place if necessary. Apr 30 03:12:21 hm. alright. thx for differntiating groxx Apr 30 03:13:44 what native tasks does retrofit replace then? asynctask + parsing + serializing? Apr 30 03:13:53 all three Apr 30 03:16:00 Should a MoPub network be listed as an ad source in an ad unit, or is it automatic? Right now all I see is marketplace and not admob Apr 30 03:18:04 when storing an api response into a database, is it always best to serialize the response, or would you just write the raw response to your db? Apr 30 03:19:20 storing it as string/int/real/etc. Apr 30 03:19:35 even though string is an object. Apr 30 03:23:38 g00s: apple watch has issues with tattoos ... interesting ... Apr 30 03:23:54 O.o Apr 30 03:24:19 https://support.apple.com/en-ca/HT204666 flick down to "what else affects your reading" Apr 30 03:24:30 Permanent or temporary changes to your skin, such as some tattoos, can also impact heart rate sensor performance. The ink, pattern, and saturation of some tattoos can block light from the sensor, making it difficult to get reliable readings Apr 30 03:24:48 If you’re not able to get a consistent reading because of any of these factors, you can connect your Apple Watch wirelessly to external heart rate monitors such as Bluetooth chest straps <-- is this honestly the solution they're peddling? Apr 30 03:25:27 no idea, i have 0 interest in apple watch Apr 30 03:26:08 if i spent a few hunder bucks on a watch, its a suunto Apr 30 03:26:13 *hundred Apr 30 03:27:16 although, it looks like a great opportunity for developers Apr 30 03:31:01 g00s i think one of the problems with wearbles is the lack of development Apr 30 03:31:22 I think companies and individuals are hesitant to pool money into something that has such a small market share Apr 30 03:42:38 doesn't help that the devices aren't particularly appealing yet. expensive, and have trouble making it through a full day of use. Apr 30 03:44:38 remember how everyone wanted videophones but then when we got them nobody used them? Apr 30 03:44:43 the dick tracy watch turns out to be the same Apr 30 03:44:47 JakeWharton: your random entrances to answer square specifc questions is entertaining Apr 30 03:45:31 That's why they pay me Apr 30 03:46:36 nice Apr 30 03:47:32 what's the area of a square projected onto a sphere, which reaches both positive and negative 45 degrees in latitude? Apr 30 03:48:34 I guess that should be "maximum area" because rotation Apr 30 03:49:37 i feel like htats something for #math Apr 30 03:49:38 -_- Apr 30 03:50:43 hmm. I want to say the length of the vertical arc x the length of the horizontal arc Apr 30 03:56:32 <[2]Tricknology> take the double integral Apr 30 03:57:14 <[2]Tricknology> groxx Apr 30 03:57:39 hmm. it seems square does not wish for its behavior to be known when in non-euclidean realms. perhaps they are summoning an eldritch horror? Apr 30 03:58:23 Is the width (in either direction) variable as you sweep across it though? Apr 30 03:58:25 earth is not a sphere, it's a spheroid at best Apr 30 03:58:36 <[2]Tricknology> that too Apr 30 03:58:41 <[2]Tricknology> there is an equation for approximation Apr 30 03:58:56 <[2]Tricknology> JesusFreke, it's radius and angle Apr 30 03:59:13 well, the length of the arc, rather Apr 30 03:59:41 <[2]Tricknology> kn then sweep that 360 theta Apr 30 03:59:53 i also don't understand why the area would be anything but the exact same Apr 30 04:00:05 <[2]Tricknology> of earth? Apr 30 04:00:11 of the square Apr 30 04:00:17 it's still a square Apr 30 04:00:23 <[2]Tricknology> I missed out on the disconnect Apr 30 04:01:05 because it's no longer flat. it projects out into the 3rd dimension Apr 30 04:01:10 <[2]Tricknology> I disconnected and missed a bunch :( Apr 30 04:01:31 <[2]Tricknology> you want to describe a square in 3d? Apr 30 04:01:33 [2]Tricknology: I don't think you missed anything Apr 30 04:01:48 jakewharton destroyed your argument while you were gone. Apr 30 04:02:03 ye gods, what have I unleashed D: Apr 30 04:02:19 <[2]Tricknology> it's a circle but you parametrically bound the radius Apr 30 04:02:23 Depends what "projecting" means really: is it laying out the square as it is or its shadow as if there were a light source behind it? Apr 30 04:02:29 the way I'm thinking of it is a 3d box that intersects the sphere, with the outside face of the box being the square Apr 30 04:02:31 <[2]Tricknology> well your radius would be a function of theta at least Apr 30 04:02:33 <[2]Tricknology> and phi Apr 30 04:02:37 good going groxx Apr 30 04:02:49 and the area is the area of the surface sphere that intersects with the box Apr 30 04:02:56 surface of the sphere* Apr 30 04:03:08 <[2]Tricknology> at the vertices? Apr 30 04:03:09 JesusFreke: I like that approach Apr 30 04:04:23 <[2]Tricknology> distortion like woah though Apr 30 04:04:36 <[2]Tricknology> when viewed from the side Apr 30 04:04:57 <[2]Tricknology> or any angle but normal, for that matter Apr 30 04:05:10 CedricBeust: I was thinking shadow, personally. so the edges will curve, angles greater than 90, etc. Apr 30 04:05:23 groxx: I assumed so as well otherwise the answer is trivial Apr 30 04:05:24 <[2]Tricknology> that's the distortion I'm talkign about Apr 30 04:06:25 <[2]Tricknology> I think the best way would be to slice it and apply as strips Apr 30 04:06:56 <[2]Tricknology> if we are talkign about projecting somethign flat onto a sphere Apr 30 04:07:03 <[2]Tricknology> such as a map onto a globe Apr 30 04:10:08 so I'm thinking that the max might be what you get if you intersect that cube JesusFreke mentioned (simplify it to a square prism == projected from an infinite distance). so it would cover 90 degrees in each cardinal direction. might even have right angles again... Apr 30 04:14:28 I want to use one application with two different profiles. Since the app does not support it, i want to install two instances of the same app with different profile settings - theoratically is this possible from android's security and integrity perspective ? Apr 30 04:15:04 tamarind: what do you mean by profiles? Apr 30 04:15:15 groxx: settings within an app Apr 30 04:15:27 to start with Apr 30 04:15:37 second case: gmail profiles Apr 30 04:15:49 groxx: is it even possible to do stuf like that ? Apr 30 04:17:07 gmail profiles style: absolutely. compartmentalize your data so you can switch users / run multiple in parallel. Apr 30 04:18:02 multiple installs of exactly the same app: not possible that I know of. lollipop can have multiple user profiles on the _device_ which _can_ have different app data (you have to code for it, iirc), but you don't control that directly, and it's not quite the same thing. Apr 30 04:20:01 groxx: Thinking of which, i guess the gmail profile compartmentalization is already implemented - correct ? Apr 30 04:20:54 that would be entirely up to your app Apr 30 04:20:58 But the multiple instances of the same app which is being implemented from loolypop requires coding.. but what about the previous versions ? can it take ? Apr 30 04:21:34 tamarind: I forget which version got multiple users for tablets, but it was _only_ for tablets (or non-standard roms) until lollipop Apr 30 04:21:55 looks like 4.3 Apr 30 04:22:07 oh, maybe 4.2 Apr 30 04:22:39 groxx: so there is no hack or workarounds which we can use to have multiple instances of a same app for earlier versions ? Apr 30 04:23:36 not that I know of. pretty much everything is based on the package name - they have to be unique. Apr 30 04:25:08 4.3 Apr 30 04:25:16 that I recall Apr 30 04:25:39 http://www.androidpolice.com/2013/07/24/android-4-3-feature-focus-multi-user-with-restricted-profiles/ is what a quick googling hit Apr 30 04:27:16 Do any of you use Linux for Android development? If so what distro? Apr 30 04:27:30 I was looking at dual booting with either xubuntu or mint Apr 30 04:27:49 use whatever you like Apr 30 04:27:57 I hate dual booting though Apr 30 04:28:06 virtual machines or bust Apr 30 04:28:07 I need windows though (for gaming) Apr 30 04:29:01 I also heard Arch Linux is good. but i've never used it Apr 30 04:30:34 really doesn't matter what distro you use Apr 30 04:30:50 groxx: if i take the apk, decode it and change the package name to a custom one and then install the modified apk.. then ? Apr 30 04:31:20 alright, I will try xubuntu then. It looks like the simplest for a linux noob like myself Apr 30 04:32:26 is there a app after which i install it can list out all outbound and inbound internet connections made by apps and allows me to allow or block few ot those ? Apr 30 04:32:54 tamarind: sometimes works, sometimes doesn't. depends. probably not worth it if it's not your app :) Apr 30 04:33:29 internet connections: not without root. guaranteed. #android-root might know. Apr 30 04:33:47 groxx: rooting a phone is bad ? Apr 30 04:34:14 it's a _risk_, mostly. more is possible, for both good and bad. Apr 30 04:35:01 thanks for the inputs groxx Apr 30 04:38:15 i've been trying to get my changesets down to 1 character like tacticaljoke, but i'm just not good enough yet Apr 30 04:39:57 heh Apr 30 04:40:40 I've been working on a fairly complex thing for about a week, and my diff is ~ +1880 -1850. I might get that to negative by the time I'm done. Apr 30 04:41:16 why work for 0 sum when you can just watch TV and get the same result :) Apr 30 04:44:38 groxx personal or work ? Apr 30 04:45:06 sometimes its tough convincing pointer haired types that you did something when net effect was lines of code deleted :D Apr 30 04:53:28 <_genuser_> g00s: lol! Apr 30 04:57:18 g00s: work. boss is not pointy haired, though we have quite a bit more technical debt than I think is rational Apr 30 04:58:19 though it helps that this is pretty visible and we like it Apr 30 05:10:14 well ... i'm still having the same problem with AS 1.2 final & gradle-plugin 1.2.2 .... gradle has refreshed, but all the imported symbols have error markers Apr 30 05:23:30 looks like there are several tools, any recommendations on the best apk decompiler ? Apr 30 05:23:56 <[2]Tricknology> anyone know how I would kill the newline (enter key) in an edit text easily? or would I need a textwatcher or intercept the softkey event? Apr 30 05:24:26 <[2]Tricknology> nvm sill yquestion, it's late Apr 30 05:24:51 oh, now that is interesting. i replaced build.gradle compile rootProject.rxjava with compile 'io.reactivex:rxjava:1.0.+', switched away and back to AS and all the error markers went away Apr 30 06:01:53 Fastboot does nothing but adb works fine Samsung Galaxy tab 2 7.0 Apr 30 06:07:37 All fastboot reboot does is restarting t Apr 30 06:07:56 Restart the device I meant Apr 30 06:08:38 cool Apr 30 06:14:15 " Microsoft says the language services it built for Visual Studio Code will be available in other editors as well, including Sublime Text, Vi and Atom." huh Apr 30 06:15:52 * g00s downloads Apr 30 06:17:40 :( requires OS C 10.8 or later Apr 30 06:19:11 aww Apr 30 06:22:47 Anyone know how to unlock the bootloader on a samsung galaxy tab 2 Apr 30 06:23:05 flyleaf off topic for this channel Apr 30 06:23:29 Do you know the correct channel Apr 30 06:23:39 try #android-root Apr 30 06:25:32 wow so MS wrote some kind of plugin for ST Apr 30 06:25:55 now sure what language, i'd go for Android in ST if it was slightly smarter heh Apr 30 06:53:50 Whats the best way to change a package name of an apk file ? Apr 30 06:54:10 is it the usual rename option in refactor and find and replace on all files Apr 30 06:54:18 or is there any other cleaner way ? Apr 30 06:54:22 i am using android studio Apr 30 06:56:04 Is it bad practice to have only one DashboardActivity and many fragments loaded in and out of it? Or is that kind of how it was designed? Apr 30 06:57:13 Tricknology thats probably easiest :D Apr 30 07:07:37 i waited for some time so il repost the question Apr 30 07:07:41 Whats the best way to change a package name of an apk file ? Apr 30 07:07:45 is it the usual rename option in refactor and find and replace on all files Apr 30 07:07:55 or is there any other cleaner way with android studio ? Apr 30 07:08:09 make a new package Apr 30 07:08:15 move all the class files drag n drop Apr 30 07:08:30 people, not so long time age, i asked here about passing data back from service to activity, and you did not tell me nothing about ResultReceiver, so i decide to realize it by using Messenger. So is there is some advice in using ResultReceiver than Messenger... and shit. Apr 30 07:08:49 ADT had some smarts by refactoring packacge, physical java packages, etc - not sure about AS Apr 30 07:09:16 desmin88: thanks for replying, will try do now Apr 30 07:20:44 http://fragmentedpodcast.com/episodes/6/ Apr 30 07:20:46 nice Apr 30 07:28:53 oh cool, we get to listen to JW! Apr 30 07:29:18 yea its nice Apr 30 07:30:20 yeah I started listening to that series last week when someone pointed it out Apr 30 07:30:36 already listened to the first 5 shows twice Apr 30 07:30:44 what's JW? Apr 30 07:30:52 oh, JakeWharton Apr 30 07:31:16 twice..? Apr 30 07:31:19 why Apr 30 07:31:25 anyone created a Recycler View fragment? Like ListFragment? Apr 30 07:31:40 I was bored, and didn't listen to everything the first time Apr 30 07:33:37 see, thousands of hours Apr 30 07:33:40 thousands Apr 30 07:33:43 not overnight shit Apr 30 07:34:30 Odaym wut? Apr 30 07:34:38 actionbarsherlock Apr 30 07:34:43 thousands of hours to make Apr 30 07:35:06 Que? Apr 30 07:35:14 unless he's exaggerating Apr 30 07:35:22 Odaym you know what else is thousands of hours? Apr 30 07:35:35 hmmm Apr 30 07:35:41 the amount any dev wastes per yearon shitty android docs Apr 30 07:35:50 lol Apr 30 07:36:05 the lols Apr 30 07:36:27 I put 13.75 hours into this shitty UI Apr 30 07:37:18 at least 2 of those were on docs Apr 30 07:37:36 3 were due to cleint/designer revisions Apr 30 07:41:15 well no I mean that this insta-win doesn't really work Apr 30 07:42:10 insta-win? Apr 30 07:42:28 yea that I can make something quickly and it'll be a hit Apr 30 07:42:30 I feel like Donnie from The Big Lebowski Apr 30 07:42:33 otherwise I feel like a failure Apr 30 07:42:40 that Apr 30 07:42:42 oh man.. that Apr 30 07:43:02 Is development your job? Apr 30 07:43:09 so even someone seemingly superstar like Jake needs tons of hours Apr 30 07:43:17 yes Apr 30 07:43:45 I bet jake has had a grip grab of hours. I think ViewPagerIndicator is 4 years old Apr 30 07:43:55 about the time I've been developing period Apr 30 07:44:13 yea same give or take Apr 30 07:44:25 No worries though Apr 30 07:44:38 I do this because it's fun Apr 30 07:44:47 I like making something out of nothing Apr 30 07:44:53 + Apr 30 07:45:44 If I was doing it for the money I would be pretty bummed. So I guess what I'm saying is, you're not a failure if you're getting something out of it, tangible or not. Apr 30 07:46:21 oh, Im not saying that I feel it, Im saying that it's usually what people think/feel/want Apr 30 07:46:36 wanting to do something big and quickly and have it work with least amount of effort Apr 30 07:46:36 damn http://blog.arduino.cc/2015/04/30/microsoft-and-arduino-new-partnership/ Apr 30 07:46:44 MS is killing it Apr 30 07:47:04 honestly, that's why I got into it.. easy side money during college.. I was so wrong Apr 30 07:47:07 but I loved it Apr 30 07:47:13 MS really is.. Apr 30 07:47:25 I was saying earlier that they're not innovative enough Apr 30 07:47:31 or late to the party Apr 30 07:47:37 it pays to be a cockroach Apr 30 07:47:41 Peter Thiel Apr 30 07:47:43 haha Apr 30 07:47:45 hah Apr 30 07:48:28 Well maybe now I have a reason to buy a Windows Phone.. Apr 30 07:48:33 if only they would make it work with the Pi Apr 30 07:48:48 ..which you can already do with BT.. but still. Apr 30 07:49:06 https://dev.windows.com/en-US/iot/RaspberryPi2Support Apr 30 07:49:40 Microsoft, despite its flounderings and screwups in mobile, knows Platforms Apr 30 07:49:42 google does not Apr 30 07:50:11 this was mentioned by Steve Yegge a little while back, i see nothing has changed (from my perspective) Apr 30 07:50:39 Microsoft is a platform company, apple a HW company, google an advertising company Apr 30 07:51:11 and I'm just sitting here using linux Apr 30 07:51:24 gordon_ is the 2% :) Apr 30 07:51:31 ohhh yeah Apr 30 07:52:34 I like doing development on linux Apr 30 07:53:04 but VS is good stuff too, but I admit I mostly use linux for dev. Apr 30 07:53:41 i should probably try openbsd or freebsd Apr 30 07:53:54 after 15 years of linux "enough of this crap" Apr 30 07:54:01 except servers ;) Apr 30 07:54:29 some of the VS stuff is awesome and hard to replicate on linux due to GDB having rather non-straightforward docs Apr 30 07:55:36 I think the next OS should be hardware based, that is, each bit of hardware exports an api rather than having a separate OS, a "smart hardware" movement if you will, highly modular. Apr 30 07:56:54 we are not taking advantage of Moore's law in the context of OS's, hardware can be "smart" now. Apr 30 07:57:27 p_l back when i was working on gcc tools for "some company" we interfaced our GUI debugger through gdb by screen scraping its output Apr 30 07:57:49 i wasn't in charge of that part specifically, but it seemed like a pile of crap Apr 30 07:59:10 Carbonflux: guess what, that's what happens already, we are not running 8bit home microcomputers nor 1981's IBM 5150 (despite what BIOS holdouts would like to pretend) Apr 30 07:59:37 :) Apr 30 07:59:58 it would change nothing, because you'd still have drivers for the API :P Apr 30 08:04:31 I don't know, I sense something else, something higher level is possible, that the idea of the "central OS" can be eliminated. Apr 30 08:08:23 Carbonflux there was a presentation on HN the other day of unikernels Apr 30 08:08:31 kinda interesting Apr 30 08:09:37 ah ya Apr 30 08:12:08 Carbonflux: yes, we can add more emulation everywhere, so that speed gains become lower and lower Apr 30 08:12:53 Well, the thing is, natural systems combine processing, data and object in one construct. Apr 30 08:13:01 someday we will do the same. Apr 30 08:13:30 that episode is really nice Apr 30 08:13:36 really humble guy jake Apr 30 08:14:51 needs another listen Apr 30 08:15:40 Carbonflux: natural systems are also a clustefuck of random kitbash Apr 30 08:16:14 sorry, spent too much time in lectures and practicals on construction of brains Apr 30 08:16:38 or perhaps they are a form of mature nanotechnology we don't yet understand the checks and balances of ;) Apr 30 08:19:34 Carbonflux: actually we understand a lot of it, and it's mature in the way of duct tape Apr 30 08:19:57 Activity.onPause, what would I do without thee. Apr 30 08:19:58 (myelination is IMO single biggest argument against any intelligence in the design :>) Apr 30 08:20:00 * Carbonflux throws a glob of gray-goo at p_l and runs out of the room giggling... Apr 30 08:20:17 Carbonflux: gray goo is a bit different case :> Apr 30 08:20:33 (and even then, you'd probably use it just for construction purposes) Apr 30 08:20:39 :) Apr 30 08:36:55 ViewGroup.layout didn't draw the layout after translate animation although setFillAfter set true. Apr 30 08:37:02 how can i resolve this? Apr 30 08:40:53 ViewGroup.layout() didn't draw the layout after translate animation although setFillAfter set true. Apr 30 08:41:09 i used layout() method for repositioning a animated view. Apr 30 08:59:49 Hello. I have a method that will be called many times (from a background thread). From that I want to post to the main thread such that only the last message is run Apr 30 09:05:04 layout_alignParentBottom view cannot set negative padding ? Apr 30 09:06:04 vedu: O rly. Apr 30 09:08:12 crazy_rudy_: Since when does layout_alignParentBottom set padding? Apr 30 09:11:09 TacticalJoke: To complete: How can I do that? Apr 30 09:12:35 vedu: Can you give more detail? It's hard to predict what you mean. Apr 30 09:15:16 TacticalJoke: I am doing 'getActivity().runOnUiThread' from a method that may be called multiple times. So I want this runnable to be run only once (taking the latest) on the main thread Apr 30 09:17:14 vedu: That sounds very complicated. Apr 30 09:17:33 you cant, once you put runOnUiThread it will be executed Apr 30 09:17:35 For example, how do you determine what is the last one? Apr 30 09:17:53 if this is loop, just do the runOnUiThread on last iteration Apr 30 09:17:59 vedu: What are you trying to do? Apr 30 09:18:04 TacticalJoke: the one just before the heat death of the universe? :) Apr 30 09:18:15 :D Apr 30 09:18:46 TacticalJoke: I am updating my list view Apr 30 09:19:21 something like what filter does Apr 30 09:19:36 You just need to give more info, vedu. Apr 30 09:19:43 pastebin the code? Apr 30 09:21:18 TacticalJoke:, Ashiren: https://gist.github.com/vedant1811/846f28a53f2a8d9a9df3 Apr 30 09:23:33 So newData is called in a loop? Because that code posts *one* Runnable. Apr 30 09:25:55 sniff sniff Apr 30 09:26:08 * ravilov smells bad design nearby Apr 30 09:27:21 TacticalJoke: yes posts one runnable. this is what I want to fix Apr 30 09:27:41 ravilov: yes I am afraid so. So want to fix it. code runs without any problems Apr 30 09:27:52 What do you mean? Apr 30 09:28:19 vedu: FYI, it's really hard to help you. You say too little. I'm about to give up trying. Apr 30 09:28:49 TacticalJoke: okay I will back back with more code. Even I realize I cannot explain properly :) Apr 30 09:29:45 vedu use event bus Apr 30 09:33:04 vedu, if you only ever post one runnable, you should probably post it only once Apr 30 09:33:20 (can't look at code right now) Apr 30 09:33:34 x_x Apr 30 09:39:54 am i supposed to write intent filter for a secondary activity by hand or is there some other way in android studio? Apr 30 09:40:20 it's not an issue to write one but i'm wondering if i'm supposed to edit the manifest for that by hand Apr 30 09:41:42 oh, does android studio have anything like graphical signal/event connectors that qt creator paid versions and visualstudio have? Apr 30 09:44:05 vedu, I'd consider having a looper/handler in the background thread, then delay-posting the runnable to that queue instead, making sure to cancel any previous messages, and then using that looper to post runnables to the main thread Apr 30 09:48:28 Anyone knows how in Android Wear a full screen app allows Ambient mode but when user taps the screen the app is full up again so it doesnt have to be restarten through the menu? Apr 30 09:48:54 Cause when I use keepScreenOn attribute it never goes to Ambient mode eighter Apr 30 09:49:03 draining the hell out of the battery ;) Apr 30 09:49:20 not many wear users/devs here Apr 30 09:49:49 quite a niche market really Apr 30 09:50:30 yeah .. but one person would be enough ;) Apr 30 09:50:59 TacticalJoke: when the view moves up with animation Apr 30 09:54:28 I cannot download from NuGet Apr 30 09:54:36 is it available to you? Apr 30 09:57:08 how can i move the view which has relative layout parent and set align_parentBottom as true after translateAnimation? Apr 30 09:57:52 how can i move the view after translateAnimation? the view has RelativeLayout Parent and set align_parentBottom true Apr 30 09:58:32 call layout() method doesn't draw view Apr 30 10:03:20 I'm rather inexperienced in writing tests, and I wonder how could I simulate the system clock advancing one minute? Apr 30 10:05:13 other than actually moving your device's clock, there's no way Apr 30 10:06:02 you don't simulate real-world events, instead you make your code more like an API, then you simply test it by calling it with different values Apr 30 10:06:05 ravilov, can I just write something that would set the time instead of waiting one minute? Apr 30 10:06:14 You could write your code in such a way that you inject the "get time" function. In your real code, you inject SystemClock.uptimeMillis or whatever; in your tests, you inject a function that returns the value you want. Apr 30 10:06:32 Though it does make your code more complex. Apr 30 10:06:38 ok. hm. then I have to think how am I going to inject it. Apr 30 10:07:14 by making it into a kind of API, like I said, so by not using values directly Apr 30 10:11:23 interesting, vedu apparently never figured out how to explain his situation better Apr 30 10:12:49 argh #linux is invite only. Apr 30 10:13:41 Does anyone know the measurement threshold of /usr/bin/time? Apr 30 10:13:54 i.e. is it 0.0005 which gets rounded to 0.001? Apr 30 10:15:20 The Visual Studio 2015 RC was released yesterday at the Build conference and it has an out-of-the-box Android debugging support. I have openned the sample Android NativeActivity project in the VS, set a breakpoint, pressed run and after a few moments, the debugger stopped the application running on my device at the breakpoint. It seems unbelievable that simple stuff like this is so cumbersome with the toolkit Google provides. Apr 30 10:16:32 ahah Apr 30 10:18:21 I personally prefer using GNU/Linux and at our company we have project running on most of the platforms, with shared codebase for both the desktop and mobile. The Android Studio and previously Eclipse, were the way how to work with a single project workspace on all platforms, but now it seriously seems like if we are to continue development using the NDK, we'll switch to the Visual Studio, because the Google's support for the NDK in the provided IDE Apr 30 10:18:21 is essentially non-existent. Apr 30 10:22:12 how can I set my application to handle a specific mime-type or even a filename extension? Apr 30 10:27:31 Hello guys! Can anyone suggest techniques, guides, tutorials, open-source projects related to task-killer applications and implementation strategies? Apr 30 10:27:52 task killers suck Apr 30 10:28:12 but people still use them Apr 30 10:28:23 people also take heroin Apr 30 10:28:27 a lot of people Apr 30 10:29:01 people that dont know that they are actually useless Apr 30 10:30:00 danijoo: if it was legal, I would have been better selling heroin instead of having to write a task killer (or android apps at all). because he have the highest profitability. 1600% mine. Apr 30 10:30:05 xgearx: Android is designed to cache processes so that apps can be reopened without having to drain the battery by reinitializing. Task killers prevent this mechanism, and thereby actually increase battery, processor, and RAM use in many cases. Apr 30 10:31:29 And few people understand that. They just assume, in their ignorance, that killing background processes is a good idea. Apr 30 10:31:29 Task killers are like those Naked scanner apps Apr 30 10:31:38 s/people/users/ Apr 30 10:31:49 also there is not free ram, only not-used ram Apr 30 10:31:55 *no Apr 30 10:32:05 ^ this Apr 30 10:32:14 a lot of people dont understand that Apr 30 10:32:30 android is not windows Apr 30 10:32:41 ^ this Apr 30 10:33:10 Well, given the fact that the vendors like Samsung distribute bloated adware versions of the Android OS, many people find it helpful to kill the apps they don't want, but cannot fully control. Apr 30 10:33:13 "Android is not Windows" sounds catchy. Could be the chant of an Android cult. Apr 30 10:33:15 soo. anyone migrated to appcompat 22.1 yet? Is replacing ActionBarActivity with AppCompatActivity really all I have to do? Apr 30 10:33:32 His name is Robert Paulson. Apr 30 10:33:35 mkdk, they will restart with the next broadcast they receive :p Apr 30 10:33:56 danijoo: Yeah, and I guess use "android:theme" instead of "theme" on the Toolbar. Apr 30 10:34:08 TacticalJoke, ah yeah. thanks Apr 30 10:34:14 and AppCompat dialogs ofc Apr 30 10:34:17 And use AppCompatTextView or whatever in Java code (if subclassing). Apr 30 10:34:26 now I can get rid of those appcompat dialog library Apr 30 10:34:30 :D Apr 30 10:34:31 this* Apr 30 10:34:51 Nuget still down Apr 30 10:35:15 I just updated my appcompat libs from 20.x and play services from 6.x - didnt expect it to compile first try ^^ Apr 30 10:35:16 livtyler: https://twitter.com/nuget Apr 30 10:35:20 Google knows all the things. Apr 30 10:35:31 Is that the real Liv Tyler, BTW? Apr 30 10:35:51 so, my question was not about "is it good or not to write task killer" Apr 30 10:36:07 Our answer was not about "How do you write a task killer". :D Apr 30 10:36:52 xgearx, just write an app that looks like a taskkiller but only goes Thread.sleep(2000) on click Apr 30 10:36:56 if will have the same effect :p Apr 30 10:37:21 TacticalJoke: thanks :) Apr 30 10:37:32 I can think of a task killer that could be actually useful (black-listing processes for example) but it needs your device to be rooted and if you are rooted there are easier ways to go around those problems than using a task killer Apr 30 10:37:50 like uninstalling ^^ Apr 30 10:37:54 exactly Apr 30 10:38:33 xgearx, http://developer.android.com/reference/android/os/Process.html#killProcess(int), http://developer.android.com/reference/android/app/ActivityManager.html#killBackgroundProcesses(java.lang.String) Apr 30 10:39:09 Just get list of the PIDs or package names and kill those chosen by the user Apr 30 10:39:53 mkdk: i know about this 2 methods, but task killer is not about only calling this, it is about intelligent killng, white lists, schedules and so on Apr 30 10:40:43 I'd call it manager and not killer Apr 30 10:40:55 xgearx, "intelligent killing" is defined by the purpose you want to achieve, and the other features are defined by the needs of customers Apr 30 10:40:58 and a proper one would require real indept knowledge of linux and android Apr 30 10:41:15 The line between "killer" and "manager" is sometimes thin. Apr 30 10:41:19 yeah, get uid 0 and kill everything Apr 30 10:41:21 if you need tutorials and guides on how to write a task killer, you dont have that knowlege :p Apr 30 10:42:05 for managing resource usage by apps killBackgroundProcesses is meaningless since Android will restart the process as soon as possible if for example it has any sticky services or receives a new broadcast or alarm. Apr 30 10:42:33 if anything it'll increase the load on the system by forcing something akin to process trashing. Apr 30 10:42:54 appel1, from the docs "Have the system immediately kill all background processes associated with the given package.", perhaps killing the whole front app would prevent it from restarting them ? Apr 30 10:43:02 also if an app is in background, it actually does not use any resources (services not included) - it only holds those until they are needed elsehere Apr 30 10:43:12 so its really pointless to kill them Apr 30 10:43:18 mkdk: and also "the system will take care of restarting these processes in the future as needed". Apr 30 10:43:25 all killing does is interrupting any long going processes Apr 30 10:44:20 danijoo: cached processes are not completely suspended, they get a trickle of cpu time. max 10% or something. Apr 30 10:46:42 installing VS... let's see Apr 30 10:46:51 appel1, yes, but the way I understood it and your previous message was that it restarts the background processes if the "main app" spawning it is still running. So by killing the main app, you would prevent it from respawning. Background app is basically an app on which the OnStop() was called. If the app wrongly implements the app lifecycle, killing it completely might help, but doesn't resolve the underlying problem. Apr 30 10:47:07 mkdk: what do you mean by "main app"? Apr 30 10:47:24 oh and I feel you mkdk with C/C++ and AS.. Apr 30 10:47:25 mkdk, unles there is an alarmmanager, boradscast receiver or something like that Apr 30 10:51:20 appel1, I have misunderstood what the background app means. I thought it is spawned as a background process, that runs in the background (runs an update loop) and is managed by a parent process that sends messages to it from the UI. So, by killing the parent process the child process wouldn't be respawned if it were killed not by the parent process, but by an external task killer. Apr 30 10:53:23 danijoo, right. But actually I think that the standard Linux implementation keeps the caches of the loaded libraries after you kill a process, so they don't have to be reloaded. Apr 30 10:54:15 mkdk: a cached process is a bit more than that though since it allows caching of app data and not just executables. Apr 30 10:54:56 mkdk: with background processes I think they mean any processes that doesn't contain any user visible UI components. Apr 30 10:54:57 appel1, I see. That's true. But there's probably also a storage cache which keeps some of the stored data in the memory. Apr 30 10:55:54 mkdk: that only applies for raw data read from the fs though right? Apr 30 10:55:55 appel1, the documentation says it's an app that is not visible to the user and the OnStop() was called on it. URL : http://developer.android.com/guide/components/processes-and-threads.html Apr 30 10:56:02 appel1, yes I would think so. Apr 30 10:56:27 what is "cached proccess"? Apr 30 10:57:09 in which period of lifecycle we can call process cached? Apr 30 10:57:26 mkdk: ah, so it wont kill processes with any services at all then =) Apr 30 10:57:55 xgearx: See 5. Empty process on http://developer.android.com/guide/components/processes-and-threads.html#Lifecycle Apr 30 10:58:49 I suppose it is a process that is fully loaded, but its not running an update loop. So, if the app has to be restarted/restored, most of the data are already loaded in the memory and the new state can be initialized by re-using this data without the need to reload them. Apr 30 10:59:02 does anyone know how to add "passive" cards to android wear like google now does? Apr 30 10:59:14 something like a notification that only shows on the watch, not on the phone Apr 30 10:59:21 appel1: how can i detect that process is empty, not background? Apr 30 11:00:01 xgearx: no idea, why would you need to? Apr 30 11:00:19 kill or not to kill :) Apr 30 11:00:56 i suppose with root i can detect it Apr 30 11:01:03 using linux level api Apr 30 11:01:31 sure, Android stores that data somewhere =) Apr 30 11:02:04 appel1, I think you might be right. I don't know how the services work exactly on Android, ie. who's responsible for their lifecycle/management. Apr 30 11:02:25 mkdk: the apps themselves are, which is something many devs get wrong. Apr 30 11:02:31 xgearx, you should be able to retrieve this information using some that gathers process information Apr 30 11:04:17 appel1, "The system attempts to keep running services around as much as possible. The only time they should be stopped is if the current foreground application is using so many resources that the service needs to be killed. If any errors happen in the service's process, it will automatically be restarted. Apr 30 11:04:17 ", source: http://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent) Apr 30 11:04:30 So, would killing the foreground application kill also the service ? Apr 30 11:04:55 * mkdk is confused Apr 30 11:04:57 mkdk: killing a process will of course kill everything running in that process. Apr 30 11:05:17 mkdk: you don't kill apps, you kill processes. Apr 30 11:06:02 appel1, all right. That makes sense. I got the impression that Services are some kind of special background processes managed/owned directly by the system itself. Apr 30 11:07:39 mkdk: no, it is just an app component that signals to Android that a process is doing something superimportant to the user and should be kept alive as much as possible. Apr 30 11:08:41 I'll ask here instead : Ok reinstalling from fastboot image want to start fresh but keep contacts - phone calls - texts - what is the best backup app? Apr 30 11:09:04 ##android-root Apr 30 11:09:07 mkdk: so with enough apps with active services on a system there's no room left for caching processes which means that even when switching back and forth between two apps they have to restart from scratch each time. Not very nice but since you don't have to stop services most devs just leaves theirs running indefinately. ' Apr 30 11:09:12 appel1, thanks for the clarification. It's a bit ambigious jargon used in regards to different app components. Apr 30 11:09:14 or 1 # Apr 30 11:09:43 Anthaas, not root question - I don't have root Apr 30 11:09:49 Not a dev question either Apr 30 11:09:55 try #android then Apr 30 11:10:30 Anthaas, I did but no one responded - quioet during my timezone Apr 30 11:10:59 Haxxa, try google then. Apr 30 11:11:09 +1 Apr 30 11:11:13 lol Apr 30 11:11:37 Im so glad we don't have bots here and people who use them passive-aggresively. Like over in the java channel Apr 30 11:12:10 "since no one answered to me in the correct place because of my timezone, I go annoy another place irrelevant to what i need, instead" Apr 30 11:12:18 nice one.. Apr 30 11:12:26 Hmm Apr 30 11:12:33 I can't run a Java program through command line. Apr 30 11:12:39 appel1, yes, that's true. Basically what would an "intelligent killer" do would be to find the balance between having enough memory available for caching, but still being operate the apps user interacts with. I guess this is what the developers of Android wanted to achieve by creating the different process types (service, foreground, etc.) in the first place. Apr 30 11:12:39 Brb, going to #c++ Apr 30 11:12:47 <_genuser_> so g00s have left for the night and thepoosh is filling in...? Apr 30 11:12:55 what?! Apr 30 11:13:15 "i need some bread, let's leave the bakery and go to the press shop" Apr 30 11:13:20 mkdk: yes, unfortunately they designed it on the premise that all devs will read all available documentation and will always do the right thing.. lol Apr 30 11:13:27 <_genuser_> thepoosh: hi. :) g00s is normally saying oh thepoosh is here, that means it's time for him to leave.... Apr 30 11:13:43 Haha, "Im not being served a drink in this pub. I'll go to the shoemakers instead." Apr 30 11:13:45 oh, my kid was sick this morning so I came in late Apr 30 11:13:50 it's too late for g00s Apr 30 11:13:52 :') Apr 30 11:14:06 <_genuser_> thepoosh: sorry about the kid. Apr 30 11:14:16 no problems Apr 30 11:14:21 she's gonna be fine Apr 30 11:14:31 Im confused. g00s and thepoosh are the same person? work together? know each other? love each other? Apr 30 11:14:34 <_genuser_> thepoosh: I'm in CST so normally when I'm here it's really night time for me. I just work better staying up all nights. Apr 30 11:14:35 appel1, on the other hand, if they were to enforce strict rules, developers would then complain about Android being too hard to develop on :) Apr 30 11:15:03 Anthaas: g00s lives in the US, I live in Israel Apr 30 11:15:11 <_genuser_> Anthaas: think it was more like g00s is in a timezone where it's bedtime for him about the time thepoosh is coming in. Apr 30 11:15:13 we're friendly (as much as irc allows) Apr 30 11:15:32 Ahhh I see Apr 30 11:15:39 ah-ha! Apr 30 11:15:41 So you can sort of tell what time it is why who is on Apr 30 11:15:42 haha Apr 30 11:15:54 Im going to start calling poosh am and g00s pm Apr 30 11:15:59 <_genuser_> right, sorta like oh that's my cue!! Apr 30 11:16:31 <_genuser_> this casual job search business is harder than I thought. Apr 30 11:17:34 mkdk: but now you have all users complain about battery life and performance instead.. not sure that is better. Apr 30 11:17:35 <_genuser_> lol, guess it was g00s pm for him... Apr 30 11:24:26 appel1, true, but the customers have already payed both for the phone and the app, so that's better for Google than having no apps at all - I guess ? Apr 30 11:24:38 :\ Apr 30 11:24:49 ie. follow the money Apr 30 11:26:10 how can I set my application to handle a specific mime-type or even a filename extension? like when opening a word document and then android shows you apps that should be able to handle it Apr 30 11:27:55 ExeciN: intent filter Apr 30 11:31:10 _genuser_: you sound like my boss Apr 30 11:31:22 "I can set my watch according to the time you leave the office" Apr 30 11:35:42 <_genuser_> thepoosh: heh, do you leave at 5pm sharp, everyday? Apr 30 11:36:29 no, I come in every day at 08:30 and usually leave at 17:30 Apr 30 11:36:36 unless it's releases season Apr 30 11:37:39 <_genuser_> oh, you're a hard worker. Apr 30 11:37:57 <_genuser_> at my work people arrive at 8:30 - 9am. and leave at 5 SHARP! Apr 30 11:38:54 appel1: thanks Apr 30 11:39:59 <_genuser_> man, these recruiters on linkedin are quite fickle. Apr 30 11:41:14 bad experience? Apr 30 11:47:06 _genuser_: my boss (ukrain) thinks it's bad habits that happen in the US that reflect badly on everyone Apr 30 11:47:20 he wants me (demands) do give another extra hour every day Apr 30 11:49:14 hi Apr 30 11:49:32 should the new AppCompatDialog set the background from itself (colorPrimary/secondary) or must I define it? Apr 30 11:50:04 is it possibleto override defaultConfig-settings for a debug build? i'd like to set the versionCode to a high value for debug builds… #gradle Apr 30 11:50:32 thana, create a new buildconfig with name debug and it will override the default debug one Apr 30 11:50:53 how can I connect to an android device reachable over tcp/ip? Apr 30 11:51:11 doev, adb connect ip.adress Apr 30 11:51:14 port 5555 Apr 30 11:53:03 danijoo: you mean something like buildTypes { debug{ versionCode 999999 } }? Apr 30 11:53:19 thana, yep Apr 30 11:53:47 not sure if it works for fversionCode though Apr 30 11:53:52 it works for application id Apr 30 11:53:53 danijoo: tried that before, gradle complains about it cant find the DSL method 'versionCode()' :( Apr 30 11:54:08 danijoo, thx. works fine. really easy. Apr 30 11:54:08 ah well. versioncode is not part of buildconfig then Apr 30 11:54:25 so no chance to override it? Apr 30 11:54:39 thana, a better approach is to add something like .debug to the package name of your app Apr 30 11:54:53 then you can install debug version and production versiion on same phone Apr 30 11:55:35 danijoo: will do, thanks :) Apr 30 12:15:54 hey,im trying to round a framelayout which contains 2 img views and a viewpager Apr 30 12:16:10 it is not beign rounded with xml Apr 30 12:16:23 <_genuser_> thepoosh: lol, that's a crazy boss!! Apr 30 12:16:30 yeah Apr 30 12:16:41 but xml is correct Apr 30 12:16:45 what is the problem Apr 30 12:16:48 any idea Apr 30 12:18:14 <_genuser_> thepoosh: employers wants to make you feel bad for not giving them more. Apr 30 12:18:28 <_genuser_> thepoosh: then they want to tell you you're not working hard enough. Apr 30 12:18:38 well, the law in Israel is that a full day is 9 hours Apr 30 12:19:47 <_genuser_> thepoosh: so 8-5 then? Apr 30 12:20:10 <_genuser_> that's a bit much, but ok. I still wouldn't mind visiting Israel, despite its misguided labor laws!! Apr 30 12:21:59 well, 8.30 - 17.30 Apr 30 12:22:19 taxes are also extremely high Apr 30 12:22:57 <_genuser_> wait, how much? Apr 30 12:23:44 hi everyone Apr 30 12:23:53 I'm having problems with User profiles on Samsung Apr 30 12:24:01 and an app which uses HTML 5 Geolocation Apr 30 12:24:11 I'm unable to get a location... although everything works fine Apr 30 12:24:27 I have a Stack Overflow question about this in full details Apr 30 12:24:31 can I post STO links here? Apr 30 12:24:59 hi, anyone? Apr 30 12:25:36 hi Apr 30 12:25:50 hi danijoo Apr 30 12:26:29 http://stackoverflow.com/questions/29967496/unable-to-get-location-with-html5-geolocation-and-android-with-different-user Apr 30 12:26:32 that's what's bugging me Apr 30 12:27:28 I dont use html5 sry Apr 30 12:30:36 guys why rounded drawable xml doesnt affect frame layout ? http://paste.ubuntu.com/10951983/ Apr 30 12:30:53 if i use that code it rounds framelayout but its a little bit laggy http://paste.ubuntu.com/10951998/ Apr 30 12:43:09 is there some per thread caching for return vlaues of NfcAdapter.getDefaultAdapter()? Apr 30 12:43:40 my app starts at boot. i think its started so early that getDefaultAdapter() returns null, so i loop until it returns something else Apr 30 12:44:06 now it comes out the loop is an endless loop, while there is nfc available for other threads... Apr 30 12:46:09 thana german? ^^ Apr 30 12:46:17 or maybe caching of calls against Context#getSystemService... Apr 30 12:46:24 danijoo: yes :( Apr 30 12:46:34 "now it comes out" sounded too german :p Apr 30 12:46:52 yeha guessed so but was too lazy to find the right words :D Apr 30 12:47:38 i dont even know how to say it in english Apr 30 12:48:27 dict.cc thinks it's ok :p Apr 30 12:48:44 sci-fic: clipChildren="true" Apr 30 12:50:00 "It turns out that the loop is endless" or "the loop is endless". Apr 30 12:50:34 icedp: its true as default i guess Apr 30 12:52:29 TacticalJoke: thanks :) Apr 30 12:53:35 sci-fic: ah, then the problem probably is that ImageView won't cut it shape. You might want look at CardView but the way to go is to extend ImageView and draw circular bitmap. Or you can do it to FrameLayout too Apr 30 12:54:18 Hi , I am making a dialer app , but whenever i am making a call the default android caller popsUP , I want to use my default apps dialer instead while calling Apr 30 12:54:43 the hack i have used here is whenever I dial any number I am starting my own activity with off_hook listener Apr 30 12:55:10 icedp yes i extended a framelayout but it works laggy http://paste.ubuntu.com/10951998/ Apr 30 12:55:15 But it does not looks quite well Apr 30 12:55:24 any one who has any idea about this ? Apr 30 12:55:35 sci-fic: https://gist.github.com/mlatu/7ade78c292534c1d5c1e here's my code. I steal the idea somewhere on github. on nexus 4 it works nice even with animation Apr 30 12:56:14 apperciate Apr 30 12:57:17 chinu_, you can only make a custom dialer, but not a custom calling app Apr 30 12:57:54 danijoo : so only option is to start my activity with a handler ? Apr 30 12:58:00 after 2 second delay Apr 30 12:58:08 as the dialer takes a little time to popup Apr 30 12:58:24 thats really ugly Apr 30 12:58:36 do you want to publish this to play store? Apr 30 12:58:55 But I am making app only for Android and for specific feature Apr 30 12:59:08 there are all great GUI and effects while calling Apr 30 13:00:17 danijoo : can i handle call disconnet with my activity Apr 30 13:01:22 can i handle call disconnet with my activity Apr 30 13:01:29 Anyone know how much current the Nexus 7 can deliver over usb? Apr 30 13:01:50 i think when a call finishes the phone just finishs the call activity and returns to whatever comes next on the backstack Apr 30 13:02:02 chinu_: doesn't the in-call screen just finish when a call is disconnected so that you are automatically returned to the previous activity, in your case your dialer? Apr 30 13:02:12 tasslehoff, you mean from the nexus to usb? Apr 30 13:02:26 appel1, I think so too Apr 30 13:02:45 danijoo: yeah. I'm in usb host mode, and I suspect my device dies because of low power. Apr 30 13:02:53 but see nothing in logcat Apr 30 13:02:57 tasslehoff, i guess 1 Ampere Apr 30 13:03:45 appel1 danijoo : I want to make a END CALL button in my own activity , So whenever user picks the call and browsing my app can disconnect from there. Apr 30 13:04:11 chinu_, what you are trying to do will not work. Apr 30 13:04:20 icedp: didnt work :( Apr 30 13:04:36 if I do MediaRecorder.stop() really quickly after MediaRecorder.start() (but after MediaRecorder.start() has ended), I get "E/MediaRecorder﹕ stop failed: -1007". How can I prevent this? Apr 30 13:04:53 I'd assume that when MediaRecorder.start() finished, it'd be okay to stop it already. Apr 30 13:05:38 Like: mediaRecorder.start(); mediaRecorder.stop(). That won't fly. Apr 30 13:06:22 Should I just... disable the button for like two seconds? Seems like a sloppy solution Apr 30 13:06:45 kba, or just do nothing on that error Apr 30 13:06:51 just catch it Apr 30 13:07:32 Hm... Yeah, ok. The button will just say "Stop" and hitting it really quickly won't do anything Apr 30 13:07:50 sci-fic: you need to set values in Java Apr 30 13:07:51 But I guess if the user wants to be a smartass and record a video of 20 ms, it's fine they have to press twice Apr 30 13:08:01 Thanks Apr 30 13:14:32 I did something else that seems to work, but I'm not sure if it's a bad idea or a super terrible bad idea. If the fail stop, it recursively calls itself for 10 attempts trying to stop the camera. Apr 30 13:14:42 if the stop fails* Apr 30 13:17:28 sounds evil Apr 30 13:18:18 Handler.postDelayed sounds better than that. However, I know nothing about MediaRecorder or why you're not able to stop right away. Apr 30 13:18:23 trying to run my tests :| http://pastebin.com/vRRksbzP Apr 30 13:19:25 hey Apr 30 13:28:28 I thought about making it delayed, but it seems to be something that gets resolved in like miliseconds Apr 30 13:29:34 https://gist.github.com/anonymous/de3abeaa5d290394c644 Apr 30 13:30:43 : "Note that a RuntimeException is intentionally thrown to the application, if no valid audio/video data has been received when stop() is called. This happens if stop() is called immediately after start()." Apr 30 13:31:02 A-ha. Apr 30 13:31:25 "The failure lets the application take action accordingly to clean up the output file (delete the output file, for instance), since the output file is not properly constructed when this happens." Apr 30 13:31:54 Ohh... Apr 30 13:32:15 I guess I'll just toss what I wrote and give a toast or similar instead Apr 30 13:33:05 Yeah, or just a TextView stating "Too short to record" or whatever. Apr 30 13:33:23 Yeah. I just assumed that when stop() failed, it didn't actually stop Apr 30 13:33:33 it just kept on recording, but I assume it doesn't now Apr 30 13:35:08 Hi all. I´m having some trouble changing the background of griditems. I got a custom adapter for the gridview, and I got onItemClickListeners on all items. Upon clicking it should change the background, which works fine for all items, Except the first one Apr 30 13:35:22 The listener does fire when clicking on the first item Apr 30 13:36:14 I´ve tried storing the views inside the adapter, storing them outside the adapter, etc, but I cant get the background to change for that first item Apr 30 13:37:07 Ow and upon creating the Gridview, i also set a custom background in the adapter´s GetView, and that Does work for all items. The views I use in GetView are the views I try to acces later as well Apr 30 13:37:13 anybody any idea what is happening? Apr 30 13:43:47 kba: you can cancel in onPrepared if the user pressed stop before the MediaRecorder was prepared by settting a boolean or something Apr 30 14:02:03 shmooz: you sure those are the same thing? You call mediaRecorder.prepare(), then .start() Apr 30 14:02:35 so I'd assume whatever onPrepared method you're talking about would be true before .start() Apr 30 14:18:32 Hello. For some reason Samsung Galaxy S6 is not supported according to the google play market. i have added: small, normal, large screens and: mdpi, hdpi, xhdpi and screenDensity=480 in my manifest file. Is there something else I need for the S6 phone? Apr 30 14:20:44 arkaros: Isn't the s6 xxhdpi Apr 30 14:20:48 for starters Apr 30 14:21:04 And why filter? Apr 30 14:21:12 Yeah but you cant add xxhdpi from what i understand. Apr 30 14:21:25 I want to filter because the app doesnt have support for big screen tablets Apr 30 14:22:00 when it goes to xxhdpi you need to add it via number Apr 30 14:22:44 Maybe it has xxxhdpi. For that i need to add 640 Apr 30 14:22:54 yeah it could be xxx Apr 30 14:23:29 just add xlarge Apr 30 14:26:42 Is galaxy S6 xlarge!? Apr 30 14:27:09 any idea why NfcAdapter.getDefaultAdapter(context) would return different results in different classes while its called from the very same thread using the very same context? Apr 30 14:30:41 I think it was the xxxhdpi issue but i have to publish to play store to check. Thank you guys for all of your help :) Apr 30 14:31:58 arkaros, google :) Apr 30 14:34:22 hi Apr 30 14:35:01 Yeah i have googled it a lot but i just couldnt find any results for Galaxy S6 not being supported. I got the result i wanted when i googled for: "Adding xxxhdpi to manifest" Apr 30 14:35:37 And if i google that i kind of already know the answer hehe Apr 30 14:37:05 thana, try to get the information from the received NfcAdapter object and see how do they differ to get some idea what is different. I suppose by "different results" you mean different object references Apr 30 14:38:58 when testing app from android studio to phone if i change somthin do e need to rebuild first then execute or can i jus click run? Apr 30 14:39:15 run will rebuild Apr 30 14:40:50 Gnjurac, just click run, it'll rebuild automaticaly Apr 30 14:41:03 ok ty Apr 30 14:41:25 thana, also from the source "The NfcAdapter object for each application context. There is a 1-1 relationship between application context and NfcAdapter object." URL : http://androidxref.com/5.1.0_r1/xref/frameworks/base/core/java/android/nfc/NfcAdapter.java Apr 30 14:41:40 i wasent shour so i was wasting time i even did clean build debugrun Apr 30 14:42:29 thana, also, you can see here that if the context is null, a new NFCAdapter object is instantiated : http://androidxref.com/5.1.0_r1/xref/frameworks/base/core/java/android/nfc/NfcAdapter.java#457 Apr 30 14:42:37 Gnjurac: You can verify simply by making a change and clicking Run. Apr 30 14:42:43 You'll see that the change is effective. Apr 30 14:42:50 hi Question how to change a string var qwithout going to Values/string in Androidstudio Apr 30 14:43:05 1 more question Apr 30 14:43:11 in the layout Apr 30 14:43:16 i alwes unistall app bettwing tests Apr 30 14:43:36 or if i just run again will it owerwtrite it? Apr 30 14:44:56 And_prog_desaste: I don't think you can, but you can middle-click or Ctrl+click the ID to jump straight to strings.xml. Apr 30 14:45:07 Or, at any time, press Ctrl+Shift+N --> "strings.xml" Enter. Apr 30 14:45:15 Or whatever it is on Mac. Apr 30 14:45:26 Gnjurac: Try it. Apr 30 14:45:34 TacticalJoke: thanks Apr 30 14:45:51 Gnjurac: Your observations upon trying it are way more valuable than are the answers of IRC people. Apr 30 14:46:19 no cuz i still dont know whats wrong with my app Apr 30 14:46:41 so i cant know if i effected it in any wey cuz still gating same errot Apr 30 14:47:44 Gnjurac, from my experience the app code is replaced, but the app data may remain. So, if your problem has something to do with the Storage, you might want to uninstall the app first and try again a fresh install. Apr 30 14:47:57 ok Apr 30 14:47:58 ty Apr 30 14:48:05 np Apr 30 14:50:33 Gnjurac: it will be new installed at any upload Apr 30 14:52:51 mkdk: I think I'd expect the app data always to remain. Apr 30 14:54:56 TacticalJoke, I think it depends on the steps during the uninstall. The basic uninstall will not clear the data, but before uninstall you can also manually clear the app data through the Application Manager. For testing purposes it's sometimes important to get rid of all previous app data. Apr 30 14:56:50 mkdk: the point is: in class A null is returned, in class B the actual NfcAdapter-Object ;) Apr 30 14:58:40 thana, that is really weird, because the null is returned only if there's no NfcAdapter. Depending on how those two relate and operate on the NfcAdapter, it could be that the NfcAdapter is busy, disabled or in an error state. Apr 30 14:59:12 thana, wanted to write "..those two classes relate.." Apr 30 15:01:02 I feel like Activity.onPause is one of the few places where we have a guarantee of synchonicity. Apr 30 15:01:21 In terms of Android-GUI stuff. Apr 30 15:04:34 mkdk: indeed it IS weired. ill try to create a test case Apr 30 15:05:07 thana, do you see any output in the verbose adb log related to the NfcAdapter ? Apr 30 15:06:22 mkdk: nope. nothing. we have expirience with a crashing nfc stack if we interact with it too early. biut this behaviour is new Apr 30 15:07:08 (too early aka when the device is still booting) Apr 30 15:07:59 thana, I found people mainly reporting those problems as well. Have a look at the NfcDetectorActivity and see if you can use it for diagnosing this problem : https://code.google.com/p/ndef-tools-for-android/source/browse/ndeftools-util/src/org/ndeftools/util/activity/NfcDetectorActivity.java Apr 30 15:08:11 to outline the app a little bit: it's configured as default launcher. hence its started really early, a long time befor BOOT_COMPLETED is emitted Apr 30 15:08:27 the activity started then will try to get the defaul nfc adapter and receives null Apr 30 15:09:01 15 seconds later a cordova plugin will try to get the default adapter using the activity started first as context and receives the adapter Apr 30 15:10:28 thana, the result is cached, so once you receive null, yo'll always get null Apr 30 15:10:40 oh and i should mention: if the main activity receives null it starts a loop requesting the adapter again once in a second until iut gets something different then null Apr 30 15:10:56 pfn_: oh noes. whats used as cache key? Apr 30 15:11:11 actually, that's wrong Apr 30 15:11:16 I misread the cache code Apr 30 15:12:05 i already found out there is system service cache per context. but as i use the very same context both times it cant be the point Apr 30 15:12:15 thana, here's one SO post having the same problem : http://stackoverflow.com/q/21744454 Apr 30 15:12:25 thana, the cache key is the context Apr 30 15:12:36 mkdk: yep found that one, too, but there is no answer :( Apr 30 15:12:38 the application context Apr 30 15:15:19 thana, try repeatedly checking context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC) Apr 30 15:15:29 and see when it pops up Apr 30 15:17:27 http://blog.jetbrains.com/kotlin/2015/04/anko-0-6-is-released/ Apr 30 15:17:28 mkdk: returns true from the beginning :/ Apr 30 15:18:39 thana, then try to have a look again at the NfcAdapter source code and try to check the NFC Service status (GetAdapterState) : http://androidxref.com/5.1.0_r1/xref/frameworks/base/core/java/android/nfc/NfcAdapter.java#641 Apr 30 15:20:01 ./gradlew test --info tells me 'invalid source release: 1.7'. I want to use 1.7, so how can I fix this? I'm sure I'm using jdk 1.7.0_79 and I've been googling a lot Apr 30 15:20:11 maybe ill just give up. i wait 15 seconds, than i should receive the adapter as expected :( Apr 30 15:20:59 thanks for your help :) Apr 30 15:23:05 the better question is why try to retrieve the nfc adapter at boot Apr 30 15:23:54 thana, no problem Apr 30 15:25:24 pfnQ, thana said it's because his app is "configured as default launcher" and perhaps the NFC service as such is not part of the boot. Apr 30 15:25:59 I see... anyway, wait for ACTION_ADAPTER_STATE_CHANGED before doing anything with nfc Apr 30 15:28:39 now I get java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536 .. no mention where in my code this occurs Apr 30 15:29:25 usually means you have too many methods Apr 30 15:29:43 lol. this isn't a big app :) Apr 30 15:29:50 thana, apparently it might take up to 90 seconds to initialize NFCService : http://androidxref.com/5.1.0_r1/xref/packages/apps/Nfc/src/com/android/nfc/NfcService.java#136 Apr 30 15:30:10 mkdk, that's why, wait for ACTION_ADAPTER_STATE_CHANGED Apr 30 15:30:49 pfn_, I agree that would help. Apr 30 15:31:34 Also NfcAdapter.STATE_OFF is the default state, so if that is set, no NFC is available until initialized. Apr 30 15:33:13 saapas, sounds like you have multidex turned on Apr 30 15:33:35 saapas, er, maybe not, just clean build first Apr 30 15:34:37 pfn_, I haven't turned it on yet. cleaned. now it completed successfully :) Apr 30 15:35:03 always clean build after changing build definitions Apr 30 15:35:17 that's a rule of thumb across all build systems Apr 30 15:35:18 that's build.gradle ? Apr 30 15:35:26 yes Apr 30 15:35:30 righty-o Apr 30 15:36:58 hm. seems the test task can't find the tests. AS does. Apr 30 15:39:51 * pfn_ shrugs, not a gradle user Apr 30 15:40:05 as soon as you want flavors... :) Apr 30 15:40:22 I don't need gradle to have flavors Apr 30 15:40:33 damnit! Apr 30 15:41:59 https://github.com/pfn/android-sdk-plugin#new-features-in-13x ; a flavor decorator was added in 1.3.18, but flavors were possible before that in a more convoluted fashion Apr 30 15:47:24 pfn_, could you share your opinion on why to use SBT or Gradle instead of the Java's standard Apache Ant ? I don't understand the reasons behind the switch to Gradle. I mean Apache Ant could do pretty much everything, so why to use yet another build system ? Apr 30 15:47:38 ant is not a java standard, not for a long time now Apr 30 15:47:49 oh ok, it was when I was at school :> Apr 30 15:47:52 maven has been the java standard for the past decade at least Apr 30 15:48:13 I've only recently jumped the java bandwagon so I've pretty much missed ant Apr 30 15:48:57 mkdk, dependency management and a sane build grammar that isn't faux-xml Apr 30 15:51:24 I see, that was also my impression. Ant/Maven are described as XML tasks and can execute external commands. Gradle is more closer to a programming language. Apr 30 15:52:12 well, maven doesn't even describe tasks Apr 30 15:55:21 Right. I just read on Wikipedia that it relies on the pred-defined project structure and other conventions. Apr 30 15:55:46 Thanks for the chat everyone. Have a great day ! Apr 30 16:01:49 can somone clear this for me i am geting errors with auth and other whit javamail i even tryed 2-3 servers gmail gmx .... and after zilion googling https://cloud.google.com/appengine/docs/java/mail/usingjavamail i found this in at bootim it seys it cant be used to connect to other services, does thet mean only for standard java mail cuz as i know ther is android ported 1 Apr 30 16:03:56 javamail is not usable on android Apr 30 16:04:55 google javamail android there is zilion examples Apr 30 16:05:01 https://code.google.com/p/javamail-android/ Apr 30 16:05:06 lol Apr 30 16:05:10 http://mrbool.com/how-to-work-with-java-mail-api-in-android/27800 Apr 30 16:05:21 morning, all :) Apr 30 16:05:21 so did thet beacome obsolete Apr 30 16:05:23 or waht Apr 30 16:05:31 when was the last time someone told you to google for something pfnQ ? (don't answer :p) Apr 30 16:06:47 sorry i dont get thet joke Apr 30 16:08:36 maybe your O2 level is too low Apr 30 16:10:11 Gnjurac, the code you refer to dates from 2009 Apr 30 16:10:40 so Apr 30 16:10:49 so it's obviously abandonned Apr 30 16:10:55 atm ther is no javamail working client on android? Apr 30 16:11:02 no clue Apr 30 16:16:26 what would be my choice of instrumentation test runner? robolectric? Apr 30 16:20:28 robolectric isn't instrumentation test Apr 30 16:20:38 saapas, and one is generated for you by default... Apr 30 16:21:26 saapas, but if you have to specify it in manifest, then android.test.InstrumentationTestRunner Apr 30 16:22:11 this is the latest error Unable to find instrumentation info for: ComponentInfo{fi.casa.tagtime.androidTest/android.test.InstrumentationTestRunner} Apr 30 16:22:54 saapas, you need to uses-library android.test.runner Apr 30 16:27:43 AS 1.2 is out, fwiw Apr 30 16:28:37 pfn_, thanks. then I get again IllegalArgumentException: method ID not in [0, 0xffff] :( Apr 30 16:28:54 saapas, you have a problem with incremental dex, just clean build every time Apr 30 16:28:55 * pfn_ shrugs Apr 30 16:29:59 pfn_, doesn't help now Apr 30 16:30:35 * pfn_ shrugs Apr 30 16:30:40 :P Apr 30 16:30:53 I'd help you if you were using sbt Apr 30 16:31:25 who knows how long it would take to configure that. Apr 30 16:32:35 so multiDexEnabled is the official solution Apr 30 16:34:11 how to stop f loger Apr 30 16:37:25 f this Apr 30 16:37:28 i got it working Apr 30 16:37:32 yey Apr 30 16:37:40 2 days of braindmg Apr 30 16:38:02 i sended mail trou javamail api Apr 30 16:38:04 yey Apr 30 16:43:50 anyone here i want to gloat Apr 30 16:46:22 haha sure gloat away Apr 30 16:46:38 it might woosh over me.. Apr 30 16:48:30 try { gloat(); } catch (ArgumentNotFoundExecption e){ playWooshSound(); } Apr 30 16:49:21 Cannot resolve method 'gloat()' Apr 30 16:49:36 maybe it's goat Apr 30 16:49:58 it should be Apr 30 16:55:38 where is the authorized RSA adb keys stored at? Apr 30 16:55:45 (on android) Apr 30 16:55:54 or, how to I skip RSA keys check altogether Apr 30 16:56:17 not sure if you can cancel them Apr 30 16:56:20 or where theyre stored Apr 30 16:56:24 but you can sure forget them Apr 30 16:56:59 I'm trying to debug... "a rom" with no input enabled for some strange reason Apr 30 16:58:12 could too many dependencies cause the dex problem? Apr 30 16:58:27 yes Apr 30 16:58:33 well foo. Apr 30 16:58:55 tricknology_, basically, I'm trying to boot the cyanogenmod which is behind sailfish os on nexus 5 Apr 30 16:59:16 as seem here http://talk.maemo.org/showthread.php?p=1463633#post1463633 Apr 30 16:59:30 I modded once. Never again Apr 30 16:59:42 but I get no touch, volume or power button Apr 30 16:59:43 saapas, don't use too many libraries then Apr 30 16:59:58 sure. Apr 30 17:00:03 If I do it would be as a contriubtor toward fixing them because theyre always broken lol Apr 30 17:00:12 now this sucks. :P Apr 30 17:00:18 so I can't click "accept" to debug in adb why I can't click things Apr 30 17:00:30 maybe it’s the rom? Apr 30 17:00:35 bad nuild? Apr 30 17:00:41 build* Apr 30 17:00:53 I have code that don't need a device nor the emulator for testing, and then I have code that does need. Apr 30 17:01:07 maybe #android-root can help yangm Apr 30 17:01:14 ok Apr 30 17:02:54 OH MY.. my first android unit test succeeded! :D Apr 30 17:03:59 alright let's setup instrumentation tests next. Apr 30 17:04:44 gl hf Apr 30 17:05:04 thanks Apr 30 17:05:20 the step after that is to run both by jenkins :) Apr 30 17:06:04 saapas make sure they can fail too, a few weeks ago asserTrue(True,false) worked :D Apr 30 17:06:19 saapas: what setup are you using for your unit tests? Apr 30 17:06:25 g00s, sure thanks :P Apr 30 17:07:12 g00s: HAI Apr 30 17:07:15 s73v3r, something I compiled from several sources found on google. not one guide is perfect. junit for the unit tests, and trying out robolectric for instrumentations Apr 30 17:07:31 thepoosh ! Apr 30 17:07:38 http://www.forbes.com/sites/parmyolson/2015/04/30/yahoo-messaging-apps/ Apr 30 17:07:58 saapas, robolectric is not instrumentation Apr 30 17:08:12 then what do people use it for? Apr 30 17:08:39 unit tests Apr 30 17:08:44 thepoosh wow, i remember using yahoo messenger or pidgin or something, haha i guess they haven't been keeping up ? Apr 30 17:08:46 robolectric is android mocks Apr 30 17:08:53 alright. Apr 30 17:09:12 g00s: they are well known for buying tons of shit, we are mentioned there Apr 30 17:09:15 maybe... Apr 30 17:09:17 who knows Apr 30 17:09:31 I am but a lowly employee Apr 30 17:10:21 thepoosh "unveil a single messaging app later this quarter" pretty soon hmm Apr 30 17:10:35 thepoosh what is the main different between Glide and Fb Messenger Video Apr 30 17:10:59 fb messenger is video calling, not video messaging Apr 30 17:11:50 this means they directly compete with Skype, not with us Apr 30 17:11:52 i'm too old to undersand the difference :| Apr 30 17:12:44 what is the difference between video calling and messaging ? Apr 30 17:13:21 :D Apr 30 17:13:40 damn it, this is what google needs to do http://blogs.windows.com/buildingapps/2015/04/29/microsoft-brings-windows-10-to-makers/ Apr 30 17:13:59 Google needs to bring Windows 10 on Android? Apr 30 17:14:06 run android on rpi2 or something, have GUI on desktop = presto, there is your HW emulator Apr 30 17:15:01 g00s: the difference is do both sides need to be connected in the same time in order to talk Apr 30 17:15:16 think about it as hangouts video call vs hangouts messages Apr 30 17:15:27 http://imgur.com/hODOV4N going to try :p Apr 30 17:15:36 video call requires all parties to be at the same room at the same time in order for the information to pass Apr 30 17:15:41 a while back there was official supported beagle / panda bits in AOSP, i think those are abandoned Apr 30 17:15:48 while sending a message is asynchronous Apr 30 17:16:06 thepoosh oic Apr 30 17:16:06 yeah it is just like leaving a video message Apr 30 17:16:24 oic??? Apr 30 17:16:30 oh i see :) Apr 30 17:16:32 they tried in the early 2000 Apr 30 17:16:35 it did not work Apr 30 17:16:41 visio-thing Apr 30 17:17:47 then they regret it, because it was consuming an enormous bandwidth on gsm/gprs/edge network Apr 30 17:17:52 regretted* Apr 30 17:18:14 and the infrastructure was not like it starts to be right now (3G, 4G, etc) Apr 30 17:19:54 they have a feel for doing things way too early Apr 30 17:20:10 such as JS, messaging, email, news portals etc. Apr 30 17:20:23 if I'm using ActivityUnitTestCase for testing a method in Activity A that launches Activity B.. what happens? will B be launched or not? if yes, I my test code must call something in B so the focus will switch back to A, yes? Apr 30 17:20:26 i never understood what the hell yahoo does Apr 30 17:22:01 I don't know if yahoo knows what the hell yahoo does Apr 30 17:22:29 sharks eat sharks Apr 30 17:23:00 saapas I’m not sure, try it? Apr 30 17:23:30 woot, i'm playing with canvas, to "view the sound", https://vid.me/zZck Apr 30 17:23:38 you can validate the launch of another activity but I’m not sure if it will acually launch Apr 30 17:24:06 tricknology_, yeap.. we'll see Apr 30 17:24:15 funny is, by mistake, I tried to reflect the phase change, it's in fact changing the frequency, something i anticipated to be not trivial Apr 30 17:24:15 For that you might want to create another test.. Apr 30 17:24:22 finally it is lol Apr 30 17:24:34 tricknology_, another test case for Activity B, sure. Apr 30 17:24:35 wrong knob. Apr 30 17:24:46 Are you passing any data between them? Apr 30 17:24:56 tricknology_, yes, a few longs Apr 30 17:25:01 If I do "view0.setAnimation(anim0); view1.setAnimation(anim1); animSet.addAnimation(anim0); animSet.addAnimation(anim1); animSet.startNow();" all of the animations should run, shouldn't they? Apr 30 17:25:40 That way I could have a variety of animations running on a variety of view but they all, hopefully, share the same underlying clock Apr 30 17:26:12 you might want to get an instance of that data from your previous test and use that for your next test Apr 30 17:26:19 yes Apr 30 17:26:25 in setUp() somewhere Apr 30 17:26:34 I don't even get an onAnimationStart event :|| Apr 30 17:26:36 let me know how that goes Apr 30 17:26:45 ok :) Apr 30 17:27:19 I’m very interested in using TDD but the time to set everything up is what gets me Apr 30 17:27:58 It's not the best in android but it's still worth it. Apr 30 17:28:02 usually deadlines ceom up too quickly to do any real TDD. usually I use it to test some module of code that would be pront to failing and that’s it. Apr 30 17:28:49 explodes, are you starting your animation in onCreate? Apr 30 17:28:50 same here. although I’m not very well versed in the techniques, so I kinda have to relearn them every time Apr 30 17:29:41 tricknology_, there's very little to setup in plain unit tests Apr 30 17:29:45 the problem is mocking Apr 30 17:29:51 once mocking becomes involved, I practically stop testing Apr 30 17:30:46 mocking is easy with dagger! Apr 30 17:30:52 kinda-ish; Apr 30 17:31:18 u2020 has a great example of how to do mock network stuff with retrofit, i think you could apply the same technique to data-access Apr 30 17:31:20 Simple mocking is ok. But what I’m not quite sure about is structuring my app so that the logic isn’t in Android type classes Apr 30 17:31:34 mocking functions is screwed tho Apr 30 17:31:54 if there’s one thing I stole from u2020, it was creating that drawer for stuff like switching server endpoints and other things like that Apr 30 17:31:56 mockito is the easiest/best way to mock imo, once you have to use powermock, you have gone too far Apr 30 17:32:17 all this ^ Apr 30 17:32:45 I’m hoping at IO, they’ll have a session about the “proper” android way of testing Apr 30 17:33:40 https://developer.android.com/tools/testing/testing_android.html Apr 30 17:33:47 ^^ Apr 30 17:34:01 Google, plz Apr 30 17:34:12 tricknology_, I think it's best to just leave it to your employer or the client whether to do TDD or not. if they're ok with the conscequences (sorry the misspell) Apr 30 17:36:33 goddamnit chrome, why you block my java applet Apr 30 17:37:32 TDD on mobile sounds terrible Apr 30 17:37:32 tricknology_, electronics are tested, so why not software. Apr 30 17:37:53 speed Apr 30 17:39:07 saapas, software is tested, that's what QA is for Apr 30 17:39:24 why use people when you can use robots? Apr 30 17:40:26 formal methods prevent a lot of testing Apr 30 17:40:32 Sometimes things don’t get tested until they hit QA, or are tested Apr 30 17:40:47 pfn_ i was going to type that but I got distracted.. (by QA hah) Apr 30 17:46:48 https://www.youtube.com/watch?v=n_915xMRGAo is this new or old to you? Apr 30 17:57:02 Why do the v7 Compatibility widgets not want to render in Android Studio’s designer? Apr 30 17:57:24 does anyone know how to add "passive" cards to android wear like google now does? Apr 30 17:57:27 something like a notification that only shows on the watch, not on the phone Apr 30 18:00:22 Darkwater, http://developer.android.com/training/wearables/ui/cards.html Apr 30 18:00:39 Hey guys, I want to ship my app with some pre installed images Apr 30 18:01:01 I tried putting the images inside a folder I created inside the drawable folder Apr 30 18:01:06 But its not showing up in AS Apr 30 18:01:24 JakeWharton: Do you consider TDD on other platforms a good approach, and what would you consider a good pattern for mobile? Apr 30 18:02:48 Hi Apr 30 18:03:01 ah, thanks adq Apr 30 18:03:10 rex__: hi Apr 30 18:05:05 What is the required skills to start learning develop app for android? Apr 30 18:05:31 the ability to learn is a pretty big one :) Apr 30 18:05:34 being able to think Apr 30 18:05:35 The ability to read Apr 30 18:05:47 being able to think logically Apr 30 18:06:05 googling is a good skill Apr 30 18:06:17 Why would a new directory in the drawable folder not show up in AS? Apr 30 18:06:22 picking the best guides Apr 30 18:06:22 It;s related to java.. Apr 30 18:06:31 if you're looking for resources to get started, start with some good java resources, and commonsware for actual android learning Apr 30 18:07:06 yiati:I'm looking on some, is a book necessary? Apr 30 18:07:29 rex__: Not "necessary", but it's good for someone that doesn't quite know where to start Apr 30 18:07:29 I've never read an Android book Apr 30 18:07:30 what I would recommend: learning a simple ('high level') language such as ruby or python -> learning java -> learning java + android Apr 30 18:07:30 * JesusFreke shrugs Apr 30 18:07:50 rex__: This book https://commonsware.com/ will get you started well, it's huge though Apr 30 18:08:21 rex__: You could always just play with sample apps and code and read the docs, if you are comfortable with java and oop Apr 30 18:08:22 I learned Python in briefly.. Apr 30 18:08:41 I learn basic of C#.. Apr 30 18:08:41 do you understand most of what you learned? Apr 30 18:09:28 Yes. Apr 30 18:09:44 then you should be all set to start learning java Apr 30 18:10:42 I'm watching the java docs.. Apr 30 18:11:02 I'd recommend some actual tutorials ^^ Apr 30 18:11:55 The problem is I'm not sure if I need to learn it as fundamental... I'm a bit confused. Apr 30 18:13:25 learn how to learn is useful Apr 30 18:18:01 Guys I need to grab a drawable from within a directory in the drawable folder Apr 30 18:18:20 R.drawable.fileName doesnt work, neither does R.drawable.dirname.filename Apr 30 18:18:27 drose379, you cannot have subdirectories Apr 30 18:18:50 So how do I organize my images Apr 30 18:18:56 use resource overlays if you want to use more than one set of directories (but that means you'll have a seaprate res/ tree altogether) Apr 30 18:18:59 organize them by name Apr 30 18:19:06 ok, easy enough Apr 30 18:19:07 Thansk Apr 30 18:19:09 Thanks Apr 30 18:20:06 hello Apr 30 18:20:27 I've created an appwidget adding some .xml files to the project, when I install my .apk, I can't see widget into the homescreen. i've taken a look at logcat, but it seems not much useful Apr 30 18:20:47 then, if I launch the app from drawer, it crashes, and logcat not seems much useful, again Apr 30 18:21:06 about the first issue, what have I to look for getting more info? Apr 30 18:21:23 logcat doesn't show Error messages, but only Warnings Apr 30 18:21:35 Any ideas? Apr 30 18:21:36 if it crashes, then you have useful logcat Apr 30 18:21:37 period Apr 30 18:21:53 pfn_, it seems related to the first issue Apr 30 18:22:08 then fix the first issue Apr 30 18:22:12 pfn_, I don't know why widget it's not created in homescreen Apr 30 18:22:17 pfn_, ah, ok Apr 30 18:22:19 because you didn't pull it over? Apr 30 18:22:28 pfn_, I've got the logcat, but it seems not useful Apr 30 18:22:40 I'll paste the logcat on pastebin Apr 30 18:22:44 add the widget to the home screen and you're done? Apr 30 18:22:49 you aren't very forthcoming with details Apr 30 18:23:52 installation should add widget to homescreen by default, according to android documentation Apr 30 18:24:15 shouldn't it be possible to have different set of dependencies for building the actual app and another set for the tests ? Apr 30 18:24:57 pfn_, http://pastebin.com/MjEp9s7G Apr 30 18:25:49 E/AndroidRuntime( 2319): at com.example.unmountusb.UnmountUsbAppActivity.onCreate(UnmountUsbAppActivity.java:25) Apr 30 18:25:56 go there, fix there Apr 30 18:26:01 adq, I've checked it Apr 30 18:26:18 the runtime checked it too, it says it's null Apr 30 18:27:01 adq, it's strange , I've not touched this code Apr 30 18:27:22 it's even mroe strange that you said logcat is not relevant and that you checked this part and blablabla Apr 30 18:27:23 adq, unmountButton.setOnClickListener(new OnClickListener() { Apr 30 18:27:34 unmountButton is null Apr 30 18:27:35 but app doesn't open too Apr 30 18:27:56 adq, logcat doesn't help me , in this case Apr 30 18:28:09 -________- Apr 30 18:28:16 and for the first issue, pretty Apr 30 18:28:41 not sure you really want to fix your error lol Apr 30 18:28:52 but you have to understand what is happening and why, in case you do Apr 30 18:28:54 app is not opened, it crashes immediately Apr 30 18:29:10 keep repeating the same thing will not fix your issue Apr 30 18:29:14 rex__: Are you still reading? Are you familiar with udacity? Apr 30 18:29:36 when dealing with AppCompat v7 stuff in the AS XML editor, do I have to import a special namespace to get it to find themes? It keeps complaining that it can’t find a style Apr 30 18:29:43 creepyncrawly: I asked a friend for help. I'm googling about java... Apr 30 18:29:48 adq, but that logcat message doesn't help to fix it Apr 30 18:29:54 keep repeating the same thing will not fix your issue Apr 30 18:29:55 I read a java book but stopped a long time ago. Apr 30 18:30:33 so I don't know how to fix it Apr 30 18:31:10 rex__: Udacity is a MOOC (massive open online course) provider. You can take courses for free. They have a beginning interactive java course that you can complete in a few weeks. Apr 30 18:31:42 It's excellent. I've completed it. Apr 30 18:32:16 i get a lint warning for not having a commit after i beginTransaction, if there are multiple things that are happening with that transaction before it is committed am i right to suppress that warning or should it be done differently? Apr 30 18:32:53 I want to develop to android less than 20 days. Apr 30 18:32:56 lol, i keep hearing podcasts & whatever - these people in SF, why do they raise the pitch of their voices after a statement Apr 30 18:33:50 i keep asking myself, was that a statement, or was he quationing what he just said :| Apr 30 18:33:56 *questioning Apr 30 18:34:53 rex__: Okay, go right to the advanced level udacity "How to develop Android Apps online" course which is prepared in partnership with Google and is also free. Apr 30 18:35:22 It's not about that.. it's about the thing about required java knowledge.. Apr 30 18:35:56 g00s, in french (and many latin influenced languages), at oral, the strict rule of [verb][subject][blabla][interrogation mark] is often bypassed into [subject][verb][blabla][?], and with the tone/pitch going up Apr 30 18:35:58 rex__: We wish you success. Apr 30 18:36:06 + the context, you recognize it's a question and not an affirmative sentence Apr 30 18:36:20 for me it's totally normal, for a german i'm sure it's not Apr 30 18:36:29 creepyncrawly: i lost my success. Apr 30 18:36:29 (german tends to pitch down at the end of any sentence) Apr 30 18:37:26 adq i found it http://www.bbc.com/news/magazine-28708526 Apr 30 18:37:33 "uptalk" Apr 30 18:37:55 thx reading it Apr 30 18:38:07 "In this theory, it developed first among young women in the San Fernando Valley. The Frank Zappa song Valley Girl, from 1982, is a musical testament to the phenomenon." Apr 30 18:38:12 lol frank zappa to the rescue Apr 30 18:38:17 lol Apr 30 18:38:29 frank zappa - the dangerous kitchen Apr 30 18:38:32 is pretty hilarious Apr 30 18:38:41 he made another one on his toilet throne i can recall Apr 30 18:38:53 :D Apr 30 18:39:44 Which IDE are you using ? Apr 30 18:39:59 sadly AS Apr 30 18:40:10 SADLY!? Apr 30 18:41:07 .__. Apr 30 18:46:51 how can I deploy my application to my android device? I tried to choose Run and then I’m presented with a bunch of option but the Run button is greyed out. In eclipse I just did Run as… Android application and then select the device connected via USB and that was it Apr 30 18:46:56 could anybody please help me? Apr 30 18:48:31 Which IDE? Apr 30 18:48:40 Isadly AS Apr 30 18:48:43 lol Apr 30 18:50:11 SmashingX2, in the Run/Debug Configurations , under Android Application you have to have an entry that has USB device set as Target Device. or you can choose to have a dialog popped every time you wish to run it Apr 30 18:54:46 its interesting after i read a few microsoft announcements about their tools, their new strategy is "meet developers where they are" - so they are adding language services to SublimeText for example Apr 30 18:54:51 yes I clicked that and Run is still greyed out Apr 30 18:55:09 how can I... uh... debug why an android running alongside sailfish os gets no input? Apr 30 18:55:31 either from touchscreen or hw buttons Apr 30 18:55:43 i guess Google has done that too, since our tools run on win/mac/linux - i just wish they left Eclipse in the picture Apr 30 18:56:51 saapas: is this right? http://postimg.org/image/y8f2glhpd/ Apr 30 18:58:20 SmashingX2, setting an Activity to launch might help. Apr 30 18:59:54 the one with the textbox? Apr 30 18:59:57 saapas: ? Apr 30 19:00:53 because if I click that and then the … button it says: Cannot find Android.app.Activity class Apr 30 19:01:35 SmashingX2, do you have an activity in your app? Apr 30 19:01:57 activity? no Apr 30 19:02:29 well my app is an activity Apr 30 19:02:47 SmashingX2, you have a class that extends the Activity class, yes? Apr 30 19:07:57 yay AS 1.2 stable Apr 30 19:11:03 I often see code like "if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {" which leads to NoSuchFieldExceptions on older platforms (ICS in this case). Is this an error in my build environment or should we use numbers (e.g. 16) here? Apr 30 19:12:00 https://vid.me/IlmU much better Apr 30 19:12:07 groxx did you see the 'distraction free' mode in AS 1.2 ? Apr 30 19:12:13 canvas is so good and simple to draw in it Apr 30 19:15:12 g00s: sounds like a good idea Apr 30 19:16:00 it doesn't cut off IRC though :P Apr 30 19:19:30 g00s: I'm aware of it, but I don't really find those modes compelling Apr 30 19:19:44 Yeah, likewise Apr 30 19:20:04 ralala, that constant is inlined Apr 30 19:20:21 ralala, it does not lead to an error unless your compiler is broken Apr 30 19:21:01 or you're using kotlin Apr 30 19:21:21 yeah, I've heard kotlin doesn't inline properly Apr 30 19:21:38 which is broken, imo. but anyway :) Apr 30 19:21:53 okay, then I think it's indeed a kotlin problem Apr 30 19:22:10 ( a library I am using is written in kotlin and throws this exception ) Apr 30 19:22:13 ralala: yeah, for kotlin, just use the numerical constant instead Apr 30 19:22:51 oh, a library? That's.. non-ideal. You'll probably have to send a pull request their way, or file an issue or something Apr 30 19:23:11 yeah, I'm surprised kotlin got this. wrong Apr 30 19:23:50 are there locales that use comma for decimal seperator ? Apr 30 19:24:05 0.9 -> 0,9 ? Apr 30 19:24:07 yeah, there was some discussion about it yesterday. There's an issue for it, at least Apr 30 19:24:08 https://youtrack.jetbrains.com/issue/KT-6818 Apr 30 19:24:29 g00s: I don't know offhand, but I would guess yes Apr 30 19:24:43 g00s: yes there are Apr 30 19:24:47 i thought maybe thousands seperator, but huh shit Apr 30 19:24:55 i guess that f'd up my CSV export :P Apr 30 19:25:06 Switching commas and dots for decimals and large quantities Apr 30 19:25:55 I forget which locale does e.g. "1 000,23" Apr 30 19:26:05 finnish, for one. Apr 30 19:26:09 hm i guess String.format("%.1f") is smarter than i expected Apr 30 19:26:16 too smart Apr 30 19:26:25 yeah, that'll give you arabic numbers in some formats too Apr 30 19:26:33 s/format/locale/ Apr 30 19:26:40 d'oh! Apr 30 19:26:56 does DecimalFormat help here ? Apr 30 19:26:59 JesusFreke: pfnQ: done, thanks for your help Apr 30 19:27:32 g00s: dunno Apr 30 19:30:34 g00s, all the euro Apr 30 19:33:26 so then in locales that use , for decimal sep, it makes sense to export CSV with some other delimiter like | or something ? Apr 30 19:33:46 wonder what the norm is in those areas Apr 30 19:37:50 why not use a real CSV exporter, which will quote values like that? Apr 30 19:38:43 hi guys, I have a problem. If i use a content provider, my data does not return what i expect, if i use a database query it does. Can anyone please tell me what i'm doing wrong? here is my test http://paste.ubuntu.com/10955403/ and here is my content provider implementation http://paste.ubuntu.com/10955399/ if i uncomment the code from the test and comment the content resolver, it works Apr 30 19:41:56 g00s: you should specify the locale when formatting the number for csv Apr 30 19:42:10 e.g. the String.format(Locale, String, Object...) version Apr 30 19:42:24 assuming the numbers aren't for display Apr 30 19:42:42 ok bocelli is on http://goo.gl/VE8amz Apr 30 19:42:53 alternately, the standard for csv is to quote the value if it contains a comma Apr 30 19:43:08 JesusFreke ok thanks - but i guess 0,9 is in fact right for that locale - i just didn't think about it Apr 30 19:43:16 loin: are you sure your uri matcher is working like you expect? you're definitely hitting the category_id branch? Apr 30 19:43:49 groxx lol real csv exporter :P Apr 30 19:43:56 groxx, i have a test that checks that assertEquals(Category.CONTENT_TYPE_ITEM, contentResolver.getType(Category.getById(30))); Apr 30 19:44:01 groxx, that test passes Apr 30 19:44:05 now, importing CSV can be hassle because the format is loosey goosey Apr 30 19:44:16 g00s: are you using that as a persistance mechanism? Or ?a data export for user consumption Apr 30 19:44:24 JesusFreke data export Apr 30 19:44:44 Ah, ok. Yeah, I would go with quoted values in that case Apr 30 19:45:00 son of a gun Apr 30 19:45:09 groxx, since they have basically the same switch, if getType returns, query should too, i suppose http://paste.ubuntu.com/10955458/ Apr 30 19:47:40 loin: that does seem pretty clear, yeah. could assertEqualsData be checking the notification uri? Apr 30 19:49:00 g00s: are you watching bocelli? Apr 30 19:49:06 no Apr 30 19:49:50 i'm reading this https://blog.bitbucket.org/2015/04/30/mercurial-onward-and-upward/ Apr 30 19:49:58 loin: though I'd still make sure the values coming back look right. e.g. is the id sane? could the uri matching break if it's 0 or -1 or something? maybe assertEquals(content_type_item, category.getById(id))? Apr 30 19:50:05 " and the announcement of both Facebook and Google choosing Mercurial over Git. " Apr 30 19:50:06 wat Apr 30 19:50:18 wat Apr 30 19:50:38 loin: btw is this open source? I see so few tests in android projects D: reading some would probably be interesting. Apr 30 19:50:51 mercurial must be connected to nsa. Apr 30 19:50:52 gdrc btw what is that , its all in italian :D Apr 30 19:51:22 g00s: it's universal language, it's music Apr 30 19:51:52 groxx, no, let me give you more context http://paste.ubuntu.com/10955502/ Apr 30 19:52:05 "We will have speakers from Google and Facebook to talk about why they picked Mercurial as the version control system and what this means for the future of Mercurial." Apr 30 19:52:31 test Insert read all checks all the uris and it succeeds, validate row checks for all the attributes Apr 30 19:52:32 it means, it took me 2 years to be comfy with gut and now i'm going to have to learn hg :| Apr 30 19:52:38 *git Apr 30 19:52:53 How would Google choosing mercurial impact you.. Apr 30 19:53:22 well not directly, but it could be the beginning of some trend / shift Apr 30 19:53:50 i just used git because, and still i guess, its what most people use so Apr 30 19:54:48 i wonder if git on android team didn't work out so well, i mean needing that repo crap Apr 30 19:56:18 I'd like to shade an entire fragment, how would I do that? Basically like place a semi transparent square over the entire thing Apr 30 19:57:26 JessicaMeli i guess you could have the fragment's layout parent be FrameLayout, with (1) view with alpha (2) the real view ? Apr 30 19:57:56 JessicaMeli: if the root is a FrameLayout, I recently discovered it has a "foreground" drawable, which seems kinda for this purpose Apr 30 19:58:02 I'm getting this error when building an app Error:Execution failed for task ':app:dexDebug'. Apr 30 19:58:03 > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2 Apr 30 19:58:50 groxx interesting ! Apr 30 19:58:54 cool so ill do some digging with framelayout Apr 30 19:58:56 g00s: Google and Facebook are big companies, maybe some smaller projects decided to go with mercury over git Apr 30 20:00:12 groxx, I'm actually starting to develop android now, i wouldn't think that it would get this far, the package name is still com.mycompany.myfirstapp, lol Apr 30 20:00:46 it should be com.loin.loinsfirstapp Apr 30 20:00:48 so it's not open source, once i will make it into a product i will open source it :) Apr 30 20:01:59 ok fixed :P Apr 30 20:02:24 g00s, too late now, if i change it all hell breaks loose Apr 30 20:02:45 by the way, is there a way in androdi studio to pin the "project files" view to the opened tab? Apr 30 20:02:55 loin: well, your code is surprisingly readable for starting, so that's a good sign :) I'm still interested in helping, just kinda slow because I'm also at work. Apr 30 20:03:04 For instance, if i'm in the TestContentProvider.java, have TestContentProvider selected in the view Apr 30 20:03:18 though my first instinct would be to go through it with a debugger and make really sure everything is as you expect. Apr 30 20:04:41 loin: hm. is your SQLiteOpenHelper a singleton? it should be. I'm not sure if multiple instances will play nicely together, or if they could miss each others reads/writes. Apr 30 20:04:52 groxx, thanks, I'm not a beginner programmer, i'm just a beginner at android, i've been developing java application for some time Apr 30 20:05:12 that would certainly help :) Apr 30 20:05:14 groxx, turns out that i was debugging the wrong file, Apr 30 20:05:26 testProvider and testDatabase are basically the same Apr 30 20:05:37 and i was actually modifying testDatabase instead of testProvider... Apr 30 20:05:45 doh! Apr 30 20:05:50 i was used to having the opened tab linked to the project files view Apr 30 20:05:53 like in eclipse Apr 30 20:06:00 lol - it's always the simple stuff Apr 30 20:06:02 i haven't found a way to pin it in android studio Apr 30 20:06:22 loin: click the gear in the top right of the project panel Apr 30 20:06:36 "autoscroll from source" Apr 30 20:07:01 still not, i'm inside category and dbHelper is selected there Apr 30 20:07:26 wait Apr 30 20:07:32 again, i selected autoscroll to source Apr 30 20:07:37 I'm way too tired for this Apr 30 20:07:39 sorry groxx Apr 30 20:07:44 thank you for the hint Apr 30 20:07:44 i'd like to use https://github.com/yahoo/squidb Apr 30 20:07:51 haha, np Apr 30 20:08:51 i was debugging the content provider for like an hour because i've made the foolish assumption that i was in the file that was highlighted, TestProvider was a copy of TestDatabase, all that changed was instead of reader.query, contentResolver.query Apr 30 20:09:01 and testDatabase didn't filter by id, but testProvider did Apr 30 20:09:21 loin: btw if you don't know it already, try cmd-shift-A (probably ctrl on other OSes?). it'll let you search all commands in the IDE. Apr 30 20:09:37 tricknology_, http://developer.android.com/training/activity-testing/activity-unit-testing.html Apr 30 20:09:45 Hey all! Any recommendations for a card-ui library? Apr 30 20:09:49 Has anyone have a prob with nexus 6 it reboot by itself? Apr 30 20:09:50 thanks groxx, that'll be helpful Apr 30 20:10:01 tjbiddle: gabriele mariotti's one Apr 30 20:10:10 perlsyntax: #android Apr 30 20:10:20 gdrc: Cool - that's the one I was looking at already; glad to hear someone vouch for it :-) Apr 30 20:10:27 Sorry Apr 30 20:10:34 I think the only other hotkeys I actually use are for "run" and "refactor" (cmd-R, ctrl-T). being able to search everything is amazing. Apr 30 20:10:43 tjbiddle: i know the developer he's italian Apr 30 20:11:44 gdrc: Well that's a.. random fact about him - but cool! Apr 30 20:11:51 groxx, in eclipse i only use shortcuts, i have like 100 custom ones, whenever i have to use someone else's eclipse it's like i'm disabled, that's the issue of having custom things, when you don't have them, your productivity drops like crazy Apr 30 20:17:33 gdrc still doing windows phone? what do you think of the build announcements ? Apr 30 20:20:01 I just did one app, just to explore the framework. I haven't red a lot about Build 2015 but I think they're doing a great job about asp. I think it will be used more and more in the next years Apr 30 20:23:23 Class FooBarTest has no public constructor TestCase(String name) bah! what? Apr 30 20:23:57 that sounds quite obvious Apr 30 20:24:15 but it's not Apr 30 20:30:26 how isn't it obvious, you don't have the constructor that it needs Apr 30 20:34:46 pfn_, because if I add such a constructor in said test class, it's not the solution! Apr 30 20:35:22 how is it not? Apr 30 20:36:13 my test class extends ActivityUnitTestCase, which only has one constructor, that is neither of the mentioned "missing" Apr 30 20:37:44 Anyone ever run into an OutOfMemoryError when pulling drawable resources? Apr 30 20:38:17 saapas: Did you consider trying what it says? http://stackoverflow.com/a/23883537/1229735 Apr 30 20:39:04 saapas: http://stackoverflow.com/a/9624423/1229735 Apr 30 20:40:18 hm. saapas the activity-unit-testing link you posted earlier has a demo, which shows how to do the constructor. Apr 30 20:40:41 yiati, yes, before and after commenting junit import. works after, now I get: Method setUp not mocked Apr 30 20:41:11 I have written a setUp() .. perhaps it's incomplete Apr 30 20:42:02 what is up with all the reserved names in java Apr 30 20:42:52 doesn't seem like _that_ many reserved words to me Apr 30 20:43:54 I'd argue "transient" is stupid, but the others are generally very-common or have obvious uses in a more strict language like Java Apr 30 20:44:39 does it make sense to debug testing code?-) Apr 30 20:44:48 "@Override" makes me cringe Apr 30 20:44:56 and CREATOR Apr 30 20:44:59 that's an annotation, totally different. Apr 30 20:45:02 You make good arguments, very concrete Apr 30 20:45:17 and CREATOR is indeed strange. dunno what the alternative is though :\ Apr 30 20:45:52 I dont usually code in java so its defintely strange for me Apr 30 20:46:39 maztheman: @Override is a very useful annotation Apr 30 20:46:39 groxx, turns out it wasn't that i was in testDatabase, it fails again :) Apr 30 20:46:43 annotations are "just" metadata. they can be used at compile time or runtime. e.g. @Override is primarily for documentation / linting purposes Apr 30 20:46:56 No it’s not just for documentation, it also avoids bugs Apr 30 20:47:15 which is why I included linting :) Apr 30 20:47:55 getInstrumentation().getTargetContext() causes NPE. hm. Apr 30 20:49:10 hm, going in/out distraction free mode seems to clear my font preferences - thats the end of that Apr 30 20:49:30 with Android Studio 1.1.0, which button creates the apk? right now i keep havin to start debugging to have the apk show up under "build\outputs\apk" Apr 30 20:49:57 gosh, InputMethodManager leaks Activity? Apr 30 20:50:21 maztheman: ctrl+r if you have your gradle stuff setup correctly Apr 30 20:51:04 maztheman, find the task assembleRelease in Gradle view. open context menu on it and choose Run, or Create to have it in the run configuration Apr 30 20:51:33 maztheman: actually https://www.jetbrains.com/idea/help/running-applications.html Apr 30 20:51:43 reading that site Apr 30 20:51:47 thanks Apr 30 20:53:37 ok I have a url wich responds with a json. I have to serialize in java classes. what do you use to do that? how do you generate the classes? Apr 30 20:53:49 can anyone tell me how to read the logs during android test cases? Apr 30 20:54:19 gdrc, marshalling? Apr 30 20:55:09 saapas: the opposite, yes Apr 30 20:55:24 oh I thought it means both directions :) Apr 30 20:56:05 this program would make more sense if i was 13 and could play with it all day Apr 30 20:56:40 saapas: I just need to generate the classes. In C# I use http://json2csharp.com/ wich is great Apr 30 20:57:15 gdrc: Wow - Diving more into this; this library has a ton of functionality Apr 30 20:58:44 yiati: that page was helpful for launching but not generating the apk, etc. im sure ill find the answer on one of the pages there. Apr 30 21:00:11 maztheman: yeah, that just the general build button for intellij which is what it sounded like you were looking for. Do you want to know how to generate a release apk? While building normally it already makes an apk signed with a debug cert, in your build directory Apr 30 21:00:33 if it does, i dont know where to find it Apr 30 21:00:36 its not obvious Apr 30 21:00:53 and there is no "file generated at c:\.....\" in the output Apr 30 21:01:04 like i was expecting Apr 30 21:01:10 maztheman: There's a ton of output Apr 30 21:01:21 maztheman: build/outputs/apk/ is the current directory Apr 30 21:01:27 2:59:52 PM Gradle build finished in 1s 774ms Apr 30 21:01:45 if you have built there should be both a debug signed and unsigned apks in there Apr 30 21:02:05 maztheman: --verbose Apr 30 21:02:29 bah. why be surgical when you have a sledge hammer. maztheman run the "assemble" task. Apr 30 21:02:40 i probably dont have it setup Apr 30 21:02:44 since i just took the defaults Apr 30 21:02:56 you do. open the gradle panel. Apr 30 21:02:57 groxx i dont see that anywhere obvious Apr 30 21:03:06 maztheman: If you have run the app on something then you have a build folder unless you cleaned Apr 30 21:03:21 when i run, it puts the apk there Apr 30 21:03:47 maztheman: Also the defualt folder view is probably "Android", and you can't see the build folder from there. If you change it to "Project" you can see the build folder Apr 30 21:03:49 Does anyone have Android Studio working with OpenJDK on linux? Apr 30 21:03:59 srg: yes Apr 30 21:04:12 Mine is giving me issues, but I'm not sure if it's actually the JDK or android-studio that's the problem Apr 30 21:04:30 maztheman: http://cl.ly/image/2z060P0o1n11 on the right side. or cmd-shift-A -> "gradle" to show it if it's not there. Apr 30 21:05:25 well i dont have tasks under app Apr 30 21:05:49 oh Apr 30 21:05:54 okay now what you said makes sense Apr 30 21:05:58 folder view Apr 30 21:07:02 JakeWharton: you there? Apr 30 21:07:03 yeah. it'd be nice if we could search within collapsed folders. otherwise, I tend to expand all -> type a few letters Apr 30 21:07:41 are there devices where airplane mode does /not/ disable bluetooth ? Apr 30 21:07:48 groxx: i found the gradle view Apr 30 21:08:03 just re-reading what you said Apr 30 21:08:57 Can I use the KVM acceleration in AndroidStudio when I have virtualbox installed already? Apr 30 21:08:59 groxx: do you know of a way to create a new file in some directory that happens to be in the middle of a collapsed folder in intellij/AS? Apr 30 21:09:05 The docs say I have to unload the virtualbox kmod Apr 30 21:09:20 groxx: I always just end up using touch in terminal :P Apr 30 21:10:08 yiati: nope :| I navigate around usually and cmd-N when I find the right spot. Apr 30 21:10:24 at some point you have to do something similar anyway, but it does feel sub-optimal Apr 30 21:11:34 groxx: ok runing the assembleDebug was what i wanted i guess Apr 30 21:11:42 they really dont make it simple Apr 30 21:11:56 I would kinda expect 'make project' to do that, but yeah. Apr 30 21:11:58 Hm, now there's an error when running Android Studio: http://pastebin.com/1usUvevM Apr 30 21:12:02 I've come to terms with it :| Apr 30 21:12:02 gdrc: partially Apr 30 21:12:06 anybody knows how to make InputMethodManager to not lick? it just leaks =) http://t.sql01.com/sc/ffdd1158_1430428295.png Apr 30 21:12:22 s//to not leak) Apr 30 21:13:06 groxx: Ah cool didn't think to do cmd+up and cmd+n, at least that way I can stay in AS, but yeah it definitely feels wrong still Apr 30 21:13:20 JakeWharton: fast question: a decent tool to create a model from json text to use with retrofit? in c# I use http://json2csharp.com/ wich is great. For java I've tried two websites wich suck. Apr 30 21:13:40 srg lol, you can star https://code.google.com/p/android/issues/detail?id=152213 Apr 30 21:13:47 which i filed btw :D Apr 30 21:13:51 i've always just done it by hand ¯\_(ツ)_/¯ Apr 30 21:14:02 did you try http://www.jsonschema2pojo.org/ ? Apr 30 21:14:17 srg in the meantime, when you start AS for first time, close the first run wizard, select 'do not run again'. then config sdk path manually Apr 30 21:14:44 g00s: I'll comment/star it Apr 30 21:14:48 srg are you using AS 1.1 or 1.2 ? Apr 30 21:15:04 I just now downloaded the version on the website, so I guess 1.2? Apr 30 21:15:15 i'm surprised they didn't fix that O.o Apr 30 21:15:23 This file: android-studio-ide-141.1890965-linux.zip Apr 30 21:15:30 yeah thats 1.2 Apr 30 21:15:33 JakeWharton: yes. the json is this http://www.radio24.ilsole24ore.com/api/programmi I don't wanna die writing classes lol Apr 30 21:16:09 Is the code on github or something? I don't have/use a google account Apr 30 21:16:16 to comment on that issues Apr 30 21:16:18 -s Apr 30 21:16:24 gdrc: lol Apr 30 21:16:46 * gdrc downloading xamarin Apr 30 21:17:00 hey guys, do you know by any chance how can I see the permission prompt when using google plus login API? I approved it once and I cannot see it again. I tried revoking access from https://support.google.com/accounts/answer/3466521?hl=en and I tried to revoke it programmatically with Plus.AccountApi.revokeAccessAndDisconnect(client); - nothing helps Apr 30 21:17:20 AS 1.2! Apr 30 21:17:23 err, from https://security.google.com/settings/security/permissions Apr 30 21:17:36 Time to switch to normal channel and never upgrade to Canary/Beta Apr 30 21:20:09 ah shit, pre 4.2 it was Settings.System.AIRPLANE_MODE_ON , afterwards Settings.Global.AIRPLANE_MODE_ON Apr 30 21:21:01 groxx: that' sad! Apr 30 21:30:07 anyone having AS 1.2 Build -> Clean Project resulting in gradle errors ? Apr 30 21:30:35 specifically manifest merger errors, which is weird why any manifest merging would be going on unless things are running automatically after clean Apr 30 21:30:52 but normal build from AS / CLI is fune Apr 30 21:30:54 *fine Apr 30 21:39:04 g00s: thanks just discovered 1.2 stable Apr 30 21:40:52 dont thank me just yet :P Apr 30 21:41:08 I still haven't found out why getInstrumentation().getTargetContext() causes NPE. any ideas? Apr 30 21:41:29 saapas could you be using the wrong test runner ? Apr 30 21:41:42 * g00s no idea Apr 30 21:41:43 g00s, perhaps. Apr 30 21:41:55 anything is possible since I'm new to android testing Apr 30 21:43:21 http://pastebin.com/2rAm8cea Apr 30 21:43:47 it's pretty much just copy-paste from http://developer.android.com/training/activity-testing/activity-unit-testing.html Apr 30 21:45:22 org.junit.internal.runners.JUnit38ClassRunner.run well, well, well Apr 30 21:45:37 how can I deploy my application to my android device? I tried to choose Run and then I’m presented with a bunch of option but the Run button is greyed out. In eclipse I just did Run as… Android application and then select the device connected via USB and that was it Apr 30 21:45:43 Im using AS by the way Apr 30 21:45:53 thx saapas Apr 30 21:46:21 saapas hmm - that stuff is outdated i think, you want to use ATSL 0.2 Apr 30 21:46:40 o_O wat Apr 30 21:47:19 saapas https://developer.android.com/tools/testing-support-library/index.html Apr 30 21:47:37 I googled for atsl 0.2 and wondered what the eff Apr 30 21:47:41 the old way should still /work/ but may as well do it the new way Apr 30 21:48:02 this may be a silly q but, android apps don’t open app to app via URL scheme do they? Apr 30 21:48:06 I’m only familiar with intents Apr 30 21:48:32 url scheme like how iOS apps open eachother Apr 30 21:48:56 why the bloody hell can't the official documentation about android unit testing say anything about this? Apr 30 21:50:51 android.support.test package is not available.. Apr 30 21:51:28 saapas you need to add it from the support library, grab in sdk manager Apr 30 21:51:42 but why would I want to use support libraries? Apr 30 21:51:44 i've only used junit4 unit tests, not espresso, etc Apr 30 21:52:04 saapas well, then you can use the junit3 stuff :) Apr 30 21:52:36 support library that provides you with a newer library. ok. Apr 30 21:52:43 My Animation.AnimationListener fires 1 start event, but it fires 4 end events. There are 5 animations. It seems like somehow the other concurrent animations are leaking into the listener? (The listener is only attached to a single animation) Apr 30 21:53:44 I have android support library 22.1.1 installed. sigh. maybe I have the wrong version of build tools selected? Apr 30 21:54:19 that sounds right, you need to get the right test deps though Apr 30 21:54:29 testCompile 'support:blah' Apr 30 21:55:44 read that whole page, config at bottom Apr 30 21:55:53 http://static.fjcdn.com/pictures/God_cc578a_278089.jpg Apr 30 22:02:16 http://pastebin.com/ZKq30YLY Apr 30 22:03:18 my nfc doesn’t seem to work. I hold it up to a tag and nothing happens Apr 30 22:03:35 guys tell me one thing is there any software where we can layout the app that we want it to look like Apr 30 22:03:40 to show some people Apr 30 22:03:40 is there a command I can send it that checks/troubleshoots the nfc hardware? Apr 30 22:03:58 just rough layout Apr 30 22:04:58 Anyone? Apr 30 22:11:54 ronkrt, difficult to help because the types of the variables are not defined in that snippet Apr 30 22:11:56 how can I deploy my application to my android device? I tried to choose Run and then I’m presented with a bunch of option but the Run button is greyed out. In eclipse I just did Run as… Android application and then select the device connected via USB and that was it Apr 30 22:11:59 Im using AS by the way Apr 30 22:14:26 ronkrt: looks fine to me. you've probably changed the code since that error, or it's not coming from those lines. Apr 30 22:14:57 It is Apr 30 22:15:36 I'm trying to get the shattered pixel dungeon code working that's the only error and where it pops Apr 30 22:15:52 ronkrt, when curChargeKnown is true, curCharges will be returned and I guess it's an int. but int + String is no-can-do. convert the int to string first Apr 30 22:16:16 .. I guess Apr 30 22:17:01 int + string works. if I copy / paste that and replace the values with other things, it compiles fine. Apr 30 22:17:12 hence: the code does not match the snippet, or it's not coming from that line. Apr 30 22:19:39 How would I go about that? Apr 30 22:19:51 "Resolved versions for app and test app differ" oh brother. Apr 30 22:26:03 Great Britain and the United States are two of the few places in the world that use a period to indicate the decimal place." oh my i 've screwed up Apr 30 22:29:35 g00s, are you sure about your source? Apr 30 22:29:55 g00s: quite a few maybe? Apr 30 22:30:17 http://en.wikipedia.org/wiki/Indian_numbering_system now this is screwed up :) Apr 30 22:31:00 lol, oracle http://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html Apr 30 22:49:53 is repairing my NFC hardware on a nexus 4 something that sounds do-able? Apr 30 22:50:13 or is it cheaper to scrap it and get a new phone? Apr 30 22:50:28 sorry I guess this is the wrong room, figured somone here might know Apr 30 22:50:34 saapas: that's kinda cool... sorta similar-ish to how the japanese use 'man' Apr 30 22:56:37 http://flurrymobile.tumblr.com/ Apr 30 22:56:42 this is pretty interesting Apr 30 22:58:40 dang it, AS 1.2 is starting up 2 gradle daemons sometimes Apr 30 23:04:13 I created a new app, selected an activity, but when I click on "Run" it comes up with a window that says "Error: Default Activity not found" Apr 30 23:04:41 I didn't even change anything from the plain app template, how can it be broken already? Apr 30 23:06:00 * srg goes back to his Nokia 1011 Apr 30 23:08:21 http://stackoverflow.com/q/28999124 I have nowhere near this many dependencies and I get the dex problem :D >_< Apr 30 23:13:46 already fixed two errors with update to 1.2 (stable channel!) Apr 30 23:14:05 g00s, I still don't have android.support.test. unbelievable. Apr 30 23:14:09 now I've got BUILD SUCCESSFUL however when launching -- Gradle sync failed Apr 30 23:18:33 https://vid.me/mbVt man you can spend an entire life in a canvas.. almost done Apr 30 23:21:10 nice Apr 30 23:22:12 thx Apr 30 23:22:37 hi Apr 30 23:22:54 i've still got few issues to resolve (wrong vertical offset when mix is not centered), but main stuff is done Apr 30 23:23:46 oh I suppose I have to add sdk/extras/android/m2repository/com/android/support/test somewhere?? Apr 30 23:24:00 nice indeed adq how do you draw this line? via path? Apr 30 23:24:06 yes icedp Apr 30 23:24:27 and i use the same formula already in use to generate the audio somewhere else Apr 30 23:24:33 just the mixing is not correct right now Apr 30 23:38:44 I'm new on android dev. what is the best way to create a layout with % on the height? TableLayout? Apr 30 23:39:54 linearlayout + weights May 01 00:02:41 g00s: thanks May 01 00:23:37 http://www.google.com/design/spec/usability/bidirectionality.html#bidirectionality-other-localization-considerations this is quite an interesting read. i never thought of having to reverse icons May 01 00:24:47 good thing I don't care about rtl localization May 01 00:26:40 did appcompat 21.+ break the hardware menu button? May 01 00:26:48 my sgs3 isn't popping up the menu when pressing menu... May 01 00:27:24 http://stackoverflow.com/questions/27278421/menu-key-not-working-in-appcompat May 01 00:27:24 nice May 01 00:29:20 I need to design this: http://imgur.com/Zs2VIsN and have like no idea where to start. any ideas? May 01 00:29:48 at first a was thinking a gridview in the middle, but now im thinking a relative layout of buttons May 01 00:31:46 and no, that doesn't work either May 01 00:32:10 it's a list view May 01 00:32:26 simple linearlayout May 01 00:32:30 oo, mastermind! May 01 00:32:32 with fixed cell sizes May 01 00:32:32 I loved that game May 01 00:33:08 ahhh a listview! why didn't i think of that May 01 00:33:36 but then how can i align the grid with it's background? May 01 00:34:18 Basiclly by CS teacher and my friend were making this mastermind game with some added stuff. my friend finished months ago and is fed up that the CS teacher hasnt started and is now paying me to do it May 01 00:34:27 s/by/my May 01 00:34:56 Your teacher is paying you. wat May 01 00:35:07 no my friend is paying me May 01 00:35:15 the teacher is "kicked off" the project May 01 00:35:19 Sorry, I can't read today. :D May 01 00:35:25 kinda a fucked situation May 01 00:36:45 What the heck. In AS 1.2, if I press Backspace on an indented (but otherwise blank) line it goes up to the previous line rather than deleting a space. May 01 00:38:08 TacticalJoke did you see that piece in HN today about hg ? May 01 00:39:09 Oh yeah. That was posted by one of the #mercurial regulars (who's just been hired by Bitbucket). Checking out the comments now though. May 01 00:39:38 pfn_ that seems pretty old question about hardware menu ... if its not fixed by now ... May 01 00:39:47 fix is pretty simple i guess May 01 00:39:55 DadFoundMy, linear layout with fixed item sizes May 01 00:40:06 g00s, not if you're using ActionBar still... May 01 00:41:07 Hello friends\ May 01 00:41:37 For anyone around. I am trying to get gallery photos to be an option when the user is taking a photo in my android app May 01 00:41:53 ie. they click the take photo button, and can choose either from gallery or to take a new photo May 01 00:41:57 the code I am currently using is at http://stackoverflow.com/questions/29962774/allow-gallery-photos-as-well-as-camera-photos-in-android May 01 00:42:56 g00s: "I refuse to do that out of principle. I think Mercurial should have taken the place of git as the widely used DVCS." Preach it, brother! :D May 01 00:43:20 lol May 01 00:43:56 i ... worry about large systems written in dynamically typed languages like python May 01 00:44:20 The speed-critical parts are written in C. May 01 00:44:35 oh so its a mix eh May 01 00:47:48 oh, actually, the menu button thing is a fix, lol May 01 00:48:04 Also note this (though I'm sure you've seen it before): http://www.reddit.com/r/programming/comments/1unehr/scaling_mercurial_at_facebook May 01 00:48:04 I had code to manually handle the menu key before, and that was overriding what appcompat was doing May 01 00:48:45 huh https://dev.windows.com/en-US/uwp-bridges/project-astoria May 01 00:48:56 "Publish your app and get paid through the Windows Store" May 01 00:49:54 TacticalJoke i was mostly interested in comments about fb/goog migrating to something May 01 00:50:19 although, i thought goog had "not p4" , like p4 source code + changes or something May 01 00:54:29 g00s: I'm hoping that once Evolve is released Mercurial will significantly increase its mind share. It certainly deserves to (AFAIK, Git has nothing like Evolve and never will). May 01 00:54:44 Though this hope might be like the hope of those religious people awaiting Jesus' return. May 01 00:55:14 what is the advantage of Mercurial to soemthing like git? May 01 00:57:02 DadFoundMy: Mainly that Mercurial has a simpler, nicer, saner UI. It's a revision-control system, an abstract entity, and not a bunch of tools like Git. May 01 00:57:30 Also, Mercurial has real Windows support (although I'm out of date on Git lately; not sure how it fares here these days). May 01 00:58:12 DadFoundMy: http://stevelosh.com/blog/2013/04/git-koans/ May 01 00:58:22 was fighting with update to 1.2. one particular project won't get synced (another one does) "Gradle project sync in progress" wouldn't go away. I've tried different SDK/gradle versions etc. May 01 00:58:37 to fix I imported the prodject. into itself May 01 00:58:49 so much for stable version May 01 00:59:23 hm interesting, everytime ive used git its been nothing but trouble May 01 00:59:38 but tobe fair that might be from me never actually taking to the time to learnthe correct way to use it May 01 01:00:42 hey guys, is there some problem with Anrdoid emulator and the camera orientation ? its seems like that there is a different behaviour between different phones and different emulators May 01 01:00:46 well, with Hg, you don’t really have to take the time to learn it, you just use it May 01 01:01:35 icedp are you using gradle-plugin 1.2.2 ? May 01 01:01:40 * TacticalJoke gives s73v3r the secret Mercurial handshake. May 01 01:02:20 I’d love to return, but sadly I haven’t used Mercurial in a while. All of my jobs have been using Git May 01 01:02:27 DadFoundMy: It's a better product, IMO. Unfortunately, though, GitHub doesn't support Mercurial. May 01 01:02:40 g00s: the project that compiled did so with 1.0.0; the project that doesn't won't do it neither with 1.0.0 nor with 1.2.2 May 01 01:02:41 And, yeah, employers often want Git users. May 01 01:02:46 oh thats kind of a deal breaker than May 01 01:03:24 Bitbucket supports it, but Bitbucket is not GitHub. :/ May 01 01:03:30 g00s: there is that exact issue reported for 1.2 RC1. 1.2 didn't fix it May 01 01:03:47 yeah ,,, i did see that happen once, not lately May 01 01:03:58 annoying as hell :) May 01 01:04:15 it could only be worse if it was pulsating red or something May 01 01:04:27 Can someone try this in AS 1.2: Create a blank line with an indent (so just press Enter within a method or class declaration). Now press Backspace -- does it delete one space or delete the entire line? May 01 01:04:31 g00s: but also I couldn't run anything =) May 01 01:04:46 In AS 1.2 RC1, it deleted one space here. In AS 1.2, it deletes the whole line here. May 01 01:04:56 TacticalJoke: ideavim :D May 01 01:05:00 I'm not sure whether my config is busted. May 01 01:05:04 TacticalJoke i think that backspace / indent thing is intellij 14 May 01 01:05:14 <_genuser_> hello yodellers May 01 01:05:33 g00s: Does it delete the whole line for you? May 01 01:05:49 * _genuser_ feels left out of the "mercurial" handshake May 01 01:06:22 TacticalJoke lets say i have danging } at col 4, and then press Newline several times. cursor will be under } May 01 01:06:31 if i do backspace, each time, line deleted, still under } May 01 01:06:39 *dangling May 01 01:07:39 g00s: Okay, thanks. Guess it is by design. May 01 01:07:50 _genuser_: Didn't I give you the secret handshake before? :D May 01 01:07:56 TacticalJoke https://www.jetbrains.com/idea/whatsnew/ May 01 01:08:20 "Smart Backspace Indent" May 01 01:08:35 Ah, not sure how I missed that. May 01 01:08:39 <_genuser_> TacticalJoke: probably. us mercurial users gotta keep the love for hg alive May 01 01:08:43 Or maybe I didn't but it wasn't in AS till recently. May 01 01:10:15 <_genuser_> now if your app needs web backend (user registration, RESTful API for downloading/uploading data), how do you go about it? May 01 01:10:36 More detail: http://blog.jetbrains.com/idea/2014/07/the-backspace-key-gets-smarter-in-intellij-idea-14-eap/ May 01 01:10:36 <_genuser_> hire webdevs? find devs online in some place I don't know about where they'll work on it.. blah blah? May 01 01:11:56 also is it okay that an update removes all my plugins? May 01 01:12:05 Strangely, though, I don't have the setting in Settings → Editor → Smart Keys. May 01 01:16:21 icedp: Did it prompt you to import settings on first run (after update)? May 01 01:18:53 TacticalJoke: yes, and it imported settings. At least color theme and tabs placement stayed the same. But not any single non-packaged plugin May 01 01:19:14 Doh. May 01 01:21:46 well at least it seems plugins tend to have settings in separate files May 01 01:26:17 Can you check signal strength of unpaired bluetooth devices? May 01 01:26:45 codygman BLE or br/edr ? May 01 01:27:31 anybody used this? http://androidannotations.org/ May 01 01:27:42 g00s: Can I get the answer for both please? :) May 01 01:27:48 i haven't but for concurrency you are better off with rxjava May 01 01:28:00 icedp ^^^ May 01 01:28:06 codygman_ BLE yes, br/edr no May 01 01:28:24 g00s: thanks May 01 01:29:55 codygman_ actually for br/edr ... you may be able to get rssi on discovery scan May 01 01:31:51 g00s: trying to find the wiki page for it, but do you know offhand how BLE works? May 01 01:32:10 in regards to getting signal strength, I assumed a discovery scan would be necessary for both May 01 01:33:24 I'm basically trying to do distance approximation based on bluetooth signal strength. May 01 01:33:40 codygman_ yeah ... don't bother, thats not going to work May 01 01:33:55 lots of people try that ;) May 01 01:34:25 g00s: What's the issue with it? In theory it seems like it should work :) Ooops... wonder what my boss will think about that :P May 01 01:34:53 in practice and theiry, it won't work. rssi constantly fluctuates May 01 01:35:07 my app shows rssi of connected devices, they are all over the place May 01 01:35:28 and they are just sitting on my desk :) May 01 01:35:31 g00s: Not that I don't believe you, but I'd like to see it myself. Is your app open source by any chance? May 01 01:35:32 eeek May 01 01:35:39 no May 01 01:35:48 if not no prob, I'll eventually finish coding up my example. May 01 01:35:51 yeah do give it a try, its fun May 01 01:36:35 you could probably break it down to close, medium, far - but nothing better than that May 01 01:37:25 g00s: Do you think it'd be possible to know if a device 20 feet away is farther than one 3 feet away? May 01 01:37:39 going to test this, just wondering what your opinion is May 01 01:39:04 g00s: yeah concurrency okay, but It looks like it has neat ways for injection view, res, fragments etc. May 01 01:40:08 codygman_ all things equal, there will be difference between 3 feet and 20. May 01 01:51:28 g00s: Cool, I don't have to feel totally hopeless then :) May 01 01:55:58 IM BACK BOIS May 01 01:56:03 \ ( ^ _ ^)/ May 01 01:56:05 \o May 01 01:56:16 o/ May 01 01:56:18 woo May 01 01:56:22 android May 01 01:59:15 codygman_, your boss let's you do scala for android? cool May 01 02:02:29 who currently working on note 4? May 01 02:05:20 anyone? May 01 02:05:31 devs don't use samsung StickyRice May 01 02:05:36 lol :D May 01 02:08:56 Hi all. For anyone around. I am trying to get gallery photos to be an option when the user is taking a photo in my android app. ie. they click the take photo button, and can choose either from gallery or to take a new photo May 01 02:08:56 the code I am currently using is at http://stackoverflow.com/questions/29962774/allow-gallery-photos-as-well-as-camera-photos-in-android May 01 02:09:05 Does anyone have any ideas? May 01 02:11:06 pfnQ: Wait, what gave that away? :P May 01 02:11:47 codygman_, your previous questions May 01 02:13:22 pfnQ: Oh, lol... I thought those were in another channel. But yeah, right now I'm just copy/paste and feeling my around Android with Java rn to test some stuff. Our language we've decided on is Scala though. As a mainly (these days) Haskell programmer, this makes me happy. May 01 02:15:51 codygman_ for br/edr http://stackoverflow.com/questions/15312858/get-bluetooth-signal-strength May 01 02:15:57 its not very useful though May 01 02:16:16 codygman_ i read the guy who invented haskell recently passed away May 01 02:16:38 co-creator i guess May 01 02:17:10 g00s: Yeah, I saw that one too :/ Yep. Haskell is actually one o the few "created by committee" things I've seen come to fruition May 01 02:18:00 what is haskell May 01 02:18:49 "An advanced purely functional programming language" - https://www.haskell.org/ May 01 02:19:18 What is Google. :D May 01 02:20:01 some people have conversational learning patterns and don't do well just reading stuff or searching. May 01 02:20:12 ;) May 01 02:20:40 which perhaps is one of the values of IRC. May 01 02:20:58 Use google now :D May 01 02:21:08 "Ok Google: What is haskell?" May 01 02:21:16 codygman_, pretty awesome, I haven't been so lucky May 01 02:22:03 more important perhaps, "what is functional programming?" May 01 02:22:22 pfnQ: I would say "be pickier about opportunities, it worked for me", but I haven't failed yet... I bet that alternative would kind of suck to say the least. May 01 02:23:25 Carbonflux: Don't know how strict the off topic rules are here, but I prefer (obviously) Haskell's definition: https://wiki.haskell.org/Functional_programming May 01 02:23:54 ah yes May 01 02:25:08 Though, Haskell was used for this android game: https://play.google.com/store/apps/details?id=uk.co.keera.games.magiccookies May 01 02:30:07 codygman_: I think Haskellers would feel insulted that you call their language "designed by committee" May 01 02:30:10 It wasn't, really May 01 02:32:30 Oh look TacticalJoke is still here. May 01 02:34:07 codygman_, I've been thoroughly picky, I haven't been working a regular job since 2012 when I went crazy picky May 01 02:35:52 my last regular job was writing javascript, heh May 01 02:35:56 that sucked May 01 02:39:27 MS has another language, F* O.o May 01 02:40:05 I've never heard of F*O.o May 01 02:40:27 pfnQ: javascript sucked how? May 01 02:40:48 g00s: Do you have a link? Having a hard time googling that. May 01 02:40:53 pfnQ: maybe es5 sucked but es6 is out now... May 01 02:41:03 pfnQ: still it's very expressive. May 01 02:41:14 http://research.microsoft.com/en-us/projects/fstar/ May 01 02:41:27 Yah, just found it using quotes. Thanks. :D May 01 02:42:17 The number of programming languages named after letters is too damn high. May 01 02:42:18 Javascript is dynamically typed, which in my opinion puts it in the "uninteresting" category. Having said that, Javascript has proven remarkably resilient and flexible, just like Java. May 01 02:42:22 what i find interesting is that MS is calling F# "functional and object-oriented language", i didn't think there was any OO there May 01 02:42:36 yes JS is like a cockroach May 01 02:42:37 Still, I think the future belongs to statically typed Javascripts, e.g. Typescript or Dart (most likely the former) May 01 02:43:05 Dynamic typing just seems odd to me. Any benefit it offers is surely destroyed by the huge drawbacks. May 01 02:43:14 Outside of clueless people writing scripts, I guess. May 01 02:44:29 I guess there is the occasional use-case (e.g., interop between OS components). But to have dynamic typing by default is hard for me to understand. May 01 02:46:35 It's only in the past few years that the benefit of dynamically typed languages started shrinking May 01 02:46:59 Basically, statically typed languages have become better at what dynamically typed languages faster than the other way around May 01 02:47:24 That's true. I guess we have way better type inference and so on nowadays. May 01 02:47:33 I think in a few years, dynamically typed languages will be looked at as cute fads that the CS community fell for until they realized that there is a better alternative May 01 02:49:29 hmm . i remember paul graham saying he suspects languages in use 100 years from now would resemble lisp :D May 01 02:50:17 g00s: pg is obsessed with Lisp, of course he'll think that May 01 02:50:35 not sure what he's doing these days after YC May 01 02:50:35 yeah, he is really obsessed with lisp May 01 02:50:37 He still thinks he became rich and famous becuse of the language his startup used May 01 02:51:02 yeah i remember 'beating the averages' May 01 02:51:38 DragonPunch, js is not expressive May 01 02:52:03 pfnQ: Lol, yeah okay. Keep telling yourself that. May 01 02:53:18 DragonPunch, you have little experience with languages if you think so May 01 02:54:39 more expressive than java? I would agree May 01 02:55:27 Javascript is extremely expressive May 01 02:56:50 It make lambdas popular before most people realized that lambdas are May 01 02:57:05 http://redmonk.com/dberkholz/2013/03/25/programming-languages-ranked-by-expressiveness/ **** ENDING LOGGING AT Fri May 01 02:59:59 2015