**** BEGIN LOGGING AT Fri Sep 02 02:59:58 2016 Sep 02 03:16:27 firebase isn't a db Sep 02 03:16:47 it's a web api that abstracts a db Sep 02 03:26:07 "Exclusive: Google shelves plan for phone with interchangeable parts - sources" nooooooo Sep 02 03:26:39 well, even a DB is has an api that abstract a db... the only difference is the protocols and languages used to express the api. But in general, what are reasons for not connecting directly with a DB? Only security? Sep 02 03:26:59 well, i guess it would be tough getting ARA working if the regular story is a shitshow with fragmentation Sep 02 03:27:49 I think it's fair to describe Firebase as a DB. It just has a lot more features than a simple DB. Sep 02 03:27:56 https://lh3.googleusercontent.com/LU26SVDliQB6btG-5YlsRhd6CoMJdOhthAFbJIRD7BeqsWtFxZXtgApcGcIKk6WQXw=h900-rw does anyone know what that dropdown widget is ? Sep 02 03:28:20 does firebase work offline btw ? Sep 02 03:28:57 lol webp gordon :P Sep 02 03:30:11 I just found an application called mCent that gives you free of charge time to talk on the cell after testing applications on your phone. Try it: https://mcent.com/app/?mcode=1TS3I0&tcx=WAPP Sep 02 03:30:21 AS 2.2 RC, ok i guess i should try now Sep 02 03:30:21 what's wrong with webp Sep 02 03:30:35 tx nothing if your browser supports it Sep 02 03:31:54 g00s: hm? Sep 02 03:32:36 I dont get what do you mean about webp :P Sep 02 03:33:07 only chrome supports it Sep 02 03:33:16 nobody else cares Sep 02 03:33:27 so it's like 70% of market ? Sep 02 03:33:36 I'm fine ;D Sep 02 03:34:16 anyway, do you know abou that dropbox ? Sep 02 03:35:55 gordon_ no idea, can't view it :D Sep 02 03:36:29 how do you go to play store then Sep 02 03:36:33 I copied link from there Sep 02 03:37:16 http://wstaw.org/m/2016/09/02/Screen_Shot_2016-09-02_at_12.36.47_PM.png Sep 02 03:37:19 there you go Sep 02 03:37:21 the spinner? Sep 02 03:37:43 gordon_ the account switcher ? Sep 02 03:37:44 just a normal spinner ? Sep 02 03:37:49 yep, account switcher Sep 02 03:37:55 actually its not a spinner Sep 02 03:37:58 ideally I wanted a gmail like one Sep 02 03:38:12 but it seems that google isnt providing anything like this Sep 02 03:38:23 and I'm not eager to implement that animation ;) Sep 02 03:38:44 then.. what is that? Sep 02 03:38:59 gordon_ its just a textview with a drawable lol Sep 02 03:39:07 and a rotation animation Sep 02 03:39:22 well thats the way gapps implement it -- although, some of them use an internal AccountView Sep 02 03:39:47 they have a few libraries that are internal, like support libs, but private Sep 02 03:40:28 g00s knows stuff?! Sep 02 03:40:48 gordon_ and ... why not just look at the sources for the iosched app? thats a screenshot from that app Sep 02 03:40:50 heh Sep 02 03:40:57 lazy man :) Sep 02 03:41:03 g00s: because googe didnt upgraded ioshed for 2016 ? Sep 02 03:41:11 *google Sep 02 03:41:17 decompile it ... Sep 02 03:41:32 haha Sep 02 03:41:32 you don't even have to reverse the java, the xml is just there for the browsing w apktool Sep 02 03:41:52 didnt think about it Sep 02 03:41:55 let me see Sep 02 03:42:03 man, iosched sources are still not there :D :D Sep 02 03:42:24 i remember when they said 'not ready yet, but less time than last year' Sep 02 03:42:28 ¯\_(ツ)_/¯ Sep 02 03:42:35 dont ask me Sep 02 03:42:44 I'm just 'a guy' Sep 02 03:43:22 at least 2.2 is in RC so maybe soon I will be able to 'click' espresso tests Sep 02 03:44:54 gordon, what animation are you talking about? Sep 02 03:45:26 gordon_ this has an AccountSwitcher https://github.com/mikepenz/MaterialDrawer Sep 02 03:45:46 g00s: I've seen that, doesnt have animation Sep 02 03:45:53 ok Sep 02 03:46:10 dsardari: the animation when you switch account in gmail app Sep 02 03:46:22 gordon_ thats why gapps are inconsistent - some have the animation, some do not Sep 02 03:46:30 each does its own different thing Sep 02 03:46:42 for example books has no animation Sep 02 03:46:50 I know that, you know that Sep 02 03:47:08 keep has animation Sep 02 03:49:23 i have keep decompiled here ... Sep 02 03:49:24 we do something similar in a app i work on. it's basically just an animator set with translation and scaling. Sep 02 03:50:04 gordon_ strange, i see no animation in keep Sep 02 03:50:53 using the app, that is Sep 02 03:50:58 didn't look at the sources Sep 02 03:51:08 what version you using? Sep 02 03:51:43 3.3.331.0 on Android 6.0.1 Sep 02 03:52:58 same. it animates when you click the profile icon on the top right of the drawer if you have multiple accounts. Sep 02 04:05:50 "Polling by Fluent and eMarketer in the US suggests that nearly half of smartphone users now wait at least three years between upgrades, while data from Gallup suggests more than half wait until their phone stops working or becomes “totally obsolete”" Sep 02 04:06:49 so those new Pixel phones ... wonder if they will be more expensive. if so, the better plan on supporting them much longer ... Sep 02 04:07:59 cool the new sony xperia x charges 20% - 80% to prolong life battery Sep 02 04:08:31 ... anticipating people will hold onto their phones for more than 2 years. well they have the HW covered, can they keep the SW covered though Sep 02 04:09:17 so those sony batteries are designed to last for 4 years Sep 02 04:21:34 CedricBeust, it provides the services of a database, but you don't connect to it as such, the apis abstract the connectivity to it Sep 02 04:21:58 So do JDBC drivers Sep 02 04:22:08 not really Sep 02 04:22:35 pretty much all jdbc drivers are direct connections with a very thin protocol translation Sep 02 04:22:57 So... an abstraction to talk to the database Sep 02 04:23:12 Firebase has persistence and a bunch of additional services... looks like a DB to me Sep 02 04:23:21 there are very few jdbc drivers that actually proxy through an intermediary Sep 02 04:23:25 Anyway, it's nitpicking Sep 02 04:23:42 basic rule, you don't connect to a database directly, ever Sep 02 04:23:55 and firebase is no exception Sep 02 04:24:13 CedricBeust: Firebase is kinda like a reactive, distributed database with ORM? Sep 02 04:24:18 What does that mean, you never connect to a db directly? Sep 02 04:24:32 justJanne: Exactly. A DB with extra services such as instant notification Sep 02 04:24:53 Well, the reactive distributed ORM is the interesting part Sep 02 04:24:56 CedricBeust, not from most clients Sep 02 04:25:04 justJanne: Definitely. Sep 02 04:25:11 We're doing similar things in quassel, too, since 2007 Sep 02 04:25:15 Oh, did I link this to you yet, CedricBeust, https://github.com/pfn/iota/blob/master/ViewTree.md Sep 02 04:25:51 Well, most services will do that Sep 02 04:25:59 Just most will write custom layers Sep 02 04:26:32 pfn: Interesting. Feels like Kotlin's with would reduce a lot of boiler plate from it Sep 02 04:27:06 and also a lot of setters boiler plate would go away too Sep 02 04:27:11 It's quote awesome if you can, on one client, just call client.getNetwork("freenode").getChannel("#android-dev").part() Sep 02 04:27:28 And the backend parts and does its magic and all clients are in sync Sep 02 04:27:53 God, I love the concept of this so much. Sep 02 04:28:13 Custom engineering something like this for quasseldroid cost me a fucking year. Sep 02 04:28:57 But, in turn, soon we'll have Google cloud notifications, too, without using any google library! Sep 02 04:29:06 Yes a lot of the principles behind Firebase are really brilliant Sep 02 04:29:21 of the "why did nobody else think of that before?" kind Sep 02 04:29:38 It's as always with google, awesome ideas, then shut down after a few years, Sep 02 04:29:46 And if not, they start data mining Sep 02 04:29:51 nah that's a myth Sep 02 04:29:56 Sure Google does that, as do a lot of other companies Sep 02 04:30:10 I wouldn't put my grocery list into firebase by now Sep 02 04:30:23 Both due to reliability and privacy Sep 02 04:30:38 the latter is fair, the former... mmh Sep 02 04:30:42 CedricBeust, it would remove some, just the explicit receiver on calls Sep 02 04:31:13 pfn: set() calls too. It feels so boilerplatey to read "a.setFoo(x)" once you're used to Kotlin Sep 02 04:31:13 this kind of thing is impossible to implement in kotlin in any case Sep 02 04:31:20 Well, cedric, where's googlr reader now Sep 02 04:31:34 Cedric: use lombok? There's a preprocessor macro for that Sep 02 04:31:41 justJanne: Like I said, sure they shut down services. Like a lot of other companies shut down services that don't pan out Sep 02 04:31:44 Maybe with a compiler plugin Sep 02 04:32:24 But not picking a Google service because Google might shut it down is pretty dumb, what are you going to do, rely on another company than Google and be sure that they won't shut it down? Sep 02 04:33:06 CedricBeust: nobody never thought about it before because "you never connect directly to a DB period". If you don't connect directly to a database notifications must be implemented in the server layer - so that they can talk with the client - thus there is no point in implementing them in the database. Sep 02 04:33:07 CedricBeust: of what kind of brilliant ideas behind Firebase are you talking about? Sep 02 04:33:46 squ: Clients listening to a distributed database with instant notifications Sep 02 04:34:18 CedricBeust: and I implemented a distributed database with instant notification in 2000 for a videogame Sep 02 04:34:28 Well, at that point it becomes just like any rpc framework Sep 02 04:34:32 With synced stuff Sep 02 04:34:45 Arancio: Why do you think Google didn't acquire you? Sep 02 04:34:57 Cedric; no, I just host it myself Sep 02 04:35:00 CedricBeust: Parse had notifications and server-side events Sep 02 04:35:01 Don't rely on anyone Sep 02 04:35:15 right time, right place, right executive team :p Sep 02 04:35:15 Don't rely on anyone is not a sustainable strategy Sep 02 04:35:20 pfn: yup Sep 02 04:35:28 Nah Sep 02 04:35:37 Firebase is just not worth it for most projects Sep 02 04:35:47 Sure, it's not for all projects Sep 02 04:35:52 90% of projects never get large enough to justify building that Sep 02 04:36:06 Most of the time, a handcoded layer can do the same just as good Sep 02 04:36:07 CedricBeust: in Parse I added custom javascript which responded to certain type of event, when user registered in database, the database notified other service to collect accounts Sep 02 04:36:28 It becomes only useful when building thousands of projects Sep 02 04:36:42 Also, don't rely on anyone is pretty sustainable Sep 02 04:37:12 It's not sustainable, you'll spend more time implementing infrastructure than writing an innovative product Sep 02 04:37:16 It takes a fuckton extra work, but you end up having a complete in-house stack for everything, and can offer every part of it to someone else Sep 02 04:37:37 Yes, you spend about half of your teenager years on that Sep 02 04:37:38 By the time you do, your app will be obsolete Sep 02 04:38:07 and very easy to compete with by someone with an open mind who's not afraid to use existring libraries for infrastructure Sep 02 04:38:33 Cedricbeust: yes, if you start at the same time Sep 02 04:38:45 No, even if you start late Sep 02 04:38:56 But at the current moment, I already have my own crash report handling sites that aggregate them, Sep 02 04:39:01 My own analytics system, Sep 02 04:39:06 Notification system, Sep 02 04:39:07 If you reimplement everything from scratch, you simply make it easy for someone to catch up with you Sep 02 04:39:14 Custom mail sorting systems, Sep 02 04:39:18 Etc Sep 02 04:39:44 Someone else can catch up by using existing libraries, but they have far higher costs Sep 02 04:39:59 How would these costs be higher? Sep 02 04:40:04 Everything I can do in house with code I wrote during summer break costs them extra Sep 02 04:40:41 They pay for this service, and that service, and I use clusters of the cheapest dedicated servers I can find, and run my own cloud Sep 02 04:40:44 The time of your engineer is much, much more valuable than dollars. Sep 02 04:41:05 Yes, unless your engineer is bored teenager or student with nothinh to do Sep 02 04:41:15 This is what I did the last 5 years whenever I had free time, Sep 02 04:41:18 You make it possible for them to cut one month of development just by throwing dollars at your problem, that makes you dead on arrival Sep 02 04:41:44 That depends. Sep 02 04:42:10 They can't offer a service below costs or for free eithee Sep 02 04:42:29 Exploiting bored teenagers for the win! Sep 02 04:42:41 I am the bored tweenager Sep 02 04:42:51 ops Sep 02 04:43:03 That's the point ;P Sep 02 04:43:19 I can waste my time, or build useful services Sep 02 04:43:36 If you're going to spend engineering resources on products that can be bought off the shell, you have already lost. Sep 02 04:43:38 And I'm a great proponent of building sustainable services anyway, Sep 02 04:43:57 shelf* Sep 02 04:44:08 Everything that's not in house will kill you, Sep 02 04:44:10 Debt is evil, Sep 02 04:44:21 You don't ever make a service that isn't profitable, Sep 02 04:44:23 And so on Sep 02 04:44:41 Nonsense. The products that succeed are the ones that understand what needs to be built in house and what should be bought. Sep 02 04:45:22 The products that succeed are the ones that don't take debt. If you take debt, you've already increased your chance of failing tenfold Sep 02 04:45:34 It's not the american way of doing business, Sep 02 04:45:35 Nonsense again. Debt is an asset if you're wise with it. Sep 02 04:45:39 No. Sep 02 04:45:49 It's like saying you should buy everything cash and never borrow. Equally nonsense. Sep 02 04:45:52 Yes Sep 02 04:45:59 Buy everything cash and never borrow Sep 02 04:46:06 All business is based on debts Sep 02 04:46:13 That's a terrible philosophy, both financially and in software. Sep 02 04:46:15 False. Sep 02 04:46:26 The aldi corporation has never taken out any debt Sep 02 04:46:28 Ever. Sep 02 04:46:29 I don't see any point arguing with CedricBeust since he is just a troll Sep 02 04:46:47 Neither have a few other companies I know, and own stakes in Sep 02 04:46:56 Simple example: you can buy a car cash for $20k or get a loan with 3% interest. What do you do? Sep 02 04:47:21 justJanne: exactly "few other companies" Sep 02 04:47:22 Buy it cash. Inflation is lower than interest, so I'd lose money otherwise. Sep 02 04:47:45 justJanne: Wrong. Depends on how you can invest. If you can invest the cash at more than 3% interest, it's wiser to get a loan. Sep 02 04:47:47 Arancio: yet, most of the companies from this region operate similar to that Sep 02 04:47:59 justJanne: what region? Sep 02 04:48:18 Germany, the most risk-hating place on the planet Sep 02 04:48:24 ah ok Sep 02 04:48:25 It's crazy that so many people answer my question without even asking additional questions Sep 02 04:48:27 :-) Sep 02 04:48:34 Explains why so many people have tens of thousands of dollars in debt Sep 02 04:48:41 The place where "don't do debts" even is the governmental policy Sep 02 04:49:21 If you're buying the car cash instead of getting a loan, you're losing money Sep 02 04:49:31 It's really basic financial management, yet few people get it Sep 02 04:49:38 No. Sep 02 04:49:42 justJanne: One example: you can monopolize a market quickly by taking a loan and making a big investiment or proceed more slowly. You don't take the loan, your competitor does. You are out of the market. Sep 02 04:49:47 That only works if the investment is guaranteed safe Sep 02 04:49:54 justJanne: It is. Sep 02 04:50:02 There's few places where you can park 20k at that interest rare Sep 02 04:50:04 *rate Sep 02 04:50:21 There are hundreds of places. But you didnt' even bother asking, you just went with your dogma Sep 02 04:50:26 you could have asked Sep 02 04:50:29 Aha? Sep 02 04:50:35 Where do I get 0% risk? Sep 02 04:50:49 So let me add this piece of information: that place where you can invest at more than 3% is guaranteed. Do you stil think it's wise to buy the car with cash? Sep 02 04:50:57 Except for consumer cooperatives like REWE Sep 02 04:51:02 Yes. Sep 02 04:51:07 I still buy it with cash. Sep 02 04:51:16 Then you're being stupid with your money. Sep 02 04:51:27 False. Sep 02 04:51:34 I would buy a car with cash but I'd take a loan to make investments for a company Sep 02 04:51:38 The bank could demand an early payment on the loan. Sep 02 04:51:50 The bank could demand additional securities. Sep 02 04:52:05 I might end up with the money bound for a few more months in an investment, Sep 02 04:52:10 Can't get it out, Sep 02 04:52:15 I just told you the investment is safe and yet, you're going with the stupid decision. It's baffling. And probably illustrative of how most people manage their moneyu Sep 02 04:52:16 And need to pay for the loan today Sep 02 04:52:16 Unless the car was an investment for a company Sep 02 04:52:37 CedricBeust, that's not how reality works Sep 02 04:52:57 That's how you become dependent on third parties that could at any time crush you Sep 02 04:52:58 I gave you a problem with very simple parameters. Sep 02 04:53:13 Do not ever do business deals that allow anyone else to gain control over you Sep 02 04:53:14 You keep inventing extra parameters to the problem to make your answer right, but it's really not Sep 02 04:53:27 I try pointing to reality Sep 02 04:53:30 justJanne and CedricBeust don't beat each other up Sep 02 04:53:36 Yeah Sep 02 04:53:45 Spherical cows in a vacuum should invest into a loan Sep 02 04:54:03 But even then I wouldn't do it for moral reasons Sep 02 04:54:10 As you just support investment banking Sep 02 04:54:19 Long live Angela Merkel! Sep 02 04:54:21 It's a tragedy that basic financial management is not taught in school, this leads to the kind of thinking that justJanne is following and convinced is right Sep 02 04:54:29 and why Americans are in average $20k in credit card debt Sep 02 04:54:37 Eh what? Sep 02 04:54:37 CedricBeust: I always buy with cash Sep 02 04:54:47 and dont have a loan ;P Sep 02 04:54:51 You are just proposing I buy with credit card or loans a car Sep 02 04:54:54 gordon_: That's stupid too. Use your judgment, sometimes buy with case, sometimes use credit. Sep 02 04:55:01 You are the one suggesting I go in debt Sep 02 04:55:05 No. Sep 02 04:55:10 Yes. Sep 02 04:55:13 You just did. Sep 02 04:55:15 I'm the one suggesting everything needs to be looked at on a case-per-case basis Sep 02 04:55:29 Not "never go in debt" or "always buy with cash" Sep 02 04:55:30 CedricBeust: I just.. dont need to go for credit Sep 02 04:55:33 And I'm saying it doesn't apply for any debt with above 0% interest Sep 02 04:55:43 but I also dont buy expensive things :) Sep 02 04:55:48 gordon_: are you a millionaire? Sep 02 04:55:51 Just because you have the cash to buy something doesn't mean you should. Be smart. Sep 02 04:56:05 Arancio: what if I am ? :D Sep 02 04:56:05 Yes, I'm smart and buy with cash Sep 02 04:56:12 That avoids risks. Sep 02 04:56:14 justJanne: Then you're not smart. Sep 02 04:56:24 gordon_: I'd be happy for you Sep 02 04:56:24 You're throwing money down the drain Sep 02 04:56:26 CedricBeust: again, any risk is too much Sep 02 04:56:30 Arancio: thanks! Sep 02 04:56:44 I'd rather lose out on 0.1% money I could have made extra, Sep 02 04:56:54 Instead of having any non-zero chance of risj Sep 02 04:56:56 *risk Sep 02 04:57:21 I also don't believe in artificially grown companies like the entire startup economy Sep 02 04:57:24 justJanne: 'the one who doesnt take a risk, doesnt gain' ;) Sep 02 04:57:24 Rich people became rich because they assessed risk Sep 02 04:57:31 No. Sep 02 04:57:35 It's like poker. Understanding probabilities and doing simple math Sep 02 04:57:45 The 3 richest germans became rich because they never took a risk Sep 02 04:57:47 Or a loan Sep 02 04:57:47 rich people become rich because of the Illuminati Sep 02 04:57:53 Or anything on credit Sep 02 04:57:54 justJanne: Doesn't prove anything Sep 02 04:58:15 "This guy became rich playing the roulette" <-- doesn't prove anything Sep 02 04:58:31 Well, you suggest I play roulette Sep 02 04:58:39 Where did I do that? Sep 02 04:58:41 You're the one suggesting I gamble away the money Sep 02 04:58:45 By investing it Sep 02 04:58:57 Never did that either Sep 02 04:59:02 Yes, you did Sep 02 04:59:12 I have to make some CRUD activities. Let's consider the "create" activity. I press a "+" button somewhere and the "create" activity is activated, empty. When should I actually create a row in the database? Right away? When the user presses a "commit" button? What's the Android way to do it in typical applications? Sep 02 04:59:13 * CedricBeust facepalms Sep 02 04:59:20 Anyway, let's move on Sep 02 04:59:24 You suggested people should invest money they got from taking out loans Sep 02 04:59:32 Arancio: typically, immediately with an option to undo Sep 02 04:59:40 Yeah, guys, let's move on Sep 02 04:59:42 You really didn't understand anything I said, which doesn't surprise me. Anyway, back to android-dev Sep 02 05:00:12 speaking of credit, I just applied for the new sapphire reserve card, it looks awesome Sep 02 05:00:12 You suggested i apply the concepts of fractional reserve banking on a personal level Sep 02 05:00:16 Arancio: I dont think there's "typical way" of doing this Sep 02 05:00:22 CedricBeust: this would not be the first time that justJanne has argued an irrationally dogmatic position Sep 02 05:00:23 Have a basic set of money, Sep 02 05:00:25 Rich people became rich because they assessed risk Sep 02 05:00:26 Take out loans, Sep 02 05:00:29 Leeds: thanks. And what if some fields can't be empty. Should I wait for them to be filled and the commit? Should I pre-fill them with some acceptable values? Sep 02 05:00:34 And invest the loaned money again Sep 02 05:00:38 i hope I get it Sep 02 05:00:38 That's the basic concept Sep 02 05:00:39 justJanne: We're moving on Sep 02 05:00:40 rich people became rich because of the Illuminati Sep 02 05:00:43 Leeds is right Sep 02 05:00:46 haha Sep 02 05:00:53 That's not in any way sustainable, though Sep 02 05:01:02 justJanne, earned their self a place on my permanent ignore list Sep 02 05:01:13 You described a nice way to build a company that lasts a few decades, Sep 02 05:01:24 But not a company that lasts a millenium Sep 02 05:01:24 justJanne: Please stop Sep 02 05:01:50 You tried to discuss it, so discuss it then, or admit defeat Sep 02 05:01:53 justJanne: do you have companies that lasted a millennium in Germany? Sep 02 05:01:54 Arancio: depends on your context, of course - if you're creating a new record, you can't do it until the minimum required fields are present Sep 02 05:02:04 The answer to it is the best decider of whether to take on debt is usually the agent in question Sep 02 05:02:05 Arancio: actually, quite a few dozen Sep 02 05:02:22 * Leeds resists urge to make 1000-year Reich comment Sep 02 05:02:28 * Leeds fails to resist urge Sep 02 05:02:30 Arancio: also, I'd suggest creating the row only after the user entered actual data Sep 02 05:02:56 As long as the row to insert would be empty, it just doesn't make sense Sep 02 05:03:10 For example, take the AOSP contacts ot calender app Sep 02 05:03:15 They do something similar Sep 02 05:03:27 yeah, that's why I mentioned pre-filling fields with acceptable data Sep 02 05:03:39 justJanne: I'll look at that application thanks Sep 02 05:03:53 It always depends on how much you can prefill Sep 02 05:04:17 If you can pre fill enough that it is useful, as, for example, in the calendar app, saving right away is useful Sep 02 05:04:31 If you can't prefill anything, as in contacts, it's just useless Sep 02 05:04:42 Right Sep 02 05:04:52 thanks Sep 02 05:05:12 justJanne: what kinds of company lasted 1000 years in Germany' Sep 02 05:05:13 ? Sep 02 05:05:17 companies Sep 02 05:05:32 Arancio: Topic Sep 02 05:05:44 CedricBeust: topic? Sep 02 05:05:52 Back on topic Sep 02 05:05:57 AHAHAH Sep 02 05:06:07 you talked about loans for an hour Sep 02 05:06:10 I ask 1 question Sep 02 05:06:28 I get hit in my head for being off topic Sep 02 05:06:31 funny Sep 02 05:06:43 Trust me you haven't been remotely close to being hit in the head :) Sep 02 05:09:51 Arancio: smaller to mid size companies usually controlling a niche Sep 02 05:10:38 Google "Hidden Champion" and "Mittelstand" Sep 02 05:11:36 Often controlling the entire global supply for an entire product category, but which just isn't a very large market Sep 02 05:13:24 justJanne: topic! :D Sep 02 05:15:31 The biggest reason in tech why you shouldn't rely on third party services is data privacy laws, though Sep 02 05:15:58 If you give any data to a company, and they can access user data? You can go to jail for that Sep 02 05:16:22 Really depends on whether you think you can do a better job at privacy than this other company can Sep 02 05:16:30 No, Sep 02 05:16:46 The laws literally say handing data over to a third party is a criminal offense Sep 02 05:16:56 Does it now Sep 02 05:17:15 If I get userdata, I can't give that unencrypted to a third party, unless the user agreed before I collected the data Sep 02 05:17:25 I'm really wondering if you're being serious Sep 02 05:17:39 Yes, that's seriously German all. Sep 02 05:17:41 *law Sep 02 05:17:49 Do you happen to know about the US? Sep 02 05:18:03 That would be a good argument against anti-Google. Sep 02 05:18:03 I can find you a lawyer tomorrow and get you a legal opinion on that Sep 02 05:18:12 Sounds like a misguided interpretation of the law Sep 02 05:18:16 I don't know German law but the simple statement that handing off data to a third party is illegal is preposterous Sep 02 05:18:21 No, I don't know much about the US Sep 02 05:18:27 CedricBeust data in a readable form Sep 02 05:18:32 So no Internet for Germany then Sep 02 05:18:41 Why? Sep 02 05:18:48 You can give your own data to google, Sep 02 05:18:58 But no dev can just give your data, say, to advertisera Sep 02 05:18:59 hahaha... EU data sharing laws as US just negotiated with Sep 02 05:19:01 Or to google Sep 02 05:19:10 It's almost as if German law says "https or gtfo" Sep 02 05:19:51 Wait, I thought it was common sense that you can't share data/analytics with third parties without the users consent? Sep 02 05:20:11 Well, I'd assume the same. Sep 02 05:20:13 VerbalKint: It is. I think justJanne is again just making up stuff Sep 02 05:20:15 ask At&t Sep 02 05:20:21 Germany has its own Internet. It's called "Infobahn" Sep 02 05:20:23 At any rate, enough with this nonsense. Back to Android Sep 02 05:20:23 But cultural contexts around the world differ Sep 02 05:20:34 CedricBeust: how am I making things up? Sep 02 05:20:37 And "consent" usually means a paragraph that no-one will read and says "WE OWN YOUR SOUL, NOW!" Sep 02 05:20:37 Right, back on topic! Sep 02 05:20:40 That's literally ehat I said? Sep 02 05:20:56 Arancio, data privacy of user data is on topic Sep 02 05:21:10 No. Android coding discussions are on topic. Sep 02 05:21:11 That's quite an important thing regarding firebase Sep 02 05:21:19 still arguing? Sep 02 05:21:24 No, android app development is on topix Sep 02 05:21:43 The tradeoffs of using services like firebase belong into that category Sep 02 05:21:54 i just rinsed my hand for 10 minutes and it still smells like bleach, now what ? Sep 02 05:22:17 * g00s panics Sep 02 05:22:17 Which was what we were talking about originally, the tradeoff of using firebase Sep 02 05:22:18 I have just bought myself some milk Sep 02 05:22:19 better than it smell like jake Sep 02 05:22:33 and cookies Sep 02 05:22:38 😆 Sep 02 05:23:53 justJanne: honestly, I'm more afraid of some really nuts competitor suing me if I don't make an appropriate ToS and stuff than of the actual users suing Sep 02 05:24:03 For example, I inquired with the data privacy official from the state government here, and according to their legal interpretation, if I develop an IM app, even with approval from the users, until privacy shield has been passed, I can not send actual message content via firebase cloud messaging Sep 02 05:24:19 VerbalKint: I'm more worried about Thilo Weichert suing Sep 02 05:24:32 VerbalKint: what is tos? Sep 02 05:24:43 The data privacy official that's known for starting and winning at least one anti-facebook case every quartal Sep 02 05:24:44 squ: Terms of Service Sep 02 05:24:55 justJanne interesting Sep 02 05:25:39 justJanne: what is that privacy shield? Sep 02 05:25:48 yeah, US has really no regulation on this at all ... so from this context its easy to see germany as being strict Sep 02 05:26:08 I'd say if you can avoid firebase you better avoid it :) Sep 02 05:26:09 squ: a treaty that declares that EU and US privacy laws have to consider each other equivalent, Sep 02 05:26:13 g00s: still better than smell of poo Sep 02 05:26:24 Which in turn allows passing userdata between EU and US Sep 02 05:26:28 EU data privacy laws... isn't that what's responsible for a whole shitload of websites still explaining cookies to me Sep 02 05:26:42 capella-5x: yes Sep 02 05:26:43 :) Sep 02 05:26:46 capella-5x: no, that's people misinterpreting the law Sep 02 05:26:49 justJanne: and it means users from EU can't use firebase because it is US? Sep 02 05:26:50 ☺️ Sep 02 05:27:04 The law says that the DNT header can be interpreted as approval already, Sep 02 05:27:21 what is dnt Sep 02 05:27:25 And tjat no cookie warning is required for technical cookies (login, settings, etc) Sep 02 05:27:38 But only for analytical cookies (say, Google anakytics) Sep 02 05:28:09 But as always, no one actually read the law, and so we have millions of websites spamming you with alerts that are completely useless Sep 02 05:28:12 google analytics webpage warns that you have to notice users about it Sep 02 05:28:39 topic! Sep 02 05:29:01 Yes, if you use analytics in your website or app, you have to get approval from users, Sep 02 05:29:08 Via a dialog or dnt header Sep 02 05:29:09 justJanne: but I think that most websites are using Google Analytics Sep 02 05:29:18 justJanne: I'm using it on my website Sep 02 05:29:26 Well, that's an issue then Sep 02 05:29:54 justJanne: I do tell my users about it Sep 02 05:29:57 I use a custom self-written trackingfree solution for web analytics, which avoids the legal issues Sep 02 05:30:00 you have to warn and ask users Sep 02 05:30:20 Greetings everyone. At work, I've been tasked with learning how to create an Android app for our library. My background is Python, and I know no Java (yet?). I've been given until July 2017 to start on it, and if I don't complete a finished product, it's not critical. Sep 02 05:31:00 nice story Sep 02 05:31:00 justJanne: :D Sep 02 05:31:01 take off 6 months immediately, you've got tine Sep 02 05:31:03 recmatr: you are working till 2017 ? Sep 02 05:31:16 recmatr: Once you know one language, you can easily learn most of them. Sep 02 05:31:18 My question: would I be able to learn a sufficient amount of Java and Android Dev to complete it in time, with dedication given no knowledge, but a programming background, or figure out some PyGame workaround as I've seen done before. Sep 02 05:31:24 recmatr: do you mean they hired you to learn android till July 2017? Sep 02 05:31:35 You knew my question before I asked :) Sep 02 05:31:39 recmatr: You can build a simple Android app in less than a week. Sep 02 05:31:47 I work as a maintenance/network technician. Sep 02 05:32:13 Given the relative lack of advancement opportunities in the area I live in, I'm having a say in how my skills are developed with the needs of the library. Sep 02 05:32:16 get some java knowledge before starting android Sep 02 05:32:33 First, get general java knowledge, yes. Sep 02 05:32:49 Then, Google has a udacity course that's supposed to be quite good Sep 02 05:32:56 recmatr: https://docs.oracle.com/javase/tutorial/ Sep 02 05:33:05 No need to to go overkill on Java itself. Sep 02 05:33:10 For Java learning materials, most universities have textbooks for free as epub Sep 02 05:33:13 recmatr: pass this tutorial in 1/3 of given time. Spent 2/3 of time for android Sep 02 05:33:29 Easily readable in 2 weeks, and giving an in depth knowledge about java Sep 02 05:33:48 recmatr: out of 1/3, do one half for theory and half for practically doing java Sep 02 05:33:58 I have some online resources provided to me that seem good; Treehouse if anyone is familiar with that. Sep 02 05:34:04 Unsure of the quality in comparison to others out there. Sep 02 05:34:23 I've heard good things about Treeohuse. Sep 02 05:34:43 Well I thank you all for your answers. I'm going back to my reading. Sep 02 05:34:44 recmatr: There is also this: https://developer.android.com/training/index.html. Sep 02 05:35:07 recmatr: leave android for now Sep 02 05:35:32 get familiar with java first Sep 02 05:38:33 if I store something in the application object, the application gets closed/shut down, is any variable stored under the application object still available ? or should I persist them Sep 02 05:38:43 if I want them to be around the next time the user opens the app Sep 02 05:43:19 er, if you want data to be persistent, persist it :) Sep 02 05:45:14 is there an easy pure object database for android ? just to persist an object without the need to object-relational mapping ? Sep 02 05:46:26 why i need setDrawerListener ? my code is works well without it Sep 02 05:47:14 hm I guess I ll just take internal storage Sep 02 05:47:31 tilerendering: sharedpreferences is the easiest way to store simple things Sep 02 05:50:21 http://i.imgur.com/Os5grG4.png Sep 02 05:51:06 squ that looks like ios devpt Sep 02 05:51:06 I've got a curious problem. In my app I have a view that is displayed as an overlay on my activity. This works fine. When I call the .hide() and .show() actions from a fragment, they work perfectly. However, when I call the hide and show actions from an adapter I get a nullpointerexception... Sep 02 05:51:20 tilerendering: yes Sep 02 05:51:23 Does anyone have any ideas why that might be happening? Sep 02 05:51:28 reaxion: Can you pastebin your code? Sep 02 05:51:41 Ok Sep 02 05:52:34 reaxion: the stack trace will tell you what field is null. Then make sure it's not null Sep 02 05:52:51 It's the overlay object that becomes null when called from the adapter. Sep 02 05:53:16 You're probably not getting a reference the same way in the two objects Sep 02 05:53:22 it looks like in android, this is the best option: https://androidresearch.wordpress.com/2013/04/07/caching-objects-in-android-internal-storage/ Sep 02 05:53:28 Take the right way, apply it in your adapter Sep 02 05:54:57 NullPointerExceptions are probably one of the most common issues, but also one of the easiest to debug and resolve Sep 02 06:00:48 Ahhh Sep 02 06:01:08 It appears my Adapter is reinitialising the service. All values are null. :D Sep 02 06:01:25 I'll try binding to it instead. Sep 02 06:07:35 Is it me or Android's RNG sucks? Sep 02 06:09:00 https://twitter.com/5SOS/status/767129729228902401 Sep 02 06:17:50 how can you tell Sep 02 06:18:46 the SecureRandom was kinda broken till android 4.3(?) Sep 02 06:18:59 and Random should be sufficient for most non-crypto cases Sep 02 08:25:19 squ: so hardcore Sep 02 08:36:53 ))) Sep 02 08:37:39 I get the error during build Multiple dex files define package. Is there any way to see which dex files reference the duplicate package? Sep 02 08:48:34 I found it, I have the same dependency in two modules, I thought gradle excludes them automatically? Sep 02 08:48:49 squ: are you Russian? :P Sep 02 08:56:11 I found this answer by commonsware http://stackoverflow.com/questions/20989317/multiple-dex-files-define-landroid-support-v4-accessibilityservice-accessibility Sep 02 08:56:28 However, if I remove the nested dependency I get package does not exist Sep 02 08:56:41 because the nested module needs the dependency as well Sep 02 09:02:38 I tried adding exclude group: 'com.package' but get an error with the defaultdependencyhandler if I do that Sep 02 09:02:53 Unless you're copying around jars there'll be no issue with having the same dependency defined in multiple places Sep 02 09:03:11 I migrated to artifacts Sep 02 09:03:21 The problem is that two libs have the same dependency within the artifact Sep 02 09:03:46 So lib1 and lib2 both have some packages/classes with the same name Sep 02 09:07:36 Two different dependencies can't have the same classes. If it's same same dependency, you can define it in as many modules as you like Sep 02 09:08:51 It looks like other people have this problem here http://stackoverflow.com/questions/20989317/multiple-dex-files-define-landroid-support-v4-accessibilityservice-accessibility Sep 02 09:09:00 But the excluding doesn't work. Sep 02 09:10:45 Right, that's what I just told you. Two different dependencies (com.google.android:support-v4:r7 and com.android.support:support-v4:18.0.+) define the same classes Sep 02 09:11:02 If just one of those were used both places there'd be no issue Sep 02 09:12:50 OK, but I can't change the inner workings of the dependencies Sep 02 09:12:58 Both use the same package.Class Sep 02 09:13:24 Then you can't have both Sep 02 09:13:34 Anyway, what two dependencies define classes in the same package and with the same name? Sep 02 09:14:09 Multiple dex files define Lorg/apache/commons/lang3/ArrayUtils$1; Sep 02 09:14:53 Are you sure the apache libraries don't have a common dependency where that class is defined? Sep 02 09:15:10 Not sure I understand Sep 02 09:15:25 Do you guys that using a background image of 1024x1024 will put a strain on resources when resizing it to smaller or larger resolutions? Sep 02 09:15:35 I have lib1, which has some apache commons classes and lib2, which has some as well Sep 02 09:15:51 Wait, so you copied those classes into your project? Sep 02 09:15:56 Now I'm not sure I understand Sep 02 09:16:25 Use maven dependencies Sep 02 09:16:35 In maven I use org.apache.commonscommons-lang3 Sep 02 09:16:42 And I want to do that in gradle as well Sep 02 09:18:27 So one ArrayUtils is from that dependency.. Where's the other from? Sep 02 09:18:40 From lib2 Sep 02 09:18:50 So you copied it into lib2? Sep 02 09:18:50 I only want the lib2 apache commons, not the lib1 Sep 02 09:19:13 No, one is used by the server-interface, one is used with the app Sep 02 09:19:34 I didn't create these libs Sep 02 09:20:14 I wonder why exclude group: 'org.apache.commons', module: 'commons-lang3' doesn't work Sep 02 09:20:23 Why did copy ArrayUtils into lib2 instead of just adding a dependency on commons-lang3? Sep 02 09:21:47 Or copying it to their own package, then you'd avoid this issue Sep 02 09:22:23 Probably because one lib was created by the server guys and one by the app guys and they happened to use the same class in both projecst Sep 02 09:22:39 Is there no way to exclude it as is possible in maven? Sep 02 09:22:46 https://discuss.gradle.org/t/how-to-exclude-transitive-dependency/2119/2 Sep 02 09:23:08 Sure, excluding works Sep 02 09:23:44 I agree that long-term the underlying issue should be resolved Sep 02 09:24:01 But right now I want a proof that migrating to AS is actually possible Sep 02 09:24:34 If I do exclude group: 'org.apache.commons', module: 'commons-lang3' I get could not find method for lib1 Sep 02 09:25:19 So, I like to have no warnings/errors in my IDE at all, even if everything works fine. I'm seeing an error I'm not sure on though. it's in my gradle project file, I have https://gist.github.com/sdousley/cdde664efac94bae28e6b51faf5306b7 and it's highlighting the new File() saying the constructor is Ambiguous Sep 02 09:26:13 I have an EditText where the user can fill in text on 2 rows/lines , but if I reach the end of the first line in the middle of a word, it cuts the word in the middle and places the second half on the next line, which looks horrible, any way to handle that? Sep 02 09:28:04 compile 'com.org.myapp:server-interface:1.0.0.0:app' { exclude group: 'org.apache.commons', module: 'commons-lang3' } Sep 02 09:28:22 This exclusion looks the same as in the example but I get an error on them Sep 02 09:28:24 Any ideas why? Sep 02 09:29:01 Haven't had that issue Sep 02 09:29:59 As long as the dependency is defined for the library, it'll be available to the library when compiling Sep 02 09:30:08 That it isn't included in the apk is irrelevant Sep 02 09:30:50 adding brackets helped Sep 02 09:31:14 compile ('com.org.myapp:server-interface:1.0.0.0:app') { exclude group: 'org.apache.commons', module: 'commons-lang3' } Sep 02 09:32:18 It's no longer in the dependency tree now. Let's see how the build goes this time. Sep 02 09:36:20 Same problem, different class :) Sep 02 09:46:03 I can't see how it would cause issues in the server-interface project Sep 02 09:56:32 Does anyone know, if I want only a specific flavor of our app to respond to specific URL's through intent filters, can I just put that part of the XML in the flavor source, or do I have to replicate the whole AndroidManifest.xml? Sep 02 09:57:43 Just the extra parts Sep 02 09:58:33 It's a science in itself http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger Sep 02 09:59:40 and I presume the new parts still need to be in the full structured position as if they were in the original Sep 02 09:59:54 That's what I was hoping Sep 02 10:00:11 we may end up just putting the feature in across the board, but just thought I'd check if it was possible per-flavor Sep 02 10:00:13 Yeah Sep 02 10:00:28 Assuming there's no overlap, it just merges the two manifests as you've defined them Sep 02 10:00:41 OK cool Sep 02 10:01:01 and if I have 2 intent-filters's on there (that's how I got it working in my testing) I presume I need to define both intent-filters? Or will it just merge them? Sep 02 10:03:24 I'm not actually sure. I would think it merges them Sep 02 10:03:54 The resulting manifest will be somewhere in build/ Sep 02 10:14:37 damn I forgot how to write viewholder Sep 02 10:15:02 OK, I'll have a look if/when we implement this Sep 02 10:15:36 gordon_: https://github.com/squm/template_recyclerview/blob/master/ListProd.java Sep 02 10:16:05 https://github.com/squm/template_recyclerview Sep 02 10:18:08 squ: wish, need to implement ListpopupWindow Sep 02 10:27:02 What's the "correct" way to make an input not editable? I currently have android:editable="false" on the Sep 02 10:27:11 but IntelliJ says that's deprecated and to use "inputType" instead Sep 02 10:27:24 though I can't see inputype as an attribute of the Sep 02 10:31:45 editText.setInputType(InputType.TYPE_NULL); Sep 02 10:32:30 and there is android:inputType="..." for xml Sep 02 10:34:00 oh, now I see why it's not auto-filling android:inputType Sep 02 10:34:02 I already have one! Sep 02 10:34:12 so do I set that to "none" for it to be non editable? Sep 02 10:34:45 actually i dont know Sep 02 10:36:00 https://developer.android.com/reference/android/text/InputType.html#TYPE_NULL Sep 02 10:36:15 Special content type for when no explicit type has been specified. althought i dont believe that Sep 02 10:39:16 does taht just mean it has no type though, so you can still edit it? Sep 02 10:39:36 Basically, this is a screen that the field gets filled with some content for the user to see, but I don't want them to change it at all. Sep 02 10:40:42 I know it's deprecated, but I think for now, I'll just leave android:editable="false" in place Sep 02 10:45:26 enabled = false, focusable = false, focusable in touch mode = false, etc Sep 02 10:46:00 hmmm, that's true Sep 02 10:46:19 oh, I have enabled=false already Sep 02 10:46:48 that might well be sufficient Sep 02 10:47:25 though I may also add in your suggestion of focusable=false Sep 02 10:47:44 My laptop is so bloody slow building the last couple days :( Sep 02 10:48:50 edit.setTextIsSelectable(true); Sep 02 10:48:55 sdousley: Sep 02 10:49:03 he wants the xml Sep 02 10:49:29 yeah, it's ALWAYS gonna be disabled, so I guess better in XML than Java Sep 02 10:49:59 try selectable attr Sep 02 10:51:27 gordon_: if you want real challenge try to setup exoplayer Sep 02 10:52:44 Ashiren: android:enabled="false" seems to have done the trick Sep 02 10:52:51 Don't know why I had android:editable on there now haha Sep 02 10:54:44 so, in Java, I have a label's text set with: Sep 02 10:54:46 amountLabel.setText(getString(R.string.label_amount, Currency.GBP)); Sep 02 10:54:49 can I do that in XML? Sep 02 10:56:56 can you select text with was "enable-falsed" ? Sep 02 10:57:20 looks like I can't do the above Java in XML :( Sep 02 10:57:21 ah wall Sep 02 10:57:22 well* Sep 02 10:57:26 squ: what do you mean? Sep 02 10:57:42 selecting text on screen to copy it Sep 02 10:57:44 so you could copy the contents of android:enabled="false" edittext? Sep 02 10:57:49 doesn't appear so no Sep 02 10:58:07 does it fit your case? Sep 02 10:58:26 yeah Sep 02 10:58:28 tbh Sep 02 10:58:33 I don't care if they can copy the content Sep 02 10:58:36 I just don't want them editing it Sep 02 10:58:51 then use label Sep 02 10:59:18 hmm, yeah, I gess, This is a copy of a screen where it's a field they can edit though, so to keep it looking the same, I did it as EditText Sep 02 10:59:38 I mean TextView Sep 02 10:59:54 point of readonly EditText is that it can be selected to copy Sep 02 11:01:39 /> Sep 02 11:01:39 Sep 02 11:01:52 consider this to replace EditText Sep 02 11:08:59 I'm developing an Android application, in which the user reads news, a-la facebook style, scrolling down. On the server side, when the user initiates a "reading session", I generate a row in a database table. When the user finishes with the application (i.e. the session ends), I want to remove that row. For websites, I read that people ping the ser Sep 02 11:08:59 ver regularly with keep-alive messages. I could make such a service, but is there a way to detect that the application has closed, so that I will stops sending the keep-alives? Sep 02 11:11:35 The other thing I could do is to automatically expire the session in 18 hours. If the user reopens the app after that time, the news will re-load. I believe this will be rare anyway, as android kills activities. Sep 02 11:22:32 what´s the typical push notification lag (time between generating push notification by say a server for a user), assuming that network connection is excellent ? Sep 02 11:54:22 tilerendering, what's wrong with your apostrophe Sep 02 11:54:54 oh - what’s wrong with it, how does it appear at your side ? Sep 02 11:54:57 How can I get gradle to bundle layouts that are in a lib to be included? I have an app that depends on this lib and needs a layout, but get an NPE during runtime. Sep 02 11:55:26 I have compile project(:lib) in the build.gradle Sep 02 11:56:44 tilerendering, it looks like ´ instead of ' Sep 02 11:59:32 tilerendering: Jiggunjer__ same for me, I see ? rather than ' Sep 02 12:00:37 is this one ok ? ‘ Sep 02 12:00:46 in his first sentence it was "accent acute". Sep 02 12:00:56 Now it seems changed to "right slanted quotation" Sep 02 12:01:01 hm - time to check the character settings here Sep 02 12:01:11 what should I choose ? Sep 02 12:01:23 normal ascii quote (straight) Sep 02 12:01:42 I mean which encoding scheme ? any idea ? Sep 02 12:02:06 for windows? Sep 02 12:02:08 i have unicode utf-8 here Sep 02 12:02:12 it s osx Sep 02 12:03:24 I think it just depends on your keyboard settings. Hexchat is unicode compatible. On windows I'd say just select english US keyboard Sep 02 12:03:42 oh I'm using hexchat :p Sep 02 12:03:46 you might not be xD Sep 02 12:03:51 I specified sourceSets main.resources.srcDirs = ['res'] Sep 02 12:04:07 But the module that has this dependency can't find the layout.xml Sep 02 12:04:38 Android library projects resources are included by default, no need to do anything further Sep 02 12:04:55 hithere Sep 02 12:05:17 The module that uses the lib has no resources of its own Sep 02 12:05:33 It's a lib as well Sep 02 12:05:42 That's fine Sep 02 12:06:01 I have debug (not signed) version of app which is working normally. Problem is with signed app which is throwing this error "W/SupportMenuInflater: Cannot instantiate class: android.support.v7.widget.SearchView java.lang.NoSuchMethodException: " Sep 02 12:06:47 LinearLayout contentView = (LinearLayout) mBaseView.findViewById(R.id.baseview) returns null in this module, baseview is in the lib Sep 02 12:07:25 And in that Activity I have import com.org.lib.R Sep 02 12:07:39 Doesn't necessarily mean resources aren't being included Sep 02 12:07:53 But, by default library projects resources are included Sep 02 12:08:00 If they're not, it's probably something you did Sep 02 12:08:15 It works with the maven build, dunno if I need to configure anything else in gradle Sep 02 12:08:42 It works with gradle builds in my projects Sep 02 12:08:59 Do you specify sourceSets? Sep 02 12:09:04 Or just leave out that block Sep 02 12:09:15 No. As I said, included by default Sep 02 12:09:22 OK, I'll remove that Sep 02 12:09:51 Assuming, of course, your project structure is as documented: http://tools.android.com/tech-docs/new-build-system/user-guide Sep 02 12:11:04 Hello guys, in one of my activities, there is a textbox in the middle of the screen as well as a button under it. However when people write on it, the keyboard shows up and after writing, they can't see the button and therefore are not able to tap on it to proceed. How can I fix this? can I add a done or go key in the keyboard ? instead of having the new line key which is entirely usless in that situation Sep 02 12:11:37 I have src/main/res, not src/main/resources/res Sep 02 12:12:04 That's right Sep 02 12:13:44 Which is right? Sep 02 12:13:57 src/main/res Sep 02 12:16:03 If I remove the sourceSets it stops finding classes Sep 02 12:18:18 Sounds like you messed up your project structure. You can have sourceSets if you want, it's just not needed if you follow the gradle structure Sep 02 12:19:12 I imported the eclipse projects so probably still have the eclipse structure Sep 02 12:27:50 Do I need to define the srcSets in the module that has no res itself as well? Sep 02 12:28:56 If you're not using the standard gradle structure, each module needs to define its own resources Sep 02 12:30:26 What if the module has no res of its own and only uses the lib's res? Sep 02 12:30:43 No, that's what dependencies are for Sep 02 12:31:28 I have this in the module that has no res https://ghostbin.com/paste/8fg6r Sep 02 12:32:11 If I remove java.srcDirs the build breaks Sep 02 12:33:45 I'll try building removing the res from there Sep 02 12:38:03 is there a tool to visualize activity flow ? Sep 02 12:43:03 I still get the nullpointer due to missing resources Sep 02 12:43:13 What do you mean by that tilerendering ? Sep 02 12:43:25 A tree where you can see navigation paths between Activities? Sep 02 12:43:50 yes Sep 02 12:44:05 Not that I know of. Sep 02 12:44:24 Would need to be a very clever tool to analyze all of the options. Sep 02 12:45:23 ok Sep 02 12:45:37 basically it cant be done without very intelligent code analysis you think ? Sep 02 12:46:17 You have tasks etc, flags like clear_top, I don't know if that can be done with static code analysis Sep 02 12:46:56 Is your App so complex that you can't sketch it out? Sep 02 12:48:30 SimonVT: I actually have the res in src/main/res, it's only missing in the projects that don't have a res folder Sep 02 12:48:41 barq nope I was just wondering Sep 02 13:02:21 Hello guys, in one of my activities, there is a textbox in the middle of the screen as well as a button under it. However when people write on it, the keyboard shows up and after writing, they can't see the button and therefore are not able to tap on it to proceed. How can I fix this? can I add a done or go key in the keyboard ? instead of having the new line key which is entirely usless in that situation Sep 02 13:04:49 you can do that Sep 02 13:05:18 https://developer.android.com/training/keyboard-input/style.html Sep 02 13:05:44 how do I get the current TransitionDrawable item? Sep 02 13:05:52 my god this sdk is so incomplete Sep 02 13:06:14 current transitiondrawable item? Sep 02 13:07:34 you know, in the xml you have two items into Sep 02 13:07:55 it seems there's way to understand which is the current one Sep 02 13:08:02 Do you guys think that rosy red is a good color for an application icon? Sep 02 13:08:40 I removed all of the res references and still get the NPE Sep 02 13:12:49 Hi, I have a question regardning the developer option "Wait for debugger", which debugger is it refering to, DDMS? Sep 02 13:14:51 actual debugger Sep 02 13:14:59 ddms is not a debugger Sep 02 13:15:09 it is a device monitor Sep 02 13:15:35 I had different versions of build tools in the build.gradles, trying if using the same makes any difference Sep 02 13:16:29 gdrc, may I ask what you might want to do? Sep 02 13:16:52 Zharf, which option should I use if I want to just hide the keyboard. So I press Done and the keyboard hides? Sep 02 13:18:44 android studio has an application navigation flow tool... Sep 02 13:18:51 never used it... Sep 02 13:20:47 ZeNEX, did you try imeOptions="actionDone"? not sure but I think it might just do what you want Sep 02 13:22:31 Zharf, does not exist Sep 02 13:23:12 Seems like they removed it http://tools.android.com/navigation-editor Sep 02 13:23:18 ... android:imeOptions... try filling in the blanks every now and then Sep 02 13:25:09 barq, oh, so much for that Sep 02 13:25:25 pfn: do you have a link on how to use the actual debugger? Im new to android development so please have patience Sep 02 13:25:47 orzen, click the bug toolbar icon in the ide Sep 02 13:25:55 dont have an IDE Sep 02 13:26:05 have a SDK Sep 02 13:26:07 orzen, it otherwise behaves the same as any other debugger in existence Sep 02 13:26:11 get an ide Sep 02 13:26:38 Zharf, does not work Sep 02 13:27:01 pfn: it's not provided by the SDK? Sep 02 13:27:25 pfn: which application flow tool in android studio ? never seen it Sep 02 13:27:42 ah Sep 02 13:27:54 orzen, sdk is not a debugger. Sep 02 13:28:02 ZeNEX, http://stackoverflow.com/questions/34308751/how-to-hide-the-soft-keyboard-on-ok-on-an-edittext-and-show-it-again Sep 02 13:28:55 Thanks Sep 02 13:28:58 tilerendering: Seems like it was only an editor, just a tool that makes the sketching easier. Sep 02 13:29:40 "Because Navigation Editor cannot understand all of the ways that it is possible to launch an Activity, it is possible (in fact likely) that large non-standard applications will have transitions that Navigation Editor cannot ‘see’. " Sep 02 13:30:11 barq: hm yeah then one might as well do it with visio or powerpoint Sep 02 13:31:16 people - what´s the typical latency of an android push notification ? Sep 02 13:31:37 say I want to inform app users about a new message in their inbox Sep 02 13:31:47 from server to client Sep 02 13:32:00 pfn: it's common that debugging tools are included in a SDK. But guess I need to install X server to write code :S Sep 02 13:32:11 *debug code Sep 02 13:32:12 you can use jdb Sep 02 13:32:16 no one does it Sep 02 13:32:23 google it Sep 02 13:32:37 thank you :) Sep 02 13:35:01 tilerendering: usually pretty fast, but can be up to 20-30 minutes Sep 02 13:37:10 SimonVT: would you implement your own message poller, or rather do everything through android push notifications, or a mix ? Sep 02 13:37:29 for instance, users should be informed very fast about the state of change of their order Sep 02 13:37:45 change of state I mean Sep 02 13:38:30 I think most messaging apps use push notifications when in the background, then open up their own connection once the app is launched Sep 02 13:38:55 Hello, I cant find how to change the global project name. The red rectangle on this picture : http://www.hostingpics.net/viewer.php?id=282134projectname.png Sep 02 13:38:56 how are push notifications disabled when the app is launched ? Sep 02 13:39:35 I assume their server checks if it's connected before sending push messages Sep 02 13:40:25 Or maybe it just sends and checks client side Sep 02 13:43:50 Still get an NPE, how can it be so hard to bundle a resource from an apklib Sep 02 13:45:03 nvm i just did it, by changing the name on the .idea/.name file Sep 02 13:45:10 apklib? Blast from the past Sep 02 13:46:57 barq, gradle does not support apklib Sep 02 13:47:07 repackage it as aar, call it a day Sep 02 13:50:36 hi. with dagger 2 is there any way to reset singletons. for example I inject some user related data. but after user logs out and another user logs in I want to refresh singletons with new user info. Sep 02 13:53:23 I have a native executable that requires using the framebuffer device. I'm on 4.4.2, the application fails with E/FramebufferNativeWindow( 80): couldn't open gralloc HAL (Operation not permitted). how do I convince android to let me run with the required permissions for /dev/graphics/fb*? Sep 02 13:53:56 * E/FramebufferNativeWindow( 80): couldn't open framebuffer HAL (Operation not permitted) Sep 02 13:54:11 SimonVT: can I programmatically disable push notifications every time the app is running in the foreground (i.e. which event would that be ?) and turn them on when the app is closed/put in background ? Sep 02 13:54:28 pfn: I did that, I have plugin library now Sep 02 13:56:07 I don't know. Probably better to just ignore then Sep 02 13:57:03 Is there a way to use waitForDebugger and attach from AS? Sep 02 13:57:27 Can't attach through ddms Sep 02 14:04:15 @barq there is a attach debugger to android process button by the run and debug buttons? Sep 02 14:05:41 The green bug, yes Sep 02 14:05:55 Doesn't work, because I don't have a launch activity Sep 02 14:06:01 So I wanted to attach manually Sep 02 14:06:08 As was possible in Eclipse with ddms Sep 02 14:07:08 I don't think launch activity matters. when you press it it shows debuggable processes not the activities. Sep 02 14:09:15 you can attach manually Sep 02 14:09:49 ctrl-shift-a attach Sep 02 14:15:53 Why is android studio so broken? :( Sep 02 14:15:59 Atleast the XML designer. Sep 02 14:17:37 What do you people use to develop your apps? Sep 02 14:18:21 Xatenev: set it to API23 and it should work fine Sep 02 14:18:29 API24 is broken af in designer for now Sep 02 14:18:35 Yea I read that im downloading another API versionj right now Sep 02 14:18:42 I see that Sep 02 14:18:50 I created like 3 example apps with 3 example activities and none of them work at all Sep 02 14:18:54 throwing like 20 errors lol Sep 02 14:19:07 I used Eclipse before but it's no longer supported, so I use AStudio as everyone else I guess Sep 02 14:19:13 oke Sep 02 14:19:23 I like the IDE a lot, it just killed me that the designer was so broken Sep 02 14:19:29 But I will check again when this download is finished. Sep 02 14:19:40 yup, 24 is not mature yet but once it is it should be just fine Sep 02 14:20:26 Going from web development to app development, thats a whole different world Sep 02 14:20:26 ^^ Sep 02 14:20:59 I got myself use to manually writing xml. it is fine for me as long as preview works. Sep 02 14:21:09 Yea the preview didnt really work at all on 24 Sep 02 14:21:20 It throwed me 20 errors all over the whole monitor and designer Sep 02 14:21:23 oh yeah, less worry about different browsers compatibility at least should be a relief Sep 02 14:21:46 bluk: Let me say it like that: Aslong as you dont use an emulator, app development is pretty fine Sep 02 14:21:49 no one uses the designer Sep 02 14:21:56 it's worthless Sep 02 14:22:00 Whys that? Sep 02 14:22:11 Seems pretty cool to get some basic layouting done fast, to get started with the real stuff Sep 02 14:22:12 the XML is just more powerful Sep 02 14:23:01 Sorry another question Sep 02 14:23:10 now I get Failed to load platform rendering library on the preview Sep 02 14:23:24 Ive read I have to adjust my manifest accordingly, but I didnt set a version in my androidmanifest Sep 02 14:23:26 up on the preview, change 24 to 23 Sep 02 14:23:31 Yea I did that Sep 02 14:23:34 now it throws me that error Sep 02 14:23:34 it doesn't get anything done fast Sep 02 14:24:07 Xatenev: also try selecting a theme then it might refresh Sep 02 14:24:40 it's just a noob trap Sep 02 14:25:02 pfn: ^^ yea Sep 02 14:25:09 but I would like if the preview would work ._. Sep 02 14:25:10 xD Sep 02 14:25:20 So I can write XML atleast - i changed the targetSdkVersion to 23 now Sep 02 14:25:25 in stackoverflow they say that should fix it Sep 02 14:25:43 Oh now I get errors in my java code xd Sep 02 14:25:46 it didn't fix it for me until I played with the design tropbar options Sep 02 14:25:51 topbar* Sep 02 14:26:22 Yea I did that already Sep 02 14:26:28 Which killed it. :p Sep 02 14:26:33 use instant run to write xml Sep 02 14:26:46 wow that looks serious :| Sep 02 14:26:58 WTF is this im serious Sep 02 14:27:01 I just wanna run an example app Sep 02 14:27:10 Hilarious Sep 02 14:27:38 Xatenev: also the manifest has less priority than the build.gradle Sep 02 14:27:50 set your target=23 here, in the gradle file Sep 02 14:28:21 did that Sep 02 14:28:27 use instant run to write xml <= yes sadly it works only with activities not with fragments so it's useless Sep 02 14:28:42 gdrc, still works with fragments Sep 02 14:29:08 the one restarted is the activity not the fragment Sep 02 14:29:20 so you need to do all the steps to reach the fragment Sep 02 14:29:58 instant run should reload you at the state where the fragment is loaded Sep 02 14:30:09 Yea it doesnt work Sep 02 14:30:10 no ide.a Sep 02 14:30:10 if it isn't, you're not saving state correctly Sep 02 14:30:16 I wanna run a basic example app xddd Sep 02 14:30:32 Xatenev: yeah I know... I don't remember what I had to do to fix it but that was really simple Sep 02 14:30:46 maybe rebuild project (equivalent of clean in eclipse) Sep 02 14:30:50 Did that Sep 02 14:30:52 stop using the designer, problem solved Sep 02 14:31:00 if you have errors, fix them Sep 02 14:31:04 pfn: nope, that doesn't answer the question Sep 02 14:31:17 how do I fix X? - don't use X is not helpful Sep 02 14:31:26 it absolutely answers the question, no one uses the designer Sep 02 14:31:30 that's why it's so shitty Sep 02 14:31:39 it should work regardless Sep 02 14:31:44 nope Sep 02 14:31:53 or it means something is broken, and more can be broken Sep 02 14:31:55 keep wasting your time Sep 02 14:31:55 the designer is the only thing better on android development compared ios dev Sep 02 14:31:57 the rest is shit Sep 02 14:32:07 designer works perfectly fine here I don't see why it shouldn't on his install Sep 02 14:32:16 everything on android is. better than ios, except the designer Sep 02 14:32:24 Im confused Sep 02 14:32:29 I created my ExampleApp3 Sep 02 14:32:31 now it all works fine Sep 02 14:32:32 pfn: sure Sep 02 14:32:35 While using API 24 Sep 02 14:32:59 Xatenev: well that looks like you fixed it then; maybe restart your other project's IDE Sep 02 14:33:11 you won't be using the designer for more than a couple minutes Sep 02 14:33:21 pfn: I still want the preview Sep 02 14:33:23 l0l Sep 02 14:33:34 no one uses the preview either Sep 02 14:33:48 I do right now. Sep 02 14:33:54 yeah, noob Sep 02 14:34:06 :) Sep 02 14:34:07 Damn your an annoying person Sep 02 14:34:09 holy^^ Sep 02 14:34:12 you'll stop using it soon Sep 02 14:34:14 Yea Sep 02 14:34:16 Maybe Sep 02 14:34:29 I am new to programming, want to make a specific app using android - can you suggest how can I learn to program on android relatively fast? Sep 02 14:34:30 that doesnt make it valid to keep saying its shit dont use it while a newcomer tries to setup an example project. Sep 02 14:34:33 thats hilarious :) Sep 02 14:34:51 don't try; he's right, you're wrong Sep 02 14:34:55 Xatenev, I've given you several great suggestions that obviate the designer Sep 02 14:34:59 instant run Sep 02 14:35:04 see UI instantly Sep 02 14:35:08 problem. solved Sep 02 14:35:18 Xatenev: this is not the android management. what could we do if it is broken? Sep 02 14:35:23 even if that's true that in the end you probably only use XML anyway Sep 02 14:35:30 vudu: Its obviously not broken because it works for others. Sep 02 14:36:12 pfn: do you do the layout programmatically? Sep 02 14:36:25 gdrc, depends on project Sep 02 14:36:27 or others don't use it as you want to use it. Sep 02 14:36:42 vudu: Others use it as I want to use it. Sep 02 14:36:55 gdrc, and yes programmatic layout is a goal of one of my projects Sep 02 14:37:05 I do that on iOS Sep 02 14:37:31 and I really miss the preview cause every time I have to build and run Sep 02 14:37:52 instant run Sep 02 14:37:58 with automatic triggering Sep 02 14:38:02 https://github.com/pfn/iota/blob/master/ViewTree.md Sep 02 14:38:39 https://youtu.be/LJLLyua0bYA Sep 02 14:38:44 example of such Sep 02 14:38:52 jimu mirror does similar Sep 02 14:39:10 instant run can do it as well, but less automatic Sep 02 14:40:55 hello, i want to develop a cross platform app, would you suggest a cross-platform development tool or should i go native for each? Sep 02 14:41:22 python is my language, but i m a fast learner, i did java 12 years ago Sep 02 14:41:41 basically means you've never done java :p Sep 02 14:42:03 Hello, I want to display inside my application xls, doc, pdf files. Is there a way to do this free ? I heard about Aspose, but API licence is 3k€ :s Sep 02 14:42:16 : Sep 02 14:42:30 multi os engine from Intel looks interesting Sep 02 14:44:08 kko: checked http://poi.apache.org/ yet? Sep 02 14:44:10 afidegnum: native, hybrid isnt there yet Sep 02 14:45:36 orbyt_: means i need to learn each langauge for the mobile OS Sep 02 14:46:09 correct Sep 02 14:47:36 that will take longer but let me try Sep 02 14:47:49 do you have some quick tutorial i can build on ? Sep 02 14:47:58 swift is worth learning, especially when it adopts higher kinded types Sep 02 14:48:28 bluk: i checked this yes, but its for files created with Excel/Word/Powerpoint 2008 maximum Sep 02 14:48:44 what about Xamarin? never used it myself but it seems to be popular/supported for cross-platform mobile dev Sep 02 14:50:28 xamarin is for C# coders, Sep 02 14:50:39 which i don't want to venture into now, Sep 02 14:50:45 hey, what's the best way of making a shared wall like facebook on an android app? mostly what makes the new messages get pushed to the devices? Sep 02 14:53:35 Xamarin is great. Free too. Sep 02 14:54:14 Sure it's C# but you'd have to learn Java/Objective C anyways for Android/iOS Sep 02 14:54:22 would Xamarin allow me to use SDK's from suppliers? Sep 02 14:54:31 o_o Sep 02 14:54:41 Currently we have an Android app (Java/XML) and iOS app (Swift) that we use the SDK for Sep 02 14:55:52 Like the SDKs direct from Android sources? Sep 02 14:55:54 Yes Sep 02 14:56:38 Part of setting up Xamarin is downloading and installing the actual SDK packages straight from Google Sep 02 14:56:57 j4f-shredder: usually some sort of push notification service like FCM/GCM Sep 02 14:58:07 Xamarin "integrates" with Android SDK Manager. Haven't used it for iOS, I imagine it's similar. Sep 02 14:59:12 afidegnum: C# is an easy language, if you coded in Java you will probably find it easier in C# Sep 02 15:00:38 it would be nice if Android Studio could show you the subset of supported views in a widget layout Sep 02 15:00:41 seems like you could even use F# :> Sep 02 15:01:17 Is there a list of all @android:Drawable icons? Sep 02 15:01:20 I need a check symbol :( Sep 02 15:01:33 Xatenev, yeah, i just saw this Sep 02 15:02:35 Xatenev, Drag an imageview into your layout, double click on it, and hit the "..." button next to 'src' Sep 02 15:03:01 a 'Resources' window will pop up with all the known drawables Sep 02 15:03:07 dsardari....GCM would that be good to say "everytime a new message get posted and inserted into my post table the users involved receive a notification"? Sep 02 15:03:07 thanks man! Sep 02 15:03:13 thebishop: that works prefectly Sep 02 15:03:17 :) Sep 02 15:04:46 dsardari, I'm using my own postgres database, not the firebase one Sep 02 15:39:12 looking at "android:nextFocusForward" and wondering it there a way to have a variable in XML that relates to java code. I need to make the nextFocus based on what the user inputs. and I can imagine hide some fields. (assuming this would be easier if i made multiple layouts and not done this way) Sep 02 15:44:50 dar10s_: do it in code. extend a ViewGroup or any of the pre-made layouts like FrameLayout and override focusSearch() function. https://developer.android.com/reference/android/view/ViewGroup.html#focusSearch(android.view.View, int) Sep 02 16:17:28 any help on pushing notifications to relevant users after insert on my postgres database? Sep 02 16:17:52 there is no info on this, I don't even know where to start Sep 02 16:20:13 https://developers.google.com/cloud-messaging/ Sep 02 16:24:01 Mann, isn't that deprecated? Sep 02 16:24:18 doesn't firebase have the same feature? Sep 02 16:24:44 the service should be on the server or on the client? Sep 02 16:24:52 I'm using nodejs server as an api Sep 02 16:25:17 so how is AS 2.2 RC ? Sep 02 16:25:30 * g00s summons adq , toughest critic evar Sep 02 16:26:31 Why isn't it released already? Sep 02 16:26:34 * adq has been summoned Sep 02 16:26:45 g00s, good question i just installed it 10 minutes ago Sep 02 16:27:07 already got a "REPORT TO GOOGLE": Connection has been shutdown: javax.net.ssl.SSLException: SSL peer shut down incorrectly Sep 02 16:27:08 lol Sep 02 16:28:42 to me, it looks darker than the release version Sep 02 16:29:04 shredder: fcm is the new gcm and the service will be on your server. you need client-side code to properly receive downstream messages. Sep 02 16:30:58 adq using mac ? Sep 02 16:31:20 What is the recommended way to implement a SQLite database? Wrap it in a Singleton? ContentProvider? Sep 02 16:31:21 not anymore Sep 02 16:31:31 heoy either works Sep 02 16:31:35 (it was on windows this time) Sep 02 16:31:46 ok, somebody getting window system crashing haha Sep 02 16:31:58 well this one comes with its own jvm Sep 02 16:31:58 I heard ContentProvider closes the Database connection automatically Sep 02 16:32:06 oh yeah i heard about the jvm Sep 02 16:32:10 heoy no it doesn't Sep 02 16:32:13 mainlyfor fixing... fonts iirc Sep 02 16:32:15 ridiculous Sep 02 16:32:28 g00s, http://androidessence.com/sqliteopenhelper-and-the-singleton-pattern/ Sep 02 16:32:29 adq its because oracle doesn't work on Swing any more Sep 02 16:32:57 i dunno wtf oracle is doing with UI in java, even JavaFX 2 has kinda stalled Sep 02 16:33:09 maybe, everybody realizes its a crapy language for clients :) Sep 02 16:33:30 eheh no clue, but AS is using different subsystem to render due to different plaform Sep 02 16:33:41 like they use D2D or D3D on win iirc, opengl on other platform, etc Sep 02 16:34:08 i think its all the same, all swing, across all platforms ... just the mac jvm from oracle doesn't have subpixel font AA enabled Sep 02 16:34:21 these kinds of options: sun.java2d.d3d=false (only for win) Sep 02 16:34:25 -_-" Sep 02 16:34:29 :( Sep 02 16:35:08 #editor.zero.latency.typing=true Sep 02 16:35:08 < not sure if this one still works (# is a comment) Sep 02 16:35:26 oh yeah, i don't think it made the cut Sep 02 16:35:28 it was an experimental way to render letter iirc, and a faster way Sep 02 16:35:33 next version of intellij Sep 02 16:37:23 this is huge https://www.reddit.com/r/androiddev/comments/50t8ej/now_when_play_store_rejects_an_update_they_tell/ Sep 02 16:37:39 should have been like that years ago, only fair Sep 02 16:37:57 hard knowing wtf those deep NN are doing :P Sep 02 16:40:04 still lacking of precision for me Sep 02 16:40:46 and very early, when you had like a DMCA strike (not exactly the same case), all details were providen, including who is complaining and what they are complaining about Sep 02 16:41:00 adq yeah ... Sep 02 16:41:09 now it's a big "?" sometimes Sep 02 16:43:08 I've read the firebase cloud message docs, is the token the same as the authentication token that you receive on firebase authentication or I have to ask for an additional one? Sep 02 16:43:15 i think the major problem is it's still unfair, despite having some interrogation about what is not compliant due to lack of info about, i mean unfair like thousands if not more other app are infringing on purpose while some ppl get suspended for far less than that and of course not on purpose Sep 02 16:43:30 of course, it's not their job to determine if it's on purpose or not Sep 02 16:43:51 so Google is finally catching up to Apple in that regard? Sep 02 16:44:02 still miles away Sep 02 16:49:36 so anyone else getting weird robolectric failures on plugin 2.2.0 Sep 02 16:50:03 it's like, if I run gradlew testDebug, the resources don't get copied over anymore and of course then robolectric can't find them Sep 02 16:50:38 so now I run gradlew clean mergeDebugAssets testDebug Sep 02 16:50:41 which works Sep 02 16:50:54 but a voice in the back of my head is telling me "you should file a bug missingno" Sep 02 17:03:05 hvac guy is amazed compressor from 1982 still works great ... says newer ones built ~ 2008 already being replaced. so i guess mobile phones aren't the only ones with planned obsolescence Sep 02 17:06:39 kind of like how my nokia 3310 still works yet the first android phone i got is dead :) Sep 02 17:07:49 hi how are you doing these days? Sep 02 17:16:18 g00s: of course not Sep 02 17:16:35 my washing machine broke recently Sep 02 17:16:52 part that broke used a torx screw Sep 02 17:17:19 every other screw was a philips head Sep 02 17:18:52 every part that was likely to wear quickly was *designed* to be difficult to replace Sep 02 17:23:57 It's not like Earth's resources are limited and have pollution problems, so we can afford planned obsolescence Sep 02 17:25:35 but all those 8 years old kids mounting chips on boards and plastic cases will be unemployed Sep 02 17:26:04 lol Sep 02 17:26:19 Man, that was a really assholeish lol Sep 02 17:26:53 I feel sick now X_X Sep 02 17:32:11 VerbalKint don't worry free market will solve that :P Sep 02 17:33:59 I don't know where I heard this quote and half of it I might be remembering wrong, but it goes like this: "There are 2 kinds of people that believe in unlimited resources: insane people and economists" :D Sep 02 17:41:36 Made a cool application icon that had a "The Thinker" statue in it, but at low resolutions it looked like the guy was taking a dump... Sep 02 17:42:16 Looked awesome at high resolution, though Sep 02 17:43:05 And another award-winning conversation on #android-dev :P Sep 02 17:50:11 lol Sep 02 18:00:25 I just found an application called mCent that gives you free of charge time to talk on the cell after testing applications on your phone. Try it: https://mcent.com/app/?mcode=1TS3I0&tcx=WAPP Sep 02 18:00:48 stop that Sep 02 18:01:08 Whoever is clicking on the link, knock it off. It just encourages them to come back Sep 02 18:01:20 said the same damn thing last night Sep 02 18:02:03 !kick DcarvZ Sep 02 18:02:33 Testing applications? Sounds dodgy Sep 02 18:03:42 boom Sep 02 18:03:53 same guy/bot as few days ago Sep 02 18:04:06 thanks TheSchaf may I suggest permaban Sep 02 18:04:20 he's spamming #android and #android-root as well Sep 02 18:04:24 ban is perma, except if you use AKICK with a timeout Sep 02 18:04:32 also #android-fr Sep 02 19:00:07 If i need to pass data from activity to fragment while fragement is active, is the best way just to do a broadcast? Sep 02 19:00:24 or just call methods on the fragment Sep 02 19:12:28 cmendes0101: fragments are already in a relation of ownership with activities. Thus s73v3r suggestion. Sep 02 19:14:55 How do you make those translucent dialogs where the current activity is dimmed and there are few buttons that lead to other activities? Sep 02 19:15:55 an example would be the Google Calendar application, when you press the "+" button Sep 02 19:16:46 overlay Sep 02 19:17:02 you have a fullscreen view which has the translucent background and the buttons. Sep 02 19:17:22 http://flavienlaurent.com/blog/2013/08/14/viewoverlay-when-how-and-for-what-purpose/ Sep 02 19:17:35 s73v3r: thanks Sep 02 19:19:46 Find a library that does it, it's called a floating action button Sep 02 19:23:43 /join # archlinux-fr Sep 02 19:29:58 i'm going to try using requery lib again Sep 02 19:30:09 anyone using it? Sep 02 19:30:45 Is the android OS free to download? For instance if I wanted to install it on a raspberry pi, would I legally be allowed to do that? Sep 02 19:30:58 it is free and open source Sep 02 19:31:06 SimonVT: the "+" button is a floating action button. I was talking about what happens after you press that "+" button in Google Calendar. My message wasn't expressed very well, sorry Sep 02 19:31:11 and somewhere, there is a build for a RPi 3 Sep 02 19:31:46 I know, just wanted to make sure you knew what to google for Sep 02 19:32:20 The libraries I've seen handle both Sep 02 19:32:51 Maybe they depend on the design lib, who knows. But because of animations and stuff they manage both Sep 02 19:33:09 eemgr official rpi support is coming Sep 02 19:33:20 Oh neat Sep 02 19:33:27 Is there an announcement for that somewhere? Sep 02 19:34:29 not sure. i’ve seen stuff about it in /r/android Sep 02 19:35:10 dont think its ready, i've been looking out for it Sep 02 19:35:32 https://android.googlesource.com/device/pifoundation/rpi3/ Sep 02 19:35:46 interesting, i'll keep an eye out too, thanks for the info. Sep 02 19:35:48 would be hilarious if nougat runs on rpi but not nexus 5 haha Sep 02 19:38:27 Go to lunch. Come back. Suddenly there's an extra FrameLayout being injected by *something* between my EditTexts and my TextInputLayouts, everywhere. All my dependencies are version pinned. I didn't update anything. It happens no matter how far I roll back in git. I want to kick a puppy. Sep 02 19:39:54 mwa ha ha ha ha Sep 02 19:40:07 ashark extra frame layout from 24.2.0 Sep 02 19:40:18 so , something got cached or messed up :) Sep 02 19:40:40 Outstanding. Sep 02 19:40:45 Support lib? Sep 02 19:40:48 yeah Sep 02 19:41:04 I love IRC. Bitch about your problems, get an answer. Sep 02 19:41:35 thanks g00s Sep 02 19:42:28 this differs from my experience. bitch about your problems, get banned Sep 02 19:42:46 dbkaplun: bitch better. Sep 02 19:43:50 * dbkaplun sees ashark has a lot of practice bitching Sep 02 19:43:56 True fact. Sep 02 19:44:05 A fact is always true? Sep 02 19:44:44 Until you find out it's not Sep 02 19:45:20 except when it's a true fact? Sep 02 19:45:31 That's why the distinction is so important. Sep 02 19:45:50 ashark: I breed and sell puppies for people who want to calm down kicking a puppy. Can I send you my brochure in private? Sep 02 19:47:40 We may deal publicly. I feel no shame. Sep 02 19:47:41 Arancio: You are the worst kind of monster (please send me your sampler pack) Sep 02 19:50:03 seeing evidence here human race doesn't deserve to survive extinction ;) Sep 02 19:51:15 wait, what did i miss, i fell asleep Sep 02 19:51:16 :) Sep 02 19:52:08 ney Napalm quick Q, can i pm ? Sep 02 19:53:25 sure Sep 02 20:14:24 anyone know of any non-webview backed rich text editor libraries? the only ones i've found require selecting a span of text to apply a styling. Sep 02 20:14:32 Anyone know if there is a channel for "MIT AppInventor" questions for app design? OR could that be asked in here too. Sep 02 20:16:57 if it's android, ask away Sep 02 20:18:49 It is android. Right now, I made a very simple app on MIT AppInventor that turns bluetooth on/connects to it and then I made a button. This button will allow me to turn a motor clockwise. I loaded up my arduino code and ran it. It reads the serial communication and it turns the motor on and goes clockwise. BUT the issue is, it only goes clockwise and doesn't stop. I even created a button to go counter-clocwise and STOP. Basica Sep 02 20:19:12 since if I press UP or DOWN or STOP, it just always does that one motion Sep 02 20:19:56 Here is the code on MIT AppInventor: http://imgur.com/a/mxjL8 Sep 02 20:20:48 here is a snippet of my Arduino Code: http://pastebin.com/RivYTg1d Sep 02 20:20:58 What am I doing wrong? Sep 02 20:21:54 UP/DN/RT/LT are the buttons displayed on my app. Sep 02 20:22:13 Hey guys, I have an activity with toolbar and drawer and a fragment which does all the heavy lifting. How would I got about display an overlay covering my whole fragment with a loading indicator or whatever. So far I a custom dialog which I show and hide within this fragment however I have no idea how to make it so that it doesnt cover the toolbar, and the user can still use the drawer menu.... Sep 02 20:22:45 sorry, I ate some of the words. Sep 02 20:24:17 leTones: you've tested the arduino separately to make sure it works with your input, right? and that code for MIT AppIntventor doesn't really tell anyone much. Sep 02 20:24:52 Yes dsardari. The code works because I used a joystick and motor moves exactly how I want it to. Sep 02 20:25:07 But when I wanted to use the app to move it, it just moves constly and constly and never stops. Sep 02 20:25:27 or turns in other direction Sep 02 20:25:33 +/- Sep 02 20:25:53 Yeah, the Mit AppInventor really doesnt tell much. Sep 02 20:26:19 But, basically i'm telling the app to look for "UP" and "DN" and then send that through bluetooth Sep 02 20:26:24 and find that in my arduino code. Sep 02 20:26:30 and execute., Sep 02 20:26:32 . Sep 02 20:26:48 sorry, got dc for a second. So, any ideas? Sep 02 20:28:35 andrew, your progress fragment has has to be set in the container you're trying to cover. that or the logic of the progress goes into your main fragment. Sep 02 20:29:10 Well, i have to go somewhere Sep 02 20:29:12 i'll be on later Sep 02 20:29:16 let me now if anyone figures it out. Sep 02 20:29:39 leTones: yeah, you're probably better off finding some channel or forum specific to the app inventor stuff. Sep 02 20:30:05 Yeah, i'm sure it maybe my arduino code that just needs tweaking. Sep 02 20:31:29 yeah dsardari, any tips how would I got about it from inside the fragment? Sep 02 20:36:40 hey everyone Sep 02 20:36:54 NetworkingPro: hey pro! Sep 02 20:37:00 Is there a way to debug all the network calls a particular app is making, much like Chrome with a site? Sep 02 20:37:01 NetworkingPro: I mean, hey bro! Sep 02 20:37:05 andrew: just have a indeterminate progress bar or something when it's loading content Sep 02 20:37:18 Arancio: I see what you did there! :D Sep 02 20:37:47 NetworkingPro I heard people where using wireshark... Sep 02 20:38:06 although it's seems like to much hassle Sep 02 20:38:10 andrewgk: yea, I tried to install Wireshark on my phone, didnt go so hot ;) Sep 02 20:38:13 NetworkingPro: https://play.google.com/store/apps/details?id=com.antispycell.connmonitor Sep 02 20:38:23 Arancio: thx Sep 02 20:40:27 Why do the elevation of a pressed button is greater than the elevation of the button in the normal state? Sep 02 20:42:04 (please forgive my grammar) Sep 02 20:43:11 NEVER Sep 02 20:44:08 Why is the elevation of a pressed button greater than the elevation of the same button in its normal state? Sep 02 21:14:52 hi, i have a stupid problem.. java base... via BLE receive a byte.... in this byte i'd like check bit0 and bit 1 Sep 02 21:15:18 how check if bit0 is 1 or 0 ? Sep 02 21:15:27 how check if bit1 is 1? Sep 02 21:22:15 Bitshift, & 1, check != 0 Sep 02 21:23:10 e.g. ((byte >> 1) & 1) != 0 Sep 02 21:23:47 Then just create a method that takes a byte and a position and returns a boolean Sep 02 21:30:23 pepigno75: if((byteVar & 1) != 0) // bit 0 set. Sep 02 21:30:23 or simple mask with & Sep 02 21:30:33 pepigno75: if((byteVar & 2) != 0) // bit 1 set. Sep 02 21:31:31 & 3, bit 2 is set.. oh wait Sep 02 21:31:48 Horrible solution, Napalm :p Sep 02 21:31:57 I'm running code right now that moves my stepper motor clockwise continously. This occurs when I press a button "GO" on my phone via bluetooth. I opened up the serial commnunication terminal and it shows "GO" spamming, even though I pressed button only once. How would I make it where when i press "GO", the motor only moves once and STOPS, until i press button again? Do i need interrupt or something? Here is a snippit of my cod Sep 02 21:32:32 SimonVT: why is that horrible? Sep 02 21:32:34 if you look at line 7, that is where i'm saying to go clockwise. Sep 02 21:32:41 if he wants to test one or the other? Sep 02 21:32:43 would I need to add code in there? Sep 02 21:33:46 if((byteVar & 1) != 0) { bit = 1 } else bit=0 ? Sep 02 21:33:58 your code didn’t paste Sep 02 21:34:11 good Sep 02 21:34:12 :D Sep 02 21:34:26 leTones: your code didn’t paste Sep 02 21:34:36 s73v3r: http://pastebin.com/RivYTg1d Sep 02 21:34:39 do you see it now? Sep 02 21:34:47 pepigno75: yes, but dont just set a variable like that Sep 02 21:35:19 leTones: motor control on the arduino is out of scope for this channel Sep 02 21:35:37 leTones: thats for the Arduino is it not? Sep 02 21:35:39 are you sure the phone keeps sending that message? Sep 02 21:35:40 I did ask this there, they told me to ask in dev. Sep 02 21:35:55 the arduino part of it is their domain Sep 02 21:36:18 lol Sep 02 21:36:37 Yeah, I just wanted to see if anyone had some insight on it, even though this is #android-dev. Sep 02 21:36:44 :| Sep 02 21:36:47 I did ask there before here, just saying. Sep 02 21:37:15 leTones: is your question related to Android in any way? Sep 02 21:37:52 Well, I mean yeah Napalm. I am designing an app on android and making it communicate with arduino Sep 02 21:37:56 but i'll try #arduino again. Sep 02 21:38:08 leTones: wait Sep 02 21:38:22 if you’re not pasting Android code, then it’s probably not a question for #android-dev Sep 02 21:38:23 now how are you communicating Sep 02 21:38:36 I think Android is a mess when it comes to simple View animations. There appears to be at least two animation frameworks present in Android. Sep 02 21:38:46 yup Sep 02 21:39:08 Napalm: Bluetooth API, sending strings Sep 02 21:39:32 leTones: do you have Bluetooth on your PC/Laptop? Sep 02 21:40:03 Yeah, but i'm not testing it like that, Using USB connetion and hc-05 Sep 02 21:40:17 to android phone Sep 02 21:40:31 yes i follow Sep 02 21:41:00 How do I reliably fade-in and fade-out a View. I want a callback for when the animations is complete, and I want the fade-in to start from the view's current alpha; not just clamp it to 0. And API >= 15. Anyone know of a good solution? Sep 02 21:41:01 Zta: Not really.. Animator replaced Animation.. And Animator is pretty damn easy to use Sep 02 21:41:03 try doing it from your laptop. just send the GO command and see what it does Sep 02 21:41:06 leTones: what kind of application do you develop? Sep 02 21:41:11 leTones: if I may ask Sep 02 21:41:17 leTones: what i'm trying to suggest, is you try and send those strings from your pc/laptop top the hc-05 module and see if it responds the same Sep 02 21:41:35 then its nothing to do with Android... just your Arudino code Sep 02 21:41:50 SimonVT: Not really what? You just confirmed that there are at least two frameworks =) Sep 02 21:41:51 leTones: then you know whome you should be asking for advice Sep 02 21:42:04 Napalm: I see your point, thanks Sep 02 21:42:09 That's a mess? Sep 02 21:42:23 Arancio: I'm using android studio/MIT app inventor, just creating some motor motion Sep 02 21:42:25 using arduino Sep 02 21:42:30 Zta: just use view.animate.alpha(1f).start(); ? Sep 02 21:42:48 leTones: is it fun? Sep 02 21:42:57 Zta: with setListener(yourAnimatorAdapter) Sep 02 21:43:13 Yes, when everything works out properly...and not so fun when I run into a bug ;) Sep 02 21:43:58 Napalm, And view.animate().cancel() will cancel any ongoing animation and invoke its listener? Sep 02 21:44:38 zta: yes, look at https://developer.android.com/reference/android/animation/AnimatorListenerAdapter.html Sep 02 21:44:49 Napalm: What about toggling my view's VISIBILITY/INVISIBLE? Most examples do that. Sep 02 21:45:09 Zta: and what about it? Sep 02 21:45:20 just do that in your listeners onAnimationEnd Sep 02 21:45:28 Is it necessary? You didn't mention it in your example. Sep 02 21:45:29 Ah.. Sep 02 21:45:30 leTones: :) Sep 02 21:45:57 Zta: why do you want to change the view visibility? Sep 02 21:47:05 well, i can confirm doing view animations is relatively trivial, there are some corner cases however and i don't want to start listing them Sep 02 21:47:55 Napalm: I'm unsure. Mainly because these guys do it: https://developer.android.com/training/animation/crossfade.html and I suppose it somehow makes sense to exclude a view from the layout and rendering if it's not visible. Sep 02 21:48:26 funny how a site about design like material.google.com can forget that you may need to rewind a video and control the volume because it's too loud. Sep 02 21:49:20 Zta: yes, if thats what you want to do. it really depends on your app. Sep 02 21:50:15 Ok, I'll try using Animator. Sep 02 21:50:17 Zta: sounds to me like you just want to add animateLayoutChanges="true" to your layout Sep 02 21:50:37 then let the framework handle it Sep 02 21:50:47 Heh, actually I'll try that first. Sep 02 21:51:09 Right now I want to fade in a loading overlay Sep 02 21:51:29 sounds like a job for animateLayoutChanges Sep 02 21:51:33 https://developer.android.com/training/animation/layout.html Sep 02 21:52:40 wrap your content and progressbar in a frame layout and add animateLayoutChanges, and then just toggle the visiblity of your views and they will fade in and out Sep 02 21:52:57 brb Sep 02 21:54:11 right, I forgot about those Sep 02 21:56:37 i've had a lot of problems with animateLayoutChanges ... Sep 02 21:56:56 didn't i read somewhere the transition framework supersedes that ? Sep 02 21:57:03 even for simple things ... Sep 02 22:02:28 gaahh... Sep 02 22:09:34 Napalm: would I need something downloaded to do that, sending the strings? If i'm not using my arduino. Sep 02 22:14:13 Napalm, thanks. I'm off. Sep 02 22:16:05 I have a scrollview within a relativelayout. When I click on a edittext inside the scrollview it nolonger scrolls to place the edittext above keyboard. I have focusable=true. Any ideas to get that working? Sep 02 22:16:27 it used to work before being placed in the relativelayout but had to make that change Sep 02 22:34:34 Hey people, I'm doing some tests with the accelerometer, but am having problems with refresh rates. Sep 02 22:34:43 I register the listener with a refresh rate of 10 millisec (100 times per second), and when I run it on my Nexus 5 or an AVD with Marshmallow, it works fine. Sep 02 22:34:49 However if I run it on anything bellow Marshmallow, I get a max refresh rate of 800 millisec. Though this measurement was only done in an AVD, as I don't have as actual phone bellow Marshmallow. Sep 02 22:34:55 Does anyone know if this is just an issue with AVDs running versions bellow Marshmallow, or if I would observe a similar result on an actual phone? Sep 02 22:46:28 LucaRood dunno, but if you are doing sensor stuff , and seriously want to release to Play, you need a lot of devices to test on Sep 02 22:47:55 LucaRood: I hope you are rich Sep 02 22:51:15 LucaRood: https://static.googleusercontent.com/media/source.android.com/en//compatibility/android-cdd.pdf section 7.3.1 Sep 02 22:51:48 MUST be able to report events up to a frequency of at least 50 Hz for Android Watch Sep 02 22:51:48 devices as such devices have a stricter power constraint and 100 Hz for all other device Sep 02 22:51:48 types. Sep 02 22:51:51 SHOULD report events up to at least 200 Hz. Sep 02 22:52:12 for Android v6+ Sep 02 22:53:15 LucaRood: more info here http://www.androidpolice.com/2015/11/03/google-now-defines-high-fidelity-sensor-support-for-android-devices-has-extensive-list-of-performance-requirements/ Sep 02 22:55:55 g00s, Arancio: That figures :P I'll try to get my hands on some more devices, so I can also flash different versions to them. (Though I'm just doing some basic tests for now) Sep 02 22:56:00 Napalm: Thanks for the links, that's really good to know. However, I'm really after the frequency of devices running < 6.0, so I'll look to see if they had similar guidelines before 6.0 Sep 02 22:56:40 none I believe, thats why it was introduced. Sep 02 22:56:47 LucaRood: can I ask you what kind of application are you working on? Sep 02 22:56:50 but you'll probably see around 100Hz Sep 02 22:57:00 the emulators are probably just slow Sep 02 22:58:18 LucaRood: you can have your app only download on to supported devices from the play store by adding android.hardware.sensor.hifi_sensors hardware requirement to your manifest Sep 02 23:00:05 Napalm: do sensor work in a similar way on different devices? For example, if you process the data will the accuracy of sensor on difference devices be similar enough for the output to make sense? Sep 02 23:01:05 Arancio: All I can say for now, is that it is related to high performance sports. Sep 02 23:01:12 Napalm: 100hz is good, let's hope it's just a problem with the AVDs (though it works with AVDs running 6.0). Does the hifi_sensors flag exist before 6.0? Sep 02 23:01:26 LucaRood: thanks Sep 02 23:01:48 Arancio: Accelerometers return m/s² Sep 02 23:02:08 (regardless of device) Sep 02 23:03:31 I understand that. What I meant is that you could develop a detector on a device and then discover that the error margin or latency on another devices prevents it from working in a useful way Sep 02 23:04:06 Better, I was asking it that could be possible Sep 02 23:04:09 if Sep 02 23:05:10 Arancio: Well, latencies are no problem (if they are reasonable) as the events have a time stamp (so you can compensate for time discrepancies). Sep 02 23:05:58 Ok. Thanks. I was just speculating. I have no experience. Sep 02 23:06:11 Arancio: Error margins are usually just noise, so a low-pass solves that. So unless the sensor is really inaccurate you should be fine. Sep 02 23:07:02 Thanks for the explanation Sep 02 23:07:20 Then you should probably not need to test it on many devices Sep 02 23:08:50 Arancio: My greatest worry, is actually about android versions, not so much devices. Though some devices might have unusably low maximum update frequencies too... Sep 02 23:09:31 I'll see if I can get at least one spare phone, that I can use to flash various android versions to. Sep 02 23:10:08 My current development phone (nexus 5), is my daily driver, so I cant really mess with it too much. Sep 02 23:12:11 Napalm: I looked it up, and indeed, the hifi_sensors flag is a Marshmallow thing, so that would limit my app's compatibility with older versions... Sep 02 23:12:16 yes Sep 02 23:12:32 i was saying you could do that if its your requirement Sep 02 23:12:38 but your saying its not Sep 02 23:12:57 its not a "Android Thing" in the delay of sensor performane Sep 02 23:13:01 performance Sep 02 23:13:06 its the sensors Sep 02 23:13:26 or manufacturer's drivers.. but amount to the same thing Sep 02 23:13:55 even on phones from 4 years back you'll get a decent frequency Sep 02 23:14:35 your 0.8Hz reported on the AVD is an AVD thing for sure Sep 02 23:14:46 Napalm: Yes, thanks. I was just worried as I got different results on AVD with 6.0 and <6.0 Sep 02 23:15:03 But I guess that freq is really unreasonable :P Sep 02 23:16:21 yes Sep 02 23:47:46 ugh https://www.reddit.com/r/androiddev/comments/50obpv/ui_updates_in_a_multiwindow_world_big_nerd_ranch/ Sep 02 23:49:29 seems like kludgy to me Sep 02 23:51:52 g00s: not to me, thats how its always been even when you have translucent activities since way back Sep 02 23:53:40 only the focused activity is resumed Sep 02 23:53:46 sounds reasonable Sep 02 23:53:58 and yes, that has always been the behavior Sep 02 23:54:01 * Napalm high fives pfn Sep 02 23:54:09 :) Sep 02 23:55:03 ugh, 1mix sucks in the evenings Sep 02 23:55:17 but then what is the point of onPause / onResume in a multi-window context ? your other activity will be visible, so it would keep updating the UI ... so what use is that pair now ? Sep 02 23:55:18 1mix? Sep 02 23:55:42 1mix.co.uk Sep 02 23:56:09 resume = currently active Sep 02 23:56:16 that is all Sep 02 23:56:50 it's the same concept as a focused window on desktop environments Sep 02 23:57:01 pfn: nice, ever tried di.fm? Sep 02 23:57:23 yes, but I generally like the 1mix djs Sep 02 23:57:39 that and it works with my Yamaha receiver Sep 02 23:57:58 but it sucks in the evening, too many listeners and not enough bandwidth Sep 02 23:59:44 but yes, same as desktop environments, your activity will be started, but paused Sep 02 23:59:56 what you choose to do with that is up to you Sep 03 00:00:07 pfn: no drop outs for me on 320 Sep 03 00:00:40 yeah, but it doesn't have to cross an ocean and continent to get to you :p Sep 03 00:02:01 :D true, tell them to get a US node :) Sep 03 00:41:56 do you XML or drag-and-drop GUIs? Sep 03 00:43:12 pffffffft: We are the next level. We think of them. Their appear. Sep 03 00:44:58 Between the thought and their appearance, most of us will type the XML. Sep 03 00:48:12 you're welcome Sep 03 00:50:37 why XML and not the drag-drop editor? Sep 03 00:50:50 where you just right-click to change the attributes of things Sep 03 00:52:17 it's just matter of choice. with automatic completion you don't have to remember or type much. You can start using the D&D and then edit the XML when you like. You'll find your way of doing things Sep 03 00:52:35 do as you prefer Sep 03 00:53:57 I sometimes type a new view as XML, set the major attributes and then explore the available attributes in the properties pane of the designer Sep 03 00:54:04 there is no fixed rule Sep 03 00:55:53 did you found your 100$/mo idea? Sep 03 00:57:04 not yet, have to learn android first :p Sep 03 00:57:24 seems like they did what html should have been Sep 03 00:59:11 "You can add views either from code or by specifying a tree of views in one or more XML layout files.". What is loading these XML layout files? The interpreter or the app itself? Sep 03 00:59:48 what interpreter? Sep 03 01:00:32 has the program launcher anything to do with it or is it the initial code in the app that runs a function (compiled with the app) that loads the XML files and runs view-adding code correspondingly? Sep 03 01:01:00 the design editor is worthless Sep 03 01:01:13 you'll be infinitely more productive learning to use the xml Sep 03 01:02:18 Crazy talk Sep 03 01:02:46 pfn: you don't learn it all though? I'm lurking around in the class hiarchy and it's humongus Sep 03 01:02:52 Unless you were sarcastic, pffffffft :P Sep 03 01:02:56 view calss* Sep 03 01:02:58 *pfn Sep 03 01:03:26 pffffffft: you'll be "inflating" the layouts in code written with your own precious hands. It's just one line, tho Sep 03 01:03:38 pepperoni: hi! Sep 03 01:04:01 VerbalKint: did you complete the translation of your app? Sep 03 01:04:10 Arancio: yeah Sep 03 01:04:22 Arancio: at least 90% of it Sep 03 01:04:41 Arancio: I haven't gotten that far yet. But you mean that I'll use something essentially like myWindow.loadLayout("layout.xml")? Sep 03 01:05:09 which in turn will parse the XML and call corresponding view.add(new_view_defined_in_the_xml)? Sep 03 01:05:46 although the API makes this transparent, so you'll just call something like setView("viewname")? Sep 03 01:05:56 Arancio: which means that it isn't actually complete :D Sep 03 01:05:58 where the root is called an activity? Sep 03 01:06:27 pffffffft: something like View view = inflater.inflate(R.layout.your_layout, container, false); or even simpler code Sep 03 01:07:10 pffffffft: follow any tutorial on writing your first activity Sep 03 01:07:29 pffffffft: or just create a project in Android Studio Sep 03 01:08:40 VerbalKint: what language will come next, after English? Sep 03 01:09:04 the view class hierarchy is relatively small Sep 03 01:09:09 Arancio: I'll just leave it at English and Romanian since these are the only ones that I know Sep 03 01:09:18 you only need to know a few container types Sep 03 01:09:30 mostly linear, frame and relative layouts Sep 03 01:09:33 Arancio: and plus, it would cost me a lot to have all of my content translated by someone else in an extra language Sep 03 01:09:52 actual widgets you would normally use are pretty few Sep 03 01:10:12 mostly text, image and button views cover the majority of usage Sep 03 01:10:14 VerbalKint: don't you have a friend who knows Russian or Chinese? Sep 03 01:10:31 Arancio: nope Sep 03 01:11:08 lol, I've been here so many times before. You learn the platform and within 5-15 years it's be obsolete :D. Flash, JavaApplets, Swing, Winapi and now Android Sep 03 01:11:12 VerbalKint: maybe you could pay someone to be your friend, then Sep 03 01:11:23 s/be/null/ Sep 03 01:12:13 VerbalKint: I've seen several apps that use google translate and have over millions of downloads. its' grotesque but profitable Sep 03 01:12:38 VerbalKint: trust him. He's the kind of grotesque Sep 03 01:12:41 king Sep 03 01:13:05 lol Sep 03 01:13:52 pffffffft: yeah, I've seen just how good Google Translate is. "Fun mega go to moon enjoy self". Sep 03 01:14:21 yeah :D. It's especially funny when you receive spam from auto-translated stuff Sep 03 01:14:37 That's a rough estimate of how translations appear to me translated into Romanian :D Sep 03 01:15:27 I never bother with anything but english. Even if it's human-translated it usually sucks if it was in english originally. I've accidentally installed linux in my native language and had to reinstall it all over again because nothing made sense to me Sep 03 01:16:08 pffffffft: yeah, same for me here Sep 03 01:16:17 pffffffft: where are you from? Sep 03 01:17:38 that's because most people who translate software are idiots who should not be allowed to translate anything Sep 03 01:17:59 ah, Arancio on form this morning Sep 03 01:18:29 Sorry Sep 03 01:19:05 http://goingviralposts.biz/wp-content/uploads/2016/08/11-1.jpg Sep 03 01:20:34 "Pull the nozzle and throw it at the fire!" Sep 03 01:25:57 VerbalKint: pffffffft is a young PhD in Computer Science who only deals with theoretical computer science problems (typically he spends his days solving NP-complete problems) but used lots of different toolkits in the last 15 years and who lives in a country whose currency is $ but whose language is not English Sep 03 01:28:32 Arancio: can't figure what country that is Sep 03 01:28:53 I'd lie anyway :D I hide on the internet Sep 03 01:29:10 rotate proxies etc Sep 03 01:29:43 I really need to sleep though. gnite Sep 03 01:29:47 pffffffft: lol Sep 03 01:29:50 pffffffft: night Sep 03 01:29:51 That's true. He lies anyway. Sep 03 01:30:17 Is the right icon really so intuitive? https://s15.postimg.io/cy3w8sxjv/Capture.png Sep 03 01:30:27 That's from the Material Design guide Sep 03 01:31:57 If I create a new AsyncTask but assign it to the same variable is it not possible to call execute multiple times for that variable? It should be a new instance every time... Sep 03 01:32:07 grekkos: hi Sep 03 01:32:10 hi Sep 03 01:32:19 did I join the wrong channel again Sep 03 01:32:58 did you? Sep 03 01:33:09 you are welcome anyway Sep 03 01:33:11 ah Sep 03 01:33:28 is this android-dev or android-unregistered? Sep 03 01:33:53 are you really asking what channel is this? Sep 03 01:34:27 It's android-dev. Did they sell you an IRC application without the channel name? How much did you pay for it? Sep 03 01:34:30 sometimes when i'm not registered i get thrown into the wrong channel Sep 03 01:34:34 hah Sep 03 01:34:48 no i was just confused about the #android-unregistered thing on my screen here Sep 03 01:34:59 ah yeah Sep 03 01:35:01 so anyway Sep 03 01:36:06 I'm getting an IllegalStateException. What I'm trying to do is have an async task run after a delay. It's a sort of as-you-type search, but I want to cancel the previous task each time the user enters another character Sep 03 01:38:14 Can anyone tell me how I could get to fastboot on an LG device after I checked enable oem unlock in dev options i get a warning tap okay and now it shows to be active but if i do reboot fastboot the device just reboots back into the OS and if I hold power up while plugging into power i just get download mode Sep 03 01:38:24 Any ideas would be helpful thanks Sep 03 01:38:35 so you are getting an exception in a random piece of code nobody knows nothing about. How is people supposed to help you. We are not as smart as people in android-unregistered Sep 03 01:38:48 Arancio: I see a camera Sep 03 01:38:57 toxinburn: topic Sep 03 01:39:12 Arancio: in the right image. This ought to be a Rorscharche test :D Sep 03 01:39:26 VerbalKint: :D Sep 03 01:39:53 "What do you see when you look at these intuitive icons?" "A printer? It's a camera, you psychotic!" Sep 03 01:41:00 Why come up with your own icons when there are free ones on the internet? Sep 03 01:41:01 http://img.brothersoft.com/screenshots/softimage/p/printer_icon_set-331013-1263956518.jpeg Sep 03 01:42:37 jfpoole: because licensing costs $$$ Sep 03 01:42:45 Hence the “free” Sep 03 01:43:01 jfpoole: then it requires attribution Sep 03 01:43:05 jfpoole: those icons were from the Material Design guide. I'm just reading it. I'm not designing icons. Sep 03 01:43:27 Eh, attribution isn’t such a big deal. That’s what fine print on the websites is for. :-) Sep 03 01:46:43 jjuran_: "You wouldn't steal a car" Sep 03 01:47:33 *jfpoole Sep 03 01:47:50 Maybe I would! Sep 03 01:47:54 YOU DON’T KNOW ME. Sep 03 01:48:04 you wouldn't steal a policeman's helmet Sep 03 01:48:21 Leeds: :P Sep 03 01:48:48 That’d be pretty badass. Sep 03 01:49:33 https://www.youtube.com/watch?v=ALZZx1xmAzg Sep 03 01:53:27 Apple to begin removing abandoned and problematic apps from App Store next week" probably a good thing Sep 03 01:57:23 g00s: you are the equivalent of a all-news TV channel for mobile development Sep 03 01:57:43 o/ Sep 03 02:00:04 I feel sorry for my smartphone. It deserves a better owner Sep 03 02:01:59 like me? Sep 03 02:02:19 unless its a crap phone Sep 03 02:03:13 "Apple is suing mathematicians for their use of patented geometrical shapes. A representative said that the mathematicians' argument that they're naturally occurring is not withstanding against copyright law" Sep 03 02:04:08 boo Sep 03 02:04:10 I don't know if it's crap Sep 03 02:04:29 I don't think so, anyway Sep 03 02:06:04 Napalm|afk http://www.oreilly.com/programming/free/trends-shaping-the-london-tech-scene.csp Sep 03 02:06:36 VerbalKint: http://i0.kym-cdn.com/photos/images/newsfeed/000/173/576/Wat8.jpg Sep 03 02:07:01 I TRIED, OK? I TRIED! Sep 03 02:07:22 It's ok calm down Sep 03 02:08:11 VerbalKint: why are you upset? Sep 03 02:10:30 Arancio: because orbyt_ and capella-5x2 booed me off the stage Sep 03 02:11:36 VerbalKint: they booed Apple Sep 03 02:11:52 👍 Sep 03 02:12:07 I thought it was sarcasm Sep 03 02:12:14 Now Im confused Sep 03 02:12:56 I like being confused... it's a lot less work than thinking Sep 03 02:13:13 heh - jj Sep 03 02:14:14 Oh, you guys didn't get the context of my joke? It was supposed to be a "smartphone news story" :P Sep 03 02:14:50 * capella-5x2 reads scrollback Sep 03 02:17:06 VerbalKint: never try to add humor to any of your apps without hiring a professional Sep 03 02:17:47 Arancio: :P Sep 03 02:18:46 VerbalKint: how did you select the trivia material for your app? Sep 03 02:19:30 Arancio: what do you mean? Where I got the content from or what kind it is? Sep 03 02:20:09 VerbalKint: Where did you got it from? How did you pick it? Sep 03 02:20:37 VerbalKint: Why did you make a trivia app? Sep 03 02:20:38 Arancio: I wrote the database myself and the questions are mainly about history and stuff Sep 03 02:21:12 Do you like history? Sep 03 02:21:21 Arancio: kinda Sep 03 02:22:02 VerbalKint: "History of totalitarian regimes and crime against humanity"? Sep 03 02:22:19 I feel there should be a trivia app about that subject matter Sep 03 02:23:02 Arancio: indeed :P Sep 03 02:28:50 Anyway, gtg and sleep off the rest of the night... or morning Sep 03 02:29:02 People always upvote my less interesting answers on Quora Sep 03 02:42:47 hello all :) Sep 03 02:42:54 drinfernoo: hi!!!!! Sep 03 02:43:08 drinfernoo: is it hot down there? Sep 03 02:43:49 not too bad lol where is down in reference to? Sep 03 02:45:45 its about 68°F here now Sep 03 02:53:57 drinfernoo: "down there" as in "below the surface of the Earth" where inferno (hell) is supposed to be Sep 03 02:57:50 Arancio: ah, hey, just now saw **** ENDING LOGGING AT Sat Sep 03 02:59:58 2016