**** BEGIN LOGGING AT Thu Jul 07 02:59:59 2016 Jul 07 03:11:37 so i re-imported my project into AS 2.1 and tried to debug it but it fails to run because the NDK library does not load. Jul 07 03:11:38 findLibrary returned null Jul 07 03:11:47 yet the lib.so is in the apk Jul 07 03:13:21 i have libs/libnaf.so i have system.loadLibrary("naf"); Jul 07 03:13:50 it needs to go into an abi folder Jul 07 03:13:52 Couldn't load libs/naf Jul 07 03:14:13 it did not create that folder Jul 07 03:14:52 i assume that goes under the app directory? Jul 07 03:14:57 with build libs and src ? Jul 07 03:15:58 actually its currently under app/src/main/jniLibs Jul 07 03:21:04 java.lang.UnsatisfiedLinkError: Couldn't load naf from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.reality.retrorpg-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.reality.retrorpg-2, /vendor/lib, /system/lib]]]: findLibrary returned null Jul 07 03:21:10 thats the actual error Jul 07 03:21:46 there is no vendor/lib or system/lib directory in the project Jul 07 03:21:53 or inside the apk that i can see Jul 07 03:22:56 thers a lib/armeabi/libnaf.so Jul 07 03:24:07 it tries some default path since it did not found the lib in the expected one Jul 07 03:24:15 but pfn already told you, you need to have the ABI subdir under Jul 07 03:24:20 (the arch) Jul 07 03:25:02 i have lib/armeabi Jul 07 03:25:25 not lib/arm/armeabi/foo.so Jul 07 03:25:27 unpack your apk and verify it's properly packaged Jul 07 03:25:31 i did Jul 07 03:25:35 using midnight commander Jul 07 03:25:44 it contains a lib/armeabi/libnaf.so Jul 07 03:27:18 why would AS pack the apk incorrectly? Jul 07 03:27:23 try armeabi-v7a maybe Jul 07 03:27:48 or x86 if you're testing on an x86 emu or vm Jul 07 03:28:00 mark4, why would AS be immune of bugs :> Jul 07 03:28:03 no the .so is arm asm :) Jul 07 03:28:18 adq i dont expect it to be but that one would be very supprising lol Jul 07 03:28:25 man... Jul 07 03:29:19 and by the way: there is no vendor/lib or system/lib directory in the project << there is a / for the root dir Jul 07 03:29:31 it just searches default paths in the system fyi Jul 07 03:29:39 it's a classic behavior when loading lib Jul 07 03:29:41 inside the apk u mean? Jul 07 03:29:43 no Jul 07 03:29:46 there is a slash Jul 07 03:29:55 but it won't find your lib there of course Jul 07 03:30:12 ... Outsourcing UI / Launcher Icon design? Suggestions? Jul 07 03:30:24 building under intellij idea (no gradle) the apk launches fine, the lib is found Jul 07 03:30:39 im migrating to as 2.1 simply to get with the gradle times Jul 07 03:30:46 Currently on Freelancer.com trying to navigate through mountains of graphic designers from India as they're cheap Jul 07 03:31:25 renaming armeabi/libnaf.so to armeabi-v7a/.... didnt work btw Jul 07 03:31:37 dang, then idk Jul 07 03:39:09 java.lang.UnsatisfiedLinkError: Jul 07 03:39:39 thats usually caused by not having jniOnLoad not return the correct version Jul 07 03:39:51 but thats not whats happening here Jul 07 03:47:15 if you have unresolved shared libs, it also results in that error Jul 07 03:49:08 define unresolved shared libs Jul 07 03:49:12 ones they cant find? Jul 07 04:02:52 http://stackoverflow.com/questions/16683775/include-so-library-in-apk-in-android-studio/17131418#17131418 Jul 07 04:03:04 i seriously hope thats NOT the actual answer Jul 07 04:03:26 if the apk needs the lib directory zipped up into a jar file the BUILD system should freeking do that Jul 07 04:05:57 they keep freeking moving the goalposts on project structure all the time Jul 07 04:06:23 discrete slider lib https://github.com/lawloretienne/DiscreteSlider Jul 07 04:06:26 this is my biggest gripe with gradle, every time i rtfm how to fix a specific issue the fix is 3 weeks old and no longer works Jul 07 04:06:35 kinda weird the stock slider doesn't handle that case ... seems basic Jul 07 04:07:03 the build system does copy ndk libs already Jul 07 04:07:37 gradle also sucks, however Jul 07 04:07:49 you won't ever catch me using it Jul 07 04:09:37 everything about it seems like a mountain of a solution to a mole hill problem Jul 07 04:09:57 and learning it is a BITCH because you have to relearn it every 3 weeks with android Jul 07 04:10:03 nothing that used to work works any more Jul 07 04:10:55 so im trying solution 1 on site 1. solution 2 on site 2, solution... Jul 07 04:11:21 mark4 but SO driven development is typical of many things not just gradle :) Jul 07 04:12:18 SO? Jul 07 04:12:27 shared object Jul 07 04:12:32 i mean stack overflow :) Jul 07 04:13:35 stack overflow is awesome for finding solutions to any given problem if you have time to wade through the 4 or 5 hundred solutions to your given problem that it has threads for till you find the one that works Jul 07 04:14:32 mark4 https://xkcd.com/979/ Jul 07 04:15:53 looking in the apk now there does not seem to be any libs dir in there any more Jul 07 04:17:18 http://stackoverflow.com/questions/16952388/how-to-change-libs-directory-in-gradle/16993006#16993006 Jul 07 04:17:36 and THIS solution is just sooooooo specific to HIS shit that i dont freeking understand any of it lol Jul 07 04:17:40 but its the same problem Jul 07 04:18:10 and i do not like messing inside build.gradle because that shit changes format all the time Jul 07 04:18:24 thers no telling if this is even applicable any more Jul 07 04:19:11 as 2.1 imported my intellij idea project. it KNOWS there are native libs because it copied them into jniLibs/armeabi during the import Jul 07 04:19:40 With Gradle 0.7.2+ you can put your native libraries directly into src/main/jniLibs and it will work automatically. – shkschneider Apr 10 '14 at 9:02 Jul 07 04:19:42 right Jul 07 04:19:44 except its not Jul 07 04:21:00 all i have in my apk now is assets and res Jul 07 04:21:03 well meta too etc Jul 07 04:21:08 no libs Jul 07 04:21:51 lol gradle 0.7.2 ? Jul 07 04:22:03 yup Jul 07 04:22:07 OOOOOLLLLLLD solution Jul 07 04:22:20 0.7.2? That's... like... before Gradle was created Jul 07 04:22:49 i remember those days - very tumultuous Jul 07 04:24:55 gradle is not copying my lib into the apk Jul 07 04:24:58 fscking google Jul 07 04:25:08 mark4 maybe they exclude forth :) Jul 07 04:25:39 and i do not trust ANYTHING i read on the web that claims to be a solution because they are all soo freeeeeekin old Jul 07 04:25:54 how do i make the build system put the lib in the apk? Jul 07 04:26:22 i would think, that would just basically work O.o Jul 07 04:26:55 "it just works (tm)" is scary fscking shit. thats how ubuntu works. its great when it does, your ROYALLY FUCKED when it doesnt Jul 07 04:30:14 btw, how do you make AS re index your project? Jul 07 04:30:50 mark4 see the file menu Jul 07 04:31:31 synchronize? Jul 07 04:32:27 it gets put in automatically if you put it in the right place Jul 07 04:32:48 mark4 by any chance mix up lib/ and libs/ ? Jul 07 04:32:52 it is in the right place, src/main/jniLibs/armeabi/... Jul 07 04:33:02 no Jul 07 04:33:29 btw, i did not PUT it in the right place, the project import did Jul 07 04:33:47 then generating the apk should include it Jul 07 04:33:48 it is NOW adding lib to the apk Jul 07 04:34:00 you're so scattered Jul 07 04:34:04 hard to help Jul 07 04:34:21 it was doing so originally but i did was following instructions on SO that were bogus Jul 07 04:34:41 it did not start putting the lib dir back into the apk till i quit AS and restarted it Jul 07 04:35:52 AS does not go by your projects directory structure when building the prokect, it goes by the most recent scan of it Jul 07 04:36:10 so if u make a change... that change doesnt happen unless you scan again. synchoronize does not fix this Jul 07 04:36:22 so far the only way ive seen that does is to kill AS and launch it again Jul 07 04:37:17 and im still being fucked with Jul 07 04:37:27 i copied armeabi to armeabi-v7a again Jul 07 04:37:38 and that lib is NOT being included in the apk Jul 07 04:37:47 only armeabi. not armeabi-v7a Jul 07 04:39:08 i cant blame you for feeling lost with my issue, im totally lost lol Jul 07 04:39:27 it just works (tm) shit isnt working Jul 07 04:40:05 mark4 just do everything in java, its easier Jul 07 04:40:08 so i quit and relaunched as 4 or 5 times and built after each time Jul 07 04:40:20 and after a few attempts like that Jul 07 04:40:38 suddenly both armeabi and armeabi-v7a are in the apk Jul 07 04:40:39 but Jul 07 04:40:40 no fixie Jul 07 04:40:47 #1 build using gradle Jul 07 04:40:57 i am building using gradle Jul 07 04:40:58 never rely on an ide to. build. correctly Jul 07 04:41:09 then restarting android studio is irrelevant Jul 07 04:41:14 oh Jul 07 04:41:21 im not running gradle by hand Jul 07 04:41:27 i would be more lost than i am NOW Jul 07 04:41:30 just useless information you're telling for the sake of being annoying Jul 07 04:41:40 im not trying to be annoying Jul 07 04:41:47 #2 see #1 Jul 07 04:41:58 im not running gradle by hand Jul 07 04:42:02 i wouldnt even know where to start Jul 07 04:42:05 then run it by hand Jul 07 04:42:11 mark4 try it by hand to see if its ide problem Jul 07 04:42:13 gradlew assembleDebug Jul 07 04:42:20 that's all you have to do Jul 07 04:42:30 i dont want to have to learn c++ oop and qt and gtk just to write my java app Jul 07 04:42:34 throw a clean in there Jul 07 04:43:06 i do not want to learn gradle. its a "it just works (tm)" thing Jul 07 04:43:07 anyway, I'm done Jul 07 04:43:26 that doesnt work as advertised Jul 07 04:43:29 doesn't want to be helped, bye Jul 07 04:43:59 pfn wants everyone to do everything HIS WAY and if you wont he basically tells you to fuck off Jul 07 04:44:01 k Jul 07 04:44:01 got it Jul 07 04:44:23 im using android studio to do my development NOT gradle Jul 07 04:44:45 you're using gradle Jul 07 04:44:51 and keep insist on being wrong Jul 07 04:44:55 if AS uses gradle thats fine. im not going to spend the next 3 years constantly relearning gradle over and over and over and over aqnd over every time it changes Jul 07 04:44:59 you get no help for your insistence Jul 07 04:45:15 you already stated your not going to help. we got that Jul 07 04:45:20 so stop stoping already Jul 07 04:45:35 now I'm just going to troll you Jul 07 04:45:45 this is where the fun begins Jul 07 04:45:46 my project worked PERFECTLY before gradle was involved Jul 07 04:45:51 no it didn't Jul 07 04:46:19 thas because your a professional dickhead. very knowledgable, but my way or the highway Jul 07 04:46:19 mark4 what about this, from googlesamples 'hello-libs' https://github.com/googlesamples/android-ndk/blob/master/hello-libs/app/build.gradle#L70 Jul 07 04:46:28 ok ill put you on ignore now kthxbai Jul 07 04:47:20 my build.gradle does not have any where near as much crap in it as that one does Jul 07 04:47:22 heh Jul 07 04:47:38 if it were my way or the highway, I'd tell you to use sbt Jul 07 04:47:43 but you're rather dumb Jul 07 04:48:09 you can't comprehend basic tools Jul 07 04:48:28 my build.gradle does not have any sources { } Jul 07 04:48:53 or an android { } that contains it Jul 07 04:49:01 in the example Jul 07 04:49:16 erm no i miss spoke, it does have android {} Jul 07 04:49:57 does that ndk {} entry in there make the project build rebuild the ndk libs? Jul 07 04:50:03 mark4 also make sure you read this for N http://android-developers.blogspot.com/2016/06/android-changes-for-ndk-developers.html Jul 07 04:50:05 i do not want it to do that Jul 07 04:50:46 define platform libraries? Jul 07 04:51:10 applications are no longer able to load non-NDK platform libraries Jul 07 04:51:19 what are platform libraries? Jul 07 04:51:32 i would think, libraries from the platform :) Jul 07 04:51:56 i.e. no more thrid party .so files you build yourself using the ndk? Jul 07 04:52:03 no Jul 07 04:52:26 more info here: http://android-developers.blogspot.fr/2016/06/improving-stability-with-private-cc.html Jul 07 04:52:31 libnaf.so is built using the NDK Jul 07 04:52:47 platform lib are libs (eg: .so) shipped with android in the system Jul 07 04:53:11 that sounds like 'no more libs YOU build yourself' Jul 07 04:53:13 but you should not rely on them, except a few guaranteed to be present Jul 07 04:53:23 also their move with openssl requiring gms is a bit suspicious Jul 07 04:53:39 playservice* i meant Jul 07 04:53:46 mark4, the contrary Jul 07 04:54:04 my libnaf.so is not part of the android system. its part of my apk Jul 07 04:54:06 you have to build or provide the lib yourself instead of relying on the one in the system which might not be there on this or that rom Jul 07 04:54:15 ohhhh Jul 07 04:54:17 ! Jul 07 04:54:20 wait Jul 07 04:54:23 just read Jul 07 04:54:32 mark4 take deep breath, read slowly Jul 07 04:54:35 my lib uses libc.so i assume that one will be there lol Jul 07 04:54:41 static link time Jul 07 04:54:44 ugh Jul 07 04:55:01 way to make things that should be 10k 4096k Jul 07 04:55:02 well i think pfn told oyu something about that too Jul 07 04:55:25 if you have unresolved shared libs, it also results in that error Jul 07 04:56:03 right. and thats so freeking cryptic i was guaranteed to not understand what he meant Jul 07 04:56:13 he never defined what unresolved meant in THIS context Jul 07 04:56:39 its like giving 1/10 of a solution and expecting people to fill in the blanks Jul 07 04:56:56 you should demand a refund! Jul 07 04:57:25 no but his help is basically no help at all so why bother Jul 07 04:58:02 lol bankai_ Jul 07 04:58:16 mark4, you already expressed suspicious like you don't want to deal with gradle Jul 07 04:58:25 which is kinda an obvious road with android app dev Jul 07 04:58:32 suspicious things* Jul 07 04:59:15 tell you what, use my forth compiler to learn forth. only im going to release a new version of it every 3 weeks or so thats totally incompatible with the previous version Jul 07 04:59:19 see how well you do Jul 07 04:59:34 anyway, you're struggling right now, i can feel the pain, but "no pain no gain" as we say, try to set up first a simple project which does nothing except loading a lib which print hello world Jul 07 04:59:56 i'm suspicious of stuff written in groovy too, same with php and perl :D Jul 07 05:00:19 there are few official examples but i'm not sure there are up to date, one mentionned here earlier: https://github.com/jdermont/NdkExample Jul 07 05:00:31 maybe it was Ashiren, i don't remember exactly, so sorry for the credit if it's not him Jul 07 05:00:39 lol Jul 07 05:00:59 then once you have a basic structure working, you start migrating your stuff Jul 07 05:01:02 good luck Jul 07 05:01:16 my ndk library already builds just fine, if the new theory is that my library being a shared library cannot make use of shared libraries (sounds fucking moronic to me) then ill rebuild it linked statically Jul 07 05:01:20 and maybe that will fix the issue Jul 07 05:01:32 just need to find where ndk-build is now lol Jul 07 05:01:42 knowing the issue and not guessing is the best way to solve it Jul 07 05:01:44 did anyone answer my question about outsourcing UI dev? Jul 07 05:01:48 I've been away... so much text Jul 07 05:01:49 lukeallison, nope Jul 07 05:02:09 but look the topic Jul 07 05:02:18 adq experimentation leads to discovery Jul 07 05:02:20 "no jobs or otherwise" Jul 07 05:03:00 i would assume that libc is a "public" api no? Jul 07 05:03:01 Goddamn it, my main class is getting SOOOOOO big and tangled Jul 07 05:03:05 lukeallison, we do have one free UI kicking around from the last guy who wanted a free app Jul 07 05:03:17 lol Jul 07 05:03:22 It's becoming a crime against thought Jul 07 05:04:18 mark4, you must read Jul 07 05:04:20 "All public NDK libraries (libandroid, libc, libcamera2ndk, libdl, libGLES, libjnigraphics, liblog, libm, libmediandk, libOpenMAXAL, libOpenSLES, libstdc++, libvulkan, and libz), plus libraries that are part of your app are accessible." Jul 07 05:04:32 lol Jul 07 05:04:33 Some developers try to strip them in an attempt to obfuscate the binary and prevent reverse engineering <-- lol i dont have any problems with anyone reverse engineering my .so heh Jul 07 05:04:33 if you don't read, you will continue to ask questions Jul 07 05:04:43 i think there are very few people who could Jul 07 05:04:44 and search solution for non existent problems Jul 07 05:04:51 i am reading both the pages that were linked Jul 07 05:05:01 as indicated by my pasting the above Jul 07 05:05:08 i would assume that libc is a "public" api no? Jul 07 05:05:09 ^ Jul 07 05:05:24 tho. im considering posting it all on github Jul 07 05:05:32 and? Jul 07 05:06:19 oh crap Jul 07 05:06:21 so libc is not the issue Jul 07 05:06:24 obviously Jul 07 05:06:25 i KNOW my .so has text relocations Jul 07 05:06:37 i do not believe it is possible for it to NOT have them Jul 07 05:06:56 mark4 did you see the fine print at the bottom : (no forth will be permitted) Jul 07 05:07:59 but on API 23 and above it refuses to load code with text relocations. Jul 07 05:08:38 i srsly doubt i or anyone else could rewrite my MINUTE .so file without text relocations and NOT have it suddenly become HORRENDOUSLY BLOATED and HUGE!!!! Jul 07 05:08:48 srsly why would they do that? Jul 07 05:09:03 by the way, what does your ndk side do? just curious Jul 07 05:09:48 mark4, security issue and device not shipping correct libs, or at incorrect place or not ship at all Jul 07 05:10:15 + probably some symbols change and maybe they have issue with symbol versionning Jul 07 05:10:30 so at the end, the app crash, user is not happy, dev is not happy Jul 07 05:11:05 my ndk is a forth compiler Jul 07 05:11:16 dang Jul 07 05:11:48 it allows me to do things in a few k of comiled code that would take a HUGE HUGE HUGE amount of compiled java classes to accomplish Jul 07 05:12:07 and i can load and unload required modules on a dime Jul 07 05:12:08 yeah I comiled my code once, took a while to decomile it Jul 07 05:14:05 hrm Jul 07 05:14:27 there is a way. make all my direct address references relative address references Jul 07 05:14:46 not sure how i can make the assembler assemble an offset instead of an address however Jul 07 05:15:06 but if i can figure the macro to do that the text relocations might not be as big an issue Jul 07 05:15:40 it will make the forth kernel run significantly slower however :/ Jul 07 05:19:11 and of course the gnu ASSEMBLER does not have a -fpic switch :P Jul 07 05:19:13 lol Jul 07 05:23:52 well i THOUGHt i had the ndk installed via AS but i guess it crapped out on that install and i didnt notice Jul 07 05:24:10 oh crap. i bet its that stupid freeking no space left on device BULLSHIT Jul 07 05:24:20 that ONLY android stupidio seems to fall over on Jul 07 05:24:32 i have no quotas enabled in my kernel Jul 07 05:24:42 im not out of inodes, i use btrfs Jul 07 05:28:37 heya Jul 07 05:28:44 anyone around? Jul 07 05:28:56 Are aar files cross platform? Jul 07 05:29:05 they should be right? just like a jr? Jul 07 05:29:08 jar* Jul 07 05:29:36 installing the ndk downloads the zip file Jul 07 05:29:51 once the zip is downloaded it instantly tells me installation failed Jul 07 05:30:02 please check your network connection Jul 07 05:30:12 Does someone know if I can change the font and size of Android Studio's terminal tab? Jul 07 05:30:21 and no you cant just unzip the ndk into the Sdk directory Jul 07 05:30:42 *The messages tab, actually Jul 07 05:30:48 no, but you can clone it Jul 07 05:32:18 Nevermind. Found it. Jul 07 05:32:44 so, .kt is Kotlin? Jul 07 05:38:08 Leeds kt = kidney trouble Jul 07 05:40:05 around here, it's Kennedy Town Jul 07 05:41:53 what?! Jul 07 05:45:19 what?!? Jul 07 05:48:41 hi Leeds Jul 07 05:48:45 how's life? Jul 07 05:48:59 not too bad - you? Jul 07 05:49:16 meh Jul 07 05:49:43 mostly just hiding from the sun, dreading my upcoming birthday, and waiting to go away at the end of next month... Jul 07 05:50:30 takes me about 15 minutes to walk to my office, that's enough time per day out of aircon :) Jul 07 06:01:21 Leeds: it's your birthday?! Jul 07 06:01:23 YAY!!! Jul 07 06:01:51 not for a few weeks... but thanks :) Jul 07 06:02:00 how old are you turning? Jul 07 06:02:29 old... very old indeed Jul 07 06:02:39 boker thepoosh Jul 07 06:02:47 raoul11: ma'nshma? Jul 07 06:03:04 not bad at all actually Jul 07 06:03:12 old enough to apparently make me unemployable in SV Jul 07 06:03:26 Leeds 30+? Jul 07 06:03:36 raoul11: +10 Jul 07 06:03:52 they start young today dont they /: Jul 07 06:04:32 well, I started coding when I was 10- Jul 07 06:08:20 so if ndk-build now uses llvm and armv7-a is no longer a recognized -march what -march am i supposed to use now? Jul 07 06:08:40 srsly like they cant fuck things over enough at google Jul 07 06:09:40 fuck. i have to totally fucking rewrite this ALREADY fucking working code because google decided to switfh to a totally different fucking compiler Jul 07 06:37:57 Goddamn it. Can someone tell me why an AnimatorSet animation that has a TextColor/BackgroundColor property flickers when it's being started?! On ObjectAnimator I can use .setEvaluator() to fix this, but AnimatorSet doesn't have this method. Jul 07 06:39:58 On older versions of android it works fine Jul 07 06:40:05 *On NEWER versions Jul 07 06:42:10 Why don't you send your complaints to the people who can actually influence what changes are made to Android? Jul 07 06:42:43 barq: huh? Jul 07 06:43:00 What do you not understand? Jul 07 06:43:43 I was referring to mark4 Jul 07 06:44:14 barq: next time use his nickname :P Jul 07 06:50:47 hello, is someone here interested in earning extra money? I need simple android app and i've already done some test and i have some version done, just need to complete this. Jul 07 06:58:35 pm Jul 07 06:58:45 OmIkRoNiXz: please check channel topic Jul 07 06:59:07 a sorry Jul 07 06:59:09 also, I bet you're not willing to pay the full cost... Jul 07 07:00:40 i don't know how much can cost this app :) Jul 07 07:00:45 it is very simple :D Jul 07 07:02:55 ok but then what is right way to make http request from broadcastreceiver? creating intentservice? Jul 07 07:06:33 barq the change was probably a move in the right direction, its just more shit i have to find documentation for that probably does not have any documentation :/ Jul 07 07:09:18 i would support any migration away from gnu development tools Jul 07 07:14:34 You can always contact a google developer advocate Jul 07 07:14:58 They are working on docs at the moment Jul 07 07:19:54 barq no its actually llvm docs i need. i need a complee\\\ Jul 07 07:20:24 i need complete documentation on how llvm assembles arm assembly code including opcodes, syntax and macro language Jul 07 07:20:36 there does not seem to be any Jul 07 07:23:00 there is source Jul 07 07:23:15 reading the source code to the llvm arm assembler. right Jul 07 07:23:17 good plan Jul 07 07:24:01 because uncommented, undocumented, horrendously complex C/c++ code is a good substitute for documentation Jul 07 07:24:09 I'm glad you agree Jul 07 07:27:50 It's written in C/++, of course it's undocumented Jul 07 07:39:35 Hey, is there a way to view early emulator logs? I have an image that won't boot to device available/logcat stage Jul 07 07:40:52 Or perhaps if anyone encountered this before: after using "-qemu -nand system" etc it won't boot with the normal -system arg, only the qemu one. Jul 07 07:42:01 Maybe it is more interesting to get the kernel log? I don't think the adb daemon is already initiated at that time Jul 07 07:43:07 Right, how can I do that? can I redirect the output? Jul 07 07:44:11 in case adb _is_ initiated but does not allow logcat try: adb shell dmesg Jul 07 07:44:42 oh, but it's not. or at least I can't 'shell'. it also says the device is offline Jul 07 07:45:27 I'm pretty sure it's an early/kernel boot problem, and I know with normal QEMU it's easy to see the kernel log.. but the android emulator hides it Jul 07 07:46:18 hm the only way I can think of right now is the JTAG cable Jul 07 07:46:57 sorry Jul 07 07:46:57 lol Jul 07 07:46:59 enulator Jul 07 07:47:08 no JTAG ofcourse Jul 07 07:47:39 OK I got it, -show-kernel Jul 07 07:48:01 Now you can see which part is not booting Jul 07 07:48:05 kernel or rom Jul 07 07:48:08 How can I display the contents of an object to the log? Jul 07 07:48:29 @kostodo how do you mean? from an app? Jul 07 07:48:39 in android studio Jul 07 07:48:44 (sorry bit new to this) Jul 07 07:49:14 @Kostodo : here you go Jul 07 07:49:14 https://developer.android.com/reference/android/util/Log.html Jul 07 07:49:39 Sure but it wont accept an object Jul 07 07:49:39 everything that you log using this class can be read using adb logcat Jul 07 07:49:41 Wants a string Jul 07 07:49:58 what you can do, is overwrite the toString() method of the object Jul 07 07:50:28 when you want to print the object you can call the toString method Jul 07 07:50:29 OK maybe you can help me with the actual issue that I'm having (which is why im trying to log) Jul 07 07:50:59 All I'm trying to do is put a indeterminate progressBar into my webview so it spins during page load Jul 07 07:51:12 However my Java knowledge (and OOP) is limited Jul 07 07:52:55 http://stackoverflow.com/questions/2537454/android-webview-progress-bar Jul 07 07:53:35 I just want the little round spinner Jul 07 07:53:57 My problem is actually an OOP one Jul 07 07:54:23 I have MyAppWebViewClient that extends WebViewClient Jul 07 07:54:52 In there my understanding is that I need to set progressBar.setVisibility(view.GONE) in onPageFinished Jul 07 07:55:17 but where do I define progressBar? and do I somehow need to reference my resource id? Jul 07 07:57:15 you need to define a progress bar in the activity/fragment which contains the webview client(& webview) Jul 07 07:58:08 just add it to the xml, hide & show it when needed Jul 07 07:58:16 layout xml that is Jul 07 07:58:21 . Jul 07 07:59:41 StrangeBrew, my MainActivity does this: mWebView.setWebViewClient(new MyAppWebViewClient()); Jul 07 07:59:56 StrangeBrew, then MyAppWebViewClient.java is a separate file Jul 07 08:00:18 than you need some kind of call back Jul 07 08:00:31 then Jul 07 08:00:59 :) Jul 07 08:01:23 Mind explaining? Jul 07 08:01:25 create an interface in MyAppWebViewClient, that reports the activity on page finished Jul 07 08:01:38 just a second Jul 07 08:03:03 OK Jul 07 08:04:08 this would explain the subject, https://guides.codepath.com/android/Creating-Custom-Listeners Jul 07 08:04:33 good luck:) Jul 07 08:04:59 So if I was to just put the actual code back into my activity instead of having it in its own file I wouldn't need to do this? Jul 07 08:05:46 yeah..:) Jul 07 08:06:18 as in: mWebView.setWebViewClient(new MyAppWebViewClient( in here?? )); Jul 07 08:06:25 sure Jul 07 08:09:00 StrangeBrew, i.e. move all my code from the java file into there? Jul 07 08:10:00 yeah, It would be less organized but it would work Jul 07 08:10:30 Has battery changed their name yet? Jul 07 08:10:32 -_- Jul 07 08:12:16 markyosullivan: what’s wrong with you? Jul 07 08:12:28 Please change your name Jul 07 08:12:31 just work hard markyosullivan Jul 07 08:12:37 how? Jul 07 08:12:44 i don’t know how i can change it.? Jul 07 08:12:52 /nick dafuk Jul 07 08:13:12 dafuk? Jul 07 08:13:15 what is it? Jul 07 08:14:19 a collection of chars Jul 07 08:14:38 the /nick part is how you change your nick Jul 07 08:14:42 StrangeBrew, thanks for your help mate Jul 07 08:15:26 kostodo, np! Jul 07 08:15:39 StrangeBrew, ok so hiding it works. but showing it does not Jul 07 08:15:59 the app starts with it showing. then it hides from inside the OnPageFinished Jul 07 08:16:21 kostodo, you need to hide it on initialization Jul 07 08:16:26 how? Jul 07 08:16:45 onCreate Jul 07 08:16:48 or in layout xml Jul 07 08:16:56 visibility gone Jul 07 08:17:53 OK but my visibility VISIBLE inside onPageStarted is not doing anything (i think) Jul 07 08:18:03 The Samsung Galaxy S5 has fingerprint. But does it support the Android Marshmallow fingerprint API too? Jul 07 08:18:55 kostodo, maybe it happens so fast, try to log it. Jul 07 08:19:02 is the onPageStarted not firing because I also have shouldOverrideUrlLoading (catching URIs that end with my domain) Jul 07 08:19:07 oh Jul 07 08:19:36 it should fire if i remember correctly Jul 07 08:19:37 (its defo not happening) Jul 07 08:19:55 might be wrong:) Jul 07 08:20:50 it worked buddy! Jul 07 08:20:52 thanks :) Jul 07 08:21:07 :) Jul 07 08:34:15 Hi, can someone here enlighten me as to why the actionbar disappears after putting my RelativeLayout inside a scrollview ? Jul 07 09:00:46 I'm pretty sure that Java programming is making me insane Jul 07 09:01:04 The verbosity is turning me autistic Jul 07 09:02:38 use kotlin, or scala Jul 07 09:03:03 yawkat: neah Jul 07 09:03:23 MisterGadfly_: java is a nice comprehensible language Jul 07 09:03:46 or retrolambda Jul 07 09:03:55 wat Jul 07 09:04:01 retrolambda is not a language Jul 07 09:04:11 of course not Jul 07 09:04:18 it wasnt a reply to you. Jul 07 09:04:39 so? Jul 07 09:05:07 java 8 makes java a lot more bearable Jul 07 09:05:30 java8 doesn't require retrolambda, it has lambda expressions in Jul 07 09:05:35 i am aware... Jul 07 09:05:50 but since this is an android channel... Jul 07 09:06:25 AS 2.2 and Jack&Jill supports java8 Jul 07 09:06:54 naaah they just support lambdas. Jul 07 09:07:05 what? Jul 07 09:07:16 it's not java 8 without the stdlib Jul 07 09:09:14 thepoosh: not sure if you were trolling with that statement Jul 07 09:09:38 MisterGadfly_: he is right, java is a pretty good language. Jul 07 09:09:40 nah, I am genuinely ok with java Jul 07 09:10:10 Oh well Jul 07 09:10:16 If it puts food on the table... Jul 07 09:10:23 yesir Jul 07 09:10:28 /lastlog ashiren Jul 07 09:10:41 wut Jul 07 09:11:34 MisterGadfly_, Java programming is just another human creation. You should build immunity against the insanity of its verbosity. Jul 07 09:11:59 * thepoosh agrees Jul 07 09:12:12 as i said, lombok + retrolambda remove a lot of verbosity from the java 6 language, and kotlin goes even further Jul 07 09:44:19 is there a url-scheme for game services app? Jul 07 09:45:55 so the android ndk build tools 4.9 no longer know what -march-armv7-a is Jul 07 09:46:03 fucking google Jul 07 09:50:31 how do I check that the broadcast listener works? Jul 07 09:51:02 https://gist.github.com/onzag/7ce6d2b222fc4aee15ac443b3afcbe3b Jul 07 09:51:25 nor the deliver reciever nor the sent reciever ever get called Jul 07 09:51:40 How do I wait until a boolean changes before carrying out a method? Jul 07 09:53:34 You make a callback instead of having the boolean if you can. Jul 07 10:04:43 I've just realised I don't need it thankfully Jul 07 10:04:48 Least I don't think I do Jul 07 10:05:13 Thanks for the advice though Mavrik Jul 07 10:05:37 and ni/naf/a4.S:1: Error: junk at end of line, first unrecognized character is `@' the assembler doesnt know comments any more either Jul 07 10:05:39 wtf google Jul 07 10:05:40 srsly Jul 07 10:15:24 unknown psudo op .arm Jul 07 10:15:34 what the FUCK is google doing to the freeking development tools? Jul 07 10:21:01 Chill with the swearing. Jul 07 10:22:36 code that built and ran perfectly for over a year now wont even build. i get hundreds of errors related to @ i dont know what a comment is any more and i dont know what the .arm directive is any moore Jul 07 10:23:00 the development tools work fine Jul 07 10:23:10 had to go through every source file and change every comment to // in my A S S E M B L E R files Jul 07 10:23:25 if you're not using the public tools, you take responsibility for tracking changes Jul 07 10:23:31 and .arm is an unknown assembler directive Jul 07 10:23:40 im using the tools that come with the NDK Jul 07 10:23:41 and you shouldn't really be complaining about it here - you should be talking to the tools team directly Jul 07 10:23:44 meh Jul 07 10:24:46 its like they have deliberately BROKEN the gnu tools to force people to use clang which cant handle my macros Jul 07 10:24:54 and wont allow .set foo . Jul 07 10:26:55 does game services app have a url-scheme? anyone who knows? Jul 07 10:27:37 and when you redirect clang output to a file it buggers it up totally Jul 07 10:27:46 like chars get puked out in random order Jul 07 10:28:09 or its injecting color into the output? Jul 07 10:28:19 yea Jul 07 10:28:31 how do you stop clnag from outputing errors in color Jul 07 10:34:38 How would I tint the webview screen during progress bar loading? Jul 07 10:38:41 WTF Jul 07 10:38:49 I declared a method setMain in a static class Jul 07 10:38:52 I can't call it Jul 07 10:38:54 why? Jul 07 10:39:24 ho are you battery ? Jul 07 10:39:28 how* Jul 07 10:39:38 lol Jul 07 10:39:41 stop plz Jul 07 10:39:49 <3 Jul 07 10:39:58 :| Jul 07 10:40:05 Relax battery Jul 07 10:40:25 d:) Jul 07 10:41:38 battery you still not changed your name? Jul 07 10:41:48 help Jul 07 10:42:05 wtf is wrong here? https://gist.github.com/onzag/00fdaa0ddfbef8446f73b625d940d71b Jul 07 10:42:05 i can’t change Jul 07 10:42:12 it says that there's no setMain method in that class Jul 07 10:42:13 why>? Jul 07 10:42:16 if i change it then most people don’t know me Jul 07 10:42:25 I definetly have a setMain method Jul 07 10:42:27 it's right there Jul 07 10:42:57 public static void setMain(MainActivity main){ Jul 07 10:43:05 does that do anything? Jul 07 10:43:10 I'm just guessing here Jul 07 10:43:13 why static? Jul 07 10:43:21 I don't want a static method that would not help Jul 07 10:43:26 Static class Jul 07 10:43:28 static method Jul 07 10:43:30 idk Jul 07 10:43:42 It's the first thing I'd try Jul 07 10:44:20 Why do you need a static class? Jul 07 10:44:45 no Jul 07 10:44:52 because it's a class inside a class Jul 07 10:45:00 and otherwise the compiler throws an error Jul 07 10:47:39 So anyone? Jul 07 10:47:53 Dim/tint my webview during page loading Jul 07 10:48:01 same time as my progress bar spins Jul 07 10:48:08 How would I dim it? Jul 07 10:48:11 tint it Jul 07 10:48:17 set opacity Jul 07 10:48:19 something like that Jul 07 10:52:06 kostodo: dim? could just put a half-transparent dark view above it Jul 07 10:52:39 yawkat, does it have to be an image or is there a way to generate a full screen shape of some sort? Jul 07 10:53:14 should be easy to make a drawable for that, but i havent touched android in a while Jul 07 10:54:29 imageview? Jul 07 10:55:18 sure, with the drawable you want - but im sure theres a way to do it without a drawable too Jul 07 11:00:50 does an imageview drawable need a src img? Jul 07 11:02:42 not necessarily an image. Jul 07 11:02:48 :| Jul 07 11:02:51 impossible to find if game services has a url scheme Jul 07 11:03:35 anyone know what it is - if it has one? Jul 07 11:09:21 anyone got any idea how google play actually implements the app view? I've been trying to work with coordinatorlayout again to do something similar to google play but I can't get the top part to scroll naturally as part of the list - it's lacking the fling handling which causes the scrolling to get sticky at the top Jul 07 11:13:00 I found this sample by someone that has the same problem as everything I've tried to do as well Jul 07 11:16:02 https://www.youtube.com/watch?v=MT9i0-DDARA like this Jul 07 11:16:29 https://github.com/chrisbanes/cheesesquare the sample project.. Jul 07 11:29:13 greetings Jul 07 11:29:29 android avd emulator is slow .. any idea how to fix it Jul 07 11:29:33 I have 16 gb ram pc Jul 07 11:30:48 so definitely its not ram problem Jul 07 11:31:33 I like RAM Jul 07 11:31:56 how to fix the freaking slow android emulator problem Jul 07 11:36:03 by using a real device Jul 07 11:36:14 Zharf, but my android is old Jul 07 11:36:16 version Jul 07 11:36:19 I need to test out the latest Jul 07 11:36:20 how Jul 07 11:36:43 if you're on windows and intel hardware, haxm might help Jul 07 11:36:55 Zharf, yea how about on linux Jul 07 11:37:00 I need adb commands Jul 07 11:37:06 so I prefer linux. Jul 07 11:37:28 and intel haxm is not supported. sad Jul 07 11:37:49 if it doesn't work out of the box for you on linux, then you're out of luck probably... last time I tried (it was 3-4 years ago) it worked fine for me Jul 07 11:38:22 make sure you have virtualization thingies enabled, etc Jul 07 11:39:28 Zharf, I am using linux on virtual box Jul 07 11:39:38 but pc have virtualization things enabled Jul 07 11:40:04 Zharf, so how do you use emulator. or you just use physical device? Jul 07 11:40:29 you want to use avd on virtualbox? don't do that Jul 07 11:40:59 yea because my main OS is windows. Jul 07 11:41:12 and I wanna use adb commands... which I can do easily on linux and many other things. Jul 07 11:42:23 you can use adb on windows just as well Jul 07 11:43:01 Zharf, you use windows? Jul 07 11:43:06 but running a virtualized environment inside one is only going to end in tears, you won't get any advantage out of CPUs virtualization Jul 07 11:43:20 I use many platforms, but yes, windows is one of them Jul 07 11:43:45 OS X is better than all in these type of things right? Jul 07 11:54:00 meh Jul 07 12:01:16 anyone know if game services has a url scheme you can use to open the app from our own? Jul 07 12:01:21 or nay way to find out? Jul 07 12:01:29 Zharf, so you prefer windows over mac? Jul 07 12:01:42 I just dont wanna buy mac for this avd stuff Jul 07 12:02:17 I'm not a big fan of macs, no Jul 07 12:15:01 Hi, I am getting this error while running my app [https://dpaste.de/Wva6] Any idea why and how to fix it? Jul 07 12:15:43 Hi so, I'm following a tutorial on incorperating a pagerslidingstrip (https://guides.codepath.com/android/sliding-tabs-with-pagerslidingtabstrip) and trying to incorperate some code from a simple twitter feed activity I created as a fragment. Now I got a problem, I'm not sure how to resolve the setlistadapter issue since I'm extending the activity as a fragment rather than listview (I'm targeting API 10). Jul 07 12:16:36 Also, I'm not sure, what I did so far is correct, since I cant find tuts on incorperating listview async task as fragement. Here is the fragement in question: http://pastebin.com/y1bGFKgt Jul 07 12:16:57 and the xml file: http://pastebin.com/kxAuyUA5 Jul 07 12:17:44 Basically, my aim is to incorperate listview as fragments, so when each tab is clicked then async runs and loads the tweets onto listview. Jul 07 12:20:23 DarkChaoz: "extending the activity as a fragment" ... uhhh what? Jul 07 12:21:29 Also if your fragment contains the AsyncTask, why doesn't it also contain the ListView? Jul 07 12:22:17 also, you might want to use design lin Jul 07 12:22:24 *lib's TabLayout instead of pagerslidingtabstrip Jul 07 12:24:04 how do I put several values in putExtra Jul 07 12:24:09 the second value is never stored Jul 07 12:25:48 I meant the java class as a fragement, sorry, I'm kinda a noob at android apps. Jul 07 12:26:11 I'm using pagerslidingtabstrip since its compatible with Android 2.2 and onwards. Jul 07 12:26:44 and as for the async task, it uses a custom listview. Jul 07 12:27:38 Im trying to incorperate my old listactivity code as a fragment for the purposes of utlizing tab views. Jul 07 12:29:17 I'm not sure, if the above fragment code, is done correctly nor if I missed anything out. Jul 07 12:29:23 tablayout works down to 2.1 Jul 07 12:31:01 oh, does it come with that material design ish too, because thats why I was trying to use that pageslidingstrip for. Jul 07 12:31:33 it's what google has provided us, so yeah Jul 07 12:33:53 help Jul 07 12:34:05 the damn Bundle is giving me the value I give it minus one Jul 07 12:34:42 Awesome, thanks zharf. This is my original code which works fine, as a listactivity http://pastebin.com/j7Mnuuc7 Jul 07 12:35:30 I'm trying to incorperate that code as a fragement in a tab layout, but since Im not good with android, not sure how to go about this. Is there any sort of tutrs or something about this I can look at. Jul 07 12:53:10 haha Jul 07 12:53:20 * Felishia prepares android nuker Jul 07 12:53:59 * DarkChaoz still stuck on incorperating async cutsom listiview as fragment Jul 07 12:59:11 extending RemoteViewsService is only for updating Listview or gridview? or can we use it for just updating the simple text on widget that will fetch result from remote service Jul 07 13:13:08 Why is Android using DPI instead of PPI to defined screens? Jul 07 13:24:39 https://developer.android.com/reference/android/content/Context.html#MODE_PRIVATE says : "File creation mode: the default mode, where the created file can only be accessed by the calling application (or all applications sharing the same user ID). " What does it mean 'same user ID' ? Jul 07 13:31:48 purplex88: what is your problem with dpi? Jul 07 13:32:57 xorgate: I'm not completely sure but AFAIK, each application is sandboxed for security, so when you open an app, it is assigned with an exclusive user id Jul 07 13:33:18 if the app invokes another app, they share the same user id Jul 07 13:33:30 *NIX style Jul 07 13:33:30 develCuy: Screens use PPI, what's the reason it is using DPI? As DPI is used for digital priniters mostly. Jul 07 13:33:58 then convert dpi to ppi Jul 07 13:36:25 develCuy: but how does it make sense to use dpi for screens? Jul 07 13:36:57 because screens have pixels not dots Jul 07 13:37:34 screens have different amount of pixels per inch Jul 07 13:37:56 that is how you match pixels to physical measures Jul 07 13:38:23 in one device you get 1 inch = x pixels, while in other y pixels Jul 07 13:38:49 Android API doesn't have a way to add a stroke to text? This must be a joke. Jul 07 13:38:58 I have to code a goddamn text stroke function!? Jul 07 13:38:59 yes but what about dpi and screen? Jul 07 13:39:17 MisterGadfly: code one in java, there are tons of scripts out there... Jul 07 13:39:35 develCuy: it's retarded as hell Jul 07 13:39:44 It already has SHADOW function, but no stroke?! wtf Jul 07 13:40:00 lol... Jul 07 13:40:16 you get it for free so don't blame Jul 07 13:44:51 Hi, I need some help with populating a GridView using a CursorAdapter Jul 07 13:45:46 I'm loading in images from the media store using an AsyncTask, but the problem is that the Views in the GridView are being recycled, and the images in the async task don't replace the existing images fast enough Jul 07 13:46:12 How do I fix this? Jul 07 13:47:48 Ikkyo: You should probably use Picasso or Glide since they handle that already. Jul 07 13:49:16 I'll give it a shot Jul 07 13:49:17 thanks Jul 07 13:58:09 Hello to everybody! I would like to ask a question. I am just at the beginning of Android development, I am currently reading the book The BigNerdRanch Android Development, and alongside I am trying to develop a dummy application, which stores some data on the local database. Jul 07 13:58:43 In the book they use this logic for working with Crimes - it's a dummy app from the book: https://gist.github.com/tothbalint/137f99100b0c2982023ce77677d0c9e0 Jul 07 14:00:11 if I would like to make a book-lending app, with 2 types of data, a Book with details of the book, author, title, etc, and a list for who did check out the specific book, like name, date, comment, etc, like a one-to-many relationship Jul 07 14:01:30 what would be the best way to handle that based on the logic from the book? Is it better to create 2 separate class pairs, like Book, BookLab, Checkout, CheckoutLab, or it is easier if I inclucde the checkouts in the Book class in some List or Array? Jul 07 14:11:41 All Java and no play make MisterGadfly pull a Reiser on Java developers Jul 07 14:12:11 *Java's creator Jul 07 14:13:08 you're a bit confused Jul 07 14:13:31 I feel like I'm writing a novel Jul 07 14:18:16 if I am pulling some data from a database where the items have Unique Id, when I am representing that data with an object, do I make the Id value type UUID or just simple integer? Jul 07 14:18:55 Do you still using Genymotion or with the new emulators you had migrated ? Jul 07 14:19:05 Good morning. ;) Jul 07 14:19:13 tothbalint: depends - the default choice is an auto-increment integer Jul 07 14:20:14 yawkat, thank you very much! Jul 07 14:23:39 * Chloe How can I have two drawer buttons on the appbar? Jul 07 14:23:46 err minus /me Jul 07 14:40:58 is it possible to limit the ListViewContextMenu opening to some itens inside a ListView? Jul 07 14:41:11 From documentation "The quantity of pixels within a physical area of the screen; usually referred to as dpi (dots per inch). " what? pixels aren't dots, are they? Jul 07 14:41:14 for example, i wanna launch the menu only for the first item Jul 07 14:43:51 purplex88: yes, screen DPI means pixels Jul 07 14:48:57 ludocode: only in android i suppose? Jul 07 14:49:27 is there any way to use okhttp's CertificatePinner to verify the certificate's CN == X and the certificate is signed by a certificate with sha1 Y, rather than the certificate having sha1 Y itself ? (jakewharton) Jul 07 14:49:31 no, in general. monitors sometimes advertise dpi, and they refer to pixels as well Jul 07 14:49:48 so PPI is same as DPI? Jul 07 14:49:54 ya i guess Jul 07 14:50:15 hmm well i thought DPI only applied to priniting/scnning Jul 07 14:50:33 but this is new Jul 07 14:53:28 Hi so, I'm trying to incorperate a tablayout and for each tab fragments, I'm trying to use my existing ListActivity code and incorperate it as a fragment but as an android noob as I am, I dont know what to do, I'm just been trying to find some tuts but no luck. Here is my attempt: http://pastebin.com/y1bGFKgt Jul 07 14:53:52 here is the custom listview layout http://pastebin.com/kxAuyUA5 Jul 07 14:54:46 the problem so far is i dont know how to incorperate my listactivity code as fragment and also as a fragment its giving me cannot resolve method for set list adapter Jul 07 15:03:36 can anyone help? Jul 07 15:06:36 doh, just using CertificatePinner.Builder::add(cn-of-certificate, sha256-of-signing-certificate) works. I thought I tried that, apparently I did something wrong. Thanks JakeWharton :) Jul 07 15:15:02 Happy to have helped! Jul 07 15:18:48 can anyone take a look at my code and point me to few tutorials at the very least, I'd appreciate it Jul 07 15:20:56 been struggling with this for days Jul 07 15:25:58 Has anyone managed to get https://github.com/chrisbanes/gradle-mvn-push working with signing.password in a different directory than $GRADLE_USER_HOME/gradle.properties ? Jul 07 15:43:59 So otto is depracated and it's suggested to use RxJava. Excuse my ignorance... but RxJava is NOT an event bus? JakeWharton ? Jul 07 15:44:23 an event bus is a bad pattern Jul 07 15:45:08 observables can provide the same features as an event bus, but without the shitty pattern Jul 07 15:45:31 eghdk_: RxJava is to Otto as Rectangle is to Square Jul 07 15:47:08 so the same, only different Jul 07 15:47:37 RxJava is to Otto as a dodecahedron is to a square Jul 07 15:48:05 touché Jul 07 15:48:09 there you go Jul 07 15:48:24 showoff Jul 07 15:48:27 lol Jul 07 15:48:30 basically not worth of comparison, except to shame an event bus for its complete lack of ability to be anything but a boring four-sided shape Jul 07 15:49:24 So Rx is basically just so much more versatile as a tool than Otto? Jul 07 15:49:39 yes Jul 07 15:50:13 to use a RxJava as an event bus would be to buy a maserati and only drive it in a school zone at 15mph Jul 07 15:50:19 I love Rx, but not because of the Observer pattern, but just all those damn operators as so damn handy. I honestly still don't get the diff between Observer pattern and listeners. Jul 07 15:50:43 are so damn* Jul 07 15:50:46 there really isn't one Jul 07 15:51:05 Are listeners... just the observer pattern? Jul 07 15:51:26 i'm sure there's some boring, nit-picky, technical crap that differentiates the two Jul 07 15:51:28 but yes, they're the same Jul 07 15:51:35 I mean listeners, they just register and deregister like you would do for observer. Jul 07 15:51:37 RxJava's streams are just chains of things listening to the thing above it Jul 07 15:51:50 Cool. Okay. Glad I still have some sense of sanity around it. Jul 07 15:52:16 JakeWharton: Yeah, for a while I was treating it more of a builder pattern then a chain of command. Jul 07 15:52:38 But that's my lack of experience showing. Jul 07 15:52:45 yes it is very important to not do that Jul 07 15:53:31 having looked at RxJava but never actually used it, but one thing that strikes me as something I would definitely run into at some point is onBackPressureBlock() not working Jul 07 15:55:37 (at least, at the time I was reading the docs that seemed problematic, can't really remember why) Jul 07 15:58:16 not working? Jul 07 15:58:55 its deprecated Jul 07 15:59:08 and apparently uenxpectedly hangs a lot Jul 07 15:59:22 Say i have a list of LatLng coordinates. I also have a Google Maps view. How would you go about moving the camera to the userlocation, and then zooming to ensure that 3 (minimum) LatLng markers are visible? On iOS you can zoom based on a (latlng) bounding box, but on android it seems like you can only zoom based on an integer between 2-21? Jul 07 15:59:44 without, it seems to me like implementing a non-lossy emitter with multi-threaded chained handlers would be difficult Jul 07 16:00:41 is this correct? I guess one bruteforce way could be to zoom to 2, run through the nearest markers and check if they are visible (i assume there is a IsVisible() method). If not, zoom out a little bit more, and check again Jul 07 16:04:20 there's other backpressure handling operators, and there's actual backpressure implementation itself which avoids the need for a backpressure handler Jul 07 16:05:02 (example: quickly emit a lot of values on thread X, do slow calculus on thread Y, process result even slower on thread Z; the other backpressure operators drop values rather than slowing down the emitter, IIRC ?) Jul 07 16:05:19 there's one that buffers Jul 07 16:05:27 what if the buffer is full Jul 07 16:05:49 don't know. never used it. Jul 07 16:06:12 your problem seems trivially solved with your own intermediate queue/drain system though Jul 07 16:06:31 again, I've never actually used RxJava. Perhaps I'm just looking at it wrongly or these are problems that would never occur when RxJava is used as its supposed to. But as a newbie on the subject its hard to guess. Jul 07 16:06:51 hi a very newbie question. I'm following the Android tutorial for beginners that is on Udacity website. In their tutorial they use a version of Android Studio which project wizard creates a project that includes Framents. The new Android Studio doesn't generate this Fragment anymore. I'm confused here. Is Fragment something already deprecated? Why the new Android Studio doesn't create it? Thanks Jul 07 16:06:56 wouldn't that just add complexity where the point was to reduce it? :) Jul 07 16:07:24 not really. the backpressure operators aren't anything special. you can easily write your own that's an unbounded queue/drain buffer Jul 07 16:07:52 and it'll just go until it OOMs Jul 07 16:08:49 (for some definition of easy, of course) Jul 07 16:09:08 if you're not familiar with writing an operator it obviously won't be easy Jul 07 16:09:33 i more mean easy in the sense that the API isn't preventing you from doing this and if anything makes it easy to do this if you know what to do Jul 07 16:09:36 right, but I'd still prefer slowing down the emitter instead. Reactive pull could be used for that maybe, but IIRc not all operators support it Jul 07 16:09:45 oh that can be done Jul 07 16:10:01 the way you phrased it made it sound like it was a fixed number of events that couldn't be slowed Jul 07 16:10:51 there's new under-documented classes SyncOnSubscribe and AsyncOnSubscribe which make it easier to implement a backpressure-aware source Jul 07 16:12:21 looks interesting Jul 07 16:19:10 Andy80, You should be able to get what you need by selecting "Basic Activity" and checking the use fragment checkbox http://i.imgur.com/KDtAXoz.png Jul 07 16:19:38 The use of fragments certainly has its points of contention. It is not deprecated though Jul 07 16:21:32 truckcrash: oh thanks! I think I selected "Empty Activity". By the way I just checked their source code to start with, so I can keep following step by step. Thanks :) Jul 07 16:21:52 no prob Jul 07 16:25:08 If you are just starting out in android dev, i dont think u have to worry too much about fragments honestly - for now. It will most likely confuse you more than help you. Once you start having bigger apps, with complex UIs, feel free to join the flamewar for/against fragments :) Jul 07 16:33:46 Hai Jul 07 16:34:04 * Dentych waves Jul 07 16:34:31 .-. Jul 07 16:34:49 waiting for help like.... Jul 07 16:34:50 :/ Jul 07 16:39:44 Hi so, I'm trying to incorperate a tablayout and for each tab fragments, I'm trying to use my existing ListActivity code and incorperate it as a fragment but as an android noob as I am, I dont know what to do, I'm just been trying to find some tuts but no luck. Here is my attempt: http://pastebin.com/y1bGFKgt Jul 07 16:39:54 here is the custom listview layout http://pastebin.com/kxAuyUA5 Jul 07 16:40:03 the problem so far is i dont know how to incorperate my listactivity code as fragment and also as a fragment its giving me cannot resolve method for set list adapter Jul 07 16:40:16 can anyone take a look at my code and point me to few tutorials at the very least, I'd appreciate it Jul 07 16:46:19 yeesh, final fantasy 7 is 4gb? I don't have that kind of storage on my device... Jul 07 16:50:59 So I have a transitive dependency in my app. App depends on B which depends on C. But when trying to compile my app code, I have an import statement that refs lib C, but it says it doesn't exist. If I drop in the C dependency directly into my App, then it works, but that means keeping two versions up to date and have a conflict resolution in my gradle. Any ideas? Jul 07 16:54:44 suprised, not much help is going in here.. timezones? or just people dont want to help other people/ Jul 07 16:55:24 stay a month, and redo your statiscal analysis on how much help is going on there Jul 07 16:55:29 statistical* Jul 07 16:58:08 I used to visit here regularly, everytime I stayed on for couple of hrs, not much help was going on. Jul 07 16:58:29 Only returned here, because this is the only live android dev chat I can find. :\ Jul 07 17:00:34 kraft: maybe change the topic here too Jul 07 17:00:36 oops Jul 07 17:00:42 kroot: maybe change the topic here too Jul 07 17:03:43 whats the difference between the old topic and the new one :P Jul 07 17:05:53 I don't think there's been much of a problem here, but in #android there seemed to be a lot of bigotry and other undesirable behavior. Jul 07 17:07:16 DarkChaoz: "Swearing, threatening, name-calling, etc. will not be tolerated" is the difference afaict Jul 07 17:07:27 ahh Jul 07 17:08:02 surprised that didnt been added sooner lol Jul 07 17:11:14 Is OTG support inherent in all android phones, assuming the ROM supports it, or is OTG in hardware? Jul 07 17:15:36 HAI Jul 07 17:15:52 raoul11: are you still at work? Jul 07 17:17:05 nah, going drinkin tonight Jul 07 17:17:16 and spent all afternoon playin matkot Jul 07 17:18:25 defaq Jul 07 17:18:29 no work? Jul 07 17:19:59 worked till 3 Jul 07 17:20:07 matkot for two hours, rest, drink Jul 07 17:20:14 life of an indie dev thepoosh Jul 07 17:20:26 something is messed up Jul 07 17:20:33 you need a real job Jul 07 17:20:43 no one would hire me Jul 07 17:20:52 too old Jul 07 17:21:02 how old are you? Jul 07 17:21:08 35+ Jul 07 17:21:20 u? Jul 07 17:21:31 33 Jul 07 17:21:32 raoul11: 40-? :) Jul 07 17:21:41 anywho, we might be looking Jul 07 17:21:48 11+- Leeds Jul 07 17:22:10 jlm so far away Jul 07 17:22:15 raoul11: http://www.glide.me/job-openings/senior-android-developer Jul 07 17:22:20 * Leeds has 0x28 coming soon Jul 07 17:22:22 there is an office in RG Jul 07 17:22:56 cheers Jul 07 17:23:11 i might apply after i deploy the next app Jul 07 17:23:19 yay Jul 07 17:23:19 if it wont make millions Jul 07 17:23:22 which it wont /: Jul 07 17:23:28 but one could dream.. Jul 07 17:23:44 well, startups is where the dream comes true Jul 07 17:23:52 if your dream is less sleep and bad hopes Jul 07 17:24:00 well that and flappy bird Jul 07 17:24:28 cushy corporate and a life without purpose is where it's at Jul 07 17:24:43 yeah baby! Jul 07 17:24:47 do you guys do whiteboard questions thepoosh ? Jul 07 17:24:49 apparently the Israeli startup market is drying up a bit Jul 07 17:25:01 Leeds it doesnt look like it Jul 07 17:25:06 but its the current buzz Jul 07 17:25:07 Leeds: that is actually not true Jul 07 17:25:46 i got so many friends with a startup and a dream.. all sitting with accelerators promising them the sky Jul 07 17:26:02 I think it's drying up a bit everywhere, to be honest Jul 07 17:26:04 don't play to win, play to play Jul 07 17:26:28 rosten i actually turned down a corp job like three weeks ago Jul 07 17:26:54 my dad is still quite disappointed that I came to HK instead of Israel Jul 07 17:26:55 i felt that joining that company is like re-enlisting to the army Jul 07 17:27:19 raoul11: you're not wrong :) Jul 07 17:27:25 and those fu^$%^$ whiteboarded tested me Jul 07 17:27:31 and i was like, what Jul 07 17:27:42 raoul11: we have a whiteboard Jul 07 17:27:45 gibe a pc with an editor and see what i can do Jul 07 17:27:51 but the real thing is with a computer Jul 07 17:27:55 thepoosh i didnt do CS Jul 07 17:28:00 so? Jul 07 17:28:00 waterboard is where it's at Jul 07 17:28:12 and the last time i read about algos was years ago Jul 07 17:28:37 and i havnt holded up a marker since i was in uni Jul 07 17:28:45 was so lost.. Jul 07 17:28:47 raoul11: spend a couple of weeks with those coding interview books and a whiteboard and a video camera and you'll be good Jul 07 17:29:08 Leeds: http://www.calcalist.co.il/internet/articles/0,7340,L-3665512,00.html Jul 07 17:29:16 rosten: yeah, grabbed a few ebooks Jul 07 17:29:17 dunno how's your hebrew Jul 07 17:29:30 but im not really lookin into corp Jul 07 17:29:45 thepoosh: my Ivrit isn't really up to business news :/ neither is my Chinese, though Jul 07 17:30:19 Google translate works well :) Jul 07 17:30:54 Leeds: http://www.ivc-online.com/Research-Center/IVC-Publications/VC-Fund-Reports/VC-Fund-Raising Jul 07 17:31:45 I think http://www.haaretz.com/israel-news/business/.premium-1.726558 was the story I read - last month, rather than a year ago Jul 07 17:32:26 whether you like haaretz as a source or not, that's off-topic :) Jul 07 17:32:54 I remember that story Jul 07 17:33:06 it just means that there are not enough workers for the jobs Jul 07 17:34:03 also saying the government doesn't give as much support as in other countries Jul 07 17:34:17 true, the support is from VCs Jul 07 17:34:25 which is arguably better Jul 07 17:35:10 u blv that thepoosh, that the israeli hi-tech industry is lacking workers? Jul 07 17:35:32 I am sure it does Jul 07 17:35:39 that is why I make as much as i do Jul 07 17:35:42 or is it a cheap propoghanda to lower salaries by importing cheap farang workers Jul 07 17:35:45 I guess Israel also has a specific issue with companies bringing in non-Jewish staff Jul 07 17:35:54 farang, really? :) Jul 07 17:36:02 (: Jul 07 17:36:34 everywhere has a shortage of skilled, experienced, cheap workers, I think Jul 07 17:36:34 Leeds: we are actually looking for a non-jew Jul 07 17:36:37 influence of my SE asia buddies Leeds Jul 07 17:36:43 to maintain our servers on the sabbath Jul 07 17:37:40 I love how Jewish people protect their own, wish humans in general had that mentality...don't think Rotschilds would have been as successful if it were not for that Jul 07 17:37:43 need to move your servers to Tel Aviv - nobody cares there :) Jul 07 17:38:18 Leeds: I think our servers are in Arizona Jul 07 17:38:26 time for bed, anyway - I'll just leave this here... https://en.wikipedia.org/wiki/Shabbos_goy Jul 07 17:38:43 indeed Jul 07 17:38:58 o/ Jul 07 17:39:04 what tools would you guys recommend for android dev? Jul 07 17:39:30 mr_yogurt: vim Jul 07 17:39:32 mr_yogurt: Android Studio, Vim :) Jul 07 17:39:44 oh jeez Jul 07 17:39:51 mr_yogurt: couple of different size nexuses and a samsung device Jul 07 17:39:59 lilah tov, y'all Jul 07 17:40:16 last time i tried doing android development it was done in eclipse. what happened? Jul 07 17:40:33 NO VIM Jul 07 17:42:19 to be fair I haven't actually used Android Studio but I hear it's pretty good now, triple screen Vim for me, but plan to have AS on one screen Jul 07 17:42:49 rosten: AS has a VIM plugin Jul 07 17:42:59 sweet, didn't know about that Jul 07 17:43:16 will using windows be a problem? i don't feel like rebooting to linux right now Jul 07 17:43:27 https://plugins.jetbrains.com/plugin/164?pr=idea Jul 07 17:43:33 mr_yogurt: shouldn't be a problem? Jul 07 17:43:34 mr_yogurt: no] Jul 07 17:44:13 g00s: still have the orm/vietnam thing open Jul 07 17:47:50 Hi so, I'm trying to incorperate a tablayout and for each tab fragments, I'm trying to use my existing ListActivity code and incorperate it as a fragment but as an android noob as I am, I dont know what to do, I'm just been trying to find some tuts but no luck. Here is my attempt: http://pastebin.com/y1bGFKgt Jul 07 17:47:58 here is the custom listview layout http://pastebin.com/kxAuyUA5 Jul 07 17:48:15 the problem so far is i dont know how to incorperate my listactivity code as fragment and also as a fragment its giving me cannot resolve method for set list adapter Jul 07 17:48:24 can anyone take a look at my code and point me to few tutorials at the very least, I'd appreciate it Jul 07 17:49:08 DarkChaoz: are you using a ViewPager? Jul 07 17:50:22 no, I'm trying to incorperate my listactvity as a fragment Jul 07 17:50:41 I need some guidance and help as much as an android noob i am lol Jul 07 17:50:57 DarkChaoz, forget about listactivity. Just learn how listview works, or perhaps even recyclerview Jul 07 17:51:01 then add that to a fragment Jul 07 17:51:26 I have not looked at your code, but I think perhaps trying to stick with listactivity is tripping you up Jul 07 17:51:32 recyclerview is where it's at Jul 07 17:52:07 recyclerview is better, but listview is more simplistic to start with Jul 07 17:52:49 truckcrash: better? Jul 07 17:53:29 I see, I've stuck with listactity because it was fine for my simple app, but now trying to revamp it to include a tablayout. and the fragment and async generated lists is tripping me up Jul 07 17:53:46 DarkChaoz: just learn how to use layouts and lists Jul 07 17:54:02 listactivity IIRC is not very maintained Jul 07 17:54:09 and has no real value Jul 07 17:55:46 thepoosh, ok yes, it is not a "better/worse" relation between the two. List view does have its advantages. I personally prefer recyclerview most of the time as it is often the best for the task at least in my case Jul 07 17:55:50 is there any tutorials about async listviews and fragments, would definitely have a read Jul 07 17:56:22 Because, I just dont really want to change too much code, since I already have a working simple code Jul 07 17:56:25 DarkChaoz: plenty just search for the words "listview android tutorial" Jul 07 17:56:59 I been doing all day, trying to find something which fits my purpose, no luck Jul 07 17:58:15 DarkChaoz: Android development is funny that way, almost as if Google purposely want to make developers suffer :) Jul 07 17:58:25 I guess, I;'ll just call it a day, wasted enough time just to find an answer -_- Jul 07 17:58:44 i know, the irony :| Jul 07 18:00:39 anyhow, thanks for the advice guys, but Im probably just going to stick with finding whatever solutution that fits my purpose without darastically changing my code., I'll do that tomorrow. Jul 07 18:04:33 In theory you should be able to glance the Android java doc and/or developer guide for an hour or two and then fairly straight forward implement whatever standard things you are trying to create, rarely works that way, you have to spend days searching tiny blogs all over the place for small pieces of code and suit them to fit your need, find out that google decided to not implement a certain method (ic Jul 07 18:04:39 on tinting in nav drawer) etc. etc. But hey, it keeps the barriers of entry fairly high, who am I to complain. Jul 07 18:09:52 not sure if this is the right place to ask, but i want to stream video from an android to my desktop over a VPN. ive got it working locally on my wifi, but i cant seem to even ping either device from one another on the same VPN. anyone know what kind of approach i can take? Jul 07 18:15:58 ggggg: can you ping the router? Jul 07 18:16:51 ggggg: most likely VPN related (not Android?), search for vpn "can't ping" internal (or something like it) Jul 07 18:19:11 rosten yeah ive been looking around for something like that Jul 07 18:19:19 gonna make sure the VPN is configured correctly on the android device Jul 07 18:20:10 doesnt look like i can ping the router Jul 07 18:22:42 Is there a way to create a FILE object and writing into it WITHOUT having a real file ? Jul 07 18:24:18 cart_man: something security related? Jul 07 18:24:43 rosten: Yes... The file will never really exist on the device accept in Encrypted mode Jul 07 18:24:57 cart_man: would probably be called virtual file or similar Jul 07 18:25:00 figured as much :) Jul 07 18:25:02 rosten: Soo from memory to Enc and Visa Verse Jul 07 18:25:16 rosten: Yea but would that be accepted by the LIB that requires a File ? Jul 07 18:25:20 Object` Jul 07 18:25:29 hmm Jul 07 18:27:16 memory mapped file on android Jul 07 18:27:45 https://developer.android.com/reference/java/nio/channels/FileChannel.html - could be of use? Jul 07 18:28:04 "A region of a file may be mapped directly into memory; for large files this is often much more efficient than invoking the usual read or write methods." Jul 07 18:28:59 i've just known that brazilian gov tax my play store payout transfer in 25% Jul 07 18:29:29 bitkiller: someone has to pay for the olympics ;) Jul 07 18:29:34 time to move? Jul 07 18:29:34 lol Jul 07 18:29:50 sad but true Jul 07 18:30:22 rosten, yep, time is running out Jul 07 18:31:40 time goes on forever, just like tweenkies Jul 07 18:34:31 how do I register a longpressclick listener on a parent viewgroup if the children have ordinary clicklisteners? Jul 07 18:34:48 I figure it would involve onInterceptTouchEvent but hopefully there's an easier way Jul 07 18:45:48 Anybody know why File.createTempFile() " Cannot resolve symbol "? Jul 07 18:46:31 Sigh nevermind... Jul 07 18:46:33 remove NEW Jul 07 18:46:39 hey anyone can help with proguard? I'm getting `java.lang.NoSuchMethodException` on release builds even with `minifyEnabled false` in my build.gradle Jul 07 18:47:04 i've also tried @Keep annotations, but no difference Jul 07 18:48:15 oh, I wish it was only for the olympics... the problem is way bigger than that Jul 07 18:49:17 is there anyway to turn on proguard verbose mode with gradle? Jul 07 19:01:12 hi everyone, can anybdoy tell me where or what to read to create cool looking textviews for android apps? Jul 07 19:01:18 rosten: i can ping the router but just not other devices on the VPN Jul 07 19:01:23 for example a rounded shap textview Jul 07 19:01:47 background drawable 9patch ^^ Jul 07 19:01:56 theres some terms to google Jul 07 19:06:41 Did someone of you use GitHub CI with android projects (for testing PRs, commits etc) Jul 07 19:11:05 g00s: http://www.seattletimes.com/business/microsoft-invites-bae-interns-to-get-lit-on-lots-of-dranks-then-apologizes-again/ Jul 07 19:20:24 thepoosh http://i.imgur.com/IuzRXZ4.jpg Jul 07 19:20:32 :3 Jul 07 19:22:33 any android-ish news today? Jul 07 19:23:15 g00s: nah Jul 07 19:23:31 we won a deaf association award Jul 07 19:24:53 dragorn oh oh http://www.androidpolice.com/2016/07/07/lawsuit-reveals-silent-circles-blackphone-business-is-a-complete-and-utter-mess/ Jul 07 19:27:08 thepoosh something nice for your home http://www.smithsonianmag.com/innovation/farmbot-genesis-brings-precision-agriculture-your-own-backyard-180959603/?no-ist Jul 07 19:28:12 g00s: 1000$ is a bit high and that is the lowest price they hope to get to Jul 07 19:28:22 g00s, yep Jul 07 19:28:26 g00s, there's a reason I quit :P Jul 07 19:31:24 new book on concurrency http://www.informit.com/store/android-concurrency-9780134177571 Jul 07 19:31:31 you quit farmbot? :( Jul 07 19:31:36 i would have passed it over but Dave Smith gave thumbs up Jul 07 19:32:23 g00s: needs a more robust mechanism for avoiding dirt in the track, etc Jul 07 19:32:31 g00s: is it one page that just repeats the word "don't"? Jul 07 19:49:07 kroot, heh, no, the other one Jul 07 20:41:37 * pfn adds automatic view binding to sbt-android as well Jul 07 20:41:40 nice enough feature to have Jul 07 20:46:29 how do I cache ndk installation on travis-ci? Jul 07 20:46:37 that shit takes like 40 minutes to install Jul 07 20:47:14 pfn: language, but I do in it ConnectBot. Jul 07 20:47:26 yeah, that was first google hit Jul 07 20:47:48 https://github.com/connectbot/connectbot/blob/master/.travis.yml#L43-L47 Jul 07 20:48:52 how does the cache checking work? I don't see you checking if it's already there before curl Jul 07 20:49:04 The -z works Jul 07 20:49:10 er, does that Jul 07 20:49:28 oh, done in curl Jul 07 20:49:45 reasonable enough, thanks Jul 07 20:50:17 Most of the build time is taken up booting the emulator, though. Travis can only do ARM Jul 07 20:51:02 I start the emulator and then start the unzip which helps cut down the time a bit. Jul 07 20:52:09 most of my testing time is spent in downloading/installing ndk Jul 07 20:52:29 running tests in emulator is slow, but still, getting ndk is hugely slow Jul 07 20:52:43 https://travis-ci.org/scala-android/sbt-android Jul 07 20:52:49 and connectbot lives? thought that was gonna gather dust Jul 07 20:54:51 kroot, but unzipping always occurs? Jul 07 20:55:27 pfn: yes Jul 07 20:56:05 can anyone tell me if there is a property for seekBar to make it vertical? Jul 07 20:56:17 might work better to only unzip a subset of NDK, but I haven't invested much time since that's not the 80% Jul 07 20:59:03 lots of disk IO to unzip the >1gb file Jul 07 20:59:58 Hello? anybody there knows about seekbar? Jul 07 21:01:16 800mb for linux, I guess Jul 07 21:04:06 LJHSLDJHSDLJH no vertical seekbar, you'll have to do it yourself Jul 07 21:04:45 or grab library, etc Jul 07 21:06:42 https://github.com/scala-android/sbt-android/blob/master/.travis.yml Jul 07 21:06:43 hope this works Jul 07 21:13:05 g00s: Is there other out of the box component to give the same vertical seekbar functinoality? Jul 07 21:13:25 obviously not Jul 07 21:13:46 wish the sdk installation could be cached Jul 07 21:14:42 LJHSLDJHSDLJH search github / android arsenal for 3rd party things Jul 07 21:15:00 g00s: how difficult is it to make a vertical seekbar? are there any tutorials without having to use libraries? Jul 07 21:15:12 look at the source code for seekbar Jul 07 21:15:16 adapt it to work vertically Jul 07 21:15:51 yeah, just change "x" to "y" in a few places :P Jul 07 21:16:38 tutorial? Jul 07 21:16:43 Large files that are quick to install but slow to download do not benefit from caching, as they take as long to download from the cache as from the original source: Jul 07 21:16:43 Android SDKs Jul 07 21:16:44 hmm Jul 07 21:16:46 ok Jul 07 21:19:21 pfn: any idea if that's mostly downloading or mostly unzipping, or roughly even? Jul 07 21:20:56 * pfn shrugs Jul 07 21:21:08 danalbert: I think it's roughly even, but if you know a subset to unzip that would be useful Jul 07 21:22:44 kroot: I've been pushing for publishing tarballs instead of zip files for linux/darwin, and I would guess that using pbzip would extract much faster Jul 07 21:22:53 Not sure if you can get pbzip on travis Jul 07 21:23:23 Doing so would also make extracting a subset of the NDK essentially useless since you have to decompress the whole thing either way Jul 07 21:23:39 g00s: I've downloaded a repo called android-verticalseekbar-master but there isn't anything in the readMe file on how to add into my project Jul 07 21:24:09 how do shall I go about adding it and seeing/using vertical seekbar Jul 07 21:27:49 danalbert: I think the disk write speed isn't that graet Jul 07 21:28:00 or great Jul 07 21:35:17 am I linking against libs found in MY_LIBS path correctly in this Android.mk file ... http://pastebin.com/fBXGkYJZ Jul 07 21:35:49 i'm still getting undefined refs that should be in myLibB and myLibC, so i think this isn't correct Jul 07 21:40:23 pepperoni: LOCAL_SHARED_LIBRARIES is for libraries defined as BUILD_SHARED_LIBRARY; it's not what you want assuming myLibB/myLibC are prebuilt things Jul 07 21:42:28 You'd want `LOCAL_LDLIBS := -lmyLibB -lmyLibC` Jul 07 21:43:03 Unless they actually are NDK modules, in which case you should just include the Android.mk files and drop the -L Jul 07 21:43:41 (not related to your question, but you don't need to manually add stlport includes/libs, just set `APP_STL := stlport_static` in Application.mk) Jul 07 21:44:00 danalbert: myLibB and myLibC are built elsewhere and given to me as binaries that I'm trying to link against, I could have used better names Jul 07 21:44:59 pepperoni: so you could turn them into prebuilt NDK modules like so: https://android.googlesource.com/platform/ndk/+/master/sources/cxx-stl/stlport/Android.mk#82 Jul 07 21:47:11 danalbert: ok, let me digest all this, thanks Jul 07 21:48:16 Hi guys! Recently I published my first app (the first I published myself under my name) and I'd like to place the code on Github. Does it violate Play Store policies or not? I know I can read the terms myself, but I admit I'm just lazy at the moment :) Jul 07 21:48:20 i thought LOCAL_LDLIBS was more for system libs Jul 07 21:48:39 and i was trying to find a place to put the lib path, such as -L Jul 07 21:48:54 pepperoni: yeah, ndk-build will probably yell at you if you do it that way Jul 07 21:48:59 So, can anybody who knows the answer clarify it to me please? Jul 07 21:49:04 Using PREBUILT_SHARED_LIBRARY is better Jul 07 21:49:10 ok Jul 07 21:57:01 danalbert, eh? tarballs don't require decompressing the entire thing, unless you mean pbzip, which I have no idea how works Jul 07 21:57:31 AlexBerdnikov, read terms Jul 07 21:57:37 and the answer is fairly obvious... Jul 07 21:58:04 curl https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip -z $ANDROID_NDK_HOME -o $HOME/.cache/ndk/ndk-${NDK_VERSION}.zip Jul 07 21:58:04 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Jul 07 21:58:07 ugh, why didn't it download... Jul 07 21:58:15 pfn, well, I wouldn't ask if it was so for me TBH :) Jul 07 21:58:29 AlexBerdnikov, obvious = use google Jul 07 21:58:32 stop wasting time here Jul 07 21:59:29 pfn, the thing is that I did google, found nothing relevant in the first 3 mins and then went here Jul 07 21:59:44 android play store github Jul 07 21:59:47 nothing relevant turns up Jul 07 21:59:47 ok Jul 07 22:00:00 But you're right, I'll better read the terms Jul 07 22:32:37 Hey! I need to store user's name on first run. If name is saved, the 1st activity won't be shown on the next run. I've tried shared preferences but got no luck. Jul 07 22:34:11 hey, I'm learning how to use Firebase and I'm running into an issue with the google sign in, "GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);" result.isSuccess() keeps returning false Jul 07 22:34:22 any ideas? Jul 07 22:35:32 pfn: literally tarball no, but the tar.bz2 Jul 07 22:36:19 And yeah, pbzip2 would be the way to go to speed up the process Jul 07 22:36:36 Was a 4x speed up in the packaging process iirc Jul 07 22:47:24 meh, caching ndk looks like it saves me maybe 10 minutes Jul 07 23:25:06 $ curl https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-x86_64.zip -z ${ANDROID_NDK_HOME}/ndk-build -o $HOME/ndk-${NDK_VERSION}.zip Jul 07 23:25:06 Warning: Illegal date format for -z, --timecond (and not a file name). Jul 07 23:25:08 wtf... Jul 07 23:25:50 but it is a file name... Jul 07 23:38:33 what does synchronized mean? Jul 07 23:41:13 flappynerd: if you are a part of a band you need to be synchronized with the other members Jul 07 23:45:27 and what about in the context of #android-dev ? Jul 07 23:48:27 flappynerd: synchronization is used as a "gatekeeper" to make sure everyone accessing the data has the right idea what the data is at any given point (sort of) Jul 07 23:49:04 k Jul 07 23:49:29 you can probably find a better explanation using google Jul 07 23:58:16 how should i store per-server preferences for an ssh app? Jul 08 00:04:59 YouCallItFar: probably overkill but I'd just use SQLite Jul 08 00:07:09 or you can create a custom file, probably wouldn't use shared prefs though Jul 08 00:07:33 hm not bad idea rosten. it seems the Preferences api is for per-app settings. Jul 08 00:07:52 right. what about using shared prefs together with flatbuffers tho? Jul 08 00:08:52 so i would essentially make a custom file for each server but use an android api to store the serialized file Jul 08 00:10:07 i guess i could just use actaul files for that... Jul 08 00:10:16 hmm, you can't keep them all serialized in the same file? Jul 08 00:10:43 seems a bit messy to have a separate file for each server Jul 08 00:10:56 but what do i know.. :) Jul 08 00:11:27 well i could using sqlite as you suggested Jul 08 00:12:27 then you have to create all the database boilerplate i suppose Jul 08 00:12:51 any chance of the app needing to save more data, i.e. many entries in the future? probably not? Jul 08 00:13:06 like saving/caching the ssh output Jul 08 00:13:13 caching command history etc Jul 08 00:13:28 for re-use when opening the app maybe Jul 08 00:14:07 that would be more database-worthy probably Jul 08 00:15:25 lots of convenience for the user for not that much more work Jul 08 00:16:37 yeah, true. good points! thanks. Jul 08 00:16:45 np Jul 08 01:18:06 how do I achieve the equivalent of: curl --user "myusername:somepassword" --data "x=blah&y=2" "https://somesite.com/some/endpoint" Jul 08 02:03:24 Anyone know about calling a native API, specifically native_agps_ni_message which is from the Android system itself from a custom app? We have root but everything seems to require signing with specific certificates or recompiling the OS. Jul 08 02:03:26 Thanks. Jul 08 02:03:32 Ping me if you have any ideas. Jul 08 02:10:35 if it requires permissions their is no way around it **** ENDING LOGGING AT Fri Jul 08 02:59:58 2016