**** BEGIN LOGGING AT Sat Mar 11 03:00:02 2017 Mar 11 04:35:24 is there a best way to do echo cancellation on android atm Mar 11 04:36:22 Hi guys! Mar 11 04:36:30 I'd like to ask some suggestion regarding Entity Class on Android Development.I'd like to ask some suggestion regarding Entity Class on Android Development. Mar 11 04:36:37 Usually, I'm using 1 entity for all purpose (ex: User entity to parse/generate JSON using gson, for view in recyclerview, for defining table on ORMs, etc.) Mar 11 04:36:42 And I'm thinking about writing Entity class for each purpose so I will end up with more classes. Mar 11 04:36:47 I'd like to know how you guys doing it. Mar 11 04:36:54 Thanks! Mar 11 04:50:45 heyo people. Mar 11 05:38:16 noethics: https://developer.android.com/reference/android/media/audiofx/AcousticEchoCanceler.html Mar 11 05:39:04 noethics: http://appcrawlr.com/android-apps/best-apps-echo-cancellation Mar 11 06:25:40 Would it be possible for someone to decompile my app and run it through a debugger if the app was compiled in release mode Mar 11 07:00:10 Hey guys, I'm at a Hackathon and needed help with something Mar 11 07:00:50 I want to take an image with a camera, display it on screen while it's sent to a server and then remove it Mar 11 07:00:56 I've got the camera working Mar 11 07:01:24 And the byte array Mar 11 07:09:50 good for you Mar 11 07:20:35 hey guys what do i need to do in my manifest.xml to add an application version? Mar 11 07:22:37 its in gradle Mar 11 07:23:44 ok as I saw another project of ours which was developed by a 3rd party and they have it in the manifest.xml Mar 11 07:30:59 nowadays it shall be generated by gradle Mar 11 07:31:12 sure it is afterall in the manifest Mar 11 09:39:14 hi Mar 11 09:40:11 I'd like to set preview image for a widget, and I should use avd for getting preview image Mar 11 09:40:32 I've tried to run emulator but I get an error message Mar 11 09:44:55 PANIC: Unknown AVD name [mytest], use -list-avds to see valid list. HOME is defined but could not find mytest.ini file in $HOME/.android/avd (Note: avd is searched in the order of $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/.android/avd and $HOME/.android/avd Mar 11 10:20:07 hello Mar 11 10:22:24 my app uses nanohttpd to serve a simple web interface, and I'm wondering what the proper design for this is. currently, my main activity just has it as a private object Mar 11 10:23:15 I'm also not sure what the ideal method is for sending information from that class back to the activity for UI purposes Mar 11 10:28:11 hmm... it appears there is no simple way to open a numeric keyboard when creating/showing an AlertDialog? Only methods I've found seem to require an EditText Mar 11 10:33:08 hello Mar 11 10:33:21 I've implemented Smid https://github.com/marekw2143/Smid - application which detect gestures Mar 11 10:33:50 if anybody is interested in incorporating it in his application - please let me know at mwawrzyczek@gmail.com Mar 11 10:35:47 wow, i guess i really need to create an edit text to set the keyboard type to numeric. that seems extraordinarily shitty Mar 11 11:28:02 I have a problem with I cant see the errors in logcat anymore and the adb is running, And I have ticked the USB debugging in Dev settings in the emulator Mar 11 11:56:10 if I want to move part of my app from my activity to a service, how do I retrieve info from the service for the UI when the activity is active? Mar 11 11:58:35 through your binder Mar 11 11:59:26 it's my understanding that if I use a binder, the service will be killed when the activity is, yeah? Mar 11 11:59:47 not if you do startService() beforehand Mar 11 12:00:43 ahh I see Mar 11 12:01:10 can you have a service that is foreground and bound? Mar 11 12:01:33 yes Mar 11 12:02:20 time for lots of refactoring :p Mar 11 12:02:22 thanks Mar 11 12:52:46 If I have two xml layouts that are very similar with subtle differences, is there a good way to abstract that so I can reduce the amount that's copy/pasted? Mar 11 12:54:24 Hello, anybody installed Android Studio on a Mac in the last few days? I am having annoying installation issues. Mar 11 12:55:18 "An error occurred while trying to compute required packages" Mar 11 12:56:30 shanesms: what os? Mar 11 12:57:26 ...android? Mar 11 12:57:28 shanesms: https://developer.android.com/training/improving-layouts/reusing-layouts.html is this what you're looking for? Mar 11 12:58:05 oh that's hype Mar 11 12:59:34 compile environment Mar 11 13:00:22 * cristian_c hopes shanesms doesn't compile android on an android desktop pc Mar 11 13:00:42 lol sorry I've been awake too long Mar 11 13:01:07 it's windows Mar 11 13:08:02 now to figure out why my app thinks green is a color that complements this art https://ukutabs.com/uploads/2012/04/51748399.jpg Mar 11 13:08:44 maybe android is red-green color blind? lol Mar 11 13:24:31 anyone have any idea why, after a crash/reboot, i no longer have sdk/tools/lib64 dir? Can't launch my emulator now because it's complaining it can't find i965_dri.so, which seems to be caused by it using an internal version of libstdc++. according to stackoverflow, i should be able to remove the one in sdk/tools/lib64 to force it to use the system one... (which i've had to do in the past). but suddenly i only have Mar 11 13:24:31 sdk/tools/lib, no lib64 Mar 11 13:26:21 time to check your system logs and run that diskcheck? Mar 11 13:27:11 maybe, just seems odd that suddenly the whole directory is missing with no other problems. Just wanted to make sure they didn't change things in the sdk Mar 11 13:27:19 so i'm assuming i *should* have a lib64 dir Mar 11 13:35:30 yay, android studio doesn't want to update. This is turning into a fun morning Mar 11 13:36:32 haha, it just brought up a dialog during update, basically saying "You're missing all these license txt files.. so patch can't be applied." I press ok and it applies the patch Mar 11 13:48:40 hmm.. appears there's a bug with android studio 2.3 Mar 11 13:49:10 it can't resolve dependencies to install SDK tools from the SDK Manager Mar 11 13:57:08 * DrAwesomeClaws punches android studio 2.3 in the face Mar 11 13:59:43 DrAwesomeClaws: I am trying to install Android Studio on my Mac (El Capitan). It runs, but asks to configure the SDK. After a few steps, issues the following error: Mar 11 13:59:45 "An error occurred while trying to compute required packages" Mar 11 14:00:19 hello Mar 11 14:00:43 Enrico_Menotti, I upgraded from 2.2 and got above error. Wiped my install and installed clean and now it says "Dependant package with key emulator not found!" when prompted to install sdk tools Mar 11 14:00:59 seems android 2.3 is just screwy, seems lots of people are having all sorts of issues on stack overflow Mar 11 14:01:16 Does anyone have any suggestions on how to speed up Android Studio's startup, build, times and reduce the overall lag? Mar 11 14:01:20 trying to figure out how to downgrade with my package manager right now Mar 11 14:01:33 diamondsatlast, ram, cpu Mar 11 14:02:10 afraid that's not possible Mar 11 14:02:50 Any config files that could be tweaked? Mar 11 14:02:57 diamondsatlast, sorry for the shitty answer, just frustrated over here with android studio being a huge pain in the ass. Hopefully someone has a better suggestion for you Mar 11 14:03:22 DrAwesomeClaws: I posted questions here and there, and opened an issue on the AOSP Issue Tracker. Let's see whether they answer. If not, I will try with Studio 2.2. Mar 11 14:03:26 @DrAwesomeClaws it's fine and I understand the anger at Android Studio, as it it annoying me too Mar 11 14:03:45 diamondsatlast, just don't upgrade to 2.3, it's fucked Mar 11 14:04:40 Thx for warning me, I can't understand why google had to build android studio on java instead of native, because every other IDE I am using doesn't have this lag problem Mar 11 14:06:02 diamondsatlast, my first android app was built on a netbook. Android 1.5/6. Took 45+ minutes to start the emulator Mar 11 14:06:19 and 5-10 seconds for each button click once started Mar 11 14:06:26 i don't know how i finished it Mar 11 14:07:10 @DrAwesomeClaws yep I don't even bother with the emulator, its junk, although its because I have an actual device to test on. Mar 11 14:07:13 the emulator is so slow and unresponsive on my laptop I resorted to testing on real devices only Mar 11 14:07:13 1024x600 resolution was fun too Mar 11 14:07:52 im on a decent desktop now, and the emulator these days is way better. So i don't mind it. Just wish i could figure out how to bind it to my physical keyboard so i didn't have to click the soft keyboard to type in it Mar 11 14:08:50 DrAwesomeClaws: then it would stop being an emulator Mar 11 14:08:55 @DrAwesomeClaws are we allowed to send links here, theres a page on how to bind keyboard Mar 11 14:09:42 diamondsatlast, i don't see why not, but i don't hang out in here much. Not familiar with specific rules of the channel besides common irc stuff Mar 11 14:09:48 http://android.stackexchange.com/questions/23333/how-can-i-use-my-pcs-keyboard-on-the-android-emulator Mar 11 14:10:10 shmooz, well... just because i'm piping input to it doesn't make it not an emulator Mar 11 14:10:39 ok you got me, I was being a wise guy ;) Mar 11 14:10:41 any idea why sound would randomly stop working on genymotion? vbox version is correct Mar 11 14:11:15 or why I can't get stack traces on nox player? Mar 11 14:13:09 So I am working on a youtube app that is aiming to be better than the official one, anyone have suggestions about annoyances with the official app? Mar 11 14:13:13 DrAwesomeClaws: what is your minsdk now ? Mar 11 14:14:07 shmooz, 19 currently Mar 11 14:14:18 diamondsatlast: yes it's youtube Mar 11 14:14:56 @shmooz ?? Mar 11 14:15:25 diamondsatlast: make a youtube that's not youtube Mar 11 14:15:38 @shmooz Haha, but Youtube has all the content Mar 11 14:16:01 @shmooz to be more specific, I am working on an app that is like spotify but extracts the music from youtube Mar 11 14:16:35 record labels might not like that :) Mar 11 14:16:55 diamondsatlast: so it converts the video file to mp3 ? Mar 11 14:17:18 @shmooz no, it just downloads the webm, and plays that Mar 11 14:17:25 diamondsatlast: the search and sorting options aren't comprehensive enough. IIRC you can't set a custom search date. Filters aren't good enough Mar 11 14:17:31 oh ok Mar 11 14:17:45 diamondsatlast just buy https://www.youtube.com/red Mar 11 14:18:16 @TheSchaf cost prohibitive, not enough features Mar 11 14:18:22 @evc agreed Mar 11 14:18:38 DrAwesomeClaws: my minsdk = 3 Mar 11 14:18:41 youutube isn't going to like that either, considering they have a commercial app for that Mar 11 14:18:58 downloading from youtube is against the TOS, afaik Mar 11 14:19:02 and will get your app banned from play store Mar 11 14:19:33 shmooz, i haven't put much thought into what my minsdk should be. This is my first android project in a long while, so i just kind of picked 19 randomly hoping stuff would 'just work' while im developing and then i can deal with it once i get my footing in the environment Mar 11 14:19:49 @TheSchaf I know and that part does suck, but I think f-droid would accept the app because they have multiple youtube apps there Mar 11 14:22:43 diamondsatlast: they'll sue you when you're rich until then you're probably fine Mar 11 14:22:54 diamondsatlast: search dates should be a range, not a range til today by force. Duration should be a range too, not something vague like "short" or "long". You should provide these quick options the official app has, but also provide the comprehensive options. You could also manage to sort not only by views or rating but by several at a time. Proba Mar 11 14:22:54 bly 1st by views (f.e.) then sort by rating the top by-views entries... I have no idea how to sort by two terms at the same time... Mar 11 14:24:31 @ecv noted. and definitely the combined options. Now onto my next proposal sort of, would tabs be a good idea? Mar 11 14:25:14 diamondsatlast: for? I don't see the point, sorry, elaborate? Mar 11 14:25:43 @ecv when you're watching one video, want to watch another one but don't want to close the current one Mar 11 14:26:42 oh it doesn't look like a feature many people would use but IDK, but then again my suggestion isnt either haha. Yeah I guess I would use the tabs Mar 11 14:26:45 diamondsatlast: how bout picture in picture Mar 11 14:27:12 @shmooz do you mean, like popup? Mar 11 14:27:21 if you can do it, why not... Mar 11 14:27:54 diamondsatlast: smaller video within the fullscreen video that you can swipe Mar 11 14:27:55 keeping track of play time when switching tabs, I assume Mar 11 14:28:08 that little slidedown view in-app for youtube, if you could make that similar to a facebook circle that'd be really interesting Mar 11 14:28:34 a small video window while you do other things Mar 11 14:28:43 ^ Mar 11 14:28:58 +1 Mar 11 14:29:06 great idea Mar 11 14:29:08 @shanesms I understand what you mean by small video window, but "slidedown view", elaborate? Mar 11 14:29:29 in youtube's current app, if you pull the screen down, the video goes into a minimized mode in the bottom right corner Mar 11 14:29:37 it's specially annoying if you'll play a music video and want to switch to another app it will stop playing the music Mar 11 14:30:15 @shanesms Oh, okay, I could try, but I will need to ask questions on how that even works? I get the idea in theory but not in practice Mar 11 14:30:35 @ecv yes I will be implementing background and screen off playback for sure Mar 11 14:30:41 mmmmm I can't remember the thing you want for that Mar 11 14:31:25 diamondsatlast: you could still show the video as an overlay as shanesms suggested too. That'd great Mar 11 14:31:34 diamondsatlast: it would be more optimized if you converted to audio format from a high quality video Mar 11 14:32:08 @shmooz meaning in the sound quality? then yes I should do that. Mar 11 14:33:38 yes it would sound better if you take it from the high def video but you need to convert to something like mp3 or ogg or flac Mar 11 14:34:10 @shmooz which ever one is the easiest to handle would be the one I would use Mar 11 14:34:39 would it be too involved if you made it both a media player and a youtube player? you could make something big like keeping mixed online&offline playlists Mar 11 14:35:38 @ecv no, I was thinking of combining my idea of the youtube client, and the spotify like youtube mode meaning I want to have a video mode and a music listening mode Mar 11 14:36:08 @ecv the music mode, would be a near clone of spotify with playlists and offline downloading Mar 11 14:36:16 @ecv of just the audio files Mar 11 14:37:05 TBH I never used spotify, so IDK what you mean, sorry Mar 11 14:37:56 @ecv it basically lets you search for artists and songs and shows their albums, and has a page that shows their total views, playlists, short bio Mar 11 14:38:15 @ecv and it lets you build a playlist of your favorite songs Mar 11 14:39:01 sounds good Mar 11 14:39:26 diamondsatlast: how will you maintain when youtube removes or changes url's ? Mar 11 14:39:38 @shmooz elaborate? Mar 11 14:39:49 @shmooz api or stream extract? Mar 11 14:40:10 oh ok you are using the youtube api Mar 11 14:40:19 I thought you were scraping Mar 11 14:40:58 kinda ironic Mar 11 14:41:04 using their own api to replace them Mar 11 14:41:05 lol Mar 11 14:41:10 @shmooz well for the most part I'm using the api, however I may have to scrape for suggestions, by that I mean when you search for a video and you spell it wrong but it suggests the correct one Mar 11 14:41:26 @shanesms I feel as if their lacking on their official app Mar 11 14:42:05 i disagree since they don't aim to be a music app Mar 11 14:43:13 @shanesms true they don't claim to be, what I mean though is that there are annoyances in their app Mar 11 14:45:47 anybody uses nox player for development? can you get stack traces? Mar 11 14:47:29 or can you figure out a reason why I would get stack traces in other emulators and real devices but not in nox player? Mar 11 14:48:49 @ecv doesn't executing the app in the terminal produce that Mar 11 14:49:35 no idea. I'll check, thanks Mar 11 14:50:10 @ecv i should elaborate, i meant executing the app with the 'am' command through a terminal emulator app Mar 11 14:50:31 hows the syntax please? Mar 11 14:50:39 im in adb shell now Mar 11 14:51:00 'adb shell am start -n com.google.android.contacts/.ContactsActivity' Mar 11 14:51:10 'adb shell am start -n activitynamehere' Mar 11 14:51:13 thank you! Mar 11 14:51:36 great, getting the same error in 2.2 now. I guess i can probably download the SDK separately and just point android studio to it maybe Mar 11 14:52:43 @DrAwesomeClaws could you reiterate what is wrong with it Mar 11 14:53:35 diamondsatlast, clean install of android studio. After launching i go to SDK Manager -> SDK Tools. Click Android SDK tools to install, it throws error: "Unable to resolve dependencies for Android SDK Tools" Mar 11 14:53:59 seems others are having the same issue since 2.3 came out, but this is happening on 2.2 now too. http://stackoverflow.com/questions/42733127/unable-to-resolve-dependencies-for-android-sdk-tools Mar 11 14:54:56 @DrAwesomeClaws what version are you targeting and why? Mar 11 14:55:04 diamondsatlast: nah, I get no output like that but I also checked logcat and the stack trace isn't there either... I bet this is something about nox optimizations... aw :/ Mar 11 14:55:18 @ecv no we can try something else Mar 11 14:56:05 diamondsatlast: what? Mar 11 14:56:19 @ecv I think logcat would should? Mar 11 14:56:25 diamondsatlast, sorry, not quite sure. Which version of what? The sdk tools? I'm just trying to install the one it lists in the SDK manager (25.3.1) Mar 11 14:56:56 @DrAwesomeClaws did you install Android Studio without the SDK bundled Mar 11 14:57:22 @ecv try connecting to your nox with adb, then do adb logcat Mar 11 14:57:58 diamondsatlast, i didn't think so, but possibly. I thought it came without the sdk by default and installs via the sdk manager usually? Mar 11 14:58:08 I downloaded the linux zip from: http://tools.android.com/download/studio/builds/2-2-2 Mar 11 14:58:30 @DrAwesomeClaws I see, your on linux, hmm. Mar 11 14:58:51 @DrAwesomeClaws do you have a window install availible? Mar 11 14:59:23 how should I manage preferences if I want to support API level 9? Mar 11 14:59:37 diamondsatlast: kind of, but it's a VM... which means i can't easily run the emulators on it Mar 11 15:00:00 @DrAwesomeClaws could you run the emulator outside and deploy to it? Mar 11 15:00:24 sec, android studio is throwing all sorts of exceptions to STDERR, checking to see what info this gives me Mar 11 15:00:35 diamondsatlast, i could... would prefer not to though. Mar 11 15:01:22 @DrAwesomeClaws could you be more explicit on how this started, for example did you download the Android Studio, go through initialization and let it download the sdk, emulator? Mar 11 15:04:45 diamondsatlast, I had a working version of studio 2.2.2 running as of a few hours ago. ALSA (linux sound) crashed my machine, and upon reboot my sdk/tools/lib64 dir was missing for some reason. Since studio was bugging me to upgrade to 2.3 i just decided to try that to see if it'd fix my sdk install. But that started throwing the "Unable to resolve dependencies for Android SDK Tools" when trying to install the sdk Mar 11 15:04:46 tools from it. Both those installs were via the Arch User Repository. Now i've wiped all those installs, and did a clean install. Upon start up it doesn't prompt me to initialize/install anything, and trying to force the install via sdk manager gives that error ("Unable to resolve dependencies for Android SDK Tools) Mar 11 15:06:05 @DrAwesomeClaws hmm, did you delete the .config files? Mar 11 15:06:06 and it's throwing all sorts of exceptions because it can't find adb or anything (though i thought that was part of either build or platform tools, both of which do install) Mar 11 15:06:28 diamondsatlast, no, ill look around for any relevant ones and try again in a minute maybe Mar 11 15:07:01 @DrAwesomeClaws have you thought about switching to a different system? Mar 11 15:07:43 i'd prefer not to. Mar 11 15:07:56 kind of have my workstation set up how i want it Mar 11 15:08:33 part of the problem is probably my lack of knowledge of android environment. I still constantly get confused between android versions, sdk versions, etc Mar 11 15:08:58 i would assume this was completely my fault if there weren't new stack overflow issues from others starting today with the same issues Mar 11 15:09:08 @DrAwesomeClaws no the tools are just buggy Mar 11 15:09:33 i need to take a 10 minute break from messing with this stuff though Mar 11 15:09:47 @DrAwesomeClaws what app are you developing Mar 11 15:10:25 diamondsatlast, it's a fitness tracking / motivation kind of app. Encourages people to try to do 1 physical activity every day, and has workout logging/tracking capabilites Mar 11 15:12:18 oh, hey. Randomly getting new errors Mar 11 15:12:25 Dependant package with key emulator not found! Mar 11 15:12:26 @DrAwesomeClaws so some AI, database methods, and sensor recording Mar 11 15:12:49 @DrAwesomeClaws your saying your sound system crashed? Mar 11 15:13:28 diamondsatlast, i'd like to eventually feed a bunch of the data through tensorflow or some sort of machine learning platform to identify trail networks and suggest routes / etc for users (or something, haven't thought it through fully yet) Mar 11 15:14:06 @DrAwesomeClaws that sounds advanced Mar 11 15:14:08 diamondsatlast, yeah. system locked up, and last message in logs was some alsa error about receiving a packet that's too large or something Mar 11 15:14:26 @DrAwesomeClaws is this a problem with your system or the android stuff? Mar 11 15:15:01 diamondsatlast, it seems to be android stuff. Sound causing a crash doesn't happen often, but not unheard of when i have youtube and stuff running in the background Mar 11 15:15:21 rest of the system is working fine now though, except android studio. And others are having the same issue starting this morning Mar 11 15:15:22 @DrAwesomeClaws youtube on the computer or phone Mar 11 15:15:29 computer Mar 11 15:15:57 @DrAwesomeClaws that definitely shouldn't be happening... Mar 11 15:16:39 like i said, it seems to be something related to this: http://stackoverflow.com/questions/42733127/unable-to-resolve-dependencies-for-android-sdk-tools all those are from the last couple hours Mar 11 15:16:56 and fits my issues exactly. None of the fixes described there helped though Mar 11 15:17:45 I have a problem with I cant see the errors in logcat anymore and the adb is running, And I have ticked the USB debugging in Dev settings in the emulator Mar 11 15:18:10 @DrAwesomeClaws and it looks like the person who posted it is running macOS so it may not be your setup Mar 11 15:18:30 Jonathan-, check to be sure the device is selected in the Android Monitor tab, near the top of the window Mar 11 15:19:09 thanks for the help troubleshooting btw diamondsatlast Mar 11 15:19:31 @DrAwesomeClaws yw :) Mar 11 15:19:31 DrAwesomeClaws: It is selected, and I get some of the log but not errors Mar 11 15:22:04 i have a job interview later this afternoon. If i don't fix this before then i'm going to be thinking about it the whole time, haha Mar 11 15:23:05 @DrAwesomeClaws for? are you cs in school or grad Mar 11 15:24:29 diamondsatlast, neither. I did webdev (primarily) from the late 90s until a few years ago. Got burned out on doing it professionally and went into retail instead. Now i sell camping and hiking gear and enjoy going to work. Interview this afternoon is mostly a formality, kayak instructor position with same company Mar 11 15:25:03 cool Mar 11 15:25:08 my life story breaks so many technical recruiters hears Mar 11 15:25:10 hearts Mar 11 15:26:17 @DrAwesomeClaws well sound good that you enjoy your job, that's always important. Hopefully I don't get burned out with development lol, I haven't even graduated yet Mar 11 15:27:05 haha, it's something everyone should watch out for. But i don't think i'm a typical example. I'm sure you'll be fine if you just remember to take a break once and a while and can keep a work/life balance of some sort (im bad at that) Mar 11 15:28:02 how close to graduation are you? Mar 11 15:28:19 @DrAwesomeClaws 2 months until graduation, I should clarify, i meant hs. Mar 11 15:28:41 damn, if you're still in high school you'll be fine for sure. Mar 11 15:28:54 i mean, at least skill wise. And if you enjoy the work it'll be all good Mar 11 15:29:09 @DrAwesomeClaws im a little worried about how hard cs is going to be Mar 11 15:30:04 from talking to you briefly in here I would assume you're bright and technical enough to handle it. But i never went to school for cs really... when i started in the dot com boom they were hiring anyone who knew even the slightest bit of HTML Mar 11 15:30:13 so i started working immediately out of high school Mar 11 15:31:02 @DrAwesomeClaws thx, lol the 90's must of been heaven for jobs. Mar 11 15:31:43 i made 4x more in my first, entry level programming job in the mid 90s than i do now, haha Mar 11 15:31:55 of course, working retail will do that Mar 11 15:32:58 just don't give in to impostor syndrome. That's a big issue i saw all the time, and even experienced myself for a bit. Everyone sucks at programming, we're all impostors to some extent. Mar 11 15:33:43 @DrAwesomeClaws what is that? Mar 11 15:33:53 @DrAwesomeClaws an eli5 of it Mar 11 15:34:41 its when you feel like you don't really belong in the position your in... like you got lucky or something and don't have the skills of your coworkers peers... and are an impostor in the position. It's pretty common, especially in highly technical fields. Mar 11 15:35:06 https://en.wikipedia.org/wiki/Impostor_syndrome probably a better explanation Mar 11 15:36:17 @DrAwesomeClaws Well I get that feeling when sometimes I when I apply hacks and workarounds, and don't even know why they are functioning Mar 11 15:36:25 it's horrible in a programming environment though. Dissuades people from questioning things for fear that they'll be found out or sound stupid. Makes people very protective over code and ideas, etc Mar 11 15:37:33 @DrAwesomeClaws Since you've been in the practical field, I should ask what is all the rave with things like Mar 11 15:37:40 scrum or agile Mar 11 15:37:44 i just try to remember that development of any kind is incredibly complex. I've been doing it for over 20 years. I know I have the skills of a pretty decent developer... yet i'm still constantly confused and asking stupid questions. and that's ok, and normal Mar 11 15:39:09 isn't horrible that one will never get things right first time? ugh Mar 11 15:39:39 always wasting time with stupid things that shouldn't happen in the first place Mar 11 15:39:53 @ecv like? Mar 11 15:40:48 diamondsatlast, all those methodologies have strengths and weaknesses. Sure, they're buzzwords... but there are useful ideas in just about all of them. I generally don't pay much attention to the exact definitions and techniques. I don't even really know the difference between scrum and agile development. But i do know that stand up meetings and incremental development are, generally speaking, good things Mar 11 15:41:10 like for instance look at DrAwesomeClaws problem with sdk dependencies or mine with the stack trace. These things shouldn't just happen. We should be able to focus on actually working, not on fixing side problems Mar 11 15:41:45 @ecv then yea definitely, I concur Mar 11 15:41:51 it hasn't been until the last 5-8 years that agile really has taken off. Before that it was all what would now be considered a waterfall kind of methodology. There were advantages to that as well, but in general i think a more agile/incremental approach works better Mar 11 15:42:58 @ecv maybe we should write a new java ide and android ide Mar 11 15:43:16 lol Mar 11 15:43:18 but the thing that matters most really is team communication (which is one of the main things these methodologies try to help). A good team, communicating well, will do a good job no matter which methodology they choose Mar 11 15:43:22 I just use the command line tools and vim :S Mar 11 15:43:36 and you can also build a huge mess with huge amounts of technical debt with any of them Mar 11 15:43:47 @DrAwesomeClaws +1 on the communicating part Mar 11 15:43:47 <3 vim Mar 11 15:44:15 Lol I'm gonna get hate for this but I don't understand the rave with CLI editors Mar 11 15:44:23 i still keep my source code under 80 columns wide so i can read it on a low res terminal with vim Mar 11 15:45:50 that's the gnu styling, right? I hate to break statements in several lines hahah Mar 11 15:46:00 when I want to build and run, I have a script that launches `./gradlew assembleDebug && adb install -r app/build/outputs/apk/app-debug.apk` Mar 11 15:46:25 ecv, i don't really follow any particular style, just don't like long lines in general Mar 11 15:46:28 @danix111 how do you get intellisense/autocomplete Mar 11 15:46:48 80 is kind of pushing it, but i find (most of the time), it's not hard to stay under 80. And short lines are easier to read (at least for me) Mar 11 15:47:18 i hate autocomplete :p Mar 11 15:47:23 I don't use it lol Mar 11 15:47:26 i deal with it in android studio, but it's so distracting Mar 11 15:47:39 you can do it in vim of course but I don't use it Mar 11 15:47:52 I've seen projects that had typo'd names in hundreds of places due to autocomplete Mar 11 15:47:59 does vim not even do electric braces? Mar 11 15:48:10 what is that? Mar 11 15:48:16 danix111, of course, a full ide would make that easy to fix as well... (shift-f6) Mar 11 15:48:35 guys, what database should I use? Are there better alternatives to SQLite database or I should just use that? And also, I need my application to have a pre-populated database, how do I go about this? thanks in advance :) Mar 11 15:48:44 @danix111 inputting an open brace automatically inputs a close brace Mar 11 15:48:56 yes you can, I have a plugin for that Mar 11 15:49:08 lucicam, i'm loving Google's firebase. But it may be overkill depending on your needs Mar 11 15:49:36 @lucicam use the one that has the least issues with androdi Mar 11 15:49:57 lucicam, but otherwise sqlite should work fine. Since the whole db is just a file you can populate it on your desktop with sqlite tools, or just write some code that populates it if the db doesn't exist Mar 11 15:51:22 DrAwesomeClaws: idk about overkill, if it's easy to use it's okay xD. I've used SQLite before, I was just asking if there are better, easier alternatives. Quite some long time ago I did a prepopulated database in SQLite for an app and I remember it being quite a pain. (as in, I had to use some external library to do that lol) Mar 11 15:51:31 sqlite will be much easier Mar 11 15:51:42 sqlite is great. Simple, works. Mar 11 15:52:17 the databases won't have many items in them cause I'm making the app as a demonstation pretty much. But I'll have a lot of databases and relationships between them. Mar 11 15:52:32 firebase is a whole different paradigm, and you'll be dealing with asynchronous IO, callbacks, etc. Mar 11 15:52:53 so i'd probably suggest sqlite. I just mentioned firebase because i dont know why Mar 11 15:52:56 though i do like it Mar 11 15:53:06 ughh callbacks in java are so difficult in my opinion. Mar 11 15:53:19 don't have retrolambda? Mar 11 15:53:24 Okay, then SQLite it is for now. Any easy way to prepopualte it? xD (I remember android not having a way to do that quite a few years ago) Mar 11 15:53:46 the functionality i've written in my app so far (~10,000 LOC) would be about 200 lines of javascript, haha Mar 11 15:54:27 @DrAwesomeClaws 10k loc is more then I've ever written, is this for your fitness app and why so long Mar 11 15:54:56 lucicam, you can use a tool like this: http://sqlitebrowser.org/ (doesnt have to be that one, there are many). Create your db with that. It'll save it to a file, then you can just add that file to your project and access it with the SQLite libs from the code Mar 11 15:56:09 I know about sqlite browser. Thing is, a while ago (took a break from android btw) I had to use an external library called SQLiteAssetHelper to be able to get the from my assets folder. Mar 11 15:56:10 diamondsatlast, i support hundreds of different exercise types, and each of those can have many attributes. 10,000 isn't all that much for a project like this Mar 11 15:57:02 @DrAwesomeClaws doing what, like detecting how they are exercising their body? Mar 11 15:57:14 @DrAwesomeClaws can you do a pastebin of it? Mar 11 16:01:30 no, this will be a commercial app so the code is in a private repo. But yeah, i'm integrating with the Google Fit API to pull workout sessions, and you can also create them within the app and sync it back to google fit (automatically). but the hard part of this has been the data modeling. For example, i have exercises (hiking, running, push ups, etc). And those have attributes (distance, elevation gain/loss/etc, Mar 11 16:01:30 reps, weight). Some exercises don't make sense without certain attributes (for example, a push ups session doesn't make sense without reps), but other attributes might apply to any workout... or none (heart rate, are you wearing a pack or not (adds weight == more calories burned). Mar 11 16:01:54 so figuring out how to present and store all that in a sane way has been a challenge and a fair amount of code Mar 11 16:03:03 or, when you go out for a workout in the woods, and i'm keeping track of it via gps. I have the ability to differentiate when you're running, or just walking/hiking. And the ability to mark if you stopped your midway through and did 10 push ups Mar 11 16:03:34 @DrAwesomeClaws my only suggestion would be to model your app on paper and definitely put these situations visually on it Mar 11 16:03:35 what seems like an easy idea (exercise tracking) becomes really difficult in practice Mar 11 16:03:50 well, i've got all that stuff solved for the most part now Mar 11 16:04:18 i can store and retrieve arbitrary workout sessions. Now i'm just writing all the fun code to display/track them Mar 11 16:04:21 @DrAwesomeClaws so implementing it is the difficult part now? Mar 11 16:04:54 yeah, and not really difficult. It just takes a while because i haven't done an android project since android 1.6 and i'm learning a lot as i go Mar 11 16:05:03 google maps api, fit api, location services, etc Mar 11 16:05:27 figuring out the best way to tie all those together Mar 11 16:05:49 @DrAwesomeClaws same with me, I just haven't put much time into learning the android framework, and it seems like android is taped together and about to fall apart Mar 11 16:06:18 haha, yeah. It can be pretty wacky Mar 11 16:06:28 but it is much improved since 1.5/6 Mar 11 16:07:04 there still are outdated or incomplete docs in a number of places though Mar 11 16:07:33 I'm mostly confused with fragments, activities, layouts, and list views Mar 11 16:07:49 if i ran a software shop that published any sort of API... I'd hire a full time developer who does nothing but documentation and code maintenance / cleanup Mar 11 16:08:15 +1000 on that. Mar 11 16:08:41 documentation is hella useful Mar 11 16:08:47 diamondsatlast, fragments are a pain in the ass. I just switched to using the conductor framework. No idea if it's good.... but it seems to work pretty well so far Mar 11 16:09:10 https://github.com/bluelinelabs/Conductor found it much easier than dealing w/ fragments Mar 11 16:09:17 but right now, at least UI wise, my app is pretty simple Mar 11 16:09:24 it might fall apart with more advanced UIs Mar 11 16:09:52 coming from .net winforms, android dev seems insane Mar 11 16:10:11 I'm doing custom views in my project Mar 11 16:11:07 Can RxJava Observable events be reused in Android UIs on multiple screens so that I don't have to make multiple Retrofit requests? Mar 11 16:11:38 I've read about .cache() but think I don't want to go that way Mar 11 16:12:53 I guess everyone has better things to do than read here :) Mar 11 16:13:59 @jlund summary of what rxjava does? Mar 11 16:15:26 jlund, i hear you. Just don't have a good answer for you Mar 11 16:15:33 but not ignoring you homie Mar 11 16:22:43 DrAwesomeClaws: Thanks mate! Appreciated! :D Mar 11 16:23:06 diamondsatlast: is that a request or a suggested help? Mar 11 16:23:45 @jlund "request" I was asking for you to eli5 for me what rxjava does Mar 11 16:23:55 diamondsatlast: I know rxjava basics but there seems to be many ways to do things and I want to be able to reuse objects which have been returned from Retrofit Mar 11 16:24:49 rxjava converts things like asynctask into a reactive builder pattern where the network request can be done on background threads and result be on main thread Mar 11 16:24:55 stuff like that Mar 11 16:24:58 and more Mar 11 16:25:31 Watch this! (I have) https://www.youtube.com/watch?v=k3D0cWyNno4 Mar 11 16:25:37 he did take too many questions though Mar 11 16:25:47 and seemed confused at times Mar 11 16:25:51 but useful nonetheless Mar 11 16:26:21 @jlund thx for link Mar 11 16:27:06 hi all im trying to setup firebase messaging following https://firebase.google.com/docs/cloud-messaging/cpp/client Mar 11 16:27:25 step 4. Link in the libapp.a and libmessaging.a static library Mar 11 16:27:41 but im not sure how you link these two libraries in my project Mar 11 16:27:52 could anyone give me directions on this Mar 11 16:28:01 theres no more info on the tutorials Mar 11 16:28:26 diamondsatlast, if you want a leg-up on your CS studies in college/university I highly suggest this lecture series: https://www.youtube.com/watch?v=2Op3QLzMgSY It's old, but still completely relevant. Mar 11 16:28:26 is this done through gradle or cmake ? Mar 11 16:28:54 .a files are native static libraries, so cmake I suppose Mar 11 16:29:35 @DrAwesomeClaws thx for the video links, and older sounds better, seems like it would be more "to the point" Mar 11 16:30:20 yb_legal: have you downloadede the sdk linked? Mar 11 16:30:32 it's a classic. I need to go through the lectures again, they helped me more than anything else, all around, when i was really trying to get into being a better developer Mar 11 16:30:45 jlund: ye I have the SDK Mar 11 16:30:53 DrAwesomeClaws: what is the big insight from this video other than the Lisp tutorial? Mar 11 16:31:07 and i can find he libs, but i dont know how to link it into my android studio project Mar 11 16:31:42 yb_legal: dunno if this helps you http://stackoverflow.com/questions/33164778/android-ndk-how-include-so-files-in-androidstudio Mar 11 16:31:43 ive aded compile 'com.google.firebase:firebase-messaging:10.2.0' compile 'com.google.firebase.messaging.cpp:firebase_messaging_cpp@aar' Mar 11 16:31:54 to my build.gradle Mar 11 16:32:10 but step 4 is really vague Mar 11 16:32:14 @DrAwesomeClaws As much as android is proving to be difficult, I feel like everything is starting to shift focus onto mobile and I'm not going to reach as many persons if I don't start developing for android Mar 11 16:32:29 jlund, not just that video. The whole series of lectures. The general ideas behind all computer programs, how to think about algorithms (without needing the higher maths of the analysis of algorithms courses), etc , Mar 11 16:32:35 yb_legal: why do you want to use C++ and not the normal one? Mar 11 16:32:44 Hello, I am having an issue installing Android Studio on my Mac (El Capitan): when configuring the SDK, I get this error: "An error occurred while trying to compute required packages" Mar 11 16:32:53 Any idea? Anybody got the same? Mar 11 16:33:02 @Enrico_Menotti yes many are having that issue Mar 11 16:33:10 DrAwesomeClaws: I personally think it's too vague to invest my time in it Mar 11 16:33:31 diamondsatlast: Anybody solved? Mar 11 16:33:36 jlund: I want the app to run on ios as well, and this seems like a good way to write code for both platforms Mar 11 16:33:45 Enrico_Menotti, try android studio 2.2.2, rather than 2.3. I think there's a problem with the 2.3 release Mar 11 16:34:16 jlund, it's vague enough to apply to all code you write on any platform, which is an advantage in my book Mar 11 16:34:25 yb_legal: you using cmake for the NDK stuff? Mar 11 16:34:28 DrAwesomeClaws: Yes I will think about this. It's one of my options. Mar 11 16:34:37 yes cmake Mar 11 16:35:00 danix111: yes but I didnt modify the stock file android studio setup for me Mar 11 16:35:32 yb_legal: why not follow the Android/iOS links instead of the c++ then? Mar 11 16:35:56 jlund, if you want something a little more concrete: https://www.youtube.com/watch?v=JPyuH4qXLZ0 Analysis of Algorithms. Great content, but i honestly get lost about halfway through and never made it through the whole series Mar 11 16:36:12 I imagine you'd be better off doing it separately for both platforms Mar 11 16:36:24 in cmake you link libraries with this line: target_link_libraries( lib1 lib2 ... libN) Mar 11 16:36:32 if you really want to go this route Mar 11 16:36:53 DrAwesomeClaws: I skipped through it and feel like I got back 15 years in time Mar 11 16:37:03 when I studied such things :P Mar 11 16:37:08 haha Mar 11 16:37:20 ehrm... 15+ years Mar 11 16:37:36 i never studied them, so that's a differentiator there Mar 11 16:37:39 jlund: thanks for the suggestion if I can't get through this thats what i'll do. but it shouldn't it be relatively simple to link to a static lib ?, im just very new to android studio so it's giving trouble Mar 11 16:37:44 It's insane that 2000 is 17 years ago!!! :o Mar 11 16:37:48 yeah Mar 11 16:37:57 i feel like i'm a recent high school graduate Mar 11 16:38:09 1999 was only a few years ago Mar 11 16:38:20 yb_legal you're right it should work but I don't see how you would gain anything doing that since you'd probably use XCode for iOS development anyway? Mar 11 16:38:23 and im not getting old damnit Mar 11 16:38:32 DrAwesomeClaws: yes it's crazy :) Mar 11 16:38:56 My plan is to create a killer app, retire early, go to sunny places and have fun and save the world :) Mar 11 16:39:25 is everyone on here like born before the millennium Mar 11 16:39:30 Now I'm gonna struggle with the new permission request boiler-plate :P Mar 11 16:39:40 for current location on map, yadayada Mar 11 16:39:46 ive got my life/expenses paired down pretty well now, so im hoping i can just get a trickle of passive income from the app im working on and be able to just travel around... go hiking and write code in my car Mar 11 16:39:47 jlund: yes ive got xcode for ios, but you should be able to use c++ for that too. the firebase tutorials have an ios and android section for the C++ tutorial Mar 11 16:40:14 yb_legal: yes but I don't see why you want to use c++ when you can use native android/ios Mar 11 16:40:19 but do what you want :) Mar 11 16:40:37 @DrAwesomeClaws how would you travel around in a car Mar 11 16:40:49 @DrAwesomeClaws you don't have obligations? Mar 11 16:41:07 nothing too major. Mar 11 16:41:22 jlund: uts just my preference iv developed in C++ but not swift so im thinking its more suitable to what my current knowledge base is Mar 11 16:41:44 i tend to move around a lot anyway. In the last 10 years i've lived in New Hampshire, Connecticut, Mississippi, Texas, and Colorado Mar 11 16:41:58 @DrAwesomeClaws I meant like family/kids Mar 11 16:42:09 significant other Mar 11 16:42:28 yb_legal: sometimes it's better to take the plunge and follow the normal way of doing things... more productive, easier to find help, etc Mar 11 16:43:54 i have a daughter, but she lives with her crazy mom in another state, and they move around a lot too so it's not like i can just settle where they are. I'd be able to see her more often if i were more mobile. Swing through every month no matter where they are. Other family is adults and they can deal with no seeing me for a few months here or there Mar 11 16:44:10 DrAwesomeClaws: I wanna live in southern California... drink Zingo and listen to Eagles and Beatles Mar 11 16:44:36 i want to move Austin Texas to Colorado. then my favorite city would be in my favorite state Mar 11 16:45:25 I used to want to go to Colorado, although after the recent California proposition, I want to go there instead. Mar 11 16:45:54 i love mountains Mar 11 16:46:03 CA has nice mountains Mar 11 16:46:21 DrAwesomeClaws: are you a professional Android developer? Mar 11 16:46:26 are you going to buy some of their tree's they have? Mar 11 16:46:51 I think CA has a tad too high earthquake risk, no? :) Mar 11 16:47:04 and bad air and expensive housing? Mar 11 16:47:13 jlund, no. I used to primarily do webdev and C#, and did a bit of gamedev. But now I work retail and just program for fun / on my own projects Mar 11 16:47:19 I hope to visit america some day... Mar 11 16:47:37 i release a small android game years ago, but it was pretty shitty Mar 11 16:47:48 @danix111 where do you reside? Mar 11 16:47:53 got up to about 100,000 downloads before google pulled it for not submitting a physical address though Mar 11 16:47:55 Poland Mar 11 16:48:14 @danix111 what is eastern europe like? Mar 11 16:48:20 http://imgur.com/a/LwB4T colorado! Mar 11 16:48:53 danix111: but Poland is supposed to be nice Mar 11 16:48:58 @DrAwesomeClaws have you bought any plants from Colorado? Mar 11 16:49:56 diamondsatlast, yeah. I lived there for about 8 months shortly after they legalized, and just recently swung through there on the way to utah for a hiking trip Mar 11 16:50:49 @DrAwesomeClaws I want to try it so bad, I feel like coding on trees would be amazing. Currently I live in a backwards state Mar 11 16:51:17 i have trouble writing much code without smoking a bit. I can do it, but i get distracted and frustrated far more easily if i'm completely sober Mar 11 16:51:23 AZ to be exact Mar 11 16:51:41 at least you have some nice hiking there Mar 11 16:51:45 I've never had it, so maybe someone could explain what it's like Mar 11 16:52:38 i stayed in AZ on my last trip, we stayed in Freedonia Mar 11 16:53:17 people are affected by drugs differently. For me, and others, it's a relaxing fuzzy sort of feeling. Eases the tension Mar 11 16:53:20 Northern az? Mar 11 16:53:28 yeah, right near the utah border Mar 11 16:53:43 We used to do 'Drunken Coding' competitions at PN for more or less that same reason, until someone decided to push the envelope Mar 11 16:53:50 compare trees to ethanol or nicotine Mar 11 16:53:52 ever go up to zion national park? Mar 11 16:54:37 https://www.youtube.com/watch?v=fv5fQOSNmJo video from a hike in Zion when i was there. January. Snowy cliffs were beautiful Mar 11 16:54:50 @DrAwesomeClaws no but just saw a picture of one of its mountains and it was epic Mar 11 17:11:51 My app is basically a frontend to a database (all actions modify a sqlite database, through a contentProvider in some way). Would I want to store the information retrieved from the db/cp in onSaveInstanceState, so I don't have to retrieve it when resuming? Mar 11 17:17:00 totokaka: No. That doesn't even make sense. Mar 11 17:17:45 totokaka: If it's so little information that it can be cached in sis, then it shouldnt' be a big deal to get it from the database again. Mar 11 17:18:21 totokaka: The only things you should be storing in sIS is data you intend to _continue using_ after an interruption caused by being backgrounded, etc Mar 11 17:18:51 Don't try to use it as a query cache, use it for what it was meant for Mar 11 17:22:03 , Mar 11 17:22:10 disregard that. Mar 11 17:27:20 Hi! I'm using retrofit and I keep getting "java.net.SocketException: Software caused connection abort", but it works fine with curl. Any ideas? Mar 11 17:27:58 Are you trying to make an SSL connection? Mar 11 17:28:20 Dagmar: no, it's http Mar 11 17:28:42 That's curious indeed. Mar 11 17:28:43 https://bpaste.net/show/d18cdf85465d that's the curl log Mar 11 17:29:23 Spelling, dude. Mar 11 17:29:30 Did you copypasta that or did you type it? Mar 11 17:29:30 ? Mar 11 17:29:40 copy paste Mar 11 17:29:44 Look real close at line 12. Mar 11 17:29:55 Whatever you've got running on the server end has a typo Mar 11 17:30:00 well, I typed that on my server :p Mar 11 17:30:07 yeah, but that's not the issue though Mar 11 17:30:15 I tried without a payload too, same deal Mar 11 17:30:27 With all due respect, you have no idea what the issue is Mar 11 17:30:41 "Content-Lenght" != "Content-Length" Mar 11 17:31:00 Curl is not very finicky about the quality of a response Mar 11 17:31:02 I know I misspelled it Mar 11 17:31:10 Retrofit probably _is_ Mar 11 17:31:17 why would the quality of the response cause a socket exception Mar 11 17:31:38 Because both of them are expecting a Content-Length header Mar 11 17:31:44 ...which your server is not sending Mar 11 17:31:55 Curl just doesn't consider it to be a critical error. Mar 11 17:32:35 alright, I fixed the typo https://bpaste.net/show/4ec800a154cf Mar 11 17:33:34 is that a custom-made server? Mar 11 17:33:38 that obviously did not fix it Mar 11 17:33:40 danix111: yes Mar 11 17:34:49 There'd better be _two bytes_ in the response Mar 11 17:36:10 curling from android throws a recv failure Mar 11 17:36:22 interesting Mar 11 17:38:43 Obvious. Mar 11 17:39:10 If the response says there's two bytes, then there'd better be _two bytes_ Mar 11 17:39:16 In your log, ther'es _no_ bytes Mar 11 17:39:36 how many bytes is "OK", then Mar 11 17:40:00 Do you see a > or an < in front of that? Mar 11 17:40:45 Dagmar: do you see it here? https://bpaste.net/show/00ed4d93394e Mar 11 17:40:54 I guess google.com is also returning no bytes Mar 11 17:41:21 No, but I'm not going to sit here and argue you into listening Mar 11 17:41:31 lmao Mar 11 17:42:04 You've really no idea how much time I've spent coding for web transport Mar 11 17:42:16 okay? you seem pretty clueless either way Mar 11 17:42:25 Your first pastebin shows that the server is sending *nothing*. Mar 11 17:42:26 that curl response obviously has two bytes Mar 11 17:42:36 Dagmar: no, it shows it's sending "OK" Mar 11 17:42:42 The "OK" you seem to think is a response comes _after_ lines 14 & 15, which are part of curls verbose commentary Mar 11 17:42:49 ... no Mar 11 17:42:59 Yes. Mar 11 17:43:08 so curl 192.168.4.1 will not show OK? Mar 11 17:43:44 Do you not see the difference from your second pastebin/ Mar 11 17:44:27 Curl emits the body as-is, but once that's done goes back to starting lines with <, >, or * Mar 11 17:44:44 huh! https://bpaste.net/show/1a4c0d737e71 Mar 11 17:45:31 it *is* sending two bytes Mar 11 17:45:52 Then retro should be happy with it now Mar 11 17:45:55 Otherwise, break out wireshark Mar 11 17:46:18 and look for what Mar 11 17:46:23 be careful not to let the shark byte you Mar 11 17:46:29 Anything *not 100% correct* Mar 11 17:47:06 i'm pretty sure this is a transport level issue Mar 11 17:47:08 "OK\n" can look suspiciously like "OK" Mar 11 17:47:09 but ok Mar 11 17:47:20 no, it's sending "OK", not "OK\n" Mar 11 17:48:20 TCP sockets aren't that complex, but hey, wireshark should show any 'transport level issues' quite handily Mar 11 17:49:08 You're not really testing what's going on with retro by using curl, anyway Mar 11 17:49:15 Clearly, there is a difference Mar 11 17:49:41 Be glad it's not https at least. Wireshark wouldn't be able to help you there. Mar 11 17:49:53 sure it would Mar 11 17:50:07 i can just use a self signed cert Mar 11 17:50:29 It wouldn't let you see what's going on _inside_ the connection Mar 11 17:50:36 ... yes Mar 11 17:50:57 ...and then we'd need to have another talk about why curl doesn't always give a damn if the remote cert is valid and there would be more pointless arguing about that Mar 11 17:51:03 you can mitm https if you have control of the device Mar 11 17:52:32 Well then, go ahead and MITM the connection Mar 11 17:52:36 I do not care. Mar 11 17:52:44 i care Mar 11 17:53:04 Dagmar: are you always that condescending? Mar 11 17:53:12 Are you always this argumentative? Mar 11 17:53:15 yeah Mar 11 17:53:34 You might want to be _less_ argumentative with people when you're asking for help Mar 11 17:54:14 Hard to do when the helper is wrong :) Mar 11 17:54:45 I put up my first website in the _early_ 90's on a bloody VMS machine. Mar 11 17:54:55 I *might* actually know some shit Mar 11 17:55:01 you'd think Mar 11 17:55:29 Cuz it's not like I haven't been coding things that use http transport since before color porno or something Mar 11 17:55:29 Dagmar, Sorry for disappearing. The example for sIS from the documentation stores a score and level from a game in the sIS. Let's say my persistent storage for these values was a SQLite DB, would it then not make sense to store them in the sIS? Mar 11 17:55:53 http://web.archive.org/web/19981207050215/http://www.3dgaming.net/ that was my first big project. Whole site was hand edited HTML. Mar 11 17:56:16 with lots of comments in the templates and rules for how to copy/paste it Mar 11 17:56:25 Dagmar: the thing is this issue has absolutely nothing to do with HTTP Mar 11 17:56:30 totokaka: Not as a means to prevent having to retrieve them again, tho'. SIS is there as a lifeboat for state data Mar 11 17:56:30 it's a transport layer problem Mar 11 17:58:21 totokaka: If it's important enough data you're going to need to also think about hooking one of the methods that happens when the program is _really_ going away Mar 11 17:58:36 In my app you can expand elements, would it make sense to store what elements have been expanded in the sIS? This does not need to be persistent Mar 11 17:59:15 That's what it's for Mar 11 17:59:18 Dagmar, I commit to the database in a background thread when each change happens, so I don't think data loss will be a problem. Mar 11 17:59:31 Cool, then I think I understand it Mar 11 18:00:04 Can you not use android:drawableLeft="@drawable/ic_lock" then app:passwordToggleEnabled="true" is on? because I cant see the icon only the eye Mar 11 18:13:53 Hi guys, I've got a question about calabash-android and if anyone with experience using this framework for integration tests, your help is much appreciated. My question is whether there's a way to abort the entire integration test if any one feature or scenario fails. My objective is to have my integration tests fail faster and notify me as soon as any one fails. Thanks for your time. Mar 11 18:14:46 Hey, is there a lib that works somewhat like parcelable, but for a persistable form instead of a Parcel? I really love the control you get when writing to and reading from parcels, and it's just more of a pain with things like GSON. Mar 11 18:19:16 Exerosis Parcelable API for placing arbitrary objects into a Parcel) is designed as a high-performance IPC transport. As such, it is not appropriate to place any Parcel data in to persistent storage: changes in the underlying implementation of any of the data in the Parcel can render older data unreadable. Mar 11 18:30:55 bluetoothdevice keeps bond state "bonding" Mar 11 18:31:05 raoul11: Yea IK, I just wondered if there was a library that used a similar creation method writeToParcel(Parcel in) and creator like structure... Mar 11 18:33:00 looks it doesn't like android's own bluetooth settings screen Mar 11 18:36:50 that's android 6. works well in 4.4 Mar 11 19:52:22 hi. been away from android development for a few months and upgraded android studio from 1.5 to 2.3. now get this error: https://code.google.com/p/android/issues/detail?id=244463 . any solutions? running macos. Mar 11 19:59:56 saapas: Keep clicking the update button if it'll let you. You might have to kill AS and restart it. USUALLY it gets things untangled on it's own Mar 11 20:00:17 You *may* have to just uninstall the thing and reinstall it since you were "away" for so many revisions Mar 11 20:05:36 Dagmar, that error message appears after I click the update button. I've restarted AS several times Mar 11 20:08:45 saapas: The simplest thing to do then is probably going to be to do a fresh install Mar 11 20:08:54 *Lots* has changed since 1.5 Mar 11 20:09:58 guess I'll try that next. the upgrade went fine Mar 11 20:14:49 saapas, it's a problem with the 2.3 release. I'm getting the same thing, as are others as of this morning Mar 11 20:15:03 and it's persisting even after downgrading to 2.2.2 Mar 11 20:15:06 oh shit Mar 11 20:15:25 well, got no money in this Mar 11 20:15:41 google the error message, should get a stackoverflow page from today with people complaining about it Mar 11 20:15:59 yeap. I did. Mar 11 20:16:48 im stuck now where i uninstalled my SDK while troubleshooting and now i can't get android studio to download/reinstall it Mar 11 20:18:02 you probably already found it, but some solutions possibly: http://stackoverflow.com/questions/42732684/dependant-package-with-key-emulator-not-found-while-updating-android-sdk-and-too Mar 11 20:21:52 Damn. Something probably broke the repos again then Mar 11 20:23:17 im just gonna install sdk from bash once im done being lazy Mar 11 20:31:46 LOL tried to set up AS 2.3 from scratch with another user account. didn't even finish due to an unknown error. what a piece of crap. Mar 11 20:33:04 Sounds like something's definitely broken in the repos then Mar 11 20:33:06 It's happened before Mar 11 20:33:07 DrAwesomeClaws, yes, tried all those. thanks Mar 11 20:36:02 im not criticizing, but i've messed up far worse. But i wonder how this stuff gets through tests/integration? Mar 11 20:36:30 thinking they haven't done their (one) job Mar 11 20:37:53 sdkmanager gives the same error, and "Error: Unable to compute a complete list of dependencies." Mar 11 20:39:59 hmmh you're supposed to use $SDK/tools/bin/sdkmanager to update the SDK without AS now? Mar 11 20:41:05 danix111, no, not saying that and have not seen such claim anywhere Mar 11 20:41:44 sdkmanager is telling me that 25.3.1 is the newest version available while `$SDK/tools/android sdk` is telling me that 25.2.5 is the newest Mar 11 20:43:49 funny Mar 11 20:44:00 talking about SDK tools of course Mar 11 20:44:19 I get same result Mar 11 20:52:47 Is there anything wrong with this code? C:\Users\owner\AppData\Local\Keybase Mar 11 20:52:50 https://gist.github.com/Redrield/f417d6f1ec0610a5f8f847a833739399 Mar 11 20:52:51 Rather Mar 11 20:53:04 I'm particularly worried that something may break when I do JSONObject(json.toString()) Mar 11 21:22:25 is there any way to set android proxy settings with adb without root? Mar 11 21:23:05 so far I've come across editing the sqlite db which needs root, the proxysetter app which doesn't improve much as far as I can tell... Mar 11 21:35:49 When I have a RelativeLayout inside a ScrollView, and I try to center in parent, the view is only centered horizontally Mar 11 21:35:56 Even though horizontal and vertical are set to match_parent Mar 11 21:36:00 Anything I can do? Mar 11 21:39:04 seems to work fine for me Mar 11 21:39:51 Put the scrollview inside something with a height Mar 11 21:39:59 http://i.imgur.com/FrPL69c.png Mar 11 21:40:53 or do you mean center the scrollview? Mar 11 21:42:26 Let me show you what I mean Mar 11 21:42:28 hmm indeed, the scrollview doesn't center vertically Mar 11 21:42:53 https://gist.github.com/Redrield/b06f260c8fbba5a1142454ec7239337f Mar 11 21:42:56 That's what I have Mar 11 21:43:07 oh wait, I put the scrollview in a linearlayout, derp Mar 11 21:44:31 I'm guessing this is what Kotlin code looks like? Mar 11 21:44:49 That's using Jetbrain's Anko DSL Mar 11 21:45:12 It's just a ScrollView at the root, RelativeLayout inside, TextView inside that, with centerInParent applied Mar 11 21:45:55 It's weird, cause every other aspect of the layout works, it's just centering vertically that fails Mar 11 21:48:54 I can only assume it's missing some of the layout parameters Mar 11 21:49:12 The xml equivalent of what you're after being http://i.imgur.com/gZVwdan.png Mar 11 21:49:55 Hm Mar 11 21:49:59 I don't have the gravity set Mar 11 21:50:01 AHA Mar 11 21:50:05 Thanks so much Mar 11 21:50:26 You'd think that'd be what centerInParent() would do but ... Mar 11 21:50:44 No, on the RelativeLayout Mar 11 21:51:00 The only params I set on that were matchParent for width and height Mar 11 21:51:06 Well, it works now Mar 11 21:51:07 Thanks Mar 11 21:51:09 \o/ Mar 11 21:53:29 Huh... Mar 11 21:53:31 nvm Mar 11 21:54:17 http://prntscr.com/eisvv7 Mar 11 22:03:44 hi! anyone got experience with calling java from jni? Mar 11 22:04:13 i’m trying to do it from a thread to make things worse… Mar 11 22:04:25 the error i get is JNI CallVoidMethod called with pending exception java.lang.NoSuchMethodError: no non-static method "Ljava/lang/Class;.nextTrack()V" Mar 11 22:05:16 Code! Pastebins of all the things! Mar 11 22:05:17 java/lang/Class? Mar 11 22:05:22 sounds wrong Mar 11 22:06:09 nextTrack isn't a method in java.lang.CLass Mar 11 22:06:12 s/CL/Cl Mar 11 22:06:51 Redrield; i was like that a bit too Mar 11 22:07:09 What do you mean? Mar 11 22:07:47 that i’m thinking that that looks weird Mar 11 22:07:51 i’ll pastebin some Mar 11 22:11:08 http://pastebin.com/H5Q4iqpi Mar 11 22:11:37 it’s based on hello-jnicallback from the android-ndk things from github Mar 11 22:12:20 so this fails jmethodID nextTrackId = (*env)->GetMethodID(env, pctx->mainActivityClz, "nextTrack", "()V"); Mar 11 22:12:45 function in java: private void nextTrack() { Mar 11 22:12:47 like the example Mar 11 22:13:52 Roughy: Any idea what I can do to fix that? Mar 11 22:14:16 Adding gravity fixes centerInParent, but everything else moves to the center and ruins the layout Mar 11 22:15:28 TheSchaf: java/lang/Class seems wrong indeed, but why? Mar 11 22:23:39 anyone? Mar 11 22:24:02 Testing, sec Mar 11 22:28:57 Just did a barebones test Mar 11 22:29:01 https://hastebin.com/jikonukevi.php Mar 11 22:29:02 this works fine Mar 11 22:29:23 Note that you can just call env-> without supplying env to the method these days Mar 11 22:29:38 (I thought that might be what's mucking you up, but it probably wouldn't take the env as a class object) Mar 11 22:30:40 hello Mar 11 22:31:14 so aside from that, make sure the class object supplied is actually what you expect it to be? Mar 11 22:31:20 I want to start programming android as a freelancer, where should I start? Mar 11 22:31:32 Maybe try fetching it from the object ( GetObjectClass() ) instead Mar 11 22:32:32 alexpfx: Assuming you know some java, https://developer.android.com/training/index.html Mar 11 22:32:36 Roughy thank you for your efford Mar 11 22:32:38 t Mar 11 22:32:51 “make sure the class object supplied is actually what you expect it to be?” how would i do that? Mar 11 22:33:21 that... is a very good question Mar 11 22:35:13 * Redrield sighs Mar 11 22:35:14 Someone? Mar 11 22:35:15 :/ Mar 11 22:35:21 Kinda stuck until I can get this fixes Mar 11 22:35:23 s/es/ed Mar 11 22:38:31 Redrield: If you had an xml layout I could help you, but with what you're doing you're probably just going ot have to go wrap your head around layouts Mar 11 22:38:43 Roughy: trying here, you’re trying c++ i think? Mar 11 22:39:26 I am technically using c++ I suppose, yeah Mar 11 22:40:28 it would appear the class being passed is wrong, for whatever reason. Using GetObjectClass to get it directly from the activity instance would probably be the first thing to try. Mar 11 22:41:41 tried to do this in the create function Mar 11 22:41:42 JNI DETECTED ERROR IN APPLICATION: use of invalid jobject 0x430000 Mar 11 22:41:52 yes Mar 11 22:42:13 JNIEnv* env, jobject instance, jobject mainActivity Mar 11 22:42:32 why would the mainActivity be in the third argument? Mar 11 22:42:56 I don't mean learn android. I mean start to make money with android as a freelancer Mar 11 22:43:38 niekniek: What line is that? Mar 11 22:44:38 void Java_nl_vlessert_vigamup_MainActivity_createEngine(JNIEnv* env, jobject instance, jobect mainActivity) Mar 11 22:44:47 in there i’ve put Mar 11 22:45:05 Roughy: All I want is a RelativeLayout inside a ScrollView, where I can center Views vertically Mar 11 22:45:10 Not all of them, just those that I specify Mar 11 22:45:29 Because I'm trying to center some Views on the screen, and that doesn't work because of some quirks with what I'm doing Mar 11 22:45:43 Doesn't even need to be a ScrollView at the root, I just want a scrollable RelativeLayout Mar 11 22:46:45 niekniek: If that's following the usual pattern, instance there is usually named "thiz", eg it's probably a reference to the parent java instance (if it's a non-static method) Mar 11 22:46:49 when using jobject instance i’m back to my original error Mar 11 22:48:07 yeah, so the first argument is the enviroment, the second one the instance and where does the third one come from? Mar 11 22:48:28 thid one would be an argument/param Mar 11 22:48:54 In my haste I set up a static method, so instance/thiz is null for me Mar 11 22:49:05 and I'm passing an instance of my mainActivity as the argument Mar 11 22:49:42 hello,does anyone know how to make a drawable in a drawablestatelist scale to the size of the view? So far i can only get it to show at it's native size Mar 11 22:50:39 e.g. on the java side it's public static native int nTest(Object activity); Mar 11 22:50:42 DAMN i found it Mar 11 22:51:15 in Java i had “public static native void createEngine();”, now it’s “public native void createEngine();” Mar 11 22:51:45 ahhh, and you were trying to use the null instance/thiz? Mar 11 22:52:50 yep… which actually makes the second parameter a class object pointer... Mar 11 22:53:01 TIL Mar 11 22:53:04 I upgraded to android studio 2.3 just few days ago, and am unable to install apps into emulators. says it's already installed then tries to uninstall but fails. anyone else have this problem or heard about it? Mar 11 22:53:24 no problem installing an app to real device Mar 11 22:54:39 Roughy: thank you for trying! it put me on the right path Mar 11 22:55:00 No problem, I learned something new too Mar 11 23:00:15 Roughy: Any idea how I can just make a scrolling RelativeLayout with everything working? Mar 11 23:08:36 Redrield: Define, in detail, what "everything working" entails Mar 11 23:09:06 if I can get a good idea of the final layout you want, I'll whip you up an xml layout, and you can use that to figure things out Mar 11 23:09:17 http://prnt.sc/eisvv7 -> This doesn't really tell me what is supposed to go where Mar 11 23:09:41 all I know so far is that you want something centered, and everything looks centerd there. Mar 11 23:10:35 Roughy: At the moment, centerVertically() doesn't work Mar 11 23:10:45 It scrolls, and everything else works that I can use for alignment Mar 11 23:10:51 But centerVertically() doesn't work Mar 11 23:10:59 I just want that to work alongside everything else Mar 11 23:11:24 the centerVertically() methods aren't actually a thing in standard xml layouts, so I have no idea hwat they do Mar 11 23:11:44 presumably set the layout_gravity Mar 11 23:12:00 That's just the equivalent of android:layout_centerVertical in this DSL Mar 11 23:12:14 That's the one thing that doesn't work Mar 11 23:12:32 http://prnt.sc/eisvv7 Mar 11 23:12:36 So what here isn't where it's supposed to be Mar 11 23:12:44 ideally a quick shop of what it should look like would be nice Mar 11 23:12:47 Let me show you the layout as it used to be Mar 11 23:17:41 http://prntscr.com/eittep Mar 11 23:17:43 Roughy ^ Mar 11 23:18:49 That looks exactly like the other one, except centered vertically, which ... is sort of what I thought you were trying to do Mar 11 23:18:52 * Roughy clearly isn't getting it Mar 11 23:19:34 I only want that one TextView sandwiched right under the spinner to be directly in the center of the View Mar 11 23:19:43 Everything else should stay where they are in that picture Mar 11 23:19:53 Applying gravity to the layout centers everything Mar 11 23:19:57 oh Mar 11 23:20:36 And the entire thing is a scrollview? Mar 11 23:21:29 The heirarchy is ScrollView --> RelativeLayout --> everything else Mar 11 23:21:36 I just want a RelativeLayout that can scroll Mar 11 23:22:17 gimme a sec to finish consuming my fuel Mar 11 23:23:07 (pleasedontbecoffee) Mar 11 23:23:12 eggs, and bread Mar 11 23:23:14 also milk Mar 11 23:23:18 I hate coffee Mar 11 23:23:29 Thank you :D Mar 11 23:27:39 so, scrollview -> relative layout. Mar 11 23:27:44 Yes Mar 11 23:27:45 the relative layout should have *stuff* at the top Mar 11 23:27:54 and a textview (or whatever) at the center Mar 11 23:28:05 The RelativeLayout should function as though it is the root Mar 11 23:33:47 hang on, things are not doing what I expect them to Mar 11 23:35:07 Intesresting note: you cannot use android:layout_height="match_parent" inside of a scrollview Mar 11 23:38:42 unless set to always fill the viewport Mar 11 23:40:52 So... something like http://i.imgur.com/UQRgbOG.png ? Mar 11 23:41:16 Note that the center thing is not literally center, meaning it can be overlapped by the content stuff if content is tall enough Mar 11 23:41:26 s/not/now Mar 12 00:41:09 uh? I though java compared literals character by character when using == Mar 12 00:41:25 javascript does, right? Mar 12 00:42:03 so I need to use some sort of strcmp function...? Mar 12 00:42:59 .equals Mar 12 00:43:08 var.equals("foo") Mar 12 00:43:17 thank you Mar 12 01:34:38 where can I search for new app ideas? Mar 12 01:36:20 alexpfx, Everything I've seen says "Look for something on the play store you think you can do better, then do it" Mar 12 01:36:43 But I've also gotten a few ideas from friends that I can't do because of lack of devices, like Wifi P2P chat service Mar 12 01:37:06 hmm Mar 12 01:38:00 I want to make the final project for udacity android course Mar 12 01:38:19 but I'm out of ideas Mar 12 02:32:03 hello Mar 12 02:32:11 I have question Mar 12 02:32:30 Yes? Mar 12 02:32:33 where the Android Nougat Source code? Mar 12 02:34:03 I want to use Ubuntu to complie it to install of my devices Mar 12 02:34:31 https://android.googlesource.com/ Mar 12 02:34:41 source.android.com Mar 12 02:34:45 Those are the websites related to AOSP Mar 12 02:34:57 And I think the code there should be reflective of nougat Mar 12 02:37:06 https://android.googlesource.com/device/generic/arm64 Mar 12 02:37:22 that is source code of arm64 deivces? Mar 12 02:37:42 I haven't worked with AOSP or derivatives at all, I just make apps Mar 12 02:37:51 But from what I can see, code is always very fractured Mar 12 02:38:02 That just looks like configs for the chip Mar 12 02:39:05 You're gonna have to find someone who's actually played with this stuff, or just explore Mar 12 02:39:11 is look like this website shown? Mar 12 02:39:16 https://android.googlesource.com/device/generic/arm64/+/refs/tags/android-6.0.1_r57 **** ENDING LOGGING AT Sun Mar 12 03:00:00 2017