**** BEGIN LOGGING AT Fri Mar 03 03:00:01 2017 Mar 03 03:15:03 Google is finally accepting my mail Mar 03 03:15:10 I didn't even have to set up DKIM Mar 03 04:09:50 Is there a way to change a layout quickly at runtime without programatically creating and removing views? Mar 03 04:10:25 My first though was to use a ViewStub and inflate the initial view, and then call viewStub.setLayoutResource() and inflate again with another view, however that does not work. Mar 03 04:12:00 I'm essentially trying to toggle the view depending on the state, like React.js. I have a LoginActivity with login fields, but if a "register" button is clicked, I want to change the displayed fields to those needed to register, without starting a new activity Mar 03 04:17:10 g00s: watching cspan2, Senate comm on Tech, "Wireless Tech & Spectrum Policy"... catch up to what's happening Mar 03 04:19:27 msoft guy talking now Mar 03 04:27:44 just poking AS 2.3 , doing a clean install .. so many rough edges Mar 03 04:27:52 i think they use like 4 different fonts Mar 03 04:29:58 you can't access the sdk manager without installing their predefined things first, which isn't what i wanrt Mar 03 04:30:10 (no way around the wizard) Mar 03 04:38:55 *shrug* Thankfully it seems to upgrade from 2.2.3 just fine Mar 03 04:39:16 The usual bitching and moaning from gradle notwithstanding Mar 03 04:39:56 I do seem to have a bazillon new lint checks coming up yellow now tho. *grumblegrumble* Mar 03 04:40:36 * Dagmar makes all the things private Mar 03 05:23:35 hi, running android 7.1 (lineageos 14.1). Can a system app have storage permission even if I don't assign it in Apps --> Permissions settings? I just want to understand the concept. because I have google keep installed as a system app. When I use it, it pops up to request Contacts and Microphone permissions, so I enabled them. BUT it never asks for storage permission and it's off in apps permissions setting. but it can still save notes and read photos Mar 03 05:23:35 from the sd card. I am wondering why. Mar 03 05:25:06 sgo11: have a look at this: https://developer.android.com/guide/topics/permissions/requesting.html#normal-dangerous Mar 03 05:30:23 has anyone here gotten sdkmanager to work properly, "sdkmanager --list --verbose' ? everything is truncated still Mar 03 05:30:27 bankai_, I read it. but I think it doesn't answer my quesiton. can I ask what the answer to my question is? I just want to know if a system app can have storage permission automatically or not. becaue if that is not a system app, if it wants to read my photos, it needs to gain the premission. but right now, keep's storage permission is off but it can still read my media files and photos. thanks. Mar 03 05:30:40 leave it to google for output to be neither human or machine readable Mar 03 05:36:57 I don't know why google keep can read my external storage (photo taken by camera) without having a storage permission (currently off). maybe (1) a system app can read storage without the storage permission? (2) google keep uses some google service tricks to have storage permission even if that is off? (3) it's a bug in android 7.1 ? Mar 03 05:40:02 It says that storage is a normal permission but contacts is a dangerous permission Mar 03 05:40:37 So yes, it can get storage automatically but not contacts or pics and such Mar 03 05:41:04 Without your explicit authorization Mar 03 05:41:52 wyrdtrtle, that's not true. all my installed apps will popup and request storage permission. If I don't give them, they will not be able to read my sd card content. Mar 03 05:42:26 They are not system apps Mar 03 05:42:58 Install them as system apps and they wont need to ask Mar 03 05:43:14 wyrdtrtle, but where defines system apps will not need storage permission in that link? I don't see the words. Mar 03 05:44:24 wyrdtrtle, I just did a test. If I turn off storage permission of a system app such as File Manager, it will not be able to read anything. Mar 03 05:46:15 Well then sounds like a bug, or maybe since google wrote the app they trust it more then they should. Mar 03 05:48:24 wyrdtrtle, maybe. I don't know... hopefully I can get an official answer for it. I don't find anything useful by googling. cheers. Mar 03 05:49:49 Cheers, hope ya find answers Mar 03 05:50:28 wyrdtrtle, thanks. :) Mar 03 05:50:43 Yw Mar 03 05:57:53 lol, this sdkmanager CLI is something else Mar 03 06:05:02 Ah, I got my mu-recursive stuff rolling again Mar 03 06:06:18 "Regulations letting both internet access providers and websites sell your data may be consistent. But that doesn’t mean they make sense." this sicks Mar 03 06:06:26 ooops wrong channel sorry Mar 03 06:10:05 morning all Mar 03 06:10:51 it's afternoon Mar 03 06:11:52 Not everywhere Mar 03 06:12:29 it's also not morning everywhere Mar 03 06:12:52 Lol, obviously Mar 03 06:13:36 Only needs to be where he is Mar 03 06:13:36 alternate facts? Mar 03 06:13:48 not really, coz he's extending the 'morning' Mar 03 06:14:05 the greeting is for the other person Mar 03 06:42:04 is it compiling of an app that requires AAPT (android asset packaging tool)? Mar 03 07:34:32 Hello, sorry for asking off topic, can anyone please guide me where too find tools too repack/unpack boot.img for new roms, i am using kinda old .pl, not working good. Thanks Mar 03 07:52:26 gotnut: is it for mtk? Mar 03 07:53:22 if yes try using jcadduono tool Mar 03 07:54:38 Nop its qualcomm dear. Mar 03 07:54:59 so i dont know, but give it a try https://github.com/jcadduono/android_external_libbootimg Mar 03 07:55:23 you need to compile and execute without arguments to show help Mar 03 07:55:29 i have to go, bye :) Mar 03 07:55:39 I am having problem getting .rle.. so i guess i am using old pl. Mar 03 07:55:50 I will look at it, thanks. Bye :) Mar 03 07:57:42 gotnut: ROM stuff: #android-root Mar 03 08:24:45 Hello, can anyone point me to some documentation on how sms are handled by android? More specifically, I'm trying to find out if an outgoing SMS can block an incoming SMS, or the other way around Mar 03 08:48:43 Hi All - Mar 03 08:50:24 when using a background service - does it HAVE TO be started in fragment create method . I want to put button on the screen that can start and stop it (it is a BLE service) but if I navigate away from the fragment to other partts of the app it should still be runnin g(assuming it was started) Mar 03 08:54:56 it can be ran anywhere where you have access to Context Mar 03 08:56:01 use startService() no bindService() if you want to keep it when all clients are gone Mar 03 09:42:56 I hate web development (especially all this css things), JavaScript is awfull & I want to switch to Anddrod development. In most cases creating web sites means not concentrating on what I really need but messing around with markup language for text to create UI widgets (not mentioning about other problems. What with Android? For me it looks like when you developing Android software you do not Mar 03 09:43:02 have to mess around trying to create some nifty UI widgets, layouts you have set of standardiez UI widgets and jus use them. Is this true? Mar 03 09:44:43 klaviatoora: There are different tradeoffs. I suggest you follow a tutorial and see for yourself what it's like. Mar 03 09:45:02 To a point. You can still run into similar issues as in web development when you want to customise the views though. Mar 03 09:46:13 As jjuran said, following a tutorial will be a good start. Then try to customise what is in the tutorial to change the properties of the views you create to see what it's like when you want something that isn't standard to see what it's like. Mar 03 09:57:29 My app consists of the app and a library. The library is also used by others. But while developing the app, I would like to have the library access a test backend. I would also like to not have to rebuild the library every time I ship. Is there a way to do t hat using build configs? Mar 03 10:02:51 I can start the process of adding a contact to my phone via ADB: `am start -a android.intent.action.INSERT -t vnd.android.cursor.dir/contact -e name 'Donald Duck' -e phone 555-1234` but it doesn't actually complete the process of adding the contact. How can I complete the process? Mar 03 10:03:45 I can't help you with that, but can I ask why you want to add it via ADB? Mar 03 10:04:52 It may be useful to write a custom app that has permission to modify contacts. Mar 03 10:05:30 but surely that process wouldn't be through adb, right? Mar 03 10:06:13 I'm not sure to what extent ADB lets you talk to apps. Mar 03 10:08:27 But what about real work? I mean, android developers do not spend 80% of time creating program messing around with something like CSS? And there is convenience of tools. HTML & CSS is not about GUI but about text mark up and so they are not very convenient in cases of mimicry of desktop software. Mar 03 10:09:49 Syzygy: On the other hand, you can definitely run a native process from the shell. So it's doable; the question is how much work it'll be. Mar 03 10:10:12 you can do that kind of thing from a PC using testing tools... I've done it Mar 03 10:11:42 True, app development in HTML is a bolted-on hack, whereas Android was designed for it. Mar 03 10:11:51 How big is the android studio SDK now? Isn't it like 40GB or something crazy? Mar 03 10:11:58 I've only got 13GB free on my disk. Mar 03 10:12:12 I've got a new laptop with a big SSD, but I've not set it up yet. Mar 03 10:12:13 40GB is full source Mar 03 10:12:29 Syzygy: that's why I wanted an ADB solution Mar 03 10:12:54 `adb shell input keyevent 4` sends a back button event. How can I send a confirm button event? Mar 03 10:13:09 What's a "confirm button event" ? Mar 03 10:13:12 After `adb shell am start -a android.intent.action.INSERT -t vnd.android.cursor.dir/contact -e name 'Donald Duck' -e phone 555-1234` Mar 03 10:13:24 I want ADB to press confirm Mar 03 10:13:30 the tick button. Mar 03 10:15:00 Lope: Simulate a tap with `input`? Mar 03 10:15:28 the back button is one of the hardware buttons (even if it's on screen), any check button would not be one of them. Mar 03 10:15:29 sure, how can I tap 5 pixels from the top right corner? Mar 03 10:15:44 By sending a tap event 5 pixels from the top corner. Mar 03 10:16:01 I bet you can find the answer on StackOverflow. Mar 03 10:16:13 (I have a feeling you're trying to solve a problem in the worst way possible though.) Mar 03 10:19:51 Lope, just so you know, installed Android Studio is less than 1gb for me. That excludes the SDK and stuff. Mar 03 10:21:48 what i assume is the android studio sdk is less than 2, and the android sdk itself is 6+ Mar 03 10:23:07 SDK is large only if you download system images Mar 03 10:23:52 so assuming you already have the android sdk installed (you're using adb after all), it should fit fine on your 13gb. and even if you still need the android sdk it should be fine. Mar 03 10:45:17 I'm not exactly sure what the enabled attribute does for a broadcastreceiver in the androidmanifest. According to the documentation it means that it can be instantiated by the system, but what does that mean? Mar 03 10:46:33 does it mean that it doesn't receive until somehow manually activated, or that it won't receive calls from the system, only from the app itself? Mar 03 10:55:13 Assuming I have 2 build configs, one with a variable X and one without it, what happens to BuildConfig.X for a build without that variable? Is it just null? Mar 03 11:26:55 Is openJDK fine to install on my linux machine for making simple android apps? Mar 03 11:27:05 Syzygy: thanks for info Mar 03 11:30:52 Lope, yes Mar 03 11:31:20 it doesn't matter if the application is simple or complex though Mar 03 11:40:23 In a NavigationDrawer app i want each item of the drawer to have it's own fragment hierarchy. When switching drawer items always the lastest fragment from the corresponding hierarchy should be presented. Also the back button should pop from the corresponding fragment hierarchy Mar 03 11:48:20 Hi. If I omit a translation string it falls back to the default language. can I prevent this? I want an empty string in one language Mar 03 11:49:18 provide an empty string then Mar 03 11:49:35 No, you can't prevent the fallback Mar 03 11:49:39 ^ Mar 03 11:58:18 SimonVT, Zharf, thanks. got confused by the editor, it escaped the "" *sometimes*. Diving in to xml and setting the string to "" worked :) Mar 03 11:58:39 oh, I never use the editor :p Mar 03 11:58:58 if you do translations it's handy to see the other languages :) Mar 03 11:59:23 but the german "hinzufügen" for the english "add" destroyed my layout XD Mar 03 11:59:35 I only know two languages well enough and the other is such a horrible language that I don't even want to translate to it Mar 03 11:59:59 hehe, me too, still helps to see the other language Mar 03 12:00:23 especially if naming changed and is not identical to the string name anymore Mar 03 12:00:40 hi all :) Mar 03 12:00:42 how is everyone Mar 03 12:05:49 anotheryou, what editor? That sounds like it could be somewhat useful for me. Mar 03 12:06:12 Syzygy, "Translations Editor" in Android Studio Mar 03 12:06:24 thanks. Mar 03 12:06:50 Syzygy, if you use it: F2 is the magical key to put the cursor in the selected field :) Mar 03 12:07:04 not sure why return/enter does not do it :) Mar 03 12:10:04 interesting, thanks. Mar 03 12:11:48 Btw, if you use a plus sign instead of "add" you don't have that problem. Mar 03 12:12:00 hope that helps you Mar 03 12:57:43 anyone couldnt access most sites few hours ago? Mar 03 12:58:07 i couldnt open anything except google websites, is this related to the amazon web services outage? Mar 03 13:08:31 I'm trying to initialize a final static variable in my constructor (I know that sounds wrong, but I think it makes sense in my case). Is there a way I can suppress the warning I get because it might not have been initialized yet? Mar 03 13:09:13 non sense Mar 03 13:09:38 Sounds like you're not initializing it after all. Mar 03 13:10:11 If it's a final static, it has to been initialized in a static block Mar 03 13:10:16 s/been/be Mar 03 13:10:46 Just make it static Mar 03 13:10:59 ^ Mar 03 13:12:28 Ok. I guess that's the only way to get that behavior. Mar 03 13:13:34 If you want to make sure it's only ever set once, use a static setter that also sets a static bool, preventing it from being called more than once Mar 03 13:16:10 I'm pretty sure I just ran into another issue that's a dealbreaker for this approach anyway :/ (generated code) Mar 03 13:19:20 Oh, right. final static. Mar 03 13:29:44 Crap, I guess it comes down to androidannotations... Mar 03 13:52:53 what is the main diff between a fragment and a dialogfragment? Mar 03 13:52:59 in terms of lifecycle Mar 03 13:54:46 check the source, but not much diff if any because "DialogFragment extends Fragment" Mar 03 13:56:38 Hi! I'm trying to add an Google map to my application but have problems with the API key. I have tried many different things and followed the guide on the android website how to set it up and get the key etc. But I get these errors the whole time: http://pastebin.com/5TcM2Zk5 Mar 03 13:56:50 Do anyone know what may be wrong? Mar 03 13:57:34 adq: does a fragment auto detach from an activity once the device goes to sleep and autoattachs once its active again? Mar 03 13:58:05 Zajt: try setting the key without any restrictions Mar 03 13:58:18 raoul11, https://github.com/xxv/android-lifecycle Mar 03 13:58:34 in doubt, override some lifecycle methods, put some logging or debugging there Mar 03 14:00:38 i h8 that graph adq Mar 03 14:00:40 I'm still noobish: Can I animate relative to absolute position? I want to have an image fly from a list to a button on my bottom navigation Mar 03 14:00:59 don't blame the messenger, raoul11 ;) Mar 03 14:01:05 Haven't figured the whole animation thing out yet, but would be a good info to start with :) Mar 03 14:01:13 i have a df with some custom animations, and once it wakes up from sleep the whole animation pops back up again Mar 03 14:01:17 yeah it should be possible anotheryou Mar 03 14:01:22 in/out animation Mar 03 14:01:29 adq, oh wow, something coolr then CSS for once :) Mar 03 14:01:48 raoul11: I did that and now I get the error "E/EGL_emulation: tid 6092: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)" Mar 03 14:02:20 Zajt, probably unrelated to your issue Mar 03 14:02:48 it's a usual message popping on avd/emulator when using surfaceview (maybe textureview too) which is probably used by map Mar 03 14:03:39 genymotion Zajt ? Mar 03 14:10:18 we solved it now, it was restrictions, thank you raoul11 and d Mar 03 14:10:19 a Mar 03 14:10:35 adq * can it be negative though to remove restrictions? Mar 03 14:11:16 you're gettin that error on genymotion emulator Zajt ? Mar 03 14:11:39 raoul11 not anymore, we use the emulator only Mar 03 14:11:48 with google apis? Mar 03 14:11:56 raoul11: yes Mar 03 14:12:01 interesting Mar 03 14:12:12 its usually popppin up on non googlishandroid devices Mar 03 14:12:22 so the emulator shud be ok with android only restriction Mar 03 14:12:50 the only negative outcomes could resolve from a leaking key Zajt Mar 03 14:12:53 and they could be expensive Mar 03 14:14:57 raoul11: so we would want to restrict it to android apps? Mar 03 14:14:58 Hi. Does Asus have a software for asus tablets such as Samsung's kies? Mar 03 14:15:32 yep Mar 03 14:15:49 well, thats what google advise u to do Mar 03 14:37:50 does spring have an analogue to retrofits @Streaming? Mar 03 14:40:33 I'm trying to make the google map showing my current position on start. Anyone have a clue to do this? Mar 03 14:41:00 Syzygy, to stream data to the response? Mar 03 14:41:17 Zharf, yes Mar 03 14:41:50 Syzygy, I've never used Spring, but isn't it also built on jersey? if so; javax.ws.rs.core.StreamingOutput? Mar 03 14:42:14 I'll look for that, thanks for the info. Mar 03 14:44:23 apparently they have StreamingResponseBody Mar 03 14:45:08 Zajt, that should be a fairly simple thing to google. Mar 03 14:46:00 I'm not sure if this alone does it: map.getUiSettings().setMyLocationButtonEnabled(true); otherwise you can do it manually via map.moveCamera and the users location. Mar 03 14:46:11 thanks Zharf Mar 03 14:47:56 Zajt: you need to handle location permission Mar 03 14:48:40 then set the location button with mGoogleMap.setMyLocationEnabled(true); Mar 03 14:53:33 Hi! I wanted to create some sort of 2 players "pong" game just for fun with friends. This game would have to communicate between two devices (one player telling his IP to the other) then the two phones synchronize. A colleague of mine told me it's impossible on cellular connection because the IP always change. Is that true? Mar 03 14:54:51 more like the problem is that ports are often blocked Mar 03 14:55:44 mostly direct cellular connection will fail Mar 03 14:55:57 youd need a center server (or games services) for that Mar 03 14:56:31 but it is perfectly doable within the same wifi or bluetooth Mar 03 14:59:07 ok so he was right, a center server was a good solution, like using a free php host Mar 03 15:05:10 IPs generally survive jumping between towers these days. See: https://en.wikipedia.org/wiki/Mobile_IP Mar 03 15:08:41 Hello, I was wondering if a high usage of resources could cause not to receive a text message. Or would sending/receiving a text message (SMS) be an exclusive case? Mar 03 15:09:02 (Exclusive as in : If I'm sending, I cannot receive, and if I'm receiving, I cannot send) Mar 03 15:10:41 Syzygy: I have googled and tried some things but it doesn't work. raoul11 I tried that but it does't work to start at the current location Mar 03 15:13:16 How do I know my cellular IP ? I'd like to nmap it Mar 03 15:13:47 lord_rob, ping an external service Mar 03 15:14:21 whatismyip.com Mar 03 15:14:28 lord_rob: open a web browser at the following page: https://wtfismyip.com Mar 03 15:14:37 Google even tell you if you ask him "What's my ip' Mar 03 15:15:36 yes sure ... Mar 03 15:15:52 stupid question ^^ Mar 03 15:15:58 thanks Mar 03 15:16:20 No problem. Always remember: You can always phone call a three letter agency for additional information Mar 03 15:16:43 a three letter agency.. Mar 03 15:20:32 You don't need to do it via IP address Mar 03 15:20:39 that's because I was thing of an app, but this is completely trivial Mar 03 15:20:58 actually nmap of that IP returns nothing Mar 03 15:21:22 everything is blocked I mean Mar 03 15:21:34 lord_rob: they may block certain TCP IP packets with specific flags, try to fiddle around with the options Mar 03 15:22:58 before going the nmap way, try first ping or tracepath to see if ICMP packets are accepted and if there is a route to that host in the first place Mar 03 15:23:35 hmm what is the default base dir when you try to load property files? app/src/main/java or other? Mar 03 15:24:23 scrap that... the apk doesn't seem to include the file anyway Mar 03 15:28:55 why GRadle Build Running takes so much time? Mar 03 15:31:36 It takes time to generate sufficiently complex errors to frustrate and confuse advanced programmers. Mar 03 15:31:45 mflow: cannot ping, traceroute stops after 30 hops but last hops are *** Mar 03 15:32:33 so no, it was not a good idea to begin with Mar 03 15:33:52 almost all cell networks use some form of NAT for the phone IPs Mar 03 15:34:04 (or heavily filtered v6 + egress nat to v4) Mar 03 15:34:36 even if it's a globally allocated address, it's most likely behind some sort of nat translation Mar 03 15:34:46 In short, you're just _not_ going to trivially make connections between devices without using some other API like Nearby Mar 03 15:35:22 hey goys Mar 03 15:38:42 ♫♫ we're just a crazy bunch of goys and dolls ♫♫ Mar 03 15:39:51 Dagmar: well, Nearby seems to do what I need however Mar 03 15:40:13 ^^ Mar 03 15:41:47 Yes. THat's why I suggested it. Mar 03 15:42:23 Phones might be connected _to_ the internet, but there's a degree to which--thanks to the way carriers have deployed that--that they're not really part of the internet Mar 03 15:42:55 ...which just exacerbates trying to make any connections to them which involve an assumption that the network even exists, let alone what type it is Mar 03 15:43:31 lord_rob, btw... Google Play Games services has API's for peer-to-peer connectivity. Mar 03 15:43:51 lord_rob, made specifically to give you easier time of implementing multiplayer games Mar 03 15:43:59 and including nearby search and similar options :) Mar 03 15:44:31 might wanna take a look at https://developers.google.com/games/services/common/concepts/realtimeMultiplayer before you go reimplement it yourself :) Mar 03 15:47:18 yes I guess so, maybe you know the pong game already exists :) it's just for having something to code in order to learn Android. Mar 03 15:49:56 Building a pong game is a nice first step. Building a realtime p2p networking stack that works on mobile devices might be a bit much :) Mar 03 15:50:38 Nonsense! Mar 03 15:50:45 Bite of more than you can, and get to chewing it Mar 03 15:50:53 *More than you can chew Mar 03 15:51:19 and doesn't Google Play Games services need to register to something? So tell you're an official developer ? Mar 03 15:51:49 I don't want that I'd like to code my own APKs for myself Mar 03 15:52:03 Hmm? Mar 03 15:52:20 Not sure what you're asking. Mar 03 15:52:21 Any recommendations for translation/localization management services? Mar 03 15:52:48 lord_rob: That thing your are worrying about is not an issue Mar 03 15:54:45 when using a background service - does it HAVE TO be started in fragment create method . I want to put button on the screen that can start and stop it (it is a BLE service) but if I navigate away from the fragment to other parts of the app it should still be running(assuming it was started) Mar 03 15:55:10 fels, didn't someone tell you already that it can be started wherever you have context? :) Mar 03 15:55:31 Mavrik: :( sorry I might have missed that Mar 03 15:55:43 fels, so yeah, you can start it wherever :P Mar 03 15:55:55 Mavrik: thanks Mar 03 15:56:32 what I'm asking is can I use google play services and then write my own apks that I'd flash on friends' phones without problem? wouldn't I need to install google play services on theirs too? Mar 03 15:58:33 like the name implies, google play services provides a lot of ... services Mar 03 15:58:57 it is not required to install an apk, but if you make an app that depends on its services, you are obviously going to need it installed too Mar 03 15:59:23 Unless they've got a tin-foil hat wearing version of Android, they'll be able to install your APK through the Play Store and it won't be a problem Mar 03 15:59:54 Trying to flash individual APKs on each other's phones is a _bad practice_ to get into Mar 03 16:00:52 hey goys, just refreshing my greeting Mar 03 16:01:00 soooooo whats an Intent _ ? Mar 03 16:01:15 I have a custom view that I've made, it's a little box with an dropdown arrow next to it, clicking it produces a dialog Mar 03 16:02:07 when populating its items, I feed it a String[]. So what I do is that I add that in my XML, Bind it and setContentview, then I go out on a network request, when that request comes back, that's when I make the call to populate this custom view's elements Mar 03 16:02:22 fels: https://developer.android.com/guide/components/intents-filters.html Mar 03 16:02:23 lord_rob, play services are preinstalled on all phones that have play store. So yes, you can just give them the APK. Mar 03 16:02:28 whenever I do that, it crashes when pressing on it, complaining about running toString on a null object, meaning it never got its items Mar 03 16:03:26 I tried calling invalidate on it after settings its items, didn't change anything. the view runs just fine if you setup its elements inside onCreate, but not inside the onResponse of the network call Mar 03 16:05:32 Odaym: Code? Mar 03 16:06:39 sure Mar 03 16:06:44 https://hastebin.com/ayinufobib.java Mar 03 16:06:47 These things are a lot easier to wrap your head around with the code Mar 03 16:07:17 and what line is the exception being thrown on? Mar 03 16:08:20 that's the thing.. here's the exception https://hastebin.com/enipuperip.java Mar 03 16:08:32 it happens when you click on the custom view, to see its elements popup Mar 03 16:10:23 the only difference is when you setup that element outside the network call, and when you set it up inside Mar 03 16:12:20 even take a new String[] and initialize it right before you setup the element, it will work, just not with this String[] that's being constructed in the onResponse Mar 03 16:12:28 and I've printed the elements, they're..Strings Mar 03 16:14:36 Happy Friday, devs Mar 03 16:15:13 this is very strange indeed Mar 03 16:15:25 Your string array likely contains null values Mar 03 16:15:32 ^ Mar 03 16:15:43 im printing now Mar 03 16:15:54 I printed them before and made sure, that's why I took it for granted Mar 03 16:16:14 adapter checks if instance of charSeq, resorts to toString() if that fails. Mar 03 16:16:51 yea null is the last element Mar 03 16:16:56 ty Simon Mar 03 16:17:02 that was dumb Mar 03 16:20:13 Have any of you dealt with the jsonapi standard from REST services on Android? Mar 03 16:20:36 yea Mar 03 16:20:48 sometimes they return null values XD Mar 03 16:21:15 Haha. Mar 03 16:23:55 I’m wondering if you guys have had good luck with the parsing libraries for it, this looks like the main one https://github.com/jasminb/jsonapi-converter Mar 03 16:25:21 Retrofit all the way man Mar 03 16:25:29 That has a retrofit adapter Mar 03 16:25:50 The issue isn’t how to get json from a server, the issue is how to parse wonky jsonapi format into an object Mar 03 16:26:05 it can't be wonky Mar 03 16:26:07 http://jsonapi.org/ Mar 03 16:26:19 if you account for something wrong in your model, the response will fail Mar 03 16:26:24 I’m talking about a specific json spec, not json Mar 03 16:27:11 Jsonapi makes sense, I get why people would want to use it for clean APIs, but good god is it model hell if you’re just trying to parse it into a usable object Mar 03 16:28:08 with retrofit I go to this website http://www.jsonschema2pojo.org/ and feed it the JSON as is, it turns it into Java classes, I implement them and give the parent to Retrofit as the class it should expect to see come back Mar 03 16:28:13 and everything works then Mar 03 16:28:28 Odaym: look at the jsonapi link I sent Mar 03 16:28:34 I did Mar 03 16:28:50 Instead of sending data down as a single object, every object is cut up into the same sub classes Mar 03 16:29:11 who cares :P Mar 03 16:29:14 It’s way too dirty for me to keep that format locally Mar 03 16:29:15 doesn't look very difficult Mar 03 16:29:18 don't you just care about how your app will work with it? Mar 03 16:29:22 these are your classes https://hastebin.com/badexeguyi.java Mar 03 16:29:26 it's just a generic protocol Mar 03 16:29:38 you need a model for every response by the way :P Mar 03 16:30:08 I direct your attention to this massacre https://www.dropbox.com/s/d5m1f67nxno9ln7/Screenshot%202017-03-03%2018.30.00.png?dl=0 Mar 03 16:30:26 a pretty stupid protocol that discards all advantages of json Mar 03 16:36:11 pfn: Agreed Mar 03 16:36:25 seems tailored toward content aggregation Mar 03 16:38:24 Odaym: Compare that to the classes I need: https://gist.github.com/konk3r/5d8136397c63bc7ace4cfaf9b4ab38a3 Mar 03 16:38:38 yep Mar 03 16:38:42 you forced to use this? Mar 03 16:38:49 well, the idea is that you write generic model objects for the protocol, then mappers from the protocol to your actual domain model Mar 03 16:38:49 I refuse to make a Data class and an Attribute class for every single object I’m parsing hahaha Mar 03 16:38:56 Right Mar 03 16:39:10 I’m arguing with the server team that we don’t need it Mar 03 16:39:52 pfn: So this should be fairly simple with a custom GSON mapper? Mar 03 16:40:08 dunno, I don't really use gson anymore Mar 03 16:40:13 What do you use? Mar 03 16:40:26 argonaut or circe Mar 03 16:47:18 Odaym, hahaha notice the 16 lines in the models I sent vs the 600 lines in the generated code? There’s nothing they could do to make me bloat the project like that, other people have to work in this code base. It looks like there are some adapters that manage this though… Mar 03 16:47:50 you're dealing with 1 response here? Mar 03 16:49:50 Unable to detect adb version, adb output: /home/ramdom/Android/Sdk/platform-tools/adb: 3: /home/ramdom/Android/Sdk/platform-tools/adb: Syntax error: Unterminated quoted string Mar 03 16:50:20 hmm can't seem to figure this out..... how to update the UI from a service thread? I've tried defining a handler with the update logic in the run(), but how do I pass this to the service? I figured I could call intent.putExtra , but it doesn't support passing a handler. guessing because it isn't serialiseable or something? Mar 03 16:52:17 Why would you pass a handler in an intent? Mar 03 16:52:50 What information needs to be passed from the service to the UI thread to faciliate the UI update? Mar 03 16:53:46 Roughy, well I thought that initially.. but how to update the ui? findViewById isn't in context if not on ui thread Mar 03 16:54:20 leemign: do you have access to a view? Mar 03 16:54:34 can't I just make a syncronized static on the activity? Mar 03 16:54:43 Well obviously if you’re updating the ui Mar 03 16:54:46 Normally you would send an intent to the activity. Mar 03 16:55:23 leeming: You can call view.post(Runnable) Mar 03 16:55:27 If not being on the main thread is your problem, you can just create a handler with the mainlooper and post it there Mar 03 16:55:33 That will call run on your runnable inside the UI thread Mar 03 16:56:14 ^^ or create a handler from the UI thread like Roughy says Mar 03 16:56:26 I'm clearly missing something in my understanding... why would you run a runnable inside the uithread, when the uithread can update the ui anyway? :? Mar 03 16:56:33 is React Native not a nightmare? Mar 03 16:56:59 leeming: you call view.post() from outside the UI thread, and then it sends it to the UI thread to run Mar 03 16:57:20 what does 'view' belong to? context/etc? Mar 03 16:57:25 can't find Mar 03 16:57:32 View is literally a TextView, ImageVIew, LinearLayout Mar 03 16:57:40 You can call it on any UI element Mar 03 16:58:03 ah right, but isn't that a member of "Activity" ? Mar 03 16:58:22 I have no idea how I get that reference otherwise Mar 03 16:58:51 you said you’re trying to update the UI, right? Mar 03 16:58:53 I don't think the thread is relevant at all here, since any service will run on the main thread. Mar 03 16:58:59 So you must have a reference to the UI Mar 03 16:59:03 Roughy, this isn't Mar 03 16:59:11 The issue is basically how to talk to the activity from a service Mar 03 16:59:21 Oh, okay Mar 03 16:59:29 (if I'm understaind this right) Mar 03 16:59:40 although the thread does have reference info to the Service Mar 03 16:59:55 so yes, i could pipe it from the service Mar 03 17:00:26 The correct way to do this is with an intent Mar 03 17:00:46 another incredibly simpler way is to use static listeners in the service Mar 03 17:01:41 so you can just call setOnThingHappenedListener() on the service class from the activity, and have the service call any registered listeners Mar 03 17:02:41 ok, so even from a service... it might run on the uithread, but it isn't an activity, so how does it get the view reference? Mar 03 17:02:47 sorry, friday.. brain fried Mar 03 17:03:20 The service should not really mess with views directly. Mar 03 17:03:50 so how do I communicate with the Activity? Mar 03 17:03:55 since i can not use intents Mar 03 17:04:30 You can, just not the way you were trying Mar 03 17:04:36 Lets break things down a bit Mar 03 17:04:40 the only way i can see how i'd do this is make some static listeners on the Activity (not service) Mar 03 17:04:59 Something happens on teh service side Mar 03 17:05:20 What is the information received, and how is the activity expected to respond? Mar 03 17:05:58 essentially a ping to update the UI that something is still working Mar 03 17:06:28 I'm overthinking this right? Mar 03 17:07:17 If it doesn't need to provide any extra information, then an intent will do Mar 03 17:07:39 look at this job post https://hastebin.com/idonagufos.txt Mar 03 17:07:43 service -> Send intent "I'm alive" to activity -> activiy with an intent filter receives intent -> aha! It's still alive! Mar 03 17:09:10 hmm i can see that. thanks, gives me something new to look into Mar 03 17:09:43 * leeming wonders if this is a monday morning job or continue into the evening **** BEGIN LOGGING AT Fri Mar 03 17:36:59 2017 Mar 03 17:44:02 Is there a call that an adapter or a cell can make to tell the RecyclerView to jump to it’s position? Mar 03 17:45:43 s73v3r, https://developer.android.com/reference/android/support/v7/widget/RecyclerView.LayoutManager.html#scrollToPosition(int) Mar 03 17:45:48 and the smooth version too Mar 03 17:48:04 Does anyone have experience with GCP/App Engine? Mar 03 17:48:44 I'm trying to wrap my head around how to architect an application Mar 03 17:56:04 anyone used androidscreencast.jar via adb? I'm getting this error even though adb is in my path: Cannot run program "${adb.path}": error=2, No such file or directory Mar 03 18:10:54 Isn't R.anim.slide_up_dialog an @AnimatorRes? Or am I missing something here... Mar 03 18:12:13 That's probably R.animator Mar 03 18:12:40 Hmm, never even heard of animator.. Mar 03 18:12:44 Looking into it Mar 03 18:14:10 ObjectAnimator, etc Mar 03 18:16:43 ok - quick qyestion ---- how do I implement a solution where when you click back button, instead of closing the app it asks [Are you sure you want to exit this awesome app? ] Mar 03 18:16:45 I'm not seeing help on how to do deltaY, from 100% to 0% in animator Mar 03 18:17:33 fels: 1) dont override the android behavior! 2) you can override onBackPressed() in your activity Mar 03 18:18:20 fels, you hook onbackpressed and onOptionsItemSelected Mar 03 18:18:31 with a dialog handling the confirmation/cancel Mar 03 18:19:18 explodes: are you suggesting that I shouldn't do that ? I won;t if its normal behaviour but clients are saying oh look when i click back it closes. my ios app does not do that :) Mar 03 18:19:37 Have you told them iOS devices don't have back buttons? Mar 03 18:19:47 it's usually not recommended on android to ask for confirmation to quit Mar 03 18:19:51 except on specific cases Mar 03 18:20:27 But yeah, override onBackPressed and do whatever Mar 03 18:23:00 it’s not normal android behavior, but there are instances where it’s appreciated Mar 03 18:23:35 on my phone, sometimes it’s pretty easy to fat finger the hardware back button, so in my reddit app, I like that they ask to exit rather than just exiting Mar 03 18:25:49 adq: yes - i did : OK - its a go Not adding that :) Mar 03 18:34:13 one of the cells in my recyclerview seems to be grabbing focus Mar 03 18:34:23 how can I find out why, and stop it? Mar 03 18:39:23 log your views I guess.. at the tiem it happens. view.hasFocus Mar 03 18:40:14 https://www.reddit.com/r/Android/comments/5xbmkx/rumor_david_ruddock_carriers_like_vzw_are_gearing/ Mar 03 18:40:34 Don't you love it how you spend all week integrating an API and your higher-ups totally smash the project and decide to go a different direction? Mar 03 18:42:57 weird move Mar 03 18:44:30 that tells me that it got focus. I want to know why it’s getting focus Mar 03 18:44:38 and then I want to remove that Mar 03 19:00:43 So my week long shitslog is over Mar 03 19:01:09 one of the items in my recyclerview was stealing focus, which was causing the recycler to scroll to that item Mar 03 19:01:28 well, scroll that item to be on screen Mar 03 19:01:56 lol what was it? Mar 03 19:02:10 but, because different devices have different sizes and such, on some it would be very pronounced, and on others, it would just move a tiny bit, or not at all Mar 03 19:02:21 i still have no idea why it was stealing focus Mar 03 19:02:35 but if I just block descendent focusability, that stops the problem Mar 03 19:13:08 s73v3r: out of curiosity - did you ever find that widget-measuring-app you were hunting for? (aiui - you were looking for something approximating what hierarchy viewer was doing) Mar 03 19:13:45 I’ve found a couple that kinda do what I want. Material Cue is one that was suggested to me by a coworker Mar 03 19:14:03 what the hell is aiui? Mar 03 19:14:09 not more acronyms... Mar 03 19:14:24 and then there’s PixelRuler or something like that, which lets you measure stuff in DPs Mar 03 19:15:30 Material Cue overlays all kinds of Material-esque grids on your screen. It’s pretty nice Mar 03 19:15:34 s73v3r: ah, that's an external thing rather than querying the app directly - misunderstood Mar 03 19:15:52 How do I fix the ads to not overlab the recyclerview at the bottom, my xml layout: https://hastebin.com/isipilezet.xml the image of screen: http://imgur.com/eLTpeKb ? Mar 03 19:17:44 so you want the recyclerview to end before the ad? Mar 03 19:17:59 s73v3r: yes Mar 03 19:18:46 DrawerLayout is based on a FrameLayout internally, so you would probably have to include your RecyclerView in the RelativeLayout Mar 03 19:20:10 s73v3r: okay so I just have to change it to RelativeLayout instead of Drawer? Mar 03 19:20:42 no, because I’m guessing you want the drawer Mar 03 19:22:19 Take the children of the DrawerLayout, and wrap them in a RelativeLayout Mar 03 19:22:38 s73v3r: I change it to RelativeLayout but its still overlapping Mar 03 19:22:45 but then, because nested RelativeLayouts are silly and all kinds of bad, remove the one that just contains the ad view Mar 03 19:23:40 and then tell the relativelayout to pin itself above the adview Mar 03 19:24:13 how do I do that? Mar 03 19:24:41 using the relativelayout properties Mar 03 19:33:51 Jonathan-, inside your relativelayout, you probably want to put your adview at bottom (with android:layout_alignParentBottom="true") and place your RV above it (with android:layout_above="@id/your_adview_id") Mar 03 19:34:08 if you don't know how those properties work, you'd better play with them then Mar 03 19:44:46 adq: okay I will try play with it :) Mar 03 19:50:31 anyone around to answer an android studio question? Mar 03 19:50:50 adq: I got it to work with android:layout_marginBottom="55dp" in the SwipeRefreshLayout, but I dont know if that good or not Mar 03 19:51:34 that’s an acceptable fix too Mar 03 19:51:44 okay :) Mar 03 19:51:53 although you should probably move that number into the dimens.xml file Mar 03 19:52:42 yes I know, it was just to test if it worked Mar 03 19:52:46 :) Mar 03 19:53:20 jaydemir: Please just ask your question, instead of asking to ask. If someone can help, they will Mar 03 19:53:34 I have a PC running an AMD A10 7700k CPU. Android studio on my Windows partition says I dont have virtualization. My Linux partition has no issue whatsoever. What gives? Mar 03 19:54:15 jaydemir: did you enable virt in bios? Mar 03 19:56:00 It has been enabled. I'm literally on a virtual machine as we speak Mar 03 19:56:11 why would Android Studio complain about that? Mar 03 19:56:14 do you mean Genymotion? Mar 03 19:56:18 jaydemir, on Windows the emulator uses HAXM which is a library built by Intel Mar 03 19:56:22 virtualbox works just fine on Win10, but studio refuses to emulate Mar 03 19:56:35 which means they refuse to make it compatible with AMD CPUs :) Mar 03 19:56:42 :o Mar 03 19:56:46 you're kidding right? Mar 03 19:56:47 on Linux the emulator uses kernel KVM Mar 03 19:57:00 jaydemir, https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Mar 03 19:57:20 isn't studio a Google product? Mar 03 19:57:30 jaydemir, it's not Android Studio that's the problem Mar 03 19:57:41 it's Google's emulator which is a separate piece of software. Mar 03 19:57:49 use Genymotion Mar 03 19:57:55 so it's something baked in windows Mar 03 19:58:09 it's your processor that is the issue Mar 03 19:58:17 the company that makes the emulator doesnt support your processor it seems Mar 03 19:58:24 jaydemir, no. Mar 03 19:58:25 jaydemir: but if you need a emulator you can use BigNox in android studio also, I use it as emulator to android studio Mar 03 19:58:33 jaydemir, nothing to do with Windows either. Mar 03 19:58:36 I mean. Mar 03 19:58:49 the Linux partition on this same machine runs the emulator almost as fast as my actual device Mar 03 19:58:53 Google choose a piece of software that doesn't support AMD CPUs when they were building the AVD (emulator) Mar 03 19:59:03 on Windows, on Linux they use something else. Mar 03 19:59:12 jaydemir: that’s because it’s using QEmu on Linux Mar 03 19:59:39 Dont they still supply arm images? Mar 03 20:00:15 fail Mar 03 20:00:21 SimonVT, that's unusably slow Mar 03 20:00:47 Sure Mar 03 20:01:06 But I don't think google has anything to do with haxm Mar 03 20:01:54 except that they chose to use it as virtualization solution over bunch of others :) Mar 03 20:02:03 old emulator didn't need HAXM Mar 03 20:02:12 Genymotion doesn't either Mar 03 20:02:40 The "old emulator" is just the arm images tho Mar 03 20:03:06 x86 as well Mar 03 20:03:10 probably the politics of. Intel and atom and mobile Mar 03 20:03:44 Really? I don't remember it being anything but x86 and haxm together Mar 03 20:04:13 mmmh Mar 03 20:04:33 They were even released later than the arm images because intel had to build them Mar 03 20:04:44 And there were none with google apis Mar 03 20:05:01 from what I understand, Intel actually creates the x86 images for Google Mar 03 20:05:16 it's simple, haxm is from intel and wants vt- stuff Mar 03 20:05:19 is intel still making x86 chips for actual devices anymore? I heard they stopped all that Mar 03 20:05:35 haxm won't work with amd cpu, nor with hyper-v enabled on windows Mar 03 20:06:09 jaydemir, they stopped ARM Mar 03 20:06:12 jaydemir, they never stopped it Mar 03 20:06:13 not x86 ;) Mar 03 20:06:32 I guess it all makes sense. Boot into Linux to do studio work Mar 03 20:06:46 it has nothing to do with the OS Mar 03 20:06:53 I know Mar 03 20:07:00 but emulation works on my Linux partition Mar 03 20:07:17 because kvm "understands" amd Mar 03 20:07:18 because Studio isn't using haxm Mar 03 20:07:49 iirc, avd image are still powered by qemu Mar 03 20:08:11 this is why you cannot really compare virtualbox (genymotion) to qemu (avd) Mar 03 20:11:42 is it working now after this discussion, jaydemir ? Mar 03 20:12:18 I just gave up on getting it to work on Windows. I'll just network-ADB to my device if I need to Mar 03 20:12:35 or boot into my Linux partition to get work done Mar 03 20:12:50 try Genymotion Mar 03 20:12:56 pretty cool Mar 03 20:13:20 how would I specifically try Genymotion? Mar 03 20:13:31 is it something I have to install into Studio? Mar 03 20:13:32 how do you think? Mar 03 20:13:56 it's a standalone software Mar 03 20:13:58 look it up, try it Mar 03 20:15:31 yay subscription fees Mar 03 20:15:51 you gotta pay to get the good stuff! Mar 03 20:15:57 lol no, that's only for corporate use Mar 03 20:16:03 yours is personal use Mar 03 20:16:16 doesn't look like an option Mar 03 20:16:18 indie license for commercial use is pretty cheap Mar 03 20:16:28 it's for free.. Mar 03 20:16:32 but you can use the free version if you don''t plan to make any money Mar 03 20:16:36 wait Mar 03 20:16:40 yea it's free Mar 03 20:16:53 oh wow it's on a completely different website Mar 03 20:18:59 looks interesting. Probably would install it to run some Android apps but it's not a big enough problem for me at the moment Mar 03 20:19:09 cool to know stuff like this is out there though Mar 03 20:22:23 anyways, thanks for the insight! Mar 03 20:35:23 Hello. I'm using a native-activity. I would like to use opengl es 3 but I have the following error: fatal error "GLES3/gl3.h' file not found. Could you please tell me what I'm doing wrong ? Mar 03 20:47:27 Odaym: If you use Genymotion on a project you plan on making money off of, or for a commercial use, you have to pay Mar 03 20:47:53 ethically speaking, yea Mar 03 20:48:15 No, legally speaking Mar 03 20:48:23 well, both Mar 03 20:49:15 but if you’re trying to get people to pay you for your software, it’s pretty shitty of you to refuse to pay what someone else is asking for software you use. Mar 03 20:49:26 of course Mar 03 20:49:42 this is not my case Mar 03 20:49:48 put the phone down Mar 03 20:55:39 Hello. I'm using a native-activity. I would like to use opengl es 3 but I have the following error: fatal error "GLES3/gl3.h' file not found. Could you please tell me what I'm doing wrong ? Mar 03 20:56:54 are you sure that’s the header name? Mar 03 20:56:59 isn’t it just gl.h? Mar 03 20:57:25 nope it's gl3 Mar 03 20:58:00 I'm not familiar with the android dev environment. How to set the sdk version to use to compile ? Mar 03 20:58:14 in the gradle ? Mar 03 20:58:27 yes Mar 03 20:58:33 that should have been generated for you Mar 03 20:59:49 yeah It seems that the opengles3 header for cross compile is available since sdk 21 Mar 03 21:00:08 so i have set minSdkVersion 21 Mar 03 21:01:37 also in the externalNativeBuild section I have arguments '-DANDROID_PLATFORM=android-9' Mar 03 21:01:45 What does this "9" means ? Mar 03 21:03:11 i believe thats the version of the NDK, but I’m not sure Mar 03 21:03:47 It's the API level you're targeting for your native code Mar 03 21:03:53 so if I need at least min version 21 I should set 21 instead of 9 ? Mar 03 21:03:58 Building against gingerbread in this case Mar 03 21:04:12 Yeah, it should normally match your minSdkVersion Mar 03 21:04:21 ok I try this Mar 03 21:04:23 thanks Mar 03 21:08:18 It seems to compile now Mar 03 21:08:19 thanks Mar 03 21:15:07 np Mar 03 21:22:47 I'm at a point where I want to remove all mentions of an EventBus from an app Mar 03 21:23:09 and replace with onActivityResult because most of the cases where I used an EventBus I should've been using onActivityResult Mar 03 21:23:56 is it common to chain it? startActivityForResult(ActivityA, RC), startActivityForResult(ActivityB, RC), setResult(RC), receive at ActivityB, receive at ActivityA, act upon? Mar 03 21:26:51 Odaym: it happened to me Mar 03 21:27:51 but..what did you do? Mar 03 21:28:53 what do you mean? I have a path in my application where that happens. I just did it. It's ok. There is nothing wrong. Mar 03 21:28:59 What's your problem? Mar 03 21:29:16 ah you did the above as I mentioned Mar 03 21:29:39 yea I've done it too of course, and either way no matter how long it chains, it's still less costly and less cryptic than an eventbus which has no use case Mar 03 21:29:40 thanks Mar 03 21:30:23 Yes. I use RxJava for fragment/activity communication and Intents for activity/activity communication Mar 03 21:31:15 I still think RxJava is overkill for such a thing, I think proper architecture will eliminate the need for them to communicate with anything less than obvious ways Mar 03 21:31:24 but alas, MVP is not a piece of cake Mar 03 21:32:22 who here has proper MVP arch implemented in any app anyways? Mar 03 21:32:38 model view presenter, repository, the works Mar 03 22:00:20 personally at least, i've found an event bus (on Android anyway) a nice way to decouple UI <-> background operations. classic use-case: progress on background ops, as the user switches through > 1 activity Mar 03 22:00:47 not to say it makes sense for everyone :) just my personal observation Mar 03 22:04:55 Event busses are nice, but they are quite easy to over use Mar 03 22:05:16 ^^^^^ x100 Mar 03 22:05:24 Someitmes a simple interface is enough Mar 03 22:06:35 There are many reasonable ways to manage async work on Android, indeed Mar 03 22:07:07 man.. all my compile-time warnings disappeared after updating AS Mar 03 22:07:11 lol, good riddance Mar 03 22:07:44 21s build yeah buddy Mar 03 22:07:57 light weight! Mar 03 22:09:05 psych.. 1m 18s Mar 03 22:09:11 21s was for the gradle build Mar 03 22:42:41 damnit i have UI design Mar 03 22:42:46 hate* Mar 03 22:51:49 Tricknology: Oh. And here I was going to offer you the job of doing UI work for us Mar 03 22:52:22 good thing you didn't, it's against channel rules Mar 03 22:52:28 hehehe Mar 03 22:52:48 pfffff, rules. We’re disruptive. Rules don’t apply Mar 03 22:52:56 excep to be broken Mar 03 22:52:57 but yeah.. our project scope changed a whole bunch and now we've bene taked with designing a new UI. Is that common? Mar 03 22:53:04 yeah Mar 03 22:53:10 I feel like everything I make is going to be shit Mar 03 22:53:13 aw FFS Mar 03 22:53:52 at my last place we had a UI/UX department do that and gave us a packet of UI slides.. Mar 03 22:53:58 I was a fool to expect the same Mar 03 22:54:08 well I hope they like my 3rd grader UI Mar 03 22:54:10 really? Cause that’s how it works at most companies Mar 03 22:54:43 It just doesn't interest me at all haha Mar 03 22:54:59 i mean having a design group that handles the mockups Mar 03 22:55:03 that's a bummer that's the way it works at most companies Mar 03 22:55:06 we still had to implement the design Mar 03 22:55:08 ooh Mar 03 22:55:22 i could see a small company not having both Mar 03 22:55:30 yeah that's waht I mean.. we're now the design group while management figures out where they're going Mar 03 22:55:45 small indeed Mar 03 22:55:49 i mean, at least now you know that design won’t give you an iOS look :p Mar 03 22:56:08 implemented Jenkins build server on an inspiron :X Mar 03 22:56:32 add that to the CV. - Yeah I hate the iOS look. Mar 03 22:56:49 (assuming ui not ux) using grids to organize layout is my design-for-programmers pro-tip :-) suggested reading - part 2 of the vignelli canon Mar 03 22:58:14 I think it's common, but only in this company i'm in it isn't, they're a design agency Mar 03 22:58:21 so your opinions on UI are worthless Mar 03 22:58:39 which is the opposite end of the spectrum, because they're not very familiar with mobile so I wish I had been tasked with the UI Mar 03 22:59:50 Many of the agencies I’ve worked for start out that way, but then start warming up to the developers regarding what’s possible, what’s easily doable, and stuff like that Mar 03 23:00:07 either that, or I’ve just left the companies that don’t :D Mar 03 23:01:00 I'm about to leave this one, been here a year and everything is good and taken care of for you as an employee, except for the fact that those around you aren't developers Mar 03 23:01:52 it's like the client is in the same office as you, same mentality Mar 03 23:43:45 I have been trying to get a wear app to send and recive a message to my phone using a method show here: http://toastdroid.com/2014/08/18/messageapi-simple-conversations-with-android-wear/ Mar 03 23:44:11 it doesn't seem to work. Is this still the accepted way to achive this or is there another better way Mar 03 23:44:21 ? Mar 03 23:45:52 you’re gonna have to be more specific with “it doesn’t seem to work" Mar 03 23:46:27 s73v3r: Sorry, I am now to android dev so I am still learning the ropes Mar 03 23:47:04 I set up the code on my app similar to this tutorial, but the button press does not trigger the phone toast Mar 03 23:47:53 then i tried to use Log.d("progress", "Step 1 complete"); thought to see if it is working, but nothing appears in the log Mar 03 23:48:30 A lot of the stuff i find on google seem to be datad so I was wondering if this was just depriciated Mar 03 23:54:03 debug step through it Mar 03 23:56:06 Hi all, every time I install the ARM EABI v7a, and close and open androi sdk manager, I see Broken by that package? Mar 04 00:06:12 s73v3r: Also there is this issue where the andorid wear phone app crashes and the asks you to setup the watch all ovr again (which requires that you factory reset the watch). Is there a way to prevent that? Mar 04 00:06:46 wow, that’s a bad crash Mar 04 00:07:51 Yeah, I just pressed debug and it happned (this is the second time i saw this in the last 3 days) Mar 04 00:08:16 why does using Photos from ACTION_GET_CONTENT always result in RESULT_CANCELED Mar 04 00:10:38 Anyone get the bug wher you build a project and then Android asks if it should close? Mar 04 00:10:50 I dread the day when I accidentally tick the box "Don't ask me again" Mar 04 00:10:53 i would take that as a sign that it’s time to go home Mar 04 00:11:12 This day has been so crap. I wish I could go Mar 04 00:11:34 project scope got changed, all the work I did this week and last weekend all but useless Mar 04 00:12:01 and with the existing changes coming, If I were a current user I'd be angry Mar 04 00:46:45 who do you work with tricknology? as in, company? industry? what kind of software do you support? Mar 04 00:52:37 meh, Samsungs in a heap of trouble in S Korea :/ Mar 04 00:53:15 Does the JDK brand matter for Android? Mar 04 00:53:22 I saw on the Android site that it said to use OpenJDK, but I had also been told to use Oracle JD Mar 04 00:53:35 Also, I saw that it said the Android SDK/studio should come with OpenJDK Mar 04 00:53:46 If so, where can I find it? I only see the JRE, but maybe I just haven't found the right place... Mar 04 00:54:16 I'm sort of confused because the website says to use OpenJDK, but when you install the studio, the studio tells you to use Oracle's version. Does it even matter? Mar 04 00:54:57 I've already switched JDK versions four times, but I keep getting conflicting instructions. Mar 04 01:04:06 can you build anything? ;) Mar 04 01:18:40 I haven't been able to build anything yet. Mar 04 01:19:06 I keep getting these compile errors, which I think might be related to the JDK version or maybe the paths for the JDK being off or something. Mar 04 01:36:53 "these compile errors"... they're the worst! Mar 04 01:42:04 I keep finding multiple different sources that say completely opposite things about the JDK brand that should be used, so I was hoping someone here knew which should be used, if it even matters. Mar 04 01:52:44 brand? Mar 04 01:53:15 oh.. I use Oracle, always have, no problems Mar 04 01:58:29 With a fresh install of AS 2.3, if I'm not using the Gradle wrapper, I can't build. 2.3 comes with Gradle 3.2, but it tells me Gradle 3.3 is required. Mar 04 01:58:37 Anyone else seeing this? Mar 04 02:04:49 Just to clearify, I just need to place Log.d("Stage", "On create started..."); under the on create function and and it should output to the log right? Mar 04 02:05:08 I am not seeing this in the log... is it supposed to appear in the Run sections Mar 04 02:05:10 ? Mar 04 02:05:52 lankanmon: View > Tool windows > Android Monitor. Mar 04 02:09:07 I want to re-download a dependency. Mar 04 02:09:13 to do this I would run Mar 04 02:09:20 find ~/.gradle/caches/ -type d -name "library_name_here" -prune -exec rm -rf "{}" \; -print Mar 04 02:09:27 but after updating to Android Studio 2.3 this doesn't seem to work Mar 04 02:09:35 Maybe becuase "The user cache for dex files is now enabled by default, which should speed up builds" Mar 04 02:09:47 http://tools.android.com/tech-docs/new-build-system Mar 04 02:09:58 anyone else have this issue or know how I can force a download for a single dependency? Mar 04 02:12:53 TacticalJoke i'm not using the gradle wrapper Mar 04 02:13:00 i'm using gradle 3.4 and AGP 2.3 Mar 04 02:14:10 g00s: Did Gradle 3.4 come with AS 2.3? I got Gradle 3.3 with mine. :S Mar 04 02:14:28 i always use external gradle Mar 04 02:15:29 Ahh, okay. Mar 04 02:27:37 Got it working with compile ('foo:bar:1.0') { changing = true } Mar 04 02:38:06 TacticalJoke: Thanks! That worked... **** ENDING LOGGING AT Sat Mar 04 03:00:01 2017