**** BEGIN LOGGING AT Fri Apr 10 02:59:59 2015 Apr 10 03:05:50 well this sucks Apr 10 03:27:18 in terms of security apps, how does one activey catch attempts to access files/permissions etc? Apr 10 03:27:25 FileObserver can't get the application name Apr 10 03:28:52 * capella-s3 thought g00s was in Syracuse Apr 10 03:34:17 this is cool http://pressroom.gelighting.com/news/ge-redefines-lighting-with-ge-alignTM-lighting-aiding-natural-sleep-cycle#.VRmS8mauClo Apr 10 03:34:32 probably need to get this in addition to f.lux Apr 10 03:35:04 w00t Droidcon! Apr 10 03:47:02 Hello Apr 10 03:48:01 I was wondering if there was a way to give a TextView a fixed border (that always remains the same size)? Apr 10 03:48:34 This is what I am trying to have when the TextView is empty: http://i.imgur.com/zb5K5e9.png Apr 10 03:49:09 Laptop_mini: you probably want to make a background drawable Apr 10 03:49:50 ok, I tried earlier but I kept getting some "loop" error (reference loop?) Apr 10 03:49:54 I'll try again Apr 10 03:50:12 Laptop_mini: probably try a with a in it: http://developer.android.com/guide/topics/resources/drawable-resource.html#Shape Apr 10 03:51:07 I tried a shape earlier (http://paste2.org/IPLV4x7e) but it doesnt appear when the string is empty Apr 10 03:51:23 Im trying to have the same effect but with a fixed minimum width Apr 10 03:52:39 I wouldnt mind if the shape expanded as the String grew out of its bounds. But I want it to be a certain size at a minim. Apr 10 03:52:43 minimum* Apr 10 03:53:49 <_genuser_> oh how quickly, we use up 8GB of RAM. Apr 10 03:55:29 Laptop_mini: hm. not sure why that would be :\ lemme try it a bit. Apr 10 03:56:02 groxx: thanks for the help. right now im trying to do the image background way Apr 10 03:57:37 yeah, a nine-patch image is a pretty standard way to do that :) Apr 10 03:58:27 Laptop_mini: fwiw + works perfectly for me. you might be changing the background / layout depending on the contents? Apr 10 03:59:02 Hi everybody, it's me dr nick!! Apr 10 04:01:06 With the background i get an warning saying Apr 10 04:01:07 "@+id/textView is not a sibling in the same RelativeLayout" Apr 10 04:01:30 for an element bellow trying to be "bellow" textView. Apr 10 04:03:07 Laptop_mini: that sounds entirely unrelated, that's a relative layout message. Apr 10 04:03:20 ok let me try some things Apr 10 04:12:48 I managed to figure it out Apr 10 04:12:55 Thanks a lot for the help Apr 10 04:15:01 Is there any way to view a list of and application's intents? Apr 10 04:21:21 hmm, project doesn't build with gradle-plugin 1.2.x - seems to have problems locating classes in dependent subprojects Apr 10 04:25:40 voxadam: ones they receive, or ones they send? Apr 10 04:27:52 is gradle-plugin supposed to be used with gradle 2.3 ? Apr 10 04:27:58 I was thinking receive but both would be helpful. Apr 10 04:29:26 <_genuser_> anybody do an app where two activities are visible in app launcher? Apr 10 04:29:31 <_genuser_> and provide a different icon for each? Apr 10 04:30:00 anyone know what the word is for code you plonk in {} to create a ... i guess you'd call it scoped block of code? Apr 10 04:30:37 <_genuser_> in this an AS feature? where you can collapse a block of code? Apr 10 04:30:41 yeah, I would call it a block Apr 10 04:30:54 sub-block. local block. something like that Apr 10 04:31:37 <_genuser_> typically anything within {} is called a block Apr 10 04:31:45 anonymous block? Apr 10 04:33:03 <_genuser_> I wouldn't call it anynymous, since we don't have named blocks. Apr 10 04:33:39 <_genuser_> unless you consider "function" "if-block" "while-block" to be the names. Apr 10 04:33:54 well, you can have a labeled block Apr 10 04:34:20 <_genuser_> software engineering is just like any other field. if someone thinks it's important to _them_ they'll create a name, design, pattern, etc. Apr 10 04:34:20 here: { break here; } Apr 10 04:34:30 <_genuser_> so it can depend from person to person. Apr 10 04:34:41 <_genuser_> yeah, labelled blocks are kinda like named block, if you will. Apr 10 04:34:58 but yeah, anonymous block still doesn't sound right :) Apr 10 04:35:13 <_genuser_> I would call it just a block tho, label is the accessor. but I don't think I'd care so much if someone called is a named block. Apr 10 04:35:33 <_genuser_> problem would only arise if someone was interviewing me and I had to guess what they called it, lol. Apr 10 04:35:42 voxadam: the ones that can start the app are in the manifest - if you can get the apk file you can get the manifest out of it. you can also read it programmatically, by finding all the services / receivers / activities and reading their intent filters via PackageManager Apr 10 04:35:49 <_genuser_> otherwise, meh. Apr 10 04:36:18 voxadam: I'm not sure what's possible with dynamic things, like temporary broadcast receivers. never really looked into it. Apr 10 04:36:43 could a res id be negative? Apr 10 04:36:44 you can use aapt d xmltree AndroidManifest.xml blah.apk Apr 10 04:37:08 or something like apktool Apr 10 04:37:15 (to look at the manifest) Apr 10 04:37:24 <_genuser_> ok, back to my question, i just realized that you can specify an application icon which is used for all activities. and then you can specifiy for each activity also which overrides the app one. Apr 10 04:37:37 the only thing that doesn't cover, as groxx mentioned, is dynamically registered broadcast receivers Apr 10 04:37:40 groxx: Thanks. That helps tons. Apr 10 04:39:29 nvm http://developer.android.com/reference/android/content/res/Resources.html says that they'll never be 0 so I can use that as a "null" value Apr 10 04:39:38 JesusFreke: know of any way to see dynamic ones? I kinda assume not programmatically, but maybe via adb? Apr 10 04:40:45 I don't think there's any sort of logcat entry that gets generated when one is registered Apr 10 04:40:50 there might be an eventlog entry though Apr 10 04:41:09 JesusFreke: happen to know if `adb shell dumpsys packages` includes dynamic things? Apr 10 04:41:14 it doesn't Apr 10 04:41:17 :'( Apr 10 04:41:28 adb logcat -b event Apr 10 04:41:31 to see the event log Apr 10 04:41:46 but otherwise, you would probably have to inspect the code of the application Apr 10 04:42:00 actually Apr 10 04:42:20 it's probably in the bugreport data somewhere Apr 10 04:42:24 <_genuser_> does AS allow you to expand window panes like eclipse does? you know ctrl-m in logcat window and bam it's fullscreen. Apr 10 04:42:29 like, when you do adb bugreport Apr 10 04:42:30 buh? http://cl.ly/image/1w2X0n1X1C2X Apr 10 04:42:30 <_genuser_> I do'nt see anything in pane options. Apr 10 04:43:08 groxx: I've been known to be wrong on occasion ;) Apr 10 04:43:28 So now that dagger 2 is out, should I start using that or is Square dagger still good? Apr 10 04:43:35 I was thinking you said pm dump package Apr 10 04:43:39 Good isn't the best word I could have used there... Apr 10 04:44:23 cr5315: both are good. Use which fits your neess Apr 10 04:44:26 Needs Apr 10 04:44:48 * JesusFreke sticks a dagger in his knees Apr 10 04:45:00 JesusFreke: ah. yeah, I browsed through dumpsys packages - some interesting stuff, but I'd have to register something weird, dump, and see if it's in there. no obvious spot where dynamic ones would appear. Apr 10 04:45:10 Alright, I recently learned how to understand dependency injection from your talk at devoxx, so I'll stick with that for now Apr 10 04:45:14 <_genuser_> JakeWharton: is it possible to render a picture with picasso that you can then pinch zoom in on? Apr 10 04:45:40 groxx: that one you pasted is more than likely a dynamically registered one Apr 10 04:45:42 <_genuser_> JakeWharton: or do I have to sort of create an image bigger than the screen, have picasso fill it with picture and then size down the view itself? Apr 10 04:47:07 Hey who here is responsible for Kiwi? I wasn’t able to use it and now I am.. and I’m a little confused Apr 10 04:47:54 JesusFreke: fwiw registering a totally nonsense action-filter doesn't appear :| Apr 10 04:53:35 Should/Can I add options in Play store description to link to adding me on various social media sites? or best to add in App, I mainly just want a quick way for users to contact me using whatever method they prefer and that i have setup with the main sites Apr 10 04:54:28 JesusFreke: sweeeet, found one: `adb shell dumpsys activity -a` includes my dynamic broadcast receiver Apr 10 04:55:59 JesusFreke: or "dumpsys activity b" is a bit more focused, I guess. cool. Apr 10 05:01:49 voxadam: so there's an answer for you: read the android manifest (JesusFreke included a command for pulling the manifest out of an apk), and/or `adb shell dumpsys activity broadcasts` shows you _everything_, but it's not filtered by package (though you can of course dump and search). Apr 10 05:06:52 in android studio is there a way to run arbitrary code while im debugging? Apr 10 05:07:34 im trying to do smoething like myCursor.getColumnNames() to have a look at exactly what's coming back from the database Apr 10 05:08:09 AshyIsMe: alt-f8 Apr 10 05:08:10 what do you mean run arbitrary code Apr 10 05:08:27 you step through the code with the arrow and run that code that way Apr 10 05:09:04 or what he said :D Apr 10 05:10:36 AshyIsMe: I usually use the watch panel for that, but you can also use the "evaluate expression" dialog (the alt-f8 thing) Apr 10 05:10:57 ah cheers Apr 10 05:11:08 yeah, <3 the expression dialog. I never found one in Eclipse (in normal Java coding, yeah, but not for android :( ) Apr 10 05:11:13 what is this you're talking about? Apr 10 05:11:16 im used to c# where you get a console you can evaluate whatever you want in Apr 10 05:11:19 ..repl for java? Apr 10 05:11:23 Odaym: kinda. Apr 10 05:11:26 where? Apr 10 05:11:38 groxx: It's called the Display view on Eclipse, and I prefer it over IDEA's personally Apr 10 05:11:51 alt-f8 is basically what im after Apr 10 05:11:54 Odaym: hit a breakpoint, in the debugger button-bar the right-most button is an expression editor which can do multiple lines. Apr 10 05:12:04 HELOOOOOOOO Apr 10 05:12:07 CedricBeust: ah, maybe I never enabled that :| Apr 10 05:12:16 why is my nexus 5 showing up as a nexus 4? Apr 10 05:12:21 IDEA's is a bit odd. Apr 10 05:12:24 groxx: Most people who criticize Eclipse never bothered to actually study it :) Apr 10 05:12:37 well, you could spend a lifetime doing that :P Apr 10 05:12:39 http://pastie.org/10083930 Apr 10 05:12:41 ????? Apr 10 05:12:43 you shouldn't *have* to study it ;) Apr 10 05:12:47 mexus 5 showing up as nexus 4? Apr 10 05:12:49 http://pastie.org/10083930 Apr 10 05:13:00 It's a complex tool, you have to spend some time learning it to master it Apr 10 05:13:08 sorry for pasting so much, just tried to get my message beside the pastie Apr 10 05:13:14 groxx: oh sweet, alt-f8 is the hotkey for that same expression evaluator Apr 10 05:13:18 cheers guys Apr 10 05:13:28 JesusFreke, thanks Apr 10 05:13:45 CedricBeust: but yeah. I like Eclipse just fine, minus the workspaces (seriously screwed up concept), weak local/team separation, and no Gradle (yet?) for easy appcompat use. Apr 10 05:14:06 groxx: Workspaces are awesome, much better than anything else Apr 10 05:14:24 minus the part where you can't have multiple projects of the same display name but different file locations Apr 10 05:14:25 Why would I want the same arrangement of windows for debugging, editing, source control and database inspection? Apr 10 05:14:33 exactly groxx Apr 10 05:14:38 local/team separatino is as simple as egit, no? Apr 10 05:14:53 if you copy a project to somewhere on the disk and want to import it into Eclipse, it used to have to either copy it to the workspace or work on it from where it was on disk Apr 10 05:15:02 CedricBeust: ah, maybe I'm misusing terms. I mean workspaces as "project groups". the window arrangement is fine. Apr 10 05:15:03 multiple display names is a pain but it can save you major pain later.. Apr 10 05:15:03 and you couldn't have it inside the workspace if you wanted to choose not to copy it Apr 10 05:15:20 A workspace is really just that, an arrangement of windows Apr 10 05:15:39 Sorry I'm talking about perspectives Apr 10 05:15:50 ah, right, that's the term Apr 10 05:15:53 perspectives work, yeah Apr 10 05:16:05 Workspaces are just an internal detail, directory where Eclipse stores what it needs about projects. Same as .idea Apr 10 05:16:08 i mean like if you have a folder in your workspace namde android-dev, then try to import another one named android-dev from another location, even if you aren’t moving it to the workspace, it won’t work Apr 10 05:16:13 you have to delete the one in your workspace Apr 10 05:16:16 or rename it Apr 10 05:16:16 yes tricknology Apr 10 05:16:21 that was horrible Apr 10 05:16:29 Please. Anyone have an idea why my nexus 5 is showing up as a nexus 4... it's preventing me from compiling my app to my device? This has been holding me up FOR DAYS. Apr 10 05:16:30 http://pastie.org/10083930 Apr 10 05:16:30 <— still dealing with it Apr 10 05:16:33 also scrolling, it cannot scroll smoothly through say 2K lines Apr 10 05:16:39 that was unbelievable for me Apr 10 05:16:42 CedricBeust: my "multiple projects of same name" complaint still stands. you can edit the xml files to trick it, but it's incomplete. Apr 10 05:16:49 I thought that was a feature... Apr 10 05:16:52 same computer, AS, scrolls easy through 4K lines Apr 10 05:17:12 Odaym did you make Kiwi? Apr 10 05:17:26 but I've noticed that scrolling and editing even with AS starts to lag if the content of Logcat is increasing rapidly Apr 10 05:17:32 you have to go and clear it to get back the speed Apr 10 05:17:48 yeah, AS's logcat is terrible Apr 10 05:17:55 sometimes it goes quiet too Apr 10 05:17:59 man.. once I went into Java and started talking about Eclipse.. Apr 10 05:18:00 just....nothing Apr 10 05:18:10 #java is not nice place to be Apr 10 05:18:15 bad crowd Apr 10 05:18:17 they said that I should start writing applications in notepad and using the command line compiler Apr 10 05:18:23 Odaym: one of my coworker's devices spams so much logcat output that AS never catches up and never displays anything in the app filter. Apr 10 05:18:27 Odaym: Yeah I've noticed that too, logcat stops updating. Need to unplug and plug back in, very annoying Apr 10 05:18:28 then move to a more advanced IDE Apr 10 05:18:44 yea some devices just spew a LOT of stuff, S3 does that Apr 10 05:18:45 <— guilty.. I have hella debug messages Apr 10 05:18:52 I should actually debug but I hate the process.. Apr 10 05:19:00 you plug in and you havent done anything yet, and it's all errors and things that are happening Apr 10 05:19:02 it would be nice if there was a “back a few steps” butto Apr 10 05:19:06 tricknology: do you spit out ~100/second even when idle? Apr 10 05:19:10 but with proper testing I guess that woudln’t be an issue Apr 10 05:19:18 no but someimtes Android does Apr 10 05:19:25 yeah. samsungs :| Apr 10 05:19:26 it;s annoying Apr 10 05:19:26 fruitsNveggies: does it actually affect anything? :p Apr 10 05:19:29 a solution would be to go to Monitor instead and have 2 windows for this, but there is no clear way to shut up the logcat on AS, even though Monitor tells you that someone else is listening on DDMS port Apr 10 05:19:30 ^^^ !!!!! Apr 10 05:19:32 yes Apr 10 05:19:38 (all we have are samsungs) Apr 10 05:19:55 so I never notice.. I don’t really use my N6 except for material stuff Apr 10 05:20:05 I usually just turn off adb integration in AS Apr 10 05:20:22 that would work, Monitor is really good Apr 10 05:20:24 tricknology: ヽ(゚Д゚)ノ that sounds terrifying Apr 10 05:20:34 + for the emoticon, stealing Apr 10 05:20:53 ಠ_ಠ Apr 10 05:21:02 to Reddit! Apr 10 05:21:05 After studying Russian, all I can see is a big D in the middle of his face :p Apr 10 05:21:09 ¯\_(ツ)_/¯ ︵ ┻━┻ Apr 10 05:21:16 GC_FOR_ALLOC freed 2032K, 32% free 23809K/34712K, paused 19ms, total 19ms Apr 10 05:21:18 all day Apr 10 05:21:24 JesusFreke: ah ah same thing Apr 10 05:21:35 GC for alloc is an application thing, no? Apr 10 05:21:36 lol Apr 10 05:22:05 but it does work quite well for that Apr 10 05:22:25 oh! I discovered something horrible today: you can't use Monitor while debugging. Apr 10 05:22:39 yea I noticed that DDMS was taken out of Monitor.. Apr 10 05:22:44 at least it doesn't disconnect AS any more Apr 10 05:22:54 not sure but it happens every time my app runs though a portion that uses animation-list Apr 10 05:22:56 not DDMS, no Apr 10 05:23:10 so.. i got an asus zenwatch... Apr 10 05:23:13 I use the emulator control sometimes :| it's handy. but NOOO, why would you ever want to do that _and_ debug at the same time? MADNESS. Apr 10 05:23:25 first thought is a big huge meh Apr 10 05:23:32 IO 2015 will fix everything Apr 10 05:23:42 french style Apr 10 05:23:54 tricknology: then, after your brain absorbed the oxymoron, a new emotion bubbled up? Apr 10 05:23:55 French always solve everything Apr 10 05:23:59 + Apr 10 05:24:21 zenwatch == oxymoron? Apr 10 05:24:23 rage? apathy? mild digestive discomfort? Apr 10 05:24:28 "big huge meh" Apr 10 05:24:34 lol Apr 10 05:24:38 not totally oxymoronic, I'll admit :) Apr 10 05:24:49 it was a big.. not letdown Apr 10 05:25:03 a notch above a letdown Apr 10 05:25:09 tricknology: /me has flashbacks to http://www.penny-arcade.com/comic/2009/10/30/ Apr 10 05:25:39 I expected it to be bad Apr 10 05:25:47 like.. infantile compared to a smartphone Apr 10 05:25:50 well, not _samsung_ bad, but bad. Apr 10 05:26:02 I figured.. what else could i do on a watch that I wouldnt just pull out my phone for? Apr 10 05:26:08 answer is not much.. so fat Apr 10 05:26:10 so far.. Apr 10 05:26:24 and navigation is crap.. have to go to google then to start to get to apps Apr 10 05:26:31 one thing it can do (assuming it has BLE): keep your phone unlocked via Smart Lock. Apr 10 05:26:38 might be enough of a reason to buy a smartwatch Apr 10 05:26:39 2-3 taps and a bunch of swipes Apr 10 05:26:51 the only... Apr 10 05:26:54 haha Apr 10 05:27:11 * groxx buys smartwatch. sticks in pocket and never uses. Apr 10 05:27:14 good idea tho.. didn’t know about that feature.. or didn’t pay enough attention to it Apr 10 05:27:29 charging is slow.. :( Apr 10 05:27:59 The unlock feature is the only thing interesting, but I wish there was another way. For example, my computer could just recognize me by the smell Apr 10 05:28:09 CedricBeust: I don't wanna know how Apr 10 05:28:11 "Hi Cedric, haven't taken a shower yet, have you?" Apr 10 05:28:42 CedricBeust: but yeah, it annoys me that my computer's bluetooth won't connect to my phone as a BLE peripheral and keep my phone unlocked when my computer is unlocked. Apr 10 05:28:51 Hey, I live in California.. jsut doing my part.. Apr 10 05:29:02 seems like one of those obvious things, but no. Apr 10 05:29:46 enter the iwatch Apr 10 05:30:03 S6 is out today, no? Apr 10 05:30:33 and is anyone here going to Google IO? Apr 10 05:30:43 physically or extended.. Apr 10 05:30:55 nah too far away Apr 10 05:30:56 only in spirit, via the ଘ(੭*ˊᵕˋ)੭* ̀ˋ ɪɴᴛᴇʀɴᴇᴛs Apr 10 05:31:06 hoping to get work to give me some kind of small leave to watch it Apr 10 05:31:07 even extended? Apr 10 05:31:20 my boss asked me if I was.. kind of surprised Apr 10 05:31:52 woah, ଘ(੭*ˊᵕˋ)੭* ̀ˋ ɪɴᴛᴇʀɴᴇᴛs works on android 5.1 (but not 5.0) Apr 10 05:31:56 didn’t make it through the random selection for an action spot on campus but extended might be an option.. of not internets Apr 10 05:32:00 yeah Apr 10 05:32:09 new font is best feature. Apr 10 05:32:10 the characters are all different Apr 10 05:32:15 not font.. Apr 10 05:32:18 i forget what it is Apr 10 05:32:21 ISO standard Apr 10 05:32:21 new font character support Apr 10 05:32:30 there’s anotehr word for that Apr 10 05:32:36 UTF-FTW Apr 10 05:32:44 encoding Apr 10 05:33:08 incrementally-improved astral plane glyph support? Apr 10 05:33:08 unicode Apr 10 05:33:21 those are old unicode characters though. Apr 10 05:33:23 at least, I assume the wingy thing is astral. /me checks Apr 10 05:33:25 if you notice, there are more emoji’s in 5.1 too Apr 10 05:34:01 groxx: can you paste that again? Apr 10 05:34:22 tricknology: I did not notice. I have to horizontally page through them -> I never do -> I don't notice such things :| Apr 10 05:34:29 lewellyn: ଘ(੭*ˊᵕˋ)੭* ̀ˋ ɪɴᴛᴇʀɴᴇᴛs ? Apr 10 05:34:43 thanks. :) Apr 10 05:36:28 man, you have to have a navigation drawer to look legit Apr 10 05:36:31 it sucks Apr 10 05:36:36 yeah Apr 10 05:36:44 just get yourself a good template Apr 10 05:36:48 oh, also TIL: http://www.unicode.org/reports/tr51/#Diversity Apr 10 05:36:51 yeaaaa but what do I put there Apr 10 05:37:01 once you get it down it’s not so bad. Apr 10 05:37:03 it looks naked otherwise Apr 10 05:37:04 wonder when we get android support for that (unless that's 5.1?) Apr 10 05:37:05 whatever you want Apr 10 05:37:11 center the rows Apr 10 05:37:15 make it opaque Apr 10 05:37:25 put in a picture of your cat Apr 10 05:37:28 haha Apr 10 05:37:30 ++ Apr 10 05:38:04 that's just science Apr 10 05:38:10 çå† Apr 10 05:38:11 oh boy. I wonder if anyone has made a placekitten.com helper for android Apr 10 05:38:31 forget what i said about slow Apr 10 05:38:42 i restarted it and it went from 16% to 53% magically Apr 10 05:39:03 it's already been recorder, it can't be forgot Apr 10 05:39:04 tricknology: restart it again? Apr 10 05:39:12 anyoen know if you can reprog the UI for Wear? Apr 10 05:39:21 lol groxx. I don’t want to push my luck Apr 10 05:39:38 is it very late in amurika? Apr 10 05:39:40 tricknology: but!!! free energy! you could put it up on youtube and get people to buy instruction pamphlets! Apr 10 05:39:55 Odaym: west coast is 10:40, so kinda Apr 10 05:40:03 ok Apr 10 05:40:28 it’s late as hell on the east coast Apr 10 05:40:29 tricknology: by UI you mean the whole thing, not just a watch face, I assume? not afaik, but I'd be interested if it does turn out possible Apr 10 05:40:38 not so late in Hawaii Apr 10 05:40:43 ha Apr 10 05:40:52 yes the entire thing Apr 10 05:40:59 i want diagonal swipes Apr 10 05:41:11 swipes from 10:30 and 2:30 Apr 10 05:41:23 swipe up should definitely be apps Apr 10 05:41:38 down notifications Apr 10 05:41:50 cover the face to get what currently happens.. Apr 10 05:41:54 when you pull down Apr 10 05:42:01 it’s all counter-intuitive Apr 10 05:42:09 I'm still waiting to see where Wear goes. tbh I think the color pebbles are more enticing. Apr 10 05:43:05 I think there need to be more apps for it Apr 10 05:43:07 honestly Apr 10 05:43:14 flappy bird? Apr 10 05:43:16 haha Apr 10 05:43:20 I think there is one.. Apr 10 05:43:22 http://www.xda-developers.com/echowear-song-search-for-android-wear/ Apr 10 05:43:23 this is cool Apr 10 05:43:24 I sure hope so Apr 10 05:43:30 uses Shazam API i guess Apr 10 05:44:09 ah gracenote Apr 10 05:44:12 man, pushbullet beat me to the solution Apr 10 05:44:41 it was so fucking obvious, a friend and I once sat down to think of it and all we could think of was some sort of shared server that everyone would send to and like you'd friend them and be able to receive their data Apr 10 05:44:45 Odaym: wazzat? paper-like abstract backgrounds? Apr 10 05:44:47 they did it with a damn push notification Apr 10 05:45:00 no, a way of sharing things from PC to mobile Apr 10 05:45:03 ah, I was expecting drawer stuff Apr 10 05:45:05 or vice versa Apr 10 05:45:10 try it, its fantastic Apr 10 05:45:15 yeah, pushbullet definitely got there before you :) Apr 10 05:45:31 so mad at that, cause I set out to solve it once and I thought for a considerable time Apr 10 05:45:31 solid service. _weird_ that it's so big, but quite solid. Apr 10 05:45:51 my nexus 5 is showing up as a nexus 4??????? http://pastie.org/10083930 Apr 10 05:45:52 guess its cause they are in SF, they are smarter Apr 10 05:45:58 lolwut!?! Apr 10 05:46:44 fruitsNveggies: hm. debug build. did you flash a custom rom on it or something? Apr 10 05:46:58 JesusFreke, Yes I believe it's affecting the compilation of my meteor app. I remember I had to include the manufacture vendor codes in a file in order to get it working and I added LG for the nexus 5 but then it stopped working and I realized is reporting as a nexus 4??? I'm uessing I could add the nexus 4 code but i'm curious why it says nexus 4 in the first place Apr 10 05:47:08 ah, maybe I'm misreading that Apr 10 05:47:10 groxx, no it's stock 5.1 Apr 10 05:48:32 groxx, idk why it's says nexus 4 debug... doesn't say that in setting on the device... says nexus 5 5.1 Apr 10 05:49:50 fruitsNveggies: dunno. never heard of that one before, and I'm not familiar enough with linuxes to help :| hopefully others are Apr 10 05:50:01 omg Apr 10 05:50:01 But not stock linux machine? you've added changes to make your device discoverable, did you add something simply that points your n5 to something you added for n4? what android version shows up for returned n4 that is n5 Apr 10 05:51:25 whatitis, I am runnin ubuntu stable trusty thar.... I have usb debuggin ON. I don't remember adding anything and have never even seen a nexus 4 in my life let alone one touching my machine. Apr 10 05:52:05 well then it's just a mis-identity with that string name of the device, what does it report for the SDK running on it? Apr 10 05:52:05 whatitis, my nexus 5 is version: 5.1 Apr 10 05:52:31 damn that pushbullet is nice idea Apr 10 05:53:22 whatitis, i do not have the sdk installed... shouldI install it now? I have a meteor-android-sdkinstalled through meteor.js Apr 10 05:53:37 whatitis, my app is a meteor+cordova app. Apr 10 05:54:42 Anyone tried realm.io before? Apr 10 05:55:06 If yes, how good is it, as an ORM? Apr 10 05:58:11 whatitis, JesusFreke groxx http://pastie.org/10083965 Apr 10 05:59:08 it recognizes it's a nexus 5 but it's id produceis nexus 4 (debug)? Apr 10 05:59:14 napster: only lightly. it appears to work, is speedy, pretty simple to use. also has done very strange edges, and I remain heavily suspicious of its behavior around threading. Apr 10 05:59:35 done -> some, thanks android autocorrect. Apr 10 05:59:45 I see Apr 10 06:00:39 napster: they've just had endless breathless quotes of "realm is so threadsafe omg" but haven't bothered to document how it works. seems shady at times. Apr 10 06:00:50 lol Apr 10 06:01:14 what are the alternatives? Apr 10 06:01:19 apart from Sugar ORM may be Apr 10 06:01:34 also, their prototype-object thing they do is a really really bad match for Java, badly enough that I fear for their java understanding, which seems a prerequisite for thread safety. Apr 10 06:02:15 greenDAO is pretty decent (turn off the cache). light and it does a lot of things correctly, like reusing compiled statements. Apr 10 06:02:15 I don't quite understand that part. Apr 10 06:02:28 ok Apr 10 06:05:10 napster: ok, so to make a realm-object, you do this: http://realm.io/docs/java/0.80.0/#models Apr 10 06:06:12 napster: but there's a big catch. you _can't use_ those fields. ever. you MUST only use the getters/setters, because they're overridden (and they don't call super.etc), and they kinda-sorta just index into a blob of data and parse it on demand. Apr 10 06:06:31 hmm Apr 10 06:06:44 so not only do they exist, but they use up memory space because they're declared but unused. Apr 10 06:06:54 for. every. instance. Apr 10 06:07:00 weird Apr 10 06:07:18 yeah. weird to the point of being "wtf were you thinking? I can't even" Apr 10 06:07:54 there's also the small detail of database migrations being _experimental_ still. there are ways around it, but that's still a bit odd. Apr 10 06:08:39 and they claim your data is "always up to date" if your thread has a looper. but go to pretty great lengths to not say anything more detailed than that. sounds neat! sounds like it could cause problems! Apr 10 06:09:28 may be I should stay away from it for now Apr 10 06:09:30 :) Apr 10 06:11:19 I _hope_ my fears are unfounded, and there's a real alternative to sqlite. but at the moment I can't suggest it for anything mission-critical. side projects, sure, it does work, and is surprisingly painless. Apr 10 06:11:49 In the realm migration example (https://github.com/realm/realm-java/blob/master/examples/migrationExample/src/main/java/io/realm/examples/realmmigrationexample/MigrationExampleActivity.java) is it impossible to do the migration in-place? Apr 10 06:12:36 how do I install the android command on my linux machine... i download the sdk and it says to just run "android" I'm guessing it mean in /tools ./android script ??????? Apr 10 06:12:46 napster: also, one further thing to note for realm: _all_ objects only work on a single thread. so you either copy the Realm "rows" when transferring them across threads, or you use it all on the main thread, which is a big no-no. it's fast enough to work pretty well on the main thread, but devices aren't that consistent, so I don't like doing it. Apr 10 06:13:14 hmm Apr 10 06:14:07 thanks groxx knapper_tech Apr 10 06:14:07 I strongly suspect it's a consequence of the ".getField() just reads from a blob of single-thread-synchronized data on demand" pattern. it has pros and cons, but I wish they'd be upfront about it. Apr 10 06:14:36 yeah, it's kind of silly. What I do is copy my realm data into a Pojo while in use and then pass that around threads Apr 10 06:14:38 knapper_tech: I think the idea is that it fails to open if it's not at the right version, so you're forced to migrate and reopen Apr 10 06:15:09 knapper_tech: afaik the only "safe" way is to make a second db in the new format, copy the data, and delete the original. which works, but sucks. Apr 10 06:15:31 Pojo as a wrapper does a lot to make realm easier to work with. You limit the impact of RealmObject member variables and encapsulation. Apr 10 06:15:57 yeah. but at that point, why not use some other sqlite wrapper, so you can _always_ use pojos? Apr 10 06:16:06 sqlite works fine, it's just a bit verbose Apr 10 06:16:28 SQLite => too much work Apr 10 06:17:21 :) well, I've been happy with greendao so far. it has warts, but it's simple enough that they can be understood and worked around / fixed, and it saves quite a lot of boilerplate for parsing / querying / etc. Apr 10 06:17:26 groxx type-safety and even just syntax checking when working with DB data Apr 10 06:17:43 knapper_tech: so greendao. or most other orms. Apr 10 06:19:16 I should probably be clear that I'm not totally happy with _any_ of them. maybe I'm just perpetually dissatisfied though :) Apr 10 06:19:18 the day that speed becomes a problem for sifting a bunch of user data, that ORM speed on top of SQL speed just turns into "oh f@&*" Apr 10 06:20:12 I must afk for the night, though I'd love to continue :) feel free to ping me tomorrow or something though Apr 10 06:20:17 g'night all o/ Apr 10 06:20:21 I've usually ended up happer with something that's reasonably fast and has caviats than something that works well in a straightforward way but then becomes really difficult to work with once you have to start making it fast Apr 10 06:25:00 gud night groxx Apr 10 06:43:52 how do i clear all background activities ? Apr 10 06:44:27 drop your phone in the water Apr 10 06:44:47 someting liek activity clear back stack Apr 10 06:44:50 your mum did it last night Apr 10 06:45:34 intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); Apr 10 06:46:09 not working Apr 10 06:46:18 this is during notification intent Apr 10 06:46:43 i get a notification to take some test..i answer few questions and submit Apr 10 06:47:05 if i press back button, all previous activies are still in background Apr 10 06:49:00 Flagging new task pops out a blank screen for few seconds,since new stack gets created Apr 10 06:57:35 Hi guys Apr 10 06:57:42 Just a quick one Apr 10 06:57:49 I'm writing a web app for Chrome on Android Apr 10 06:57:57 Can I debug this on PC, from the phone? Apr 10 06:58:40 yes there's debugging interface for chrome on android Apr 10 06:58:44 Basically I want to load up Chrome on the phone, and see it all come up on the pc somehow? Is this possible? Apr 10 06:58:49 Ah great Apr 10 06:58:54 Do you know what it's called? Apr 10 06:59:00 I havent done it myself but I've seen this on GDG meetup Apr 10 06:59:01 I tried searching but came up short Apr 10 06:59:05 wait a sec Apr 10 06:59:25 Cheers Apr 10 06:59:35 https://developer.chrome.com/devtools/docs/remote-debugging Apr 10 06:59:45 https://developer.chrome.com/devtools/docs/remote-debugging - is looking promising Apr 10 06:59:55 thanks for that :) Apr 10 06:59:57 because that's it ;) Apr 10 07:01:26 ah thats fantastic Apr 10 07:01:28 worked instantly Apr 10 07:01:31 thanks Apr 10 07:14:35 <_genuser_> hey guys. Apr 10 07:31:58 <_genuser_> wth is gradle project sync? is this when it downloading all the required libs, etc? Apr 10 07:32:17 <_genuser_> I mean this thing takes longer for one run than it takes for you to change a few files. Apr 10 07:36:01 it's recompiling files Apr 10 07:36:16 also - use offline mode and disable proguard if possible for developing Apr 10 07:38:43 mediaplayer f-cking blows Apr 10 07:38:58 lol Apr 10 07:39:08 of everything in android, hands down this is the worst class. Apr 10 07:39:15 there are some APIs, you just shouldn't be messing with ;) Apr 10 07:39:29 camera is the other , BLE another Apr 10 07:39:54 yep, MediaPlayer is not the best API Apr 10 07:40:01 lasserix_, does ExoPlayer do what you want? :) Apr 10 07:40:09 no Apr 10 07:40:26 exoplayer is alright but lacks a lot of callbacks Apr 10 07:41:51 i take that back Apr 10 07:41:54 exoplayer is okay Apr 10 07:42:07 but it just proves that mediaplayer blows Apr 10 07:44:26 have you guys used google tagmanager ? i should be ok using GA and tagmanager separately right ? Apr 10 07:46:15 exoplayer can do static vod video right? Apr 10 07:46:22 hm so gradle-plugin 1.2.0 totally blew chunks, i had to go back to 1.1.3 Apr 10 07:48:44 lasserix_ you have been working on video for a while now ... Apr 10 07:48:53 yeah Apr 10 07:48:57 whats the goal of the project ? Apr 10 07:49:12 video is like primary usage of client app from analytics Apr 10 07:49:26 they have RTSP but it's not configured correctly Apr 10 07:49:48 they have static vod mp4 but the player has a billion states that all have to cooperate Apr 10 07:50:07 inot to mention the ad sdk wants you to give up ownership of your videoview Apr 10 07:50:25 so i sandboxed it by just giving it a videoview i toggle visibility on Apr 10 07:50:31 its just a real, real pain in the ass. Apr 10 07:51:06 now there is abug where if you call seekto it can cause the mediaplayer playback to stop due to internal corruption of state Apr 10 07:51:08 wonderful Apr 10 07:52:21 i totally understand why third party commercial mediaplayer library is a viable product for android Apr 10 07:52:41 You can't really make it though Apr 10 07:52:45 ? Apr 10 07:52:51 Since most of your state issues come from the fact that you're dealing with a HW decoder Apr 10 07:53:01 which on alot of devices exists as a single instance Apr 10 07:53:06 "my state" issues? Apr 10 07:53:16 you have issues :) Apr 10 07:53:20 my state issues are all UI stuff Apr 10 07:53:33 this is not even about hw decoding, thats a whole nother world of pain Apr 10 07:55:51 i am so very tempted to just put in a 90 hour week or two and just roll something with ffmpeg myself Apr 10 07:56:03 <_genuser_> man AS and gradle suck bigtime. Apr 10 07:56:24 <_genuser_> but it's kinda nice to just reference a lib in build.gradle and not have to download it, etc. etc. Apr 10 07:58:12 Gradle is awesome. Apr 10 07:59:24 <_genuser_> only in that it allows you to pull in stuff from the repo. but I suppose maven did that too. Apr 10 07:59:41 <_genuser_> otherwise, it just blows. 1min just to compile a project. completely unresponsive UI. but we can't blame it all on gradle. Apr 10 07:59:52 <_genuser_> AS UI sucks on its own without any help from gradle. Apr 10 07:59:55 And the fact that you can have a proper development build path. Apr 10 08:00:35 <_genuser_> well, one could go all snob and only get the best, but at some point the cost/benefit ratio starts look crappier .... Apr 10 08:00:37 Currently Gradle for us also generates required build parameters, builds in several flavors, generates / updates HTML documentation from markdown files, builds distribution ZIP files, automatically uploads them on server and tags releases on git Apr 10 08:00:56 pretty much all with built-in functionality Apr 10 08:01:02 <_genuser_> I won't argue that all that is not worth it. it's kinda cool. Apr 10 08:01:21 <_genuser_> it's just that it gets in the way of work while offering the benefit that could have been offered otherwise. Apr 10 08:01:40 huh. Apr 10 08:01:56 <_genuser_> I do like the debug/release flavor build options, for example. just pop out the window, select your build and go. Apr 10 08:02:09 it's also significantly easier to manage tham Maven and pretty much all other build systems I've used until now Apr 10 08:02:35 <_genuser_> heh, I'll be honest - I only heard about maven. never used it. I thought eclipse was slow as dog. Apr 10 08:02:47 <_genuser_> now I think of eclipse and think it's a sprinter. Apr 10 08:02:57 <_genuser_> It's the freakin' Usian Bolt of java IDEs. Apr 10 08:03:10 *shrug* Most of the time is caused by NDK linker in our builds Apr 10 08:03:20 And debug device upload Apr 10 08:03:46 <_genuser_> I think using up 2GB or RAM just for the pleasure of running it.... that kinda stuff makes it harder to like AS. Apr 10 08:04:09 its still pretty buggy Apr 10 08:04:10 <_genuser_> I like some things about it already. so it's not completely unappealing. Apr 10 08:04:47 <_genuser_> it's just that it brings a computer with 8GB of RAM to its knees. which is sad. click on an area that wasn't used in a while, and I can see my memory paging to disk, etc. Apr 10 08:05:32 Dude, you're a developer. Apr 10 08:05:50 Using shittier tools that waste your time repeating yourself because you don't want to spend 150$ on 16GB of RAM is... silly Apr 10 08:05:55 Hi, can i implement a Spinner inside a navigation drawer Apr 10 08:06:08 RishabhTatiraju, I see no reason why not, it's a layout after all Apr 10 08:06:43 well i tried, but the spinner aint visible! Apr 10 08:08:49 <_genuser_> honestly, using "shittier tools" and then having to upgrade to 16GB because you're a dev... I don't think that's every flown as an excuse to develop said "shittier" products. Apr 10 08:09:12 <_genuser_> since when has 8G not been enough to do single tasks. Sure I could upgrade to 32G too. Apr 10 08:09:30 <_genuser_> but meh, I doubt AS will speed up any. Apr 10 08:09:49 it works just fine on a 16G/SSD machine Apr 10 08:10:14 lol, eclipse works fine on 4G Apr 10 08:11:13 plus i like it better too ;) Apr 10 08:11:33 luddite Apr 10 08:11:35 than again, leeds is the real hero using vim Apr 10 08:11:43 lasserix_: use mediaplayer for formats it works with and ffmpeg for the rest Apr 10 08:11:45 yep :) Apr 10 08:11:56 ffmpeg + mediacodec Apr 10 08:12:22 capella-s3 has his electricity on again :) Apr 10 08:12:34 sure you didn't forget to pay :P Apr 10 08:12:58 <_genuser_> hmm, having to move to an SSD, to 16G, meh. Apr 10 08:13:04 yah :) couple hours inna dark coding off battery and cell connection Apr 10 08:13:29 <_genuser_> I really should quit talking about AS, since it's not going to improve by complaining about it. Apr 10 08:13:32 it does not support spinners maybe Apr 10 08:13:40 <_genuser_> I should find ways to speed it up, turning off unused features, etc. Apr 10 08:13:53 or use IDEA which is more modular and a bit faster lately Apr 10 08:14:11 <_genuser_> in light of that, do you have any tips on disabling stuff in AS, that one might not use? Apr 10 08:14:18 the nav drawer is blank and i cant find the spinner Apr 10 08:23:56 alright, so here is my app - I have a nav drawer which has a list of entries populated by an ArrayAdapter...and there is a webView in the main layout. I want the webview to show a webpage as per the user's choice in the nav drawer listview Apr 10 08:24:15 So i'm using an OnItemClickListener Apr 10 08:26:14 since its an array adapter, can i use getSelectedItemPosition to get the location of the item? Apr 10 08:26:20 What's the best way to check if a TextView has text in AssertJ Android? Apr 10 08:27:59 didnt even know there's assertj in android Apr 10 08:28:16 RishabhTatiraju, onItemclicklistener already gives you the position on click Apr 10 08:28:29 its the third param of onItemClick Apr 10 08:28:30 gordon_: https://github.com/square/assertj-android Apr 10 08:28:36 yes watching that Apr 10 08:28:59 probably sometihng like... assertThat(textView.getText()).isNotEqualTo(""); Apr 10 08:29:22 but should be better way to do that Apr 10 08:29:38 what about assertTrue(textView.getText().isEmpty()) Apr 10 08:29:43 s/true/false Apr 10 08:30:07 might be Apr 10 08:30:16 and much nicer ;) Apr 10 08:49:01 does retrofit include the support annotations? Apr 10 08:50:43 what annotations? Apr 10 08:53:25 danijoo: i see, basically i'm not able to find a way to make webView change its address after every click on a separate entry Apr 10 08:53:39 RishabhTatiraju, why? Apr 10 08:53:42 danijoo: http://tools.android.com/tech-docs/support-annotations Apr 10 08:54:01 i thought if i get the position, i can define through if-else Apr 10 08:54:01 Ankhwatcher, you mean if the library has things like @Nullable set? Apr 10 08:54:21 by comparing the position Apr 10 08:54:55 Like, if its 1, then open a specific website Apr 10 08:55:14 If its 2, then another website...and so on Apr 10 08:55:41 yes but why do you need an extra call to getSelectedItem when you already know the clicked item from onItemClick? Apr 10 08:56:34 so you mean i directly use the position variable? Apr 10 08:56:40 yes Apr 10 08:56:43 why not? Apr 10 09:00:18 i just did that, i didnt know that it was a param Apr 10 09:00:28 :) Apr 10 09:00:34 perfect Apr 10 09:00:35 works Apr 10 09:00:39 thanks a lot! Apr 10 09:00:54 Hello Apr 10 09:00:55 you're welcome Apr 10 09:01:24 I don't understand what I have to do to display text in TextView Apr 10 09:01:38 textView.setText("your text") Apr 10 09:01:42 I've tried with append method, setText method, but I see nothing Apr 10 09:01:43 ^ Apr 10 09:02:21 then you are doing it either at the wrong place or for the wrong/no textview Apr 10 09:02:52 Cheers gordon_ Apr 10 09:02:55 have a good weekend Apr 10 09:05:31 danijoo: is it possible to disallow users from clicking on links in webview? Apr 10 09:06:02 this is the first time i'm going for such a project Apr 10 09:06:19 i want a static page... Apr 10 09:08:01 RishabhTatiraju, if its your page, dont add links Apr 10 09:08:29 its a different page Apr 10 09:08:38 you can change how the webviewclient handles links Apr 10 09:08:52 see http://stackoverflow.com/questions/15088341/android-webview-disable-all-links-but-enable-scroll Apr 10 09:09:45 My app has 10 element in Drawer List , Should i create different activity for them or all fragments , each element in the list has its own fragments inside it , ex -> My Profile is one element with activity , points , data as three fragments inside it Apr 10 09:10:09 please help i am in confusion which to choose 1 Activity all fragment approach or multiple activity and multiple fragments Apr 10 09:10:14 chinu, thats a question nobody can answer Apr 10 09:10:24 its a lot of personal preference Apr 10 09:10:53 i prefer using lots of activities Apr 10 09:12:05 danijoo : i also prefer that but creating multiple drawers in each activity , i thought there may be better sollution than that ? Apr 10 09:12:26 there is Apr 10 09:12:51 make an abstract activity class where your drawer logic stays Apr 10 09:13:11 override setContentView in that class to add the drawer to the content Apr 10 09:13:18 and let other activities inherit from this one Apr 10 09:13:48 you know how I mean that? Apr 10 09:13:58 creating a lot of Activity will make my complexities easier , but whenever i click on each element a new pop up activity will open , this also looks a little odd to me , and yes I am using the same approach you said , i have created my own base class which inherited by other activities Apr 10 09:14:49 chinu, yeah its kinda a trade-in of complexicity vs quick-fragment-switching. Apr 10 09:15:57 Thanks danijoo i was a little bit confused what to choose and now i am going with multiple Activity method. Thanks again Apr 10 09:18:55 danijoo is there a way i put the drawer layout as a seperate layout and each activity layout inherit that as well ? so i do not have to put drawer layout in each layout xml file Apr 10 09:19:21 chinu, yes. hard to explain though.. let me show you an xml.. Apr 10 09:19:53 ok Apr 10 09:21:13 http://pastebin.com/XtBL8hQ8 Apr 10 09:21:52 this is a layout that when inflated gives you the navigation drawer (i usually make that as fragment but you can use a listview or whatever) Apr 10 09:23:15 and this is the code to add your layout to the content_view in overridden setContentView: http://pastebin.com/fQjVhfAm Apr 10 09:24:38 danijoo : you are a life saver :) Apr 10 09:24:58 haha you are welcome :) Apr 10 09:25:08 danijoo: thanks man....too much happiness today! :P Apr 10 09:25:56 i had my first android workshop yesterday....and i am trying to go out of the syllabus... :P :) Apr 10 09:30:59 the starting is quite tough :) Apr 10 09:38:23 danijoo, I've tried to print via Log.e, but nothing is printed in logcat anymore Apr 10 09:42:40 Hey guys Apr 10 09:43:19 I'm just starting with android dev, and have little experience with java. I have a book which uses eclipse, but I don't know whether to use eclipse or android studio Apr 10 09:43:38 The book would be a great help, but I fear if I use android studio I'll get lost Apr 10 09:45:32 well how old is that book Apr 10 09:45:46 since the end of 2014 android studio is recommended ide for android Apr 10 09:46:18 its not that eclipse is bad (im still using it) but if youre starting you may try to learn android studio from the beginning Apr 10 09:48:40 Do you think it'll be hard to follow the book which uses eclipse? Apr 10 09:48:50 I'm new to java as well Apr 10 09:50:04 not neccesarrily hard Apr 10 09:50:13 but if youre new to java, get at least some java basics Apr 10 09:50:22 android is essentially java Apr 10 09:51:28 Thought I'd head right in Apr 10 09:51:43 I've worked with many languages in the past, just coming from Obj-C and a C++ background Apr 10 09:52:51 What firmware versions should I support when developing new apps/ Apr 10 09:53:06 I'm thinking just down to 4.1? Apr 10 09:53:42 although java is similar to c++, its similarer to c#. for start do some things in plain java Apr 10 09:53:49 another question Apr 10 09:54:06 I've done a search to understand how to use jdb Apr 10 09:54:30 Can I use it via usb otg? Apr 10 09:54:49 Is adb forward tcp needed in that case? Apr 10 09:54:53 Any ideas? Apr 10 09:55:57 AllTuna_: 4.1 or 4.0, althougt there are still many devices with 2.3.3 but many things changed in 3.0 and 4.0, so you may drop it Apr 10 09:56:04 AllTuna_: http://www.statista.com/statistics/271774/share-of-android-platforms-on-mobile-devices-with-android-os/ Apr 10 09:57:30 thanks Apr 10 09:57:49 AllTuna_, today, most people support api level 15+ Apr 10 09:57:50 How about 5.0, the book im working from works with 4.4, were there any major changes in 5.0? Apr 10 09:58:06 AllTuna_, the biggest changes ever ^^' Apr 10 09:58:17 .. Apr 10 09:58:18 really? Apr 10 09:58:19 Hello, I've finally decided to start developing for mobile devices. I'm currently an android user and for android prgramming I would go with java, that I already know. But my question is another. What should I do if I want to port my apps also on ios devices ? I've seen that out there there is a pletora of cross plattform toolkits, should I use one of them or should I code also in swift for example ? what is it used ? phongap, Apr 10 09:58:19 appcelerator or others ? or professional mobile developers code in native ? Apr 10 09:58:22 really Apr 10 09:58:34 danijoo, enough to not use my book? Apr 10 09:58:45 AllTuna_, most are backward compatible :) Apr 10 09:58:49 danijoo, the textview is passed to a second java file Apr 10 09:59:00 if your app runs on 4.x, it will also run on 5.x Apr 10 09:59:10 viewanimator.shownext() is not showing any view Apr 10 09:59:17 Sure, but I'll be working on API lvl 22 Apr 10 09:59:26 on 3rd view Apr 10 10:00:15 kiuma: there are plenty of multi-platform frameworks, mostly using javascript Apr 10 10:00:16 danijoo, as argument of the constructor of an object ('new' keyword) Apr 10 10:00:44 cristian_c, please learn java and come back after that Apr 10 10:01:12 afair xamarin uses c# but free version is limited Apr 10 10:01:44 danijoo, what, in particular? Apr 10 10:01:51 all of it Apr 10 10:01:55 lol Apr 10 10:02:01 swing and gwt ftw Apr 10 10:02:15 Ashiren, ok, but I don't use swing Apr 10 10:02:25 :O Apr 10 10:02:29 uhm Apr 10 10:02:54 so, I'll try to ask again, the next time Apr 10 10:03:04 dont worry Apr 10 10:03:16 were are sarcastic in morning Apr 10 10:03:32 I think a good point is debugging with jdb Apr 10 10:03:32 and grumpy :p Apr 10 10:04:00 usually, I'm using gdb for desktop applications Apr 10 10:04:05 in android? Apr 10 10:04:15 jdb seems similar, but I've to use it with adb Apr 10 10:04:31 Ashiren, I well know this. But my question is: should I stay native or xplatform ? Apr 10 10:04:40 Ashiren, I think I've to use jdb connecting the device to pc via usb and adb Apr 10 10:05:12 but forward tcp seems network connection Apr 10 10:05:16 *about Apr 10 10:05:28 kiuma: depends if you want to support multiple platforms. native is more performant generally Apr 10 10:05:55 I haven't investigated on what others commonly use Apr 10 10:07:16 viewanimator.shownext() is not showing the third view Apr 10 10:07:45 and if the answer is xplatform in most of the situations ? then where shoul I have to look ? phongap ? titanium ? .... otheres ... Apr 10 10:08:22 sorry, i dont know Apr 10 10:09:46 Hi. after upgrading my tablet from android 4 to 5, my application seems to fail to load a class on runtime. http://pastebin.com/ceRM0vHT (the error is on lines 39 and 40) Apr 10 10:15:46 minas114, this looks like a problem with ART Apr 10 10:16:17 but its missing an actual stacktrace Apr 10 10:21:21 danijoo, yeap. But is this an exception I can catch? The application does not crash by the way Apr 10 10:23:42 so crazy idea Apr 10 10:23:49 can I get an openGL texture handle for a bitmap? Apr 10 10:24:10 if it doesnt crash, why do you care about it? Apr 10 10:25:29 danijoo, because it doesn't do what it should :P it doesn't crash but does not 'work' Apr 10 10:26:55 danijoo: troubling you again, sorry... Apr 10 10:26:59 <_genuser_> anyone try to set the tab size to anything other than 4 in AS? Apr 10 10:27:00 my app is working perfectly Apr 10 10:27:07 <_genuser_> I set it to 2 and it keeps tabbing at 4 spaces. Apr 10 10:27:12 but Apr 10 10:27:50 i have to click on the item inside the listview twice for the webview to reflect the changes. Apr 10 10:28:34 wonder why Apr 10 10:38:29 is there a way to run an application on android 5 using dalvik instead of ART? Apr 10 10:42:20 Which was the site to look up implementations of native calls in Android SDK? Apr 10 10:43:56 AndroidXRef Apr 10 10:43:56 thanks Apr 10 11:03:30 minas114, afaik no. Android 5 is not shipped with dalvik. Apr 10 11:03:50 but to test if your problem is art related, you can run it on 4.x with ART enabled and see if its still an issue Apr 10 11:04:12 Note that 4.4 ART had some bugs Apr 10 11:07:16 danijoo, Ok I hope it works in the emulator! Apr 10 11:07:59 another question Apr 10 11:08:21 what tcp port have I to use in adb forward command? Apr 10 11:08:26 Any ideas? Apr 10 11:09:04 cristian_c, i guess te port that you want to forward ;) Apr 10 11:09:39 danijoo, usually I connect with 5555 port to the remote server Apr 10 11:09:48 but it's the remote port Apr 10 11:09:51 not the local port Apr 10 11:10:11 what do you want to forward? Apr 10 11:11:32 To attach jdb to the remote VM we have to have adb forward the remote JDWP port/process ID to a local port. This is done with the forward command, like so: adb forward tcp:7777 jdwp:JDWP_PORT. adb will open a local TCP socket that you can connect to, and will forward all data sent to the local TCP socket to the JDWP process running on the device/emulator. Apr 10 11:12:35 so I've to get the right port Apr 10 11:12:44 local port Apr 10 11:12:45 was disconnected Apr 10 11:12:50 To attach jdb to the remote VM we have to have adb forward the remote JDWP port/process ID to a local port. This is done with the forward command, like so: adb forward tcp:7777 jdwp:JDWP_PORT. adb will open a local TCP socket that you can connect to, and will forward all data sent to the local TCP socket to the JDWP process running on the device/emulator. Apr 10 11:13:37 usually I connect to the device using 5555 tcp port Apr 10 11:13:41 in adb connect Apr 10 11:13:58 but it's the remote port Apr 10 11:14:06 not the local one Apr 10 11:16:45 5555 isn the adb connect port. I dont think this is what you want to forward anyways Apr 10 11:17:19 how users get the port numbers? Apr 10 11:17:56 I dont really understand what you want to do. if you mean java debugger with jdb, there is an intern debugger for android in every ide Apr 10 11:18:23 users use several values for this parameter Apr 10 11:18:48 *how do Apr 10 11:19:05 what parameter? Apr 10 11:19:46 tcp:port Apr 10 11:19:53 maybe ir's arbitrary Apr 10 11:19:58 *it Apr 10 11:20:11 You can use the forward command to set up arbitrary port forwarding — forwarding of requests on a specific host port to a different port on an emulator/device instance. Here's how you would set up forwarding of host port 6100 to emulator/device port 7100: Apr 10 11:20:32 maybe im just dumb but i really dont get your question. adb forward is for forwarding ports. user just put the port in they want to forward .. Apr 10 11:20:52 if you dont know what port you want to forward, how should I know that? Apr 10 11:21:07 in order to getting the port Apr 10 11:21:16 *port number Apr 10 11:21:46 so, i think it's arbitrary, maybe user chooses the local port number Apr 10 11:22:01 users choose the port they want Apr 10 11:22:10 whatever one that is Apr 10 11:22:18 if your server runs on port 1337, put 1337 in Apr 10 11:28:41 apparently, I've not got errors Apr 10 11:28:58 Initializing jdb ...> Apr 10 11:29:43 what is the prefered way to enable drag and drop sort for a listview (or any other list widget)? Apr 10 11:58:31 is there a trick to dynamically change styles through code_ Apr 10 11:58:32 ? Apr 10 12:02:35 is there a way to fetch twitter timeline without using its api? Apr 10 12:02:51 i cant add mobile number to my twitter acc since its not working .-. Apr 10 12:10:01 <_genuser_> you know how eclipse gives you a solution for a problem is highlights? and you just click on the popup link and it fixes the error? example, add imports, etc. automatically? Apr 10 12:10:09 <_genuser_> does AS do that? Apr 10 12:10:34 you mean ctrl+1? Apr 10 12:10:49 IntelliJ has a lightbulb that shows up, you can pick one of the suggestions, or hit alt+enter Apr 10 12:12:11 <_genuser_> ah, it's alt-enter. Apr 10 12:12:31 <_genuser_> I was googling for it too. just didn't know how to describe the feature. :) Apr 10 12:12:45 <_genuser_> thanks guys Apr 10 12:27:23 Hi all. I need to figure out how long it should take to use push notifications in an android app. Any suggestions? Apr 10 12:27:42 FrancescoV, you cant say that in general Apr 10 12:27:54 its everything between instantly and a few seconds Apr 10 12:28:00 if google has problems maybe more Apr 10 12:28:29 danijoo: I mean how mush time to implement it ;) not to receive the message Apr 10 12:29:00 that depends on even more :D Apr 10 12:29:27 ok, but x days or one week, two weeks Apr 10 12:30:10 1 day for a simple demo, some weeks for all whatsapp features ;) Apr 10 12:31:28 ok, good answer, thanks Apr 10 12:37:33 I have a menu and I want hide some items in it Apr 10 12:37:38 when I set setVisible it does not work Apr 10 12:37:59 it hides only in a toolbar but it is still visible in menu that is available after pressing menu button Apr 10 12:40:10 folks Apr 10 12:40:13 trouble again Apr 10 12:41:37 when i inflate menu Apr 10 12:41:47 it gives me a ; expected error Apr 10 12:42:03 onCreateOptionsMenu(Menu menu) Apr 10 12:42:09 before and after the brackets Apr 10 12:42:24 and says that @Override is not allowed Apr 10 12:43:51 Hey so I am having a hard time figuring out how to make this query, I have an array of 5 userIds, and I have many entries that include one of the 5 users ids, with a time stamp... I am trying to grab the latest entry for each userid how do I go about that? This is what I have tried... not sure if it is good?http://pastebin.com/gVWeR7PZ Apr 10 12:53:39 SELECT DISTINCT? With an order by clause? Apr 10 13:00:38 Does that work I am not too familiar with sqlite commands Apr 10 13:01:56 Do you have an SQLite dump that I could work with? Apr 10 13:02:08 Pref. SQL commands rather than a file Apr 10 13:02:19 Schema, thats the word haha Apr 10 13:02:32 In fact Apr 10 13:12:51 http://pastebin.com/sq1Gyvtz Apr 10 13:12:55 is that the way to do it Apr 10 13:14:04 Im working on a query for you now Apr 10 13:14:26 If you use rawQuery, I think it returns a cursor (although I dont know about pros or cons of it) Apr 10 13:20:37 hm kk Apr 10 13:27:05 can i change a sync adapter periodicsync's settings such as wifi-only,battery > 30% etc. ? Apr 10 13:28:20 Lonesoldier728: Sorry, I've got to pop out, but SELECT DISTINCT should work Apr 10 13:28:36 kk np Apr 10 13:28:37 Google it, SELECT DISTINCT on one column return all columns or something like that Apr 10 13:29:02 Make sure you specify SQLite though - other engines suggest using ROW_NUMBER() or something which is an SQL function Apr 10 13:29:03 Ciao Apr 10 13:35:36 <_genuser_> JakeWharton: can I request a .load(byte[]), one that respects orientation? Apr 10 13:36:33 _genuser_: why do you have a byte[]? Apr 10 13:36:37 damn it, I really need to chain multiple REST requests together.... Apr 10 13:37:21 I guess I will need to learn Rx sooner. Apr 10 13:37:23 <_genuser_> JakeWharton: to summarize long story: some images are via a web service, some via db, some parsed out of binary files with other images AND pdf files embedded into the same thing. Apr 10 13:38:07 <_genuser_> some are from file system. I have a RequestHandler that does all that and sends returns byte array to picasso. Apr 10 13:38:32 <_genuser_> but then I'd have to do the same reading out too to read teh exif header and request a .rotate(). Apr 10 13:38:50 We don't parse EXIF either. Apr 10 13:39:47 <_genuser_> that's why I thought, I would just read the byte arrays myself outside of the RequestHandler (do away with RequestHandler). I'd parse out the exif to get angle, and then send byte[] to .load() Apr 10 13:40:10 <_genuser_> and call .rotate with the appropriate angle (which I'll calculate) Apr 10 13:50:22 <_genuser_> JakeWharton: so is that a no on the feature of passing a jpeg as byte[]? Apr 10 13:52:15 Anybody knows why square's Flow Snapshot is outdated on the sonatype repository? Apr 10 13:52:30 any way to ping it so it updates to the current master version? Apr 10 13:53:29 _genuser_: passing in a byte[] or existing Bitmap is hard because of assumptions we made long ago Apr 10 13:58:06 hello folks: Apr 10 13:58:06 uses somebody aspectj? has somebody answer for https://github.com/uPhyca/gradle-android-aspectj-plugin/issues/21 ? Apr 10 14:00:02 <_genuser_> JakeWharton: I see. with that explanation, I now know to re-org my code and try to solve this better than I'm solving it now. Apr 10 14:05:19 <_genuser_> JakeWharton: one question: are the bitmaps I load via picasso cached somewhere on the disk during applicaton run? Or just in memory? I noticed taht if don't explicitly .resize() them, I start seeing out of memory errors on teh very second jpeg? Apr 10 14:05:52 I can't get rid of this stupid code-fold, I think it's overlapping another code-fold, any suggestions? Apr 10 14:06:14 That's probably because your images are too big _genuser_ Apr 10 14:06:32 And picasso doesn't have a disk cache, it let's the http client do that Apr 10 14:06:53 <_genuser_> f2prateek: they're pretty large, sure. high-res camera pics. Apr 10 14:09:04 It's android studio btw Apr 10 14:11:22 Preferences -> IDE Settings -> Editor -> Code Folding Apr 10 14:14:12 It's just one broken fold, not the entire project :S Apr 10 14:14:21 is flow+mortar the only way to avoid fragments? Apr 10 14:14:44 i would like to use them but they seem to unstable yet and the lack of documentation only leads to further confusion Apr 10 14:15:06 navidrawer overlaying actionbar, theres nothing worse. Apr 10 14:15:12 no idea why google suggests that Apr 10 14:19:43 I just disabled everything, now suddenly the - checkbox appeared. Guess I'll start folding manually from now on Apr 10 14:24:29 All of a sudden when using FusedLocationProviderApi it is returning null..did something change with the API recently or is my phone/app just being stupid? Apr 10 14:25:20 hi, I am looking for a library that can download a URL to a string in a one-liner, a bit like picasso but for HTML URL... any suggestions? Apr 10 14:25:56 is there a tool in android studio like memory monitor for monitoring cpu,gpu usage ? Apr 10 14:26:15 CPU usage is in Android Studio Apr 10 14:26:34 I don't think there's anything for GPU besides the SoC-specific OpenGL profilers Apr 10 14:27:10 O.o Apr 10 14:35:38 if i use an array adapter multiple times on the same listview, will the existing items in listview be deleted or the new data be appended? Apr 10 14:36:35 Your question is strange - how do you "use" an array adapter on listview? Apr 10 14:37:12 Also an Adapter directly provides items to ListView, listview itself doesn't really hold any data Apr 10 14:38:10 sorry for not being technical... i have an ArrayAdapter providing items to a listview Apr 10 14:38:55 in a different class, the same listview is being provided by an array adapter of different data Apr 10 14:39:40 will both the data be appended to each other, or the listview will first be blanked out, and the new data be fed Apr 10 14:50:19 Well, this is rather embarassing. Anyone have any tips on how to make all TableRows in a TableLayout the same height? Using layout_weight I'm only able to get the widths of the two columns to match up, not the height of the rows themselves (although the buttons on each row get scaled up to whichever button has largest height on that specific row). Apr 10 14:51:28 Chamooze: Define the same height for all the rows Apr 10 14:52:11 Ah sorry, I need them to fill up the available space in the Dialog Apr 10 14:53:12 Chamooze: then define them to be the same height as the dialog Apr 10 14:55:02 Not sure how you mean. layout_height=match_parent? Apr 10 14:56:08 Chamooze: no, layout_height="@dimen/height_of_dialog" Apr 10 14:56:53 Wouldn't that cause a pretty nasty overflow? Apr 10 14:57:05 as in, only the first row visible? Apr 10 14:58:43 Chamooze: Yes only the first row is visible if you set the height of the rows to "fill up the available space in the Dialog". Is that not what you said you wanted? Apr 10 15:00:00 never mind...got the answer...tried it myself...thanks :) Apr 10 15:02:12 hi, I am looking for a library that can download a URL to a string in a one-liner, a bit like picasso but for HTML URL... any suggestions? Apr 10 15:03:03 okhttp? Apr 10 15:03:32 ^ Apr 10 15:03:49 nice ill look it up Apr 10 15:03:54 any other suggestions? Apr 10 15:04:24 nothing worthwhile Apr 10 15:04:28 Mavrik: can I do file POST upload with okhttp? Apr 10 15:04:44 dude go check the doc Apr 10 15:05:04 fair enough Apr 10 15:05:18 zalg: It supports the http spec so... Apr 10 15:22:10 hey guys! I'm using an MultiAutoCompleteTextView to suggest small sentences of 2 a 4 words! My problem is that after i pick one of the option on the dropdown and try to delete 1 character of the sentence it deletes everything. How can i avoid this behavior? Apr 10 15:25:17 I see that the flow libary is using a custom GsonParceler. Is there any library providing a parceler that works with flow? Apr 10 15:36:57 hey i had to turn off my pc during breakfast command ,how to repair damage without having to delete source and repo sync ? Apr 10 15:42:33 kubast2 what damage? Apr 10 15:43:42 I wrote a small camera app for android, it runs fine on my samsung galaxy s4 mini but when I try to run on a lg nexus, it crash before opening.. do I need to "port" my android code to nexus ? if so, can you point me to some documentation regarding this pls? Apr 10 15:44:12 zalg you need to see what is incompatible. Look at the stacktrace of the crash Apr 10 15:46:47 build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/motorola/falcon/cm.mk]]: "vendor/motorola/msm8226-common/msm8226-common-vendor.mk" does not exist. Stop. Apr 10 15:46:48 I get this[3 out of 4 projects were fetched] Apr 10 15:47:27 hey guys! I'm using an MultiAutoCompleteTextView to suggest small sentences of 2 a 4 words! My problem is that after i pick one of the option on the dropdown and try to delete 1 character of the sentence it deletes everything. How can i avoid this behavior? Apr 10 15:47:57 It's first time working with android source ,and I'm not quite sure how even basic stuff works ,compared to kernels Apr 10 15:50:39 I think I got this it's pretty clear to me now Apr 10 15:51:35 kubast2, wrong channel ;) Apr 10 15:51:51 for building android from source Apr 10 15:52:49 Could you direct me to correct channel? Apr 10 15:53:00 Oh " Android application development" Apr 10 15:53:57 I guess #cyanogenmod-dev ,should do Apr 10 15:55:03 or #android-root Apr 10 15:55:57 Hey. Apr 10 15:56:29 Is it problematic to decide the target API level later? I mean, I'm not sure which features I will need, I might start developing with something like level 16, and then lower it if needed Apr 10 15:56:47 is it normal to do that? Apr 10 15:57:55 Papipo, you can always change that later Apr 10 15:58:10 but you should be fine with 15 Apr 10 15:58:13 sure, I just wanted to know if I can hit some walls later Apr 10 15:58:30 I guess that I might need to change some classes for their support counterparts, right? Apr 10 15:58:57 you will most likely need some support classes anyways Apr 10 15:59:11 heh Apr 10 15:59:14 ok, thanks Apr 10 15:59:19 even with highest apu level you should use support fragments instead of native fragments for example Apr 10 15:59:33 why is that? Apr 10 15:59:38 they have more features or what Apr 10 16:00:16 the viewpager only works with support fragments Apr 10 16:00:24 and you get the same behaviour for each api version Apr 10 16:00:40 I might actually need a viewpager Apr 10 16:00:44 if you use native fragments and there is a bug in api 18 or so, you get weird crashes Apr 10 16:01:02 this android thing is confusing Apr 10 16:01:02 everyone is using supp fragments Apr 10 16:01:12 ^^' yeah it is. :p Apr 10 16:01:31 youll get a hang on it Apr 10 16:01:46 I was going to use mortar and flow Apr 10 16:01:54 but then I realized they were even more confusing Apr 10 16:02:39 what I would really like is to do proper TDD Apr 10 16:02:49 I know that testing is kinda cumbersome in android, but anyway Apr 10 16:03:16 Papipo: I'm reading this right now, http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/ Apr 10 16:03:19 it got better recently Apr 10 16:03:25 now we have actual unit teting Apr 10 16:03:55 It's a good read, and has an example project that's being actively worked on Apr 10 16:04:09 so if we load an image using webview, it goes to temporary storage right? Apr 10 16:04:22 is that deleted atomatically? Apr 10 16:04:30 *automatically Apr 10 16:04:37 thx yiati Apr 10 16:04:50 danijoo_: I would like to know which is the best workflow Apr 10 16:05:04 Like being able to develop fragments completely independent of each other Apr 10 16:05:12 and thus test them in isolation Apr 10 16:05:23 its sometimes really hard to do this Apr 10 16:05:35 Is it important to use heavily customized views? Apr 10 16:05:44 instead of just composing them in XML Apr 10 16:05:56 Papipo, that depends. Apr 10 16:06:05 customized views can be reused more easily Apr 10 16:06:13 Papipo: a lot of these questions are best asked by starting to architect and build out your app Apr 10 16:06:24 ^ this Apr 10 16:06:27 yeah, I got to this point by doing that Apr 10 16:06:28 just start programming Apr 10 16:06:35 your code will look ugly a lot Apr 10 16:06:40 we will have to refractor a lot Apr 10 16:06:44 I am going to restart working on an app Apr 10 16:06:48 but thats the best way to learn Apr 10 16:06:58 because even after several refactorings, I don't like the code Apr 10 16:07:06 but I learnt a lot Apr 10 16:07:07 :D Apr 10 16:07:42 Something that I started using lately and I liked is Rx Apr 10 16:07:47 dude... Apr 10 16:07:47 http://www.ioccc.org/2013/birken/birken.c Apr 10 16:07:49 I never like my code Apr 10 16:08:23 when I have finsihed some lines, i always feel like "thats an awesome solution - call me programming-god" Apr 10 16:08:35 and when I review it a week later "what the hell is this???" Apr 10 16:08:40 it just became spaghetti Apr 10 16:08:58 but I guess being the first android project I work on, that makes sense Apr 10 16:08:59 I'm glad I actually never have that with my code lately. Apr 10 16:09:02 danijoo_: thats why I only code when im sober Apr 10 16:09:22 zalg :p Apr 10 16:09:36 I always look for the best solution even though it takes some more time. Apr 10 16:09:45 I really hate having to use workarounds. Apr 10 16:09:48 the worst thing is if you have to work with code you had to wrote years ago Apr 10 16:10:06 oddly, I've never felt. that way Apr 10 16:10:10 danijoo_: so true Apr 10 16:10:24 except for code I'm in a rush to write with terrible requirements Apr 10 16:10:25 then you only have yourself to hate Apr 10 16:10:34 no time to refractor, but damn.. im always wondering how my code is still working Apr 10 16:11:17 sometimes I like to write some witty comment to myself.. everytime I stumble upon them a year later Im like 'im such an idiot' Apr 10 16:11:35 so, unit testing Apr 10 16:11:37 yeah :D Apr 10 16:11:43 any tips? Apr 10 16:11:48 just junit? Apr 10 16:12:09 or do I need robolectric or something like that Apr 10 16:12:15 the hardest lesson to learn: dont look at old code if they work Apr 10 16:12:18 just take them granted Apr 10 16:12:28 Papipo, you dont need robolectric Apr 10 16:12:32 but it makes things easier Apr 10 16:13:27 I like easier Apr 10 16:13:30 I don't like dirty Apr 10 16:13:42 you have a problem then Apr 10 16:13:48 robolectric is both :p Apr 10 16:13:55 I suspected that Apr 10 16:13:56 :D Apr 10 16:14:20 espresso is for integration testing, right? Apr 10 16:14:36 well, what I call integration testing Apr 10 16:14:38 have to go. sorry Apr 10 16:14:41 you might call it acceptance testing Apr 10 16:14:41 good luck ! :p Apr 10 16:14:46 thx, enjoy Apr 10 16:16:45 I have read a lot that java, and I guess android, apps should be packaged by feature Apr 10 16:16:46 Papipo: From what I've seen, Espresso is usually defined in the "UI testing" domain. Apr 10 16:16:52 But I keep seeing them packaged by layers Apr 10 16:17:17 Which has the advantage of some layers not depending on big libraries, like android itself Apr 10 16:33:16 com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\l\Android\sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1 Apr 10 16:33:25 All results in Google seem to be for mono or Xamarin? :S Apr 10 16:34:35 Oh, Ive found something potentially useful on SO Apr 10 16:38:26 Well, that was a long way to find a simple problem haha. Also, found a great use for the terminal in AS. I actually love that feature. Apr 10 16:38:34 I've got a problem with my navigation bar color. Standard it's n% translucent, but the windowBackground is set to white in my app and makes that light grey. This is fine when I have no Toolbar in some of my activities, but when I have a toolbar, there is a grey navigation bar and a red toolbar. Is there a way to fix this easily? Apr 10 16:39:08 Just by making the background color beneath the navigation bar the red that my Toolbar is using if there is a toolbar. Apr 10 16:47:50 <_genuser_> alright, guys, need to render an image and zoom in full size to be able to see all the detail. Apr 10 16:48:28 Hmm, I have a BaseActivity which uses ButterKnife, I inject a view (which will be in every activity which extends BaseActivity), but that view is found in an layout. Says it can't find it. Apr 10 16:48:59 Caused by: java.lang.IllegalStateException: Required view with id '2131361904' for field 'mNavDrawer' was not found. If this view is optional add '@Optional' annotation. I get. Apr 10 16:49:41 <_genuser_> any suggestions? currently trying out TouchImageView by Mike Ortiz Apr 10 16:50:32 _genuser_: You need a zooming ImageView? Apr 10 16:50:39 <_genuser_> using picasso to render the image into TouchImageView. if I tell it to resize it at 1000,1000 touchimageview can't zoom in and show me finer details. any higher resolution and picasso runs out of memory (well the device does). Apr 10 16:51:22 <_genuser_> TacticalJoke: yes, zooming all the way in. In can view the same image in Gallery and zoom in to be able to read text on a letter on a desk. Apr 10 16:51:37 <_genuser_> TacticalJoke: but using picasso/TouchImageView, I can't get that much clarity. Apr 10 16:52:47 I see. By default, I think Picasso will be subsampling the image (reducing quality but also reducing memory use) taking into account the ImageView size. Apr 10 16:53:13 Not sure how the gallery works here. Hmm. Apr 10 16:53:23 Not by default Apr 10 16:53:23 Thats why my Google Plus Profile Image looked like my face had 1 pixel. Apr 10 16:53:50 JakeWharton: Ah. I'm probably thinking of one of the builder methods. Apr 10 16:53:56 <_genuser_> Anthaas: lol. Apr 10 16:54:09 I might just be bloody ugly to be fair. Apr 10 16:54:19 fit() yeah Apr 10 16:54:24 <_genuser_> JakeWharton: any suggestions? I'm googling also, hoping for some help ideas. Apr 10 16:54:31 Anthaas: I bet a lot of people would find a one-pixel face cute. :D Apr 10 16:54:43 TacticalJoke: My Mum doesnt count. Apr 10 16:55:20 Why is it that sometimes I have to call bundle.size() to unparcel the data? Apr 10 16:55:21 <_genuser_> trying different variations. current loading is done via: .resize(1500, 1500).centerInside().placeholder(R.drawable.pholder).into(mView); Apr 10 16:55:29 JakeWharton: There shouldnt be an issue with a Superclass Activity finding a view within an include tag in the layout of the subclass activity, should there? Apr 10 16:55:36 Using Butterknife *** Apr 10 16:58:49 Hi. I want to handle the result of my asyncTask in a function (processFinish) of my mainActivity like this http://stackoverflow.com/questions/12575068/how-to-get-the-result-of-onpostexecute-to-main-activity-because-asynctask-is-a/12575319#12575319 but I only can overwrite the funtion in interface when I create my class instance. like this one: http://stackoverflow.com/a/28513556 Apr 10 16:59:10 what I#m doing wrong ? Apr 10 17:00:59 Hey, i have a question. I wan to have a toolbar like gmail application that when i have a selected items the toolbar changes and display options for selected items. What its the best way for do it? Have a one toolbar and other with options and replace it on runtime or just modify the first toolbar on runtime? Apr 10 17:03:49 c727: Your activity should be able to implement the interface. Apr 10 17:04:25 codekK: I think Toolbar.startActionMode should work for that. Apr 10 17:04:59 See . Apr 10 17:05:29 Anthaas: no. should be no issue. Apr 10 17:07:38 <_genuser_> who'da thunk such a simple thing would be so complicated? Apr 10 17:09:17 When setting android:windowTranslucentStatus to true, my Toolbar is under the status bar. Is there a way to get the height of the status and actionbar so I can add that to it? Apr 10 17:09:42 TacticalJoke, thanks for reply. Can you look at this http://pastebin.com/2dnmF9E8 Apr 10 17:11:52 c727: It should work if you say "new Blaaa(this)". Apr 10 17:12:15 Also, add @Override on top of processFinish so that the compiler can check for you that you're defining the method correctly. Apr 10 17:13:13 it's Friday whoohoo \o/ Apr 10 17:13:20 happy Friday everyone :D Apr 10 17:14:05 :) Apr 10 17:14:47 I have writing code all week and i'm sick of looking at android studio Apr 10 17:15:16 ooh that's bad, but you are not the only one Apr 10 17:15:32 weekend of coding too ? Apr 10 17:15:32 TacticalJoke, thats it. thank you Apr 10 17:15:45 feathersanddown: yeah most likely Apr 10 17:16:13 coding is like a black whole, it sucks you in and when you're past the event horizon, you end up coding in your sleep Apr 10 17:16:43 fuaaa, take a rest man Apr 10 17:16:47 lol Apr 10 17:17:02 your ayes will appreciate that Apr 10 17:17:06 *eyes Apr 10 17:17:14 c727: The key thing is that you have to pass an instance of *anything* that implements the interface. It could be 'this' or it could be "new Something()". Apr 10 17:17:29 Or it could be 'that'. :) Apr 10 17:17:45 ok :) Apr 10 17:17:53 anyone here have a full adsense account theyve linked to analytics? I think why I cannot link it is that my adsense account was simply made because admob converted to adsense or something Apr 10 17:18:01 so I have a partial adsense account with admob in it Apr 10 17:18:56 i'm still facing a problem that I can't resolve :(, I need to refresh a ListView with data from database Apr 10 17:19:11 and I think that I have to apply for adsense account under "My ads", but it asks for a web page, not an app Apr 10 17:19:50 be back from lunch Apr 10 17:20:53 feathersanddown: where's the problem Apr 10 17:21:07 are you asking how to reset an adapter with a new dataset? Apr 10 17:23:56 TacticalJoke, ok friend thank you i will read about startACtionMode :) Apr 10 17:38:06 <_genuser_> has anybody ever run into a limit of how deep a package folder hierarchy can go? Apr 10 17:39:49 _genuser_: I can honestly say that I have never thought about that before haha... Apr 10 17:40:57 <_genuser_> Solarnum: I remember back in the day when windows has a limit of x characters to represent a path. and folders to represent package heirarchy reminded of that. Apr 10 17:41:04 I read about a theoretical limit once. Not sure whether it applies today. Apr 10 17:41:19 <_genuser_> yeah, I kinda don't think it would be a problem today. Apr 10 17:41:23 (A limit relating to the Java compiler, I mean.) Apr 10 17:41:24 <_genuser_> I know it's a problem when zipping up files tho. Apr 10 17:44:00 <_genuser_> somebody here was talking about how AS flashes orange as if it has to notify you or something and when they bring it to front nothing. Apr 10 17:44:07 <_genuser_> I see it doing that too. it's kinda funny. Apr 10 17:45:07 hi Apr 10 17:45:13 Android Studio gets lonely sometimes. Apr 10 17:45:20 iprime: hi, sorry found Apr 10 17:45:30 john67, still got issues? Apr 10 17:45:48 just reminding you to get back to work.. Apr 10 17:45:53 iprime: no, i have to test with different phones Apr 10 17:45:56 _genuser_, that limit is still there in some windows APIs, very annoying Apr 10 17:46:17 iprime: before publishing Apr 10 17:46:22 oh great Apr 10 17:48:12 if every thing is oki Apr 10 17:52:24 Why is it that I sometimes have to call bundle.size() to unparcel the data Apr 10 17:52:25 ? Apr 10 17:53:51 They probably lazily unparcel it Apr 10 17:57:13 This is handy: https://i.imgur.com/KABtsAk.png (result: http://i.imgur.com/sVSw4Ev.png) Apr 10 17:59:40 who is they SimonVT? Apr 10 18:00:04 I want to find them and tell them all the debugging problems it has caused me Apr 10 18:00:12 which are exactly 2.. which is about 2 too many Apr 10 18:00:13 Hi...can someone take a look at my problem... http://stackoverflow.com/questions/29565967/spinner-doesnt-show-selected-item ? Apr 10 18:00:54 uuh Apr 10 18:00:59 <_genuser_> iprime: only if that was the problem with my android project, lol. Apr 10 18:02:00 _genuser_, lol, what is? Apr 10 18:02:17 Zbra do you have more info? Apr 10 18:02:28 im suspecting setDropDownViewResource() Apr 10 18:02:57 <_genuser_> iprime: trying different libs out there. Need to load an image and be able to zoom in to see all the fine details, just like you can with android gallery. Apr 10 18:03:14 <_genuser_> iprime: apparently, it's impossible. lol. yes the gallery does it with so much ease and speed. Apr 10 18:04:22 Zbra you need a custom layout for the spinner I think Apr 10 18:04:38 to display the radio boxes.. R.android.simple is just a text box Apr 10 18:05:05 _genuser_, have you consulted the gallery source code? Apr 10 18:05:06 and what does your OnItemSelected class look like? Apr 10 18:05:06 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); Apr 10 18:05:08 I did that Apr 10 18:05:09 i'm guessing they might be using ogl Apr 10 18:05:12 which is “this” so what are the methods? Apr 10 18:05:23 yea Zbra that only contains a text. not radios.. Apr 10 18:05:25 is your image very large, _genuser_ Apr 10 18:05:40 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/simple_spinner_dropdown_item.xml Apr 10 18:06:01 Zbra, that is the layout you’re trying to inflate Apr 10 18:06:33 oh..well i googled why radiobuttons arent visible and on stackoverflow ppl answered in other threads to use that layout tho :P Apr 10 18:06:34 only a CheckedTextView Apr 10 18:06:52 radio buttons you can only select one Apr 10 18:07:02 think old school push button radios Apr 10 18:07:07 push one button the other pops out Apr 10 18:07:49 and my onselected method is empty Apr 10 18:07:53 _genuser_: I ended up building one :| but it's not too hard. use a gesture detector to detect scales, a matrix to draw the image, and matrix.postScale(scale, scale, touchCenterX, Y) Apr 10 18:07:59 genuser opengl? Apr 10 18:08:08 Hi! Apr 10 18:08:10 or do what groxx suggests Apr 10 18:08:21 does it call super? Apr 10 18:08:28 that'll also give you pinch zoom + pan simultaneously, and double-tap-drag to zoom in/out Apr 10 18:08:36 Is it not possible to have admob data from app into analytics so I can see the age of users clicking ads etc? Apr 10 18:09:06 ah nvm Apr 10 18:09:07 excuse me: i have an error running 'repo' ---> https://gist.github.com/dreamcat4/fd714e12a5df92e863bd Apr 10 18:09:09 <_genuser_> groxx: hmm, if you have a lib, I'll use it. if not, I'll begrudgingly look into writing the darn control/code. Apr 10 18:09:25 what is the most recommended backend setup for making a chat app with android? I'm looking for one that works with least problems.. Apr 10 18:09:41 _genuser_: no lib, but I could gut it and pastebin for you pretty quickly, I think Apr 10 18:09:51 ashemark, high load or small load? Apr 10 18:10:10 there probably are libs, but I needed to add a lot on top of that, and none were extensible enough Apr 10 18:10:15 <_genuser_> groxx: so it is a image view? that can zoom all the way up to 100% or close? Apr 10 18:10:46 <_genuser_> groxx: I am currently using picasso to load in the image then use zoom. that means I have to tell picasso to load is at 2000x1000 or something like that. Apr 10 18:10:51 iprime: don't know... Apr 10 18:11:00 _genuser_: yeah, I used an image view, because it's easy to be lazier and handle more resource types Apr 10 18:11:02 _genuser_, if it's that simple...https://github.com/MikeOrtiz/TouchImageView ? Apr 10 18:11:17 and this https://github.com/chrisbanes/PhotoView Apr 10 18:11:25 <_genuser_> groxx: then I can kinda zoom in, but the thing is picasso runs out of memory if I give the original resolution of the image. Apr 10 18:11:31 tricknology : http://stackoverflow.com/questions/10070158/how-to-create-a-spinner-with-radio-buttons Apr 10 18:11:42 thats where i got it from Apr 10 18:11:49 iprime: high load? Apr 10 18:11:53 <_genuser_> iprime: I have used TouchImageView. however, when I load in an image with picasso at the original resolution so I can zoom in teh all way, it goes out of memory. Apr 10 18:12:01 ashemark, there are lot of options, it's not an easy task if you want it to scale... you can check xmpp... but really youc an use node.js to build one in like an hour ;) Apr 10 18:12:11 _genuser_: aah. then you probably need to use BitmapRegionDecoder or something Apr 10 18:12:19 _genuser_, how large of an image? Apr 10 18:12:26 Does anyone know how to make it so that the status bar is translucent but at the same time has the colorPrimary below it? With android:windowTranslucentStatus it looks like this: http://i.imgur.com/r7UTyz1.png otherwise it looks like this: http://i.imgur.com/Y1UTscm.png (this is a toolbar btw) Apr 10 18:12:26 _genuser_: that I haven't done, though I will eventually :| Apr 10 18:12:31 <_genuser_> iprime: basically the image was taken by the phone's camera. Apr 10 18:12:35 oh Apr 10 18:12:57 iprime: I've set up a socket.io based node js server, but it's java/android counterpart is causing me problems.. :( Apr 10 18:13:01 <_genuser_> groxx: so instead of loading an entire bitmap, the region decoder will decode bits at a time? Apr 10 18:13:12 ashemark, there are solid websocket impls in java Apr 10 18:13:17 are the checkboxes showing Zbra? are you clicking the checkboxes or the text? Apr 10 18:13:50 _genuser_: I've been thinking that it should be possible to use a 2D recycler view, and have each cell load its own region at an appropriate scale. but I haven't built one yet. Apr 10 18:14:57 the text is showing..the raduibuttons arent Apr 10 18:14:59 _genuser_: exactly. so you probably want something 2x their display so they can zoom in a bit without loading, then pixelate while you load the next level of zoom for the current viewport + maybe surroundings. Apr 10 18:15:00 <_genuser_> groxx: you're giving me something to think about. Apr 10 18:15:01 iprime: could you please elaborate?? right now i'm using https://github.com/nkzawa/socket.io-client.java Apr 10 18:15:06 help. can anyone understand this error msg? ---> i have an error running 'repo' ---> https://gist.github.com/dreamcat4/fd714e12a5df92e863bd Apr 10 18:15:25 ashemark, i could check what i've used in some old project Apr 10 18:15:28 <_genuser_> groxx: altho, I have that every new feature I tackle involves tons of research, lol. Apr 10 18:15:30 IF i find it :) Apr 10 18:15:41 _genuser_: another thing to keep in mind: if the image is larger than the device's max texture size, you'll get buggy rendering Apr 10 18:15:56 Hasn't there been some petition link posted in here about Googles bots removing apps a lot recently with no support? Apr 10 18:15:58 <_genuser_> groxx: I can't just "do" a new feature. it's like a google search fest Apr 10 18:16:04 _genuser_, how important is that feature to your app? (zooming in a large pic) Apr 10 18:16:05 Anyone have it, or a relevant link? Apr 10 18:16:25 _genuser_: software rendering avoids that but is slow, alternatively you can keep a few bitmaps of smaller sizes and draw them individually. Apr 10 18:16:29 try simple_list_item_1 Apr 10 18:16:34 iprime: so I can use any webserver(written in java) to connect to my node.js chat socket? Apr 10 18:16:40 Muchoz: just use a dummy view there Apr 10 18:16:45 <_genuser_> iprime: I'm retrieving pictures from multiuple sources. as a last resource, I could just save it as jpeg to disk and load it in android's gallery control. Apr 10 18:16:53 android.R.layout.simple_list_item_1 Apr 10 18:16:54 lasserix, how do I know how tall it needs to be then? Apr 10 18:16:57 with height for api 19+ to 24dp Apr 10 18:17:01 and below to 0 Apr 10 18:17:04 see if that changes things Apr 10 18:17:05 Should the injects for an abstract activity be called in the abstract class or the concrete class in ButterKnife? Apr 10 18:17:22 _genuser_: yeah :) but handling large images on a small device (I.e. not a desktop) is inherently hard :) not surprised there's nothing built in. Apr 10 18:17:41 <_genuser_> groxx: basically pictures are coming from random sources (web, db, local binary files with other data in them also). and the images were taken by some phone camera. Apr 10 18:17:43 i had simple_list_item_1 before ... didnt work either Apr 10 18:18:05 <_genuser_> groxx: and it would be nice to just display the image and let the user zoom in, instead of kicking them out to the Gallery control, which does it just fine. Apr 10 18:18:23 <_genuser_> but it could have bunch of native code backing it up, etc. etc. opengl etc. etc. like someone mentioned. Apr 10 18:18:51 ashemark, try this one https://github.com/koush/AndroidAsync Apr 10 18:19:13 <_genuser_> groxx: I understand iOS dosen't have this problem. Apr 10 18:19:19 _genuser_: yeah, understandable. I'm not aware of how the gallery does it, but tbh I'd suspect a lazy-loading bitmap region decoder when you zoom in, and a scaled image when not. Apr 10 18:19:28 lasserix, how do they do it here then? http://www.google.com/design/spec/layout/structure.html#structure-side-nav Apr 10 18:19:31 _genuser_: it does, it's just harder to hit Apr 10 18:20:01 no idea but what i said works Apr 10 18:20:12 lots more ram available to your process, big gl textures, etc Apr 10 18:20:47 <_genuser_> groxx: so when the zooming starts, region decoding starts taking place... eh? Apr 10 18:20:53 iprime: looks great, but documentation states it works for socket.io v 0.9.x? won't it run on newer versions of socket.io, say 1.3.x? Apr 10 18:20:57 <_genuser_> I'd have to think about how to implement this using existing controls. Apr 10 18:21:39 _genuser_: that's my guess, yeah. it fits, as you sometimes see it pixelate and then clear up Apr 10 18:21:42 lasserix, not all devices have 24dp height, right? Apr 10 18:21:48 ashemark, i thin it would, but you should just go ahead and try Apr 10 18:22:08 iprime: i read in one of the issues, it doesn't support the latest socket.io Apr 10 18:22:10 :( Apr 10 18:22:12 <_genuser_> groxx: I'd have to get the pinch zoom controls enabled and then see where it's activated and then imediately region decode and ignore the actual image. Apr 10 18:22:19 _genuser_: they probably keep the full-view in memory always, so they can fill in gaps while it loads Apr 10 18:22:35 there must be something else going on Apr 10 18:22:43 can you post XML of you activity, Zbra? Apr 10 18:22:50 and maybe the full class where the spinner appears? Apr 10 18:22:52 <_genuser_> groxx: so seems like, I should go ahead and save the image to disk anyway, and then load bitmap regions I care for. Apr 10 18:22:55 on pastebin.com Apr 10 18:23:09 ashemark, did you check the chat project of the lib you use: https://github.com/nkzawa/socket.io-android-chat Apr 10 18:23:13 _genuser_: lazily, but yeah. matrix has mapRect, which is an easy way to get the "what section of the bitmap is displayed" days Apr 10 18:23:18 days -> data Apr 10 18:23:23 <_genuser_> groxx: I can't decode the raw bitmap in memory from jpg, becuase that crashes Apr 10 18:23:38 _genuser_: always to disk, yeah. then you can survive process death and resume. Apr 10 18:23:47 <_genuser_> groxx: so I'd have to save it to disk, etc. Apr 10 18:24:01 <_genuser_> right. well let's see how that goes. I'll start some reading on regiondecoder. Apr 10 18:24:41 iprime: yeah, but it has severe limitaitons, can't disconnect the socket on onDestroy is the latter is fired too late Apr 10 18:25:26 http://pastebin.com/gknZybNF http://pastebin.com/J239TyZv tricknology Apr 10 18:25:37 so when any other activity (running in parallel) opens the socket, the onDestroy from any previous actvitiy disconnects it and there are problems... :( Apr 10 18:25:39 Muchoz: no all do i believe Apr 10 18:25:40 ashemark, oh well, i would create my own implementation then, it's not really difficult Apr 10 18:25:49 ashemark, use a service Apr 10 18:26:06 iprime: could you elaborate? Apr 10 18:26:38 ashemark, manage your socketio connection/s in an android service, not in an activity Apr 10 18:27:05 iprime: okay Apr 10 18:27:33 what is in selection 2 zbra? Apr 10 18:27:54 ashemark, it will solve all your issues Apr 10 18:27:59 iprime: so should i bind the service to different activities that require socket? Apr 10 18:28:34 Anybody knows address of the site shown in this slide https://speakerdeck.com/pareshmayani/lazy-android-developers-be-productive?slide=17 Apr 10 18:28:52 ashemark, that would be fine I guess, I just don't know your arch Apr 10 18:28:58 um idk..i didnt chek tbh..but doesnt work also when i remove it Apr 10 18:30:21 iprime: i have 3 activities in total, two for login/signup, and the last activity manages 3 fragments, all of which use sockets Apr 10 18:30:31 *third Apr 10 18:31:08 i'm calling socket connect/disconnect in fragment onCreate and onDestroy, which is causing me problems.. Apr 10 18:31:19 ashemark, then just don't do that :) Apr 10 18:31:31 don't you want to receive messages when your UI isn't shown? Apr 10 18:31:42 iprime: yeah, i guess so :) Apr 10 18:31:50 a service then Apr 10 18:32:03 connect once, disconnect on request or when in trouble ;) Apr 10 18:32:30 is that the way of it? i mean, aren't the messages stored on the server and then pushed to the client when he logs in? Apr 10 18:33:11 sorry it's my first time building a chat app.. :) Apr 10 18:33:18 it's up to you to decide Apr 10 18:33:49 but why cache/store them on the server if you can successfully deliver them? Apr 10 18:34:13 so the same device could be used for multiple accounts.. Apr 10 18:34:19 *with Apr 10 18:34:44 so the messages of one user will be lost, and so on and so forth.. Apr 10 18:34:59 you would still need a service Apr 10 18:35:13 ok, for? Apr 10 18:35:37 service managed by the activites/fragments? Apr 10 18:35:43 for connecting to your server, receiving data and passing it to your UI Apr 10 18:36:07 yeah, but i can't allow it to be managed by activities/fragments :( Apr 10 18:36:22 what do you mean? Apr 10 18:36:49 or what i could do is to start the service when a user logs in, and close it when the app is closed/user signs out, right? Apr 10 18:38:16 ashemark, that sounds fine Apr 10 18:38:33 Does anyone know a good way to debug the intent resolution process? Apr 10 18:38:35 iprime: but there's only one problem.. Apr 10 18:38:49 I’m trying to figure out how a particular mail client is handling clicks on URLs Apr 10 18:38:58 and what intent it is using to open them Apr 10 18:38:59 I'm new to AndroidDev, but not programming, and inheirited a large Android project. What's the quickest way to get up to snuff on _modern_ Android? Apr 10 18:39:19 the socket disconnection code in onDestroy doesn't fire when the app is closed, but after some time... Apr 10 18:39:24 _genuser_: it's over-simplified, and possibly some +/- errors, but this is the majority of the relevant code involved: https://gist.github.com/Groxx/57cecd0a1d2b056f025c Apr 10 18:39:25 Happy to buy books/courses if they're the right ones Apr 10 18:39:47 ashemark, forget onDestroy, disconnect in the service Apr 10 18:40:02 ohh Apr 10 18:40:29 so the service will start as soon as I turn on my phone, right? Apr 10 18:40:44 oh this is so complicated.. Apr 10 18:41:22 _genuser_: if nothing else you'll definitely want to toss the outRect use. that's just meant as an example, definitely not useful as-is :) Apr 10 18:41:27 ashemark, the service could start whenver it's needed Apr 10 18:41:42 ok Apr 10 18:42:13 but how would i stop the service? on sign out can be managed, but if an app is closed abruptly? Apr 10 18:42:46 depends on your app's logic i guess Apr 10 18:42:55 ohhk Apr 10 18:43:12 in a general sense, how do i manage the app being closed abruptly? Apr 10 18:43:19 maybe just not stop it until you sign out, if it's in the background show a notification or something Apr 10 18:43:34 define 'closed abruptly' Apr 10 18:43:53 zambo, reverse engineer ;) Apr 10 18:44:07 you know, from swipe to close screen? Apr 10 18:44:16 ! Apr 10 18:44:22 DrSmiles, do you feel comfortable with java? Apr 10 18:44:30 Yeah, I found a cool app that shows a ton of intent data. Very nice and open source - https://github.com/intrications/intent-intercept Apr 10 18:44:38 Does anyone? :\ Apr 10 18:45:15 qmr, lol Apr 10 18:45:18 Annoying IllegalStateException with Butterknife and I can't find where it actually is :/ Apr 10 18:46:10 No one can help if you complain without code or even the error message. Apr 10 18:46:17 I posted it above. Apr 10 18:46:18 Caused by: java.lang.IllegalStateException: Required view with id '2131361904' for field 'mNavDrawer' was not found. If this view is optional add '@Optional' annotation. Apr 10 18:46:30 But I cant find that ID anywhere Apr 10 18:46:37 (In R files etc) Apr 10 18:46:57 The lines given by the LogCat lead to nowhere Apr 10 18:47:30 Update your BK Apr 10 18:47:34 iprime: if I close the app, not minimize.. is there any other way to run code save onDestroy()? Apr 10 18:47:41 It will give you the ID name in the latest version Apr 10 18:47:52 Or maybe I added that after the last release... Apr 10 18:47:57 Ahh - Ill have a look now - I've only recently added it. Apr 10 18:47:59 ashemark: only onpause Apr 10 18:48:07 ashemark, onPause might be better i guess, i'm still trying to understand what exctly you want Apr 10 18:48:50 ondestroy isn't guaranteed to be called Apr 10 18:48:58 iprime: here's my problem, i've put some code in onDestroy() that fires when I close the app and start again.. Apr 10 18:49:09 Updating now :-) Apr 10 18:49:48 ideally, i guess i should be able to close the socket connection in onDestroy, but it doesn't work Apr 10 18:50:04 JakeWharton: Yeah, Im on 6.1.0 and the error is exactly the same. Apr 10 18:50:27 OK. That'll be in v7 then! Apr 10 18:50:52 ashemark, why use ondestroy.. and why close the socket? :) Apr 10 18:50:56 Hey.. so if I compile with Java 7 and I switch on String.. will that break in ICS? Apr 10 18:51:23 iprime: if the user logs out/closes the app, i think that would be a reasonable thing to do.. Apr 10 18:51:30 ashemark: what is the socket for? Apr 10 18:51:31 again, sign out can be handled Apr 10 18:51:38 ah yeah.. KitKat is where you can switch on strings… Apr 10 18:51:40 lasserix: chat socket via nodejs socke.io Apr 10 18:51:45 *socket.io Apr 10 18:51:48 ashemark, why don't you let them receive msgs while the UI is "closed" Apr 10 18:51:51 you should probably use a service to maintain the socket Apr 10 18:51:53 tricknology: It's a compile-time thing, so it won't break anywhere. Apr 10 18:51:54 Hmm. The basic structure is I have an abstract BaseActivity which will handle my NavDrawer, and I inflate some views in the BaseActivity and some others in a ConcreteActivity. Are both necessary? Apr 10 18:52:17 lasserix: all the time? Apr 10 18:52:18 this says no: http://stackoverflow.com/questions/14367629/android-coding-with-switch-string Apr 10 18:52:23 ashemark: yes. Apr 10 18:52:24 TacticalJoke Apr 10 18:52:37 tricknology: It happens on your development computer only. Apr 10 18:52:41 if user pauses (minimizes/presses home) app, they should still get messages Apr 10 18:52:49 a service is amuch better palce for that to live Apr 10 18:52:52 The syntactic-sugar conversion, I mean. Apr 10 18:52:55 so compiler breaks it down to into? Apr 10 18:53:00 when they log out, you can stop the service Apr 10 18:53:07 lasserix: okay Apr 10 18:53:37 so if a user closes the app(via swiping at the recent apps screen), shouldn't it be logged out automaticall? Apr 10 18:53:44 lasserix: Apr 10 18:54:02 haha breaking all the things switchingk the compiler comliance level Apr 10 18:54:13 google-play-services Apr 10 18:54:42 tricknology: http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Using-sourceCompatibility-1.7 Apr 10 18:54:50 "Note that you can use minSdkVersion with a value earlier than 19, for all language features except try with resources. If you want to use try with resources, you will need to also use a minSdkVersion of 19." Apr 10 18:54:53 Eclipse :() Apr 10 18:54:57 sure that makes sense Apr 10 18:55:02 lasserix: if a user closes the app(via swiping at the recent apps screen), shouldn't he be logged out? Apr 10 18:55:04 lasserix, I used something simpler. Setting some Window flags when I need it and faking the translucency when there is a toolbar. Apr 10 18:55:12 wahtever is. else it is Apr 10 18:55:22 if/else Apr 10 18:55:30 lasserix, well simpler can be argued. But it's a bit more reliable imo. Apr 10 18:55:36 i think its what a switch breaks down to anyway Apr 10 18:55:38 iprime: ? Apr 10 18:55:43 Muchoz: is there codef somewhere? Apr 10 18:55:50 now that i see status bar is not always tht Apr 10 18:55:51 codef? Apr 10 18:56:06 iprime: if a user closes the app(via swiping at the recent apps screen), shouldn't he be logged out? Apr 10 18:56:47 i mean, android should allow doing stuff when an app is closed :/ Apr 10 18:56:50 lasserix, this is the simple code I'm using: http://hastebin.com/ogemurisaz.java Apr 10 18:56:55 e^-ipi = 0 Apr 10 18:57:10 e^-(i*pi) Apr 10 18:57:14 -1* Apr 10 18:57:19 ah yes Apr 10 18:57:21 It also solved an issue I was hoving with translucency in one of my activities. Apr 10 18:57:25 tricknology, a switch should be a hash table lookup, not if/else Apr 10 18:57:31 oh hang on Apr 10 18:57:35 you put -i Apr 10 18:57:54 e^-(i*pi) - 1 = 0 Apr 10 18:58:00 iprime how did you get your name? Apr 10 18:58:24 tricknology, just like you i like maths Apr 10 18:58:25 e^-(i*pi) + 1 = 0 Apr 10 18:58:35 that’s euler’s identity Apr 10 18:58:40 ashemark, you can allow it, sorta Apr 10 18:58:54 anyone know anything about this error? ----> https://gist.github.com/dreamcat4/fd714e12a5df92e863bd Apr 10 18:58:55 ah god im failing all over ill stop Apr 10 18:58:56 iprime: allow user to remain logged in? Apr 10 18:59:26 even after closing the app? Apr 10 18:59:46 ashemark, maybe you can hack it yeah Apr 10 18:59:47 haha e^(i * pi) - 1 = 0 (Euler's Identity) Apr 10 18:59:54 iprime: how so? Apr 10 18:59:56 e^(-i*pi) - 1 = 0 = e^(i*pi) + 1 , no? Apr 10 19:00:38 say i've logged into twitter app on android, if i close it via recent screens, it prompts me to sign in again.. i wonder how they did it.. Apr 10 19:01:05 tricknology: no Apr 10 19:03:12 e^(i * pi) = -1 Apr 10 19:03:29 e^(-i * pi) = -1 Apr 10 19:03:38 tricknology, i say this is nothing but U=0 ;) Apr 10 19:04:43 iprime: understood, the user shouldn't log out when the app is closed Apr 10 19:04:55 ashemark, i wouldn't log them out Apr 10 19:05:00 hmm Apr 10 19:05:25 a service would be most useful here Apr 10 19:05:30 aha Apr 10 19:05:55 iprime: thanks for all the help :) Apr 10 19:06:10 lasserix: thanks! Apr 10 19:06:12 ashemark: override on back confirm to log out with remember next time Apr 10 19:06:19 sure we couldn't chat once you wrap it up Apr 10 19:06:24 if they press home don't log them out Apr 10 19:07:11 lasserix: hmm, gotcha Apr 10 19:09:23 Does anyone know if there is a bug with seekto? Apr 10 19:10:00 I have a seekbar where max = duration of media. on stopTracking i grab progress, seekto(progress) on then in onSeekComplete i check progress and its always off Apr 10 19:10:19 ie i seek to 3:10 but in onSeekComplete the player's current position will be 3:27 Apr 10 19:10:48 are content provider inputstream uris stable? Apr 10 19:10:52 lasserix, that depends on your sample size Apr 10 19:10:58 of the audio Apr 10 19:11:18 there is no audio Apr 10 19:11:26 oh Apr 10 19:11:33 thought you're seeking audio Apr 10 19:11:41 streaming static video Apr 10 19:11:51 Hmm, it would seem ButterKnife cannot be used on Abstract classes :/ Although I would love to be shown wrong. Apr 10 19:11:57 guess it's a similar issue tho Apr 10 19:12:07 could you explain that a little more? Apr 10 19:12:09 I guess it makes sense though Apr 10 19:12:27 lasserix: probably that's the closest B-frame or something. though most things seek _earlier_ than what you requested, not later. Apr 10 19:12:28 Anthaas: it works fine on abstract classes Apr 10 19:12:58 but like 10 seconds leap? Apr 10 19:13:03 Anthaas: are you calling setContentView in both the base and the sub activity? Apr 10 19:13:08 lasserix, you can use ffmpeg to create more fragmes Apr 10 19:13:11 frames* Apr 10 19:13:17 that's what we did in one proejct Apr 10 19:13:18 i could if i had the time Apr 10 19:13:21 lasserix: yeah, 10 second jumps is pretty common Apr 10 19:13:23 groxx: Only the subactivity Apr 10 19:13:25 oh Apr 10 19:13:26 oh Apr 10 19:13:37 And allowing it to call super.onCreate Apr 10 19:13:38 okay i thought it was something i was doing Apr 10 19:13:39 wonderful Apr 10 19:13:43 lasserix: try seeking to exact seconds on youtube videos for instance Apr 10 19:14:15 lasserix: if you want _perfect_ seeking, you have to rewind to the previous b-frame, "play" until the requested time, and then continue. it's pretty CPU-expensive, so almost nothing does it. Apr 10 19:14:31 http://i.imgur.com/i8KuQVF.png :facepalm: Apr 10 19:14:32 the sample size is set by the encoding on the server? Apr 10 19:14:53 i cannot get any C99 completion, go to declaration or whatever with renderscript in Android Studio :(( Apr 10 19:14:55 adq: lol Apr 10 19:16:06 lasserix: I wouldn't rule developer-error out _entirely_, to be clear, but the only part of it that sounds odd to me is that it's seeking to after the requested time instead of before. Apr 10 19:16:10 seriously, i'm starting to regret eclipse, the whole profiler sux in AS (i'm still using DDMS via Android Device Monitor), cannot get renderscript to complete (at least it builds), etc.... Apr 10 19:16:31 * always something preventing you to just... code * Apr 10 19:18:02 groxx i remove callbacks to update the seekbar onStartTouch, onStopTouch i get the progress, onSeekComplete i start the callbacks again so Apr 10 19:18:16 JakeWharton did you try gradle-plugin 1.2.x - did you have any problems? i couldn't get a simple project to build; kept on getting unresolved classes / symbols in my gradle-subprojects thats were dependencies Apr 10 19:19:25 it works fine if i seek to 0:00 Apr 10 19:19:57 groxx: ahh i think you are correct: so if i seek to any values from 0-15 they all jump to 17 Apr 10 19:22:34 g00s_: no Apr 10 19:23:14 ok thanks Apr 10 19:24:28 lasserix, if it's just one static video you can adjusting its gop size Apr 10 19:24:48 umm there are lots of them Apr 10 19:24:53 i have no control over server end stuff Apr 10 19:25:07 oh Apr 10 19:25:13 ill just get this running and then maybe swap it for exoplayer Apr 10 19:25:21 and if that doesn't work then its up to them Apr 10 19:27:04 <_genuser_> groxx: sorry, just saw the code you posted. thanks. I'm now going to go look thru it. :) Apr 10 19:32:01 Is there a way in AS when typing out a flatMaps Func1 to easily input the returning type ? in Func1>. Currently I'm just letting it autocomplete with ? and going back and changing it by hand Apr 10 19:32:18 dbrosyth: Do I need to implement detection for the user going over 60 reddit requests per minute? Apr 10 19:32:53 (Not sure whether it applies to Android apps.) Apr 10 19:38:17 Love random disconnections. Apr 10 19:39:48 So my app mainly target high schools teachers and students. I havenht done any sort of advertising or shwoing off the app yet but i want to. Do you guys think i should wait until monday so students aren't seeing the app on a weekend and turned off? Apr 10 19:41:39 TacticalJoke: you can be rate limited from the api, so if you want to check for it, you should? Apr 10 19:42:01 you can also get rate limited on login, so you might want to check there regardless Apr 10 19:42:51 hey Apr 10 19:44:09 dbrosyth: Okay, thanks. I was thinking of just implementing it locally (e.g., not even bothering to make requests if I can detect that they're going over 10 per 10 seconds). Do you think that's a good idea? Apr 10 19:44:19 (As opposed to checking headers.) Apr 10 19:44:47 And if they do go over then I just show a "You're doing that too much" kinda message. Apr 10 19:45:02 Scrolling through code, I see a section with switch statements inside of switch statements with if statements inside those. At the top of this horrid section, a comment reads "#Sorry" Apr 10 19:45:06 Thanks, coworker. Apr 10 19:45:18 so I am having this issue not sure what mathematical equation or algorithm to incorporate... I tried one thing that got me close to it but one option messes it up... I have an array of users, an array of places, and a number of shifts.... Each user needs to occupy a shift (which there are the same time shifts for each place) so that a user does not necessarily have the same shift all the time and gets distributed fairly amo Apr 10 19:45:18 ngst all the places... how do I go about it? Apr 10 19:48:16 Lonesoldier728: That's the Nurse Scheduling Problem (http://en.wikipedia.org/wiki/Nurse_scheduling_problem) which is NP-Hard, and people have been trying to solve efficiently for decades now. You can get a phd in CS writing a good solution for it. Apr 10 19:48:39 Lonesoldier728: sounds kinda similar to an n-queens thing, though maybe simpler. the same techniques probably apply though. Apr 10 19:48:50 The field of Constraint Satisfaction is typically used to solve it Apr 10 19:49:05 Which yes groxx n-queens is a Constraint Satisfaction problem Apr 10 19:49:10 CSP Apr 10 19:49:22 http://en.wikipedia.org/wiki/Constraint_programming Apr 10 19:50:06 yeah, nurse scheduling seems more precise :) n-queens at least has a nearly infinite set of example solutions and discussions though Apr 10 19:50:06 Lonesoldier728: I tried to start solving that same problem in college thinking it would be simple, until I kept digging and soon realized this is some deep stuff Apr 10 19:50:41 Here's my question from when I discovered I was doomed, http://stackoverflow.com/questions/17140179/optimal-shift-scheduling-algorithm Apr 10 19:53:01 when i generate a apk and need to use the storekey, if my alias is incorrect will it error? Apr 10 19:54:01 yeah Apr 10 19:54:03 it wont work Apr 10 19:54:17 fuck i need to fiugre out what the alias was Apr 10 19:54:22 whats the deafult? Apr 10 19:54:38 well yiati Apr 10 19:54:39 there is none Apr 10 19:54:54 oh god what if i chose a random one???? Apr 10 19:54:56 fuckkk Apr 10 19:55:08 time to release pro version Apr 10 19:55:13 or turbo Apr 10 19:56:35 what I did was give each shift place points, ranking from hardest to easiest 1, 2, 3, 4 etc... and then broke it down by grouped hours for break vs work, and then took each user that worked the longest time ago in order and those that worked at the same time switched by placing them accordingly from least points to most with the places being in order of most to least Apr 10 19:56:43 <_genuser_> so my friend is calling me like crazy trying to get me to do something on css. Apr 10 19:58:13 Lonesoldier728: hardest to eaiest? probably very subjective Apr 10 19:58:56 well mine is for scheduling guard duty, where some stations are better vs others Apr 10 19:59:08 and i let the user rank them Apr 10 19:59:09 Lonesoldier728: If your problem is constrained enough it can be easily solved. It's just a matter of how dynamic you need your shifts to be Apr 10 19:59:17 or creator i should say Apr 10 19:59:34 yeah it has some good amount of constrains Apr 10 20:00:18 Lonesoldier728: Are you a lifeguard that realizes scheduling sucks, and needs to be automated? Apr 10 20:00:24 what is the best algorithm to look at or something I can look at to head in the right direction Apr 10 20:00:35 something like that Apr 10 20:00:57 Lonesoldier728: Just constraint satisfaction in general, there are libraries for it Apr 10 20:01:22 http://en.wikipedia.org/wiki/Constraint_programming#Constraint_programming_libraries_for_imperative_programming_languages Apr 10 20:02:03 jacop is the best supported java library for it Apr 10 20:02:05 http://jacop.osolpro.com/ Apr 10 20:02:17 good luck :D Apr 10 20:02:23 ayyy somehow figured out the alias Apr 10 20:02:37 now time to back that shit up and never lose it! Apr 10 20:03:26 I have a lot of reading to do huh Apr 10 20:03:43 yeah I would need to build my own method I think because then I will need to use it for iphone as well Apr 10 20:05:10 Hello..could someone take a look at my problem: http://stackoverflow.com/questions/29565967/spinner-doesnt-show-selected-item I am kinda desperate already :P Apr 10 20:05:44 anyone familiar with retrolambda? Apr 10 20:06:35 mrfu: "Rule #1: Don't ask to ask" - http://programmers.stackexchange.com/a/154678 Apr 10 20:06:51 <_genuser_> my friend is stalking me... Apr 10 20:07:00 lol mrfu Apr 10 20:07:41 I didn't know that was asking to ask Apr 10 20:08:16 basically, quicker to just ask your question, than ask if someone is availabe with knowledge to answer your question :D Apr 10 20:08:49 <_genuser_> but where is the fun in that? Apr 10 20:08:57 It's weird transitioning from IRC to real life lol. Can't really use "Oh, I know you from IRC" :/ Apr 10 20:08:59 <_genuser_> you gotta ask if someone can help you before you actually ask your question.... Apr 10 20:09:29 <_genuser_> Afzal: or walk in to a real room and say, "I can't get my R file to update. anyone know why?" without so much as even a hello... Apr 10 20:09:39 I'm considering asking a question. Should I? Apr 10 20:09:47 lolz Apr 10 20:09:48 mrfu: to answer your question: I've used and enjoyed it. not much knowledge beyond that though. Apr 10 20:10:04 <_genuser_> TacticalJoke: category of alleged question? Apr 10 20:10:10 Didn't think I'd say this but I'm starstruck by JakeWharton :/ Apr 10 20:10:13 and everyone is forgetting about my uestion :( Apr 10 20:10:18 It may or may not relate to Android programming. Apr 10 20:10:21 Or programming in general. Apr 10 20:10:24 I'm currently getting an "bad class magic" error because I'm trying to use compile with 1.8 like it said to on the wiki Apr 10 20:10:34 http://pastebin.com/rmReRuk5 - Does this build file look correct? Apr 10 20:10:55 <_genuser_> Afzal: haha, JakeWharton winning over yet another android developer!! Apr 10 20:11:32 <_genuser_> TacticalJoke: lol. alright I gotta go work on this picture zoom problem. :) Apr 10 20:11:39 Zbra: personally: no clue. I hate both ArrayAdapter and Spinner though, if that counts as input :| Apr 10 20:11:51 groxx: God, yeah. Apr 10 20:11:56 strangely enough I got it to work fine on my personal computer but it absolutely refuses to build on my work computer Apr 10 20:12:01 _genuser_ winning? That was back in ABS days :p Apr 10 20:12:02 I had to create a QuietSpinner with a setSelectionQuietly method recently. Apr 10 20:12:22 groxx: at least u tried..thanks :( Apr 10 20:12:37 This was it, in fact: http://pastebin.com/DP0JrS7D Apr 10 20:12:42 comin back with my question from yesterday. Anyone know how to deal with EditText's margins when you're shrinking an EditText? I need them to match textAppearanceSmall in terms of height, but I swear it's not respected on pre-Lollipop devices if I change the padding Apr 10 20:12:46 Annoying that I had to do that. Apr 10 20:13:18 <_genuser_> Afzal: :) sounds like you're on level 2 of JakeWharton fandom. :) Apr 10 20:14:13 lol, I guess. I wasn't a fan of just introducing myself to celebrities for the sake of saying hello though (for err...actual celebrities either) Apr 10 20:15:12 <_genuser_> Afzal: yeah I wonder if I run into a celebrity if I'll just ignore them and walk on. how awkward to fumble and say oh I'm your fan. and they've heard it before. you know they don't care much. they just smile. Apr 10 20:15:33 <_genuser_> Afzal: now you feel like the idiot who just kissing @ss for no reason etc. etc. Apr 10 20:15:38 _genuser_ right, that's exactly what I've done. Apr 10 20:15:43 <_genuser_> unless you can take a quick selfie and shake hands and walk off. Apr 10 20:15:53 ah, yes. I shall do that right after this talk Apr 10 20:15:55 Zbra: are you modifying the list at all when it's touched? or, what is your selected listener callback? Apr 10 20:16:08 "Jake, I gotta take a selfie with you" *click* Apr 10 20:16:11 <_genuser_> Afzal: you run into any real celebrities ever? Apr 10 20:16:32 <_genuser_> oh with Jake. You could always just stalk him at the droidcon to which he apparently is going. Apr 10 20:16:36 _genuser_ a few cricket players in the past. Concerts Apr 10 20:16:37 groxx: do you mean my ontouch method? its empty Apr 10 20:16:54 groxx: http://pastebin.com/gknZybNF Apr 10 20:17:01 _genuser_ I am at droidcon Apr 10 20:17:11 Why would I think about Jake out of nowhere, that's creepy Apr 10 20:17:48 <_genuser_> Afzal: uhoh, I don't wanna encourage you anymore incase this turns criminal, LOL Apr 10 20:17:57 LOL Apr 10 20:18:18 Zbra: ah. well. the problem is that you're doing an asynchronous load of data, and modifying the array on the wrong thread. it's empty when you start, and there's no guarantee it'll be in a sane state when it finishes. Apr 10 20:18:29 <_genuser_> down here in texas, you don't see many. I saw Dion Sanders at the mall one day. Apr 10 20:18:54 _genuser_ dude, go to Tim Duncan's car shop in San Antonio <_< Apr 10 20:19:04 oh..i see Apr 10 20:19:14 <_genuser_> but he was the man back in late 90s. and I wasn't really gonna fumble there standing interrupting his shopping spree. Apr 10 20:19:28 <_genuser_> Afzal: san antone is all the way over there 3-4 hours away... Apr 10 20:19:29 Zbra: try adding log statements in onCreate and in the onSuccess callback, and watch when they happen. Apr 10 20:19:35 oh Apr 10 20:22:30 Zbra: ah, though onSuccess is on the main thread, so that part is at least safe. it's still asynchronous though - at the end of onCreate (e.g. when you setSelectedItem(2)), the array is still empty. Apr 10 20:22:46 setSelectedItem -> setSelection(2), sorry Apr 10 20:24:56 Zbra: thanks..and interesting..the log in the onsuccess method doesnt even appear in the logcat Apr 10 20:28:54 groxx: thanks..and interesting..the log in the onsuccess method doesnt even appear in the logcat Apr 10 20:36:41 groxx: adapter.notify did the trick but do you know why radtiobuttons arent visible? Apr 10 20:43:36 Does anyone know if it is possible to get duration of a streaming video before onPrepared is called? Apr 10 20:44:21 has anyone used this? https://github.com/wseemann/FFmpegMediaPlayer Apr 10 20:46:33 JakeWharton: My bad, it is in 6.1.0 (named id's), didnt show the first time I loaded it though :/ Apr 10 20:46:35 lasserix: not that one specifically. but fwiw I'd bet that using FFmpegMediaPlayer means either removing all GPL code, or releasing your app as GPL. integrating it like that very likely crosses the "links against" use criteria. Apr 10 20:51:31 so... googling isn't very good at all, but are content uris generally considered stable for input/output streams? Apr 10 20:53:39 pfn_: can you rephrase that? Apr 10 20:53:49 yeah, I'm a bit confused too Apr 10 20:53:53 are content uris stable Apr 10 20:54:01 particularly for streams access Apr 10 20:54:16 meaning "can I save this and use it a month later"? Apr 10 20:55:36 your talking about when a contentprovider returns a ParcelFileDescriptor? Apr 10 20:55:48 s/your/you are/ Apr 10 20:55:55 s/you are/ur/ Apr 10 20:56:13 s/ur/please no/ Apr 10 20:56:42 s/please no/plz no/ Apr 10 20:56:47 "please no talking about when a content provider retplease nons a ParcelFileDescriptor" :| doesn't quite work Apr 10 20:57:07 lol Apr 10 20:58:17 I used that mechanism well enough back in the day (around 2.0) if that's what you're talking about Apr 10 21:00:00 how to add .so library? Apr 10 21:00:36 lasserix: are you using android studio or eclipse? Apr 10 21:00:37 herriojr: Apr 10 21:00:43 john67: what? Apr 10 21:01:05 herriojr: hi Apr 10 21:01:34 hi Apr 10 21:01:40 android studio Apr 10 21:01:44 lasserix: name it "libWhatever.so" and put it in `app/src/main/jniLibs/armeabi/libWhatever.so` and watch as it automagically works Apr 10 21:01:46 groxx ahh lpgl Apr 10 21:02:26 the "lib(.*)\.so" part is necessary. Apr 10 21:03:33 Without wanting to piss JakeWharton off, does anyone know why a view wouldnt be found with butterknife? :/ Apr 10 21:03:36 and magically it did work Apr 10 21:03:44 oh Apr 10 21:04:00 it added the lib prefix Apr 10 21:04:03 Anthaas: because it's not there Apr 10 21:04:33 herriojr: In what sense? Apr 10 21:04:52 Anthaas: can you provide the offending code and the offending layout file? Apr 10 21:05:53 Anthaas: it just calls findViewById Apr 10 21:06:41 There's nothing magic happening. Either you're using the wrong ID, the view isn't in the layout, or you're passing the wrong tree. Apr 10 21:08:17 Hmm, Im just trying to work out what Im doing wrong :/ Apr 10 21:08:40 Anthaas: Just post the code. :p Apr 10 21:08:48 Theres a lot of it haha Apr 10 21:09:21 Ill cut a load out, one sec :-) Apr 10 21:11:03 Anthaas: maybe put a breakpoint before ButterKnife.inject and findViewById yourself to see if it's there? Apr 10 21:11:42 ^ Apr 10 21:14:35 groxx so you can't use ffmpeg in commercial products unless its open sourced? Apr 10 21:14:48 Right incoming pastebins Apr 10 21:15:32 http://pastebin.com/mQSbZzm4 http://pastebin.com/j0SnSXyw http://pastebin.com/w2BMkC9x http://pastebin.com/fpGNK6dt Apr 10 21:15:43 lasserix, or you use an abstraction layer that is compatibly licensed Apr 10 21:15:50 lasserix: as I understand it (which is probably legally insufficient), whether or not you're bound by GPL depends on how you use the library. If you use the "public API", aka the command-line interface, you're not, because it's not "part of your app". If you actually link to the library and call "private" methods, you are. Apr 10 21:16:19 lasserix: http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem Apr 10 21:16:29 simple workaround: write an MIT licensed wrapper library Apr 10 21:16:35 publish it as open source Apr 10 21:16:52 Anthaas: which id can it not find? Apr 10 21:17:02 write your proprietary code using only the wrapper library Apr 10 21:17:02 lasserix: there's a few other things along similar lines on the faq as well Apr 10 21:17:10 Any inside BaseHolder Apr 10 21:17:16 something like that should suffice for legality Apr 10 21:17:25 They werent in BaseHolder previously, same problem. Apr 10 21:18:38 there is something similarish to what pfn_ is describing, but I haven't spent the time to really understand it: http://www.gnu.org/licenses/gpl-faq.html#LinkingOverControlledInterface Apr 10 21:18:44 and maybe other details too. Apr 10 21:19:18 oh, that doesn't exactly quite work, I forget, GPL has the derivative works shit Apr 10 21:19:23 can't be compatibly licensed, must be gpl Apr 10 21:19:43 does it work if you remove the static? Apr 10 21:19:53 Anthaas: Don't you have to call setContentView? Apr 10 21:20:04 in the abstract base activity? Apr 10 21:20:19 I had a similar problem with my viewholder I believe Apr 10 21:20:19 Anthaas: You are butterknife injecting on both the HomeActivity and it's parent BaseActivity, and BaseActivity has no contentView Apr 10 21:20:21 pfn_: which is part of why I aim to adhere to the "linked or not" thing. that at least appears to be a bright-line "safe" boundary Apr 10 21:20:27 other things, not so much Apr 10 21:20:31 Anthaas: So there is no tree to parse view ids from Apr 10 21:20:32 Anthraas: where's drawer_layout? Apr 10 21:20:40 in your xml? Apr 10 21:20:48 herriojr, http://developer.android.com/reference/android/content/ContentResolver.html#openInputStream(android.net.Uri) Apr 10 21:20:48 I mean that Apr 10 21:20:50 BaseActivity is abstract, yiati, its onCreate only gets called by the call to super.onCreate in HomeActivity Apr 10 21:20:51 is the URI used there stable Apr 10 21:21:21 Anthaas: What is the contentview set to by the time "ButterKnife.inject(mBaseHolder, this);" is called Apr 10 21:21:22 pfn_: under the hood, it's basically the same thing Apr 10 21:21:38 in terms of stability, it was stable back when I used it Apr 10 21:21:40 Anthaas: hint: nothing Apr 10 21:21:40 Ahh, I should call setContentView BEFORE super.onCreate? Apr 10 21:21:56 parts of the system/default apps make use of it Apr 10 21:21:57 I don' Apr 10 21:22:00 pfn_: I'd imagine that the answer there is "it depends, but probably often yes" because it tends to just point to a file on the filesystem, which don't usually get changed. but obv it could be deleted and you have no way to know without re-querying. Apr 10 21:22:09 I don't know if it still does, but the contacts app used to use it Apr 10 21:22:30 well, it doesn't necessarily point to a file on the filesystem Apr 10 21:22:33 e.g. dropbox, drive, box, etc. Apr 10 21:22:44 hence "it depends" and "probably often" :) Apr 10 21:22:59 technically no, unless the provider says it is. Apr 10 21:24:28 yiati: Thank you for your help, setting content view before calling super.onCreate worked. Apr 10 21:25:23 pfn_: yeah, back in the day, I wasn't supplying the files from the network, but from the device Apr 10 21:25:38 in terms of socket failure, in that scenario, I never had any Apr 10 21:26:10 Anthaas: It will work. IMHO seems a bit weird to have views associated with an Activity that doesn't have an implicit contentview associated with it Apr 10 21:27:10 Anthaas: Maybe set a container view in the BaseActivity, and add children to it in the subclasses Apr 10 21:27:21 yiati: Its for handling NavDrawer functionality which will work across multiple activities in a predictable manner, so I thought it makes sense to handle it all there? Apr 10 21:27:36 I am using Google's iosched as an example, and that is how they do it. They just dont use ButterKnife Apr 10 21:27:40 brb Apr 10 21:28:20 Anthaas: yeah, handling all that in one place works well. The setContentView might even make more sense in the BaseActivity is my point Apr 10 21:29:08 Anthaas: It's very Daggery but u2020 shows general pattern for viewcontainers that works nicely, https://github.com/JakeWharton/u2020 Apr 10 21:29:24 I hate when my code is so broken that it appears to violate the fundamental semantics of Java. Apr 10 21:29:36 Somehow inheritance has stopped working. Apr 10 21:29:37 Not that Daggery is bad, just that the viewcontainer pattern can be used with/without it Apr 10 21:30:22 Anthaas: add an abstract getContentView method to your abstract class Apr 10 21:30:40 you can then call setContentView in super by calling super.onCreate Apr 10 21:30:56 just grabbing getContentView Apr 10 21:31:21 Okay, Java isn't broken: the output of the test runner appears to be. Apr 10 21:31:37 (Using System.out.println with it doesn't seem to work reliably.) Apr 10 21:31:39 you can go step further, dump that into a container as yiati said, so you can always layout the nav drawer Apr 10 21:33:06 TacticalJoke: now to add some tests for when System.out.println works Apr 10 21:34:09 On the plus side, 'throw new Error(stringToPrint);' seems reliable here. :D Apr 10 21:34:19 can an application recored voices around the phone (can it just control the mic)? Apr 10 21:34:49 google locationhistory is for one device per email account or we can have multiple devices on the same map? Apr 10 21:38:12 does anyone know how CursorWindows work? from reading http://androidxref.com/5.1.0_r1/xref/frameworks/base/core/jni/android_database_SQLiteConnection.cpp#697, it looks like it simply iterates through the result set until it reaches the end or the window is full Apr 10 21:38:27 is it normal for andoid studio to be really slow? I have a core i3 prosessor and 2Gb of RAM Apr 10 21:38:43 lol 2G, you need at least 4G , more like 8G Apr 10 21:39:00 eze: I know some things can cause it to be slow, but I don't remember what they are and I believe they prompt you about it on first install in some manner Apr 10 21:39:05 (I also have open-jdk instead of oracle jdk) Apr 10 21:39:08 eze: or I'm thinking of pycharm Apr 10 21:39:13 but if the window is full, i assume that means we'll need to requery again later with a different start/end pos once we've reached the end of the window, right? and when that happens, how do we know that the db hasn't changed underneath us? Apr 10 21:39:14 Yeah, 2GB isn't really great for AS. Apr 10 21:39:47 its not even possible, it easily takes 1G, the gradle daemon will take another 500-600mb Apr 10 21:39:51 <_genuser_> g00s_: how cute, you think 8GB is enough for AS. :p Apr 10 21:40:03 the problem is when I try to run a project as app, it really almost freeze Apr 10 21:40:05 _genuser_ i'm using 4G - and imagine 8G would be fine Apr 10 21:40:06 _genuser_: On Windows, I get away with 4GB. :D Apr 10 21:40:06 18gb or bust Apr 10 21:40:23 eze: Are you able to get a new computer? Apr 10 21:40:26 <_genuser_> I'm using 8GB. every now and then the entire computer is unresponsive for 1+ min. Apr 10 21:40:31 Note that 2GB is kinda "old" now regardless. Apr 10 21:40:42 _genuser_: Which OS? Just wondering. Apr 10 21:40:43 <_genuser_> when I switch windows too much, paging starts and AS just goes nuts. Apr 10 21:40:45 had trouble with 4 gb with AS and browser with 20 stackoverflow tabs open, even though used SSD as a swap =) feels great with 8 gb Apr 10 21:41:01 <_genuser_> gradle compiles take 1min+ sometiems for a bare minimum ViewPager implementation Apr 10 21:41:05 <_genuser_> Win7-64-bit Apr 10 21:41:09 Same here. Apr 10 21:41:15 (Same OS.) Apr 10 21:41:20 TacticalJoke: maybe I should get a new one but this one works really well for normal activities Apr 10 21:41:32 eze: How old is it? Just curious. Apr 10 21:41:40 <_genuser_> I'm thinking of moving to 16GB at least. you know just buy a 8GB stick on sale. Apr 10 21:41:41 My laptop is around three years old, I think. Apr 10 21:41:42 (Ubuntu user here btw) Apr 10 21:41:54 <_genuser_> mobo has 4 slots, each taking 8GB stick Apr 10 21:42:12 bnicholson: congrats, you've discovered one of the dark corners of Android :) you're exactly correct. Apr 10 21:42:24 mmm, more than 4 years and a half Apr 10 21:42:28 i guess we're supposed to get another AS update today. shits been pretty broken Apr 10 21:42:34 bnicholson: you can find some examples of exceptions being thrown because the db changed. Apr 10 21:42:53 <_genuser_> Ihaven't updated in ages. If just launching it takes that much time, imaging how much time it will take it to update it. Apr 10 21:43:50 bnicholson: example: https://code.google.com/p/android/issues/detail?id=32472&q=cursor%20exchange&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Apr 10 21:44:27 using a different ide like Eclipse would help? or the backend SDK would have the same problems? Apr 10 21:44:48 eclipse on 2g won't be greay either Apr 10 21:44:51 *great Apr 10 21:45:00 I see Apr 10 21:45:08 bnicholson: personally, for a variety of reasons, I generally recommend exhausting the cursor when you get it. it minimizes problems like this. if that doesn't work for you, you can explicitly paginate (e.g. limit + offset), hold a transaction open to block other writes, or come up with something else. Apr 10 21:45:40 google locationhistory is for one device per email account or we can have multiple devices on the same map? Apr 10 21:45:41 well, at least I know now that my notebook is working fine and it is just a lack of hwd issue Apr 10 21:45:41 theblang, hello Apr 10 21:45:51 can an application recored voices around the phone (can it just control the mic)? Apr 10 21:46:03 groxx: thanks -- do you happen to know *how* the platform determines that a cursor has become invalidated? the reason i'm asking is i'm trying to write a somewhat equivalent SQL wrapper for iOS, and i'm using android's implementation for inspiration Apr 10 21:47:00 thanks all for the answers. Apr 10 21:47:13 bnicholson: I don't know exactly, no. the issue link has a possible hint, but I've never looked closely. Apr 10 21:47:39 great, thanks. Apr 10 21:48:39 personally I find it nuts that the cursor ever counts the number of rows returned. that's a bad fit for SQLite, since it requires traversing the entire result set, which isn't necessary to return the first results. Apr 10 21:50:28 can anyone hearme? Apr 10 21:50:34 off hand, the number if rows changing seems like a likely way to check, since there isn't really anything built in to support behavior like that. it's entirely possible I'm just not aware of alternatives though. Apr 10 21:51:33 bnicholson why wouldn't you just use core data :| Apr 10 21:51:46 inspiring ... android wrapper of sqlite ... to ios wat Apr 10 21:52:44 there is really nothing inspiring about android's java wrapper over sqlite Apr 10 21:53:13 actually, its a great exhibit of how hard it is to take a C library into java land Apr 10 21:57:14 g00s_: because one of my colleagues working on sync was convinced that core data isn't helpful for resolving conflicts Apr 10 21:58:16 i don't know how correct he is since i have essentially zero knowledge of core data, but that ship has pretty much sailed at this point :\ Apr 10 21:58:47 this is for firefox-ios, fwiw Apr 10 22:00:33 'resolving conflicts' how? Apr 10 22:08:32 herriojr, https://developer.android.com/guide/topics/providers/document-provider.html Apr 10 22:08:48 herriojr, according to kitkat SAF, it should be a persistent uri Apr 10 22:12:46 pfn_: ah, you were talking about stable ids Apr 10 22:12:53 I'm sorry, I misunderstood what you were asking Apr 10 22:13:58 or maybe I still am, I don't know Apr 10 22:14:48 I think in terms of that api, it explicitly requires it due to how logic on top of it works Apr 10 22:15:05 but if you're doing the raw openStream() on a raw ContentProvider, I don't think it's required Apr 10 22:15:46 yeah, I'm not using the content provider directly Apr 10 22:18:06 pfn_: are you writing a document provider or a consumer? Apr 10 22:18:54 herriojr, consumer Apr 10 22:19:49 and I'm assuming you wanted to know if they have stable id's for an adapter? or some other reason? Apr 10 22:20:35 herriojr, stable uri, e.g. permalink Apr 10 22:20:39 s/e.g./i.e. Apr 10 22:20:50 so you want to cache it within your own internal app Apr 10 22:21:06 or rather cache the file reference Apr 10 22:21:14 yes Apr 10 22:21:34 so, based on that doc, I'd say they are expected to be stable, however, they aren't immutable Apr 10 22:22:07 of course Apr 10 22:22:21 I wouldn't expect a file from drive/dropbox/box/whatever to be immutable Apr 10 22:22:40 Haha I said hello! Apr 10 22:22:52 It was good Apr 10 22:22:54 :/ Apr 10 22:23:31 ^^ _genuser_ Apr 10 22:24:06 I wish SAF had last-modified information :- Apr 10 22:24:17 / Apr 10 22:26:18 i don't hear much about SAF Apr 10 22:26:32 wonder if devs are using it much Apr 10 22:26:44 considering it's 4.4+ Apr 10 22:26:47 not a whole lot Apr 10 22:26:57 I've been using it, but only to pick files Apr 10 22:27:09 it works well, just misses features I'd like to have Apr 10 22:27:18 like knowing whether a file has been modified since I last opened it Apr 10 22:27:37 it's not in the file metadata? Apr 10 22:27:48 only name and size are in metadata Apr 10 22:28:27 unless the metadata includes DocumentContract.Document Apr 10 22:28:28 oh wow, that is pretty messed up Apr 10 22:28:33 google locationhistory is for one device per email account or we can have multiple devices on the same map? Apr 10 22:29:42 herriojr, nevermind, DocumentContract.Document is available Apr 10 22:29:51 herriojr, they just don't say so very clearly in the SAF guide Apr 10 22:29:54 ah kk Apr 10 22:30:35 http://ezscreens.appspot.com/view/a811/documentcontract.data Apr 10 22:32:08 well, even though this is 4.4+, my expectation is anyone who cares about it would have already put it in, so dropbox etc probably already has — in terms of consumers, that probably hasn't caught up yet as it wouldn't make sense except for niche cases at this point Apr 10 22:34:09 yeah, for the content provider applications, they mostly have implemented it already Apr 10 22:34:12 clients don't use it as much yet Apr 10 22:34:21 I use it in keepshare, but only on a very basic level Apr 10 22:34:37 I'm going to add full read/write support, and want to sync to drive automatically, that would be pretty great Apr 10 22:35:52 emacs 24.5 released :D Apr 10 22:36:29 hmm, interesting, if I use ACTION_OPEN_DOCUMENT instead of ACTION_GET_CONTENT I don't see sources like ES file explorer :-/ Apr 10 22:36:34 that kinda sucks Apr 10 22:45:01 can an application recored voices around the phone (can it just control the mic)? Apr 10 22:45:07 google locationhistory is for one device per email account or we can have multiple devices on the same map? Apr 10 22:46:31 can anyone suggest a good IAB guide, that isnt the official one? Apr 10 22:48:49 bnicholson: take a versioning snapshot before you page, then if you get a change, you'll know what changed by taking another shapshot after you finish Apr 10 22:49:23 Voyage: in terms of your first question, it may be possible with a service, but I haven't looked into it Apr 10 22:49:44 Voyage: I don't know anything about your second question Apr 10 22:50:07 Voyage: and if people don't answer your question, it means they don't know, please don't keep spamming it over and over Apr 10 22:52:53 hey guys! I'm using an MultiAutoCompleteTextView to suggest small sentences of 2 a 4 words! My problem is that after i pick one of the option on the dropdown and try to delete 1 character of the sentence it deletes everything. How can i avoid this behavior? Apr 10 22:54:37 herriojr, I thought no one was able to see my message. thanks. android devs Apr 10 22:56:34 abara, I didn't even know such a View exists -- if I was there with you, I would try to find out the cause in debug mode. downloading the sources of that View are necessary for that Apr 10 22:57:35 saapas: this is not a bug. it's a default behavior. Apr 10 22:58:20 Voyage: np Apr 10 22:59:00 abara, I didn't think so. have you seen applications of MultiAutoCompleteTextView that do not function this way? Apr 10 23:01:10 abara: where are you trying to delete 1 char? Apr 10 23:01:24 abara: can you provide the code that you're talking about? Apr 10 23:01:48 code == good, code doesn't lie Apr 10 23:03:03 abara, if you tap to position the carrot on the word first it should not remove the whole word Apr 10 23:03:26 <_Auron_> or space then backspace twice Apr 10 23:04:47 Gryd3`Shop: but it not exclude the scenario of deleting the last characters Apr 10 23:04:51 abara: if you look at the contents of the edittext, it probably has a single span over each autocomplete result. flatten the string after inserting (e.g. .setText(.getText().toString()) ) if you want to break that behavior. Apr 10 23:05:31 groxx: ok, i will try it Apr 10 23:05:42 though hm. not sure how that'll behave. it might try to autocomplete based on all the text D: Apr 10 23:06:03 only one way to find out :p Apr 10 23:06:21 anyway. it's possible one way or another, but you may have to start tweaking the spans / build it all yourself. Apr 10 23:16:32 wtf, why is my layout suddenly ignoring my alignLeft/alignRight Apr 10 23:18:42 hmm, some appcompat interaction weirdness Apr 10 23:26:28 Sorry about the rushing off earlier when you guys were helping - Im back now, thank you all a lot. Apr 10 23:31:09 if I use my android device instead of the emulator will AS work faster or it will be the same? (I have low hardware resources) Apr 10 23:34:03 why does android MotionEvent.getX() and getY() return floats? Seems like it should return integers for the touch coordinates... Does it make any difference to just trim them off? Apr 10 23:34:18 Meaning trim them down to ints. Apr 10 23:35:34 the coordinates arent like OpenGL coords, where its from -1 to 1, or etc, are they? Apr 10 23:38:01 what's the best way to get a list of all available in app purchases, as well as whether theyve been bought or not? Apr 10 23:40:32 Mad3ngineer: no, http://stackoverflow.com/questions/3640004/motionevent-getx-and-gety Apr 10 23:40:58 <_genuser_> geez, guess youtube is on it's last leg Apr 10 23:41:01 <_genuser_> *its Apr 10 23:44:39 eze: The emulator takes a lot of RAM and CPU cycles. Apr 10 23:46:51 I will try to set my phone so I can try to build then Apr 10 23:47:19 eze: ever tried the genymotion? Apr 10 23:47:47 why _genuser_? Apr 10 23:47:50 abara: no, I started with android yesturday Apr 10 23:48:35 abara: ...and a hello world takes ages to run in the emulator Apr 10 23:48:53 eze: try it, much better then original emulator. but using a real device is always better :/ Apr 10 23:50:51 abara: what I need is to learn some basic for an interview that I have on Monday. And being able to play with an app code would help Apr 10 23:51:28 but maybe I am wasting time and I should just read and watch tutorials instead Apr 10 23:51:49 :/ Apr 10 23:52:02 physical device is always easier Apr 10 23:52:58 eze: i see. Apr 10 23:53:46 eze: better read the guide pages over the android sites, and read the examples Apr 10 23:54:21 abara: in developers.android.com? Apr 10 23:54:45 eze: yes. Apr 10 23:54:49 eze: Since you have 2GB RAM, an emulator is out of the question. Apr 10 23:55:38 but unfortunately there is a lot to read about since android is (sadly) based on a verbose language like java ;( Apr 10 23:56:25 are you not familiar with java either? Apr 10 23:56:39 that is a steep curve for one weekend Apr 10 23:56:43 well, I read java basics in two days :P Apr 10 23:56:43 this ^ Apr 10 23:57:55 I know many concepts behind OO design and programing and I am also an experienced C and Haskell programmer Apr 10 23:59:09 I read java from oracle's web and found nothing too fancy. I need some ideas about android platform Apr 10 23:59:50 General Question here (from reading things online) - is it common in the Software Industry to have developers go to jobs where they have no idea about the topic/technology? Apr 11 00:00:34 Anthaas: I actually mentioned I had no experience at all in Java and they called me for the interview Apr 11 00:00:57 I got an android job with only python experience Apr 11 00:01:01 eze: Sorry, this wasn't in any way a dig at you - its something I've been reading online, and seeing this just reiterated it to me. Apr 11 00:01:47 Anthaas: don't worry, I understood your question in the way you asked it Apr 11 00:02:11 eze: Thanks for your understanding. Apr 11 00:02:13 Anthaas: not common on my country Apr 11 00:02:22 Anthaas: IMHO, I don't think that knowing a language or IDE tells anything Apr 11 00:02:40 Anthaas: here the companies think we get out of the college with 7+ of experience on anything Apr 11 00:03:04 abara: Hmm. Seems I hear a lot of different story. That seems unreasonable. It would be nicer if more places offered graduate jobs though! Apr 11 00:03:04 Anthaas: Knowing an OO language syntax and knowing OOP are two different things Apr 11 00:04:03 Anthaas: the main problem is that the companies that want ou services dont wanna expend a penny giving us time to get experience. Which is a really old/wrong way to think about. Apr 11 00:04:14 eze: Oh I completely agree, it just seems preferable to employ a developer who has at least some understanding of Android over one who doesn't. I guess that means nothing though, if you are a developer who is able to learn more, in depth, and quicker than the other developer who might know Android at a shallow level Apr 11 00:04:40 Anthaas: for some reason programmers can't being work as Trainees or something Apr 11 00:05:30 but programmers can change job in a relative easy way Apr 11 00:05:48 not at all Apr 11 00:05:56 so employers don't want to waste a lot of money either Apr 11 00:06:18 an 2 years of job as python programmer is not a 2 years of programming on .NET Apr 11 00:06:19 at least in my country we can Apr 11 00:06:24 When I was on industrial placement in University, the (small) company I was at put it in the contract that I wasn't allowed to freelance or self-publish any application whilst working there. Apr 11 00:06:44 Anthaas: which sucks a lots Apr 11 00:06:59 Yeah - I got taught a lot of bad habits there :/ Apr 11 00:07:27 i recently closed a project and maded 1 year of base programmer salary in 4 months Apr 11 00:08:19 Freelance is just fine :3 but too much irregular to live only praticing this Apr 11 00:08:24 ok AS 1.2 beta 3, important fix :) Apr 11 00:09:07 Tried 1.2beta, had to revert back, got weird Gradle build errors Apr 11 00:09:37 yeah its been weird here too, lots of people have problems with 1.2 beta 2 Apr 11 00:09:55 CedricBeust did you try gradle-plugin 1.2.x ? i couldn't get anything to build with that, even from CLI Apr 11 00:10:07 Ah no, maybe I should have updated it as well Apr 11 00:10:20 hm ... i dont know Apr 11 00:10:27 * g00s_ sticking to 1.1.3 Apr 11 00:10:45 if it didn't work from CLI, its busted. Apr 11 00:10:52 well, I will continue reading. Thanks for the answers to all Apr 11 00:18:23 can i choose for phone screen shots to be shone befoer tablet ones on the play store? Apr 11 00:30:45 hmm, how do I make a list of settings that looks like Preferences but without using Preferences? Apr 11 00:30:56 I've always hacked it up by hand, is there any better approach? Apr 11 00:31:48 hacked up by hand with or without Preference? Apr 11 00:32:13 without Apr 11 00:32:34 I just want to make it look like preferences, I don't want to use preferences storage or any of that framework Apr 11 00:32:44 pretty easy to just either create xml with your prefs or just Instantiate them yourself and add them to PreferenceScreen Apr 11 00:32:59 i store my preferences on a bluetooth device (literally) so ... Apr 11 00:34:07 you'll just want to override when the user clicks , and user changes the value Apr 11 00:34:10 and save it wherever Apr 11 00:34:18 use persist = false Apr 11 00:37:22 Hi...i have a json object: xxx: 000, xxdf: 2323, jdlfkj, 11212 and if I wanna get the names i use jsonArray = jsonObject.getJSONObject("names").names(); but how do I get the numbers/values? Apr 11 00:37:41 yeah, kinda ugly still, I don't want to use the surrounding pref fragment/activity framework Apr 11 00:38:38 you can do it with a listview Apr 11 00:38:59 its a pain, sort of Apr 11 00:40:04 is this for me lasserix? Apr 11 00:40:38 pfn did you see? https://android-arsenal.com/details/1/1594 Apr 11 00:41:11 lasserix, yeah, not quite what I want either, thanks though Apr 11 00:41:24 I just want the appearance of preferences, but nothing else Apr 11 00:50:49 pfn_: won't a listview do it ? Apr 11 00:51:04 a listview is just a container Apr 11 00:51:07 it does none of the styling Apr 11 00:51:14 pfn_ why not then just grab the main preference layout file , it has a stub for the specific widget Apr 11 00:51:24 yeah, that's just so ugly Apr 11 00:51:44 I was looking for elegant, not hacking it up, which I have been doing Apr 11 00:52:06 but you want it to look like a preference - not sure why grabbing the preference layout is hacky Apr 11 00:52:17 just remove the stub if you aren't putting something in there Apr 11 00:52:24 (checkbox, switch, etc) Apr 11 00:53:00 if it's not public in android.R.layout, it's hacky Apr 11 00:53:08 i dont think there are any attrs like preferenceTitleAppearance, preferenceSummaryAppearance, etc Apr 11 01:06:32 oh hey, Android Studio 1.2b3 Apr 11 01:07:06 bah, now I notice that it has already been mentioned :| Apr 11 01:07:39 They love to change things :) Apr 11 01:08:32 yeah, this is a bugfix. looks like it might fix some people in here's build errors (possibly) Apr 11 01:08:56 thats good news then. Apr 11 01:10:43 I just switched to AS, I had a nice stable work flow in Eclipse but I am between projects so it seemed like a good time. Apr 11 01:11:10 yeah. mostly I think it's an improvement. alas it's a memory + cpu hog :| Apr 11 01:11:20 somehow it makes Eclipse seem lightweight Apr 11 01:11:42 I will have to keep an eye on that Apr 11 01:11:48 android studio goes more smooth than eclipse Apr 11 01:12:01 ya I think so too Apr 11 01:12:03 Carbonflux: just watch your battery decline rapidly, it's a pretty good indicator :) Apr 11 01:12:05 at least in linux Apr 11 01:12:09 eclipse got stucked Apr 11 01:12:11 :) Apr 11 01:13:10 rly love android studio indeed when i debug to my phone Apr 11 01:13:11 I use a quad amd64 machine with 8gig of ram in linux to run it, it actually seems to be a good fit. Apr 11 01:14:09 I have not tried debugging yet Apr 11 01:14:26 in AS that is. Apr 11 01:14:49 Carbonflux: only problem with AMD is you can't run the HAXM intel emulator optimizations so the emulator will be too slow Apr 11 01:14:59 yup Apr 11 01:15:28 I hope it does not become an issue actually Apr 11 01:15:36 I use all amd machine right now. Apr 11 01:15:43 shmooz: Have you switched to AS yet? :) Apr 11 01:15:52 if you have a device Apr 11 01:16:01 I have been thinking about building an intel machine off and on Apr 11 01:16:12 TacticalJoke: I had switched the day it was relased on googl IO Apr 11 01:16:14 lazy Apr 11 01:17:24 I do have several devices, to be honest I have never used the emulator Apr 11 01:17:35 ok not switched, but installed and ran it along side with eclipse Apr 11 01:17:37 I am kind of scared of it given some of the comments I have heard. Apr 11 01:17:42 "Argentine judge orders arrest warrant for Justin Bieber" \o/ Apr 11 01:18:03 heh, on what grounds? Apr 11 01:18:04 I have a couple background tasks that I don't want to run if the user switches away from my app, what's the best way to do this? Apr 11 01:18:57 Carbonflux: probably on the grounds of being Bieber. Apr 11 01:19:04 :) Apr 11 01:19:18 this trial could get philosophical. "how can one claim to truly _be_ someone?" Apr 11 01:19:35 actually i guess his bodyguard attached some photographer a few years ago Apr 11 01:19:38 aggravated assault on the ears, obviously Apr 11 01:19:40 *attacked Apr 11 01:20:07 I was reading what that guy said that found the bug in youtube that lets you delete any video, he claimed he was tempted to delete all of Biebers videos. I think google paid him 5Kusd for finding it, Apr 11 01:20:11 lol JesusFreke Apr 11 01:20:19 heh Apr 11 01:20:42 ah so a repeat of the Jackie Kennedy case. Apr 11 01:20:47 and a million others Apr 11 01:20:58 he will have to pay a settlement. Apr 11 01:21:09 he could have milked youtube for 5 million Apr 11 01:21:17 heh ya Apr 11 01:21:26 he was working on a google grant tho I guess. Apr 11 01:21:50 he did say facebook has no limit on what they will pay if someone finds a bug like that Apr 11 01:21:59 I guess google has a 5K limit or something. Apr 11 01:24:20 it was a Really silly yet serious bug, googles fault totally, turns out you construct a url string for deleting a video and you need a user ID code, but it would work with ANY code, so that anyone with a valid user ID could delete anyones video if they construct the string by hand. Apr 11 01:26:04 in effect it was just look for "a" ID code, rather than matching the ID code to the owner of the video :) Apr 11 01:26:12 which one's the smarter choice for getting a formatted date/time string, java.text.DateFormat or android.text.format.DateFormat -- or is this a silly question? Apr 11 01:26:59 android one has some capabilities depending on user pref Apr 11 01:27:06 i think like 12/24h etc Apr 11 01:27:13 maybe it can also format time ranges too Apr 11 01:27:17 * g00s_ forgot Apr 11 01:27:30 right. I do want to harness the system preferences values. Apr 11 01:30:02 ah. yeah, if you can use the android DateFormat (e.g. you don't have fancy date display logic), that's probably better. I think SimpleDateFormat misses 24-hour settings on the device, for instance. Apr 11 01:30:22 it does? o_O goddang. Apr 11 01:30:31 though it seems to catch most other things. though I wonder if it's just pulling from the locale, and not anything else... Apr 11 01:30:35 hm Apr 11 01:31:12 right now I'm just thinking if I could throw one of these two away Apr 11 01:31:51 apple watch sold out in minutes. i wonder what the real #s are Apr 11 01:32:15 hmm. now that i look closer, yeah, I suspect SimpleDateFormat just pulls from the locale, and e.g. US is typically 12 hours, so it misses my 24 hour setting. there's no Context-accepting constructor, so it wouldn't be able to find my setting, so that makes sense. Apr 11 01:32:32 I'll have to change my date-formatting code now :) Apr 11 01:32:39 however, 1) I use the date&time format from the context, and android.text.format.DateFormat.getDateFormat() returns a java.text.DateFormat. Apr 11 01:33:02 DateFormat is a time formatter too Apr 11 01:33:09 dunno what the output from that method is though Apr 11 01:33:39 java.text.DateFormat() returns a String. Apr 11 01:33:50 .format(), that is. Apr 11 01:34:08 'getBestDateTimePattern' seems kinda disturbingly vague, but maybe that'd work :) Apr 11 01:35:11 I'm a little dubious before a method whose name contains 'Best' Apr 11 01:35:23 haha, same here Apr 11 01:35:34 well, maybe I'll try it out some day Apr 11 01:38:55 interestingly, it delegates _everything_ to ICU. which runs native code. which goes through a few layers before I (╯°□°)╯︵ ┻━┻ . maybe I'll read it some day. Apr 11 01:39:02 man, apple isn't fixing that security bug unless you're on 10.10 Apr 11 01:39:05 assholes Apr 11 01:39:11 which bug? Apr 11 01:39:27 http://appleinsider.com/articles/15/04/09/update-your-mac-apple-fixes-major-flaw-in-os-x-yosemite-but-wont-patch-lion-mountain-lion-or-mavericks Apr 11 01:39:50 Hey guys. I need to create a wizard-like activity. I found a few small libraries that lets me do that. Would anyone recommend any library in particular? Apr 11 01:40:14 g00s_: i think they are closing the door on older versions. the latest xcode release (for ios 8.3) requires yosemite Apr 11 01:40:24 i've procrastinated updating ; still on 10.7. i'll do a fresh install becuause i borked quite a bit over the years. but it will disrupt my work for a few days Apr 11 01:41:07 also 10.7 works fine for my 2009 MBP, kinda worried 10.10 will assume much beefier HW Apr 11 01:41:31 if it takes up any more memory i wouldn't able to run AS, with 4G Apr 11 01:41:34 * g00s_ scared Apr 11 01:42:33 i really like apple, but always dissapoint on security and their craptastic HFS+ Apr 11 01:42:56 i'd rather use NTFS than HFS+ Apr 11 01:44:42 g00s_: they're not patching *any* of the older vulns really. Apr 11 01:44:51 some of them date back to 10.0 in this week's updates. Apr 11 01:45:09 i don't think they want to admit how bad these are Apr 11 01:47:02 g00s_: wowser. that's quite the bug. Apr 11 01:47:09 I just got AS to detect my device, I have one question Apr 11 01:47:15 When it says "Verify that your application is "debuggable" in your manifest or build.gradle file." Apr 11 01:47:31 it is dont worry Apr 11 01:48:50 I added the android:debuggable="true" to the element in the androidmanifest.xml Apr 11 01:49:02 should I modify anything else? Apr 11 01:50:08 if an app is set as non-debuggable, does that mean end users won't be able to connect a debugger while running the app ? Apr 11 01:51:24 I imagine it means that you would build it without the debugging flags a debugger use (but I could ask the same question you are asking) Apr 11 01:52:28 that's another view to it. Apr 11 01:55:48 eze: You don't need to add 'debuggable'. Apr 11 01:59:03 TacticalJoke: so I should delete what I wrote on the manifesto.xml file? Apr 11 01:59:56 y Apr 11 02:00:08 Yeah. It's a bad idea, because you'd have to keep changing it with releases (and you might forget). Apr 11 02:00:16 Leave it to automation. Apr 11 02:00:41 ok Apr 11 02:01:16 another short question, should I set my phone to conect as PTP? Apr 11 02:01:32 (I saw that on a video tutorial) Apr 11 02:01:49 (changing to PTP instead of MTP) Apr 11 02:03:02 I am using Ubuntu so I think I have no support of MTP, but I am not sure as android's site didn't mention the subject Apr 11 02:06:11 eze: I'd just try to get it working with as few settings changes as possible. Apr 11 02:07:44 eze: mtp should work Apr 11 02:07:53 ok, a last question not related to configuration Apr 11 02:07:54 but I usually just use adb push/pull anyway Apr 11 02:08:24 after the first run I assume the app O am writing will install and run in my device Apr 11 02:08:45 will it be easy to delete after that? Apr 11 02:08:49 yes Apr 11 02:09:02 adb uninstall com.eze.HelloWorld Apr 11 02:09:22 or uninstall from app settings on the device Apr 11 02:10:02 cool, I will try and see if now I my laptop doesn't freeze while trying to run the app Apr 11 02:10:16 thanks guys JesusFreke TacticalJoke Apr 11 02:11:47 Yeah, it actually worked :D Apr 11 02:11:57 It should be much faster without the emulator. Apr 11 02:11:58 and my laptop could manage it :D Apr 11 02:12:08 You're outsourcing your processing now. Apr 11 02:12:12 yes, it took just two seconds Apr 11 02:13:17 this will let me play a little bit in order to learn faster Apr 11 02:13:41 I am really thankfull Apr 11 02:18:16 i'm building a streaming audio app, and recently discovered that specifically on the HTC One M8, and specifically AFTER an upgrade to lollipop, no audio is ever played through the streamer Apr 11 02:18:39 audio appears to play normally from other apps; my app appears to buffer correctly and gets the metadata of the stream, it just doesn't output anything Apr 11 02:19:05 if i turn off nuplayer in the developer settings, the app's audio works again, but obviously since that is now the default and not everyone is going to have developer settings available, not a fix Apr 11 02:19:49 i am definitely requesting audio focus now etc Apr 11 02:19:56 turn on nuplayer, find an opensource demo app that works, change code until the problem is found Apr 11 02:20:08 i tried setting a partial wakelock as suggested in a few posts, but with no success Apr 11 02:20:37 i just had a crazy thought though... does the mediaplayer default to 0 volume now? Apr 11 02:21:16 most of my audio code is bog standard, based on the open source NPR app Apr 11 02:28:20 Hi all, I could really use some help with something potentially simple on Android Wear.. Apr 11 02:28:57 I've got a music player, I'm using the notification builder and everything is working fine, (artwork, artist name & title showing, skip/prev and volume buttons working) Apr 11 02:29:26 I just want to make it possible to either have an additional action, or a tap on the wear notification to launch the main activity of the app on the handset Apr 11 02:30:06 Adding a WearableExtender action with an pendingIntent to launch the main activity did not seem to do anything at all Apr 11 02:30:36 And my 'contentIntent', is a pendingIntent to launch the mainActivity. This doesn't seem to do anything either. Apr 11 02:31:59 Any ideas? Apr 11 02:32:15 timusus, a lot of people in the chan seem to keep east coast US hours Apr 11 02:32:25 so you might have better luck on something not a friday night :) Apr 11 02:32:37 True. Worth a try though ;) Apr 11 02:32:46 sure Apr 11 02:32:53 that was a long way of saying "I don't know anything about wear", too. Apr 11 02:34:12 Meh. It's hard to know what I need to know. I've got 95% of the functionality I need without ever having looked at the APIs. Now I'm looking, it's quite overwhelming. Apr 11 02:34:54 Do I need to use the dataLayer APIs to achieve what I want? No idea. According to the docs, I should be able to add a custom action to the notification. Apr 11 02:35:05 how different is wear development from normal android dev? Apr 11 02:35:43 one thing seems consistent at least : poor documentation Apr 11 02:36:31 g00s_, should finally feel like spring tomorrow Apr 11 02:36:57 dragorn yeah, hopefully some time before the moquittos :) Apr 11 02:38:03 i guess the weird weither we're been having in the US has to do with some warm water mass off the west coast Apr 11 02:38:45 http://www.livescience.com/50445-warm-blob-causes-weird-weather.html Apr 11 02:39:16 ah looks like gradle-plugin 1.2.0-beta2 is out, maybe this one actually works Apr 11 02:40:07 we're still about 15 below normal Apr 11 02:40:20 we've still got some snow **** ENDING LOGGING AT Sat Apr 11 02:59:58 2015