**** BEGIN LOGGING AT Mon Feb 06 03:00:02 2017 Feb 06 03:23:17 hi. i was trying appinventor. and my app that grabs data from gps works. but gps has to be activated. can my aplication activate and deactivate gps? Feb 06 03:23:17 and if i left gps on does it consume battery? Feb 06 03:24:49 mariooliveira i dont think u can do without human interaction Feb 06 03:26:08 maybe executing a comand that is built in system Feb 06 03:26:08 with system permissions Feb 06 03:26:36 meaning roting phone Feb 06 03:27:39 my problem is that if i leave gps on it will consume a lot battery Feb 06 03:37:54 hello Feb 06 03:38:24 so I found some github plugin, it's an activity. but this activity relies on play services 8.3, whereas I'm using 10.0 something Feb 06 03:38:38 so how do I resolve this incompatibility? Feb 06 03:39:53 "Android App starter based on Android + MVP + Dagger2 + RxJava2 + Robolectric + Espresso + Mockito + EasyMock/PowerMock + JaCoCo" holy crap lol Feb 06 03:41:18 robocop huh? Feb 06 03:42:57 capella halp! Feb 06 03:43:58 * capella doubts you need it :) Feb 06 03:45:10 whats the most popular mocking thing for android, Mockito, EasyMock, or PowerMock ? Feb 06 03:46:13 somebody has to ask the dumb questions :) Feb 06 03:47:50 oh looks like they work together Feb 06 03:48:50 spreadsheet are you pulling this as a dependency from maven central or jcenter ? Feb 06 03:48:55 jcenter Feb 06 03:49:07 yeah, what should I call it? would it be an "android library"? Feb 06 03:49:16 if it depends on 8.3 and your app says 10, gradle will take 10 Feb 06 03:49:18 b/c I know that "plugin" could refer to gradle plugin Feb 06 03:49:36 I see Feb 06 03:49:37 yeah library Feb 06 03:49:45 use 'gradle dependencies' to see stuff Feb 06 03:50:43 but it gives me a red line in android studio Feb 06 03:51:15 spreadsheet make sure you have the 'google repositories' in sdk manager Feb 06 03:52:26 yeah I do, version 42 Feb 06 03:52:53 hm not sure then Feb 06 03:53:03 make sure yo sync the project Feb 06 03:53:04 I also have "Error:Execution failed for task ':app:transformClassesWithDexForDebug'. Feb 06 03:53:04 > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/location/places/PlaceReport;" Feb 06 03:53:38 I'm not sure if that's related Feb 06 03:53:41 but thank you g00s Feb 06 03:54:05 also look up 'gradle dependencyInsight' Feb 06 03:54:36 ok Feb 06 03:54:41 can I safely delete .gradle? Feb 06 03:54:45 that might have a bunch of old stuff Feb 06 03:57:19 in your project, yeah Feb 06 04:00:01 g00s, but this seems like a regular problem Feb 06 04:00:06 http://docs.pushwoosh.com/docs/resolving-google-play-services-conflicts Feb 06 04:00:20 according to ^, it seems this is a huge problem Feb 06 04:00:47 it seems highly likely that if you are using an older android library, you're pretty much screwed Feb 06 04:01:02 spreadsheet are you using cordova / etc ? Feb 06 04:01:04 so, gradle should handle it, but it seems my case is unique? Feb 06 04:01:04 no Feb 06 04:01:11 raw android Feb 06 04:01:14 nothing fancy Feb 06 04:01:35 well, again, do 'gradle dependencies' from the command line Feb 06 04:01:57 shouldn't be a problem, conflict resolution chooses the latest version automatically Feb 06 04:03:17 ah Feb 06 04:03:20 it's gradle androidDependencies Feb 06 04:03:25 gradle dependencies doesn't give anything Feb 06 04:07:05 I got it! Feb 06 04:07:16 so my thing was doing, google-play-services-location 8.3 Feb 06 04:07:29 and I had google-services-auth 10.0 and I was wondering what was wrong Feb 06 04:07:40 when in fact, I just had to add google-play-services-location 10.1 Feb 06 04:07:41 10.0 Feb 06 04:07:42 * Feb 06 04:09:38 holy crap foursquare library WORKS! Feb 06 04:09:40 :DD Feb 06 04:09:41 you sure do love that enter key Feb 06 04:10:59 spreadsheet yeah the latest is 10.1 or something Feb 06 04:11:55 man i see this all over the place, and it sucks https://news.ycombinator.com/item?id=13574003 Feb 06 04:14:45 twitter style... no long train of thought... er make that "agile technology" ☺️ Feb 06 04:15:37 g00s, is your office like that? Feb 06 04:16:02 every place i've worked at lately is like that Feb 06 04:16:22 I see Feb 06 04:16:26 and ... those damn white noise generators ... Feb 06 04:16:28 g00s, is it out of place to ask for internships on irc? Feb 06 04:16:28 :P Feb 06 04:16:40 or, perhaps, just to know if your company is hiring, etc. Feb 06 04:17:03 I interviewed with a group as they were so proud to point out all the free standing desk stations... I was like, ew, mkay Feb 06 04:17:17 spreadsheet: Nothing wrong with asking on irc, IMHO. I'm looked for candidates on IRC. Feb 06 04:17:34 capella those things aren't even healthy Feb 06 04:17:34 yeah, I think the worst thing would be some kind of open office, standing desk environment (sounds like a place that's had too much koolaid) Feb 06 04:17:40 no walls bad enough now I have to stand around all day Feb 06 04:17:50 loke, I see. are you accepting applications? Feb 06 04:17:51 if its a treadmill desk thats something else Feb 06 04:17:59 spreadsheet: We are. Feb 06 04:18:03 pm?= Feb 06 04:18:08 i worked in a office where the boss wouldnt even pay for heat Feb 06 04:18:13 spreadsheet: What kind of job are you looking for? Feb 06 04:18:14 and the roof was leaking Feb 06 04:18:20 summer intern Feb 06 04:18:30 spreadsheet: Doing what? Feb 06 04:18:33 android dev Feb 06 04:18:36 preferably Feb 06 04:18:40 US location Feb 06 04:18:57 spreadsheet: Ah yes... I just noticed what channel I'm in. Sorry, we don't do much mobile development. Feb 06 04:19:11 spreadsheet Feb 06 04:19:14 Also, our US office doesn't do any development. Just support for local customers. Feb 06 04:19:29 i have an opening in my backroom, you will have to develop an app that brings 100k tho or i wont hire Feb 06 04:19:36 ok :P Feb 06 04:19:45 i cant gauruntee heat or electric either Feb 06 04:19:49 so i hope you can bring a generator Feb 06 04:19:52 I see loke Feb 06 04:20:16 (I thought I was talking on #emacs right now, which is why I replied yes) Feb 06 04:20:55 We've only done some very minimal mobile development. Mostly proof-of-concept stuff for intergation with our main system. Feb 06 04:21:02 Nothing to support an intern though. Feb 06 04:21:19 sasser cracks me up Feb 06 04:21:41 capella: It may sound like a joke, but look at the job boards and you'll see plenty of it. Feb 06 04:21:46 lol capella are u interested? i cant gauruntee 401k maybe something like 1k Feb 06 04:21:48 And they are not jokes. Feb 06 04:22:16 i can gauruntee you state issued food stamps if u work for me Feb 06 04:22:18 sasser, 40.1k Feb 06 04:22:20 because you will be so poor Feb 06 04:22:23 so loke , would you say it's an employer's market atm? Feb 06 04:22:37 it certainly seems that way Feb 06 04:22:41 I'll bring half a generator Feb 06 04:22:56 spreadsheet: It's always the employers market. And it'll get worse. Feb 06 04:23:25 well they're cracking down on H1B :P Feb 06 04:23:31 yay Feb 06 04:23:35 spreadsheet: That won't change anything. Feb 06 04:23:46 I might get a job Feb 06 04:23:47 loke, are you outside the US? Feb 06 04:23:54 capella i have an old car battery maybe we can rig it up to the generator and boot up our workstations Feb 06 04:23:57 NA or EU? or other Feb 06 04:24:01 spreadsheet: Yes. Feb 06 04:24:09 I see. I always thought US salaries were way too high Feb 06 04:24:34 spreadsheet: Well, they are. And I say that as someone who probably is one of those people with too high salary Feb 06 04:24:43 energy efficiency is key, by that i mean using any energy is strictly prohibited. water included. if its brown. its okay for this town Feb 06 04:24:56 sasser, ok, but first my roommates clutch gets paid for Feb 06 04:25:05 you guys can just hook up the generator to a bicycle Feb 06 04:25:15 capella can get some exercise Feb 06 04:25:19 I always think programmers think too highly of themselves. their skills should be "actually worth" something around UK wages Feb 06 04:25:24 Yah but it's my bike Feb 06 04:25:33 like $60k or $70k Feb 06 04:25:44 so I know who gets volunteered to pedal Feb 06 04:25:53 spreadsheet: I agree with that. Feb 06 04:25:58 we can hire another intern to pedal Feb 06 04:26:04 which is actually probably high for the UK. as opposed to $90-$100k in SV Feb 06 04:26:05 it is free labor after all Feb 06 04:26:38 sasser: Actually, I have an excersise bike at home, and I pedal that for free already. I'll do it for you in exchange for free drinks. Feb 06 04:26:49 Cool! Coal IPO's are up this year... Hilary didn't put em all out of work Feb 06 04:26:53 if my mom has any we are in luck loke Feb 06 04:27:04 she said she was going to give us some blankets to keep warm Feb 06 04:27:15 sasser: If I can borror your shower too, I'm all ready to sign the contract. Feb 06 04:27:32 ok but ur on your own for the soap Feb 06 04:27:37 but you can't wash and dry them on a clothesline in California Feb 06 04:27:46 sasser: Do you have hot water? Feb 06 04:28:01 and we have to recycle the water Feb 06 04:28:12 cause not everything beats weather Feb 06 04:28:31 wait what? Now I'm not sure if we're joking anymore... Are clothelines banned in california? Feb 06 04:28:46 * loke just purchased a new clotheline 2 days ago :-) Feb 06 04:28:54 * loke is thankfully not in california Feb 06 04:29:32 that arent illegal here Feb 06 04:29:36 so we are in luck Feb 06 04:29:45 all natural android dev Feb 06 04:31:08 * loke just realised it's lunchtime. I need to head out to do some errands. Whaich are, ironically engough, bike related :-) Feb 06 04:32:12 can u get me some starbucks while ur out Feb 06 04:32:18 extra black, no sugar Feb 06 04:32:34 thanks babe Feb 06 04:33:25 sasser: I don't drink coffee myself, but I've been told starbucks is watery crap. I can go to the local shop and order a "Kopi Gau Kosong Peng" if you want? Feb 06 04:33:26 What does "extra black" even mean? Blacker than black? Feb 06 04:33:37 Sorry Feb 06 04:33:59 I meant "Kopi Gau Kosong". I presume you wanted it hot. Feb 06 04:34:04 i said coffee black, ur contract is terminated Feb 06 04:34:43 sasser: Kopi = Coffee, Kosong = No sugar/no milk, Gau = strong Feb 06 04:35:11 we're not paying for explanations, we're not paying period Feb 06 04:35:21 sasser: You should come to this part of the world :-) Feb 06 04:37:38 "we're not paying for explanations, we're not paying period" Feb 06 04:37:48 ... mozilla is that you? Feb 06 04:39:18 Thanks for lightening the mood this morning, guys. Now time to bring my bike to the shop. Feb 06 05:30:01 😕 dirty birds, sad! Feb 06 06:06:50 loke: what are the rents like there? high like SV? Feb 06 06:12:55 loke, you dont drink coffee!? You know programmers are just machines that turn caffeine into code, right? :D Feb 06 06:25:21 liefer: Rents where? Feb 06 06:27:13 ? Feb 06 06:27:55 * pfn hates bad coffee Feb 06 06:28:02 Starbucks is bad Feb 06 06:28:24 liefer: You asked what the rents are like. What location did you refer to? Feb 06 06:28:36 think u got the wrong guy Feb 06 06:28:43 Oops! Feb 06 06:28:46 You are right. Feb 06 06:28:47 you implied. being in sea by saying kopi Feb 06 06:28:49 :D Feb 06 06:28:52 I meant to address efloid Feb 06 06:29:07 pfn: Ah yes. You are right. Feb 06 06:29:09 I'm in Singapore Feb 06 06:29:26 And there are two things that are crazy expensive here: Housing and cars. Feb 06 06:29:39 But that's somewhat countered by the fact that the rest is cheap. Feb 06 06:30:42 As an example, a 3-room condo in a reasonably central location would cost you roughly 2 million SGD (1.3 million €) Feb 06 06:31:41 If it's a very central location, that easily climbs to 3 times that. Feb 06 06:32:41 As for cars, an Audio A4 (for example) costs you about 170000 SGD Feb 06 06:32:52 (and you are then allowed to drive it for 10 years) Feb 06 06:56:54 and then you walk? Feb 06 07:03:50 hi mela Feb 06 07:06:40 Melatonina: pretty decent public transport in .sg Feb 06 07:07:19 raoul11: hi, rao! Feb 06 07:07:27 hi Leeds Feb 06 07:09:10 hmm guise Feb 06 07:09:29 is DI mainly for testing? Feb 06 07:12:59 Leeds: Indeed Feb 06 07:13:02 I do have a car though. Feb 06 07:15:08 I haven't had a car for over a decade, and I'm much happier - and, I'm pretty sure, richer - that way Feb 06 07:16:20 Leeds: Same here Feb 06 07:16:32 But Hong Kong cars are pretty cheap compared to SG. Feb 06 07:17:00 not if you have to park them somewhere in the city... Feb 06 07:17:22 Leeds: Parking in SG is decently cheap. Cheaper than Sweden for sure. Feb 06 07:18:06 (incidentally, to make this vaguely on-topic, I feel the focus on Android Auto/CarPlay is a very US-centric thing) Feb 06 07:18:28 Leeds: How so? Feb 06 07:18:51 That said, pretty much everything that Google does is almost exclusively focused on the US. Feb 06 07:19:21 They still don't sell the Nexus phones anywhere wexcept for a handful of places outside the US. Google music is still nowhere tobe seen. Feb 06 07:19:25 Etc, etc. Feb 06 07:19:29 maybe North American... car culture, and particularly long-distance car culture, is much less of a thing in Europe and Asia... even if I had a car, and when I did in the UK, I can't imagine I'd care that much about the head unit being compatible with my phone Feb 06 07:19:57 Leeds: I dunno. I'd like to be able to more easily pick podcasts when driving. Feb 06 07:20:07 I usually listen to them when driving to work (about 30 minutes drive) Feb 06 07:20:17 Google Music is actually in a few non-US countries, including the UK where I technically have a current subscription - and it's actually quite good... even YouTube Red is supported in a couple of non-US places Feb 06 07:20:51 Leeds: I had to use a VPN just to be able to register my account for google music. At least I was able to upload all my songs. Feb 06 07:21:11 But it's annoying to have to use Spotify for streaming. Their recommendations engine is quite bad comapred to googles. Feb 06 07:21:23 my Google account is based in the UK, by accident Feb 06 07:21:46 convenient in some ways - I get the UK book catalogue, for example - but less so in others, like paying VAT Feb 06 07:24:05 and even more accidentally, I currently have a youtube red subscription, which mostly doesn't work... should really cancel it, but I'd be happy to actually pay the $10 for ad-free/offline/background youtube plus google music Feb 06 07:26:03 google does seem to have gotten less global recently, it's true - with the Pixel being the obvious example... I don't know if they've expanded availability at all since they launched it, maybe because of lack of capacity Feb 06 07:31:55 Leeds: I was very spruprised when Google Pay was introduced here some months ago. I never expected that. Feb 06 07:32:03 Just goes to show how jaded I've become. Feb 06 07:32:22 Perhaps Google is just adjusting to the US First policy. Feb 06 07:33:06 it's a fair point, it was introduced here around the same time - but I can't use it on my n5x, because when they introduced it here they also made their anti-root policy stricter Feb 06 07:33:58 Leeds: There is some trick to get around that though. Feb 06 07:34:03 I'd used it in the UK a couple of weeks earlier, with my bootloader-unlocked-but-otherwise-unmodified N5X... when they launched it here, they also blocked unlocked bootloaders Feb 06 07:34:29 I might be able to use it with my already-loaded UK card, but I don't want to Feb 06 07:35:50 yeah i like that my old truck has no fancy electronics ;) Feb 06 07:36:43 i think the auto / wearables was just a natural extension of these companies running out of ideas Feb 06 07:36:50 why does a truck needs fancy electronics g00s Feb 06 07:37:04 although i guess the apple watch is doing so-so / ok Feb 06 07:37:43 raoul11 new vehicles have tons of electronics / computers, new standards are going into effect to vehicle-to-vehicle comms Feb 06 07:38:36 my truck has a computer for the fuel injectors, thats it :D Feb 06 07:38:51 computers breakdowns are expensive /: Feb 06 07:41:32 well, there's a big difference between engine computers and, say, having what's effectively a non-portable tablet on your dashboard Feb 06 07:42:51 Leeds yeah, who needs that (tablet in dash) Feb 06 07:43:30 i guess some of the new collision avoidance could be handy Feb 06 07:43:32 g00s: particularly, as I was trying to say earlier, if most of your journeys are fairly local commute/errand sort of trips Feb 06 07:44:01 if they banned cars here and we all just rode bicycles i'd be ok with that Feb 06 07:44:06 cars suc Feb 06 07:44:52 too hot here Feb 06 07:45:40 gonna get hotter .. because of .. cars :) Feb 06 07:46:00 you guys might be swimming by then though Feb 06 07:46:01 || Ojmjakon, Russia | Scattered Clouds | -32°C (-26°F) | Humidity: 79% | no wind. || Feb 06 07:46:20 Ashiren oh, sounds nice :) Feb 06 07:49:11 coldest place I've been is Harbin - pretty much Chinese Siberia - where the current temp is -10, but the forecast for low tonight is -23 Feb 06 07:52:58 thats t-shirt weather Feb 06 07:57:00 with Vodka ... Feb 06 08:20:58 Leeds programmed with Go at all ? Feb 06 08:21:20 i'm looking for an excuse to learn it, just not sure what i'd do with it now Feb 06 08:21:31 I payed Go a couple of times back in high school... Feb 06 08:22:09 just let it Go Feb 06 08:22:28 would you like to build a snowapp? Feb 06 08:22:51 g00s: nah, I've been really really boring for too long, should really spend some time looking into stuff like go Feb 06 08:33:58 Leeds used docker yet ? Feb 06 08:34:01 although I might have just suggested we use some cross-platform framework for a new project... cordova is good, right? Feb 06 08:34:10 lol Feb 06 08:34:29 unfortunately, not joking :) Feb 06 08:34:38 never used it Feb 06 08:34:39 haven't really found/seen a need for docker, to be honest Feb 06 08:40:34 did Leeds just mentioned the C word here? Feb 06 08:40:51 maybe I should use mono :D Feb 06 08:43:52 10:45 nd still no thepoosh Leeds Feb 06 08:44:02 he been slackin Feb 06 08:44:52 maybe he's actually 'working' Feb 06 08:48:08 doubt it Leeds Feb 06 08:48:20 he was super excited bout the superbowl yday Feb 06 08:48:25 skipped the android meeting Feb 06 08:51:05 bowling? Feb 06 08:52:36 \: Feb 06 08:52:51 dat murican sport, yaknow, eggball with cushins Feb 06 08:53:41 ahh, the football-not-soccer thing Feb 06 08:53:59 the superb owl... really excellent owls Feb 06 08:54:23 hey guise Feb 06 08:54:30 hello Odaym Feb 06 08:55:14 Leeds i wonder how flutter will pan out Feb 06 08:55:42 still experimental, i guess you could choose between cordova and react native Feb 06 08:56:14 I have this horrendous layout https://dl.dropboxusercontent.com/u/19390574/Screenshot_20170206-105310.png and when I try to work with the map, the scroll/touch/drag is stolen by the host fragment Feb 06 08:56:43 on whom can I set onInterceptTouchEvent? or..how do I avoid this? Feb 06 08:57:06 is it in a scrollview or sometha? Feb 06 08:58:03 btw yey for having tabs at the bottom Feb 06 08:58:15 coz, F materialdesign. Feb 06 08:58:24 this fragment and it's friend on the left are loaded into a viewpager Feb 06 08:58:46 you have tabs and bottom nav, that terrible Feb 06 08:58:50 choose one :) Feb 06 08:58:52 so for example when I try to touch the map, the main layout where the bottom bar is gets triggered, if you scroll up it causes the bottom bar to hide below (as intended) Feb 06 08:58:55 NO g00s Feb 06 08:59:02 bottom nav > Feb 06 08:59:05 it is horrendous but I have no say Feb 06 08:59:26 you see that button at the top right? if you press that the map is supposed to go away and a listing of the locations should appear :) Feb 06 08:59:34 lol Feb 06 08:59:38 so...yea, not my call Feb 06 08:59:39 lol indeed Feb 06 08:59:45 if you're using swipe logic outside the map Feb 06 08:59:59 what do u expect to happen? Feb 06 09:00:00 just disable the swiping of the viewpager Feb 06 09:00:05 make them hit the tabs Feb 06 09:00:26 g00s: am doing a bottom nav app as well Feb 06 09:00:38 coz, F dat hamburger/drawer/whatever Feb 06 09:00:42 ok I will see, one second Feb 06 09:01:03 because there's the problem of siwtching tabs, and there's the problem of scrolling up and down causing the main coordinator layout to get triggered, hiding the bottom nav bar Feb 06 09:01:13 I want the map to gain all touch events to itself Feb 06 09:01:18 that would solve both Feb 06 09:01:34 it depends what container its sittin in Feb 06 09:01:47 if its one which hogs touch events, you need to bypass it Feb 06 09:02:23 if I set focusable false and clickable false on its parent for example Feb 06 09:02:25 like a scrollview - u cant have both views (well u can in one direction) intercepting the same touch Feb 06 09:03:33 Odaym http://stackoverflow.com/questions/9650265/how-do-disable-paging-by-swiping-with-finger-in-viewpager-but-still-be-able-to-s Feb 06 09:03:47 I have a nonswipeable viewpager Feb 06 09:03:53 extebd your viewpagers with a custom NoSwipepager Feb 06 09:03:55 https://www.dropbox.com/s/d8f66gmh002fqni/Screenshot%202017-02-06%2011.03.52.png?dl=0 Feb 06 09:03:56 :P Feb 06 09:04:01 I've even upvoted that question in the past Feb 06 09:04:02 haha Feb 06 09:04:10 that answer* Feb 06 09:05:07 g00s: not sure I'd ever heard of flutter before... dart? Feb 06 09:05:17 yeah googles thing Feb 06 09:19:15 Morning Feb 06 09:19:34 I'm developing a custom box based around the Android TV (leanback) interface Feb 06 09:20:07 I've seen that several other devices have a vendor-specific section in the launcher Feb 06 09:20:47 ok yes this whole thing that I'm working with *is* sitting inside a scrollview Feb 06 09:20:49 of course Feb 06 09:21:06 For example, the "SHIELD Hub" section here: http://images.anandtech.com/doci/9289/android-tv-leanback-ui.png Feb 06 09:21:19 CyberJacob: *actual* AndroidTV, or just Android on a TV box? Feb 06 09:21:28 How is this added? I can't seem to find anything in the documentation Feb 06 09:21:42 lol Odaym Feb 06 09:21:50 Leeds: actual android TV, using the Live Channels app, etc Feb 06 09:21:53 goodluck with that Feb 06 09:21:54 so how do I ask it to steal the clicks Feb 06 09:22:10 it needs an onInterceptTouchEvent Feb 06 09:22:31 CyberJacob: then given that you'd be one of about 5 vendors, total, worldwide, doing that - wouldn't you have actual contacts at Google who can help? Feb 06 09:23:05 Leeds: Nope, haven't spoken to Google about this at all Feb 06 09:23:30 http://stackoverflow.com/questions/6194739/overriding-ontouchevent-competing-with-scrollview Feb 06 09:23:42 mite be helpful Feb 06 09:23:56 what dbms can I use in conjunction with Android studio? Feb 06 09:24:05 without much hassle Feb 06 09:24:44 I didn't think the androidtv platform was aosp - I thought it was licensed... Feb 06 09:29:16 Leeds: Google published it with their other android sources stuff, so I think it's part of AOSP Feb 06 09:29:17 https://android.googlesource.com/device/asus/fugu/ Feb 06 09:29:49 Leeds: how can I integrate a dbms with my android app>? Feb 06 09:30:08 shynoob: don't... use sqlite Feb 06 09:30:33 Leeds: as is the TV input framework (https://android.googlesource.com/platform/packages/apps/TV/) Feb 06 09:30:34 what other options I have if I am using linux and windows> Feb 06 09:31:15 CyberJacob: good luck with that then... I really suggest you contact Google :) Feb 06 09:31:18 shynoob: sqlite Feb 06 09:32:00 I thought you asked me not to use that Leeds, Feb 06 09:34:21 shynoob: don't use a dbms, do use sqlite Feb 06 09:34:53 I heard SQLite has many limitations... people asked me not to use that too Feb 06 09:35:25 they were wrong Feb 06 09:35:31 oh Feb 06 09:35:44 but still I would wanna know do I have other options? Feb 06 09:35:48 on Android, use sqlite... sync it to a db elsewhere if you need to Feb 06 09:36:44 ohh Feb 06 09:36:50 alright Feb 06 09:41:58 i kind of prefer Realm over sqlite tbh Feb 06 10:09:45 ok the answer is with a touchable wrapper Feb 06 10:09:52 onintercepttouchevent over there Feb 06 10:30:23 Hi all. I am a newbie. Just started learning Java. Want to write my own apps for Android. So i am learning Java now. But Java is just a code. I will need GUI also. I think, learning Java coding and making GUI at the same time will be great for newbie. What source can you recommend for learning GUI creating for Adnroid Apps? Thank you Feb 06 10:32:47 This custom view should extend android.support.v7.widget.AppCompatTextView instead android.widget.TextView Feb 06 10:32:51 what the hell is this? Feb 06 10:33:29 hstl: learn some java first. most UI stuff is in xml, but interaction, clicks etc is done in code Feb 06 10:33:34 hstl: thenewboston on youtube Feb 06 10:33:39 maybe slidenerd as well Feb 06 10:33:48 Ashiren will most likely mention bignerdranch Feb 06 10:33:58 in 5..4..3..2..1 Feb 06 10:34:05 Feb 06 10:34:09 do it! Feb 06 10:34:12 u want to Feb 06 10:35:03 Ashiren: what options do I have.. if I want to connect to a database on a remote server ... I've heard of REST services.. but not sure Feb 06 10:35:34 well, REST Feb 06 10:36:15 Do you have some links for some reference ? Ashiren, Feb 06 10:36:29 gdrc, a new warning that yells at you when you mess stuff up. Feb 06 10:36:43 for client side i use retrofit. for server side i have backend team for that Feb 06 10:36:58 is the android sdk written in a kindergarten? Feb 06 10:36:58 what does your backend team use? Feb 06 10:37:29 what does your backend team use? Ashiren, Feb 06 10:37:45 this is new and very annoying, every 2 months you have to change the class of the activities Feb 06 10:38:13 wtf are you talking about Feb 06 10:38:14 it depends. i.e. python flask or some elastic search Feb 06 10:38:21 if you didn't extend AppCompatTextView you fucked up already Feb 06 10:38:30 now it just warns you before breaking on older APIs Feb 06 10:38:36 oO Feb 06 10:38:44 whats wrong with TextView Feb 06 10:39:12 Ashiren, you mean what's wrong with extending TextView? Feb 06 10:40:03 yes. althought i never extended it myself Feb 06 10:40:20 or whats wrong with TextView itself Feb 06 10:40:22 Ashiren, it won't be autoshimmed with AppCompat TextView Feb 06 10:40:36 Ashiren, so the theme and look will break if you use AppCompat and support < 21 Feb 06 10:40:48 hence you need to extend the AppCompatTextView instead of TextView to make it work properly Feb 06 10:41:00 In new AS you get a warning for that. Feb 06 10:41:13 If you use plain TextView the AppCompat shimming thing will work. Feb 06 10:41:34 i see Feb 06 10:48:14 Ashiren, but it's possible to learn in first month, i think? For example, write small calculator program with GUI? Feb 06 10:51:13 yeah Feb 06 10:51:18 raoul11, thank you very much for links Feb 06 10:51:27 Ashiren, thank you for answers Feb 06 11:01:48 Hello all Feb 06 11:02:32 I have a problem with HTC 10 - it's stuck in Unlock bootloader? Volume up and down does not work to select Yes or No... Feb 06 11:03:31 panicstr: and you want to write an app to fix it? please read channel topic... Feb 06 11:03:48 try #android-root Feb 06 11:04:56 sorry Feb 06 11:13:01 Hello, how to set gravity of the drawable in a imageview ? I cant make it work. Watch this pic : http://hpics.li/3567d08 I set the backgroundcolor to green, and the drawable is the blue circle. I want the blue circle to be on the left how can I do it ? This imageView is an item of a dynamic LinearLayout Feb 06 11:13:44 what have you tried? pastebin layout file? Feb 06 11:13:46 Gravity params not working : (Linear)layoutParams.gravity = Gravity.LEFT | Gravity.CENTER_VERTICAL; Feb 06 11:14:16 Layout file is just a linearlayout Feb 06 11:14:35 give code then Feb 06 11:20:10 Zharf: https://codepaste.net/26xda3 this is how i set params to my imageview Feb 06 11:20:20 Hi, I am using FusedLocationApi to extract location of the user. In case the LocationSettingsStates returns LocationSettingsStatusCodes.RESOLUTION_REQUIRED status, I start startResolutionForResult for displaying a prompt to the user to enable location tracking. This works fine in most of the cases, however in a particular case of a Samsung S Duos device, the callback from startResolutionForResult does not display the prompt and automatically redire Feb 06 11:20:20 to onActivityResult callback with result code RESULT_CANCELLED. Feb 06 11:20:21 This is seemingly the case because on my device (a Samsung Galaxy S Duos), the request to turn on the Wifi/GPS is not processed instantaneously/synchronously. On manual setup, it shows a prompt and then toggles the service. Has anyone got any insight on a workaround this issue? Feb 06 11:21:09 but i want to handle gravity of the drawable inside the imageview, not gravtity of the imageview itself Feb 06 11:21:17 oh Feb 06 11:21:33 because the imageview has weight = 1, so it takes all the width Feb 06 11:23:09 marto_: you can try with scaleType fitStart Feb 06 11:24:30 curView.setScaleType(ScaleType.FIT_START); Feb 06 11:25:14 ripoff Feb 06 11:25:44 okay let me test this Feb 06 11:26:08 Ashiren, well he disconnected apparently and only caught my line Feb 06 11:26:09 :p Feb 06 11:26:14 no Feb 06 11:26:18 i saw averything :) Feb 06 11:26:19 boo Feb 06 11:28:55 wonderfull, it works ! Thanks Zharf & Ashiren =)) Feb 06 11:47:23 How do people generally handle views where the data model can be of varying size, i.e. a detail view for a dictionary where there can be an arbitrary amount of 'meanings' for an entry? I'm currently just putting everything into one textview, and appending new line characters when I need a new row but this doesn't feel 'best practice' at all... I know I can programmatically insert views but won't that increase my view nesting a lot Feb 06 11:53:07 are you trying to make a list? Feb 06 12:02:05 I was thinking it could be represented as a list, but is putting multiple ListViews inside a NestedScrollView a good idea? Then you get all sorts of problems with scrolling Feb 06 12:02:23 Vim or Emacs for Java programming? Feb 06 12:05:37 relevent post from a googler... https://plus.google.com/+AdamWPowell/posts/T5AgJ7jiK88 Feb 06 12:18:20 the short answer... is that you should use AS Feb 06 12:18:48 (I know she already left) Feb 06 12:24:57 he Feb 06 12:27:16 raoul11: HAI Feb 06 12:27:52 raoulll Feb 06 12:35:12 * raoul11 thepooshes thepoosh Feb 06 12:35:18 nice of u to show up thepoosh Feb 06 12:35:21 only 14:30 Feb 06 12:35:26 I'm tired Feb 06 12:35:30 stayed up all night Feb 06 12:35:48 \: Feb 06 12:35:57 what's up raoul11 Feb 06 12:35:58 ? Feb 06 12:36:08 did u enjoy yer super-eggball? Feb 06 12:36:18 yeah, it was pretty cool Feb 06 12:36:47 no hotchicks yday at the meeting thepoosh Feb 06 12:39:28 What i need to know if i want to records sound from both sides of a call? Feb 06 12:39:58 that its not always possible, not on every device Feb 06 12:40:38 I want to see if it works on my phone Feb 06 12:40:40 OPPO Feb 06 12:41:03 although i think i got my info from very old sources Feb 06 12:41:40 some samples http://stackoverflow.com/questions/18887636/how-to-record-phone-calls-in-android Feb 06 12:41:45 raoul11: you only get one f0ntain per year Feb 06 12:42:15 a designer asked me to work with him for the hackathon Feb 06 12:42:19 it was (is?) impossible on some devices to record the incoming voice sind the audio signal went directly from antenna to the speaker Feb 06 12:42:28 not sure ill even participate Feb 06 12:42:52 heh Feb 06 12:45:04 Ashiren, thanks, i am checking Feb 06 12:45:10 seems useful to me Feb 06 13:00:35 Hi! Feb 06 13:01:53 does anyone have any android project to do?I will do it for Free! Feb 06 13:03:24 Ping me if anyone have! Feb 06 13:07:06 I'm the best, everyone here is my son, my offsprings, I'm the best in world! Feb 06 13:32:18 man\ Feb 06 13:32:22 Slack is a black hole Feb 06 13:32:28 yuck Feb 06 13:33:01 people talk there from morning till 5 Feb 06 13:33:06 literally Feb 06 13:35:56 ?? Feb 06 13:36:04 !! Feb 06 13:36:11 != Feb 06 13:36:13 which group? Feb 06 13:36:22 any moderately active group Feb 06 13:36:32 ok Feb 06 13:36:33 it's a black hole of productivity Feb 06 13:36:39 you have to shut it off to focus Feb 06 13:36:44 does anyone have any android project to do? Feb 06 13:36:48 hehe yes Feb 06 13:42:15 the slack client is so bad that I don't even notice the activity in there Feb 06 13:43:20 sub_zero, why would you do it for free? -.- Feb 06 13:43:27 sub_zero, looking for a hobby? Feb 06 13:43:47 I want to do my first project for free Feb 06 13:43:49 so doesn't matter Feb 06 13:44:33 think of something you want Feb 06 13:44:35 and do it Feb 06 13:44:49 I have several on-going free time projects Feb 06 13:45:00 that I'll probably never get done to completion Feb 06 13:45:32 sub_zero, write me a better xmms2 client Feb 06 13:45:50 (because I suck at UX design) Feb 06 13:46:17 i love it Feb 06 13:46:36 its the most interesting thing in android development Feb 06 13:47:08 well if you can design a new xmms2 client that'd be swell Feb 06 13:47:09 :p Feb 06 13:47:34 but it's really up to you, the best projects one can get are ones which one is passionate about Feb 06 13:48:09 correct Feb 06 13:48:33 i will choose on my own,getting various options as am doing it for free :D Feb 06 13:49:13 so if you want to design a frontend for a music player, I have the backend and a library to communicate with done :p Feb 06 13:49:26 ~look for some open source app like from f-droid Feb 06 13:51:58 Zharf ok just tell me your basic idea what kind of UI you want , so that i can give you the best shot Feb 06 13:52:17 Ashiren ok thanks :) Feb 06 13:53:34 make me app that will make people pay me $5 every day Feb 06 13:53:39 me also Feb 06 13:57:50 pressing alt + F1 takes you to where the file is in the project Feb 06 13:57:55 * Odaym sheds tear Feb 06 13:57:57 so beautiful Feb 06 13:58:34 huh, never knew that, cool Feb 06 13:59:12 Hello, what does it mean if an app does not start at all? I mean it shows in the launcher, but when I try to press the icon it just does not even try to start. Error in the manifest? how to check that? gradle build did not give any errors to me. and I just added an empty list activity. Feb 06 13:59:36 IDEA has so many shortcuts and features that it's near impossible to remember/know them all Feb 06 13:59:43 true Feb 06 14:00:03 for example you can go back between design and XML view Feb 06 14:00:15 ctrl + shift + arrows Feb 06 14:00:38 exactly, how to be sure my manifest is correct, that everything referenced there exists, etc? Feb 06 14:00:43 Ashiren i will make an app that will make you pay me $5 everyday xD Feb 06 14:01:20 make sure there is an activity in your manifest serving as the entry point to the app, webczat Feb 06 14:01:36 search for the syntax that allows activities to serve as entry points, something with MAIN and LAUNCHER Feb 06 14:02:55 well it actually worked. but I tried to add an empty activity that listens for a new action like ACTION_DEVICE_SELECTED. and now nothing starts Feb 06 14:03:33 what? Feb 06 14:03:40 you just want to press on the icon and something appears Feb 06 14:03:48 it's a problem if that doesn't happen, fix that first Feb 06 14:04:25 Odaym: but nothing appears even though before creating this second activity, it actually did. Feb 06 14:04:43 then see what changed when this new one was added Feb 06 14:04:50 whatever changed is causing the new issue Feb 06 14:04:54 ricardopvz Feb 06 14:04:55 unless the problem is with the fact that my activity in onCreate does startActivityForRefult? Feb 06 14:05:17 *result Feb 06 14:05:54 it says startActivityForResult just like that? Feb 06 14:06:01 copy/paste broke, ignore that message Feb 06 14:06:06 no button press or anything? just right after on create? Feb 06 14:06:20 Hi all, I've got an 'Not allowed to start service Intent' exception but the permission is inside the androidmanifest. Any advice on that? Feb 06 14:09:23 Odaym: yes, the intention is to immediately launch the second activity to permit selecting a device to act on. but it does not work, commenting startActivityForResult makes it work. Feb 06 14:10:02 too random the things that could be going wrong in your case Feb 06 14:10:14 this is going to be a test so the main activity should actually be completely empty. Feb 06 14:10:18 but I wouldn't do it with starActivtyForResult Feb 06 14:10:47 Odaym: but how to check what went wrong? and how would you do it? Feb 06 14:11:06 it seems to be a dialog you're asking for Feb 06 14:11:12 with the list of devices to "act on" Feb 06 14:11:26 then show a dialog, and you dont instantly prompt the person with questions when they open the app Feb 06 14:11:41 have the question trigger when the user expresses that they'd like to take an action Feb 06 14:12:08 try to move it to onResume() although there shouldnt be difference Feb 06 14:12:29 Odaym: actually the whole intention of this app is to be a small test of something, so the only user is me. and I feel that I want the activity to perform device selection immediately :) Feb 06 14:12:56 Ashiren: but if i move it to onResume, it will trigger each time I leave. onCreate happens only once Feb 06 14:12:59 its just that your use of startActivityForResult is wrong Feb 06 14:13:10 if you want to start an activity at the very beginning of the app....then that's your main activity Feb 06 14:13:19 does the second activity starts if its main launcher, not from startActivity? Feb 06 14:13:32 you dont start one to start another one Feb 06 14:13:49 unless you're in a login situation where you have to decide what to show if the user is logged in or not Feb 06 14:13:49 Ashiren: it is currently empty, it should start... hmm Feb 06 14:15:12 Odaym: the second activity is a ListActivity subclass... the problem is I want it to show "select bluetooth device" without designing a layout and without making this "select xxx" show in the launcher :D Feb 06 14:15:42 what does the logcat say, any exception? Feb 06 14:15:47 this Fatboy Slim cover http://imgur.com/TPJoEym Feb 06 14:15:53 hmm Feb 06 14:15:58 also ListActivity is passe Feb 06 14:16:04 it's blasse Feb 06 14:16:15 it's demode Feb 06 14:16:19 Ashiren: at this time it should just work. best practice is not important :) Feb 06 14:16:21 unbecoming of a gentleman Feb 06 14:16:23 lol Feb 06 14:17:45 webczat: in this ListActivity, do you have layout and ListView with id = @android:id/list Feb 06 14:18:10 I cannot see logcat (not from idea). I am blind and this one thing is currently inaccessible, have to report it. and I do not know how to filter logcat to show my app only Feb 06 14:18:41 adb logcat | grep Exception maybe will show something Feb 06 14:18:48 why not android studio :c Feb 06 14:18:57 Ashiren: currently the list activity is empty asnd has no layout. I am usually testing one thing at a time before continuing, so I will design the activity only when It first appears :D Feb 06 14:18:58 you are blind? Feb 06 14:19:11 Ashiren: android studio is modified idea Feb 06 14:19:18 and yes it is android studio Feb 06 14:19:24 yes i am Feb 06 14:19:24 webczat: well ListActivity requires layout and ListView with @android:id/list Feb 06 14:19:28 otherwise it will crash Feb 06 14:20:12 so you need to create layout, add ListView, in the activity's onCreate() setContentView() to this layout etc Feb 06 14:20:22 Ashiren: ah okay, possibly! but now, I want to, for future reference, learn how to spot such errors. I want to see this crash :) Feb 06 14:20:35 or, just to test, change ListActivity to Activity and see if it starts Feb 06 14:20:42 Ashiren: I remember I once tried ListActivity and it did not require layout, like it had defaults I think Feb 06 14:20:53 then make idea's logcat visible Feb 06 14:20:56 o sure, I can do that last one Feb 06 14:21:17 Ashiren: as said I cannot use idea's logcat view unless some nice people from AS fix that Feb 06 14:21:41 android studio is more than modified idea. android studio is life, android studio is love Feb 06 14:22:51 * webczat laughs Feb 06 14:22:59 isit Feb 06 14:23:08 tell adq that Ashiren Feb 06 14:23:12 deew eeet. Feb 06 14:23:18 adq: ^ Feb 06 14:24:11 some people just wanna watch the world burns Feb 06 14:25:33 webczat: did it work Feb 06 14:26:28 Ashiren: not sure yet. Feb 06 14:30:31 lol Feb 06 14:31:49 a boolean in java cannot be null. If I create a boolean without initializing the value, whats the default value ? Feb 06 14:32:34 false Feb 06 14:33:11 Boolean b = null; Feb 06 14:33:14 felse Feb 06 14:33:14 your argument is invalid Feb 06 14:33:25 boolean != Boolean Feb 06 14:33:26 :p Feb 06 14:33:36 2deep4me Feb 06 14:33:44 so I will just say "boxing" and leave Feb 06 14:34:00 oh and "autoboxing" Feb 06 14:34:03 2 terms I know Feb 06 14:34:36 look at Odaym showing off Feb 06 14:34:43 10x bro Feb 06 14:40:24 Ashiren: no it does not Feb 06 14:41:34 Ashiren: but I can't get it to show the error of any kind. I would like to filter logcat to show only my app Feb 06 14:41:39 from command line Feb 06 14:43:47 grep yer package name Feb 06 14:43:55 or pid Feb 06 14:49:57 webczat, https://developer.android.com/studio/command-line/logcat.html Feb 06 15:06:26 I'm trying to write a junit instrumentation test to test my open gl rendering code, anyone has any pro-tips for me? I am failing miserably at the moment. Feb 06 15:09:59 are the menu items icons in toolbar supposed to be tinted by default from the toolbar it self? Feb 06 15:10:06 or they should have their own colors? Feb 06 15:12:37 I found this: http://www.silverbaytech.com/2014/10/03/android-opengl-unit-testing/ , but it's out dated. Feb 06 15:12:48 anyonebutme, I doubt that'll work at all Feb 06 15:13:24 Someone would have to make a mock opengl interface that behaves fully like the actual OGL :/ Feb 06 15:13:46 Mavrik: I am trying to get some GL context to work with, with no success. Feb 06 15:14:18 Is this not the right approach? write my own activity just for the test, and initiate the GL stuff from it's context? Feb 06 15:14:26 Hello can someone send me a tutorial link on JSON, for example I pass a string URL and I get a JSON object put on a Toast of Log, a very simple json tutorial please as I a noob, 1 day experience in Android dev Feb 06 15:14:41 *Toast or Log Feb 06 15:15:48 AndroidNewb, you probably want a retrofit tutorial Feb 06 15:16:06 Zharf, thanks! Feb 06 15:25:34 I'm using apache cordova, and there's a plugin for using the default camera app to take photos, which then returns me a url and a path of the photo. But that path is not the same as the path the image gets saved in. Feb 06 15:25:35 Why? Feb 06 15:26:00 I know this isn't a cordova channel, but this data is returned from the default camera app of the phone Feb 06 15:26:24 So why do I get different path & url, and what do they represent? Is it a symlink or what? Feb 06 15:27:00 So, what's a good way to get an opengl context in a junit test these days? Feb 06 15:27:27 I don't understand how do you expect to get a GL context in tests that don't even run on the device. Feb 06 15:27:47 *instrumentation test Feb 06 15:28:03 Ah, the same way as you get it in activity_ Feb 06 15:28:04 ? Feb 06 15:28:14 You probably need to setup an activity. Feb 06 15:28:21 done that Feb 06 15:30:19 it's not the issue. infact, the issue is that i have no real idea what i am doing, for example, my test says it expects a constructor with 0 arguments, but the examples i've been following all been using the constructor with the activity as an argument to start the actual activity. At some point, i've gone past this, but it still failed to start the activity. Feb 06 15:30:57 Besides reading the android doc on unit testing for the 50th time, is there a more constructive approach to this? Feb 06 15:31:35 my activity make a rest call in the onResume() method, how can i avoid to call everytime after the orientation change ? I don't want to handle the orientation by myself (implementing onConfigurationChange etc...)... Feb 06 15:32:27 anyonebutme, well, you might be extending the wrong class for test Feb 06 15:32:43 You do have to call through to upper constructor with the activity class reference. Feb 06 15:35:49 "ActivityTestRule cannot be applied to 'ActivityIAmUsing'" Feb 06 15:36:02 no wait... Feb 06 15:43:01 anyone please? Feb 06 15:43:35 CrowX-: what path and URL do you get? Feb 06 15:46:12 they are completely different. different directory tree navigation, different numbers in the filename. Feb 06 15:46:21 different from the actual image on the phone I mean. Feb 06 15:49:42 uh, yeah... what are they? Feb 06 15:50:18 sec, I'll get them Feb 06 15:51:41 Actual file path: /storage/sdcard0/DCIM/Camera/IMG_20170206_164657_1.jpg Feb 06 15:53:01 File path returned from plugin: file:///storage/sdcard0/DCIM/Camera/1486396015555.jpg Feb 06 15:54:49 does the latter path exist? Feb 06 15:57:52 Leeds, I can't see it when I look in the directory tree Feb 06 16:03:03 if you try to open it with your code, what happens? Feb 06 16:04:43 I'm trying to replicate the searchbar behavior from google maps where if a bottom sheet is pulled app, the map scrolls offscreen. Any idea what the best way to do this would be? Feb 06 16:09:56 Is it true that running `adb reverse _ _` will give your android virtual device internet access through the port specified? Feb 06 16:10:04 like an http reverse proxy? Feb 06 16:24:44 Hi. How do you force Gradle to 'Sync Now' besides editing the build.gradle and choosing the option from the pop-up? Refresh all Gradle projects from the Gradle menu doesn't do the same thing. Is there a hotkey for that? Feb 06 16:26:18 karkoon, Tools -> Android -> Sync project with gradle files should do the same AFAIK. Feb 06 16:41:56 Mavrik: Thank you, I FINALLY managed to do this ActivityTestRule without crashing, now i think i'm on course of writting my activity to load all the convoluted things you have to do to get opengl context, so, thank you! Feb 06 16:44:58 and just for the record, I know this isn't going to be popular here, but i've been developing for android on and off since if came out, developed many different projects on many different platforms, android is not a good development platform in my mind, everything is waaay too convoluted and syntax heavy, just started on junit testing, it's bad, like really bad. I am very unimpressed with google. I know this might deeply offend someone here, but i b Feb 06 16:45:25 *shrug* Feb 06 16:45:46 Noone here works at Google so I doubt anyone will be offended. Feb 06 16:45:59 But I also don't consider complaining about it constructive as such. Feb 06 16:46:19 but i mostly agree with you Feb 06 16:46:32 syntax heavy? what? Feb 06 16:47:44 but to each their own... personally I haven't encountered a framework that was easier/nicer to work with Feb 06 16:47:45 it's java, use something that's not java then Feb 06 16:47:50 kotlin works well Feb 06 16:47:59 but a lot of it is IDEA I guess Feb 06 16:48:00 and for mobile frameworks, this is pretty much par for the course Feb 06 16:48:13 objc is pretty equally terrible Feb 06 16:48:27 can't stand objc Feb 06 16:49:16 windows phone is fairly reasonable Feb 06 16:49:23 xaml and c# is reasonably better than java Feb 06 16:49:34 mh... tools for it suck though Feb 06 16:50:03 and the platform is pretty much dead Feb 06 16:52:36 Well, back in the day there was J2ME, developing for it was a breeze, i really miss it :) Feb 06 16:53:08 Yes, complaining is not useful, it's just venting really. Feb 06 16:53:27 but J2ME did things right. Feb 06 16:54:40 You didn't have to worry about where buttons go, albeit for a different class of devices, but it was essentially device agnostic UI. Feb 06 16:55:14 their 3d implementation was some stripped down version of java3d, another long forgotten but well designed framework. Feb 06 16:56:14 ok, enough venting, back to work :) Feb 06 16:57:44 I'm using apache cordova, and there's a plugin for using the default camera app to take photos, which then returns me a url and a path of the photo. But that path is not the same as the path the image gets saved in. Feb 06 16:57:50 Why? Feb 06 16:58:01 I know this isn't a cordova channel, but this data is returned from the default camera app of the phone. Feb 06 16:58:08 So why do I get different path & url, and what do they represent? Is it a symlink or what? Feb 06 17:00:44 what exactly are the path and url, can you give your example Feb 06 17:03:18 can you put onTouchlisteners in a while loop? Feb 06 17:05:58 s0ullight, sure, why not Feb 06 17:06:36 Zharf: alright, just realized my code results in an infinitive loop, let's see what's going on :) thank! Feb 06 17:07:26 Ashiren, here is the path of the file as I see it in my gallery: /storage/sdcard0/DCIM/Camera/IMG_20170206_164657_1.jpg Feb 06 17:08:07 and what does the intent give you Feb 06 17:08:08 Ashiren, here is the path that the plugin returns me: file:///storage/sdcard0/DCIM/Camera/1486396015555.jpg Feb 06 17:10:21 oO Feb 06 17:10:31 thats interesting Feb 06 17:10:37 I know, right? :) Feb 06 17:11:06 the camera returns the image in extra called data Feb 06 17:11:06 I'd still prefer a boring and 'just works' way though. Feb 06 17:11:19 it also gives you the path to the thumbnail Feb 06 17:11:46 http://stackoverflow.com/questions/20327213/getting-path-of-captured-image-in-android-using-camera-intent Feb 06 17:13:15 ... I thunk Feb 06 17:13:22 think* Feb 06 17:13:38 never actually used that intent... :p Feb 06 17:15:54 https://guides.codepath.com/android/Accessing-the-Camera-and-Stored-Media Feb 06 17:17:47 i just made a joke, where do android developers fuck? Feb 06 17:17:50 intents! Feb 06 17:17:59 get it? Feb 06 17:20:45 the joke is that we don't? Feb 06 17:22:22 this guy fucks Feb 06 17:22:43 Oops, watch your language Feb 06 17:22:58 now why the hell is youtube suddenly sending me notifications in finnish Feb 06 17:23:02 damn I hate localizations Feb 06 17:24:50 Zharf: did you move to finland? Feb 06 17:28:33 mikedg, I've lived here for 33 years Feb 06 17:28:36 since I was born Feb 06 17:28:51 what took so long? Feb 06 17:29:22 why can't finish android developers impress the finnish ladies? Feb 06 17:29:26 because they live intents! Feb 06 17:29:51 *gears grinding* Feb 06 17:30:43 my email language is set to english Feb 06 17:30:47 and it sent me an email in finnish Feb 06 17:30:51 fucking localization Feb 06 17:30:54 never works properly Feb 06 17:31:03 are you sure you just don't think in finnish? Feb 06 17:31:10 thus the email appeared to be finnish, but its really english Feb 06 17:31:20 sometimes that happens to me when I'm watching a movie with subtitles Feb 06 17:31:23 i hear english Feb 06 17:31:30 pretty sure Feb 06 17:31:43 have you had a non finnish reader take a look? Feb 06 17:31:50 have you rebooted your mail server? Feb 06 17:48:09 I'm trying to remove a view and later add it again (as part of a view transition), however I get this exception https://gist.github.com/Syzygy2048/70761cae4048566f58446d1786565bb5 Any idea what might cause this? Feb 06 17:49:03 this is the code, crashes in onOpened: https://gist.github.com/Syzygy2048/23f29e626d613c51712bb6aefa32533b Feb 06 17:49:14 (or rather after onOpened Feb 06 17:49:45 which line? Feb 06 17:50:02 ahh Feb 06 17:50:29 technically no line. Feb 06 17:51:34 app freezes and then crashes about 4 seconds after the view has been removed Feb 06 17:51:49 the removeview and addview in onclosed could be wonky Feb 06 17:53:00 how could I dewonk it? it seems like samples I've found are doing nothing more than this. Feb 06 17:53:07 most don't even invalidate Feb 06 17:54:07 im not that familiar with coordinatorview, but why would you removeView and addView the same view from the same layout? Feb 06 17:54:32 I'm trying to replicate the behavior of the google maps search box. Feb 06 17:55:00 when you slide in a bottom drawer, the searchbox vanishes. and reapers once you slide it out Feb 06 17:55:42 I'm just following this example: https://developer.android.com/training/transitions/transitions.html Feb 06 18:04:12 guess I'll just try view.animate().translateY() or something along those lines Feb 06 18:06:19 Do android devs using the android IDE typically make interfaces by writing xml by hand, or via drag-and-drop with the design tab? Feb 06 18:06:51 by hand Feb 06 18:06:59 I write it per hand, the design tab leads to odd stuff imho. Feb 06 18:07:18 by hand, but with the Preview tab open, so it can help as much as it can Feb 06 18:07:33 ^ Feb 06 18:07:41 although if you’re using Constraint Layout, you want to use the editor Feb 06 18:07:46 "With Chrome 56, your Web app can communicate with nearby Bluetooth devices in a private and secure manner, using the Web Bluetooth API" hm, cool Feb 06 18:07:50 apparently the XML needed to make that work is pretty wonky Feb 06 18:09:30 g00s: coo Feb 06 18:09:47 mikedg you're still alive ! Feb 06 18:09:54 i am undead Feb 06 18:10:42 * hackkitten chases around for brains~ Feb 06 18:10:46 g00s, they talked about it in i/o 2016 Feb 06 18:10:52 i guess some of this can't be disabled for now https://www.theregister.co.uk/2017/02/05/chrome_56_quietly_added_bluetooth_snitch_api/ Feb 06 18:10:59 would that be recently undead? Feb 06 18:11:10 holy shit novak too Feb 06 18:11:25 * g00s checks calendar, is it 2011 Feb 06 18:12:08 undead more like hard reset. Feb 06 18:12:24 party like its 2011! Feb 06 18:13:17 why are people so upset about a bluetooth web api? Feb 06 18:13:47 mikedg tech are you working on these days ? Feb 06 18:13:52 *what tech Feb 06 18:14:17 VR/Unity, i've mostly been on android hiatus for like a year now though Feb 06 18:14:33 are you in VR right now? Feb 06 18:14:39 is the weather nice? Feb 06 18:15:59 it's snowing cows here Feb 06 18:16:18 sounds perfect. Feb 06 18:18:20 indeed Feb 06 18:21:49 mikedg looking at prefs in chrome 56, doesn't seem like you can disable this (unlike, say, camera & microphone) Feb 06 18:32:08 this https://www.chromestatus.com/feature/5264933985976320 Feb 06 18:32:27 it says chrome android 56 Feb 06 18:33:01 beta is 57 Feb 06 18:33:16 non beta is 55 Feb 06 18:54:32 * raoul11 thepooshes thepoosh Feb 06 19:01:44 lol, might try this sometime at work: 'Hey, boss. Sign this.' 'Alright. What is it?' 'Ssh. I am the captain now.' Feb 06 19:02:52 Assume I have 4 views with 2 of them having onDragListeners, is there a way to simultaneously run an onTouchListener on the other 2, so while a drag operation is running for one event, before it is dropped, another drag operation can be started on the other view? Feb 06 19:15:37 hey. where is it the most appropriate to do things like sending actions to request enabling bluetooth if an app requires it, requesting permissions etc? I don't want it to race with briadcasted intents about bluetooth state changes Feb 06 19:16:08 ideally you want to request the permission right when you’re about to use it Feb 06 19:16:27 and you would structure your code to not actually go through with things until you get the message back that you’ve been approvecd Feb 06 19:16:28 s73v3r: sometimes the whole app needs something Feb 06 19:16:48 right Feb 06 19:16:51 what I said still stands Feb 06 19:17:08 webczat, Google uses onboarding wizards for those kind of apps Feb 06 19:17:22 also it was just an example. if the only thing an app does in it's whole existence is making a bluetooth connection, when/where to request to enable bluetooth? Feb 06 19:17:34 right before you start using it Feb 06 19:17:44 webczat, see how Android Auto does it for example. Feb 06 19:17:52 or Android Wear Feb 06 19:18:31 but I start using it immediately. I mean my activity displays a list of paired devices. so it requests enabling bluetooth. where to request enabling? onCreate, onStart, etc? Feb 06 19:18:41 webczat, GO LOOK AT THOSE APPS Feb 06 19:18:45 THEY DO EXACTLY WHAT YOU NEED Feb 06 19:18:48 ffs. Feb 06 19:19:02 webczat: you may have to restructure your app a bit Feb 06 19:19:24 webczat obviously, somebody can disable bt at any time, so you always have to check Feb 06 19:19:27 you’re definitely going to have to add something in there to deal with the situation where the permission is denied Feb 06 19:20:16 s73v3r: you know, if permission is denied, the app shall stop, as it is useless then. also, bbluetooth permission is not a level dangerous permission, I am only requesting to enable bluetooth Feb 06 19:20:32 you don’t want the app to just stop if they turn off bluetooth Feb 06 19:21:15 you want to display a screen stating that bluetooth is off, and that you need bluetooth to work Feb 06 19:21:26 s73v3r: I currently send a request in onCreate, but do not wait for a result. but I listen to ACTION_STATE_CHANGED, and I repopulate or clear device list whhen bt state toggles Feb 06 19:21:46 It is not an user facing app Feb 06 19:21:48 that goes against EVERYTHING that the guidelines say Feb 06 19:21:53 wait for the result Feb 06 19:21:56 thepoosh best gif ever? http://i.imgur.com/4MGCOvZ.mp4 Feb 06 19:22:04 do not pass go, do not collect $200 Feb 06 19:22:10 I would say it is my private developer app. I just want it to work without races. Feb 06 19:22:18 so wait for the damn result Feb 06 19:23:07 s73v3r: instead of waiting for bt state change? it is effectively the same as waiting for a result, or not? Feb 06 19:23:13 no Feb 06 19:23:22 wait for the result. Do as the guidelines say you should od Feb 06 19:23:36 ah well, almost the same. I cannot tell if someone cancelled the window Feb 06 19:24:16 raoul11 https://gfycat.com/RevolvingMiserlyGossamerwingedbutterfly Feb 06 19:24:16 exactly Feb 06 19:24:39 but startActivityForResult should be called where? in onCreate? all other things may be called multiple times, including when the bluetooth request appears and disappears right? I am not sure Feb 06 19:25:10 lol Feb 06 19:25:15 put the request for the permission in front of wherever you’re starting it Feb 06 19:25:36 but the goatse is becoming my avatar on all my socialmedia Feb 06 19:27:45 s73v3r: the activity that lists paired devices is the first one that needs it. Feb 06 19:27:57 ok then Feb 06 19:27:58 so uhm Feb 06 19:28:14 the thing is just the lifecycle point to place it. Feb 06 19:28:24 right before you start to do it Feb 06 19:29:27 s73v3r: okay. but if I actually do it in something like onStart and onResume, I can get the action unnecessarily sent more than one time. Feb 06 19:30:00 if they’ve granted the permission, it won’t show another dialog Feb 06 19:30:21 s73v3r: yes. but won't it... waste some time for processing of this action? Feb 06 19:30:34 who cares Feb 06 19:30:40 :D:D Feb 06 19:30:59 nobody will notice the fraction of a second it takes the system to read the permissions file Feb 06 19:31:20 and where to register and unregister a broadcast receiver that would react to later state changes? in onResume? Feb 06 19:31:46 you want to unregister whenever you leave the activity Feb 06 19:31:48 s73v3r: it is not really permission request because bluetooth permission is granted automatically on manifest request Feb 06 19:32:07 it is a permission request, so you should follow the same guidelines that Google has published Feb 06 19:33:10 I have fast finished head first java and going to do a lot of exercises like hackerrank etc. Should I create a real java desktop application with interface or can I start with android? Don't know if I should lern Swing or awt Feb 06 19:33:26 it honestly does not matter Feb 06 19:33:35 whichever one you want to work on, desktop or andoird Feb 06 19:33:39 android Feb 06 19:33:40 android Feb 06 19:33:56 then do that Feb 06 19:34:39 ok, would it be useful to also learn algorithms/data structures & design patterns, or should I do it after I've made some real applicaitons? Feb 06 19:35:23 again, it doesn’t matter Feb 06 19:35:42 algorithms and data structures are always good to know, as that’s what your app is going to be dealing with Feb 06 19:37:26 just feel a little bit overwhelmed with variety of courses and topics to learn, datastructures/alogirthms/design patterns...maybe i'll just start with android and learn it later when needed Feb 06 19:37:51 it’s something you’re always going to have to deal with. Feb 06 19:38:12 there’s always something more you could learn, something new that’s come out, or some topic of engineering that you could use a little more study in Feb 06 19:38:40 part of being an engineer is time management, especially in what to dedicate your time too Feb 06 19:40:10 the other part is taking drugs for performance enhancement Feb 06 19:40:32 and learning how to buy clean urine to pass the tests Feb 06 19:42:43 "performance enhancement"? g00s, having trouble with the... laaaaadies? Feb 06 19:43:10 lol things like microdosing lsd :) Feb 06 19:44:10 oh dear! I don't go there, vaping wfm ;p Feb 06 19:45:47 IndMan there are a few books on this, like 'passionate programmer', manning's 'soft skills' Feb 06 19:58:28 i have a friend that cannot work without adhd drugs Feb 06 19:58:43 that’s sad Feb 06 19:58:49 in fact i think he can, but not to fulfill his self expectations Feb 06 20:00:21 i could be easily diagnosed with that, i've just never asked to (as i don't ritalin) Feb 06 20:01:09 ^ don't want Feb 06 20:07:15 bitkiller shit sounds like me, i'm always distracted Feb 06 20:27:23 watched I/O 2016 at last. AS got some cool stuff like blueprints and manifest analyzer. guess it's time to try it Feb 06 20:32:33 vigilancer, ah yeah i like blueprints. never checked out manifest analyzer Feb 06 20:33:49 i feel like the basic completion functionality of AS could be a lot better. for example, you get the drop-down with member functions on the '.' reference, but once you start typing it goes away and i don't know how to get it back Feb 06 20:34:22 i end up going back to the object and referencing again to note the arguments in the definition Feb 06 20:37:13 thebishop: I believe this can be tweaked in settings, do not have IDEA here, but timings of autocomplete popup can be changed Feb 06 20:38:04 vigilancer, thanks, i'll checkout the timing settings. but i don't think it should necessarily timeout. like as long as the cursor is on the function, it could be suggesting/auto-completing Feb 06 20:45:07 thebishop, ctrl-space Feb 06 20:47:07 pfn, thanks Feb 06 22:04:17 when should list adapters be populated in case of something like a list of paired bluetooth devices? onCreate or later? Feb 06 22:15:53 hi, for admob interstitals https://firebase.google.com/docs/admob/android/interstitial Feb 06 22:16:05 is there a way to close the ad besides the generated X button? Feb 06 22:33:23 Hi guys, I am doing and app that connects to google sheets. When I try it in a virtual devices everything works but when a I try it in my phone it throws a NeedPermition error, any idea what I have to do? Feb 06 22:33:35 ask for permission, I guess Feb 06 22:33:49 if you look at the stacktrace in logcat, it will probably tell you what you’re missing Feb 06 22:33:57 I’m guessing it’s an Accounts permission Feb 06 22:35:08 s73v3r: but in both I give the same permissions Feb 06 22:36:03 s73v3r: just in case where I find the logcat? Feb 06 22:36:58 in android studio Feb 06 22:45:37 s73v3r: yes Feb 06 22:46:35 under the Android Monitor tab? Feb 06 22:53:10 s73v3r: As I get the error in a try catch and it says that it is a google error and the message is NeedPermission Feb 06 22:53:44 read the stack trace Feb 06 22:56:14 Lastent, what's your targetsdk, and what's the android version running on your virtual device (where it does not crash) and your phone? Feb 06 22:56:17 I only get this, 02-06 17:50:29.892 2205-2407/com.exmaple.syncapp W/Auth: [GoogleAuthUtil] GoogleAuthUtil, in the stack trace Feb 06 22:58:42 adq both are API 23 my phone and the virtual device Feb 06 22:59:19 hmm that's weird then, i would have bet your virtual device was below 23 (thus no need to request perm on this case) Feb 06 22:59:28 then i don't know Feb 06 22:59:55 paste the complete stacktrace, because the one you provided is not enough to even guess anything Feb 06 23:00:24 also exmaple, dat typo Feb 06 23:00:39 adq let me try again to get the stack trace Feb 06 23:01:42 need permission play services error means you need to show the permission request dialog for the google account Feb 06 23:01:51 and yes, stop catching exceptions and just swallowing them Feb 06 23:01:54 always handle properly Feb 06 23:02:02 a single log line is rarely ever sufficient Feb 06 23:02:08 unless you're actually logging the entire exception Feb 06 23:02:42 yeah but then he would have same issue on virtual device no? Feb 06 23:02:53 (i assumed because of that, that he is indeed requesting permission at runtime) Feb 06 23:03:02 if not... read the documentation about runtime perm Feb 06 23:03:34 anyone know anything about this error? https://gist.github.com/rubenwardy/445eb874eb89d60bdc60b5222ad6afd2 Feb 06 23:03:41 java.lang.ClassNotFoundException: android.net.ZeroBalanceHelper Feb 06 23:03:52 what pastebin do you use? Feb 06 23:04:36 I updated android studio, and added retrofit. I didn't run the affected code for a while - but when i did it crashed with that error on a con.getResponseCode() call Feb 06 23:04:39 the one you prefer, Lastent Feb 06 23:05:18 rubenwardy, proguard? instant ruin? Feb 06 23:05:22 adq http://pastebin.com/edVR3dKN Feb 06 23:05:28 I get only that Feb 06 23:05:29 rubenwardy, try without them if any enabled Feb 06 23:05:58 Lastent: did you let the app run the whole way through the crash? Feb 06 23:06:21 yes Feb 06 23:06:36 same advice, try without instant ruin Lastent, because no clue about permission and your stacktrace Feb 06 23:13:22 adq: almost the same http://pastebin.com/nLkDmMRw Feb 06 23:13:25 If a broadcast receiver is registered with registerReceiver, will it receive intents when it's parent activity is paused? if not, will it receive all intents that arrived when it was paused after it is resumed, or it will miss them? Feb 06 23:14:05 really no idea Lastent, i don't see anything related permission, sorry Feb 06 23:14:28 Lastent: do you have the Accounts permission? Feb 06 23:14:43 check your manifest, and check the app’s listing on your phone Feb 06 23:15:33 Lastent, pastebin your actual crash, stop catching the exception and printing only 1 line Feb 06 23:15:51 easiest way to proceed, rewrap any exception you catch into a RuntimeException Feb 06 23:16:02 i.e. catch (Exception e) { throw new RuntimeException(e) } Feb 06 23:18:23 s73v3r: you mean this right Feb 06 23:18:29 yeah Feb 06 23:18:54 and in the app permissions in the phone I have the contacts permission Feb 06 23:19:03 GET THE ERROR MESSAGE Feb 06 23:19:06 DO NOT COME BACK UNTIL OU DO Feb 06 23:20:09 pfn the method I am using to connect to the sheet throws an exception I have to catch it or it doesn't run Feb 06 23:20:25 15:16 i.e. catch (Exception e) { throw new RuntimeException(e) } Feb 06 23:20:52 don't ever catch exceptions without doing something appropriate with them Feb 06 23:21:01 the bare minimum is Log.e(TAG, "exception", e); Feb 06 23:21:23 Lastent: you want it to run so it will print the full stack trace Feb 06 23:26:36 has anyone had any luck getting android-studio's git integration to work with ssh keys stored on a token? SSH / git works fine from the command line, using the authentication keys on my yubikeys, but I can't seem to get android-studio to work with anything but password auth. Yes I've tried setting it to use the native SSH executable. Feb 06 23:27:05 pfn, s73v3r, adq: I got the log http://pastebin.com/gAUMxMBW Feb 06 23:28:42 well, that's better but i still see don't see anything related to permission Lastent, i would investigate at com.romandevel.roman.drivesyncapp.MainActivity$MakeCreateTask.createSpreadsheet(MainActivity.java:322) Feb 06 23:28:43 if i were you Feb 06 23:29:02 your code is making it crash hard Feb 06 23:29:44 SporkWitch, i don't think android studio supports U2F at all Feb 06 23:30:02 only github, dropbox, google account and few other services support it atm Feb 06 23:30:03 adq: not u2f, key-based ssh auth. Feb 06 23:30:32 same, i never see android studio supporting any cryptoken Feb 06 23:30:33 thanks adq Feb 06 23:30:37 adq: configuration files in ~/.ssh tell ssh what to do, android-studio told to use native ssh, but it doesn't seem to use the settings. Feb 06 23:30:59 they already have hard time to sort alphabetically the name of the key in the keystore popup -__- Feb 06 23:31:01 don't expect much Feb 06 23:31:47 SporkWitch, you might be able to script it via gradlew, injecting signingconfig in your gradle conf or using the old `expect' if somehow you get stdin asking fo Feb 06 23:31:53 r but i never did it Feb 06 23:32:18 adq: i think i know what the issue might be now. What user does android-studio normally run on? If it's not using MY user, it wouldn't find the settings that tell the native ssh how to use the token Feb 06 23:33:17 you can look at ps -aux to see which users it runs, but it spawns some daemon, gradle etc Feb 06 23:33:30 i have no idea under which uid it runs, except i'm sure it's not root in my case Feb 06 23:33:47 yeah, that's why i was hoping someone knew, since it spawns so much crap lol Feb 06 23:34:24 recently, on windows, it spawns so much thing that it makes instant ruin fails because there is lock on some ntfs file... resulting in not able to pursuing, there is a ticket Feb 06 23:34:33 (unrelated tho) Feb 06 23:35:11 adq: yeah well, shouldn't dev on windows anyway :P Feb 06 23:35:29 SporkWitch, i'm using multiple OS, i don't see the problem lol Feb 06 23:35:49 those preconceptions are remaining of the past, or ppl who just are too confined in one platform or one OS, sorry Feb 06 23:37:56 adq: more just a dig at windows, heh. Fairly trivial to port from *nix to mac/windows, not so much the other direction, and it's just a "nicer" platform to dev from; agreed though, off-topic for here Feb 06 23:38:02 * Zharf hardly ever uses the git integration to commit/push/pull in IDEA Feb 06 23:38:32 Zharf: kind of what i'm heading toward myself, just would have been nice if it worked well. Feb 06 23:38:54 I'm not sure if I ever tried it, I'm just used to using git from the command line Feb 06 23:39:44 Zharf: oh you definitely can; if you navigate to the project directory, the "integrate with version control" option in the menu just does a git init there. It's basically just issuing git commands normally, you just don't need to open a terminal and navigate to the repo Feb 06 23:40:00 Zharf: it's how i added my remote, since i couldn't figure out how to add one in the GUI lol Feb 06 23:40:45 SporkWitch, I live in terminals Feb 06 23:40:57 firefox and IDEA are the only non-terminals I have open Feb 06 23:41:43 I also use tiling window manager... Feb 06 23:41:57 Zharf: yeah, about the same here: firefox, kvirc, and android-studio (the ideavim helps, though i wish it could support my vim plugins too lol) Feb 06 23:42:47 I've used vim for the past 15 years or so and I never bothered with plugins :p Feb 06 23:43:00 so ideavim was easy transition Feb 06 23:43:16 pretty much, ideavim is great Feb 06 23:43:43 sometimes it's a little glitchy Feb 06 23:43:48 but it's pretty good Feb 06 23:44:20 Zharf: i don't go crazy, but there's a few that are really nice. Surround and camelcasemotion are especially nice. Surround gives you motions for working with tag-style blocks the way you normally can () "" '' etc.. Camelcasemotion adds motions for navigating camelcase/underscores Feb 06 23:47:18 but yeah, just trying to figure out some sane workflows for a class; signed up for an android development course and a web design course this semester for the hell of it (android because i've been wanting to get into it, and disagree with the direction taken by some apps I can't live without; web because every interview seems to ask these days, and i'm a decade and a half out of date). Feb 06 23:48:02 IDEA has the camelcasemotion thing I believe, but I'm not sure if it works with ideavim Feb 06 23:48:05 https://www.jetbrains.com/help/idea/2016.3/smart-keys.html Feb 06 23:48:16 Use 'CamelHumps' words Feb 06 23:48:47 on that note, actually, anyone mind taking a look at a VERY basic application real quick? I can't for the life of me figure out why it's taking 1-5 seconds to switch activities... https://www.klebes.info/bitbucket/projects/CPT-211/repos/lightbulb/browse Feb 06 23:49:12 it's literally just two activities with imagebuttons to swap between them; running it on a nexus6 Feb 06 23:53:22 ew, snake_case names outside of R Feb 06 23:54:21 heh Feb 06 23:55:58 see what i mean though? Absurdly simplistic, yet it takes 1-5 full seconds when clicked to launch the second activity, and another 1-5 full seconds when clicking that to finish the activity and return to the first Feb 06 23:56:49 i thought maybe it was an issue with the image size, but it's not that big, and it's very close in resolution to the device native Feb 06 23:57:36 it's the absurdly large images Feb 06 23:57:40 http://stackoverflow.com/questions/42079427/classnotfoundexception-android-net-zerobalancehelper Feb 06 23:57:43 adq ^ Feb 06 23:57:51 disabling instant run didn't work Feb 06 23:58:35 Zharf: is it really? they nearly match the native device resolution, and opening images taken with the device camera doesn't take half a second. Feb 06 23:59:05 they're in the wrong directory Feb 06 23:59:17 also they're absurdly large :p Feb 06 23:59:23 prof said to have them in drawables, heh; i'm guessing they should be in mipmap? Feb 06 23:59:38 drawables-xxxhdpi maybe Feb 06 23:59:46 drawable-xxxhdpi Feb 07 00:00:32 what would the RIGHT way to import generic image assets like that? When I initially tried, it kept trying to turn them into greyscale icons; i ended up just copying the files into the folder directly, as a classmate did that with a gif to no ill effect. Feb 07 00:02:41 you'd generally design your assets to fit the mdpi(1)/hdpi(1.5)/xhdpi(2)/xxhdpi(3)/xxxhdpi(4) and put them in the corresponding drawable directories Feb 07 00:03:02 mdpi is where 1dp equals 1px Feb 07 00:03:40 they're scaled up or down depending on the device it's run on and the availability of the assets Feb 07 00:03:57 there's also nodpi if you don't want it to be scaled Feb 07 00:04:13 but then the size will vary depending on the device Feb 07 00:04:40 * Leeds sees cheap flight to Israel... /me considers crashing on thepoosh's couch Feb 07 00:05:03 I *think* if you put png resources in the "drawable" directory, they're handled as if they're mdpi Feb 07 00:05:14 so the image would get upscaled 3-4 times on nexus4 Feb 07 00:05:20 and then fit to the view Feb 07 00:05:26 eerr Feb 07 00:05:28 nexus6 Feb 07 00:05:52 generally only use the "drawable" directory for xml drawables Feb 07 00:06:51 that would explain it, since the resolution of the image is nearly the same as the native resolution of the nexus6, so if it's scaling that up 4x then crunching it back down, that would create a lot of slowdown Feb 07 00:06:52 SporkWitch, makes sense? Feb 07 00:07:25 to a degree; i understand what you're saying, it's just hard to internalize, as it's only two weeks into the course, and it's sounding like the prof did a poor job of explaining terms or what things are actually doing what. Feb 07 00:07:28 on android you rarely design for a specific resolution though, so using that large images is generally discouraged Feb 07 00:07:44 in the case of putting the images in, there's no mention of any of those subfolders, he just told us to put a png into drawables Feb 07 00:08:19 all resource directories have "modifiers" like the xhdpi Feb 07 00:08:25 or landscape Feb 07 00:08:28 (doesn't help that the VA is dragging its heals, so i haven't been able to pay this month's rent yet, let alone buy the books for my classes...) Feb 07 00:08:29 or w820dp Feb 07 00:08:30 etc Feb 07 00:08:39 and you can combine them in various ways Feb 07 00:08:42 s/heal/heel/ Feb 07 00:09:18 SporkWitch, https://developer.android.com/guide/topics/resources/providing-resources.html Feb 07 00:09:31 so are these folders supposed to get created by android studio, or am i expected to manually create them according to the devices i intend to support? Feb 07 00:09:53 you can create them manually or using android studio Feb 07 00:10:18 right click on res directory and choose new -> android resource directory Feb 07 00:10:32 it gives you a "wizard" of sorts Feb 07 00:12:28 Hi Feb 07 00:12:56 ugh, hangouts' quick response notification is buggy, so buggy Feb 07 00:12:57 I quick doubt. Any idea what kind of component those Keep app list uses ? Feb 07 00:13:01 half the time I send a response never goes Feb 07 00:13:18 pfn: you get further than me; half the time it doesn't even come up for me lol Feb 07 00:13:45 aajjbb: it’s likely a custom made one Feb 07 00:13:56 Zharf: updating studio, gonna play with that once it does. I appreciate the info by the way, sorry it's such basic stuff, I'm just used to living in my terminal with vim lol Feb 07 00:14:28 android dev in just vim would be painful Feb 07 00:14:46 especially after you get used to the goodies IDEA offers Feb 07 00:14:52 SporkWitch, how does it not come up... Feb 07 00:15:12 ugh, being forced to add a privacy policy is dumb Feb 07 00:15:21 there should be a checkbox in the play store listing that says "user data is not used" Feb 07 00:15:48 https://github.com/pfn/keepshare/blob/master/PRIVACY.md Feb 07 00:15:52 stupid thing Feb 07 00:18:35 pfn: just that, it doesn't come up. I'll see the notification of a message in the notification bar, but reply opens the hangouts app itself, not the instant reply, 9 times out of 10. Feb 07 00:18:52 press the reply button, it always opens the quick reply Feb 07 00:19:05 that is never buggy, unless your rom is buggy Feb 07 00:19:45 SporkWitch, I'm probably going to fall asleep at any moment, already dozed off a few times Feb 07 00:19:55 but there's others who can help of course Feb 07 00:20:00 pfn: standard nexus6 direct from play store, up-to-date main-channel firmware, hangouts app from play store. *shrugs* Feb 07 00:20:16 Zharf: no, of course; like i said, i appreciate the help Feb 07 00:20:30 only way it wouldn't open up instant reply is if you have the notification unexpanded Feb 07 00:20:34 and you hit the main notification body Feb 07 00:20:47 because the quick reply is a systemui feature, not handled by the hangouts app Feb 07 00:21:01 I was supposed to work on my own project tonight but I've just kept falling asleep all the time -.- Feb 07 00:21:04 hangouts drops the ball hard on handling the quick reply intent, though Feb 07 00:21:50 pfn: dunno then, maybe i just give off a righteous EM field and it's misreading where i'm tapping lol Feb 07 00:22:17 if quick reply doesn't work in hangouts for you, it shouldn't work in any app, pretty much Feb 07 00:22:24 pfn: i run into a similar issue trying to tick checkboxes in k9mail, half the time it doesn't think i hit the checkbox when i clearly did. Feb 07 00:22:34 your screen digitizer probably borked Feb 07 00:22:46 also possible; it is aging Feb 07 00:30:27 the vibrate on my phone is borked, it's annoying me because typing without it hurts my brain Feb 07 00:30:43 it works only occasionally and for a few minutes at a time Feb 07 00:31:46 vibrated its own motor loose? Feb 07 00:32:18 something like that I guess, it works again after shaking the phone a little Feb 07 00:35:32 so yeah, this just turns my png greyscale, but it DOES create afolder and versions labeled for hdpi, mdpi, etc. Feb 07 00:35:33 https://stackoverflow.com/questions/29047902/how-to-add-an-image-to-the-drawable-folder-in-android-studio Feb 07 00:36:37 just make an xxxhdpi directory and move your images in there Feb 07 00:36:52 drawable-xxxhpi that is Feb 07 00:37:58 i get that, i'm trying to figure out the "right" way, though, using studio to automatically create the necessary versions. It'll do it if i lie and tell it it's a launcher icon, but then it's not compliant with the documentation you linked... Feb 07 00:38:44 you can create the directories using the new -> android resource directory Feb 07 00:39:38 I don't think there's any more "right" way than that, just putting the files into the right directories Feb 07 00:40:06 I never used the image asset thing... only the vector asset thing on occasion Feb 07 00:40:11 well it has options to import image assets, just no clear path to putting them where they're suppsoed to go, in the formats they're supposed to be in Feb 07 00:40:37 and when i hit that android resource directory thing it starts asking about qualifiers Feb 07 00:40:59 yeah Feb 07 00:41:07 (this is why i hate GUI crap... life is so much easier in a terminal, with text, and no graphics) Feb 07 00:41:54 yeah well, you can just do it manually, but I guess you need to internalize how the qualifiers work first Feb 07 00:43:08 pretty much; if i understood wtf the thing was doing i'd have no problem just working around the crappy interface and slapping stuff in. I want to do it the "right" way using the tools in android-studio to see what IT does and figure out what's going on. Once i get that, I can just work around it. I already tried just giving up and working around it once, and the result is taking 1-5 full Feb 07 00:43:20 seconds to switch activities, so that's obviously not going to be a viable option moving forward. Feb 07 00:43:59 best I can give you is this https://developer.android.com/guide/topics/resources/providing-resources.html Feb 07 00:44:02 read it Feb 07 00:44:37 yeah, you sent it, i've been digging through it, it's only resulted in more confusion, since nothing in studio seems to facilitate GETTING things into the structure that lays out :( Feb 07 00:44:57 the android resource directory dialog does :) Feb 07 00:45:10 it just doesn't put your images in the right place automagically Feb 07 00:46:00 I'm not sure if android studio has automation for that nowadays... but I might be old fashioned and just not aware of new fancy things Feb 07 00:46:52 also that document was probably written before android studio even was a thing Feb 07 00:47:03 so it's just written on the basis that people do it manually Feb 07 00:47:06 well creating a new directory through studio apparently creates it hidden, because it doesn't show up anywhere int he project tree, but when i go to create another, it says the name i just used (in this csae, "foo") is already in use lol. Feb 07 00:47:59 you can press ctrl+shift+n and write the name of the file to find it Feb 07 00:48:09 or just double shift Feb 07 00:48:21 Zharf: yeah, that wouldn't surprise me; google has a habit of having horrifically out-of-date documentation, to the point that even core user-end help stuff is talking about apples, when all there are any more are oranges lol (this is most notable with help documentation for hangouts on the web) Feb 07 00:50:15 nope, no trace of it, but it'll happily complain that it exists if i try to create another with the same name lol; oh i love IDEs >_< haha. Oh well, on the up-side I don't actually need to pass this course, so worst case i'm no worse off than i was abefore. Feb 07 00:50:26 certainly reinforcing my opinions of GUIs and GUI tools, though, heh Feb 07 00:50:53 meh, pebkac :) Feb 07 00:51:18 oh i'm sure that's a component, though the crap i'm running into i'd say it's by no means the sole issue :) Feb 07 00:51:55 it's literally letting me make directories that it doesn't show anywhere, can't find with the search tool, and yet it apparently knows enough about to tell me they exist if i try to reuse the name lol Feb 07 00:52:20 can you type R.drawable.foo in code? Feb 07 00:52:25 is it a valid identifier? Feb 07 00:52:31 or is it R.mipmap.foo? Feb 07 00:52:43 you can control+click on the foo to make it take you to the file Feb 07 00:53:47 nope Feb 07 00:54:04 what about if you recompile Feb 07 00:54:06 but right click -> new -> directory will cry about it existing if i try to reuse the name. Feb 07 00:54:41 what would i hit to just compile? i've normally hit the play button to run the application Feb 07 00:55:21 to the left from the playbutton might be a button with some 0s and 1s? Feb 07 00:55:27 nm, think i found it ("make project"?) Feb 07 00:55:34 ctrl+f9 too Feb 07 00:55:43 or build -> build project Feb 07 00:55:58 yeah, found it Feb 07 00:56:14 on the upside, the desktop builds a lot faster than the laptop lol; 5s vs 90s :P Feb 07 00:56:35 work project incremental builds are about 30-60s Feb 07 00:56:39 nada, still no trace Feb 07 00:57:12 does git status reveal the problem? Feb 07 00:58:25 the directories exist, they're just not shown in the project tree... Feb 07 00:59:40 right clikc on the tree and choose synchronize? Feb 07 01:00:10 doesn't seem to do anything Feb 07 01:00:45 browsing the directories on terminal, they're definitely there, though Feb 07 01:00:52 this is just stupid/weird Feb 07 01:00:54 I need to sleep... but try file -> invalidate caches / restart too Feb 07 01:02:12 that did it Feb 07 01:02:58 and then when it finished indexing it nuked it all again... lol Feb 07 01:03:04 wtf... *facedesks* Feb 07 01:03:07 o.O Feb 07 01:03:19 git reset --hard :p Feb 07 01:03:34 was gonna do that either way to clean up the mess lol Feb 07 01:04:17 this is seriously ridiculous, though; there's no logic to any of this, and it's apparently going out of its way to obfuscate what's actually going on, making it even worse / harder to figure out WTF is going on Feb 07 01:05:34 hard to say without seeing the situation Feb 07 01:05:45 but really, zzz... Feb 07 01:08:06 you're fine mate, get some sleep Feb 07 01:08:42 might just be some IDEA craziness too; never had issues with eclipse Feb 07 01:08:58 (though that was working straight java, not android stuff) Feb 07 01:09:04 SporkWitch What is your issue Feb 07 01:10:03 orbyt_: was trying to import an image "the right way" using android-studio, but all the tools seem to want to either turn them greyscale, or stick them in the mipmap directory, which would be non-compliant with https://developer.android.com/guide/topics/resources/providing-resources.html Feb 07 01:10:38 What kind of image Feb 07 01:10:57 orbyt_: was playing around with creating the directories themselves in studio, which ended up creating directories that don't actually SHOW anywhere (either in the project tree or in the search tool), but do exist when browsing the filesystem. clearing cache makes them show up, at least until it finishes indexing, then it hides it all again. Feb 07 01:11:08 simple png for use as a background or a button Feb 07 01:11:28 Put it in /res/drawables Feb 07 01:11:57 * SporkWitch facedesks Feb 07 01:12:02 that's what we've been TRYING to do. Feb 07 01:12:41 Your saying your having trouble adding a file to a directory? Feb 07 01:12:48 except that as stated, none of the tools in studio seem to want ot behave; it either puts things in mipmap, or it makes them greyscale in drawables. Feb 07 01:13:11 having trouble getting android studio to import an image asset, and create the necessary versions for different resolutions, yes. Feb 07 01:13:51 i did try simply dropping the image into the directory from the command line; the end result was 1-5 second load times to switch between activities, on an app that has literally nothing but an image button and a textview on each of two activities that switches between the two lol Feb 07 01:14:27 source code here: https://www.klebes.info/bitbucket/projects/CPT-211/repos/lightbulb/browse Feb 07 01:14:31 Are you using the New -> Image Asset option Feb 07 01:15:09 yes, so far playing with options in that has resulted in either placing the files in the mipmap folder, or making them greyscale in the drawable folder Feb 07 01:15:45 If you notice in that window, it has you select your image type. None of the options represent what your doing, so of course you are having issues. Feb 07 01:16:22 i would agree with that statement, which returns us to one of the initial issues: what is the "right" way to import an image asset, since it's clearly not the "new image asset" option lol Feb 07 01:16:39 Add it to /res/drawables. Feb 07 01:16:57 Create different resolutions and place them in separate drawable directories if needed Feb 07 01:17:01 doing so results in load times of 1-5 seconds, so this is clearly not the "right" way, especially since there's apparently no way to do so from within android-studio itself Feb 07 01:17:32 Adding an image to your project has nothing to do with your activity load times Feb 07 01:18:38 well i'm open to suggestions as to what's causing the horrific load times. If you look at that code you'll see that it's just two empty activities that have a single textview and single imagebutton, and all the buttons do is open the second activity and close the second activity (thus returning to the first) Feb 07 01:18:54 we settled on the image, as it's the only explanation on such a simplistic program Feb 07 01:20:11 Is this on an emulator? Feb 07 01:20:31 nexus6 from the play store, stock up-to-date firmware Feb 07 01:20:45 What are the dimensions of the image Feb 07 01:21:09 gimme a sec to find the exact, but when i checked that the other day it was just a touch over the native resolution of the device Feb 07 01:21:51 1200x1812 Feb 07 01:22:15 nexus 6 antive is 1440x2560 Feb 07 01:22:40 *native; and touch under, rather Feb 07 01:23:49 If the activities are completely empty, try scaling down the size of the image that is being used as the source for your ImageButton. In addition, you didn't specify whether those load times were for initial startup or when switching activities while the app is running. Feb 07 01:24:00 my initial thought was that it was the image size, but it's only 124k. Then i thought it was scaling issues, but it's smaller than native, and relatively close proportions. Feb 07 01:24:02 it's both Feb 07 01:24:46 the button on the second activity just calls a finish() to close that activity, takes about the same time to return to the original as loading the second activity did in the first place Feb 07 01:25:15 It's still a large image, and whether its smaller than the native resolution is irrelevant. Try shrinking the image it to to 1/3 its current size. Feb 07 01:25:58 won't it then look like ass when it gets scaled back up? lol. Not to mention that the pictures taken with the camera don't take that long to come up, and they're MUCH larger. Feb 07 01:26:13 How big is this button of yours? Feb 07 01:26:23 was lazy, just let it take the screen Feb 07 01:26:29 (fillParent) Feb 07 01:27:11 Lol, yes that is a problem. As a side note, fill_parent has been deprecated for awhile. Feb 07 01:27:45 source can be viewed here: https://www.klebes.info/bitbucket/projects/CPT-211/repos/lightbulb/browse (again, this is incredibly simplistic stuff; it's for a course, and this was the second assignment, just covering HOW to switch to a new activity, and include an image) Feb 07 01:28:08 (it's about 30 lines total between both activities' java and layout files) Feb 07 01:28:35 how would that be a problem, though? Is it not just saying "fit to screen"? Feb 07 01:29:22 SporkWitch Shrink your button to a normal button size, as well as your image, and then report back. Feb 07 01:29:44 everything seems to be pointing to "here, do a few hundred manual things that should really all be automated by the IDE and you have no real way of knowing ABOUT, but the IDE can't actually do anything useful, so good luck" Feb 07 01:30:26 orbyt_: that seems like a red herring. Would we not be running into the same issue if i DID have a normal button size (and who decides what's normal?) and just used the image as a background instead? O.o Feb 07 01:31:48 SporkWitch No, loading large images takes time. Feb 07 01:31:51 i want an activity that, if clicked anywhere, loads another activity. not hte most useful thing in the world generally, but hardly an unreasonable usage of an imagebutton, unless you have another proposal for how to have an image take up the screen, and clicking anywhere on said screen load an activity? Feb 07 01:32:28 it's not large, though; it's 124k and smaller than native resolution, meanwhile the much larger (size and resolution) images taken with the built-in camera load pretty much instantly. Feb 07 01:32:41 Have a blank set to match_parent and set a click listener on it. Feb 07 01:33:55 and then set the image via android:background at the top of the RelativeLayout block? Feb 07 01:34:19 so this is actually a bug with imagebutton specifically, is what you're saying? Feb 07 01:34:39 You must be seeing things, as I don't recall saying anything was a bug. Feb 07 01:34:58 you're describing something functionally the same and implying that should resolve the issue. Feb 07 01:35:06 that tells me something is wrong with imagebutton Feb 07 01:38:26 SporkWitch A blank view and a full screen image are not "functionally the same". Please re-read my past comments. Feb 07 01:39:31 orbyt_: then you're describing something that doesn't meet needs. Image takes up whole screen, clicking anywhere opens new activity. Quite simple, nothing crazy, performance issues unexplained and unexplainable given the size and dimensions of the image in question. Feb 07 01:40:32 I'll write a small application according to the features you describe, and will test how long it takes to load. Feb 07 01:40:35 so it's something weird, which returns us to the question of how to properly import an image that doesn't require manually looking up and manually resizing the image for a few hundred device resolutions, as any solution that requires that is, by definition, a VERY wrong solution, as it's untennable. Feb 07 01:41:06 orbyt_: please also look at the provided code; it's all tidy in a git repo, publicly readable. Feb 07 01:44:56 SporkWitch: the only people that comes here asking for help for installing and setting up Android Studio are people using Linux Feb 07 01:46:48 SporkWitch On a Nexus 6 emulator, clicking on an activity with a full screen background of a 1000x1000px image loads the second activity in <.5s. Feb 07 01:47:05 Melatonina: well the actual setup question wouldn't have even been applicable on windows, as there's no way that i'm aware of to use auth keys stored on a token with any windows SSH clients; were I on windows it never would have come up, because the host simply couldn't support it, whereas on linux, studio claims it can use the native SSH, yet is apparently not using the native config files Feb 07 01:48:14 orbyt_: try it with the images in that repo, if changing nothing other than the images results in 1-5 second load times on changing activities, then we'll know it really is the file (which seems unlikely). If it doesn't, then it's something else. Feb 07 01:48:24 SporkWitch: see, you just confirmed that I'm right Feb 07 01:48:44 SporkWitch Throw it up on github and post a link. Feb 07 01:48:46 Melatonina: i confirmed that people don't ask questions about things they already know cannot be done in the first place? Feb 07 01:49:15 orbyt_: https://www.klebes.info/bitbucket/projects/CPT-211/repos/lightbulb/browse/app/src/main/res/drawable Feb 07 01:49:38 I don't know what this klebes.info is but it certainly isn't Github. Feb 07 01:50:03 SporkWitch: people ask question about thing they should be able to do on Linux but can't do. People don't ask questions about people they should be able to do on Windows because Android Studio just works there Feb 07 01:50:21 orbyt_: it's my site, hosting a bitbucket instance, registered in my name, with valid cert. It's the same code you'd have me reupload on github for no reason lol Feb 07 01:50:57 I'm sure it's a lovely site. Feb 07 01:51:01 SporkWitch: sorry for the typos. I meant: people ask questions about things they should be able to do on Linux but can't do. People don't ask questions about things they should be able to do on Windows because Android Studio just works there Feb 07 01:52:03 Melatonina: i'm saying that's simply not the case here. In this case, I asked about something that SHOULD work on Linux, and CANNOT work on Windows, so of course you don't get windows users asking: it's not possible on windows in the first place, so they wouldn't ask how to do it in android studio. It comes up on linux because you CAN do it on linux, android studio IMPLIES it can do it when it Feb 07 01:52:17 Melatonina: offers to use the native SSH on the system, but it DOESN"T. Feb 07 01:52:42 Melatonina: so in this case, android-studio does NOT "just work" anywhere, windows or otherwise. Feb 07 01:53:35 SporkWitch: I understand what you say. I'm just says that as there are things that you can do only on Windows, there are things you can do only on Windows. But you don't see people asking for help about them. Not remotely as often Feb 07 01:53:42 says -> saying Feb 07 01:53:47 Hi im an python programmer and android-dev noob, whats your take on kivy Feb 07 01:54:17 jagguli What are you building? Feb 07 01:54:24 simple form based apps Feb 07 01:54:41 mostly to test some native sdks Feb 07 01:55:04 Melatonina: yes, because windows users tend to 1) not know very much, 2) not DO very much, 3) if they don't fit 1 or 2, they already know it's a lost cause, because anything you might ever ask about simply CANNOT be done on windows, so they don't ask. Linux users, on the other hand, are used to actually being able to make things work in a sane manner, and so try to figure out why something is NOT Feb 07 01:55:04 I would not suggest it. The only route I would suggest if you for some reason dont want to go completely native is React Native. Feb 07 01:55:10 Melatonina: behaving in a sane manner. Feb 07 01:55:58 hmm cool thanks for the tip orbyt_ Feb 07 01:56:21 orbyt_: i just want to make sure i'm understanding you. You want me to repost code that's already available to another site, because your paranoia is such that you don't trust a privately-hosted bitbucket instance, but will trust a random stranger's code just because it was reposted on a site you do trust? Feb 07 01:56:29 SporkWitch: look, I programmed on Linux and I programmed on Windows. "because windows users tend to 1) not know very much, 2) not DO very much," is just silly and offensive. And false. Feb 07 01:57:00 SporkWitch No, I just don't care about your issue enough to visit your site. Feb 07 01:57:30 Additionally, I have no need to see your code, you already explained it was empty. Feb 07 01:57:37 orbyt_: yet you do care enough to visit another site, even though the effort involved on your part is identical Feb 07 01:58:30 orbyt_: yes, so load in the images in question and you can confirm that it is some magical property of a 124k png that's smaller than native resolution, somehow taking longer to load than the enormous pictures the phone's camera takes. Feb 07 01:58:32 jagguli: you are a human being who happens to know Python. That means that you can learn Java as well. Do not underestimate your powers! The sky is the limit! Feb 07 01:58:53 jagguli: Flower power! I choose to believe! Feb 07 01:59:16 jagguli: java isn't that hard to learn, and the documentation is actually quite good. Just avoid using memory, because the garbage collection is garbage :P Feb 07 01:59:17 lol Melatonina i ran from java to python 7 years back to save mys soft fingers from callouses Feb 07 01:59:50 :D Feb 07 02:00:39 now my python foo can slash 100s of lines of java with elegant comprehensions Feb 07 02:00:46 I'm refreshing my Python knowledge this week to study NLP Feb 07 02:00:46 lol Feb 07 02:01:23 cool, i played with gensim for a while Feb 07 02:06:34 I'm using nltk. I didn't know gensim. I'll have a look at it after I read this couple of NLP books Feb 07 02:06:41 Thanks for the suggestion Feb 07 02:14:23 the next time you see someone trying to figure out how to import drawables the RIGHT way, just tell them to use this: https://github.com/winterDroid/android-drawable-importer-intellij-plugin Feb 07 02:14:39 android-studio will find it if you search "drawable importer" in the plugins repo in the settings Feb 07 02:15:02 * Melatonina takes note Feb 07 02:15:22 We'll tell them "SporkWitch said it" Feb 07 02:15:46 misc cool tech https://www.technologyreview.com/s/603424/quantum-computing-paranoia-creates-a-new-industry/ Feb 07 02:15:49 tell them whatever you want, but it's the "right" answer; handles resizing and proper placement without jumping through 80 hoops and doing everything manually. Feb 07 02:16:09 ok Feb 07 02:16:16 Thank you, SporkWitch Feb 07 02:17:11 I bookmarked it inside the folder "SporkWitch's gems of wisdom" Feb 07 02:18:05 certainly more useful than the red herrings i've been run around on for the past couple hours, and the fact that no one here seemed to have any ideas for what's apparently a fairly common issue Feb 07 02:18:47 Sorry, I didn't read your original question thus I can't comment. But I bookmarked that URL Feb 07 02:19:30 but i'm glad to see you're such a helpful person, i mean, you've contributed so much since initially pinging me. You whined about how linux users actually expect things to work, while windows users know better than to even try to get them to, or are too stupid to ask; can't say i've seen much else. I find an actual solution to the issues i've been trying to find help with, and i'm met with more Feb 07 02:19:54 snark from an apparently useless troll, in response to POSTING my solution, for anyone that may have actually been genuinely curious Feb 07 02:20:33 or have had people with similar issues. Feb 07 02:21:05 don't mind much about my comments. I'm just being silly as usual. I love everybody. Have a laugh Feb 07 02:22:34 Melatonina: assuming you're being genuine, i apologize. The last one was actively NOT, and generally just running in circles without even bothering to pay attention. Your comments came off as dismissal, when all I was trying to do was say I found the solution, and to let others know what that was (because how HASN"T found a thread about a problem they're having, and it's closed with "fixed," and Feb 07 02:22:39 no mention of what fixed it Feb 07 02:23:22 so again, my apologies if i jumped down your throat when you weren't intending to be dismissive Feb 07 02:23:41 I don't have problem importing graphical assets in Android Studio but I actually bookmarked the link in case I have troubles in future Feb 07 02:24:00 The rest of my words were just silliness to have fun Feb 07 02:24:06 Thanks again for the link Feb 07 02:24:53 Melatonina: the initial issue was trying to import generic images for use into drawables. The new -> image asset wizard only provides options for icons and the like, either turning it into a launcher icon (complete with distorting the shape and adding a background) and puttig it in mipmap, or keeping proportions right but making it greyscale and putting it in drawables where it belongs. The Feb 07 02:26:00 apparent "solution" is to manually resize the image multiple times, manually adding the correct resolutions to the various drawable subfolders (drawable-hdpi, drawable-mdpi, etc.); hardly practical or sane, especially with multiple images you need to add. The plugin is in the "official" repos android-studio will automatically search through, and automates the whole process, resizing as needed, Feb 07 02:26:05 and placing into the correct drawables folders. Feb 07 02:26:17 I see. I mostly import vector graphics from Illustrator Feb 07 02:26:48 makes sense, since if i'm not mistaken vectors scale arbitrarily and efficiently, no? (not a graphics guy) Feb 07 02:26:50 I also have an Illustrator plug-in to export bitmaps in multiple resolutions Feb 07 02:27:55 SporkWitch: if the image is not overly complex, they are efficient and scalable. The current design style guides aim towards simplicity, thus vector graphics is often useful. Feb 07 02:29:37 yeah, that's what i thought. in this case i just needed a generic image for a background or button, so png seemed the way to go. Feb 07 02:33:53 our prez is making SNL great again :) Feb 07 02:35:28 g00s: that was gonna happen either way; at least with this one we aren't at war with russia Feb 07 02:37:36 SporkWitch he asked scarborough 3 times why we can't use nukes if we have them, we'll be at war with somebody :) Feb 07 02:40:11 right, going to Israel in May, time to start bugging raoul and thepoosh :) Feb 07 02:41:00 Leeds wonder if this is right, HTC 11 coming with 6G ram Feb 07 02:41:50 I did see that 11 rumours have started... 6GB isn't impossible, haven't one or two second-tier vendors already gone there? Feb 07 02:41:52 g00s: probably mexico ^_- Feb 07 02:42:29 i think some devices have released with 6, but don't quote me; i've mostly been eyeing the new samsung chromebooks, and hoping we see andromeda soon Feb 07 02:43:53 i watched a video the other day about ram usage between android / ios; seemed while both compress apps memory when in the bg ios actually swaps (not like, swap swap) out everything except the resident set Feb 07 02:44:30 i don't get why a device would need 6G, even 4G Feb 07 02:45:13 iphone 7 only has has 2G ram Feb 07 02:45:52 I heard about that video, didn't see it yet Feb 07 02:45:53 granted i've not followed it, but seems to me ios doesn't allow actual background application activity; an app either has focus, or it's suspended. Feb 07 02:46:06 or at least that was the case at one point, from what i understood Feb 07 02:46:10 nah, iOS has had background apps for ages now, with certain limitations Feb 07 02:46:12 Leeds kinda long winded, you could probably start 2/3 way and get the beef Feb 07 02:48:29 I don't know if they've relaxed it further, but they used to have different background profiles, e.g. a background music player would get different priority from a messaging app, from a navigation app, compared with something that just wanted to do regular updates Feb 07 02:55:24 Leeds i think you will like this https://news.ycombinator.com/item?id=13584097 Feb 07 02:55:30 based on yesterday, react, cordova Feb 07 02:57:46 thanks **** ENDING LOGGING AT Tue Feb 07 03:00:01 2017