**** BEGIN LOGGING AT Tue Mar 15 02:59:58 2016 Mar 15 03:00:19 build overly complicated and fragile platform, where people get a mini gun to shoot themselves in the foot with Mar 15 03:00:28 instead of a nerf gun Mar 15 03:01:32 ron_frown hey did you read about that texas copy spraying motorcyclists with mace as they passed Mar 15 03:01:39 *texas cop Mar 15 03:01:48 no, but it really doesnt surprise me Mar 15 03:01:56 I believe in law enforcement Mar 15 03:01:58 and that we need it Mar 15 03:02:10 everyone I've encountered... all douchelords Mar 15 03:02:18 i think the cops need to be restricted to nerf guns Mar 15 03:03:03 I dont know hwo they do personality test and shit Mar 15 03:03:14 and then you always get those cops taht are the exact kinda people that shouldnt have the power Mar 15 03:04:49 thats exactly the thing, who the heck wants to do that job - seems self selecting for the wrong kind. my neighbor is one, i talk to him because he has a dog. he wants total control over his dog. i think, you have a control problem. if you were a manager at some shitty corp at least you couldn't ruin people's lives :D Mar 15 03:05:12 yuuup Mar 15 03:05:21 i've had managers like that, and thought damn at least he's not a cop Mar 15 03:05:24 morning, guys ... i cant find out how to achieve this simple task, i would appreciate some guidance please Mar 15 03:05:28 http://postimg.org/image/v363n8uo3/ Mar 15 03:05:56 i cant make a new file, with an image i choose and displayed in an ImageView Mar 15 03:06:31 i've tried so many ways but i cant understand how to do it, since everything i gives me somekind of an error Mar 15 03:07:09 cops should just be paid heaps more than they are Mar 15 03:07:35 i got an ImageView, and after the user choose the Image from an Intent Gallry, i want the path of that picture, so i could put it in to a method to upload it online ... Mar 15 03:07:56 I'd have a lot more respect for them if they behaved in respectable manners Mar 15 03:08:06 enforce laws but not harass citizens Mar 15 03:08:16 I hear its diff in LA Mar 15 03:08:20 because they got real shit to do Mar 15 03:09:56 ron_frown last thing about this, being OT ... https://www.washingtonpost.com/news/the-watch/wp/2016/03/10/surprise-nsa-data-will-soon-routinely-be-used-for-domestic-policing-that-has-nothing-to-do-with-terrorism/ Mar 15 03:10:07 cops are paid a pretty good shitton Mar 15 03:10:20 if you are chief Mar 15 03:10:25 yeah the one that lives here has a few cars, nice house Mar 15 03:10:38 not even Mar 15 03:10:46 base salary here is 80k Mar 15 03:11:09 plus a 90% highest pay pension @ 20 years Mar 15 03:13:09 might be higher than 80k now, last time I saw the billboards, it was that Mar 15 03:13:28 pfn where is that Mar 15 03:13:28 so yeah, the pay is pretty damn good Mar 15 03:13:31 sfba Mar 15 03:13:31 I live in a rich area Mar 15 03:13:34 base is like 60k Mar 15 03:13:44 oakland, redwood city, san jose Mar 15 03:13:46 you work your way up and its govt Mar 15 03:13:48 they all have billboards like that Mar 15 03:13:48 well shit Mar 15 03:13:56 oakland you get hazard pay Mar 15 03:14:04 bah, oakland isn't even that bad Mar 15 03:14:24 how many homicides so far this year Mar 15 03:14:38 there is a town about 60mi south of here thats already at like 15 homicides Mar 15 03:14:38 I mean, yeah, fruitvale is downright scary, but that's just a small part of oakland Mar 15 04:32:14 google's udacity courses looks like sesame street Mar 15 04:32:35 vigilancer lol why Mar 15 04:33:33 take a look at "Performance" in "Advanced Android App Development". they desperate to entertain me Mar 15 04:33:50 and it called "advanced .. development" Mar 15 04:38:17 Anyone around to help with an architecture discussion. I basically have a messaging application and for my Inbox activity, I show a tabbed viewpager. One tab for group convos, and one tab with direct message convos. I store the Lists as statics in a Convo class. Heres a paste bin http://pastebin.com/VTMXKQW6 Mar 15 04:38:58 Now where I'm having trouble is I have one list that has both types of messages, and then two more lists which have one type of message, and the other has the other type of message. Not sure if something is glaringly wrong with that kind of setup Mar 15 04:39:23 Surely these messages have things in common Mar 15 04:39:32 also, why use statics? Mar 15 04:39:38 don't use statics Mar 15 04:41:48 CedricBeust: because holding state is cool Mar 15 04:41:54 CedricBeust: I want to store my Convos as statics as a cache of sorts. Mar 15 04:42:03 Don't do that Mar 15 04:42:16 So I don't have to load them through the DB again. okay =( Mar 15 04:42:29 <_genuser_> hey guys. so AS starting a new project, names it: proj.com..proj Mar 15 04:42:34 <_genuser_> is anyone else seeing this/ Mar 15 04:42:45 no Mar 15 04:42:58 (no idea) Mar 15 04:43:11 <_genuser_> gordon_: that's for my question? Mar 15 04:43:16 yes Mar 15 04:43:39 <_genuser_> ok, hmm, I thought I wasn't tripping. It's not really supposed to do that. :) Mar 15 04:43:41 CedricBeust: Also, yes, the messages in the allConvos static holds all of the object in dmConvos and groupConvos. But I'm getting weird concurrency things it seems like... so I want to redo that Convo class, but I'm still fairly novice, so I just want to get ideas from other folks here. Mar 15 04:44:14 vigilancer oh yeah, heh - all the videos lately are pretty cheesy Mar 15 04:44:21 First things first, no need for static. Second, what kind of issues are you seeing? What threads are there Mar 15 04:44:38 It's just supposed to be convienient to say for my groupMessagesTab to create an adapter by calling Convo.groupConvos and the same for Convo.dmConvo Mar 15 04:44:50 eghdk: that's not the way to organise cache. when you'll get rid of statics your arch problem probably will go away Mar 15 04:45:26 CedricBeust: Well, I haven't proven that it's a concurrency issue yet, but I'm getting weird things happening (aka my static cache not being totally representative of my actual messages) Mar 15 04:45:40 Typical problem caused by statics Mar 15 04:45:54 I feel like I've dug myself into a hole and I feel bad. But I really don't know what would be a better solution. Mar 15 04:46:25 how do I convert an Observable> to a stream of Observable Mar 15 04:46:53 I was thinking map Mar 15 04:47:08 And my app silly messaging app has gotten some traction, 5k installs this week, and I want to fix it once and for all CedricBeust . SO my first step is to get rid of statics, no problem. Is there a good way to store this "Cached" data? Maybe in my Application object? Mar 15 04:47:10 probably flatMap Mar 15 04:47:12 RustyShackleford: that's your 3rd day doing that? :D Mar 15 04:47:24 gordon_: a little at a time yeah Mar 15 04:47:38 don't laugh lol. I'm trying to learn, shit Mar 15 04:47:58 eghdk: hide your lists beside middleman. with methods like: "giveMeThatThigs", and than pull your data from db or cache or whatever Mar 15 04:48:30 eghdk: do you really have performance issues with pulling data from db every time you need it? Mar 15 04:49:50 vigilancer: My app creates a butt ton of convos because of the way it works, so yes, the first time the user opens up the app after using it for a while, can have like 500+ convos, so everytime my user opens up that tab, I don't want to do that query. I thought that makes sense? Mar 15 04:49:57 RustyShackleford: try flatMap(list -> Observable.from(list)) Mar 15 04:50:33 I figure why query multiple times if I can just do it once while the process is alive, and clear the cache on low memory warnings. Mar 15 04:50:39 Thought that made sense =( Mar 15 04:51:49 eghdk: did you measure performance penalty? Mar 15 04:52:10 vigilancer: yes, with the method profiler and systrace. Mar 15 04:52:31 upside is I've gotten pretty damn good at systrace. Mar 15 04:53:32 It's not terrible on newer phones, but on things like the moto g, it can be pretty painful, so when I added the cache, the thing was miles better so I kept with it. Mar 15 04:53:56 gordon_: don't laugh http://pastebin.com/SDxB0hvx Mar 15 04:54:15 I'm using AS code generation to help me out Mar 15 04:54:22 I'm mainly not sure if it makes sense to keep three lists of convos, also, not sure if it makes sense to load all convos a user has in his/her db if I can only show like 10 items on the screen max in a listview. Mar 15 04:54:45 RustyShackleford: Don't do things like Db.xxx. Pass a db object instead of using statics Mar 15 04:54:46 (Yes I'm using listview, I'll move to recyclerView later, but I am using the viewholder pattern" Mar 15 04:54:46 now SqlBrite.createQuery never calls onCompleted Mar 15 04:55:09 CedricBeust: er its just a constant Mar 15 04:55:38 It never calls completed ever Mar 15 04:55:39 Db.StopsTable.parseCursor() is a constant? Mar 15 04:55:59 eghdk: 1. hide your caches behind some Cache class, create it once and hold reference inside Application. Mar 15 04:56:03 oh you're right, its a static method. Works nice Mar 15 04:56:25 anyway, I found this pattern in some github comments. Its not working out for some reasong Mar 15 04:56:38 probably because I have no idea what I'm doing Mar 15 04:56:56 vigilancer: So treat the Cache class like a singleton? Mar 15 04:56:59 eghdk: 2. pull only portions of data. if they not in cache they will be loaded in List or whatever on first call Mar 15 04:57:05 the pattern = do the work inside flatMap Mar 15 04:57:20 eghdk: it will be only instance, but not singleton Mar 15 04:57:54 vigilancer: Okay, only one instance in my app class, essentially a singleton/static... but DON't make it a singleton/static? Mar 15 04:58:02 eghdk: 3. get rid of duplication, no need for 3 lists Mar 15 04:59:08 vigilancer: 2. "pull only portions of data" do you mean don't query the entire database... only a max of X items or something? Mar 15 04:59:54 RustyShackleford: why should I laugh Mar 15 05:00:06 pull as many as you want. but you said you only need 10 at a time. so if requseted convos not in cache - get from db, return caller and add to cache Mar 15 05:00:34 RustyShackleford, you got that answer yesterday already, or this morning, flatMap(list -> Observable.from(list)) y u ignore Mar 15 05:00:50 eghdk: if you no need to invalidate cache, that's will do Mar 15 05:01:09 pfn: have you seen scala center? Mar 15 05:01:12 no Mar 15 05:01:30 check it ! Mar 15 05:01:45 vigilancer: 3. "get rid of duplication" yeah, that was my first thought. It's pretty ugly. How do you recommend getting a type of convo though? Right now it was really easy to get all convos, or get all DM convos, or get all Group COnvos. Mar 15 05:02:05 lists of ids? Mar 15 05:02:12 Let me just point out again that it didn't contain duplicate convo objects, it was just as a convienience. Mar 15 05:02:19 pfn: how is that different from what I did? Mar 15 05:02:25 and convos like Map Mar 15 05:02:25 I have no idea what you did Mar 15 05:02:34 http://pastebin.com/SDxB0hvx Mar 15 05:02:51 lamdas confuse me because I don't understand the types being used Mar 15 05:03:06 vigilancer: What was the "lists of ids?" referring to? Mar 15 05:03:20 Convo object have some kind of id? Mar 15 05:04:09 convo objects have a unique id. It's their _id in the database. They also have a convoType either 1 for dm, or 2 for group. Mar 15 05:06:13 pfn: I swear I tried to follow your advice Mar 15 05:06:14 RustyShackleford: because you're returning List not Observable ? Mar 15 05:06:43 vigilancer: Why Map? I can get all the convo unique ids by calling thisConvo.getId(). Why do you recommend a Map? Mar 15 05:06:50 sorry, Observable>> not Observable Mar 15 05:07:07 Or do you mean Map? Mar 15 05:07:18 gordon_: in which method? Mar 15 05:07:22 line 10 Mar 15 05:08:18 also, why you're returning what you dont want ot Mar 15 05:12:25 eghdk: http://pastebin.com/mLk2u3UZ Mar 15 05:12:41 starting point. sorry, time to do some work Mar 15 05:13:29 gordon_: well there isn't a return value in line 10 Mar 15 05:13:35 vigilancer: No problem thanks man. CedricBeust why is this better than just having a static or singleton? Mar 15 05:13:57 I read that as a function that maps a list of trainstops to a stream of Observable Mar 15 05:15:22 vigilancer: And if you don't mind, what's the Id in the Map? Unique id of the Convo or the type of convo (group convo vs dm convo)? Mar 15 05:15:37 eghdk: unique id Mar 15 05:15:59 vigilancer: Pardon my lack of intelligence... but why? Mar 15 05:17:42 eghdk statics would make it harder to test Mar 15 05:17:56 and since CedricBeust is mr Test (ng) :D Mar 15 05:19:13 gotcha. thanks g00s last question I had with vigilancer take on my problem is why he included two Lists<> also. I thought I shouldn't complicate it by having more lists? Mar 15 05:24:36 eghdk: so you can sort out from .all only specific convos from .type1 or .type2 Mar 15 05:25:30 vigilancer: So you think it's worth it to keep those two different lists around as long as they share the same objects in the allConvos List? Mar 15 05:25:32 g00s: no, singletons make it harder to test. statics is just bad design in general Mar 15 05:26:14 eghdk: it's different lists of 'ids'. List Mar 15 05:26:46 OH. I'm holding ID's and not the actual objects... interesting way to go about that. Mar 15 05:27:56 vigilancer "singleton" is just the name given by GoF to a particular implementation of global state Mar 15 05:28:03 eghdk: that's just from top of my head, not that it's best practice. the point is to feel up cache in process when new data requested Mar 15 05:29:20 for example, any method that takes no arguments and returns state ;) Mar 15 05:29:30 any *static method Mar 15 05:29:47 google had a project called GSD (google singleton detector) Mar 15 05:30:01 where they detect singletons, mingletons, hingletons, and fingletons :D Mar 15 05:30:20 all different ways of global state :D Mar 15 05:30:26 Cool. I will give that a go. Once last thing is that I was using Dagger1 with a RealConvoModule and MockConvoModule. Real convo module would provide the Convo cache, but if there's no cache, it has to query the DB and build the cache. It's doing this on the Main thread, since I'm injecting this on my Fragment. Any way around this? Mar 15 05:30:28 RustyShackleford: works for me http://pastebin.com/SWc8K94Q Mar 15 05:31:50 g00s: didn't know that, thanks. anyway in this case it's good idea to hide lists behind actial cache implementation, not operate on them directly Mar 15 05:33:50 hm, Manning deal of the day has some interesting stuff on sale Mar 15 05:34:07 Streaming Data looks interesting ... Mar 15 05:37:34 Maybe I should simplify my questinon. Any way to get "async" injection with dagger1? Mar 15 05:38:07 hey thepoosh Mar 15 05:38:26 dagger was also really cool but I gave up on it Mar 15 05:38:35 was stuck for like a week Mar 15 05:38:46 said screw it, I'll do dependency injection myself lol Mar 15 05:40:19 RustyShackleford: https://anyworld.files.wordpress.com/2007/08/fail3.jpg my thoughts ;) Mar 15 05:40:42 but I understand, it can be hard Mar 15 05:40:50 especially when you just starte Mar 15 05:40:52 d Mar 15 05:41:01 for my use case its overkill anyway Mar 15 05:41:36 i got it to work in my app, it was great Mar 15 05:41:44 couldn't figure out how to wire up unit tests though Mar 15 05:42:24 no idea how your app is structured Mar 15 05:42:50 I hate to keep bugging you gordon_, but lambdas with rxjava confuse the shit out of me Mar 15 05:43:11 ;) Mar 15 05:43:21 i'm not sure what that example is trying to illustrate Mar 15 05:43:36 flatMap Mar 15 05:43:43 Observable.from(list) will create a stream of lists Mar 15 05:43:47 er no Mar 15 05:43:49 no Mar 15 05:43:54 of ints in this case Mar 15 05:44:03 so that's what you want Mar 15 05:44:16 Observable.just(list) will create observable of list Mar 15 05:44:51 lightbulb moment Mar 15 05:45:04 I call filter next. I dunno why I was trying to use map next Mar 15 05:46:06 dunno Mar 15 05:46:10 now after I filter the stream I want to make it into a List again Mar 15 05:46:17 RustyShackleford ... is this still the query from db ? Mar 15 05:46:19 maybe I should become a consultant haha Mar 15 05:46:34 gordon_ i hear professional trolls pay a lot these days :) Mar 15 05:46:53 If I inject a List but the provides just goes Convo.getConvos(), and getConvos queries the DB, with a lot of entries it's slow. Any way for dagger to have an @Inject but not wait for it to have to return right away? Mar 15 05:46:58 g00s: yup. don't judge me Mar 15 05:47:23 you could sign up for the chinese 50 cent brigade Mar 15 05:47:45 probably make more money than indie android dev :) Mar 15 05:48:22 awesome. finally got it Mar 15 05:48:36 gordon_: what do I owe you? Mar 15 05:48:38 g00s: you just reminded me how my boss hired chinese developers for 'qucik feature' and they weren't creating branches in git but pushing to master :D Mar 15 05:48:41 RustyShackleford but the Rx pipeline you are working on, are you trying to manipulate the data from the database ... or do you have a pipeline of stuff of which getting database is an operation? Mar 15 05:49:07 RustyShackleford: nothing, just wonder if you knew that I've send you example in scala not in java :P Mar 15 05:49:17 I did notice Mar 15 05:49:25 god, I wish when I searched google drive it would tell me what folder something is in Mar 15 05:49:29 wondered how the hell this was going to help me if I don't know scala Mar 15 05:49:37 but I wanted to be polite about it Mar 15 05:49:47 same thing Mar 15 05:49:56 only gordon and pfn can decrypt that Mar 15 05:50:00 I should try some scala Mar 15 05:50:10 I sorta like groovy for scripting things at work Mar 15 05:50:29 if you're familiar with java its really easy to use Mar 15 05:50:50 that's about the only good thing about groovy Mar 15 05:51:18 when I think of groovy.. gradle comes to my mind Mar 15 05:51:19 not my top choice, but I couldn't figure out how to install python Mar 15 05:51:22 cannot be good :P Mar 15 05:51:39 i think some people think - for some admin script, meh fuck it ... why do it in python, jvm has all the goodies, but java is too much ceremony so groovy Mar 15 05:51:46 business wanted to know all the occurences of search terms like "customer experience" in our source code Mar 15 05:52:17 jython Mar 15 05:52:19 jruby Mar 15 05:52:24 nashorn Mar 15 05:52:30 so many better alternatives to groovy Mar 15 05:52:34 no python3 support for jython Mar 15 05:52:39 bleh ruby Mar 15 05:52:42 as if anyone uses python3 Mar 15 05:52:53 everyone *should* use python3 Mar 15 05:53:03 Anyone familiar with MVP? My data model currently exists (along with the db layer, SQLiteOpenHelper and stuff) exist in a different module. My one teammate thinks this separation is good. It's mostly really anooying though. thoughts? Mar 15 05:53:03 yeah what are you talking about pfn Mar 15 05:53:14 get with the times Mar 15 05:53:39 eghdk: good! Mar 15 05:53:58 3.5.1, its not like it just released Mar 15 05:54:16 python3 has support for { } brackets Mar 15 05:54:22 (experimental ;) ) Mar 15 05:54:52 gordon_: Yeah? Its super annoying. We have all of our db queries happening on that layer and stuff, and it gets confusing when something is async vs sync. But I guess thats a different issue? Mar 15 05:54:52 there are some neat concepts in groovy Mar 15 05:55:09 closures are sorta cool. I don't see a huge difference between python and groovy Mar 15 05:55:22 eghdk: who said that you cant have multiple Dao classes ? Mar 15 05:55:37 gordon_: What do you mean? Mar 15 05:55:51 ugh Mar 15 05:55:57 it gets nicer if you know all the idioms. If you're lazy, you get to write shorthand Java Mar 15 05:56:14 eghdk: google - data acces object pattern Mar 15 05:56:48 dont remember if groovy's immutable by default or not Mar 15 05:56:52 gordon_: Yeah, I got that, but do you mean two daos as in one in the Model module and another in my app module? Mar 15 05:57:26 eghdk: I have DataModule which *provides* multiple Dao classes Mar 15 05:58:33 nothing on the jvm is immutable by default Mar 15 05:58:34 except frege Mar 15 05:59:00 gotcha. Mar 15 05:59:07 is there a way to sort an object by different fields without overriding Comparator Mar 15 05:59:38 pfn: I was thinking about immutable collections Mar 15 06:00:19 List list; lst = sortByField(list, type.id); Mar 15 06:00:42 RustyShackleford: in java? not really Mar 15 06:00:44 something along those lines. I could also pass that method type.name, and so on Mar 15 06:00:46 gordon_, groovy uses all javase standard classes, not its own runtime, except for closure stuff Mar 15 06:00:58 and some other stuff in groovy.* Mar 15 06:00:59 you can use lambdas - which will have shortcut for comparator, or guava Mar 15 06:01:18 pfn: understand, thanks Mar 15 06:02:50 explain to me how lamdas are good? Mar 15 06:03:04 they don't work on android, and the lack of types confuses me Mar 15 06:03:14 what's to be confused about Mar 15 06:03:19 look at the signature for your function Mar 15 06:03:47 lambdas are good because they allow you to express your intention without excess ceremony Mar 15 06:04:13 and there is no lack of types, the compiler verifies types for you Mar 15 06:04:31 really depends how familiar you are with the functions youre using Mar 15 06:04:39 RustyShackleford: it's funny how I thought that lambdas are easier to use than functions, even when I was a student and writing in c# Mar 15 06:04:42 your IDE tells you your function types Mar 15 06:04:45 the boilerplate makes it more noob friendly Mar 15 06:04:50 it doesn't Mar 15 06:05:34 welp, I'll add it to the list of things I need to learn Mar 15 06:05:47 just read it in english Mar 15 06:05:59 makes perfect sense it some contexts, confuses me big time in others Mar 15 06:06:27 subscribe( success -> {}, error -> {}) = subscribe WHEN success do {}, WHEN error do {} Mar 15 06:06:55 and ctrl + p , cmd + p is always there for you to tell what type you need to have Mar 15 06:07:04 same as ctrl + space Mar 15 06:08:19 awesome Mar 15 06:08:37 ctrl space doesn't work. IdeaVim is messing with it maybe Mar 15 06:08:46 ctrl-space is autocomplete Mar 15 06:08:50 I always ctrl+q to see the docs Mar 15 06:08:53 doesn't tell you signatures Mar 15 06:09:06 alt-p shows you signatures while you're in parameters Mar 15 06:09:14 at least that's my keybinding Mar 15 06:09:15 ah, it's alt-p on windows Mar 15 06:09:25 ctrl space does work Mar 15 06:09:29 can anyone think of a GApp, which uses navigation drawer, and any of the screens have items that when touched, open a new fragment on the stack rather than new activity? Mar 15 06:09:35 I use it all the time, just don't think abou it Mar 15 06:10:02 anyway, lambdas do work on android as of build-tools 24.0.0preview Mar 15 06:10:09 if you use jack to build Mar 15 06:10:15 or retrolambda before that Mar 15 06:10:20 android N? Mar 15 06:13:03 Really lost here, tried so many things, cant get to fill up this code right !? Mar 15 06:13:15 http://postimg.org/image/v363n8uo3/ Mar 15 06:13:51 it is a simple Upload to server method, to Cloudinary ... Mar 15 06:13:59 g00s: I think you said statics are hard to test, but doesn't dagger alleviate that pain? Mar 15 06:14:43 no, dagger can't inject statics Mar 15 06:14:57 if you need singletons, you can use dagger to create/manage/inject them for you Mar 15 06:15:01 JanusJanus: You have a File variable pointing to a context. Why would that work. Mar 15 06:15:32 pfn: Can't it just replace the statics though? I guess I've never tried, I just figured it would work. Mar 15 06:15:50 RustyShackleford: android N has java8 but lambdas are back supported to 2.3 Mar 15 06:16:02 i created a new file and i tried to do this way : http://postimg.org/image/5cpphs8jr/ Mar 15 06:16:10 pfn: The first time I used dagger I did try seeing if it could swap modules at runtime, and so I figured just because it's static it wouldn't be an issue. Mar 15 06:16:23 this another way i tried to complete the method, but still the code wont accept the name of the file Mar 15 06:16:53 JanusJanus: what's xxxxxxx? Mar 15 06:17:15 Is that supposed to be a string name or variable name or something. It's red... so it evidently doesn't fit there/go there. Mar 15 06:17:39 actually it did accept the name of the file " container " but when i run the code it gives me an error : Mar 15 06:17:51 Caused by: java.lang.RuntimeException: Missing required parameter - file Mar 15 06:22:53 i put xxxxx for now because i tried so many things, in the Docs instead of the xxxxxxx it should be for example imagename.png or videoname.mp4 .... and i am trying to get that but did not know how, i am giveing the user the option to pic an image from their phone external storage, and then it is viewed in an ImageView ... from their i dont know how to get the name of the Image they choose ? or the Path Mar 15 06:23:07 Seems like it didn't accept the name of the File. Seems like you should be putting a file variable in there and you're not. But that's only really a guess because I don't know what args that method takes Mar 15 06:23:51 well in the stake trace it says Caused by: java.lang.RuntimeException: Missing required parameter - file Mar 15 06:24:13 and instead of the xxxxx i did create a file and put the name of it, unless i am creating the file in a wrong way .... Mar 15 06:25:04 but in the Cloudinary Docs, they state that the arg of the method could accept several things, Mar 15 06:25:05 http://cloudinary.com/documentation/video_management#api_example_1 Mar 15 06:25:37 should I register a domain before I launch an app in the app store? Mar 15 06:25:57 RustyShackleford: yes Mar 15 06:26:00 I don't need a website for this app Mar 15 06:26:08 this is more for the package name Mar 15 06:26:19 I might release other apps and use the same domain Mar 15 06:26:20 register the name anyway, you might need it later when your app hits millions of users Mar 15 06:26:53 I'm so uncreative Mar 15 06:27:00 how am I going to pick a domain name Mar 15 06:28:57 hello Mar 15 06:29:26 simply, if someone could tell me how to get an imagename as " picture.JPEG" after the user choose it from image view intent ? Mar 15 06:29:27 presumably it wasn't you who registered rustyshackleford.com last year :) Mar 15 06:30:03 he may want to use a package name that does not associate with him personally Mar 15 06:30:19 the .net is available... Mar 15 06:30:30 yeah, I'm kidding :) Mar 15 06:30:45 hah so thats a website huh Mar 15 06:30:51 thats great Mar 15 06:30:59 first headline: "My Son is an Alien" Mar 15 06:31:06 My favorite part are the links that link to nowhere Mar 15 06:31:11 (in the menu) Mar 15 06:31:30 look at the article text... Mar 15 06:31:31 <_genuser_> hmm can I add an array with multiple values in "values" section? Mar 15 06:31:44 I can use Bootstrap about as well as that guy Mar 15 06:31:46 I can't judge Mar 15 06:32:02 can i get what email or some kind of id my user used when downloading my app in play store? Mar 15 06:32:30 rbk, no Mar 15 06:32:35 I dunno, I don't necessarily want to remain anonymous Mar 15 06:32:53 but I don't think I want to register firstlastname.com Mar 15 06:33:10 its definitely available lol. Uncommon last name Mar 15 06:33:25 rbk: pre-N, yes. Mar 15 06:33:48 Just iterate over the list of accounts on the system, and find the primary Google account's email Mar 15 06:34:26 N or later, nope. Unless you're Google's Apps, those still get access to that unique token. Mar 15 06:34:43 #freemarket? Mar 15 06:34:47 Well yes, but that is not on download from the play store, that is after they have run the app :P Mar 15 06:36:56 oh,ok Mar 15 06:37:59 So, I tested on MM now, Mar 15 06:38:18 And I'll just use a permanent notification to keep push notifications working. Mar 15 06:38:28 Decision made. Mar 15 06:49:00 Hello people, so I recently discovered the "don't keep activities" option under developer settings. Is it a good practice to develop apps keeping that option enabled all time? Mar 15 06:51:03 sophomoreJinx: no. Only sometimes. Sometimes you want to see how your app deals with being terminated, Mar 15 06:51:26 but sometimes you also want to see how it deals with staying active and resuming. Mar 15 06:51:44 Especially the different ways of resuming from screen lock, rotate, and recent list. Mar 15 06:53:20 justJanne: "staying active and resuming" could you tell a bit more about that? Mar 15 06:54:09 so it's those cases when the phone got locked when the app was active? Mar 15 06:54:38 staying active and resuming is normal behavior Mar 15 06:54:56 i.e. when "don't keep activities" is enabled Mar 15 06:55:03 shit no, when its disabled Mar 15 06:56:20 RustyShackleford: yeah, makes more sense now. Mar 15 06:57:12 That's why you sometimes want the option on, sometimes off. Mar 15 06:57:32 Sometimes you want to kill your app without going through onDestroy, too, to simulate some cases. Mar 15 07:00:45 Also remember doze: Mar 15 07:01:08 Screen is off (N) or device is unused for 30min (MM) and your services and everything is killed. Mar 15 07:01:19 Only alternative: send a copy of all your data to the NSA Mar 15 07:01:50 Real alternative: use GCM and pay for it Mar 15 07:03:02 justJanne: haha, well, NSA will keep it safe for a longer time. Mar 15 07:04:34 I haven't really started developing with api >= 23 in mind yet. Will have to start now. Mar 15 07:04:42 thanks for the help :) Mar 15 07:05:20 Or you can use notificarion-bound services. Mar 15 07:13:30 still no CircleImage in support libs, ha? Mar 15 07:15:51 if i cannot know what account user used to download from google play, how can i know if a user install both free and pro version of an app? Mar 15 07:32:37 rkb, why should anyone do that ;)? Mar 15 07:33:01 have some trust in user's intelligence, if one has bought pro probably they're not going to use both Mar 15 07:44:20 rkb: send a broadcast, make the pro version/free version each respond to it? Mar 15 07:51:43 sorry let me clarify my question, english is not my main language :) Mar 15 07:52:55 thats not what i mean Mar 15 07:54:23 first app launched is a free version Mar 15 07:55:11 when user download and used the free version, i send some kind of registration to my server Mar 15 07:55:47 say that user uninstalled my free app, and then installed my pro app Mar 15 07:57:06 i need to know if user already registered with the free app before installing the pro version Mar 15 07:58:55 what can i do to detemine that? Mar 15 07:59:08 noooooooooooooooooooooooooooo Mar 15 07:59:14 https://www.google.com/design/spec/components/bottom-navigation.html#bottom-navigation-usage Mar 15 08:28:16 bottom naviagtion.. sooper Mar 15 08:29:47 <_genuser_> you github pushers... do you use ssh keys or just user/password it? Mar 15 08:40:10 _genuser_: at work ssh keys of course, at home user/password :p Mar 15 08:40:24 but you should always go with ssh keys cause its really easy to setup Mar 15 08:40:35 and makes everything better :P Mar 15 08:43:29 is this going to be a thing? https://static.spiceworks.com/images/how_to_steps/0000/3886/too_many_toolbars.jpg Mar 15 08:47:26 Ashiren: It used to be a thing. Mar 15 08:48:04 Lomex: o/ Mar 15 08:48:19 Hello! Mar 15 08:54:14 well i was refering to http://www.androidpolice.com/2016/03/14/bottom-bars-officially-become-a-thing-with-latest-material-spec-update/ Mar 15 08:59:30 cool. updated android studio, and didnt relaly know what i was doing because im new to this stupid java/android stuff, and i guess i cant view the layout of my GUI now lol. Mar 15 08:59:31 i wonder what the priority is, is a bottom nav bar preferable to a nav drawer if there are few navigation destinations for instance Mar 15 09:14:21 Mornin. Mar 15 09:14:36 damn, just going to sleep Mar 15 09:14:43 except its quarter after 5 =/ Mar 15 09:55:21 Is it possible to achieve an Collapsing Layout/Formular without toolbar and below is an resultlist with an recyclerview. Mar 15 09:56:49 beside its name, CollapsingToolbarLayout is not limited to toolbars Mar 15 09:56:58 you can put anything in Mar 15 09:58:02 I have not achieved an result without an toolbar Mar 15 09:59:09 One Child should "pin" to top. This I think is only possible with toolbar Mar 15 10:00:16 any idea what i can use to validte http urls but they should allow public hosts and also internal ip-adresses Mar 15 10:00:31 dimitri, maybe this can help you. I wrote it some time ago: https://gist.github.com/danijoo/327f47b031a2a1965267 Mar 15 10:00:41 Patterns.WEB_URL doesnt do it since it expects valid tld Mar 15 10:01:05 this is a large collapsable image with toolbar overlaying on top and Tablayout overlaying on the bottom. when collapsing only the TabLayout will remain visible Mar 15 10:01:30 maybe you can use it as a starting point Mar 15 10:04:22 I see and what you need to pin an child (in your example tablayout)? Mar 15 10:05:37 iirc the one at the bottom will get pinned :/ Mar 15 10:05:49 but it was painful hours of try and error to create this one. Mar 15 10:05:53 its not really intuitive :/ Mar 15 10:07:50 gravity bottom or last child item Mar 15 10:08:38 no idea Mar 15 10:09:19 ^^ Mar 15 10:16:57 THX danijoo Mar 15 10:18:46 Hey guys, why do android emulators report a maximum accelerometer y-axis? Mar 15 10:26:33 dimitri, got it working? :) Mar 15 10:26:39 How to get drawable path from Environment class? Mar 15 10:26:46 I need setBitmap Mar 15 10:27:14 Ozymandy, what has Environment to do with your apps drawable? Mar 15 10:27:19 no Mar 15 10:27:45 I need setBtimap but in this method I need get path to image Mar 15 10:28:08 you should clearify what you are trying to do. Mar 15 10:28:18 at least I dont get it :/ Mar 15 10:28:36 danijoo: Wait, I load code to pastebin Mar 15 10:28:53 v Mar 15 10:28:55 http://pastebin.com/Mdu6sSRD Mar 15 10:30:20 that should work. whats the problem? Mar 15 10:30:22 oh wait. Mar 15 10:31:10 what is that in line 3? (Environment.) ? Mar 15 10:39:59 danijoo, I have an Solution. CoordinatorLayout > AppBarLayout > Formular with layout_scrollFlags="exitUntilCollapsed|scroll". It is to simple xD Mar 15 10:40:31 :) Mar 15 10:42:22 danijoo: I have no idea how to get drawable path Mar 15 10:42:28 And this image is in drawable Mar 15 10:46:41 in the drawable foler of your app Mar 15 10:46:42 ? Mar 15 10:47:25 then you can remove all this environment stuff and write imageView.setImageDrawable(context.getResources().getDrawable(R.drawable.yourImageName)) Mar 15 11:07:47 Hi all, I'm looking for an example project with a good architecture, using rxjava, retrofit, dagger etc. I found this one: https://github.com/jparkie/GivesMeHopeAndroidClient does somebody else know another good project? Mar 15 11:08:26 Hey. Is Google Play services location API free? Mar 15 11:10:09 yes Mar 15 11:10:22 users pay for it - with their data ;) Mar 15 11:12:54 danijoo: cool thanks. Mar 15 11:20:35 Why remoteViews does not respect ImageView's scaleTypes? Mar 15 11:22:04 ask the android designers ;) Mar 15 11:22:30 Is there a workaround, is what I'm thinking at the moment. Mar 15 11:23:11 Hello! I have targetSdk 23. I don't have dangerous permissions in my app. But i have dependecies (google play services) which adds this permissions to my app. Should i handle this somehow? Mar 15 11:25:29 xgearx Google Play Services automatically adds permission requirements to your app? Mar 15 11:25:51 napster: and to your too Mar 15 11:26:12 xgearx permissions such as? Mar 15 11:26:26 Write external storage Mar 15 11:27:09 xgearx Which play services modules are you using? Mar 15 11:28:13 xgearx, Play Services will ask for permissions if it needs them Mar 15 11:28:16 you can look it in rootOfYourProject/mainModule/build/intermediates/exploded-aar/com.google.android.exoplayer/exoplayer/AndroidManifest.xml Mar 15 11:28:26 Oh, exoplayer Mar 15 11:28:36 xgearx I have never used the full play services package, so not sure if they adds permissions. Mar 15 11:28:42 napster, they do. Mar 15 11:28:54 lol Mar 15 11:28:57 may be it is a good idea to selectively add required modules only. Mar 15 11:29:15 napster: you can chek your apk with aapt dump badging MyApp.apk Mar 15 11:29:31 and you will see all permissions you have Mar 15 11:29:49 No, I'm using anlaytics and gcm, no new permissions are added. Mar 15 11:30:04 theres a new design section in the material guidelines.. interessting https://www.google.com/design/spec/components/bottom-navigation.html#bottom-navigation-usage Mar 15 11:30:26 danijoo: looks like ios bottom tabs Mar 15 11:30:29 old story Mar 15 11:30:33 Bottom Sheets for the win. Mar 15 11:30:41 danijoo, that's still such a UX fail. Mar 15 11:30:54 agree Mar 15 11:31:11 Well maybe next nexuses will go back to hardware buttons! Mar 15 11:31:16 For more confusion! Mar 15 11:31:21 ^) Mar 15 11:31:35 BRING BACK THE MENU BUTTON Mar 15 11:32:47 trackball too :) Mar 15 11:33:08 hardware keyboards. that'd be nice Mar 15 11:34:25 * Mavrik slaps Leeds. Mar 15 11:40:05 so it's not official ? Mar 15 11:40:17 they change that guide like 2 times per year Mar 15 11:41:06 it is Mar 15 11:42:39 *it's now official Mar 15 12:14:24 Hi all. I am trying to change the animation scale present in the developer options . Mar 15 12:15:04 The values which i am setting in the Settings.System is the correct value. still its not getting reflected in the settings Mar 15 12:16:53 anyway to check click on notification which opens external links like a tweet? For in app deep links I am just checking the starter intent. Mar 15 12:17:14 does it need any permission for that ? Mar 15 12:17:24 WantToCode, you can only catch the intent Mar 15 12:20:00 WantToCode, but the external link that opens a tweet is just an intent to - an ACTION_VIEW intent. Mar 15 12:21:13 How do I catch it if it is a dynamic url, i.e. it can be a tweet, fb link, reddit, anything Mar 15 12:22:39 shall I create a broadcast reciever listening to that url and turn it off after reading the fired intent? Mar 15 12:23:34 you can use an intent-filter to define an action correspoinding to that intent Mar 15 12:24:19 nope Mar 15 12:24:51 The notif is something like - "Check this trending post", which opens the intent with the post url. Mar 15 12:25:23 According to my developer options "show surface updates" option, my app redraws pretty much constantly. however I can not seem to find any code that's actually called (via breakpoints), if i pause the debugger I always end up at MessageQueue.nativePollOnce(...); Mar 15 12:25:34 any idea how I could figure out why my app keeps redrawing? Mar 15 12:25:47 yes so you define an intent-filter to catch Intent.ACTION_VIEW with the given url Mar 15 12:26:30 WantToCode, see http://developer.android.com/training/app-indexing/deep-linking.html Mar 15 12:26:37 All I am thinking is that it would just listen to all random urls then Mar 15 12:26:47 until I catch the said url and turn it off Mar 15 12:26:51 theres an example how to listen to intents with a specific url scheme Mar 15 12:27:31 I am using deep linking for all other purposes, just wanted to know how to track generic urls Mar 15 12:27:46 theres no difference Mar 15 12:28:25 if you would want to track twitter.com/whatever, you set an intentfilter for host=twitter.com pathPrefix=whatever Mar 15 12:28:38 yup Mar 15 12:28:55 twitter has ways to prevent this though Mar 15 12:29:12 will it make the app footprint bigger if I constantly listen for urls? Mar 15 12:29:18 yeah AppIndexing Mar 15 12:29:28 what do you mean with footprint? Mar 15 12:29:44 it will only get the intents if the user choses your app and then the activity/service will get started Mar 15 12:29:54 theres no overhead beside that Mar 15 12:30:14 because the receiver would be running Mar 15 12:30:15 the receiver? Mar 15 12:30:34 no Mar 15 12:30:54 thats not how intents work Mar 15 12:31:03 at least not if you define it in the manifest Mar 15 12:31:18 hmm ok Mar 15 12:31:24 Thanks. I'll try this. Mar 15 12:37:10 guys any idea how can i change the animation scale present in the developer settings ? Mar 15 12:37:24 activity with viewpager with one fragment VS activity with one fragment : is there any performance issues with first approach? Mar 15 12:38:54 ViewPager with Fragments? Mar 15 12:42:31 Yeah Mar 15 12:42:48 Viewpager with a single fragment vs just a single fragment Mar 15 12:44:47 almost no difference Mar 15 12:45:02 if you're not targeting ancient phones it should be ok Mar 15 12:45:14 I think there is no difference. Viewpager will only instantiate side pages too. Mar 15 12:45:55 Ohk, thanks Mar 15 12:56:25 but why messing with viewpager if you dont need to? Mar 15 13:14:39 does android not have high-precision timers? Mar 15 13:15:07 SystemClock.elapsedRealtimeNanos() or System.nanoTime() both only update their values like every 10+ milliseconds Mar 15 13:15:18 which isn't good for game dev with varying framerates Mar 15 13:17:35 nvm Mar 15 13:17:46 nanoTime() should be pretty high precision Mar 15 13:17:48 My clock class is bogus Mar 15 13:17:49 yeah Mar 15 13:18:05 I think its because its dividing by such a high number Mar 15 13:18:42 I will delta the nanoseconds then figure out the seconds since last tick Mar 15 13:28:42 justJanne , do you know source for that map ? Mar 15 13:34:53 Hello, what's the max memory an app may use ? Mar 15 13:38:04 wviana, depends on the phone Mar 15 13:38:29 if you target api level 16+ it will be between 32mb and maybe 256mb Mar 15 13:38:49 danijoo: But an app can allocate as much as needed ? Mine is closing with OOM when hitting 100mb Mar 15 13:39:07 it can allocate as much as the system gives it Mar 15 13:39:22 yeah so in this case it might be 96 mb Mar 15 13:39:50 what are you doing that u need so much memory Mar 15 13:40:01 danijoo: I have to get more than it, otherwise the app won't work. :( Mar 15 13:40:21 for what? Mar 15 13:40:53 danijoo: Heatmap, when updating it. Mar 15 13:41:48 you can use largeHeap=¨true¨ in manifest. but theres no guarantee that it will work on all phones Mar 15 13:41:59 + some phones will still only give you 32mb Mar 15 13:42:23 danijoo: Do you think it might be a Genymotion limitation ? Mar 15 13:42:34 wviana, no Mar 15 13:42:42 a lot of phones will give you much less than genymotion Mar 15 13:43:29 Hello people, Anyone here using Android Studio under "Linux OS"? (Ubuntu) ? Mar 15 13:44:02 wviana, is there no way to process that data in chunks instead of loading the full heatmap? Mar 15 13:44:35 Ja Mar 15 13:44:46 Lomex? Mar 15 13:44:56 Wrong channel, sorry Mar 15 13:45:12 vdevnull, ask your actual question. Mar 15 13:45:58 I know it's not the place to ask, but I have a fairly serious problem, and it is a slight emergency Mar 15 13:46:35 My HTC One M9 is fucked, can't make calls, can't receive texts (but can send), can't isntall apps, clock doesn't work, alarms don't work, but data works Mar 15 13:46:46 danijoo: For now no problem on real device :D Mar 15 13:47:21 wviana, devices are different. if it works on one highend device does not mean it will work on others Mar 15 13:47:24 When i open a project. i get "Failed to resolve: com.android.support:appcompat-v7:15" Mar 15 13:47:42 vdevnull, install the support library repository via android sdk manager Mar 15 13:47:44 danijoo: Moto G first gen, Mar 15 13:47:49 danijoo i did :/ Mar 15 13:48:22 Android Support Library rev 23.2.1 Mar 15 13:48:44 vdevnull, I said the repository Mar 15 13:49:13 wviana, still. Mar 15 13:49:33 danijoo, How that can be done. Mar 15 13:49:56 vdevnull, its called "Local Maven repository for Support Libraries" now Mar 15 13:50:06 at the very bottom under 'Extras' Mar 15 13:50:07 hey all Mar 15 13:50:10 danijoo: To my users I think it'll be ok to requere a minimum device power Mar 15 13:50:20 danijoo Installed. Mar 15 13:50:29 version 28 Mar 15 13:50:32 vdevnull, and also " GOogle Repository" Mar 15 13:50:46 Installed version 24 Mar 15 13:51:04 wviana, you cant set that option though - and will get lots of crashed therefor. and bad reviews because app wont work for them Mar 15 13:51:33 vdevnull, can you show your build.gradle file? Mar 15 13:51:43 danijoo: Ok, I just crashed on real device tool. It just could handler a little bit longer. Mar 15 13:52:25 sure moment Mar 15 13:52:48 wviana, told you so ;) Mar 15 13:53:01 danijoo, http://pastebin.com/dwsKWKVQ Mar 15 13:53:39 Seems i've to Mar 15 13:54:11 one for Project: MyApplication and one for Module: app Mar 15 13:54:36 vdevnull, thats the wrong one :p\ Mar 15 13:55:14 Sorry danijoo i'm newbie :P Mar 15 13:55:21 np Mar 15 13:56:04 pastebin.com/aCitZbr3 Mar 15 13:57:00 who told you to use version 15.+ ? Mar 15 13:57:01 O Mar 15 13:57:02 Oo Mar 15 13:57:17 Well, I just created new project and then next next next xD Mar 15 13:57:28 try 23.2.1 Mar 15 13:57:46 and change compileSdkVersion to 23 Mar 15 13:57:55 also targetSdkVersion 23 Mar 15 13:57:59 then it should work Mar 15 13:58:04 Can be changed for existing projct? Mar 15 13:58:13 yes just change the numbers in the file Mar 15 13:58:47 compile 'com.android.support:appcompat-v7:23.2.1.+' Mar 15 13:58:49 oh and platform tools to 23.1.0 Mar 15 13:58:50 like this coorect? Mar 15 13:58:53 without the + Mar 15 13:58:58 compile 'com.android.support:appcompat-v7:23.2.1' Mar 15 13:59:33 saved Mar 15 14:00:07 did you do all those changes ? Mar 15 14:00:37 yes compile / target / compile Mar 15 14:00:38 but now new error appear Mar 15 14:00:51 which? ^^ Mar 15 14:00:52 failed to find target with hash string 'android-23' Mar 15 14:01:00 yeah you need to install that Mar 15 14:01:08 sdk platform android 6 Mar 15 14:01:12 thats the newest one Mar 15 14:01:38 Okay i hope after that no errors Mar 15 14:01:47 it will take one month to download my speed net is crap :P Mar 15 14:02:03 Oh actually fast. 4 mins left. Mar 15 14:02:22 Anyways, I'll let you know if it worked or not. Mar 15 14:02:30 Thanks <3. Mar 15 14:04:46 Why is Android N still api 23? Does it mean - no new features programming-side? Mar 15 14:04:57 because its beta Mar 15 14:05:05 the real N will be 24 Mar 15 14:05:26 ah ok and how can i build against N ? (to test with N emulator?) Mar 15 14:05:44 I enabled "show surface updates" in my developer options and on my dashboard which has a custom view that overrides onDraw and a couple of other views, it keeps updating with what I assume is the maximum framerate. how do i even start to debug that? breakpoints don't seem to get triggered Mar 15 14:06:20 ktwo, i think its calles `MM` Mar 15 14:10:04 Syzygy, how often are you calling invalidate on your view? Mar 15 14:10:50 potentially a few times, but only onPostExecution of my syncs. Mar 15 14:11:38 not constantly Mar 15 14:16:44 Well I'm not sure then. Maybe first see why your break points are not triggered so that you can debug properly Mar 15 14:16:49 Is there any flag in the AndroidManifest that stops me from putting an app into the playstore? I want to use specific flags on my test-versions and be sure I don't accidentially deploy that app to the live store. Mar 15 14:17:01 I think i found a breakpoint that triggers Mar 15 14:18:18 Or does anyone have a good tutorial in general how to handle preview and release apks in a professional manner? Mar 15 14:19:24 dajinjoo Bundle error disappear Mar 15 14:19:26 but i've error in the Phone screen Mar 15 14:19:26 Rendering problems Mar 15 14:19:28 Couldn't resolve source: @style/widget.HOlo.Ligh.ActionMode Mar 15 14:19:31 Started new project disappear <3 Mar 15 14:19:32 thx Mar 15 14:19:33 No they came back -.- Mar 15 14:19:36 No dissappear Mar 15 14:24:00 Lomex, maybe build your test-builds with a different key? Mar 15 14:24:05 PANIC: HOME is defined but could not find Hello.ini file in $HOME/.android/avd Mar 15 14:24:06 (Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd) Mar 15 14:24:10 so it should complain about signature Mar 15 14:24:12 I need to set Enviroment variabel true? Mar 15 14:26:18 ktwo: Oh right, thanks! Mar 15 14:26:42 danijoo: Just realize that it's going OOM cause of GC. When it's almost 100mb I do a foced GC it goes to 20mb . :o Mar 15 14:27:33 Heh, oom, reminds me of wow ;) Mar 15 14:30:47 ktwo: hahaha, no OutOfMemory Mar 15 14:31:16 yea ^^ Mar 15 14:35:00 100mb heap? Sounds like a bit too much. Mar 15 14:36:02 truckcrash: turns out the redraws are caused by an ObjectAnimator with a view set to GONE. Mar 15 14:36:13 or surface updates i guess. Mar 15 14:37:30 barq: GIS app, I'm studding more about memory management in android right now. Mar 15 14:40:02 i'm using an activity with Theme.Holo.NoActionBar to throw certain system dialogs in my app. but it has a noticeable flicker when the activity loads. is there a way to minimize this? Mar 15 15:06:51 Syzygy, huh. So it was not your view being redrawn after all? Mar 15 15:07:28 or was it your view that was hidden? Mar 15 15:12:34 hello Mar 15 15:13:06 I have a javascript function in a js file. Can I use that function from an android application? Mar 15 15:19:14 no Mar 15 15:19:47 say i have 4 buttons, in a relative layout, there are in 2 rows, two buttons in each row, i’ve put a listener that if one button is clicked the property is set to view.gone, so what i want is that the button will move and take the place of the hidden button, which is what i want, but….. two buttons will move in the place of the hidden button, is there a way to stop this? Mar 15 15:20:06 Well if you use a webview - yes Mar 15 15:22:06 WebView loadUrl returns void Mar 15 15:22:30 let's say I have this javascript: "function(a, b) { return a+b; }" Mar 15 15:22:38 how do I get the return value\ Mar 15 15:22:42 ? Mar 15 15:23:51 you call a java method annotated with @JavascriptInterface Mar 15 15:23:58 return values do not work Mar 15 15:28:48 Hey guys where can I get the GCM Project number? Mar 15 15:42:21 by reading the docs Mar 15 15:43:22 http://www.androidpolice.com/2016/03/14/bottom-bars-officially-become-a-thing-with-latest-material-spec-update/ Mar 15 15:45:12 wow affinity tools coming to windows Mar 15 15:46:25 did you guys see the bottom bar is now in the material design spec :) Mar 15 15:47:22 that happened last week or something didn't it? Mar 15 15:49:52 pfn: Hey... I still can not successfully launch my ApplicationSubClass that extends Application .. could you please tell me how? Mar 15 15:50:03 read about it yesterday. some gapps have been getting them like photos, missingno Mar 15 15:50:08 cart_man, by reading the docs Mar 15 15:50:09 is it possible to do this, say i have 4 buttons, if i set them out like this, http://picpaste.com/btns-z94o4mIl.png, is it possible when i set button 2 to view.gone that button 3 will replace it, and button 4 will go in buttons 3 place? Mar 15 15:53:36 in other words i want the button to slide along so i have no gaps Mar 15 15:54:33 hey Mar 15 15:55:55 I need to save data in my app, the data is some usage stats Mar 15 15:56:10 should I use shared preferences or inteernal storage? Mar 15 15:56:56 btw, I can host my app on dropbox, right? Mar 15 15:58:13 or is it possible to have my buttons all in one row but if there is not enough room on screen them it will jump to next row, therefore if i set view.gone to one of the buttons the button to the right will move to the blank space? Mar 15 15:58:35 krippykripkrip yeah there is a layout for that ... Mar 15 15:59:16 forgot what its called though :( on android arsenal Mar 15 15:59:20 flow layout ? Mar 15 15:59:44 krippykripkrip https://github.com/blazsolar/FlowLayout Mar 15 15:59:54 ok awesome, lemme check Mar 15 16:00:28 i also did this with GridView Mar 15 16:00:34 err GridLayout Mar 15 16:01:39 ok great, thx, i basically trying to set 9 buttons, 2 in each row, based on the users role i want certain buttons to be displayed but obviously if say 2 buttons are not displayed the other buttons will slide into place so i have no gaps Mar 15 16:02:00 yeah you can use either for that Mar 15 16:02:10 awesome, thx Mar 15 16:02:34 GridLayout is a tough mistress though Mar 15 16:02:46 i think i spent a day hacking it to work Mar 15 16:04:38 man that would be funny, if they want to move to bottom button bar to avoid issues with nav drawer in multi window scenario Mar 15 16:09:17 so goos, if i set one of my buttons to view.gone the other buttons should move to replace that button on gridview? Mar 15 16:10:23 I am trying to use CleverTap's Push notification but it fails saying "Warning Mismatch Sender Id" Mar 15 16:10:31 krippykripkrip yeah Mar 15 16:10:38 k, sweet Mar 15 16:10:48 ok lemme do some digging, Mar 15 16:10:56 krippykripkrip just don't assign them explicit row/col Mar 15 16:11:13 k, looking for a good tutorial Mar 15 16:11:47 samsung had one, was OK minus talk about newer weight feature Mar 15 16:15:42 its kinda work, altho if i set the view.gone the space remains, is there a way to just remove the button cause i think that should work? Mar 15 16:17:05 space remains , hmm. you may have to play around with app:layout_gravity & weight Mar 15 16:20:59 got it, i just remove the button from the view :) Mar 15 16:21:11 ;) Mar 15 16:21:16 thx Mar 15 16:40:05 Is there something along the lines of onDestroy for views? Mar 15 16:42:40 hey, does any one know why RealPathUtil always gives me cannot resolve ? Mar 15 16:42:41 http://postimg.org/image/kskw2xhsl/ Mar 15 16:42:52 Syzygy well i just looked at the View javadoc and ctrl+f for 'window' but got 475 hits ... Mar 15 16:43:05 i think what you want is it being removed from the window Mar 15 16:43:10 (but i'm not sure) Mar 15 16:45:14 I'm trying onDetachedFromWindow() Mar 15 16:45:37 I guess it could be along the lines of onPause or whatever, but as long as it's getting called I don't mind. Mar 15 16:45:48 .... Mar 15 16:46:54 thanks Mar 15 16:47:29 this is nuts, g00s, is there a way to increase the width of the cells? Mar 15 16:47:40 JanusJanus: did you import it? Mar 15 16:48:42 JanusJanus: did you load the library that includes it? Mar 15 16:49:01 how you do that ? Mar 15 16:49:38 might depend on the library, I suggest you ask Mr. Google. Mar 15 16:50:07 am applying a tutorial and i imported everything as it is in the lessons, plus, most of the other errors it suggested importing the needed import Mar 15 16:50:11 but not this one ? Mar 15 16:50:59 well Uncle Google, been sending me right and left, mainly to Uncle stackoverflow lol Mar 15 16:52:45 all right, well for KitKat it is different ? http://stackoverflow.com/questions/20260416/retrieve-absolute-path-when-select-image-from-gallery-kitkat-android Mar 15 16:53:26 ill follow up on this post, but i wanted to ask i assumed it is a known issue you guys might be familiar with it ... Mar 15 17:01:25 Performance question: I have somewhat large sets of data that I'm currently manually inflating and putting inside a scrollview. The views are pretty complex, I'm displaying sections that can have subsections, and subsections can have additional subsections. I'm wondering if I should try to find a way to put these inside a RecyclerView to decrease the memory/performance overhead of storing that many views at once Mar 15 17:02:01 do it Mar 15 17:02:03 I'm essentially displaying articles though, so the view size is going to change Mar 15 17:02:15 And I'm guessing it would be hard to reuse views Mar 15 17:02:47 Hmm... unless I tore subsections out of their hierarchy and added them as separate items to the list... Mar 15 17:03:13 it will recycle fine Mar 15 17:03:32 Cool Mar 15 17:04:05 Getting rid of my view creation factory and replacing it with an adapter would be cleaner too Mar 15 17:04:07 hithere Mar 15 17:04:34 "java.util.FormatFlagsConversionMismatchException: %b does not support" Mar 15 17:04:42 found this "http://stackoverflow.com/questions/11750349/format-flags-conversion-mismatch-exception" Mar 15 17:05:13 but doubling my string-array item "100%%" Mar 15 17:05:53 using "%" ends with that ...FormatFlagsConvers... exception Mar 15 17:06:50 doubling "%%" ends up with "100%%" in ListPreference Mar 15 17:07:04 but in summary it is ok "100%" Mar 15 17:07:47 do you use "%" in your Preferences - how? Mar 15 17:08:09 maybe \%% Mar 15 17:08:21 or some fancy \u00xx for % Mar 15 17:12:28 g00s: you called? Mar 15 17:12:43 thepoosh hm, just saying hi Mar 15 17:12:52 oh, hi there Mar 15 17:12:54 yesterday ... i think l) Mar 15 17:13:31 Is there a free Augmented Reality SDK for Android? Mar 15 17:14:59 basically I'd have the 3D coordinates of something, I just need to write some cool card when it gets in the range of the camera preview Mar 15 17:17:15 OverCoder probably more of that after I/O Mar 15 17:17:59 hm, and? am I left with trying to do AR on my own? Mar 15 17:18:11 No SDKs no things that I can use to help me? Mar 15 17:18:19 you don't seem to be getting very far :) Mar 15 17:18:30 :o Mar 15 17:18:45 OverCoder, it's basic drawing Mar 15 17:19:00 if you already have coordinate Mar 15 17:19:42 hmmm Mar 15 17:21:10 Hi! I'm a newbie, using react-native to develop for android. I'm creating a custom viewgroup, and I'm wondering if there's a way, in onLayout, to tell which children are "top level", vs children that are descendants? Mar 15 17:21:11 there's opencv for android, never tried it Mar 15 17:23:03 hmm, gonna look at it Mar 15 17:24:05 Yeah pfn, I'm definitely throwing this in a recyclerView. It's taking up almost 50MB of memory for me to manually inflate everything at the same time, that's insane Mar 15 17:24:17 Ashiren, \%% no that was first thing I have tested, html "%" crashes because & must be escaped too, U+0025 - probably not http://stackoverflow.com/questions/16786739/how-to-use-unicode-in-android-resource Mar 15 17:24:26 I never thought a page of TextViews would be so memory intensive Mar 15 17:24:37 Guess that problem is here http://developer.android.com/reference/java/util/Formatter.html Mar 15 17:27:14 I think I want to find any children where `getParent() == this`, but I'm not sure how to tell if an instance of a ViewParent equals the view in which onLayout is running Mar 15 17:27:47 That may be the wrong way to solve the problem, but it at least illustrates what I'm trying to do Mar 15 17:29:47 I have created this class to deal with MultiDexing. It extends application but I do not know how to use it? Should I simply instantiate it to every Activitys OnCreate for it to work ? -> http://pastebin.com/02CQwN62 Mar 15 17:30:20 The examples I see are mostly singletons and I do not want another singleton in my app Mar 15 17:30:43 cart_man: why do you need to deal with multidexing yourself?! Mar 15 17:30:53 it's pretty much a system thing Mar 15 17:30:55 read the doc Mar 15 17:31:24 Anyone know how to resolve this issue? Mar 15 17:31:25 Gradle sync failed: failed to find Build Tools revision 24.0.0 rc1 Mar 15 17:31:34 cart_man: also, your Application class is a singleton Mar 15 17:31:47 John_IV_: install the correct buildtools Mar 15 17:33:46 The SDK Manager lists Android SDK Build-tools 24 rc1 as being installed Mar 15 17:34:46 John_IV_, is it in your gradle file in the correct module? Mar 15 17:38:49 Pressed F4 and set the Build Tools dropdown to 24.0.0 rc1, and that didn't seem to make it happy Mar 15 17:39:22 If that is what you mean Mar 15 17:41:50 Is there a way to get SharedPreferences without actually having to have a context? Mar 15 17:42:17 I am writing a library that doesn't have access to the context variable, at least that's not planned the way it is. Mar 15 17:42:22 I have a ListView and in each list item there is a TextEdit. In my BaseAdapter subclass's getView, I inflate the TextEdit and addOnTextChangeListener, which modifies values in an array. But it looks like this modifies all elements of the array instead of just the one that's edited. Any suggestions on how to fix this? Mar 15 17:42:25 eeh, s/variable// Mar 15 17:42:30 pfn: What doc? Mar 15 17:42:51 I wonder what happened to TacticalJoke Mar 15 17:42:56 pfn: PLease give me this dock that you are refering too Mar 15 17:43:02 haven't seen him for days Mar 15 17:43:02 referring` Mar 15 17:43:27 http://developer.android.com/tools/building/multidex.html Mar 15 17:43:45 thepoosh: Well I recently had a million errors right after updating soo then I had to do MultiDex Mar 15 17:44:02 anyone have a Moto G? Mar 15 17:44:02 what? Mar 15 17:44:06 not following Mar 15 17:44:15 shmoooz: me if you talk to me in 13 hours Mar 15 17:44:25 at home now, will be at work then Mar 15 17:44:55 oh ok, thepoosh can you test to see if my app runs on it ? specificaly the live streaming radio part Mar 15 17:45:15 sure, i have moto G first gen and second Mar 15 17:45:27 on my Moto G it says, 'Bad Gateway' and I can't trace it to anything Mar 15 17:46:07 I'm suspicious of it being my providers fault, maybe the way they setup the networking on it Mar 15 17:46:28 what about wifi Mar 15 17:46:34 same thing Mar 15 17:46:34 you need 3G? Mar 15 17:46:48 no, it normally works over both 3G and wifi Mar 15 17:47:01 thepoosh: That code that I have pasted is from the Docs.. Now I can do it the easy way by saying android:name="android.support.multidex.MultiDexApplication" inside the manifest file BUT I need another line to go there in order ot make CleverTap work ...So I have to try and resort to the other method of enabling MultiDex which would be the "extend Application" ... its just I can not instantiate it and I honestly do not know what Mar 15 17:47:29 Instead of passing a context variable, could I probably just instantiate one myself, then pass that in? Mar 15 17:47:34 For shared prefs, I mean? Mar 15 17:48:07 Tobbi: no, but you should consider a file instead of sharedprefes Mar 15 17:48:32 thepoosh: I am looking into abstracting SharedPreferences in a specific library... Mar 15 17:48:39 A file is just not handy. Mar 15 17:48:53 that is nonsense Mar 15 17:48:54 thepoosh: Can I create a new activity instead of a new Context? Mar 15 17:49:00 Why is it nonsense? Mar 15 17:49:09 because sharedprefs are a file Mar 15 17:49:24 every time you use commit or apply Mar 15 17:49:28 it writes to the file Mar 15 17:49:34 Oh, right. Mar 15 17:49:40 But still, it's an abstraction. Mar 15 17:49:53 Is there a difference between commit() and apply() anyway? Mar 15 17:50:29 yes, one waits for the value to be written to the filesystem and the other doesn't Mar 15 17:50:37 Is it considered acceptable in MVP to have the View automatically set a TextView to visible if text is set to it? Mar 15 17:51:18 That seems like it should technically be Presenter work, but I can't think of a clean way to do it in the presenter Mar 15 17:51:53 Tobbi: here, read this: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.1.1_r1/android/app/SharedPreferencesImpl.java Mar 15 17:53:24 truckcrash: may just end up uninstalling/reinstalling Android Studio and see if that fixes things Mar 15 17:53:51 I guess if I mention it in the method name it wouldn't violate anything Mar 15 17:53:55 John_IV_: that is never the answer Mar 15 17:54:28 :$ Mar 15 17:54:37 try creating a blank project and look at the build.gradle files Mar 15 17:54:48 ok Mar 15 18:00:55 pfn: Does this look better ? -> http://pastebin.com/0W17hYWD Mar 15 18:01:16 That is just to quickly show where everything goes in MAIN file ....is it right? Mar 15 18:01:20 thepoosh: build.gradle says I am using 2.0.0 beta 2 Mar 15 18:01:34 wtf is your main file Mar 15 18:01:39 wtf are you doing Mar 15 18:01:49 and no, you're doing it wrong, the doc tells you exactly what to do already Mar 15 18:01:54 Still have the error about finding 24 rc1 Mar 15 18:01:58 in a new project Mar 15 18:02:09 pfn: HOW? I have been reading it.. It most def leaves things out Mar 15 18:02:42 you overrode attaachbasecontext, that part is done, you just throw it in your Mar 15 18:02:45 done Mar 15 18:03:29 are pendingintents accessible outside of your app Mar 15 18:03:43 like is that basically how alarmmanager works, an external process triggering things in your app Mar 15 18:04:11 pfn: Ok but what about ...Where do I put that because I can only have one and i have to keep it Mar 15 18:04:28 cart_man, read clevertap about how to use it if you have your own application class Mar 15 18:05:02 Setting the Build Tools version in the module settings to 24 rc1 causes more errors, saying that "The project may be using a version of Gradle that does not contain the method" Mar 15 18:05:11 android() Mar 15 18:08:19 oh come on duhroach, async task is not awesome :/ Mar 15 18:16:48 How do I get IntentService thread so I can interrupt it? Mar 15 18:21:45 I've got an Rx question, is there a method that allows you to combine all objects being sent? Mar 15 18:21:58 hello is any googlers out there? Mar 15 18:22:18 I need a way to removed my production APK it's never been published, what I read is the only option is to start completely over with a new app listing Mar 15 18:22:46 basically, I want to publish a beta APK without publishing the production APK, which looks impossible, so I need to delete the production APK Mar 15 18:22:53 For example I have an Observable, is there a method that would let me combing all the strings into a single string separated by a comma? Mar 15 18:23:10 anyone pleeeassse, chat support through the console has been down for DAYS! Mar 15 18:23:14 cyboman: Googlers don’t hang out here, generlally Mar 15 18:23:36 ok well does anyone have any input Mar 15 18:23:38 cyboman, i think there is an option to unpublish it Mar 15 18:23:49 is my only recourse to restart with a new app? Mar 15 18:24:05 I tried to "deactivate it" but you cannot when there is only one production APK Mar 15 18:24:08 the console won't let you Mar 15 18:24:26 I find it so stupid that the "go live" or publish button applies to all production tracks Mar 15 18:24:30 how does that make ANY sense Mar 15 18:24:57 so there is no way to push a beta APK live while having a production APK in que with timed publishing Mar 15 18:25:00 that's where it got messed up Mar 15 18:25:54 does anyone know the phone support # for google developer console? Mar 15 18:26:12 I tried one number but it needed a support PIN associated with a google work account Mar 15 18:28:07 sigh... Mar 15 18:30:56 well, there is an "unpublish app" right after "PUBLISHED " Mar 15 18:31:27 i mean, on the right Mar 15 18:31:39 i mean, on the right of "PUBLISHED..." Mar 15 18:31:46 which is on the left side Mar 15 18:31:53 at the top Mar 15 18:36:40 there is no phone support cyboman Mar 15 18:36:46 there is no dev support at all. Mar 15 18:37:17 That is one thing that no Android dev can say is better about Android dev than iOS dev: Support Mar 15 18:38:21 pfn: Ok so I finally got what you are saying .. although I am getting a null pointer exception on "ActivityLifecycleCallback.register(this) ; " That is exactly what they said in the docs Mar 15 18:38:57 s73v3r: True... iOS is also easier in my opinion.... hardware etc Mar 15 18:39:36 cart_man, no idea what you're doing, activitylifecyclecallback isn't a multidex thing Mar 15 18:40:57 pfn: Ok soo in the docs they say that if you already have your own Application implementation you have to add " ActivityLifecycleCallback.register(this); " to it even before super.OnCreate(). But it crashes with a null pointer on " ActivityLifecycleCallback.register(this); " Mar 15 18:41:29 you can't do it before super.onCreate Mar 15 18:45:12 pfn: That was what I thought... check -> Note: If you’ve already got a custom Application class, call ActivityLifecycleCallback.register(this); before super.onCreate() in your custom Application class. Mar 15 18:45:18 https://support.clevertap.com/integration/android-sdk/ Mar 15 18:45:29 ask them Mar 15 18:45:35 ive them the stack trace Mar 15 18:49:25 pfn: Ok soo I am pretty sure they meant AFTER super.onCreate() ... because now it works Mar 15 18:51:48 * pfn shrugs Mar 15 18:52:05 : / but you are my hero Mar 15 18:52:28 hey there Mar 15 18:52:34 http://developer.android.com/reference/android/widget/CursorAdapter.html#CursorAdapter(android.content.Context, android.database.Cursor) Mar 15 18:52:41 I'm doing a copy of files in a service in its own thread. What could be a good way to notify a fragment of the progress of that copy? That takes into account configuration changes. Mar 15 18:52:45 it says This option is discouraged, as it results in Cursor queries being performed on the application's UI thread and thus can cause poor responsiveness or even Application Not Responding errors. As an alternative, use LoaderManager with a CursorLoader. Mar 15 18:52:59 I wonder why that says so ? Mar 15 18:53:13 people can and will still use other constructors Mar 15 18:53:21 if they want to do queries on the UI thread. Mar 15 18:53:37 like http://developer.android.com/reference/android/widget/CursorAdapter.html#CursorAdapter(android.content.Context, android.database.Cursor, boolean) Mar 15 18:53:44 they can, but it has to be explicit Mar 15 18:53:46 and http://developer.android.com/reference/android/widget/CursorAdapter.html#CursorAdapter(android.content.Context, android.database.Cursor, int) Mar 15 18:53:58 you have to pass a setting saying that's /what/ you want to do Mar 15 18:54:04 instead of being default behavior Mar 15 18:54:14 I see Mar 15 18:55:19 thanks for clarifying that pfn Mar 15 18:55:20 :) Mar 15 19:20:00 gradle 2.12 Mar 15 19:25:38 hello there! Has anyone worked with ‘smart’ Android TV? I am working on a Philips 5500 series and it doesn’t allow apk from unknown sources… Is there any way to develop for it without having to sign and release the apk? Mar 15 19:29:22 hey... can someone help me with my situation. ive inlcuded a jar file in my depenendcy and the jar lacks documentation.. i want to know how i can maneg to 'import' it on my mainactivity Mar 15 19:29:34 is there a browser for me to look up library datas in the .jar ? similar to in visual studio ? Mar 15 19:30:44 just type some class and alt+enter it Mar 15 19:31:05 it will auto-import Mar 15 19:31:15 and if youre lucky you can ctrl-click it then for source code Mar 15 19:31:18 what do you mean Mar 15 19:31:34 bubbely: jar tf jar-file Mar 15 19:31:41 https://docs.oracle.com/javase/tutorial/deployment/jar/view.html Mar 15 19:31:45 have fun Mar 15 19:32:16 you want to use some class from that jar inside your activity? Mar 15 19:33:01 Usually in Android Studio it is possible to browse included jar files just by opening them Mar 15 19:35:37 What does one call the class that handles OnTouch Events between Views and SubViews ? Mar 15 19:38:24 ViewGroups Mar 15 19:53:03 i have a game that is single and multiplayer. i want to open source the single player part of it. what license would be best :? Mar 15 19:59:09 N3sh108, https://en.wikipedia.org/wiki/WTFPL Mar 15 19:59:17 oh... Mar 15 19:59:25 that is not addressed to the correct person at all Mar 15 19:59:29 Ashiren, ^^ Mar 15 19:59:30 :P Mar 15 19:59:56 hmm Mar 15 20:00:32 it’s up to you Ashiren Mar 15 20:00:46 i know Mar 15 20:00:54 do you want people to be able to take your code and sell it? => Apache Mar 15 20:01:04 Not? => some form of GPL Mar 15 20:01:13 what about MIT Mar 15 20:01:15 do not give any fuck? => WTFPL Mar 15 20:01:58 GPL is too restrictive ~ Mar 15 20:02:09 Ashiren, a more helpful answer: https://tldrlegal.com/ it is up to you, but that may make it easier to decide Mar 15 20:02:26 ok thx Mar 15 20:03:00 besides if i use GPL i would be obligated to open the multiplayer part as well? Mar 15 20:03:38 Ashiren: https://tldrlegal.com/license/apache-license-2.0-(apache-2.0), https://tldrlegal.com/license/mit-license, https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3) Mar 15 20:10:05 Ashiren: depends on GPL version Mar 15 20:15:52 how many hours a day do you guys program? Mar 15 20:15:58 random question I know Mar 15 20:16:06 8h at work :v Mar 15 20:16:17 effectively it would be 5.5h Mar 15 20:16:20 lol Mar 15 20:16:37 you program outside of work? Mar 15 20:16:52 that too Mar 15 20:17:52 but in work days i try no to program outside work Mar 15 20:17:59 im mentally too exhausted then Mar 15 20:19:12 Yeh I know Mar 15 20:20:09 I find it hard to program outside of work not because of exhaustion, mainly because you don't only program, you also have to come up with something to program :p Mar 15 20:20:26 but on weekends could be 4h up to 8h per day Mar 15 20:25:00 always things to improve on or things the world doesn't have yet, learn and help improving (or starting from scratch) the latest state of the art genetic algorithm on github, infiltrating communities and finding out their information needs (that they perhaps didn't even know they have) etc...can be really fun Mar 15 20:27:29 My dentist is using software that some guy wrote but have stopped supporting so he is hurting a little bit, have to run win xp etc., everyone needs software these days. Mar 15 20:28:48 rosten he's probably not going to again turn to software 'some guy wrote' :D Mar 15 20:28:57 probably not lol Mar 15 20:30:35 when I make a requestPermission call, I seem to get 3 permission request dialogs. Is that expected? Mar 15 20:31:00 I was surprised when it seemed there were only one person responsible for the software, probably not the case originally although it sounded like it, he was still in contact with him, the guy helped him just to be nice but there were no money in it anymore. Mar 15 20:31:11 hagabaka, no, you did it wrong Mar 15 20:31:18 hagabaka, unless they're for different permissions Mar 15 20:32:41 rosten that guy should have charged subscription, or had different business model Mar 15 20:33:36 Yup, sounds like a bad business model, perhaps all the other dentists have moved on to more modern software though. Mar 15 20:33:53 amazon had something interesting, where they reimburse you based on the amount of time the user is in your app Mar 15 20:34:07 if they don't use your app, no money ... but it seems quite creative Mar 15 20:34:28 g00s: that sounds fair. Mar 15 20:34:58 electronic medical records ... seems complicated, too much for one person Mar 15 20:35:20 World is changing a lot, soon everyone will be promoting their own products through individuals like people on youtube or that have blogs. Mar 15 20:35:37 Yup probably is. Mar 15 20:35:45 everyone will be drowning in noise :) Mar 15 20:35:58 a few will pop out, winner take all, rinse repeat Mar 15 20:36:08 Yeah definitely, we need new models for that too. Mar 15 20:36:31 Information compete globally. Mar 15 20:36:38 I wonder if flappy bird guy would've made more money with amazon's business model Mar 15 20:36:43 hmm Mar 15 20:36:52 Well other things as well, if you make knives and sell you can sell them to people all over the world. Mar 15 20:37:04 rosten of course, one thing that would really help me, is when i search for my app's name it comes up in Play :P Mar 15 20:37:20 g00s: lol yeah, that would help. Mar 15 20:37:35 oh the mysteries of play store ranking :D Mar 15 20:37:56 We need something to take its place, new ways to rank and sort all sorts of products, not just apps. Mar 15 20:38:10 You're not competing in the local store anymore. Mar 15 20:38:30 I don't like ratings Mar 15 20:38:31 what happened, is there is an app like my app, but tailored to another market. that app is more popular (its market is bigger). so all the listing before me, are from that market - even though they have nothing to do with what my app does Mar 15 20:39:16 Ratings help against buying things in the dark when you don't know the maker. Mar 15 20:39:27 Yeh but ratings aren't always good because you can make a mediocre product and get good ratings and always come on top of the list. Mar 15 20:39:32 Just because you did it first Mar 15 20:39:34 Agreed. Mar 15 20:39:48 Turn on reviews, remove ratings Mar 15 20:40:04 Also people will either give it 1* or 5* Mar 15 20:40:13 awesome, 1 star ! Mar 15 20:40:35 I've actually seen people writing "I'll see if it's good, then I change my rating" and give 1* Mar 15 20:40:38 Maybe reviews/ratings could be based on how much people use it, or at least that could contribute to the rating. Mar 15 20:40:42 and they never change their rating Mar 15 20:40:44 motherfuckers Mar 15 20:41:14 i wonder if people are notified when the dev responds to the rating? Mar 15 20:41:22 maybe shame the people who do that Mar 15 20:41:25 If the user enables it, yeh. Mar 15 20:41:34 Local maxima is bad, if new products come out that have 0 ratings they will never be found. Mar 15 20:41:50 Put most reviewed instead Mar 15 20:42:02 An "It fucking sucks" is more helpful than 1* Mar 15 20:42:13 people don’t read the reviews, though Mar 15 20:42:22 They would if there weren't ratings Mar 15 20:42:26 s73v3r, people are notified Mar 15 20:42:29 They would if apps weren't so cheap.. Mar 15 20:43:20 a well writte review is more helpful than any given amount of ratings Mar 15 20:43:25 written* Mar 15 20:43:49 only if it gets read Mar 15 20:44:02 reviews do get read Mar 15 20:44:37 The app market will mature though, it's still so new, I bet a lot more things will go into the rating eventually. Mar 15 20:44:58 stars are dumb Mar 15 20:45:04 for whatever reason i usually don't find reviews useful on Play. but I do for things on Amazon, I wonder why. Maybe because people are actually writing the review on the phone and thats painful Mar 15 20:45:17 you are either satisfied with the product, or you're not Mar 15 20:45:29 I think the price has a lot to do with it. Mar 15 20:45:56 I have an idea for a rating system Mar 15 20:46:24 Instead of rating the whole app, let the devs add various areas where the user can either say "I'm satisfied" or "I'm not satisfied" Mar 15 20:46:27 you can write reviews for apps fromt he website Mar 15 20:46:30 casadogg one of the missing elements in a lot of ranking / sorting is some kind of reputation system Mar 15 20:46:44 and let users give more suggestions about different areas they want to say they're satisfied or they're not Mar 15 20:46:45 pfn: you can, but I’d wager the vast majority of reviews are written from the phone Mar 15 20:46:53 perhaps Mar 15 20:47:03 and yes, probably Mar 15 20:47:26 so you would go to the store and press the "I'm not satisfied with this game soundtrack" and "I'm satisfied with this game's visuals" Mar 15 20:47:32 and then you could elaborate if you want in a review Mar 15 20:47:33 I think higher prices and you get money back if you write a review could possibly work.. Mar 15 20:47:36 simple as that Mar 15 20:47:37 casadogg: you mean rating different parts of the app separately? Meh Mar 15 20:47:53 rosten: that would lead to a bunch of “It was ok” reviews Mar 15 20:47:57 s73v3r fair and helpful Mar 15 20:48:02 Hmm, yeah.. Mar 15 20:48:22 g00s reputation system would be awesome too Mar 15 20:48:24 speaking of apps and reviews, I should generate some promo codes Mar 15 20:48:26 I've never bothered Mar 15 20:48:32 anyone use keepass? :) Mar 15 20:48:42 well, one nice thing they did recently is allow us to pre-submit approval for using trademarks Mar 15 20:48:55 Reviews need to be easier, button-pressing instead of writing.. Mar 15 20:48:56 where? Mar 15 20:49:06 GUI rating 1-10 etc.. Mar 15 20:49:24 rosten yeh so why not. let devs give various categories where the user can say the app is good or it fucking sucks Mar 15 20:49:28 it would be helpful for everyone seriously Mar 15 20:49:42 you have to have some kind of written review available, because categories are not going to cover everything Mar 15 20:49:46 Yeah, well there should be a uniform rating system. Mar 15 20:50:11 That Google "experts" comes up with, using words that people understand. Mar 15 20:50:16 s73v3r yes reviews would also exist Mar 15 20:50:32 s73v3r the thing is, people usually want a quick indicator of the product's quality Mar 15 20:50:33 Categories is a lot better then "app was ok". Mar 15 20:51:04 Then you get an average of performance and all kinds of measures, plus what phone they have etc. Mar 15 20:51:14 mmhmm Mar 15 20:51:15 Maybe 10 ratings that are most key to judge an app. Mar 15 20:51:25 too much work Mar 15 20:51:27 people won't do it Mar 15 20:51:29 That people understand, not fuzzy things like "flow". Mar 15 20:51:31 yeah, no one is gonna do that Mar 15 20:51:32 Press 10 buttons? Mar 15 20:51:42 not gonna happen Mar 15 20:51:43 give them rewards for pressing buttons Mar 15 20:51:46 no Mar 15 20:51:57 I would, then I don't have to use my own brain to write anything. Mar 15 20:51:58 speaking of, need to sign up for opinion rewards Mar 15 20:51:59 then they just hit the same button the whole way down Mar 15 20:52:05 0,001 cents to their play balance Mar 15 20:52:08 I suppose.. :-/ Mar 15 20:52:12 what do you guys think of the new material bottom button stuff Mar 15 20:52:22 whatever let they hit the button all day Mar 15 20:52:24 what would those 10 ratings be? Mar 15 20:52:42 it doesn't need to be 10 ratings Mar 15 20:52:44 devs would categorize Mar 15 20:52:58 oh god, that’s even worse Mar 15 20:53:04 a game developer could create "visual" "sound" and "gameplay" categories Mar 15 20:53:06 how is it worse? Mar 15 20:53:09 simple Mar 15 20:53:16 because now you have no way of comparing two apps Mar 15 20:53:26 The reason I don't write reviews is because I have to think of words to write. Mar 15 20:53:37 rosten: that’s not that hard Mar 15 20:53:38 you do, you jus can't automate it, but whatever Mar 15 20:53:46 no, you really can't Mar 15 20:53:48 But I love doing tests where I have to rate things. Mar 15 20:53:49 it's better this way Mar 15 20:53:57 no, it really isn't Mar 15 20:54:03 yeh why not Mar 15 20:54:10 tell me why not Mar 15 20:54:16 you can’t compare two apps, because you don’t know if they have the same “categories” or whatever Mar 15 20:54:32 Apps in the same category should have the same ratings categories. Mar 15 20:54:47 but he said the devs decide the categories Mar 15 20:55:25 well idk then, it could be standardized categories Mar 15 20:55:28 Then you can have subcategories if you want, i.e. first a game category then a rpg category for people that want to review that category style game. Mar 15 20:55:32 i know it would work for games Mar 15 20:55:40 then what would those categories be? Mar 15 20:55:40 idk how it would be for productivity apps for example Mar 15 20:56:10 rating categories would differ depending on the app category Mar 15 20:56:11 casadogg: could be things like how easy is it to enter a new todo item etc. Mar 15 20:56:44 so now you’re going to make the app store categories that much smaller? Mar 15 20:56:56 rosten maybe Mar 15 20:57:02 how are they getting smaller? Mar 15 20:57:24 well, you can have 10 standard categories for each category (productiviy, game etc.) then more sub categories that are optional for people that want to review deeper Mar 15 20:57:25 right now todo apps are under “Productivity”. But there’s more to Productivity apps than todo lists Mar 15 20:57:39 and you honestly think this is easier than writing a review? Mar 15 20:57:48 When did I say to get rid of reviews Mar 15 20:57:49 well, i'm not saying i have the 10 perfect ratings categories in my head, they have to be developed Mar 15 20:57:50 hello Mar 15 20:57:51 what if the thing that stood out to me is not one of those categories Mar 15 20:58:08 I said to get rid of rating systems where you give a rating to the whole app and dipshits can just 1* it because they felt like it Mar 15 20:58:20 and how is this going to stop that? Mar 15 20:58:21 1* means something, where a "lol it sucks" review will do nothing Mar 15 20:58:48 I think people that give non-thought reviews should have less and less impact the more reviews they do. Mar 15 20:58:51 I see someone writing "hey it sucks!" i instantly think the guy who wrote a review is a lesser human being than everyone else Mar 15 20:59:07 I see an 1* rating and it already changes what I think about the app Mar 15 20:59:08 anyone here tried to use bitbucket with android studio? Mar 15 20:59:17 so there's that Mar 15 20:59:17 IceCoolTea: What about it? Mar 15 20:59:34 don't want to implement categorized rating system? ok, doesn't mean the current rating system is good. Mar 15 20:59:37 Google or whatever app store should exclude people that give no-thought reviews. Mar 15 20:59:41 i just don’t see how adding more and more ratings would solve the problem of people midlessly giving it 1* Mar 15 20:59:56 rosten: and how exactly would you do that? Mar 15 20:59:59 s7ever: can't seem to set it up correctly Mar 15 21:00:20 casadogg: I never said the current rating system is good. We’re not talking about the current rating system, we’re talking about your proposal Mar 15 21:00:41 IceCoolTea: you need to say what’s wrong Mar 15 21:00:50 s73v3r: easy, if a person gives 1s (or whatever) to every app (which can't be the case) then they should have less impact, maybe their reviews only count half as much or 1/10th as much. Mar 15 21:01:05 s73v3r i think it's more helpful because even though you don't eliminate the 1* spammers, you have categories that actually mean something. What is a 5* app? I mean, what the hell does that actually means? Mar 15 21:01:05 why? what if they legitimately don’t like them? Mar 15 21:01:26 what the hell does a 5, 3, 4, 2, 5 app mean? Mar 15 21:01:54 nothing, that's why get rid of this shitty system. it provides no useful feedback Mar 15 21:02:06 a game with 3* visuals, 4* gameplay, 5* soundtrack means something Mar 15 21:02:07 s73v3r: If you give 1s to everyting you download I would question your ability to give a decent review based on your ability to decide what apps to buy/get. Mar 15 21:02:13 a game with 3,7* means shit to me Mar 15 21:02:19 why did it get 3,7 fucking stars? Mar 15 21:02:20 casadogg, no one cares about individual scores Mar 15 21:02:28 rosten: what if you give everything 5? Mar 15 21:02:35 s73v3r: I've installed plugin and set up account, says pushing and committing complete but its not in the repo, just want to work together with classmate and trying to find a way for easy collab Mar 15 21:02:36 and no reviewer is going to give well thought out individual scores Mar 15 21:02:51 people will just choose all the same. score Mar 15 21:02:54 casadogg: I’m sorry, but I cannot get behind your proposal. It’s not nearly thought out enough, and far too many issues Mar 15 21:03:02 s73v3r: so let's say it's a shitty app, and you give it 5? How is that bad, everyone else will give it bad scores? Mar 15 21:03:15 IceCoolTea: Don’t bother with the plugin. Just use Git or Mercurial outside of AS Mar 15 21:03:17 s73v3r obviously i just came up with it lol Mar 15 21:03:52 rosten: So they don’t get docked because they used a higher number? What about every app a 3? Mar 15 21:03:52 besides you can't tell if people are going or are not going to rate categories Mar 15 21:04:11 give me a report of an actual test Mar 15 21:04:12 yeah, we kinda can. people now are too lazy to review. you’re making more work for them Mar 15 21:04:21 s73v3r: That's neutral I think, your review won't matter much in any direciotn. Mar 15 21:04:34 so you only want to punish people who don’t like apps Mar 15 21:04:34 s73v3r: yeah I guess thats one solution, thanks anyway Mar 15 21:04:52 despite the fact that they might have legitimate reasons for rating those apps 1* Mar 15 21:05:08 IceCoolTea: Try SourceTree. It’s the git/mercurial client I use Mar 15 21:05:25 s73v3r: yes, but if they rate all apps they buy with 1*, the problem is them, not all the apps they get. Mar 15 21:05:37 s73v3r: same as with relationships, you're the common denominator lol. Mar 15 21:05:45 but if they rate all apps 3* or 5*, there is no problem with them? Mar 15 21:06:01 I’m sorry, but that idea is just fucking stupid Mar 15 21:06:03 I think it's a possibly better system than what we have not. Mar 15 21:06:06 now* Mar 15 21:06:08 anyway Mar 15 21:06:16 i don't Mar 15 21:06:19 s73v3r: the system we have now is better? Mar 15 21:06:29 if we are going to stick with non categorized rating systems, I'd rather have one similar to Steam Mar 15 21:06:33 thumbs up/thumbs down Mar 15 21:06:36 way better Mar 15 21:06:40 rosten: I didn’t say that. I said your idea is not better Mar 15 21:06:55 thumbs up/thumbs down is ok Mar 15 21:07:01 is bad but better Mar 15 21:07:06 s73v3r: and you have another idea or as you just a person that shoots everything down? (and gives bad reviews consistently? ;) Mar 15 21:07:15 or even thumbs up/neutral/down Mar 15 21:07:23 but stars are useless lol Mar 15 21:07:31 rosten: don’t blame me for you having terrible ideas Mar 15 21:07:41 inconsistent ones at that Mar 15 21:07:53 s73v3r: i'm not, but some people only criticize and don't contribute in any meaningful way. Mar 15 21:08:30 don’t really care. you asked for feedback, and it was given. it’s a terrible idea Mar 15 21:08:43 rosten let it go it doesn't matter anyway. we could have the most fucking awesomest idea that everyone agrees and contributes to, it's Google who gives the calls anyways :p Mar 15 21:08:57 so yeh whatever Mar 15 21:08:58 s73v3r: it's difficult to move forward with people that only criticize and don't contribute with something different. Mar 15 21:09:05 yeah.. Mar 15 21:09:22 stuck in the status quo Mar 15 21:09:44 my idea probably sucks, i know, i didn't give any thought. my grudge is with the current system and I see it as an integral part of the store Mar 15 21:09:52 it affects the developers, the users and maybe even google Mar 15 21:09:58 still it doesn't get changed Mar 15 21:10:21 yeah, definitely needs to change...and i think it will Mar 15 21:12:20 not just apps, all global products need a new ratings model Mar 15 21:12:56 Apps suffer more because they are so cheap, a $900 outdoor grill will get better reviews i imagine. Mar 15 21:15:09 rosten honestly thinking better about the issue, it's not about apps stores, it's about stores in general. it will always be like this, good marketing beats well built products. People never had much time/interest in making throughout research to see if the product they're acquiring is good. This isn't changing, it's probably getting worse as people are getting lazier/busier/ overwhelmed with information. Mar 15 21:15:37 well, marketing exists in part to tell you why an app is good Mar 15 21:16:15 it’s always been like this; things don’t exist on their merits. marketing is needed to let people know that your thing exists in the first place Mar 15 21:16:27 yah no doubt Mar 15 21:17:06 product quality can be decided by usage data and download times imho Mar 15 21:17:16 Hey all! So far I used a SectionsPagerAdapter with 4 Tabs. Now I wanted to add a fifth one, which also works like a charm with one exceptions: The titles don't fit to my handy Mar 15 21:17:20 *smartphone Mar 15 21:17:43 is it possible to only show 4 tabs at a time and continously swipe through them? Mar 15 21:17:51 IceCoolTea: not from the perspective of the person trying to buy the app Mar 15 21:19:16 i'd buy an app where usage data show that its not only downloaded 10000 times but are being constantly used by at least 7500, i'd say its rating is then 0.75 within a certain timeframe Mar 15 21:19:33 I thought I saw that somewhere in a Google-App.. And also think that this has to be built-in in some way.. Maybe there are displays where only 2 tabs fit Mar 15 21:19:34 thing is, nobody is going to release that data Mar 15 21:19:46 besides, you are a developer Mar 15 21:20:17 "usage data" pops on your mind 10 times a day Mar 15 21:20:29 the same cannot be told for the common user. Mar 15 21:20:57 I mean, this is interesting for social network users, obviously... Mar 15 21:21:04 if they use a web service on app it can be tracked without marketing yeah Mar 15 21:21:51 yah well come to think about it, showing download numbers for users is also idiotic Mar 15 21:22:04 nah, it's good Mar 15 21:22:10 I'm sheep, I wanna use what other people are using Mar 15 21:22:25 yeh i forgot about that Mar 15 21:22:27 I realize it's annoying as a developer, but as a user, I definitely trust by association Mar 15 21:22:30 popularity == quality Mar 15 21:22:38 yeh i totally get your mindset Mar 15 21:22:41 the problem for me is reliability of this usage data Mar 15 21:22:49 not necessarily popularity, but popularity among people I know and trust Mar 15 21:22:57 i can make 1000 virtual machines running my app Mar 15 21:23:29 IceCoolTea wouldn't you have to create thousands of google accounts\ Mar 15 21:23:37 anybody? ._. I'm really clueless what I should search fo Mar 15 21:23:40 IceCoolTea it could be filtered by valid google ccounts Mar 15 21:24:11 casadogg very good point Mar 15 21:24:15 hencethename, change the tab mode Mar 15 21:24:20 hencethename: Are you trying to make all 5 tabs fit on screen at once? I’m not sure what you’re asking Mar 15 21:24:36 you can use fixed or scrolling mode Mar 15 21:24:50 s73v3r: No, the texts are so long that they don't fit... pfn: scrolling mode sounds great! Mar 15 21:25:02 is that something I would do in the XML? Mar 15 21:25:22 hencethename, read the doc for the tab widget you're using Mar 15 21:25:26 hencethename, there are options to set that Mar 15 21:26:08 ah okay.. will do that.. I read the docs for the SectionsAdapter.. Was the wrong place then Mar 15 21:26:33 Adapters are generally data, they have little to do with how things are presented. Mar 15 21:26:53 what's a sectionsadapter Mar 15 21:27:06 it's not an android thing Mar 15 21:27:22 sorry.. SectionsPagerAdapter Mar 15 21:27:47 It's extending FragmentStatePagerAdapter and autogenereted when you scaffold a project in android studip Mar 15 21:27:49 *io Mar 15 21:28:06 it's still not a framework thing Mar 15 21:28:15 and it's a feature of tablayout, presuming that's what you're using Mar 15 21:29:15 yes I am. Thanks I found it! Mar 15 21:29:18 thank you very much Mar 15 21:31:03 what do you guys think about Intel XDK? is it worth my time or stick with android studio? Mar 15 21:31:57 never used it. Give it a try and let us know Mar 15 21:35:55 would you guys recommend some resource to learn about cryptography Mar 15 21:35:59 some practical stuff Mar 15 21:38:54 casadogg: what do you want to achieve? or is it just curiosity? one golden rule of crypto: don't do it yourself :D Mar 15 21:39:38 hencethename just understand it Mar 15 21:39:43 one great simple video that illustrates the idea of async cryptos problem of the keyexchange: https://www.youtube.com/watch?v=YEBfamv-_do Mar 15 21:41:06 hmm thanks :) Mar 15 21:42:07 then as further keywords which get you further: bitcoin (since its built upon standards but has looots of 'how is it done'-vids), pgp and rsa Mar 15 21:44:05 Napalm http://www.gizmag.com/pigeon-air-patrol/42313/ Mar 15 21:45:03 crypto? just use double rot-13 for everything it has best speed Mar 15 21:45:09 \o/ Mar 15 21:46:27 * Napalm sigh Mar 15 21:46:32 g00s: thanks Mar 15 21:46:42 Napalm :D Mar 15 21:46:46 rot-13 is just rotates character table by 13 index? Mar 15 21:46:48 CTO don't want to use some php library to handle decryption Mar 15 21:46:50 sigh Mar 15 21:46:52 Napalm that is cool, you have to admit Mar 15 21:47:10 Napalm waiting for them to get solar wings to charge pack in flight Mar 15 21:47:39 bionic-pigeons Mar 15 21:47:41 lol Mar 15 21:48:06 i'm betting NSA has other kinds of packs for them :D Mar 15 21:48:12 modular platform ;) Mar 15 21:49:03 casadogg, applied cryptography is a good book to start with Mar 15 21:49:27 IceCoolTea, rot13 aka caesar cipher Mar 15 21:50:05 pfn I'll check it, but honestly I don't have time right now to deal with this stuff. Why the guy hates 3rd party frameworks/libraries/anything is beyond me. But he does everything vanilla, not even node or jquery is allowed rofl Mar 15 21:50:27 casadogg, huh? you're required to re-implement crypto yourself? Mar 15 21:50:29 pfn, yes, i didn't know the name, basically where char "a" -> 1 becomes "a" -> 13 in index xd Mar 15 21:50:38 casadogg thats insane Mar 15 21:50:58 casadogg, but otherwise, generally use BC on java Mar 15 21:52:02 pfn nah not me, I have full autonomy regarding mobile development because he don't care as much. The thing is with the web developers Mar 15 21:52:17 casadogg, for web sjcl Mar 15 21:52:29 CTO wants them to use RC4 and implement themselves Mar 15 21:53:01 rc4 isn't advised as far as I'm concerned Mar 15 21:53:34 pfn will check it out Mar 15 21:56:21 zz backend is php Mar 15 21:57:53 php yuck Mar 15 21:58:18 the banks are still using RC4 Mar 15 22:12:27 hi guys Mar 15 22:12:34 hello Mar 15 22:12:49 is better to open a db connection for each function with the database Mar 15 22:13:03 icemanbp open once, keep it open forever Mar 15 22:13:04 or open at startup and then close when you close your application? Mar 15 22:13:14 forevveeerrrrrr Mar 15 22:13:26 i guess thats forevaa Mar 15 22:13:36 just make sure .onclose its closed Mar 15 22:13:49 lol why Mar 15 22:13:50 g00s: so for example, I can keep an instance of the sqllitedatabase on my application? Mar 15 22:14:05 icemanbp you will reuse the same connection yes Mar 15 22:14:35 its effectively a singleton if used in content provider Mar 15 22:14:52 I just create an SqlOpenHelper Mar 15 22:14:56 and you can make SQLiteOpenHelper singleton Mar 15 22:15:05 that give me back a writable db Mar 15 22:15:51 make it a singleton so you don't by mistake make multiple connections Mar 15 22:16:00 and there is no good place to close it, so leave it open Mar 15 22:16:59 g00s: do I have use content provider with uri and stuff like that? or is enught make functions with the db? Mar 15 22:17:08 dont need CP Mar 15 22:17:45 i'm having so much headache with this cameraIntent... is there no easy way to get the image i capture to be copied to a folder on SDcard where i gave the Uri Mar 15 22:18:04 why not? Mar 15 22:18:32 if I well remember on resultActivity you have the uri of the image, and then you can copy where you prefer Mar 15 22:20:38 it should, but i have no clue how to extract it from the Intent Mar 15 22:22:38 i'm trying : fileIn = new FileInputStream(new File(intentData.getData().getPath(),????????); Mar 15 22:25:47 http://stackoverflow.com/questions/21388586/get-uri-from-camera-intent-in-android Mar 15 22:26:10 check your permission in android manifest Mar 15 22:26:17 I've to go now, good night folks Mar 15 22:33:01 Communication between Activity and HandlerThread, someone has an idea? Mar 15 22:36:59 be more specific Mar 15 22:37:06 the entire main thread is a HandlerThread Mar 15 22:47:18 I have information that I need to transfer from Thread to main activty every millisecond, It needs to update some Views.. Mar 15 22:47:41 every millisecond? Mar 15 22:47:43 sounds wrong Mar 15 22:47:53 100 Mar 15 22:47:55 * Mar 15 22:49:50 now Im using CountDownTimer .. Mar 15 22:53:03 still too often for the most part Mar 15 22:53:26 its a game.. I need to update the score view Mar 15 22:53:30 :\ Mar 15 22:53:56 scores don't need to be updated so often Mar 15 22:54:04 or consider using something that allows use from another thread, like a surface Mar 15 22:54:34 im using surfaceview on the HandlerTheard Mar 15 22:55:11 if I update the score evrey 1 sec is too late.. Mar 15 22:58:19 then just post a message Mar 15 22:59:09 Im not sure how to do this.. Mar 15 22:59:36 mReceiver.sendEmptyMessage(MSG_UPDATE); ? Mar 15 23:01:47 pick how you want it handled Mar 15 23:02:00 post a runnable, post a message if you want to handle within your handler subclass Mar 15 23:02:03 etc. Mar 15 23:02:27 you can give me example? Mar 15 23:02:49 handler.post(new Runnable() { ... run() { update my view } }) Mar 15 23:04:39 what kind of game is it? One where the score keeps counting down? Mar 15 23:05:18 its 2d game.. my first one.. Mar 15 23:06:01 pfn how i can update the view from the thread? Mar 15 23:09:15 call methods on the surface to update it Mar 15 23:11:08 i really have no idea how to do that :O Mar 15 23:11:37 the same way you draw normally Mar 15 23:14:25 but I dont have accsess to the view from the thread Mar 15 23:14:43 maybe view holder ? :O Mar 15 23:15:32 the thread is irrelevant Mar 15 23:18:14 Every damn time! I just spent an hour trying to figure out why my recyclerView inside a coordinator layout wasn't displaying Mar 15 23:18:45 Hahaha I always forget to set the layoutManager Mar 15 23:23:20 pfn I dont know how to do this :X what i need to pass to the thread ? Mar 15 23:26:09 Is it safe to modify objects across threads as long as the threads aren't modifying at the same exact time? Mar 15 23:27:45 eghdk: it depends on what you're modifying Mar 15 23:28:16 You may want to synchronize the update call Mar 15 23:29:00 dl1nk, you don't pass anything to the thread Mar 15 23:29:08 dl1nk, you attach a handler on the handlerthread Mar 15 23:29:18 dl1nk, the handler can be contained wherever you have your surface Mar 15 23:29:28 then post stuff to the handler Mar 15 23:30:57 is there anything in the android sdk javadoc that tells you what api level a method is Mar 15 23:31:03 I wish they'd use @since Mar 15 23:31:14 and I don't want to be heavily reliant on AS lint Mar 15 23:38:21 android studio tells you @since when you quick-doc Mar 15 23:38:31 hey guys, I was going to start doing the course on udacity, having a small hiccup installing android studio on ubuntu, my question is: is the setup process on windows considered 'easier' Mar 15 23:38:31 d.android.com also shows you @since in javadoc Mar 15 23:38:36 what else are you looking for, missingno Mar 15 23:38:47 dtzitz, probably Mar 15 23:38:52 and do folks here have a preference for developing in linux vs windows? Mar 15 23:39:10 use what you like Mar 15 23:39:28 dtzitz i think the linux people prefer linux, and the windows people prefer windows :D Mar 15 23:39:52 lol, good point Mar 15 23:40:08 I just can't imagine doing webdev in windows Mar 15 23:40:43 unless it's .net, didn't know if the same sort of paradigm exists for android dev or if it really doesn't matter what the environment is Mar 15 23:42:15 cool, switching over to my windows partition, thanks for the input pfn and g00s Mar 15 23:44:08 pfn they don't seem to actually use @since in the javadoc at all Mar 15 23:45:25 missingno, they don't use @since in the source Mar 15 23:45:36 oh Mar 15 23:45:43 missingno, but they correlate api-versions.xml in ref doc and android studio Mar 15 23:45:56 if you quick-doc in android studio, it tells you 'since' Mar 15 23:46:01 crap wat is the quickdoc hotkey Mar 15 23:46:04 *what Mar 15 23:46:10 I rebind mine Mar 15 23:46:13 ctrl-shift-a and type quick doc Mar 15 23:46:21 or view -> quick doc Mar 15 23:46:28 and look at what your keybinding Mar 15 23:46:39 > Added in API level 19 Mar 15 23:46:41 sweet thanks man Mar 15 23:46:56 yeah, doesn't exist in intellij yet, that's one feature I'dl ike Mar 15 23:47:48 do alarm receivers need to be exported? Mar 15 23:48:33 howdy Mar 15 23:48:39 any easy way to switch between two android studio windows on OSX? cmd tab takes me to a different app, but I have multiple AS windows open Mar 15 23:49:05 cmd+shift+] Mar 15 23:49:06 command ` Mar 15 23:49:14 woops you said window Mar 15 23:52:25 missingno, any receiver that receives messages from an outside process must be exported Mar 15 23:52:55 I thought so Mar 15 23:53:05 missingno, but then again, if you have an intent-filter it's exported automatically Mar 15 23:53:16 how do you secure it then Mar 15 23:53:16 missingno, and any pending intent requires an intent-filter to process anyway Mar 15 23:53:25 like, what stops other apps from sending your intent Mar 15 23:54:09 I had an intent-filter and it worked, then I purposely removed the intent-filter to make it not-exported and it did not work Mar 15 23:54:14 which is not terribly surprising Mar 15 23:54:47 missingno, permissions Mar 15 23:54:55 oh yeah those work on intents Mar 15 23:55:15 I'm not sure. I use IntelliJ on a Windows platform and alt-tab works great for me Mar 15 23:56:03 one of these days I'll learn how to finish() an activity and then begin a new activity in the same .apk Mar 15 23:59:02 wut Mar 15 23:59:45 huh? Mar 16 00:11:40 I need to learn how to 'on buttone press, end current activity and begin new activity' Mar 16 00:11:55 you just do it Mar 16 00:12:11 truth Mar 16 00:12:29 g00s: how long did it take for you to be active again? Mar 16 00:12:29 there’s nothing special about doing it inside an onClickListener than anywhere else Mar 16 00:12:41 shit man, you didn't tell me a fractured toe would last this long :p Mar 16 00:13:12 I had initially set it up to operate from the .xml file. I'm sure it would be more beneficial to hardcode it in the .class file but for now this is the extent of my knowledge Mar 16 00:28:47 how do I change the version of the JDK that AS uses, to prevent the drag and drop bug? I've installed a version outside of the range, set JDK_HOME and JAVA_VERSION, have java-version showing the write one in terminal, but it still pops up Mar 16 00:29:26 thats googleable Mar 16 00:29:43 I have googled it, keep finding how to change the project java version Mar 16 00:29:57 and found info about JDK_HOME and JAVA_VERSION env variables, but that doesn't seem to do the trick Mar 16 00:29:59 depends which platform Mar 16 00:30:23 on mac, you edit an xml file Mar 16 00:41:32 i guess you need to change JAVA_HOME not JDK_HOME. because the ui is shown by the jre not jdk Mar 16 00:41:49 and a change requires a relog/reboot if you are on windows. Mar 16 00:42:01 (after setting the environment variable) Mar 16 00:42:27 danijoo on Mac. Changed JAVA_HOME and JDK_HOME to point to pre 60 version, java -version shows correctly in terminal, but still get the message and experience the drag and drop bug Mar 16 00:42:56 cant help with macs :/ Mar 16 00:43:44 danijoo Either way, AS has to be looking at somethign to know which Java version to use. That or the path is set somewhere in preferences, but I can't seem to find it (not the one AS itself uses) Mar 16 00:44:10 at least on windows it looks for JAVA_HOME i think Mar 16 00:45:15 theblang its /Applications/Android Studio.app/Contents/Info.plist Mar 16 00:45:38 search for JVMVersion Mar 16 00:47:39 If i pendingIntent tries to start a IntentService from an app that is not alive, what happens? Mar 16 00:48:06 the app gets started Mar 16 00:48:36 Before the IntentService gets called? Mar 16 00:48:44 you can see this happen all the time if clicking a notification of a dead app. app gets started and then the activity that uses the intent Mar 16 00:49:03 for a service the same will happen yes Mar 16 00:49:13 first Application class boots up and then the IntentService Mar 16 00:49:43 Cool, the docs for PendingIntent made it seem like the code was executed as part of the process that calls the bending intent, not the one that creates it. Mar 16 00:50:01 well it depends on the pending intent Mar 16 00:50:43 Explain please (>^_^)> Mar 16 00:50:54 but if you have a service or activity, you can be sure that the corresponding app context (Application class) exists Mar 16 00:51:26 Cool! Mar 16 00:51:43 moesk8er2, im not sure how much this is true for a service but for an activity the intent can change if its run in the same process or start another one with intent flags Mar 16 00:52:17 i guess for services its always the app process or a seperate one if you define it in the AndroidManifest Mar 16 00:52:49 So if my app were to set a callback on the IntentService every time it is created, even if the app gets destroyed, a new callback will be set before the IntentSerivce runs. Mar 16 00:54:27 im not sure what you mean with callback Mar 16 00:54:41 Should I always be using the LayoutInflaterCompat instead of the packaged LayoutInflater? Mar 16 00:55:17 if you set the callback where you start the intentservice, but the service will also get started from somewhere else, you wont have a callback in that second case Mar 16 00:56:36 hmm maybe your right and my idea of this design pattern is impossible, ill try it and see if my ide yells at me. Thanks :D Mar 16 00:57:38 konk3r um - i don't think we ever use that ... Mar 16 00:57:56 I've never used it, I'm just worried I'm going to miss out on something if I don't Mar 16 00:58:29 I also never used that Mar 16 00:59:03 lol i think its used by some layout inflater factory Mar 16 00:59:17 to do tricky shit under the hood :) Mar 16 01:02:17 g00s, 'introduced after API level 4' Mar 16 01:02:36 lol Mar 16 01:02:48 i gues it just brings features really low api levels that are already part of every version you and i use Mar 16 01:03:58 n8 everyone Mar 16 01:04:42 when you right unit tests, do you mock all your network calls? Mar 16 01:05:17 does it even make sense to write tests for your network calls? Mar 16 01:05:53 RustyShackleford so you should know, lots of disagreement on that ;) Mar 16 01:06:04 probably not the best place to ask Mar 16 01:07:36 hah alright. Mar 16 01:07:51 so no matter which way I do it, someone will tell me I'm wrong Mar 16 01:08:13 hardcore interpretation of unit test is doesn't touch disk / IO / networking Mar 16 01:09:09 many would say, if it touches those, its really an integration test Mar 16 01:09:21 even though you can use junit for both unit and integration tests Mar 16 01:09:29 btw I guess junit 5 is coming out ... Mar 16 01:10:39 i haven't even learned junit 4 yet Mar 16 01:10:43 ^^ I'm in the camp that anything going beyond the scope of a class is an integration test, especially if you're hitting the network Mar 16 01:11:15 RustyShackleford not much to learn. although writing good unit tests , and designing for testability are big topics Mar 16 01:11:21 Even with integration tests it's common to mock out your web server so that you can reproduce tests Mar 16 01:11:22 I would be happy with integration tests Mar 16 01:11:43 If your tests actually rely on the network it can make things a massive pain Mar 16 01:12:01 a bit ago DHH wrote a blog about sacrificing architecture at the altar of testability, it got me thinking Mar 16 01:12:04 I usually have internet access on my computer Mar 16 01:16:07 pfn thx!! Mar 16 01:18:50 do you use an analytics library in your app? Mar 16 01:19:03 amazon has an analytics service now Mar 16 01:19:59 100 million events per month for free Mar 16 01:20:42 g00s editing the plist file directly was advised against. you have to set the STUDIO_JDK to point to your /library/path/to/jdk, but then use open /Applications/Android Studio to, I guess, cause it to set something correctly Mar 16 01:21:24 I can't stress how important good analytics can be Mar 16 01:21:42 maybe i'm confused since you mentioned STUDIO_JDK, i thought we were talking about the version of java to RUN AS Mar 16 01:24:09 there are 2 versions, apart from Linux versions that I am aware of. 32bit and 64bit. Linux operates with the OpenJDK and I don't know if there is a 32bit and a 64bit version or just one or the other Mar 16 01:24:34 its free, why not Mar 16 01:24:48 I don't really plan on making money with this app Mar 16 01:25:04 at the very least I can track the number of active users Mar 16 01:34:37 one should not expect to make money with an app but they should indeed be pleasently surprised when they do make money with the app Mar 16 01:35:06 that's how flappy bird blew up Mar 16 01:39:35 g00s no you are right, I did mean that one Mar 16 01:48:26 anybody get their nexus on verizon? Mar 16 01:48:33 I have a feeling they will make it difficult for me Mar 16 02:01:34 RustyShackleford i'll get an iphone before you get your android :D Mar 16 02:02:22 jesus man. I can't decide and I can't find them on display Mar 16 02:02:46 went to best buy. website says they have the nexuses in stock but they did not Mar 16 02:03:36 at this point i'd just wait for the next nexus probably Mar 16 02:03:43 hah Mar 16 02:04:12 i've waited so long is practically obselete Mar 16 02:04:16 remember google tends to only support 18 mos. so you are down 5 mos Mar 16 02:04:31 (already) Mar 16 02:05:02 what do you mean by support? Mar 16 02:05:12 factory images Mar 16 02:05:35 my nexus 7 2013 won't get android n for example Mar 16 02:05:36 still don't follow. What's the problem if you get updates? Mar 16 02:05:59 you mean "don't get updates" lol Mar 16 02:06:04 oh seriously? my buddy still gets updates for his nexus 7 Mar 16 02:06:11 yeah for 5.x Mar 16 02:06:44 the probably support it at least until the new one comes out Mar 16 02:06:52 only reason why i'm considering a pixel C for dev Mar 16 02:07:02 my phones always start crapping out around 18 months anyway Mar 16 02:07:29 i have a 2nd gen iPod touch thats been on 24 hours per day since 2010 Mar 16 02:07:55 i'm not kidding. its playing white noise Mar 16 02:07:55 those ipods were built solid Mar 16 02:07:58 all day Mar 16 02:08:00 every day Mar 16 02:08:09 just an experiment you have going? Mar 16 02:08:25 i like background noise Mar 16 02:08:25 or you have tinnititus really bad? Mar 16 02:10:00 I wonder if the nexus 5x is really that bad Mar 16 02:10:15 I think part of the problem is that phone reviewers are impossible to please Mar 16 02:10:54 RustyShackleford to put things into perspective, i got my iPod touch the same time I got my Verizon Droid 1 (A855) Mar 16 02:11:02 with Froyo :D Mar 16 02:11:28 one of these devices has aged a little better than the other one Mar 16 02:11:31 hehe Mar 16 02:12:24 Froyo was so terrible. when i mess around with that original droid, its so janky ... Mar 16 02:12:38 my first was gingerbread Mar 16 02:12:45 web browser was impossible Mar 16 02:12:51 I was pretty disapointed Mar 16 02:13:12 then ICS came out and changed everything Mar 16 02:13:46 yeah holo was much better Mar 16 02:16:23 dude I can walk again! Mar 16 02:16:42 sorta. Lots of limping and muttering curse words Mar 16 02:17:12 RustyShackleford that good, any recent xrays ? Mar 16 02:17:32 nope but its 5 weeks in. Doctor told me to start walking on it Mar 16 02:17:41 hmm Mar 16 02:17:43 when I could. haven't seen him since Mar 16 02:19:02 hm, so how does bottom bar and bottom sheet work together Mar 16 02:19:11 i think they made a mistake Mar 16 02:19:29 oh well, this is one component i won't be waiting for in the support lib :) Mar 16 02:23:01 I began with froyo and kept moving up in API as my IDE told me that certain functions were inaccessible Mar 16 02:23:38 like GridLayout is inaccessible by anything lower than API 14 or 15. can't remember Mar 16 02:24:02 all I know is API 8 can not access GridLayout Mar 16 02:25:24 CedricBeust nslu2-log seems to be logging Mar 16 02:25:36 http://logs.nslu2-linux.org/livelogs/android-dev/android-dev.20150512.txt Mar 16 02:29:03 hmm, looks like IO invites are going out, and I haven't heard shit Mar 16 02:29:10 guess only the few get invites... Mar 16 02:29:22 were going out this morning at least Mar 16 02:30:11 I guess i'm not invited :( Mar 16 02:30:27 guess I'm not invited either Mar 16 02:30:48 I mean, I didn't apply, and I don't want to (pay to) go, so it's not all that much of a disappointment Mar 16 02:30:51 in most gapps, there is "send feedback" which then has "include screenshot and logs". is this pretty easy to do youself ? Mar 16 02:32:34 * pfn is disappointed by IO once again, considering his proximity to the venue **** ENDING LOGGING AT Wed Mar 16 02:59:58 2016