**** BEGIN LOGGING AT Mon Jun 20 02:59:59 2016 Jun 20 03:10:07 impliednude, easily fixed if you google Jun 20 03:11:31 set java source and target version to 1.7 Jun 20 03:39:18 pfn> I did google. I updated sdk, jdk, and even android studio and still getting the error. Some people say also removing the beta from the tag assist but in my case it doesnt. -_- Jun 20 03:41:06 <_genuser_> hey peopel. Jun 20 03:41:30 <_genuser_> ok I see connection probs. Jun 20 03:41:33 <_genuser_> hang on, brb. Jun 20 03:42:28 impliednude, already told you the solution, set java source and target version to 1.7 Jun 20 03:42:31 <_genuser_> alright... Jun 20 03:42:37 <_genuser_> seems like it holds steady ... Jun 20 03:43:06 <_genuser_> anyone else noticing that the new the gradle plugin the slower the build times? Jun 20 04:10:59 whats the prefered controller for blue tooth to android Jun 20 04:11:01 for gaming Jun 20 04:11:09 mainly for development ease Jun 20 04:30:41 Having issue with Accessibility Service because of Nova Launcher :( Jun 20 04:30:47 dev here ? Jun 20 04:32:53 Why after the launch of any activity, nova launcher is firing an accessibility event for its own window, where as its not on the top on that moment !!! may be the event is fired little late, where is causing the problem. Jun 20 04:43:42 Presumably, if they actually checked the signatures before even running code from Flash ROM, that it would take some kind of fake signing. Also, freaking wifi. Jun 20 04:57:25 <_genuser_> hey guys anybody use a nice logger? Jun 20 04:57:29 <_genuser_> stuff like crashlytics? Jun 20 05:00:28 _genuser_: I'm using a perl script which I customize as I like Jun 20 05:00:48 full power of programming language **** BEGIN LOGGING AT Tue Oct 25 19:30:10 2016 **** ENDING LOGGING AT Tue Oct 25 19:38:38 2016 **** BEGIN LOGGING AT Tue Oct 25 19:43:04 2016 Oct 25 19:51:57 Is there a reason why pressing 'play' (run) for my app works fine, but if i hit "build apk" then it fails with a "package __ does not exist"? Oct 25 19:58:18 nvm, fixed Oct 25 20:15:24 Can anyone tell me where the hell apksigner is? Oct 25 20:15:30 https://developer.android.com/studio/command-line/apksigner.html Oct 25 20:18:37 If that link is to be believe, apksigner is installed somewhere already on my system Oct 25 20:18:41 `find` begs to differ Oct 25 20:19:06 Im on linux, mine is in /opt/android-sdk/build-tools/24.0.3/ Oct 25 20:20:12 the Android SDK Manager hmm is it new to 24.0.3? Oct 25 20:20:29 sorry- hmm is it new to 24.0.3? Oct 25 20:20:40 I don't have it in 23.0.3 Oct 25 20:21:03 and there is one apksigner.jar in /opt/android-sdk/build-tools/24.0.3/lib/ Oct 25 20:21:27 hmm, im not sure if its new to 24... Oct 25 20:22:40 weird, I have 24 preview, it's not in there Oct 25 20:22:47 but I have zipalign Oct 25 20:22:55 Thanks for your help though Oct 25 20:23:37 np :) Oct 25 20:28:06 Colt: ok weird, yeah. Had to install version 25 Oct 25 20:28:12 Found it, thanks again! Oct 25 20:45:38 Mavrik http://devdocs.io/ .... no java / android yet Oct 25 20:58:53 i wonder if the dev docs guy takes requests Oct 25 20:59:32 wait, it doesn’t have Java or Android, but it has Kotlin? Oct 25 21:03:29 <}> Hey, this https://developer.android.com/training/appbar/actions.html says you just need to add an xml file to res/menu to add actionbar items, but they dont show for me unless I override onCreateOptionsMenu(Menu menu) Oct 25 21:04:06 yup Oct 25 21:04:19 <}> Is there a reason the link doesnt mention onCreateOptionsMenu? (am I doing something wrong?) Oct 25 21:05:05 that is a really good question Oct 25 21:06:21 because they mention it https://developer.android.com/guide/topics/ui/menus.html Oct 25 21:06:40 Kind of annoying but I think they're trying to keep those docs as simple as possible Oct 25 21:08:04 i still say it’s a bug Oct 25 21:08:04 It's not the only place in there where the magical thing that joins X to Y is actually mentioned in some other part of the docs Oct 25 21:08:15 those are bugs too Oct 25 21:08:53 I'm not sure it's a bug. After all, that's just talking about how to create a menu, not how to actually use it or indicate where it should be shown. ;) Oct 25 21:09:47 I’m convinced it is Oct 25 21:10:16 if they close it as won’t fix, that’s their perogative, but not mentioning that is a serious oversight Oct 25 21:10:48 <}> I spent like half an hour wondering why my stuff doesnt work following the training guide, I found the answer later on stackoverflow Oct 25 21:10:53 <}> =\ Oct 25 21:10:54 Heh there's LOTS they don't mention every time they touch some subjects Oct 25 21:11:22 Notifications could really stand to be fleshed out more, and AlarmManager has a number of gotchas as well Oct 25 21:28:01 Is video playback different in emulators? Oct 25 21:28:35 Do all codecs work in the emulators? Oct 25 21:28:47 Considering that most video playback involves hardware accelleration of some kind, if your emu can't do that it's gonna be much slower in an emulator Oct 25 21:31:40 No. I'm trying to learn how to configure MediaCodec to play an MP4. My sample app fails with a "Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found" Oct 25 21:32:10 I read that this library doesn't work on emulator. But I don't know if the information is correct and up to date Oct 25 21:32:51 I also attempted to download the file I was trying to playback with Tube Mate and the download failed for unknown reasons Oct 25 21:33:02 i wouldn’t bet on it Oct 25 21:34:34 hey Oct 25 21:34:54 wanted to know how to kill a running app on android 19+ Oct 25 21:35:00 killProcess doesn't work Oct 25 21:35:21 but some task managers are still able to do it Oct 25 21:35:25 with accessibility Oct 25 21:35:31 SkeletonS73v3r: you wouldn't bet on what? Oct 25 21:35:49 media codecs working in the simulator Oct 25 21:35:53 use a device Oct 25 21:40:29 SkeletonS73v3r: thanks Oct 25 21:43:55 It fails in a similar way on the real device: https://gist.github.com/anonymous/f9ade879d70fa5c0c29d8b6c49e18530 Oct 25 21:44:14 Does that mean anything for you? Oct 25 22:04:40 Why do people change their IRC nick to be Halloween themed this week? Oct 25 22:04:56 cause it’s the week before halloween Oct 25 22:05:11 Is it an important thing for you? Oct 25 22:10:27 Melatonina: Is it an important thing for you? Oct 25 22:10:32 Melatonina, https://developer.android.com/guide/appendix/media-formats.html#core Oct 25 22:10:54 if you need more codecs, you need an external lib (there are plenty, from vlc to vitamio via etc) Oct 25 22:11:21 yiati: no for me Halloween is kids thing. I was just curious to understand how people feel about Halloween Oct 25 22:11:50 wrong channel Oct 25 22:12:04 adq: I just found a piece of code that works on both real and virtual devices. I'm trying to figure what's the difference. I see none. Oct 25 22:12:24 Melatonina good idea, i should build a halloween theme into my app that activates on halloween Oct 25 22:12:31 Melatonina: Every place I've worked has had a big Halloween party around this time, plus their PSL everywhere Oct 25 22:12:49 yiati: are you in the USA? Oct 25 22:14:41 Yep Oct 25 22:14:52 g00s: :) Oct 25 22:15:24 s/their/there is/ Oct 25 22:15:42 yiati: ok. Here in Europe Halloween has been imported only recently Oct 25 22:16:17 while you're making themes, put a splash screen on there! Oct 25 22:16:29 :') Oct 25 22:17:38 Melatonina: do you mean commercialized Halloween? I always thought Halloween started in Europe Oct 25 22:18:50 yiati: yes, I mean that. At least in Italy Halloween was not a thing until 10 years ago, approximatively Oct 25 22:27:21 g00s: I heard someone who used to change theme of his app based on the period of the year that an user complained about it Oct 25 22:31:45 I'm trying to cancel an alarm, but if I call this function twice (back to back with the same parameters passed in) it says alarmUp is true both times. Oct 25 22:32:16 am I doing something wrong when cancelling? Oct 25 22:35:41 eemgr: Probably so. Post code? Oct 25 22:35:56 oh wow, my apologies: https://gist.github.com/Michels10/44793c6777bbf4f0409c55ebfcd8b0b1 Oct 25 22:38:11 just updated the paste to include the code where i create the alarm too Oct 25 22:40:50 just saw this new function for API 21: https://developer.android.com/reference/android/app/AlarmManager.html#getNextAlarmClock() Oct 25 22:40:53 that may help me debug Oct 25 22:41:56 is this an ok place to ask for high level app structure advice? Oct 25 22:42:41 sure Oct 25 22:43:42 eemgr: You're creating a new intent each time Oct 25 22:44:17 Dagmar: which line? Oct 25 22:45:17 Dagmar: I was under the impression that you had to create an intent with the same info as the initial alarm was created if you wanted to delete the alarm Oct 25 22:46:45 You have PendingIntent.FLAG_NO_CREATE there. Line 26. Oct 25 22:47:15 I come from a xamarin background so i'm trying to identify whether I should heavily invest in data binding as that's what I'm used to. I'm looking to build an app based primarily around a map fragment. Is it a bad idea to try to utilize an mvvm structure to abstract code out of activities/fragments themselves? I mainly see this becoming messy with passing map information (clicks and stuff) but I like the mvvm structure Oct 25 22:47:50 Dagmar: that's for debugging to see if the alarm is scheduled or not Oct 25 22:47:57 Dagmar: the intent is created again on line 34 Oct 25 22:48:23 or are you saying line 34 should have FLAG_NO_CREATE as well Oct 25 22:48:51 A minute... This is why I hate these things Oct 25 22:48:52 KodyL: Try it out. Although I will say that MVVM isn’t a common structure for apps on Android, at least not as common as MVC or the various flavors of MVP Oct 25 22:49:24 yeah, the alarmmanager is terrible Oct 25 22:49:35 KodyL: why aren't you using Xamarin? Oct 25 22:50:20 Call me crazy but if you're looking for the existance of an alarm, a call to alarmMgr should probably be involved Oct 25 22:51:55 eemgr, take a look at `adb shell dumpsys alarm' on the device where you try to cancel some previous alarm, maybe an old alarm is still there (created with a different intent than the one in your gist), otherwise i don't see anything wrong Oct 25 22:52:07 what you could also do is using " filterEquals(Intent)" Oct 25 22:52:45 and check the result ofc, so you're sure you're indeed cancelling the correct|corresponding alarm, meaning problem is not here Oct 25 22:53:02 will do Oct 25 22:54:20 a lazy road could be to just uninstall fully the app on this device to wipe all alarms associated with it Oct 25 22:54:34 but without any guarantee Oct 25 22:55:41 It only takes one Oct 25 22:56:22 I despise services via pendingintent, but regardless of the value of alarmUp 34 creates one and then cancels it in 35 Oct 25 22:56:31 Melatonina: I actually started this project in xamarin using the mvvmcross framework after advice from a friend. I'm just fed up with the seemingly random errors and debug difficulty, though I imagine that's mostly self inflicted Oct 25 22:57:13 Melatonina: I have considered a fresh start in xamarin without mvvmcross. I'm only a few hours into this native android effort so it wouldn't be the end of the world Oct 25 22:57:25 if you’re new to Android, I’d probably suggest just doing it as a regular android app, without data binding Oct 25 22:57:33 Dagmar, l34 is just creating the pending intent, l35 is telling cancel the alarm matching this intent Oct 25 22:58:01 s73v3r: I've completed native android projects before but nothing on this scale and nothing using databinding Oct 25 22:58:26 s73v3r: Much simpler school projects tbh Oct 25 22:59:16 KodyL: thanks for the feedback about Xamarin and this MVVM framework Oct 25 23:00:15 KodyL: I'm accustomed to using WPF and although I can write and manage MVC code, I feel at home with MVVM Oct 25 23:00:36 MVC seems like 15 old code to my eyes Oct 25 23:01:11 So why the assumption that the intent id is 1 in line 26. Oct 25 23:02:24 The requestCode is 1 there and getId(c) everywhere else. As far as I know that'll keep things from matching properly Oct 25 23:02:31 that's a typo Oct 25 23:02:33 KodyL: so (imo) the least troublesome/simplest pattern in android to connect UI with backend data sources, is a simple pub-sub abstraction. Data bindings need a more elaborate framework on android, which tends to obscure solutions to an otherwise relatively straightforward problem. Oct 25 23:02:51 Dagmar: adq, i use getId(c) everywhere now Oct 25 23:03:03 These things drove me batty when I was deploying a repeating timer Oct 25 23:03:28 ...cuz they'll hang around between invocations and a few screwups later you'll look and HOLY MOTHER OF GOD why are things triggering thirty times in a row Oct 25 23:03:44 KodyL: So if it were me, I wouldn't overthink the view abstractions - instead focus on ensuring data sources can work asynchronously, off the UI thread. Oct 25 23:04:01 eemgr: I'd just pick a number and stick with it. They don't seem to share space with other applications Oct 25 23:04:15 Dagmar: i have two alarms that i'm scheduling Oct 25 23:04:17 Getting the id of the class should work well enough tho Oct 25 23:05:40 kbs: hm interesting. I'll give that some thought. Oct 25 23:05:53 thanks for the advice everyone. I'm sure I'll be back. Oct 25 23:07:01 eemgr: I trust you have already been read the riot act about The Dangers Of Wakeup Alarms Oct 25 23:07:20 this isn't for a phone, it's not an issue Oct 25 23:07:36 to be more specific, it's not for a personal device Oct 25 23:09:40 Doesn't really matter if it's for a personal device or not, actually. The issue is more one of appropriateness. If the device is supposed to never be in sleep mode then there's no much point in worrying about declaring it as a wakeup alarm Oct 25 23:14:29 adq: can you take one more quick look at this? I've posted my init and cancel function and even if i init with the exact same code i use to create the intents it still says the alrmUp is true: https://gist.github.com/Michels10/44793c6777bbf4f0409c55ebfcd8b0b1 Oct 25 23:15:57 you know, i'm going to test to see if that alarmUp triggers even if i dont create an alarm Oct 25 23:16:15 although i'm fairly certain it doesn't Oct 25 23:16:29 nvm, it mustn't with the condition in initAlarm Oct 25 23:18:43 Honestly I don't get why you're checking for the existance of the pi if it's not actually an alarm Oct 25 23:19:07 ...when you appear to be trying to avoid creating duplicate alarms Oct 25 23:19:37 Dagmar: it's executes a service and the data the service needs changes Oct 25 23:20:26 I get that but the pi by itself, as far as I know, doesn't actually do anything Oct 25 23:22:29 i may have found the issue Oct 25 23:23:15 I'm using FLAG_UPDATE_CURRENT at creation just to be sure Oct 25 23:23:25 It seemed to reliably avoid ever duplicating the damnable things Oct 25 23:23:59 yeah, got it Oct 25 23:24:05 adq: got it, thank you Oct 25 23:24:14 thanks Dagmar for the suggestions Oct 25 23:24:59 What I'd really like to see is some docs explaining in detail WTF the difference between an Intent and a PendingIntent is Oct 25 23:25:27 It could probably save people time on the order of being up there with bloody mutable() for drawables Oct 25 23:57:43 a pendingintent contains an intent to be used later Oct 25 23:57:51 that's all Oct 25 23:58:15 it wraps an intent and how it is to be used Oct 26 00:03:16 ^ Oct 26 00:05:26 an intent alone doesn't contain information on how it should be used (broadcast, service or activity) Oct 26 00:05:40 pendingintent wraps this, and has some stuff for deduplication (id, etc) Oct 26 00:10:39 Is there anyone who works for a major company like I don't know Google, Microsoft or Facebook etc. ? Oct 26 00:11:09 thousands of people no doubt Oct 26 00:11:09 Yep Oct 26 00:12:06 But how? What is more important what should i work on? Oct 26 00:12:37 torak: you are probably looking for the book, cracking the coding interview Oct 26 00:12:38 what’s you’re development question? Oct 26 00:13:57 yiati: Yes I heard that book. But i need to feel ready to get an interview. I need to know what is good for my CV and what is not necessary. These kind of things are makes a difference. Oct 26 00:14:33 torak: that's all in the book Oct 26 00:14:36 this really isn’t the channel for that kind of stuff Oct 26 00:15:38 but, if you put Mobile Development on your LinkedIn, you’ll have a bunch of recruiters asking about you Oct 26 00:16:04 s73v3r: How can i create a default image or text similar to Facebook app. I am not current user but when i was using it, It was showing for example grey blocks instead of textviews while loading. After it loads the text the box dissapears and text comes to its place. Oct 26 00:16:52 I’m guessing you’d show those default images, and then when your image is returned from the server, you replace it Oct 26 00:17:13 s73v3r: I am not at USA or something. I live in Asia. I need to have something great for them to call me there. I need to be ahead of my rivals with something. Oct 26 00:17:33 copying what they’ve done won’t do it Oct 26 00:17:43 s73v3r: Yes I know the image part. But textview. I don't know how to do that? Oct 26 00:18:04 then you’re getting into overriding layout and paint of a view Oct 26 00:18:51 s73v3r: Oh yes you mean the background of the textview! That would work fine. And when i recieve the data i will remove it. Thank you Oct 26 00:21:06 s73v3r: Hmm. wait. I want to ask one more thing. My recyclerview creates the rows after it get the value for texts in the row.xml but it doesn't wait for the images as well. Oct 26 00:21:29 I am using picasso Oct 26 00:22:28 I think its something about picasso. Probably this is a better way. So just a default image will do the work for me. Oct 26 00:22:49 Okay i answered my own question but thank you for your time :) Oct 26 00:26:02 yiati: Thank you too by the way i will read that book! Oct 26 00:36:30 Can anyone recommend a UI-mockup thing for designing screens on Android? I've never used one before; I seem to remember one being advocated in here ages ago. Oct 26 00:37:18 g00s: Do you use a UI-designer thing? Oct 26 00:38:21 Sketch is pretty good if you’re on OS X Oct 26 00:38:48 TacticalJoke: something like this? https://www.fluidui.com/demos Oct 26 00:44:17 torak make sure you have a good social credit score ! https://www.washingtonpost.com/world/asia_pacific/chinas-plan-to-organize-its-whole-society-around-big-data-a-rating-for-everyone/2016/10/20/1cd0dd9c-9516-11e6-ae9d-0030ac1899cd_story.html Oct 26 00:44:31 pen + paper Oct 26 00:45:12 g00s: But i am not in china either. Oct 26 00:46:03 oh bad assumption on my part sorry Oct 26 00:46:28 g00s: :) No problem. Thank you. Oct 26 00:46:56 "Apple flips off vim users, removes escape key in new MacBook Pro." lol Oct 26 00:47:34 and of course, it’s full of the “Apple doesn’t care about pro users anymore!” arguments Oct 26 00:47:34 g00s: Yea. They will sell it for 45$ extra. You plug it to the thunderbolt port. :D Oct 26 00:47:52 because the only pro users are developers Oct 26 00:49:27 define pro user Oct 26 00:49:35 no Oct 26 00:49:39 okay Oct 26 00:49:48 too much stuff. but i will say it’s more than developers Oct 26 00:50:54 torak i have an external USB apple keyboard - love it - but they don't make them any more Oct 26 00:50:56 and as long as the strip has an API so developers can use it as a toolbar for their apps, I think it’ll be pretty awesome Oct 26 00:52:14 g00s: Bluetooth ones looks great and easy to use. I mean its a good keyboard. But too expensive. I can buy a razor at that price. Oct 26 00:52:43 i’m an app developer, so it makes perfect sense to have one Oct 26 00:53:05 torak yeah i didn't like the BT ones ... the back is higher up for the tube thing, and complaints about interference with lots of people. not a problem, but it is when i go to the library Oct 26 00:53:10 s73v3r: to have one what? Keyboard or strip? Oct 26 00:53:17 a MBP Oct 26 00:56:03 s73v3r: I have a MBP its not too old but i prefer working on desktop. Its compiling too slow. I was lifting two sets when i press make in android studio. I have a skylake i7 6700 this feels better. But ofcourse when i go to country side mbp is my savior. :) Oct 26 00:56:32 but sometimes i think would it be better to buy a msi or monster. Oct 26 00:59:12 How can i show a processbar after user taps on submit. I want to hide every other component. And show a process bar. Should i use View.INVISIBLE for all other things or is there a better way? Oct 26 01:05:58 torak: If you want to hide every other view, there is no other way. If not, I guess an alternative would be to disable every other view. Another option might involve using one of those buttons that turn into progress indicators on click. Oct 26 01:06:20 Yet another option is a progress dialog (but this is often a bad idea). Oct 26 01:06:36 TacticalJoke: oh there is something like that? Sounds cool. Let me check it out. Oct 26 01:07:01 TacticalJoke: I meant buttons that turn into progress indicators. Oct 26 01:09:00 even better, if you’re using a semi-modern version of android, is an overlay view2 Oct 26 01:12:54 s73v3r: hmm seems better. I won't have to disable the other buttons if i overlay a transparent gray layout on top of it with a progressbar. Right? Oct 26 01:13:09 you might still want to, but you might not have to Oct 26 01:13:10 I'm trying to make a Boot on startup service. I run it on my phone from the debugger but it never asks for permissions and doesn't boot when I try to restart. Is there some trick I don't know? Oct 26 01:47:48 hi AT&T, i'd like a new 2 year Hemisphere contract Oct 26 01:51:15 g00s: no problem, that will be $GDP of USA and the souls of your first, second, and all other borns Oct 26 01:58:09 lol i didn't see the problem because i had animations turned off https://gfycat.com/RawHorribleCollie Oct 26 01:58:29 thats hilarious ... spooky halloween stuff, must be a ghost Oct 26 02:00:18 g00s: how do you create these kind of screen video to gif? Oct 26 02:00:43 i have no idea :) i missed those internet lessons. i think you can upload an mp4 Oct 26 02:01:46 g00s: yes but i think there are tools for it. like pastebin command tool. Because i saw people using this for helping eachother in IRC. Nevermind thank you Oct 26 02:02:01 bye for now everyone! Oct 26 02:03:08 i thought that website converted on the fly Oct 26 02:41:03 Everything's so long-winded on Android. Bloated XML, bloated event listeners. The tiniest change often means updating multiple files and adding 100 lines. Oct 26 02:42:05 Sometimes I'm surprised that they haven't fixed this mess already. Then I remember it's Google. Oct 26 02:42:59 This stuff ought to be illegal: `android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"` Oct 26 02:45:31 When I encounter real challenges (relating to mobile devices or similar), that's fine. I don't care if it's hard. But it feels like 75% of my time is spent battling Android. Oct 26 02:46:10 Battles that shouldn't even happen. Oct 26 02:46:50 TacticalJoke i don't know how true the claim is, but kotlin folks say it cuts down on LOC at least Oct 26 02:47:11 but yeah, i can't see how it would compensate for fussy APIs Oct 26 02:47:24 Yeah, I'm guessing it has a good impact on LOC. Oct 26 02:47:48 i figure a content provider would be the same LOC in either language Oct 26 02:51:51 One of the things I hate the most is themes. Everything's so complicated and fragile. Trying to match some system theme in X and Y but not Z either is impossible or involves jumping through dozens of hoops. Oct 26 02:52:59 yeah with too many levels of indirections / qualifiers for configs things get hard to follow Oct 26 02:53:13 And so many framework attributes values go through countless levels of indirection. When you finally chase it all the way to the end, it's not just some simple colour: it's a colour state list with a subtle tint layer. So needlessly complex. Oct 26 02:53:40 g00s: I wonder how run-time performance is. It can't be so amazing. Oct 26 02:54:13 For theme resolution, I mean. **** ENDING LOGGING AT Wed Oct 26 02:59:58 2016