**** BEGIN LOGGING AT Wed Sep 07 02:59:58 2016 Sep 07 03:02:27 orbyt_, Arancio, haha, yeah I know, but the thing is I've seen people using basically the same implementation and they say it works. Sep 07 03:02:42 I've looked over other examples, every one I could find. Sep 07 03:28:03 You can find also some pearls of dumbness on StackOverflow, thought, not just gold Sep 07 03:35:33 I'm trying to debug a crash in my app. I set the break point, attach the debugger and then the debugger stops execution, when I step over the current instruction the app closes without any messages and the debugger stops with it as well. Any idea what that means? Sep 07 03:35:50 grekkos: and hello Sep 07 03:36:36 hi Sep 07 03:39:52 hi grekkos Sep 07 03:42:15 grekkos: that sounds like a known bug in ART Sep 07 03:42:30 solution: don't use android 6.0 to debug Sep 07 03:42:50 Can the camera application overwrite a file? Sep 07 03:43:22 The camera application is crashing after recording a video for my application Sep 07 03:43:24 granted I've think I've seen that behavior on other versions but 6.0 was the only version google confirmed had issues Sep 07 03:43:26 Arancio: Any application can overwrite files if they have the appropriate permissions Sep 07 03:43:40 It works properly if I use as standalone application Sep 07 03:45:03 wyoung: I'm specifically asking if "camera" is known to crash when asked to overwrite a file (in general on in case it doesn't have permissions, although it has permissions to write the file so I guess it has permissions to overwrite) Sep 07 03:47:18 missingno: ah okay... android 6 only? that's the only android device i have haha, I guess I can spin up an emulator Sep 07 03:47:43 missingno: If I upgrade my phone to N will that be better, worse or the same? Sep 07 03:50:14 grekkos thats the thing, you just never know with android :P Sep 07 03:50:52 Arancio: It shouldn't crash. It may throw an exception and if you don't handle it your app will crash Sep 07 03:51:17 g00s: hehe Sep 07 03:51:52 wyoung: but my application doesn't crash. I'm changing my code so that the file is always different. Let's see if that fixes the problem Sep 07 03:52:02 My app has made some really great progress in the last week. I have some performance kinks to knock out but that's about it. Sep 07 03:52:42 has anyone used realm? Sep 07 03:52:48 ffmeyes Sep 07 03:52:53 what the Sep 07 03:52:56 yes* Sep 07 03:53:15 haha Sep 07 03:54:01 I have a database which is essentially a dictionary. Currently I'm using sqlite but it looks like it's pretty slow. I don't really need to write to the database at all it's just read-only. I'm looking for something with better performance. Sep 07 03:54:17 Of course the first thing I did was tweak the sql queries but they're still pretty slow Sep 07 03:55:14 grekkos: what is your application about, if I may ask? Sep 07 03:55:16 The realm team claims it can be faster than sqlite under certain situations, but frankly most people use realm for the ease-of-use factor Sep 07 03:56:41 if it's slow, you probably did it wrong Sep 07 03:56:44 Arancio: I'm building up a language learning tool, part of it has a dictionary... to be honest a relational db is probably not the best way to store this information but that's what I have to start Sep 07 03:57:00 db has about 200k rows Sep 07 03:57:06 for 3 tables Sep 07 03:57:08 that's nothing Sep 07 03:57:08 plus some joins Sep 07 03:57:22 idk i mean it's pretty fast on my desktop but of course that doesn't mean anything for the phone Sep 07 03:57:37 learn2index Sep 07 03:57:43 everything is indexed Sep 07 03:58:02 that doesn't mean much if you index wrong Sep 07 03:58:19 hmm Sep 07 03:58:54 explain query plan Sep 07 03:58:54 "learn2index" sounds a good name for an app for learning database design Sep 07 03:59:00 then come back Sep 07 03:59:06 :D Sep 07 03:59:36 hi all. im having a problem. i have android-studio 2.1 and now, when i add a ic_launcher.png to the res/ directory (i somehow dont have xxxhxpi etc.folders) the icon doesnt change inside the emulator in the apps view Sep 07 03:59:40 can anyone help me here? Sep 07 04:00:02 im reading "android app development for dummies" Sep 07 04:00:36 pfn: https://gist.github.com/hk0i/c42680cf7c77649b279eaae87b2839c8 Sep 07 04:01:09 grekkos, remove. the table scan Sep 07 04:01:30 how do i do that Sep 07 04:02:01 I hope pfn is using a smartphone to chat Sep 07 04:02:01 that's up to you to fix your query or provide the right index Sep 07 04:02:19 of. course, if gloss is like under a few hundred rows, it doesn't really matter Sep 07 04:02:41 freakyy: The launcher should go in the mipmap directory Sep 07 04:03:24 Also, Android Studio wont display the various dpi folders in the android view Sep 07 04:03:35 it shrinks them into a single listing Sep 07 04:03:44 heh gloss has 1.1 million rows Sep 07 04:04:12 alright thanks for the tips pfn I'll dig a little deeper into this Sep 07 04:04:40 grekkos, yes, scanning 1.1m rows will be slow Sep 07 04:04:50 ;D Sep 07 04:05:04 I didn't notice until you mentioend it this whole time I thought it was only 100k Sep 07 04:05:13 missed a digit Sep 07 04:06:41 oh yes it works thank you orbyt_ Sep 07 04:06:48 how do i get to the different other folders then? Sep 07 04:07:26 freakyy: the other folders are for other, specific things Sep 07 04:07:39 freakyy: I don't think you put anything directly in res Sep 07 04:07:50 freakyy: what different folders Sep 07 04:07:56 the hdpi/xhdpi etc? Sep 07 04:33:17 I have a problem. Can I ask to ask for help? Sep 07 04:40:42 I don't have the problem anymore. Must have been a temporary malfunction of the emulator. I reinstalled the application and now it works. Sep 07 04:50:53 what is difference between context and instance in android , like when they say get application context it looks same to me as get application instance Sep 07 04:52:56 boodllebat: and hi Sep 07 04:53:10 Arancio: hi :D Sep 07 04:53:29 boodllebat: how are you? Sep 07 04:53:51 Arancio: can you help me getting answer of that question it would be great help Sep 07 04:54:04 boodllebat: I'm fine too thanks Sep 07 04:55:02 boodllebat: Application is a subclass of Context, maybe? Activity is a subclass of Context for sure. Fragment isn't Sep 07 04:55:22 boodllebat: can we be friends now? Sep 07 04:56:20 boodllebat: is this question for your homework? Sep 07 04:56:25 Arancio: yes we can friends but i'm still confused when a function returns context() of an application , what does it return in real i mean what does it want to do ? Sep 07 04:57:25 boodllebat: your last question is unclear Sep 07 04:57:36 Arancio: no its not a homework , it has been a while developing android apps but i'm still not sure about getContext() i just use it cause most of the sample codes do or function takes context as argument never really understood the concept of it Sep 07 04:58:00 boodllebat: look at the "Known indirect subclasses" of Context. https://developer.android.com/reference/android/content/Context.html Sep 07 04:58:08 boodllebat: Application is one of them Sep 07 04:58:29 "Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcasting and receiving intents, etc." Sep 07 04:58:39 That's what a Context is Sep 07 04:59:17 Anyone know where I can find Android button designs made solely with XML? Sep 07 04:59:22 You may pass "this" as context if the caller is a Context, otherwise you have to fetch the Context somewhere and you may use getContext() Sep 07 04:59:34 boodllebat: what's so hard to understand? Sep 07 04:59:45 VerbalKint: sure, plenty of them Sep 07 04:59:46 Arancio: i think i'm getting it now , its like a class which gives access to most of the under-the-hood things of an App Sep 07 05:00:02 Arancio: link? Sep 07 05:00:25 Arancio: correct me if i am wrong Sep 07 05:00:31 VerbalKint: I'm googling it. I saw several examples in past Sep 07 05:01:17 VerbalKint: http://stackoverflow.com/a/26071434 Sep 07 05:02:00 Arancio: well, I know how to make one, but I can't seem to find sources of inspiration that use only xml Sep 07 05:02:11 boodllebat: Is your definition compatible with the definition found in the documentation. Did you read it? Sep 07 05:03:17 VerbalKint: Ok. You meant cool examples of design. Sorry I don't have any of them. Sep 07 05:03:42 Arancio: there doesn't seem to be any on google Sep 07 05:03:55 VerbalKint: Android buttons are pretty simple Sep 07 05:04:05 Arancio: no its was just an analogical definition not actual one Sep 07 05:04:16 Arancio: but i think i got it Sep 07 05:04:29 Arancio: Thank you :D Sep 07 05:04:29 boodllebat: good. You're welcome Sep 07 05:04:39 boodllebat: !!!! ! ! ! ! ! !!! ! Sep 07 05:05:19 can you tell my thank you message is before your welcome message on your screen or not ? Sep 07 05:05:24 Arancio: ! Sep 07 05:06:26 boodllebat: it's a temporal anomaly. I'm from another century. I'm using a polyphasic temporal transceiver to communicate with you Sep 07 05:07:12 boodllebat: cause-effect inversions are a common side-effects. There are some bugs in the app we use to do this kind of stuff Sep 07 05:07:40 VerbalKint: what do you want to do? Do you just need ideas? Sep 07 05:07:50 Arancio: i dont understand what you just said but sounds great Sep 07 05:08:23 Arancio: I "have" some ideas, but they all require making them in Illustrator/Photoshop and I don't want that hassle Sep 07 05:09:26 VerbalKint: if you want to do any complex design in vector graphics it's better if you use Illustrator. Unless you have a daily practice with SVG or something like that Sep 07 05:09:48 Arancio: I know, but I suck at SVG :( Sep 07 05:10:19 VerbalKint: it's normal. People don't actually write SVG by hand. They use Illustrator or Inkscape Sep 07 05:10:34 unless it's something moronic Sep 07 05:10:45 Arancio: I know, lol, I didn't thought that I'd write SVG by hand :D Sep 07 05:11:33 *think Sep 07 05:12:09 VerbalKint: well, either you do it by hand or you use Illustrator. If you don't want to use Illustrator (or another software) you have to make you vector graphics by hand. No other choices Sep 07 05:12:17 Anyway, can't help sorry Sep 07 05:12:50 http://angrytools.com/android/button/ Sep 07 05:13:05 Well, I guess I'll give Illustrator another go since it seems that google sucks at implementing basic graphical features Sep 07 05:13:35 Arancio: yeah, not the kind of thing that I was looking for Sep 07 05:14:33 VerbalKint: yeah. That link was a joke. if you want to make it easy, just draw the button with photoshop Sep 07 05:14:46 Arancio: but I such at photoshop too Sep 07 05:15:35 VerbalKint: you will be better at Photoshop after you use it today. Think positive! Sep 07 05:18:30 Arancio: positive until the very last second before the executioner chops my head off :D Sep 07 05:19:14 VerbalKint: you can't work on your own to mobile and web applications without having some Photoshop and Illustrators basics covered Sep 07 05:19:23 Arancio: yeah, I know Sep 07 05:19:45 VerbalKint: and even if you work with a professional artist it helps when communicating with him/her Sep 07 05:20:28 VerbalKint: how is your application going? How many downloads? How many millions did you make? Sep 07 05:21:26 guys Sep 07 05:21:38 freakyy!!!! ! ! ! ! ! !!!! ! Sep 07 05:22:07 how can i find out, what image currently is set as ImageView imageView = (ImageView) findViewById(R.id.phone_icon); i have either ring_on.png or ring_off.png Sep 07 05:22:19 Arancio: lots of cash, but the plane that was supposed to bring it to me had a flat tire halfway and they're still fixing it :P Sep 07 05:22:36 VerbalKint: downloads? Sep 07 05:22:54 Arancio: none as I haven't actually marketed it to no-one yet Sep 07 05:23:18 I want to market it when I'm *sure* that it's polished enough Sep 07 05:23:37 ok Sep 07 05:23:53 can someone help me? :D Sep 07 05:23:57 I thought you would get some downloads anyway even without marketing Sep 07 05:24:15 Arancio: apparently not Sep 07 05:24:29 Arancio: didn't do ASO at all Sep 07 05:24:32 freakyy: nobody will help you Sep 07 05:24:45 freakyy: imageView.getDrawable() Sep 07 05:26:07 VerbalKint: if you pay me, I'll download it again Sep 07 05:26:47 Arancio: I'll give you 1RON, but be warned that it's ~0.25EUR :P Sep 07 05:27:13 Arancio: thank you :) Sep 07 05:27:44 freakyy: don't thank me. Change your nick. It's horrible Sep 07 05:30:21 i like my nick ;D Sep 07 05:30:31 Why do you like it? Sep 07 05:30:50 Arancio: He likes it because it sparks up out of topic conversation Sep 07 05:30:56 when using getDrawable i get something like android.graphics.drawable.BitmapDrawable@275d50cc how do i check if that is ringer_on or ringer_off resource drawable? Sep 07 05:31:38 wyoung: I'm trying to make friends Sep 07 05:32:15 freakyy: http://stackoverflow.com/questions/4818118/how-to-create-drawable-from-resource Sep 07 05:33:18 i dont wanna create one. the only thing i want is get its id or name, to check which one is used. and then just change the icon. if its ringer_on i wanna set it to ringer_off and vice versa Sep 07 05:33:26 freakyy: make sure you set the image drawable using the same objects you use to compare the current drawable Sep 07 05:33:44 freakyy: what you want or don't want is immaterial Sep 07 05:34:14 freakyy: don't be dumb. Use a flag to store the current status! Sep 07 05:34:29 * Arancio facepalms Sep 07 05:35:08 freakyy: now sorry but I have to fix my bugs. Nobody helps me Sep 07 05:35:49 ok that doesnt help but thanks anyway Sep 07 05:35:53 have fun ^ Sep 07 05:35:55 ^^ Sep 07 05:36:33 freakyy: (ImageView).getDrawable() Sep 07 05:36:34 freakyy: I gave you the solution to your problem. The way any decent programmer would do it. Sep 07 05:36:43 squ: I told it to him Sep 07 05:36:55 okey Sep 07 05:37:16 channel is flooded with crap talk, can't spot it Sep 07 05:37:21 squ: He's using the drawable of an ImageView to "store" the status of is activity/fragment Sep 07 05:37:42 Arancio: that's all right Sep 07 05:38:21 squ: which is dumb. He should use a boolean to keep the status and update the ImageView accordingly. Instead he queries the ImageView to know which is the current status Sep 07 05:38:30 Arancio: stop this please Sep 07 05:38:45 squ: what did I do wrong? Sep 07 05:38:46 don't teach programming, please just don't Sep 07 05:38:59 well, he was doing something wrong. Sep 07 05:39:10 Should I've let him do it? Sep 07 05:39:17 ok thank you very much ill try to find out how it works Sep 07 05:39:25 Arancio: you should stop this rhetorical crap talk Sep 07 05:39:26 I don't understand you guys Sep 07 05:39:49 squ: it's not rhetorical Sep 07 05:39:53 just stop it Sep 07 05:39:54 not for him Sep 07 05:39:57 stop Sep 07 05:39:58 I stopped it Sep 07 05:39:58 shut up Sep 07 05:40:06 okey, thanks Sep 07 05:40:19 I had already stopped it Sep 07 05:41:45 How to I make VideoView show the first frame of the video before it's played? Sep 07 05:42:42 first of all, SurfaceView Sep 07 05:43:00 second ExoPlayer Sep 07 05:43:24 to preview, make a snapshot/thumbnail Sep 07 05:45:21 ExoPlayer is a playback activity. Occasionally I need to play the video in my fragments. I'll use ExoPlayer another time. I'll check SurfaceView Sep 07 05:45:27 Thanks Sep 07 05:49:34 ExoPlayer is misrepresented in the android site. It's more than just a playback activity Sep 07 06:19:56 Good. I wasted one day learning how to use a piece of obsolete software Sep 07 06:20:13 Programming is 99% a waste of time Sep 07 06:20:15 why would you learn ios Sep 07 06:20:55 Ashiren: I'm talking about VideoView Sep 07 06:22:37 Ashiren: next time put a *rimshot* at the end Sep 07 06:23:33 Android API is really messed up Sep 07 06:23:57 But this is the opinion of someone that doesn't know Java and Android all that well Sep 07 06:25:32 ah Sep 07 06:27:59 Anybody used espresso, and successfully taking screenshots when running tests? Sep 07 06:28:13 took Sep 07 06:44:18 VerbalKint: how is it going with Illustrator? Sep 07 06:45:05 Arancio: just starting to install CS6 in a VM Sep 07 06:45:18 Because I was using the CS5 one Sep 07 06:47:12 Every time I try to design something, I first hate it, then love it, then some time passes and then I realize just how much it sucks :( Sep 07 06:47:26 I'm design-impaired Sep 07 06:48:09 it's normal Sep 07 06:48:41 you have to do lots of things, imitate other people, etc. Sep 07 06:49:18 backbutton_1.png backbutton_2.png backbutton_final.png backbutton_fuccccccckkkk.png ... Sep 07 06:49:21 if you start Illustrator/Photoshop and think you will make something cool and original, you will fail Sep 07 06:49:41 raoul11: ??? Sep 07 06:50:08 Arancio http://i.imgur.com/VbWttOp.jpg Sep 07 06:50:49 :-) Sep 07 06:50:56 Yeah, like that Sep 07 06:51:26 http://i.imgur.com/mSsZZK0.png Sep 07 06:51:28 raoul11: yep, that's exactly how I save my stuff :D Sep 07 06:51:49 lately iv been using google's icons Sep 07 06:52:16 saves a ton of work, no worries bout copyright infrigments Sep 07 06:56:43 How could this guys be used for a video? https://www.youtube.com/watch?time_continue=108&v=32i7ot0y78U Sep 07 06:56:50 It's painful to listen to Sep 07 06:57:18 And I have to watch him during all the video too Sep 07 06:58:46 did gradle break? Sep 07 06:59:27 Jesperhead: what does it mean? Sep 07 06:59:37 all of a sudden getting "plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE ..." in build.gradle Sep 07 07:00:22 I happened once to me too. Just upgrade Sep 07 07:00:43 It Sep 07 07:03:43 It doesnt seem to be helping Sep 07 07:04:08 not sure how to manually update it. using the IDE's link, it attempts to rebuild but continues to issue the same response Sep 07 07:06:27 breaks with what error Jesperhead ? Sep 07 07:06:39 checking log now, one moment Sep 07 07:07:34 looks like a lot of com.google.android.gms files went missing Sep 07 07:08:02 Unsupported major.minor version 52.0 Sep 07 07:08:16 targeting 24? Sep 07 07:08:20 there are a lot of errors in this log Sep 07 07:08:25 targeting/compiling Sep 07 07:08:38 yes targeting/compiling is 24 Sep 07 07:09:19 did you install 1.8? Sep 07 07:10:10 dont believe so Sep 07 07:10:31 also, set sourceCompatibility JavaVersion.VERSION_1_7 (same for targetCompat too) in compileOptions Sep 07 07:31:59 updating AS to the latest release candidate prompted a pop up to update the gradle program on launch. The issue appears to be resolved. Sep 07 07:33:55 Jesperhead: good! Sep 07 07:56:51 Does it suck or does it really suck? http://picpaste.com/pics/button-CCHwRSwu.1473234998.png Sep 07 07:58:52 VerbalKint, depends on the look of the other elements of your UX Sep 07 07:59:16 ZeNEX: but as a standalone button? Sep 07 07:59:57 VerbalKint, you will never have a single button will you? you'll have a background etc. Anyways I have seen better. Sep 07 08:00:40 ZeNEX: :D Sep 07 08:01:29 VerbalKint, anyways you might want to ask Harambe. He's pretty good in that department. Sep 07 08:07:19 ZeNEX: I'm not looking to make this awesome, just ok Sep 07 08:10:45 If you only support one Android version that is a bit older, say API 17, does it make sense to develop with API 17 or use a newer API version as target and use the support library? Sep 07 08:11:27 VerbalKint: ZeNEX is right, though. Design the whole UI. A button alone doesn't mean much. Anyway, light comes from above usually. That button is lighted from below. Sep 07 08:22:28 barq Sep 07 08:22:37 I would go for API17 Sep 07 08:22:55 I would use AS 1.0 too Sep 07 08:23:26 Why AS 1.0? Sep 07 08:23:27 barq, if you only support one version then limit yourself to that, but frankly it's a bit silly Sep 07 08:23:37 just target latest and use support lib Sep 07 08:24:03 Why is it silly if your custom device only works with one specific OS version Sep 07 08:24:26 The question is whether using supportlib and targetting something newer will give any benefit, even if you can only run it on 17 Sep 07 08:24:38 barq, if you build for a specific device, sure Sep 07 08:25:11 barq, support library does contain bug fixes and new features on older platforms Sep 07 08:25:16 (also possibly new bugs) Sep 07 08:25:30 Arancio: Why AS 1.0? Sep 07 08:26:31 barq: it was a joke Sep 07 08:31:28 So target 24 and use support instead of target 17 Sep 07 08:32:57 VerbalKint: do you have experience with CoordinatorLayout? Sep 07 08:33:18 Arancio: first time I hear about it Sep 07 08:33:41 ok. Thanks Sep 07 09:00:14 barq, you can target 17 and still use support too Sep 07 09:00:26 it doesn't matter if you only ever deploy it on 17 Sep 07 09:01:14 But I will still get bug fixes doing that as opposed to using a 4 year old api that never changes? Sep 07 09:04:30 one some things Sep 07 09:18:19 Button has enabled, but ImageButton doesn't. Sep 07 09:18:27 Wtf, google Sep 07 09:23:15 Who the hell designed this API?! Sep 07 09:24:36 That's pretty funny Sep 07 09:24:46 Does ImageButton extend from Button or something else? Sep 07 09:25:49 markyosullivan: https://developer.android.com/reference/android/widget/ImageButton.html Sep 07 09:25:53 From ImageView, DUH Sep 07 09:27:22 What do you mean it doesn't have enabled? Sep 07 09:27:51 considering enabled is a View's property... Sep 07 09:28:06 And it uses the same background as Button Sep 07 09:28:24 SimonVT: just search the page, you won't find the enabled XML option Sep 07 09:28:58 VerbalKint: I guess it doesn't list all inherited methods Sep 07 09:30:02 Doesn't seem to be listed anywhere, not on Button either Sep 07 09:30:25 shmoooz: View doesn't have enabled either Sep 07 09:30:29 But as Zharf said, it's a View attribute Sep 07 09:31:10 SimonVT: I dare you, I double dare you to search "enabled" on View Sep 07 09:31:44 https://developer.android.com/reference/android/view/View.html#setEnabled(boolean) Sep 07 09:33:22 Zharf: yeah, but I don't see the XML attribute Sep 07 09:33:38 you can code though, right? Sep 07 09:34:12 he'd rather hang a designer ;) Sep 07 09:35:35 Zharf: I'm setting .setEnabled(false) on my ImageButton too and it doesn't use the disabled state background Sep 07 09:35:56 Zharf: I can't click the disabled ImageButton, but the disabled state doesn't appear Sep 07 09:36:24 VerbalKint: you should create an image showing disabled state Sep 07 09:37:20 shmoooz: I *shouldn't* have to do hacks such as this Sep 07 09:38:07 to be honest, I've never used ImageButton for anything, but I think there was something that propagated state changes or something Sep 07 09:38:26 Have you set your own background? Sep 07 09:38:50 And if so, provide a drawable for the disabled state? Sep 07 09:40:01 SimonVT: I did provide a drawable for the disabled state Sep 07 09:41:40 pastebin your selector? Sep 07 09:41:59 Zharf: http://paste.ofcode.org/32JgB5rVhiAZPxCLtm4gzF8 Sep 07 09:45:14 I'd put the disabled state at the top and maybe remove the activated attribute from it Sep 07 09:45:31 "During each state change, the state list is traversed top to bottom and the first item that matches the current state is used—the selection is not based on the "best match," but simply the first item that meets the minimum criteria of the state." Sep 07 09:47:04 Zharf: nope, still doesn't work Sep 07 09:47:08 question about fragment lifecycle - how can i ensure that `getContext()` is not null when i call it? Sep 07 09:47:51 i am calling an Async method in `onCreateView`, and there is a `getContext()` in the callback of that method. sometimes it's null, sometimes its not Sep 07 09:48:34 or should i always call `getActivity().getContext()` ? Sep 07 09:49:52 greves: store the context in "oncreateview" into a final variable, and use that in the callback Sep 07 09:50:12 Or cancel the async task in on destroy/on detach Sep 07 09:51:33 justJanne, ok, makes sense Sep 07 09:53:04 https://developer.android.com/reference/android/widget/ImageView.html#setImageState(int[],%20boolean) Sep 07 09:53:09 No documentation X_X Sep 07 09:56:17 This is giving me headaches Sep 07 09:59:07 VerbalKint: simple Sep 07 09:59:12 Set a list of states, say Sep 07 09:59:32 {View.SELECTED}, true Sep 07 09:59:45 I can show you code where I use that Sep 07 10:00:12 VerbalKint, what can I say... "works for me" Sep 07 10:00:34 justJanne: View.SELECETED doesn't show up on my end Sep 07 10:00:39 VerbalKint, https://gist.github.com/anonymous/a52e8e55d4de83a7ad060f3db8f46e7d#file-test-xml-L8 Sep 07 10:00:59 I get a red button when I setEnabled on it Sep 07 10:01:27 Zharf: ImageButton? Sep 07 10:01:31 yes Sep 07 10:03:04 Omg... Sep 07 10:03:07 I feel like such a moron Sep 07 10:03:13 I was using the drawable directly X_X Sep 07 10:03:21 -.- Sep 07 10:03:49 Oups :D Sep 07 10:05:42 Yep, it's working Sep 07 10:05:52 I owe google an apology Sep 07 10:17:10 Guys how to completely kill the applicatoin and all its subprocesses from within the application code? Sep 07 10:17:31 why? Sep 07 10:19:55 because android allows users to create uncontrolled background processed Sep 07 10:20:33 hey, I'm new to development and I feel like my current projects are quite ugly and poorly structured, so I decided to try MVP. But most of the tutorials use a lot of libraries like dagger or rx. Are these libraries required to learn some MVP? Sep 07 10:23:35 autoattack_true: not really Sep 07 10:23:42 You can do MVP even without them Sep 07 10:23:54 They're very useful for advanced MVP, though Sep 07 10:32:13 autoattack_true: no, they're not required, but helpful Sep 07 10:32:26 there's tutorial from google about testing and mvp without dagger Sep 07 10:32:41 dont remember what they're using for networking Sep 07 10:44:56 thanks, will try that testing tutorial Sep 07 10:47:20 How can I use an so-file as a dependency in gradle? In Eclipse I compiled it in an apklib, but I can't use apklib in gradle. I would like to load the so file from the repository and avoid compiling in Android Studio. Sep 07 10:55:04 hello Sep 07 10:55:38 Error:Failed to find: com.google.android.gms:play-services:4.2.42 Sep 07 10:55:50 i get this error how can i fix that ? Sep 07 10:57:03 point: install google play services via the android sdk dependency tool Sep 07 10:57:17 Where you also install other sdk versions, emulators, etc Sep 07 10:57:43 point: did you put it into project as documentation tells Sep 07 10:58:04 my sdk is located on anndroid-studio/sdk Sep 07 10:58:46 when i try to install google play services i see there is nothing to install or update Sep 07 10:59:16 point: are you aware that that version is really old? Sep 07 10:59:36 do i need to upgrade ? Sep 07 10:59:53 point: you ought to Sep 07 10:59:55 point: https://developers.google.com/android/guides/setup Sep 07 11:00:11 point: com.google.android.gms:play-services:9.4.0 is the latest Sep 07 11:00:39 my system is compatible with this version of android studio Sep 07 11:01:30 point: are you following some tutorial on the internet (following tutorial = copy pasted) Sep 07 11:01:54 … copy pasted the values 4.2.42 Sep 07 11:02:52 compile 'com.google.android.gms:play-services:9.4.0' Sep 07 11:03:25 have you read google's instructions how to add services to android project Sep 07 11:03:46 i just used google map service Sep 07 11:04:18 and when i started project i got that error Sep 07 11:04:41 did you read the question Sep 07 11:04:52 no i didnt read Sep 07 11:05:55 i didnt read google instructions Sep 07 11:06:50 do you follow some tutorial from which you copy pasted everything? Sep 07 11:07:20 squ i didnt copy and paste Sep 07 11:08:04 i just added google play when i created project and i got that error when i was synching Sep 07 11:08:26 Yes, but where did you get that number from? Sep 07 11:08:55 point: well, is it working now? Sep 07 11:09:24 i saw that from build.gradle Sep 07 11:09:57 Error:Failed to find: com.google.android.gms:play-services:9.4.0 Sep 07 11:10:05 i see this now Sep 07 11:10:16 and i see a process Sep 07 11:10:24 have you read google's instructions how to add services to android project Sep 07 11:10:34 installing android sdk Sep 07 11:11:49 squ, im reading that Sep 07 11:11:59 i did what tutorial says Sep 07 11:12:07 but same error Sep 07 11:12:30 added all the lines correctly in different files? Sep 07 11:13:54 point: can you try doing this? Press the menu button called "Tools" at the top, go to "Tools" and click "Sync project with Gradle files" Sep 07 11:14:02 point: *go to Android Sep 07 11:14:15 Tools->Android->Sync project Sep 07 11:14:50 i added in dependencies in build.gradle Sep 07 11:15:29 VerbalKint, IM DOING THAT Sep 07 11:15:41 point: you sure you pressed it? Sep 07 11:17:19 IN PROCESS Sep 07 11:20:16 VerbalKint, i did that Sep 07 11:20:21 same error Sep 07 11:21:09 faild to find :com.google.android.gms:play-services:9.4.0 Sep 07 11:21:18 hmm Sep 07 11:21:26 point u following the signin tutorial? Sep 07 11:21:54 i added to build.gradle in app directory Sep 07 11:22:10 to both of them, right? Sep 07 11:24:01 squ, a big error Sep 07 11:24:39 i cant add compile in gradle.build in gradle directory Sep 07 11:26:17 what should i add to build.gradle in gradle directory ? Sep 07 11:26:46 you shouldnt touch anythin in the gradle directory Sep 07 11:39:15 people - for storing and retrieving json objects or java objects as json objects and not as relational structure, but read/write/update are done transactionally safe: would you recommend couchdb, berkeleydb, leveldb, unqlite, or pouchdb ? Sep 07 11:48:24 yes Sep 07 11:54:32 ok Sep 07 11:54:46 and have you had good experience wiht couchdb lite ? Sep 07 12:26:29 how would i go about enabling/disabling certain items on a listview from an activity? Sep 07 12:39:06 raoul11: in the adapter when filling the view enable/disable things Sep 07 12:39:59 from getView? Sep 07 12:44:40 hithere Sep 07 12:46:02 I have some equtations in my code - by decompiling the code - this equtation can be red in sort of way (i.e. what one might see what functions have been used) Sep 07 12:46:23 is there a way to obfuscate ie method names from Math Library? Sep 07 12:46:41 instead of Math.exp would be something completely unrelated... Sep 07 12:55:30 Ugh, anyone have any idea why most of my UI changes its language correctly when I ask it to, but the ImageButton don't? Sep 07 12:55:56 how about dexguard - shal I loook this way? Sep 07 12:56:28 VerbalKint, guess you have other lang versions for that image Sep 07 12:56:37 bolovanos: yeah Sep 07 12:57:02 bolovanos: in their respective drawable-language dir Sep 07 12:58:46 it can be anything Sep 07 12:59:07 what I would do - create new project - simulate that problem there Sep 07 13:03:04 ok - probably nobody here using dexguard (price?) - any other alternative Sep 07 13:04:00 or should I stick to "Write critical parts in C" mentioned here http://stackoverflow.com/questions/17658219/how-secure-is-proguard-against-reverse-engineering :) Sep 07 13:24:43 bolovanos: (a) mathematical expressions are usually not patentable or copyrightable, Sep 07 13:25:03 And (b) reversing c code is basically a first semester excercise any compsci student is able to do Sep 07 13:25:45 You can do whatever you want to obfuscate it, but that will just mean I'll spend half a day for fun reversing your stuff and publishing it Sep 07 13:25:54 hello Sep 07 13:25:55 (I promise you that much) Sep 07 13:26:13 Within the bounds of the law, ofc Sep 07 13:27:27 I have created a buncha bash scripts that install sdk components offline! Sep 07 13:27:41 that is, when fed with the packages Sep 07 13:28:00 And the #android-dev excellency in jurisprudence award goes to... justJanne! Sep 07 13:29:27 could I ask you take a look at it? Sep 07 13:31:19 VerbalKint: I could cite you the relevant sections of the laws of the jurisdiction where I live, but the point I'm trying to make with that every time I say it is that simply, all the obfuscation you spend on your app, is wasted time Sep 07 13:31:25 People will reverse it anyway Sep 07 13:31:32 justJanne: :D Sep 07 13:31:42 If you want to do secret stuff, put it on your server Sep 07 13:32:08 If it's on the users device, and worth something, someone will extract it soon anyway. Sep 07 13:32:30 (unless you are using some technology like intel SGX but that seems to be in the future) Sep 07 13:32:30 If it's not worth protecting, you wasted time you could have better spent fixing bugs and developing features Sep 07 13:32:50 Well, even if you do TrustZone and stuff, people can just emulate your code Sep 07 13:33:28 justJanne: several large gaming publshers have invested billions of dollars and countless man-hours in to making DRM that can't be reverse engineered Sep 07 13:33:37 (it didn't work out so well for them :P ) Sep 07 13:33:44 Into drm that takes a few weeks to he reversed ;) Sep 07 13:33:48 the hardware is just not there yet Sep 07 13:34:06 once we'll have intel SGX on every desktop computer things might be different Sep 07 13:34:13 Even the best protected DRM of all time, the digital cinema package, used for releases given to cinemas, was broken last week Sep 07 13:34:20 justJanne: i know :) Sep 07 13:34:25 It's true. I haven't found a video game that can't be pirated. :D Sep 07 13:34:40 DRMs purpose is to delay people from finding your algorithm, or code Sep 07 13:35:08 it's sad that they invest so much in DRM, when it inconveniences actual customers, and doesn't do a darn thing to the people it's supposed to Sep 07 13:35:11 that might be true for now but as soon as you'll have to RE your CPU to bypass the DRM it gets a lot harder Sep 07 13:35:19 So, bolovanos, I'd suggest just doing the calculation on the server Sep 07 13:35:25 TheSchaf: not reallym Sep 07 13:35:38 I can always take your code, and execute it on paper, by hand Sep 07 13:35:47 no, because the cpu has a cert Sep 07 13:36:00 and you cant extract that unless you have some super duper hw Sep 07 13:36:01 Well, I can fake my own cert Sep 07 13:36:10 Unless you require a cert signed by intel Sep 07 13:36:14 yeah Sep 07 13:36:14 if i can't read your code, i'm not going to run it either Sep 07 13:36:15 thats the idea Sep 07 13:36:37 In which case I go to my uni, and decap the chip, and extract the key from the chip Sep 07 13:36:46 from a current i7? :) Sep 07 13:36:50 you need more than uni for that Sep 07 13:36:57 depends on the uni Sep 07 13:37:08 We're designing our own processors for some applications ;) Sep 07 13:37:17 yeah so did I Sep 07 13:37:27 but a 12 layer i7 with 14nm is whole other level ;) Sep 07 13:37:32 and i can guarantee you if there's any key in the processor, it's going to be extracted and leaked Sep 07 13:37:45 the key is unique to your processor Sep 07 13:37:50 Yeah, but the key is usually still easier to extract Sep 07 13:38:01 and its not easy to extract it (as it is a combination of several things and microcode stuff) Sep 07 13:38:10 Anyway, for mobile, all that doesn't matter much Sep 07 13:38:16 you know, masking keys, efuses, microcode versions, etc Sep 07 13:38:28 TheSchaf: so, what, it only runs signed code, or it decrypts code? Sep 07 13:38:29 You'll still have to be able to run on a 2 year old galaxy s5 Sep 07 13:38:57 it would be rather annoying to have to rely on some random person who sold you software to encrypt their code for every cpu you own Sep 07 13:39:01 zinx: no, the proc sends its pubkey to netflix, Sep 07 13:39:04 zinx: intel SGX can generate report to a 3rd party that code is executed on a SGX enabled processor and unmodified Sep 07 13:39:14 Netflix sends the aes key encrypted with that back to the proc, Sep 07 13:39:25 but nothing keeps you from then sending encrypted stuff to the host once you have verified that Sep 07 13:39:26 And the proc can decrypt the netflix stream Sep 07 13:39:53 and how does it manage to state that it's unmodified securely? Sep 07 13:39:55 TheSchaf: at that point, though, that'd likely be illegal Sep 07 13:40:03 zinx: the key is signed by intel Sep 07 13:40:07 That's the idea Sep 07 13:40:15 zinx: it generates a report that can be verified using some intel service Sep 07 13:40:16 by intel, or by the processor? Sep 07 13:40:25 By intel Sep 07 13:40:34 Intel signs a key, burns it into the prix Sep 07 13:40:35 *prox Sep 07 13:40:40 *proc Sep 07 13:40:42 plus they have some kind of group cert thing i never looked into it Sep 07 13:40:47 But qualcomm has done the same before... Sep 07 13:40:50 yeah i don't see how this can work Sep 07 13:40:53 justJanne, third time lucky? :) Sep 07 13:40:55 And recently qualcomms master key was leakes Sep 07 13:40:57 *leaked Sep 07 13:40:59 from a cryptography standpoint Sep 07 13:41:05 wellll qcoms master key wasn't quite leaked Sep 07 13:41:07 zinx? Simple Sep 07 13:41:12 unless there was something I didn't see Sep 07 13:41:14 Pub/priv keypair in proc. Sep 07 13:41:20 Pub key is signed by intel. Sep 07 13:41:23 Intel can't verify properly, or the processor has a key that can be extracted Sep 07 13:41:24 During production Sep 07 13:41:25 it's one or the other Sep 07 13:41:33 extracted how? Sep 07 13:41:38 The proc has a key that can be extracted Sep 07 13:41:44 But it's valid for only one proc Sep 07 13:41:52 could be extracted if the technology was there for that Sep 07 13:41:52 And intel can put out a revocation Sep 07 13:42:04 so intel can brick my processor on a whim now, great Sep 07 13:42:12 Widevine had a vuln in the API which let untrusted code run in the TEE and could extract a number of device-unique keys (like all the stuff for FDE) Sep 07 13:42:40 all of the SGX stuff is implemented in microcode directly Sep 07 13:42:46 but maybe there is flaws in there, who knows Sep 07 13:42:53 (not to mention it sounds like all of this will require 24/7 reliable internet connection to Intel's servers) Sep 07 13:42:56 usually that stuff lives in the TPM module, which is protected by not running commodity code, and being moderately tamper resistant. They've been cracked - look for chris tarnofsky's presentation in 2010 from BHDC Sep 07 13:43:16 nah TPM has nothing to do with that Sep 07 13:43:22 (tl;dr he decapped parts of a tpm w/out exposing the light sensors, then drilled into the silicon cells and re-wired part of the instruction bus using a focused ion beam) Sep 07 13:43:49 which let him hammer the address line during the clock scramble instruction, killing hte clock scramble and allowing monitoring the chip Sep 07 13:43:53 which allowed him to extract keying data Sep 07 13:43:57 TheSchaf: TPM has everything to do with that Sep 07 13:44:08 The entire SGX will live in the TPM Sep 07 13:44:16 no Sep 07 13:44:18 the TEE on qcom, and it sounds like the SGX stuff, is basically the same funcitonality as the TPM Sep 07 13:44:20 Yes Sep 07 13:44:24 TPM is an additional chip Sep 07 13:44:26 it has nothing to do with SGX Sep 07 13:44:26 it sounds like a "feature" i will specificly never use Sep 07 13:44:29 Yes, it does Sep 07 13:44:40 The entire verification will run on the TPM Sep 07 13:44:45 zinx: the TPM is fun Sep 07 13:44:46 zinx, so on mobile, all of this is part of the trusted boot order and the signed root partition Sep 07 13:44:52 An entire seperate processor, Sep 07 13:44:57 With JVM, Sep 07 13:45:00 dragorn: yes, that works different Sep 07 13:45:09 Graphics audio and input stack Sep 07 13:45:16 Oh, and network stacj, Sep 07 13:45:22 you mean the IME Sep 07 13:45:27 TPM is just a shitty little addon chip Sep 07 13:45:30 Can display overlays on screen, capture inputs, etc Sep 07 13:45:41 The IME runs on the TPM on intel chips Sep 07 13:45:46 no Sep 07 13:45:47 I have made a pokemon app.I tried to publish it but couldn't due to copyright issues.If i change the artwork of pokemon to one's resembling pokemon(like my own artwork) but not exact pokemon images.Will it be a copyright issue even then?And also can i use pokemon names and hp and other things without copyright? Sep 07 13:45:51 TPM is a addon chip with 10 registers Sep 07 13:45:51 SGX looks like it's just another TEE Sep 07 13:45:52 They're implemented on top of each other Sep 07 13:45:55 designed by the TCG Sep 07 13:46:19 The TPM implementation intel provides is emulated on the same system as the IMR Sep 07 13:46:21 *IME Sep 07 13:46:25 In recent chips Sep 07 13:46:38 yeah, so TPM runs on IME maybe Sep 07 13:46:41 but not IME on TPM Sep 07 13:46:44 or SGX on TPM ;) Sep 07 13:46:44 Just like low-power ethernet also runs on there Sep 07 13:46:50 Well, they all run on the same addon chip Sep 07 13:47:01 no, SGX is just in the processor itself Sep 07 13:47:02 I usually just call that entire thing TPM Sep 07 13:47:03 not in the IME Sep 07 13:47:07 justJanne, so SGX is just intels TEE. Does it need intel to sign any code that runs in the TEE-ish environment? Sep 07 13:47:32 When promoting an APK from Beta > Live, does that happen immediately? Sep 07 13:47:33 dragorn: correct, but it can also be used to verify userlevel code Sep 07 13:47:53 you can sign your own SGX code Sep 07 13:48:07 Yes, as said Sep 07 13:48:37 SGX is a process in the IME used to verify kernel and user mode code Sep 07 13:48:46 That code tuns outside the IME Sep 07 13:48:56 SGX has nothing to do with the IME Sep 07 13:48:58 But verification and auth is in the IME Sep 07 13:49:05 because the IME lives in the chipset Sep 07 13:49:11 and SGX is purley implemented in the processor itself ;) Sep 07 13:49:25 justJanne, any idea offhand how the user code would find the known-good signature to mtch? Sep 07 13:49:56 The IME nowadays also lives in the processor, you know that? Sep 07 13:49:57 the idea about SGX is that the trusted computing base for it is just the CPU itself Sep 07 13:50:03 Only in the xeon series it doesn't Sep 07 13:51:12 its part of the chipset, not the cpu Sep 07 13:52:33 I'm telling you, if you decap an i7, you'll find a coprocessor for the IME Sep 07 13:52:55 But that all doesn't matter much, as for now, DRM is useless Sep 07 13:53:26 it doesnt make sense to put it into the cpu because of what it is used for (aka bootstrapping the cpu) Sep 07 13:53:35 the IME powers long before the CPU itself even has power Sep 07 13:53:42 Not at all Sep 07 13:53:45 but whatever Sep 07 13:53:48 TheSchaf: there's a number of different processors inside the 'cpu' Sep 07 13:53:51 Seriously, please research this Sep 07 13:54:03 The IME is on chip in the latest series Sep 07 13:54:26 I can show you my i7-6700, and the IME on chip Sep 07 14:00:27 that would surprise me Sep 07 14:03:06 Then you haven't followed the tech in the past 2 years, likely Sep 07 14:04:27 so point me to some proof :P Sep 07 14:05:22 if I want to setup a computer that will just build my AS project that implements Gradle for building, I know I need to have the Android SDK installed, is there a specific type of Gradle I need to install? Or does that come in with the SDK? Sep 07 14:05:29 to my knowledge it sits in the PCH until today Sep 07 14:10:11 who is using realm in here ? Sep 07 14:15:56 It's becoming increasingly clear to me that to be proficient in Android programming you have to sacrifice your firstborn to the Devil Sep 07 14:20:31 Is there a "reload resources" method for Views? Sep 07 14:20:42 Or reload locales? Sep 07 14:21:31 My ImageButton just won't change its locale while the other views do Sep 07 14:26:12 I'm gonna make the Oklahoma city bombing look like a firecracker when I'll snap and firebomb Google's offices. They're lucky I'm not in the US. Sep 07 14:28:14 your textviews are setting the correct locale? Sep 07 14:29:46 dsardari: yeah Sep 07 14:31:15 dsardari: ImageViews too Sep 07 14:34:38 Hmm https://code.google.com/p/android/issues/detail?id=63226 Sep 07 14:36:09 My laptop's battery gets drained way, way too quick when using a virtual device, and same when using my phone since it's trying to charge my phone while plugged in... anyone know if there's another way? Bluetooth, or having an APK sent or something? Sep 07 14:36:40 thebag: It's possible to use ADB over Wi-Fi Sep 07 14:37:03 Haven't used it myself, but a quick google query will tell you if it's something you could use Sep 07 14:37:48 It requires root Sep 07 14:38:06 pduin: thank you, I'll check it out Sep 07 14:38:10 oh, don't have root... Sep 07 14:38:54 thebag: https://stackoverflow.com/questions/14358882/connecting-adb-using-wifi-for-non-rooted-device Sep 07 14:39:03 Hmm. Maybe it works non-rooted on some devices. Sep 07 14:39:04 Does a USB cable work if you cut the two power lines but leave the data lines intact? Sep 07 14:39:55 pduin: I have this 4.2.2 tablet and it doesn't have the ADB wifi option like how my rooted phone has Sep 07 14:39:56 pduin, you could cut the power and leave the ground+data Sep 07 14:40:41 Well, cutting the power line on a USB cable sounds like a solution then Sep 07 14:40:47 it may work for devices which are self-powered, it wouldn't work for those that are bus powered, and youv'e got a moderate chance of confusing the hell out of the device. It shouldn't damage anything, but it wouldn't be 100% Sep 07 14:41:56 I'm unconvinced it's charging your phone that's killing your battery though, both eclipse and android studio are pretty heavy CPU hogs. Have you tried battery saver mode in AS? Sep 07 14:42:37 It turns off autocomplete, lint checks, and a number of other stuff which churns the CPU pretty heavily Sep 07 14:44:35 VerbalKint: Wow, that's cool. Totally worked Sep 07 14:45:07 thebag: you have the ADB over wifi option on your un-rooted device? Sep 07 14:45:24 Haha. No sarcasm, it actually worked. Yeah, not rooted. Sep 07 14:45:27 adb over wifi has been non-root since... 4? Sep 07 14:45:35 Quite a while anyhow Sep 07 14:45:44 dragorn: not on my devices Sep 07 14:45:49 Thanks VerbalKint Sep 07 14:45:49 And all 4+ Sep 07 14:46:12 thebag: err, pduin suggested it first so you should thank him :D Sep 07 14:46:39 VerbalKint, it's been built into adb for a long, long time. it's even a command in adb to put it into tcp mode automatically and kicks the device over if it's connected over usb. Sep 07 14:46:39 Yes, of course, thank you pduin Sep 07 14:47:04 realm or sqlite ? Sep 07 14:47:32 has anyone of oyu had experience with both of them ? Sep 07 14:48:03 VerbalKint, stock N at the moment, 'adb tcpip 555' 'adb connect foo:5555' is all you need; this is on N, but i've used it for years on stock unrooted stuff Sep 07 14:48:12 er, 5555 on the first command, obviously Sep 07 14:49:17 dragorn: unable to connect to 192.168.0.130:5555: Connection refused Sep 07 14:49:20 FWIW the current method is also documented in the AS documentation, https://developer.android.com/studio/command-line/adb.html Sep 07 14:49:30 dragorn: 4.2.2 tablet Sep 07 14:49:40 VerbalKint, did you connect over usb first and put it in tcp mode, and pick the right ip? Sep 07 14:50:12 dragorn: error: no devices/emulators found when I do adb tcpip Sep 07 14:50:18 i don't have a 4.x device over here and I'm not going to walk over the office, but i definitely used it on 4.x stock devices too. Sep 07 14:50:30 regardless, it works for the guy who didn'tw ant to charge, so, there's a win Sep 07 14:51:58 the non-root options were added at least in 2014; beyond that my interest is waning :) Sep 07 14:52:38 dragorn: yeah, I did all the steps including doing it with the tablet connected Sep 07 14:53:14 dragorn: oh wait, it seems that it works now :O Sep 07 14:53:33 Damn, wrong again Sep 07 14:53:37 I'm on a roll today Sep 07 14:55:33 ha. at least you're wrong in a way that's useful to you in the future? :) Sep 07 14:56:35 dragorn: guess so :D Sep 07 15:02:39 How is adb provided? Is there a socket, a block in /dev or something? Sep 07 15:07:15 morning Sep 07 15:13:47 hi Sep 07 15:14:06 I'm looking for some help with AndroidStudio on ubuntu LTS 14. KVM is installed but AndroidStudio doesn't find it. Sep 07 15:14:35 As emulator seems to be in 64 bit by default I cannot run it under my 32 bit linux Sep 07 15:16:32 I'm trying to googling but cannot find exactly why the latest version of the AndroidStudio doesn't find kvm. I have run kvm-ok and everything is ok Sep 07 15:19:38 switch to a 64 bit linux Sep 07 15:19:50 the toolchain is going to 64bit Sep 07 15:20:16 I know but can't Sep 07 15:20:40 I don't trust linux 64 bit yet and this is my working computer Sep 07 15:20:46 wat Sep 07 15:20:51 So I won't take the risk Sep 07 15:20:55 I dont trust 32bit :P Sep 07 15:20:56 don't trust? o_O Sep 07 15:21:06 sounds like an ubuntu problem. Sep 07 15:21:11 no Sep 07 15:21:12 oh look, it is Sep 07 15:21:12 Had to much problem last time I have tried 64 bit linux Sep 07 15:21:16 no problem on ubuntu with 64bit Sep 07 15:21:26 how many years was that ? 10 ? Sep 07 15:21:32 3 Sep 07 15:21:38 clibois: was that in 2000? :P Sep 07 15:22:01 what problem did you have? out of curiosity Sep 07 15:22:07 i've been using 64-bit debian since i could. even ndiswrapper and 32-bit browser plugins worked Sep 07 15:22:19 i run sid, by the by Sep 07 15:22:27 this was before it even had real multiarch. Sep 07 15:22:31 waaaay before Sep 07 15:22:46 I'm suprised that 32bit is still available for x86 platform Sep 07 15:22:57 Well my problem was specific with a vpn based on smart card that only worked on java 32 bit on linux... Sep 07 15:23:18 run it with your own JRE instead of their bundled one >_< Sep 07 15:23:21 o.O Sep 07 15:23:28 then you should download 32bit java and use it with that one thing Sep 07 15:23:52 how many ram do you have ? Sep 07 15:24:09 *how much Sep 07 15:24:19 I tried a lot of thing that didn't worked. Anyway I'm not here to have support for 64 bit ^^. Sep 07 15:24:20 clibois: switch to 64bit or we'll mock you forever and forget about your question! :P Sep 07 15:24:35 he had a question? Sep 07 15:24:44 ;) Sep 07 15:24:51 was it how to improve intelligence enough to install 64-bit linux? Sep 07 15:24:52 Couldn't rember ... Sep 07 15:25:02 clibois: I dont think anyone is using 32bit here now Sep 07 15:25:25 and virtualisation is mostly done on 64bits Sep 07 15:25:28 I do have a 32 bit computer at home Sep 07 15:25:29 clibois: i actually have x86, amd64, and armhf binaries Sep 07 15:25:35 clibois: i can run the armhf binaries. Sep 07 15:25:46 so there you go ;) Sep 07 15:25:53 I tought kvm was the bridge used to run 32 bit in 64 bit no ? Sep 07 15:25:59 clibois: no Sep 07 15:26:09 qemu is the one for armhf on amd64 though ;D Sep 07 15:26:20 clibois: the kernel natively runs 32-bit stuff Sep 07 15:26:39 clibois: you can even use a 64-bit kernel with an entirely 32-bit userland. Sep 07 15:26:50 Don't tell me I will have to do it on windows 64 bit ;-) Sep 07 15:26:56 windows is stupider. Sep 07 15:26:59 by a large margin. Sep 07 15:27:05 I know was joking Sep 07 15:27:46 Don't want to reinstall my whole working setup tough... Sep 07 15:28:26 Thank you for your frank answer ^^ Sep 07 15:28:54 you need to deal with bad decisions you made when you were younger ;) Sep 07 15:29:18 It wasn't bad since it allows me to work at home a couple of time ^^ Sep 07 15:29:39 meth wasn't bad since it allowed you to work without sleeping for a week Sep 07 15:29:45 shame about the rotten teeth Sep 07 15:30:02 glad I'm not the only one Sep 07 15:30:26 clibois: I was joking, dont worry ;) Sep 07 15:31:09 no problem I wasn't shocked by any comment Sep 07 15:31:16 This is friggin ridiculous; the ImageButtons update the language only sometimes Sep 07 15:33:31 Is there some method that I can use to reload the ImageButtons? Sep 07 15:33:44 As in a hack, not a feature Sep 07 15:34:01 Force it to unload the current image and reload it Sep 07 15:36:13 I'm getting to old for hunting bugs. I'm 2 years away from retirement, goddamn it. Sep 07 15:36:17 VerbalKint: I have no idea what you want to do Sep 07 15:36:31 imagebuttons are just imageviews, just replace the image as normal... Sep 07 15:37:12 any idea how to take screenshots in android studio so that the upper bar of phone that's showing clock/battery etc is not showing? Sep 07 15:37:41 Thats gonna look weird if you frame it Sep 07 15:37:45 I always make screenshots with system tool and mark the area I want to take Sep 07 15:37:56 it's faster Sep 07 15:38:10 like your computers screenshot tool? Sep 07 15:38:18 shareX Sep 07 15:38:25 best of the best. Sep 07 15:39:06 meh Sep 07 15:40:44 orbyt_: yes Sep 07 15:41:08 on mac it's cmd+shift+4 Sep 07 15:41:18 works quickest for me Sep 07 15:41:22 not gonn abe high res at all Sep 07 15:41:26 gonna be* Sep 07 15:41:51 agree, but doesnt have to be in my case Sep 07 15:42:05 I just put it in github PR if someone wants to see new design Sep 07 15:56:35 any idea how can i do a fresh install of my app from android studio when using emulator? Sep 07 15:57:33 murosai: the same as normal app Sep 07 15:58:03 or you're saying that you dont have access to gui ? Sep 07 15:58:14 then Sep 07 15:58:17 i mean when i deploy it to emulator it still has old data Sep 07 15:58:19 adb shell am start -a android.intent.action.DELETE -d package: Sep 07 15:58:34 hi Sep 07 15:58:42 i deploy by clicking the run Sep 07 15:59:04 so remove app like on normal phone Sep 07 15:59:13 drag it to 'uninstal' on top Sep 07 15:59:33 hi all. im trying to learn android app development. im currently learning how to make a widget and let it work. ive copytyped all code but still this doesnt work: https://gitlab.com/freakyy85/apps-project-one/tree/master Sep 07 15:59:50 can anyone help me get the widget to show up under widgets? Sep 07 15:59:52 when i run android studio it is stuck in Gradle:Resolve dependencies :app_debugCompile Sep 07 16:00:00 what should i do ? Sep 07 16:00:02 so no faster way to do it from studio? Sep 07 16:01:25 justJanne, thank you for you opinion - it sounds plausible, ad server sided computation - not in my case, app must be capable running offline Sep 07 16:01:52 well there is a plugin Sep 07 16:01:54 it seems Sep 07 16:02:46 in that case, you can try using C-code to make reverse engineering harder, Sep 07 16:02:57 but it’ll likely be done anyway (and be less performant) Sep 07 16:06:51 hey justJanne ;D i got my problem from earlier fixed. now im having a new problem. my widget wont show up under widgets so i cant add it. can you help me? it's just for learning. u can find the complete code here: https://gitlab.com/freakyy85/apps-project-one/tree/master Sep 07 16:13:05 Anyone know how to change the font size in the Properties panel in Android Studio? Sep 07 16:13:47 freakyy: es wird nicht unter widgets auftauchen, du musst es manuell im XML hinzufügen Sep 07 16:14:25 also, in der Aktivität oder dem Fragment, wo du das Widget hinzufügen willst, auf XML Editor unten klicken, und dann manuell das reinschreiben Sep 07 16:15:31 justJanne: mein problem ist, ich hab alles gemacht was da steht was ich tun soll um das widget funktionsfähig zu machen aber es funktioniert nicht. was bitte soll ich vergessen haben? Sep 07 16:16:42 ah, sorry Sep 07 16:16:53 hab das komplett falsch verstanden Sep 07 16:16:57 okay, nochmal von vorne Sep 07 16:16:59 hm Sep 07 16:17:27 thebag: font size of wht Sep 07 16:17:29 what* Sep 07 16:19:17 ich mach gerade Android App Entwicklung für Dummies durch. Nur leider funktioniert das so nicht. Evtl. liegt es an https://gitlab.com/freakyy85/apps-project-one/blob/master/silentmodetoggle/src/main/res/xml/widget_provider.xml#L6 Sep 07 16:19:18 freakyy: ansonsten lies dir nochmal https://developer.android.com/guide/topics/appwidgets/index.html durch? Sep 07 16:19:56 Ja, freakyy, das Buch, da hast du Glück wenn irgendwas geht Sep 07 16:20:12 naja die app funktioniert ja nur das auftacuhen des widgets nicht Sep 07 16:20:17 das ist noch von 2011, fast alles, was da drin steht, wird nicht mehr funktionieren – Android hat sich sehr verändert seitdem Sep 07 16:20:18 orbyt_: http://i.imgur.com/3fv91B7.png the Properties panel on the right... I can't even read the property names because the font is so big Sep 07 16:20:36 freakyy: ich hab dir die Dokumentation von Google zu App Widgets mal verlinkt, guck die mal durch Sep 07 16:20:40 justJanne: hm ok und welches buch könntest du empfehlen? Sep 07 16:21:06 Ich würde kein Buch direkt empfehlen, ich würde von Google den Udacity Kurs (auf English) empfehlen Sep 07 16:21:16 the fonts not small at all Sep 07 16:21:39 you may be able to adjust what it shows..but just use the text editor regardless Sep 07 16:21:39 freakyy: https://developer.android.com/guide/topics/appwidgets/index.html#MetaData Sep 07 16:21:50 Das ist, wie so die Appwidget-Provider config normal aussehen soll Sep 07 16:21:53 justJanne: kannst du mir den udacity kurs verlinken? Sep 07 16:22:02 ich würde mal vermuten, du brauchst da android:widgetCategory Sep 07 16:23:02 https://www.udacity.com/course/android-development-for-beginners--ud837 https://www.udacity.com/course/developing-android-apps--ud853 Sep 07 16:23:16 Die sind beide so die ersten, die ich so sehe, Google hat da ein paar Dutzend zusammengestellt Sep 07 16:23:47 was heisst nanodegree? Sep 07 16:23:58 danke ;D Sep 07 16:24:09 Das ist so ein Marketingbegriff für die zusammengestellten Kurse zusammen Sep 07 16:24:52 aber die Kurse sind alle recht minimal Sep 07 16:25:02 Vieles davon wirst du auch im Buch schon so gesehen haben. Sep 07 16:25:20 Das meiste wissen, so mit modernem Android, kommt eher von Erfahrung? Sep 07 16:25:45 hm ok danke Sep 07 16:26:33 Wenn du später kompliziertere apps bauen willst, solltest du dich auf jeden Fall mit Dagger auseinandersetzen für Dependency Injection Sep 07 16:26:54 Bibliotheken, die für dich sehr hilfreich sein werden, werden AppCompat, ButterKnife, Retrofit, etc sein Sep 07 16:27:42 freakyy: Wir haben bei uns an der Uni was dazu gemacht, ich hab glaub ich die Liste an Sachen, die man sich angucken sollte, noch irgendwo Sep 07 16:27:51 (Ich hab die ja mitgeschrieben :D) Sep 07 16:28:16 hey all, i am in need of some direction Sep 07 16:28:24 basically i have an image provided by our designer Sep 07 16:28:45 need to add this to a button. When the user presses the button the "selected" state has a circle show behind the image Sep 07 16:28:50 top is cut off a but Sep 07 16:28:51 *bit Sep 07 16:28:52 justJanne: oh ja das wäre nett wenn du mir das geben könntest :) Sep 07 16:28:58 da wäre ic wirklich dankbar :D Sep 07 16:29:13 working with layer-list - and I have the background circle fine, but when I drop the image, it takes the full width of the image button Sep 07 16:29:29 am i going about this wrong or is there a way I can take finer control over the image drawable in the layer list Sep 07 16:30:03 this (http://idunnolol.com/android/drawables.html#layer-list) would seem to indicate the options to control the sizing are limited Sep 07 16:30:04 help please Sep 07 16:30:08 freakyy: find ich jetzt grad nicht Sep 07 16:30:20 justJanne: ok schade trotzdem danke ;D Sep 07 16:30:43 justJanne: willst du meine eMail, dann kannst du mir schreiben, oder schreib mir einfach ne pm (nick aufschreiben) bin fast immer connect3ed Sep 07 16:30:46 benutez weechat ;D Sep 07 16:31:01 justJanne: mal ne frage. bist du evtl. anner linux shell auf nem richtigen server interessiert? Sep 07 16:31:13 gratis von mir ;D Sep 07 16:31:13 oh Sep 07 16:31:23 freakyy: ich hab selber mehrere Root-Server, ne danke ;) Sep 07 16:31:27 oh ok ;P Sep 07 16:31:39 Guck dir aber unbedingt das hier an: http://developer.android.com/training/index.html Sep 07 16:31:44 ohh Sep 07 16:31:51 just found this: http://stackoverflow.com/questions/19357485/android-xml-layer-list-how-to-position-the-top-layer Sep 07 16:32:02 Und für das UI, guck dir mal http://www.google.com/design/spec/what-is-material/ an Sep 07 16:32:10 Damit du dich auch daran gewöhnst Sep 07 16:32:15 requery (an ORM lib) has a pretty nice interface but it's slow, very slow Sep 07 16:32:33 und ich bin btw auch immer connected – ich benutze Quassel, und entwickel sogar an dem mobilen Client ;) Sep 07 16:32:46 justJanne: hm, ich glaube das kan ich erst später lernen, jetzt muss ich erstmal die basics verstehn und nicht schon design Sep 07 16:32:59 justJanne: ah ok ^^ Sep 07 16:33:01 Schreib dir aber die links einfach auf Sep 07 16:33:08 I think chat rules says English, not German :> Sep 07 16:33:14 ich hab die links in meine bookmarks gemacht Sep 07 16:33:36 the dev.android.com/training link is where I’d recommend you’d start, though Sep 07 16:34:33 ich verstehe nicht (one of the very few phrases i know in german) Sep 07 16:35:17 but you should really bookmark a set of awesome libs that’ll make your life later on easier, like Dagger2, ButterKnife, AppCompat, Retrofit, DBFlow, penz’ MaterialDrawer, etc. Sep 07 16:35:34 And bookmark androidarsenal.com, it’s useful to find lots of useful libs Sep 07 16:39:27 When the screen rotates, my activity re-loads itself. This is something I do not want. I solved it by using "android:configChanges="orientation|screenSize">" but I read it's bad when using fragments. Why is this the case? Sep 07 16:39:32 never heard of DBFlow ;) Sep 07 16:39:55 minas114: For one thing, just by setting that flag doesn’t mean that your activity won’t be reloaded Sep 07 16:40:18 DBFlow is awesome, fast, and uses simple annotation processing, so you don’t need a precompiler Sep 07 16:40:29 s73v3r, please explain. Sep 07 16:40:35 ah, I've used it once Sep 07 16:40:47 there are several other things that cause the activity to be reloaded besides rotation Sep 07 16:40:48 dont remember what problem I had Sep 07 16:40:52 that flag doesn’t cover all of them Sep 07 16:41:42 minas114: read this: http://code.hootsuite.com/orientation-changes-on-android/ Sep 07 16:42:13 if you want to cover all, just set 0xFFFFFFFF Sep 07 16:42:17 maybe it was beta at that time Sep 07 16:42:58 good that I can run async and sync Sep 07 16:43:18 ugh, I've been so exhausted lately, can't remember simple terms Sep 07 16:43:26 layer-list you are kiling me Sep 07 16:43:34 i need to size one of the drawables Sep 07 16:43:43 well actually Sep 07 16:43:45 pfn: know that feeling Sep 07 16:43:48 there are many ways I can do this, but gah Sep 07 16:44:54 Good morning Sep 07 16:45:13 finally remembered the term I was trying to find "convention" Sep 07 16:45:13 or good night, depends where you are ;) Sep 07 16:45:13 anyone here use android studio? Sep 07 16:45:18 no one uses android studio Sep 07 16:45:19 nope Sep 07 16:45:20 everyone uses notepad Sep 07 16:45:29 oh. I use NetBeans Sep 07 16:45:29 kk same Sep 07 16:45:31 pfn: that explains why you have been so mean with people here and with me in particular. But it's understandable. We forgive you and wish you to be better Sep 07 16:45:37 justJanne: i first have to learn the basics now ... before i start to get thousands of links ;D Sep 07 16:45:47 but i bookmarked all links up 2 material design link Sep 07 16:46:16 freakyy: just put the others into a wunderlist or so Sep 07 16:46:19 Arancio: I dont think he's mean but.. Sep 07 16:46:23 you’ll use them later on Sep 07 16:46:31 wow. i was surprised that work :) Sep 07 16:46:54 any of you guys know how to edit the default action bar in android studio? Sep 07 16:47:04 probablyarobot: do you use AppCompat? Sep 07 16:47:15 if yes, just put an AppBarLayout and a Toolbar into your activity layout, Sep 07 16:47:21 i have their themes available yes Sep 07 16:47:21 do setSupportActionBar, Sep 07 16:47:28 and manually modify that Sep 07 16:47:37 don't use the designer to edit actionbar Sep 07 16:47:44 with that, you can put whatever you want into your actionbar – as it’s now just a view Sep 07 16:47:55 dont ever use designer Sep 07 16:48:00 yeah i can't. i've been pulling my hair out trying to figure out how to edit it with the designer Sep 07 16:48:03 my own advice Sep 07 16:48:06 can't drag and drop anything to it Sep 07 16:48:09 btw, freakyy ^ don’t ever use designer Sep 07 16:48:10 won't let me Sep 07 16:48:31 so i make my activity extend appbarlayout? Sep 07 16:48:41 appcompatactivity Sep 07 16:48:43 actually I'm suprised when designer shows me actual content and not exceptio Sep 07 16:48:44 sorry. brand new to android dev Sep 07 16:48:45 n Sep 07 16:49:15 make it extend appcompatactivity? Sep 07 16:49:16 s73v3r, Thanks, I'm reading it. Seems that the android guys have really messed this one, because I see a lot of applications which are portait only. Sep 07 16:49:17 probablyarobot: why dont you generate few samples from AS and see what's differen Sep 07 16:49:35 minas114: a little of that, but mostly because developers are lazy Sep 07 16:49:55 it's not because developers are lazy Sep 07 16:49:59 it's because designers are lazy Sep 07 16:50:00 ohh good idea Sep 07 16:50:17 making an app work well on portrait it hard Sep 07 16:50:22 designers generally create designs in portrait and don't make any specifications for how it should appear/behave in landscape Sep 07 16:50:29 most designers I’ve worked with are more than willing to adapt a design for landscape Sep 07 16:50:33 making it work well in portrait, landscape, tablet portrait, tablet landscape is horrible. Sep 07 16:50:33 how many of you have degrees in Cs? Sep 07 16:50:35 CS*? Sep 07 16:50:43 probablyarobot: also, google docs for android are good for navigation drawer and toolbar Sep 07 16:50:44 just that the developers aren’t wanting to take the effort to handle rotation Sep 07 16:50:48 willing, sure, have time to fully spec out a landscape design, not really Sep 07 16:50:49 i've never counted Sep 07 16:50:58 that's pretty much been the case of most of the large scale apps I've worked on Sep 07 16:51:06 landscape being added much later in the development cycle Sep 07 16:51:10 justJanne: i just saved it at google keep ;D Sep 07 16:51:13 ^ this Sep 07 16:51:13 s73v3r, it should be easier though. Sep 07 16:51:27 our app still looks bad on tablet Sep 07 16:51:35 but that's somehow google's fault Sep 07 16:51:36 agreed; on iOS rotation doesn’t destroy the world Sep 07 16:51:48 lots of apps on ios don't rotate either :P Sep 07 16:51:52 ok thanks justJanne Sep 07 16:52:05 obviously, it's not because of developer laziness Sep 07 16:52:05 since tablets are not that popular Sep 07 16:52:16 and there it's "easy" to deal with rotation Sep 07 16:52:20 I’ve been working for over a year now on an app, and yet I’ve still no support for landscape, Sep 07 16:52:27 and tablet is just... kinda working? Sep 07 16:52:34 I’ve seen it many times before, too Sep 07 16:52:43 And tablet is always supported even worse Sep 07 16:52:58 justJanne: simply adding landscape is not that hard, c'mon Sep 07 16:53:23 gordon_: it is when you have left and right drawer and a chat application, and need to deal with message spacing and so on Sep 07 16:53:24 it really is hard to spec designs for all the different combinations of orientations and screen dimensions Sep 07 16:53:27 it does take a lot of work Sep 07 16:53:34 landscape on 5" kinda works, Sep 07 16:53:47 but on 4" you don’t even see the chat anymore while the keyboard is open Sep 07 16:54:53 justJanne: I know Sep 07 16:54:59 we have landscape support ;P Sep 07 16:55:18 but recyclerlayout helps with it Sep 07 16:55:23 well, and I’m still in beta Sep 07 16:55:42 I'm still in removing ugly code from our app Sep 07 16:55:45 ;) Sep 07 16:55:49 I only added the ability to fully configure added networks, favourite lists, buffers, etc this week Sep 07 16:55:55 I started a full rewrite last november Sep 07 16:56:12 full rewrite doesnt make sense Sep 07 16:56:18 like always Sep 07 16:56:19 well, for us it did. Sep 07 16:56:59 the previous code was a cobbled together thing by dozens of devs, and used 7 different event systems, mixed together, about every class used another way for sending messages, because another dev built it Sep 07 16:57:39 and after I did the full rewrite, I halved the codebase, fixed about 95% of previous bugs without creating more than 14 new ones, and improved connection times by 84% Sep 07 16:57:39 so you could not refactor it slowly? one thing at a time? Sep 07 16:57:50 Well, I could. But I could also just rewrite it. Sep 07 16:58:04 And as I’d end up with a completely new thing in either case, I just rewrote it. Sep 07 16:58:32 and it still doesnt have landscape support :D Sep 07 16:58:40 well, that’s coming next week Sep 07 16:58:43 it’s still in beta Sep 07 17:02:02 in the older version, I just couldn’t do as much, I’d have to rewrite half the codebase before even being able to test anything, as everything was closely intertwined with the bidirectional RPC system Sep 07 17:02:23 anyone using greendao? Sep 07 17:03:04 wow android code is convoluted as hell. this stuff isn't even readable. Sep 07 17:03:55 probablyarobot: you'll fit right in here. All we do on this channel is bitch about the Android API. :D Sep 07 17:03:55 you will get used to it, if you try Sep 07 17:06:51 started reading/watching tutorials this morning and still can't get a single button to appear on a toolbar/actionbar/whatever Sep 07 17:07:02 might be a short lived endeavor Sep 07 17:10:41 g00s: are you watching? Sep 07 17:13:22 g00s is always watching ┬┴┬┴┤ ͜ʖ ͡°) ├┬┴┬┴ Sep 07 17:15:12 orbyt_: what's that supposed to look like? Sep 07 17:15:34 what does it look like to you Sep 07 17:15:48 orbyt_: I'm too ashamed to describe it Sep 07 17:16:00 um ok Sep 07 17:16:05 https://www.youtube.com/watch?v=G6I-IKYEVMI Sep 07 17:16:23 is it ok to link apple's "google io" live stream? Sep 07 17:18:56 * raoul11 tickles thepoosh Sep 07 17:19:10 * thepoosh becomes aroused Sep 07 17:19:17 u coming next week? Sep 07 17:21:24 to droidcon2016? Sep 07 17:21:54 no Sep 07 17:22:05 firebase meeting Sep 07 17:22:49 oh... that Sep 07 17:22:52 dunno Sep 07 17:22:54 it's far Sep 07 17:23:15 lol Sep 07 17:23:46 arent u visiting your staff on ramat gan every week Sep 07 17:30:56 if I want to setup a computer that will just build my AS project that implements Gradle for building, I know I need to have the Android SDK installed, is there a specific type of Gradle I need to install? Or does that come in with the SDK? Sep 07 17:46:02 azv4: what does "implements Gradle" mean? Sep 07 17:46:33 the project implements the gradle build system Sep 07 17:47:02 "implements Gradle for building" Sep 07 17:47:20 Just download Android Studio Sep 07 17:47:27 use gradle as needed Sep 07 17:48:17 azv4: Gradle programmers implemented Gradle Sep 07 17:48:35 azv4: your project just uses Gradle Sep 07 17:48:44 hello guys Sep 07 17:48:58 orbyt_, I'm trying to build via command line on a machine that doesn't have AS installed Sep 07 17:49:01 i connected my real device to pc with cable Sep 07 17:49:15 my real android device Sep 07 17:49:39 when i run my program i cant see my device Sep 07 17:50:00 it was okay in android studio when i was in beta older version Sep 07 17:50:03 azv4: finally you managed to state your problem clearly. I hope someone can help you. Sep 07 17:50:22 azv4: why can't just install Android Studio? Sep 07 17:50:28 Arancio, there is more than one proper use for the word implement Sep 07 17:50:34 i am using android studio 2.1.3 now Sep 07 17:50:52 * Arancio googles a dictionary Sep 07 17:50:56 what should i do ? Sep 07 17:52:16 azv4: just use the gradle-wrapper that’s included in the project? Sep 07 17:52:20 that’s the best solution Sep 07 17:53:07 justJanne, that covers the dependency that is required to build a project that uses Gradle build system while building from command line? Sep 07 17:53:13 i just see iniatilizing ADB Sep 07 17:53:49 azv4: sorry but 3 dictionaries confirm that the only usage of "to implement" is the one that I know. You misused the word Sep 07 17:54:10 Arancio, I dont have time for trolls Sep 07 17:54:32 azv4: yes Sep 07 17:54:38 while my real device is connected with cable and developer option is availble and usb debugging is marked Sep 07 17:54:41 just execute the ./gradlew on your server Sep 07 17:54:41 justJanne, thank you Sep 07 17:54:49 it will automatically download gradle, Sep 07 17:54:51 and run that Sep 07 17:54:52 azv4: I don't have time for people vomiting words randomly Sep 07 17:54:59 I’m running my builds on jenkins like that Sep 07 17:55:17 also, next time, think about what you want to say, and say it in as few words as possible while being as clear and detailed as possible Sep 07 17:56:51 gitlab + docker = best combo Sep 07 17:57:00 no need to download all the stuff again and again Sep 07 17:57:24 am i viewable here? Sep 07 17:57:24 theoretically, yes, but it’s a bit annoying to set up Sep 07 17:57:31 justJanne, yes, that is what I did! Sep 07 17:57:32 Yes, Guest80787, just no one cares Sep 07 17:57:35 thepoosh ya Sep 07 17:57:48 whats wrong with me? Sep 07 17:57:59 what do you think about the new apple watch? Sep 07 17:58:01 Afzal: and Jenkins2 supports also the .travis.yml stuff Sep 07 17:58:07 Guest80787: you are just fine Sep 07 17:58:10 yeah but then you have to setup jenkins Sep 07 17:58:18 thepoosh i don't care about that stuff ;) Sep 07 17:58:23 well that’s easy to do with jenkins2 Sep 07 17:58:29 what *do* you care about? Sep 07 17:58:31 but it’s still damn slow Sep 07 17:58:40 that’s true Sep 07 17:58:43 Guest80787: I never had similar problems. Can't help sorry Sep 07 17:58:47 weren't they redoing jenkins ui? Sep 07 17:58:52 I'll wait till that's done Sep 07 17:58:52 Arancio, i cant see my real device i just see iniatiling ADB Sep 07 17:59:06 thepoosh ok lemme look quick Sep 07 17:59:17 or is it done? Sep 07 17:59:29 holy shit blue ocean looks pretty Sep 07 17:59:49 Guest80787: I never had similar problems. Can't help sorry Sep 07 18:00:14 thepoosh they seem to be going for the quantified self / health market with these , and i wish them well Sep 07 18:00:35 nothing to show inializing ADB Sep 07 18:02:05 waiting for them to discuss the complete fuckup that was iPhone6 and stress tests Sep 07 18:03:18 thepoosh what did you think of it ? Sep 07 18:05:14 i'm pretty much meh about tech in general these days Sep 07 18:05:31 coming to the conclusion its not improving people lives much Sep 07 18:06:06 mmmmkay Sep 07 18:06:22 dunno about being super hyped but it's interesting Sep 07 18:06:23 are they still making smart watches? Sep 07 18:06:29 because this is the void being filled Sep 07 18:06:35 heh, i out-meh'd you ... ball is in your court ! Sep 07 18:06:55 I'm trying to build this view: http://pastebin.com/knCdu0XT and I get java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.support.design.widget.CoordinatorLayout$LayoutParams in the design view. Can anybody help me understand why? Yesterday I searched StackOverflow but found nothing helpful Sep 07 18:07:05 SonicPenguin: they sold a few dozen millions of pieces Sep 07 18:07:43 thepoosh: only apple? Sep 07 18:08:00 טקשי Sep 07 18:08:02 yeah Sep 07 18:08:17 "The Apple Watch 2 is swim-proof. You can swim up to 50 meters." Sep 07 18:08:25 HEY! Sep 07 18:08:27 How do I switch location services on via adb on rooted device? I tried `adb shell settings put secure location_providers_allowed gps` but doesn't seem to work. Android 6.0.1 Sep 07 18:08:30 what does that even mean, 50m deep ... or you have to get out of the water after swimming 50m Sep 07 18:08:39 they sampled mock swimming for weeks at a time Sep 07 18:08:45 g00s: lol I thought the same Sep 07 18:08:47 50m deep is pretty impressive Sep 07 18:08:59 50m far is not Sep 07 18:09:24 yeah Sep 07 18:09:49 Arancio: it's insanely deep Sep 07 18:09:52 for humans Sep 07 18:11:15 hi all, android studio 2.1.1 on ubuntu scales inconsistently with hidpi. fonts and menus look good, but the toolbar and some dialogs are too small. i tried adding hidpi=true to my idea.properties file, but it seems to have no effect. can anyone help? Sep 07 18:11:28 good, now i can get notified of new tweets even while i'm snorkeling Sep 07 18:11:41 camera looks good Sep 07 18:12:39 thepoosh: people usually swim on the surface or few decimeters below it. Otherwise you usually say they do "underwater diving". "You can swim up to 50 meters." is ambiguous. We were laughing at that Sep 07 18:13:04 professional divers rarely go under 30 meters Sep 07 18:13:11 due to pressure killing them Sep 07 18:13:40 thepoosh: I believe you. I never intended to say otherwise Sep 07 18:20:52 Hey guys, I'm a bit confused about buttons. Should I use Button or android.support.v7.widget.AppCompatButton in my xml? Sep 07 18:21:05 oh shit greendao changes my code! Sep 07 18:22:01 Could anybody help me with the past above? Sep 07 18:23:11 Cool: https://code.google.com/p/android/issues/detail?id=220250 "FAB can no longer be anchored to indirect children of CoordinatorLayout" Sep 07 18:23:16 It's a bug! Sep 07 18:24:30 Anyone? Sep 07 18:24:54 andrewgk: Button! Sep 07 18:25:03 andrewgk: I always use that and I'm alive Sep 07 18:25:39 You can use either. If you use Button it'll inflate a AppCompatButton Sep 07 18:25:57 so its basicly the same? Sep 07 18:26:36 Yes Sep 07 18:26:50 AppCompat just overrides the default behavior and creates an AppCompatButton instead of Button Sep 07 18:27:19 I wish I knew how all this stuff works Sep 07 18:27:28 Thank you for the concise response guys. Sep 07 18:27:48 andrewgk: you're welcome Sep 07 18:29:39 How do I make two view use 50% of the vertical space of a CoordinatorLayout, like I would do using layout_weight="0.5" on both in a LinearView? Sep 07 18:30:00 Without using any other layout. I need direct children of CoordinatorLayout Sep 07 18:30:09 Arancio: try ConstraintLayout Sep 07 18:30:46 genymotion or android studio emulator? (linux) Sep 07 18:31:05 thepoosh: is ConstraintLayout a CoordinatorLayout? I guess not. Sep 07 18:31:22 andrewgk: depends what you need Sep 07 18:31:57 the fastest one I guess... Sep 07 18:33:09 thepoosh: I need to create the same layout as in http://pastebin.com/knCdu0XT without using an intermediate LinearLayout (or any other layout) because I can't anchor a FAB to a indirect children of CoordinatorLayout Sep 07 18:33:36 DEFUQ Sep 07 18:33:48 did you just have 3 nested linear layouts with nothing in them?! Sep 07 18:35:00 thepoosh: it's just a demo. Sep 07 18:35:20 not sure what the issue is Sep 07 18:35:39 Cool: https://code.google.com/p/android/issues/detail?id=220250 "FAB can no longer be anchored to indirect children of CoordinatorLayout" Sep 07 18:35:44 ^ Sep 07 18:35:46 that's the issue Sep 07 18:35:56 ok Sep 07 18:44:00 http://imgur.com/a/kH6vb (▀̿Ĺ̯▀̿ ̿) Sep 07 18:45:18 orbyt_: so it isn't just a nickname! You really live up there! Amazing Sep 07 18:46:15 Need to get superscript working for the exponents Sep 07 18:46:49 superscript is easy Sep 07 18:49:02 how do i make sqlite3 available on the shell? Sep 07 18:52:00 orbyt_: that’s your app? Sep 07 18:52:21 justJanne: that's the view from his window! Sep 07 18:52:38 ^ Sep 07 18:53:24 orbyt_, spannablestring Sep 07 18:54:15 pfn: Well i've been trying Html.fromHtml() which from SO answers is suppose to work... Sep 07 18:54:26 * pfn shrugs Sep 07 18:54:29 Html.fromHtml always sucks Sep 07 18:54:31 orbyt_: http://stackoverflow.com/a/8872986 Sep 07 18:54:34 use SpannableString correctly Sep 07 18:55:42 orbyt: Html.fromHTML is for people who can't handle microgravity Sep 07 18:57:26 hmm, so Android Studio 2.1.3 in hidpi looks good on Ubuntu with my user account, but for workflow reasons, I run Android Studio as root. As root, many elements are not scaled properly. can anyone suggest a fix here? Sep 07 18:57:55 How can I get this layout? http://i.stack.imgur.com/6RjOq.jpg Sep 07 19:00:19 No one can help me? Sep 07 19:01:53 Take a look at https://github.com/chrisbanes/cheesesquare Sep 07 19:02:23 Ninja'd Sep 07 19:03:01 but its just an anchor on the fab Sep 07 19:34:22 could someone help with retrofit2, i am creating a Post request, so I’m trying to understand something, my webservice is for example www.blahblah.com/webservice.svc/ and the function i need to call is Search, so in my service class i should use @POST(“Search”)? Sep 07 19:35:39 SimonVT: thanks. I'm downloading. I slept a few minutes and I got an idea: maybe I can user CoordinatorLayout as a child layout too and not only as master layout. In that case I could put a CoordinatorLayout around the view where I want to anchor the FAB Sep 07 19:37:31 yay i just set up gitlab on my server ;D Sep 07 19:37:34 everythings working ;D Sep 07 19:43:15 or am i way off the mark, i’m getting an error code 404 so something ain’t right Sep 07 19:48:35 wow https://adtmag.com/articles/2016/09/07/app-store-cleanup.aspx Sep 07 19:50:55 krippykripkrip: well, depends Sep 07 19:51:03 on how the webservice works Sep 07 19:51:03 on what? Sep 07 19:51:54 so i can get it to work perfectly thru volley, i pass a json object to www.blahblah.com/webservice.svc/Search Sep 07 19:51:58 works perfectly Sep 07 19:51:59 Ah Sep 07 19:52:08 that’d be done with Sep 07 19:52:13 but i want to use retrofit Sep 07 19:52:34 @POST("/webservice.svc/Search") Call search(...) Sep 07 19:52:48 or if /webservice.svc/ is in your path already, Sep 07 19:52:49 then just Sep 07 19:52:55 @POST("Search") Sep 07 19:53:23 SimonVT: orbyt_: I should sleep more often. My idea worked! http://pastebin.com/z6ydznZ7 Sep 07 19:55:08 By the way pfn & Arancio that SpannableString for superscript didn't seem to work either. Sep 07 19:55:24 thats what i’ve done, am getting a 404, so if i want to pass a json object in my request how do i do that @POST("Person") Sep 07 19:55:25 Call getPersonAccess(@Body Object request) Sep 07 19:55:34 orbyt_: I used it once. Post some code! Sep 07 19:55:42 wonder if fontFeatureSettings messes with it. Sep 07 19:55:59 Arancio: yea will in a bit Sep 07 20:33:43 oh i guess today was iphone 7 day ... snooze Sep 07 20:35:30 no more headphone jack. lame Sep 07 20:36:20 yeah, i feel like we've reached the end of the line with smartphone innovation Sep 07 20:36:20 the most excited part of the iphone announcement for me was the incredibly fetishized explanation of the housing Sep 07 20:37:54 which is inevitably covered up by a cheap rubber skin to protect the glorious shell Sep 07 20:38:55 I personally really like how they promoted diversity by having every single actor in their video promos be either female, black, asian or some combination thereof. Only 1 white guy was used in the entire thing :) At least they gave him some tattoos so he didnt appear *too* much like a white guy Sep 07 20:39:09 its sad thats my biggest takeaway from it =/ Sep 07 20:39:51 i do like that they are pushing battery life as a feature though, and its something they've managed to improve upon Sep 07 20:40:18 ios is already superior to android in this regard, and it seems with the new iphone its just going to be even better Sep 07 20:40:26 good for them for making an effort on inclusion. could've just watched Yeezy Season though Sep 07 20:40:39 fuck that, i was being sarcastic. Its absolutely insane Sep 07 20:40:47 pretending that white guys dont exist Sep 07 20:40:51 for the sake of "diversity" Sep 07 20:40:53 cmon Sep 07 20:41:29 liefer, see you in ##politics, friend Sep 07 20:41:49 make #android-dev great again Sep 07 20:42:04 ur a dummy Sep 07 20:44:34 could someone help with something, i want to create an object within an object, if i manually create it, its no prob, but i want to create it by instantiating from class, see my simple code http://pastebin.com/vm5rHjW6 Sep 07 20:44:43 liefer: are you a white supremacist? Sep 07 20:44:52 duh, obviously Sep 07 20:44:58 :-) Sep 07 20:45:28 yah, so, wireless only? apples gotten brave :-/ Sep 07 20:45:54 Hahaha did you notice how he said "Its called 1 word: Courage" Sep 07 20:46:04 i've never heard "vendor lock-in" pronounced like that before Sep 07 20:46:06 creepycreepcreep: better if you mention you are talking about JSON. Sep 07 20:46:35 * capella-5x didn't want to repeat "walled garden" Sep 07 20:46:47 i’m using retrofit so i thought it automatically converts it to json? Sep 07 20:47:40 krippykripkrip, this looks incomplete Sep 07 20:47:40 krippykripkrip, i don't understand what you expect to happen here Sep 07 20:48:22 creepycreepcreep: neither do I Sep 07 20:49:16 I *do* appriciate the persistance of apple though. Even though my calendar says 2016, they insist that the web is still in the 90s Sep 07 20:49:41 So lets not support html5, lets go with flash. Actually, lets only go with the built-in browser for each platform, screw firefox and chrome Sep 07 20:49:51 that was a nice touch i thought Sep 07 20:51:05 I wonder if next year they'll try to promote it as an innovation. "We now have the most obsolate browser in the world, and we think you're gonna love it!" Sep 07 20:51:12 obsolete* Sep 07 20:51:32 so i’ve used volley in the past, so i passed a json object (this was a jsonobject within a jsonobject as that is what my webservice accepst) in the request using the first part of the code in pastebin,this worked perfectly, now i’m trying to use retrofit and trying to pass the same kind of json object, so i’m using @POST("/Person") Sep 07 20:51:32 Call getPersonAccess(@Body PersonRequest body); Sep 07 20:51:47 krippykripkrip, i haven't used retrofit, but I don't think you're quite there yet. maybe take a look here: http://www.vogella.com/tutorials/Retrofit/article.html Sep 07 20:54:35 that tutorial is only for get request, i’m needing post Sep 07 20:55:47 i’m confused as to how to recreate what works perfectly in volley to retrofit Sep 07 20:55:53 thought it would be simple Sep 07 20:56:43 does it sitll not make sense what i am trying to do? Sep 07 20:57:01 krippykripkrip, that looks like a pretty minor difference to the API implementation: http://square.github.io/retrofit/ Sep 07 20:58:41 krippykripkrip, i don't think you've fully articulated what you're trying to do, but also i've never used retrofit so if all i'm going to do is link you to docs/tuts, that's not very helpful Sep 07 21:00:08 yeah thx Bishop, i’ve been thru all that, i think i’m creating my request incorrectly, i thought i was explaing it very simply, i need to create an object within an object as that is what my webservice accepts Sep 07 21:01:02 * bitkiller tested dbflow Sep 07 21:01:14 ormlite is faster for my case Sep 07 21:16:12 krippykripkrip: you will succeed Sep 07 21:16:35 nah you know what i don’t think i will, this is doing my nut in like everything in android :( Sep 07 21:19:33 woot! just got approved for a new credit card, I'm stoked Sep 07 21:19:52 spend it all Sep 07 21:20:06 hah, if I burn the limit I'll be broke Sep 07 21:20:16 limit is pretty stupid high Sep 07 21:20:28 heh, yep Sep 07 21:20:33 has anyone used retrofit ? Sep 07 21:21:27 no one here uses any libraries Sep 07 21:21:35 new chase sapphire reserve Sep 07 21:22:16 has a 100k bonus points, $300 credit for travel, and ¢100 credit for. global entry/tsa pre Sep 07 21:22:29 yeah seems that way Sep 07 21:22:40 $100 Sep 07 21:23:21 I was kidding seriously pfn 🙂 my background is in banking systems, so "spend it all" us actually pretty anathema ;-) Sep 07 21:24:41 of course Sep 07 21:24:50 credit isn't meant to be used Sep 07 21:24:54 it's just a buffer Sep 07 21:25:48 mostly use it to acquire points Sep 07 21:27:27 I can’t even get a credit card here easily Sep 07 21:27:58 justJanne: I was waiting for you to join the conversation. Really Sep 07 21:28:16 justJanne: why would you even try to get a credit card? Sep 07 21:28:21 Google Play Developer. Sep 07 21:28:26 requires a credit card. Sep 07 21:29:13 krippykripkrip: lots of people use Retrofit. I used it only once. Either people didn't understand what you are asking or they don't care. Sep 07 21:29:40 yeah i think its both, not too worry Sep 07 21:29:42 Arancio: I’d prefer just wiring 25$ via SEPA transfer to Google Sep 07 21:30:16 justJanne: maybe you can use a "pre-paid" card. I don't know what's they name in English Sep 07 21:30:43 prepaid card Sep 07 21:30:50 I’ve looked into that, yes Sep 07 21:30:54 ok, thanks Sep 07 21:32:28 I used one of those for all my online transactions so far Sep 07 21:32:29 I don't get the following "ote: By implementing the BaseColumns interface, your inner class can inherit a primary key field called _ID that some Android classes such as cursor adaptors will expect it to have.". Why not simply specify a constants _ID in the inner class of the database Contract? Sep 07 21:33:06 i.e, what is the advantage of implementing BaseColumns over manually adding "public static final Integer _ID = "_ID"? Sep 07 21:33:36 if you just did that, any system class that would be expecting it wouldn’t be able to know you had it Sep 07 21:33:43 Correcton: String _ID = "_ID" Sep 07 21:34:31 s73v3r, i don't get that? How come i wouldn't have that field? I did manually add it to the class though? Sep 07 21:35:20 how would anything be able to count on you having that field? Sep 07 21:35:32 that’s why it’s part of the interface Sep 07 21:36:39 s73v3r, hmm of course! Sep 07 21:36:42 I reread the docs Sep 07 21:37:03 By implementing the BaseColumns interface, your inner class can inherit a primary key field called _ID that SOME ANDROID CLASSES... Sep 07 21:37:08 never mind Sep 07 21:37:14 i fully understand now what you mean s73 Sep 07 21:37:16 thank you Sep 07 21:37:41 krippykripkrip: I have used Retrofit Sep 07 21:38:05 JakeWharton: It’s not nice to lie Sep 07 21:38:23 any good examples projects out there demonstrating dagger + rxjava + mvp (or other clean arch) Sep 07 21:40:09 u2020 Sep 07 21:43:04 Arancio: I’ll just try using mpass tomorrow Sep 07 21:43:08 maybe that will still work Sep 07 21:43:12 If i wanted something to run, some thread or something that would execute every x time, even while the application is closed, what is the tool i'm looking for? Sep 07 21:43:42 dersand: you need to use the alarm manager w/ a service Sep 07 21:44:05 dersand: and possibly a boot completed receiver to start it up after a reboot Sep 07 21:44:36 herriojr: Will read up on, thanks! Sep 07 21:44:55 dersand: and probably a wakelock if you need to guarantee it gets executed at that time Sep 07 21:46:08 dersand: but generally, it's bad practice to require it to wake up at exact times unless your usecase REALLY requires it Sep 07 21:46:12 justJanne: mPass looks just like my prepaid card, called PostePay, which is a prepaid card issued by the public mail delivery company in my country. PostePay works like a Visa card for all online purposes. Don't know more about mPass. Sep 07 21:46:37 Arancio: the advantage of mpass is their integration with NFC payment services Sep 07 21:46:48 works with NFC phones directly, or via NFC sticker Sep 07 21:46:53 sadly, they’re shutting down Sep 07 21:47:17 but as their service is just a product from mywirecard with telefonica sponsoring the costs for you, I’ll be moved over Sep 07 21:47:37 mywirecard costs something to load up or use, mpass is free, for everything, always, ever Sep 07 21:48:47 Should I use sp or dp for margin settings of my TextViews? Sep 07 21:53:07 Arancio: dp Sep 07 21:53:14 Arancio: sp should only be used for text size Sep 07 21:53:20 herriojr: thanks Sep 07 21:53:24 Arancio: sp allows the size to change based on user settings Sep 07 21:53:50 Arancio: so if they need to enlarge the text size if they have vision problems, etc. Sep 07 21:53:55 why did they add a second display size setting in N Sep 07 21:54:13 herriojr: yes, I was wondering. Since I'm spacing a sequence of TextViews the spacing maybe should follow the text size Sep 07 21:54:44 Arancio: spacing in what manner? As if they are part of the same sentence? Sep 07 21:55:36 herriojr: well, not the same sentence but they are information about the same thing. Sep 07 21:55:53 Arancio: still use dp Sep 07 21:55:58 herriojr: ok. thanks Sep 07 21:56:21 Arancio: I was going to say if they are part of the same sentence you need to do it another way as it isn't multi-language compatible Sep 07 21:56:32 Hi Sep 07 21:56:37 perlsyntax: hi Sep 07 21:58:38 perlsyntax: we use Java syntax here Sep 07 22:00:02 meh, anything that compile to byte code or to an instruction set will work with android Sep 07 22:04:07 perlsyntax! Sep 07 22:04:16 :-( Sep 07 22:07:45 is dagger 2 incredibly confusing or am I just an idiot? Sep 07 22:08:17 Dagger is basically just a type-safe map Sep 07 22:08:56 I'm trying to take advantage of scoping, for a presenter on an Activity... do i really have to create the component object within the Activity? Sep 07 22:10:06 I feel that kind of defeats the purpose of DI, having to create components in the objects which are to be injected... Sep 07 22:10:53 hi all - Sep 07 22:11:20 Unless your activity is your presenter those sound like different objects Sep 07 22:11:46 What's the quickest and easiest way to get pinch and zoom on images Sep 07 22:11:47 Activity in this case would be like a View, which I'm trying to inject a presenter into Sep 07 22:13:36 in order to inject a scoped presenter, I must instantiate the scoped component, and then inject the activity =-O Sep 07 22:15:39 if i create a module of unscoped presenters, a new presenter will be created for every injection, will they be automatically cleaned up as well? Sep 07 22:21:20 anyone ? ? Sep 07 22:23:55 wow it seems my son has wiped my wife's phone out Sep 07 22:24:26 sounds like a test engineer in the making Sep 07 22:24:59 :-D Sep 07 22:40:46 Is there a layout that wraps children around if they are to many to fit the width of the screen? Sep 07 22:51:35 Arancio: Not that I know of, but I think that wouldnt be too hard to replicate in code. Sep 07 22:51:43 don't* Sep 07 22:52:03 ignore^ Sep 07 22:57:04 orbyt_: thanks Sep 07 23:06:11 arancio: there are a few libraries that do that. i think FlowLayout was one i remember seeing. Sep 07 23:06:24 dsardari: thanks! Sep 07 23:07:21 yarp Sep 07 23:07:40 there's no quick and easy way. to add pinch to zoom, maybe through a library, if you want to be lazy, you can just adjust scaleX and Y Sep 07 23:07:52 the latter would be dumb, though Sep 07 23:08:10 Theres quite few gists and SO snippets for pinch and zoom Sep 07 23:08:20 definantly dont need a lib for it, imo Sep 07 23:08:31 copy/pasting random. code isn't quick and easy Sep 07 23:09:01 It's generally just a custom implementation of an ImageView Sep 07 23:09:11 well, it can be considered easy and quick to copy/paste... Sep 07 23:09:12 chrisbanes photo view Sep 07 23:09:29 ^ that to Sep 07 23:09:29 pretty nice library and easy to integrate Sep 07 23:14:22 dsardari: it worked right away Sep 07 23:17:05 dsardari: are you Indian? Sep 07 23:25:23 What technique would you use to make a human shape where specific parts are clickable and selectable (act like toggle buttons)? Sep 07 23:25:54 Arancio: web browser or native android? Sep 07 23:26:03 native android Sep 07 23:26:32 I guess there is a well known technique to do that in browsers but I can't recall the name. Do you know it? Sep 07 23:27:38 Arancio: you would add a listener, get the location offset, match it to a list that contains areas / boundraries of places to click? Sep 07 23:27:46 Arancio: imagemap Sep 07 23:27:58 ok, thanks Sep 07 23:28:27 of course you may need to use a multiplier or something if you are using a scalable image Sep 07 23:28:45 but if the dimensions are known then it should be simple Sep 07 23:29:35 I'll look if there is bezier curve manipulation library for Android Sep 07 23:30:13 thanks for the suggestions Sep 07 23:30:36 One possible solution might be using XML vectors and paths Sep 07 23:30:50 Android might have a way to handle intersection with them already Sep 07 23:35:07 so, it is an okay idea to start developing an android app in flash, or has that boat sailed? Sep 07 23:35:25 <[Saint]> Do you _want_ people to hate you? Sep 07 23:35:33 <[Saint]> 'cos...that's how you get people to hate you. Sep 07 23:35:46 ha ha Sep 07 23:35:53 <[Saint]> I'm only half joking. Sep 07 23:36:21 because if people have to download extra stuff just to get it to work, etc, I may just learn something else. Sep 07 23:36:23 <[Saint]> Anyone considering using Flash in 2016 needs to take a long hard look at their life choices. Sep 07 23:36:27 I'm "eh" at java Sep 07 23:36:40 hey, it was a good enough choice in the late nineties. Sep 07 23:37:06 <[Saint]> It was shit then, it was just basically the only option. Sep 07 23:37:14 hm, that is true. Sep 07 23:37:20 <[Saint]> It's still shit now, wildly insecure, and there's plenty of options. Sep 07 23:38:30 Which flash do you mean, wheely? Sep 07 23:38:38 The animations, or the coding system? Sep 07 23:38:49 They're both from adobe, but a bit different Sep 07 23:39:06 <[Saint]> Oh, good point. I presumed the former. Sep 07 23:39:18 If you mean Flash ActionScript, you might feel familar with JavaScript and ReactNative Sep 07 23:39:43 hm, I guess I meant the thing that exports .swfs, etc Sep 07 23:39:51 but AS3 is part of that Sep 07 23:39:56 A new way of writing code in almost the same way as flash or JavaScript, for mobile devices, from Facebook (2015) Sep 07 23:40:20 That is probably the closest there is. Sep 07 23:40:28 so... flash apps are still basically supported in android, though? Sep 07 23:40:37 Well, no. Sep 07 23:40:43 I know the old javascript, but not the recent one. Sep 07 23:40:45 justJanne: yes, I was looking to see if there is support for computations about path and not only drawing them. I'll google later. Thanks Sep 07 23:40:46 But javascript apps are Sep 07 23:40:58 Kinda Sep 07 23:41:28 okay, so what are the majority of apps made with? Does it just vary? Sep 07 23:41:30 Android only really supports Java, but you can with some tricks get other languages to run, Facebook uses JavaScript a lot in their app Sep 07 23:41:39 sure Sep 07 23:41:45 The amount of non-Java apps is a rounding error Sep 07 23:41:53 Basically, less than a few thousand Sep 07 23:41:58 Of billions of apps Sep 07 23:42:13 (numbers are illustrative, not literal) Sep 07 23:42:13 billion of apps? Sep 07 23:42:17 ah ok Sep 07 23:42:22 :D Sep 07 23:42:24 hm, all right Sep 07 23:42:41 I knew people made apps in flash, but I didn't know how well they worked in android. Sep 07 23:42:49 Long-term, learning java is without alternative Sep 07 23:43:45 wish codefights had an android option Sep 07 23:43:47 would be cool Sep 07 23:44:04 wheely: you can make Android apps with HTML/CSS/Javascript with Apache Cordova Sep 07 23:44:14 Please don't^ Sep 07 23:44:18 lo Sep 07 23:44:19 l Sep 07 23:44:48 I've seen a reddit client made with cordova Sep 07 23:45:07 On a nexus 5, it looked awesome and ran quite fast Sep 07 23:45:10 <[Saint]> If you hate yourself enough (and you /did/ consider Flash, so that's clearly an option), there's always the NDK. Sep 07 23:45:21 On a moto g, pressing any button took half a minute Sep 07 23:45:58 is this chat logged anywhere? Sep 07 23:46:08 I'm mostly considering flash because I know it.. but if it's truly terrible, I may just learn java or something else. Sep 07 23:46:32 Learn http://lolcode.org/ Sep 07 23:46:43 parco: except on every user's harddrive, no. Sep 07 23:46:58 uhhh Sep 07 23:48:32 Anyone can help me with an Android Studio issue I'm having with the build.gradle file? Sep 07 23:49:07 What's the issue Sep 07 23:49:16 wheely: yeah, learn Java. You don't need to become a Java expert to become a millionaire with an Android app. Just the basics. Several people made it without a PhD in Java. Sep 07 23:49:31 Laurets_: and hi Sep 07 23:50:12 ^ javajoe is your average joe of Java, for example. But he made millions Sep 07 23:52:53 <[Saint]> justJanne: I think in most terms we're the minority with 'sane' IRC clients. A lot of people seem to use disgusting webclients these days. Sep 07 23:53:25 Well actually I'm having two issues, but solving one is causing the other and vice-versa. The first is a gradle build error "Error:failed to find Build Tools revision 23.0.3 Install Build Tools 23.0.3 and sync project" I've found out that it's because the build and compile versions weren't set in the Project Structure. So I set them, but then the error changed to "Gradle DSL method not found: " Sep 07 23:53:47 justJanne: there seems to be no support for hit testing paths (bezier curves) with ray tracing in Android. Sep 07 23:54:02 I'll google for external libraries later Sep 07 23:54:05 the options in Project Structure makes android studio add buildToolsVersion '23.0.3' in an android block {} inside the root build.gradle file which isn;t permitted and thus doesn't build Sep 07 23:54:34 Laurets_: Post your build.gradle, and make sure you actually have the proper build tools installed. Sep 07 23:54:36 but then if I remove the lines I go back to the first error since removing them blanks out the build and compile version in project strcuture Sep 07 23:54:43 ok Sep 07 23:57:28 http://pastebin.com/KMm5Urdh Sep 07 23:57:40 That's the root level build.gradle Sep 07 23:58:29 in rxjava, does the observable hold onto the observer, restricting it from being garbage collected? Sep 07 23:59:15 I know it's the android block messing it up, but removing the the lines will get me the can't find build tools error Sep 08 00:00:31 i'm trying to create a Model -> Presenter link without the Model holding onto the presenter as an observer Sep 08 00:05:11 That's kinda possible, but not necessary Sep 08 00:05:25 You could make the presenter unregister itself Sep 08 00:06:15 that would require the presenter to know when to stop presenting... Sep 08 00:06:49 i was hoping to just create these presenters blindly in an activity, and let them fade away into the abyss if the activity is destroyed Sep 08 00:07:33 Well, just destroy them in the onDestroy Sep 08 00:49:20 Anyone have links on using AnimatedVectorDrawables with animators/objectAnimators? Sep 08 00:49:36 I'm trying to make a vector have a "floating" up and down animation Sep 08 00:55:44 somebody mind helping me figure out why items aren't showing up in my menu/toolbar? Sep 08 00:56:52 hello all :) Sep 08 00:57:27 oh hei there drinfernoo ! Sep 08 00:57:38 what's up wyoung? Sep 08 00:58:08 just chillin' and codin; Sep 08 00:58:15 righto Sep 08 00:58:36 with unicode support? Sep 08 00:58:58 capella-5x: natively! Sep 08 00:59:24 metal to win 👍 Sep 08 00:59:42 :D Sep 08 01:00:26 once you start electron and magnon switching, it's all cake Sep 08 01:02:49 would anybody mind taking a look at some code for me? I'm pulling my hair out trying to figure this out lol Sep 08 01:03:42 actually hang on a second anyways lol Sep 08 01:03:42 guys... "here is my code, the problem is XXX, I've tried A and B, can anyone help?" - not "can anyone help?" Sep 08 01:04:00 ++ Sep 08 01:04:11 good call Sep 08 01:04:14 my bad Sep 08 01:04:45 why menu items don't appear doesn't indicate debugging skills Sep 08 01:05:20 k i'm gonna send 4 pastebin links. Sep 08 01:05:28 talk Sep 08 01:05:48 main_menu.xml: http://pastebin.com/4uTFTJxk Sep 08 01:05:59 toolbar.xml: http://pastebin.com/ftJ1yQSU Sep 08 01:06:00 I don't really want to read code Sep 08 01:06:50 ...... the issue is that an the single item in my main_menu.xml resource is not being displayed Sep 08 01:07:12 app:showAsAction="always" Sep 08 01:07:30 app namespace is there Sep 08 01:07:34 idfk what the problem is. Sep 08 01:08:01 capella-5x: you're in the wrong channel if you don't want to read code. Sep 08 01:08:10 yeah wtf Sep 08 01:08:24 MainActivity.java: http://pastebin.com/uYFbmsk0 Sep 08 01:08:34 activity_main.xml: http://pastebin.com/UsZ6pcjD Sep 08 01:08:47 thnx for any help Sep 08 01:08:52 probablyarobot: which Sep 08 01:08:56 probablyarobot: item isn't Sep 08 01:08:59 probablyarobot: showing? Sep 08 01:09:18 the only item tag in main_menu.xml Sep 08 01:09:29 Sep 08 01:10:56 icon is in drawable for sure Sep 08 01:13:04 https://github.com/drinfernoo/Gandalf/blob/values/library/src/main/java/gandalf/blango/com/gandalf/view/GandalfViewPager.java Sep 08 01:13:06 so, i have two buttons in my activity, that call updateForwardBranches() and updateBackwardBranches(), to move my custom ViewPager forward and backward, respectively. the idea is that sometimes, depending on the choice (from a RadioGroup) that was chosen, updateForwardBranches() will add pages to the adapter. in updateBackwardBranches(), if you arent on one of the pages in the branch, it should remove the corresponding pages. this all Sep 08 01:13:13 whoa, sorry that was so long Sep 08 01:13:39 yeah dick i asked for help first go away Sep 08 01:13:42 that was long Sep 08 01:13:53 probablyarobot: none of that Sep 08 01:13:59 hahaha kidding Sep 08 01:14:15 probablyarobot: end of the queue for you! Sep 08 01:14:23 :) Sep 08 01:14:23 i think the problem is that "checked" in updateForwardBranches() is returning the same value, regardless of which value i choose, but only if i go too far into the branch Sep 08 01:15:50 im thinking its when the page with the options gets destroyed? it might be a state save thing? Sep 08 01:16:14 adapter here: https://github.com/drinfernoo/Gandalf/blob/values/library/src/main/java/gandalf/blango/com/gandalf/adapter/GandalfPagerAdapter.java Sep 08 01:19:13 we're on our own bruh Sep 08 01:20:54 i thought so lol Sep 08 01:21:21 haha Sep 08 01:21:32 that made me lol Sep 08 01:25:00 do you guys even know what farm to table means Sep 08 01:25:56 probablyarobot, i think you have to override onCreatrOptionsMenu() in your activity, and inflate the menu.xml Sep 08 01:26:19 onCreateOptionsMenu(Menu menu) Sep 08 01:29:48 you've heard of MVP, and MVC, but have you ever heard of MVCP? Sep 08 01:30:23 i use mvvmvpcmpm Sep 08 01:30:25 shitttt i think youre right @drinferno Sep 08 01:30:31 firing up emulator now Sep 08 01:30:53 g00s: you must be using dagger 2 Sep 08 01:31:10 oh ha, haven't used that yet. been meaning to check it out though Sep 08 01:31:17 or that tiger one' Sep 08 01:31:18 dude thanks! Sep 08 01:31:22 totally worked Sep 08 01:32:33 hey parco Sep 08 01:32:33 i'll take a look at yours also buy don't get your hopes up, this is my first day in the world of android dev Sep 08 01:32:38 g00s Sep 08 01:32:43 * Napalm tips hat Sep 08 01:32:47 hey Napalm Sep 08 01:33:27 hi Napalm, how goes it Sep 08 01:33:29 ugh, fell asleep on sofa in the early evening and wake up at 2:30am.. damn it. this is going to be a long day :S Sep 08 01:34:38 Napalm hop on /r/androiddev, answer the latest 'fragments are da evils" post, get bored .. sleepy ... profit Sep 08 01:36:40 ^^ or stick around and i'm sure i'll have an equivalent question Sep 08 01:38:33 g00s, tiger looks amazing Sep 08 01:39:04 i looked at the landing page a few days ago, it was ... like not finished or something Sep 08 01:40:56 Napalm you still using all the binding stuff ? Sep 08 01:41:04 * g00s is *really* far behind Sep 08 01:41:36 Napalm if you are doing mvvm, i thought this was interesting http://tech.trivago.com/2016/08/26/mvvm-c-a-simple-way-to-navigate/ Sep 08 01:41:38 g00s: yes Sep 08 01:41:46 ^ to binding Sep 08 01:44:31 i believe my architecture is called wtfw Sep 08 01:44:41 Napalm wonder if i'll have to wait until 2017 to use data binding + j/j Sep 08 01:44:52 its the whatever the fuck works method lol Sep 08 01:45:02 j/j? Sep 08 01:45:07 jack / jill Sep 08 01:45:30 probablyarobot, youre welcome :) glad i could help Sep 08 01:45:31 not sure why the new relate Sep 08 01:45:40 those things are 2 years old already, google must be struggling Sep 08 01:45:45 i've been messing around with data binding every since Napalm showed me, it's amazing how much can be ripped out of activities/fragments Sep 08 01:45:50 ever* Sep 08 01:46:00 Napalm atm, incompatibilities (can't use j/j with binding, instant run, etc) Sep 08 01:46:04 best one is the lambda in layout.. helps so much Sep 08 01:46:20 g00s: I do Sep 08 01:46:40 "But throughout the last years, MVC got a really bad reputation." actually MVC had a bad reputation before smartphones became popular Sep 08 01:46:43 Napalm i don't understand, documented not to work Sep 08 01:46:50 g00s: I use data-binding and instant-run and even retro-lambda, lombok, and other apt stuff Sep 08 01:47:00 oh, retro sure Sep 08 01:47:05 but not j/j Sep 08 01:47:20 right, but even if you were to use hj Sep 08 01:47:23 g00s, are j/j just not java 8 compatible? Sep 08 01:47:24 j/j Sep 08 01:47:33 who cares about using jack Sep 08 01:47:42 lol Sep 08 01:47:44 pretty worthless, it's a pretty shitty toolchain to even think about using Sep 08 01:47:47 thats my pfn Sep 08 01:47:49 :D Sep 08 01:47:50 maybe in a couple years Sep 08 01:47:51 hehe Sep 08 01:48:06 but jack is very poorly designed atm Sep 08 01:48:19 or perhaps just poorly implemented Sep 08 01:48:24 has anybody had a chance to look at my code from above? Sep 08 01:48:41 I looked at it from below Sep 08 01:49:07 lol weird Sep 08 01:49:08 maybe that's why I didn't understand it Sep 08 01:49:35 i could clarify if that would help Sep 08 01:49:43 hows your day Arancio? Sep 08 01:50:26 the problem with the jack/jill toolchain is that it is extremely monolithic Sep 08 01:50:38 it tries to consolidate the entirety of the javac and dex functionality into a single tool Sep 08 01:51:15 is there any way for a horizontal linearlayout to match the height of the container relativelayout, relativelayout has height = 0dp, weight = 1 Sep 08 01:51:19 which is really really terrible, unless there's some secret sauce plan for the future, it really doesn't make sense Sep 08 01:51:25 in your opinions, how much change warrants a new commit? Sep 08 01:51:41 sorry i meant height = wrap_content, weight = 0 (it's a bar across the bottom) Sep 08 01:51:44 always commit as often as you feel comfortable Sep 08 01:51:53 rebase/rewrite history as required to clean crap up Sep 08 01:52:13 work on a branch so that you don't feel like you're polluting the history of master or whatever you have as your main branch Sep 08 01:52:18 drinfernoo: it sucks. how about yours? Sep 08 01:53:27 greves, it should wrap_content of its child views, no? Sep 08 01:53:55 Arancio, just trying to figure out that code lol i just made some grilled steelhead i cant wait to nom Sep 08 01:54:04 so overall, not bad Sep 08 01:54:29 drinfernoo, it should, but when i set `wrap_content` on the inner horizontal linearlayout, it's filling up the whole screen Sep 08 01:54:37 i refactored one simple activity to use mvvm/clean architecture Sep 08 01:54:47 drinfernoo: did you fish them' Sep 08 01:54:48 but it hasn't got very clean Sep 08 01:54:48 ? Sep 08 01:54:53 drinfernoo, i mean: match_parent. ugh sorry haha Sep 08 01:55:13 greves, thats why. try layout_height=wrap_content Sep 08 01:55:28 Arancio, no, my boss lol Sep 08 01:56:02 drinfernoo, when i do wrap_content, the views inside my horizontal linearlayout get clipped or squished Sep 08 01:56:26 oh crap idk lol id probably just try new things until i figured it out Sep 08 01:56:56 drinfernoo, i believe the issue is because i am animating them to grow, and the linearlayout does not vertically grow with them, so they get clipped Sep 08 01:57:41 oh yeah maybe Sep 08 01:57:50 is there any way to get the linearlayout to update its height? Sep 08 02:00:13 if the height of the linearlayout could match the height of the container (relativelayout), it would work fine Sep 08 02:01:06 drinfernoo, http://i.imgur.com/NY6nEd5.png Sep 08 02:01:45 drinfernoo: are you a professional Android developer? Sep 08 02:01:49 blue is RelativeLayout, orange is LinearLayout. it works with a fixed height Sep 08 02:01:57 tiger did sound too good to be true Sep 08 02:02:47 Did Github remove the ability to search through the code base? Sep 08 02:04:22 no Sep 08 02:05:57 Ah when I'm logged in I can do it, when I'm logged out I can't...hmm Sep 08 02:09:33 greves, not sure... are you building a custom pager indicator? Sep 08 02:09:49 Arancio, not even close lol im a professional hobbyist at this point Sep 08 02:10:09 drinfernoo, yeah Sep 08 02:10:46 that sounds annoying lol Sep 08 02:16:55 whoops lol Sep 08 02:27:45 in MVP, the presenter acts as a sort of middle-man between M and V? so why isnt it MPV? Sep 08 02:34:33 drinfernoo: why isn't MVVM called MVMV? same reason. P and VM are something added to the basic pair M + V Sep 08 02:35:24 i was just trying to stir up conversation lol Sep 08 02:40:34 if i remove items from my PagerAdapter, should i call destroy() on them, or something? Sep 08 02:51:34 drinfernoo: another attempt to stir up conversation? Sep 08 02:54:59 stirring the conversation also gives new joins something to tune into, though I'm not sure many actually lurk before emitting cries for help 😜 **** ENDING LOGGING AT Thu Sep 08 02:59:58 2016