**** BEGIN LOGGING AT Tue Mar 14 03:00:03 2017 Mar 14 03:38:47 hi peeps Mar 14 03:39:19 Anyone know if the default android icons are in anyway unsafe to remove from a production application? Has anyone gotten their review declined for not including those icons? Mar 14 03:39:46 Do they act as a fallback for anything or are they only needed if explicitly used? Mar 14 03:40:54 Assuming you mean the icon in /mipmap? Mar 14 03:41:01 orbyt_: yes Mar 14 03:41:16 You can remove it if you have you're using your own. Mar 14 03:41:30 if you're using your own* Mar 14 03:42:53 orbyt_: that's what I assumed; android studio even throws lint warnings for keeping them included but someone else working on the project insists we should've kept them incase android needed a res I didn't include (all are included, that are required today) Mar 14 03:43:22 It would just fallback to a different res. Mar 14 04:24:28 hey , what restful api implementation should i use for android , considering i am beginner in restful api's Mar 14 05:18:17 I'm trying to run a simple search interface in my android app, but it crashes whenever I run it. Mar 14 05:19:38 When I debug the application, the SearchView object in my OnCreateOptionsMenu() comes up null everytime: Mar 14 05:19:40 https://hastebin.com/laqitojebu.java Mar 14 05:35:04 If i want my views to wrap inside a linearlayout, what should i do? Mar 14 05:37:50 make them match_parent Mar 14 05:38:06 they won't ever be larger than the layout Mar 14 05:56:08 hey , what is the recommended way to add an external library , without messing with gradle file Mar 14 06:28:48 anyone know whats up with the android 6 record issue? the record preview is fine, soon as you record, it darks a lot, like i shut a light off. i've tested this on 3 different tablets in store and same issue. Seems I am not the only one when i google. known issue. Anyone know of a fix? I'm on a galaxy tab a 10.1 Mar 14 06:41:15 <_abc_> Hello. Is there an app like Poison Maps for ithings for android? Using openstreetmap as data and with offline capability? Mar 14 06:44:12 <_abc_> http://wiki.openstreetmap.org/wiki/Android ok I retract that Mar 14 06:45:24 Hey. I have a CheckBoxPreference that I want to save as a string (want to cryptographically sign it before it goes in to storage). Currently I'm having OnPreferenceChangeListener where this is done but I cant seem to figure out how to: 1. Save this signed preference 2. Load it and display it as a checkbox Mar 14 06:57:20 * raoul11 thepooshes thepoosh Mar 14 06:57:38 raoul11inka Mar 14 06:57:51 sup Mar 14 06:58:01 u coming in early lately Mar 14 06:58:05 woot Mar 14 06:58:12 there was little traffic today Mar 14 06:58:23 but I leave home every day after I put the kids in gan Mar 14 06:58:27 which is 7:30 Mar 14 06:59:21 nice Mar 14 06:59:28 plans for today thepoosh ? Mar 14 06:59:38 integrating ad networks Mar 14 06:59:41 i hate it already Mar 14 07:00:07 naice Mar 14 07:00:10 which ones Mar 14 07:00:16 or just plain old admob? Mar 14 07:00:23 integrating something called MoPub Mar 14 07:00:27 yeah Mar 14 07:00:33 so admob nemesis Mar 14 07:00:43 thats for mediation Mar 14 07:00:44 is it? Mar 14 07:00:56 i don't know any of these and it's breaking my balls Mar 14 07:00:57 well ya, since they also offer mediation Mar 14 07:01:13 <_abc_> Anyone working on adblock software for android? ;) Mar 14 07:01:15 isn't meditation something to do with the soul and not apps? Mar 14 07:01:23 _abc_: AdBlock did Mar 14 07:01:24 negative Mar 14 07:01:36 <_abc_> mideitation != mediation Mar 14 07:01:40 oh that Mar 14 07:01:42 <_abc_> *meditation ;) Mar 14 07:01:42 yes Mar 14 07:01:46 I misread it Mar 14 07:01:55 i usually set my own mediation logic Mar 14 07:01:59 admob was always painful Mar 14 07:02:15 so i just integrate each net alone Mar 14 07:02:23 <_abc_> http://www.project-disco.org/competition/030314-observations-on-the-economics-of-mobile-app-suite-bundling/ hmm Mar 14 07:02:35 its not as if its saving u from installin a fuckton of 3rd party ad providers Mar 14 07:02:44 just giving u mediation lgoic Mar 14 07:02:57 <_abc_> I wonder if Android Inc will follow in the steps of iStore and force developers to not update ota from their own sites... Mar 14 08:38:35 Hi all. Does somebody have experience with building an android project on Jenkins? I've got an issue with installing the Android Build Tools.. Mar 14 09:01:45 I have an input field that allows both pre-defined values and custom values. What is the android standard for inputs like this? I found something like this https://i.stack.imgur.com/amAxE.jpg Mar 14 09:03:52 Are there any more elegant solutions? Mar 14 09:33:05 Does somebody know if you can limit firebase remote config on app level (one project in firebase console with multiple apps)? Mar 14 09:38:16 limit how? Mar 14 09:45:45 @FrancescoV, you can use an appropriate condition on that remote config. Mar 14 10:26:02 relict2, Yes I think that's the only option I have.. thanks! Mar 14 10:33:08 anyone knows library for images like instagram having timer steps Mar 14 10:42:25 hi all Mar 14 10:45:35 I have a big project, a lot of people worked on that and I need to create a library project from that, and generate a jar file. Jar file generation is working with a small example project, where I create a project without activity, refactor - rename the app to library, I put task deleteJar, createJar and createJar.dependsOn methods and method calls into build.gradle (Module: library), remove the app id and change the apply plu Mar 14 10:45:46 so this method works for a simple project with 1 class and without activity Mar 14 10:46:13 I did this using: https://gist.github.com/daniellevass/2c46cf33e3814e685b47 and http://jeanmeyblum.weebly.com/scripts--tutorials/communication-between-an-android-app-and-unity Mar 14 10:46:33 and now I wanted to change the big project to be able to do the same, as I already mentioned Mar 14 10:47:17 changed everything, and I get error: :library:compileDebugJavaWithJavac Mar 14 10:47:51 obviously the error has nothing to do with JDK or JAVA_HOME environment variables, since the other project can easily create the jar Mar 14 10:47:56 so the problem is with this big project Mar 14 10:48:24 I thought it has something to do with it's activities, because it has many basically, but I'm not sure Mar 14 10:48:32 do you have any idea? Mar 14 10:59:23 raoul11: http://rotter.net/forum/scoops1/388578.shtml Mar 14 11:01:32 seent that Mar 14 11:01:36 look at comments Mar 14 11:01:47 170 request over the previously 100 Mar 14 11:05:04 If you want to merge 2 bitmaps, can you specify the position of bitmapX like topLeft, topRight, bottomLeft, bottomRight x-y? Mar 14 11:05:24 Hello everyone, I've got a problems with location services - after a few days I've observed my app stops sending the GPS data to the server. Are there any bugs in location manager which disables the GPS chip? Mar 14 11:06:34 another, independent question from the previous: can I somehow copy packages from one project to another? Mar 14 11:08:45 I'm just wondering what might be a cause - http://stackoverflow.com/questions/13594932/network-provider-not-providing-updated-locations Mar 14 11:10:37 I've started digging and in android there are 2 classes responsible for location services - which one is the most reliable? Mar 14 11:14:11 greyline: nothing stops you from copy pasting the package from one window to anther Mar 14 11:17:46 can anyone please help me in getting google vision api working for scanning barcodes? Mar 14 11:18:04 Anyone here used the location api? Mar 14 11:18:06 I have build the app but it is not reading any barcode Mar 14 11:21:41 Can anyone help please?? Mar 14 11:35:16 Hi Mar 14 11:35:40 Capturing QR code and clicking on the screen does nothing. Mar 14 11:36:11 Is anyone here who his hands smudged with Google Vision API for reading barcodes? Mar 14 12:08:53 hi all! I have two projects, one has only 1 class, and it can run a task what creates jar in Android Studio. The other is a big project, has 30-40 classes, and it can't, gives me compiledebugjavawithjavac error. Why? Mar 14 12:24:48 Guys, How do I import pure android source code into android studio? Looks like gradle is necessary for that but I don't have gradle scripts with the code and I don't want to write it myself. Mar 14 12:27:17 you mean you've got the code for an app, but no build scripts? Mar 14 12:28:08 Leeds, exactly Mar 14 12:28:49 you can write a simple gradle script in about 15 lines, at least to get started Mar 14 12:28:58 dunno about AS, I don't use it Mar 14 12:29:23 Pretty much the best way. Mar 14 12:29:30 Get an empty app skeleton, copy your sources in. Mar 14 12:29:42 Start an empty project in Android Studio, and then drop the class files in Mar 14 12:30:05 Leeds, what are you using? Mar 14 12:30:20 d0048: the command line, as the good lord intended Mar 14 12:30:22 ed. :P Mar 14 12:30:27 and vim, of course Mar 14 12:30:37 Mavrik, that sounds like a good idea... Mar 14 12:30:50 Haven't tried that out Mar 14 12:34:29 Hi Mar 14 12:35:17 I am trying to use Google Vision api. Is there anyone who can help me out. I have an issue where tapping after scanning the code doesn't lead anywhere. Mar 14 12:40:40 if i were going to develop an android app that also will eventually have a integration to a web app that does essentailly the same thing and then again in the future an ios app that also integrates, would it be wise to develop the web app first or the android app? Mar 14 12:41:09 I'd probably use a framework like react native Mar 14 12:41:13 not looking for a quick project, this is something i expect will take time i just...want to know where i should dig in first Mar 14 12:41:13 if that were the case. Mar 14 12:41:34 hi all! I have two projects, one has only 1 class, and it can run a task what creates jar in Android Studio. The other is a big project, has 30-40 classes, and it can't, gives me compiledebugjavawithjavac error. Why? Mar 14 12:41:45 spicerack, people can use properly designed web app on phones Mar 14 12:41:53 but they can't use Android app on iOS / Web Mar 14 12:42:02 So do web first... and consider if there's any point of making a mobile app. Mar 14 12:42:13 ^ Mar 14 12:42:16 okay Mar 14 12:42:25 this isn't a for profit thing, it's just as a project to teach myself stuff Mar 14 12:42:35 the actual apps themselves won't have much functionality Mar 14 12:42:44 maybe my family will enjoy them Mar 14 12:43:53 thanks for the alternative perspectives Mar 14 12:44:15 :) Mar 14 12:44:56 also my challenge is i don't own an android device yet Mar 14 13:21:15 hi all, again Mar 14 13:21:22 I have found out the problem Mar 14 13:21:50 why can't I use R.id. etc. , R.string. etc and so on in a library project? Mar 14 13:23:55 What's the best way to encrypt traffic between client and server in my app? Mar 14 13:35:22 anyone know of a video camera fix for marshmellow? known issues for when recording videos the brightness drops significantly, the live preview is fine, soon as you hit record, brightness drops. Mar 14 13:48:22 Is there any good tutorial on how I can implement SSL socket for encryption traffic between client and server? Right now in the app, you can use NFC to authenticate and I wanna encrypt this traffic between client and server Mar 14 13:48:40 I have googled but haven't find anything good, and have never done this before, so all help would be appreciated Mar 14 14:16:00 Hi, can someone help me with this? https://stackoverflow.com/questions/42788081/problems-with-react-native-java-module-to-turn-screen-on Mar 14 14:45:20 Hi. Can anyone java here? Mar 14 14:45:38 * raoul11 thepooshes thepoosh Mar 14 14:50:05 Hi guys! I need to type decimal value into EditText so it'll format the value automatically according to current locale but I also need to be avle to control decimal precision and limit the amount of decimal digits after decimal separator sign (whatever it is, a dot or coma). Is there support of such in SDK? Mar 14 14:50:13 Does somebody know if you can create an Android Emulator with andorid 7.X on Jenkins? Mar 14 14:51:47 All I could come up with so far is custom EditText where I deal with formatting + InputFilter to control a precision. Mar 14 14:52:14 But it fails to work properly with other locales which aren't US Mar 14 14:52:47 I wonder why Android doesn't have such a trivial stuff out-of-box Mar 14 14:54:45 u mean a decimal seperator? Mar 14 14:55:05 AlexBerdnikov: https://developer.android.com/reference/java/text/NumberFormat.html ? Mar 14 14:55:51 Is it a problem if your build tools version is like 19 andoid target is 25? Mar 14 14:58:45 raoul11: hi hi Mar 14 14:58:46 Roughy, yes, i know about this, but still I need to create custom InputFilter. Mar 14 14:58:52 But thanks, anyway. Mar 14 14:59:42 hows yer ad integration going thepoosh ? Mar 14 14:59:59 AlexBerdnikov: add a textwatcher Mar 14 15:00:09 I am now fixing my stupidhead mistakes Mar 14 15:00:27 which ad networks have u integrated? Mar 14 15:03:29 If you guys have an Android Library module, how do you distribute it (in your company)? Mar 14 15:06:50 What is the path to the ARM cross-compiler in the present distribution of the Android SDK? I am on Mac El Capitan. Mar 14 15:07:07 The same way you distribute any other library module in Java, FrancescoV Mar 14 15:07:32 You can use any of the many artifact management systems around, artifactory is free, while bintray / jcenter has some nice(r) paid ones Mar 14 15:07:53 FrancescoV: you should publish it to a private maven repo Mar 14 15:08:11 I remember reading something about it in medium a few weeks back Mar 14 15:11:06 Thanks for the tips, I'll check into it. I tried to build the library with a jenkins server but without success right now... Mar 14 15:19:32 so lately whenever i install the SDK I don't get an Sdk/tools/lib64 directory. Only Sdk/tools/lib. This is causing problems because it prohibits me from launching the emulator (it complains of missing i965_dir.so). Without a lib64 directory, i can't apply the fix detailed here: http://cialu.net/blog/android-studio-ubuntu-issue.html Mar 14 15:19:59 I really feel like im supposed to have that directory, but i have no idea to tell the sdk install (via the manager or terminal) to install the 64 bit stuff Mar 14 15:20:24 this issue appeared kind of randomly a few days ago, i believe after something updated in androids studio Mar 14 15:20:48 clean wipes / installs don't seem to help, with studio version 2.2.2 or 2.3. This is on Arch Mar 14 15:25:34 DrAwesomeClaws: I don't have now my personal computer handy, but I can tell you I had to install the tools indipendently from Android Studio 2.3. Mar 14 15:26:07 thanks Enrico_Menotti. Yeah, i did the same in this current install, but for some reason its still not working Mar 14 15:26:27 like it's looking at some env variable and thinking im a 32 bit system or something (not even sure if that would make sense) Mar 14 15:26:40 Sorry, right now I cannot check now my installation. Mar 14 15:26:51 it's cool, thanks for replying so i don't feel lonely :p Mar 14 15:27:04 Did you see my question? Mar 14 15:27:06 What is the path to the ARM cross-compiler in the present distribution of the Android SDK? I am on Mac El Capitan. Mar 14 15:27:18 If you may help... Mar 14 15:28:01 DrAwesomeClaws: I'm feeling lonely with that! Mar 14 15:28:37 haha, sorry I have no idea Mar 14 15:28:51 if it's something i can look up for you in my install i will Mar 14 15:28:55 but wouldn't know where to look Mar 14 15:29:58 DrAwesomeClaws: I read many different things all around, but none seems to apply to my installation... Mar 14 15:30:35 I need the ARM cross-compiler for compiling the kernel. Tried to ask on #android-root but nobody answers. Mar 14 15:32:18 im not super familiar with android architecture, especially once you start talking NDK Mar 14 15:32:27 i know just enough to run into problems and complain on irc Mar 14 15:33:04 the ndk has the cross compiler... Mar 14 15:33:09 there's a extract toolchain script in there Mar 14 15:34:16 hi there Mar 14 15:36:19 can anyone help me with android:pathPattern topic? Mar 14 15:37:53 pfn: Do you mean I have to run a script to set up the toolchain? Mar 14 15:40:30 there's a script you can run so it works as an independent toolchain Mar 14 15:45:53 god, I really hate OSX full screen mode, it's so unfriendly Mar 14 15:46:20 run intellij in fullscreen, other monitors go blank.... Mar 14 15:46:25 on the desktop. agreed Mar 14 15:48:31 pfn: Sorry for bothering you, but could you please provide me with the name of that script? Mar 14 15:48:39 browse the ndk yourself Mar 14 15:48:41 be self-sufficient Mar 14 15:51:56 Hey, can't get localization to work properly, in the Activity's onCreate() i set a locale, when the fragment is loaded it's not in the selected locale..... If i finish() the activity and recreate it, the same process will work in the second time... here's the code, any idea? http://pastebin.com/7MZPcq79 Mar 14 15:51:57 Is there a jni wrapper for libpcap on android? I can compile libpcap and I tried to use jnetpcap and pcap4j as the jni wrapper, but neither seemed to work on android. Mar 14 15:52:22 libpcap requires root, no? that means no jni Mar 14 15:53:49 jni doesn't work as root? Mar 14 15:53:52 You can still compile an standalone executable and run that via su Mar 14 15:54:28 Roughy: I don't follow, an executable of what? Mar 14 15:55:02 you cannot invoke libpcap from an android application Mar 14 15:55:06 not via jni Mar 14 15:55:19 how can i detect a url pattern to open my app if i have a url like this --> https://page.com/reset-password/token the "token" will be generate and send by email Mar 14 15:55:21 ? Mar 14 15:55:22 an android app will always run as the app user, meaning any jni code executable will be limited to the permissions it has. Mar 14 15:55:27 you could runtime.exec dalvikvm -> dex code -> jni, but no one will ever do that... Mar 14 15:55:40 might as well just do as Roughy said and create a native bin and communicate via normal ipc channels Mar 14 15:55:49 ^ Mar 14 15:55:49 (pipe, sockets, etc.) Mar 14 15:56:38 pfn: I'm no expert, but I think you can. This app does it, but it only implements like 2 or 3 functions from libpcap, and I'm not good enough with C to implement the rest. http://kismetwireless.net/gitweb/?p=android-pcap.git;a=tree;f=jni;h=d7e05e0d2accbf4269b3188f284f9da1ae030857;hb=HEAD Mar 14 15:57:16 how can i detect a url pattern to open my app if i have a url like this --> https://page.com/reset-password/token the "token" will be generate and send by email? Mar 14 15:57:21 no, you cannot Mar 14 15:57:32 unless you are using non-root-requiring features of libpcap Mar 14 15:58:14 Ah, that must be what that app is doing Mar 14 15:58:41 Then I'll try Roughy's suggestion. Thanks Mar 14 15:59:54 @fBirD The official docs are pretty good, but Branch.io also writes good documentation on that https://blog.branch.io/technical-guide-android-deep-linking-uri-schemes/ Mar 14 16:00:14 ^ that of course doesn't require using the branch sdk, it's just informational Mar 14 16:00:34 @cdflynn i already try a lot of pattern without success Mar 14 16:00:40 2017-03-14 08:59:16.459 pbcopy[1823:90985] CFPasteboardRef CFPasteboardCreate(CFAllocatorRef, CFStringRef) : failed to create global data Mar 14 16:00:43 I hate osx... Mar 14 16:11:36 I'm experiencing something weird, I change locale from onCreate() of the main activity... the activity gets the new locale, but the fragments are still in english... any idea? Mar 14 16:18:17 need more detail Mar 14 16:19:22 here's the activity code http://pastebin.com/7MZPcq79 ... if i set the local to an RTL language everything would be from right to left, but the strings are still in english.... Mar 14 16:19:44 you need to update the same context Mar 14 16:19:58 i.e. getResources must be the same as that used by the fragment Mar 14 16:20:31 ok, makes sense Mar 14 16:21:50 pfn, so the fragment should work with getBaseContext or should I stop using it ? Mar 14 16:22:07 getBaseContext().getResources() perhaps Mar 14 16:22:08 * pfn shrugs Mar 14 16:30:27 pfn, can you explain? not sure what am I missing, getBaseContext() from the activity would returns a different context from the fragment that's added to that activity? Mar 14 16:30:27 Q - Is https://code.google.com/p/android/issues/list still valid for android bugs? I can't find anything newer, but it looks dead (and code.google.com was otherwise shutdown for 3rd party stuff ages back) Mar 14 16:31:34 viran, change the local on attachBaseContext Mar 14 16:31:40 of the parent activity Mar 14 16:31:46 locale even. Mar 14 16:32:03 b4 the call to super Mar 14 16:35:57 so in Java a boolean null doesn't equate to false? Mar 14 16:36:12 kiall, it's still valid Mar 14 16:36:17 just don't put too much hope in it Mar 14 16:36:28 Yea, I can imagine ;) Mar 14 16:36:33 Still - wanted to report it! Mar 14 16:37:17 raoul11: same weird result.... strings are still in english Mar 14 16:40:41 ecv, why would null == false Mar 14 16:40:46 it's clearly not the same Mar 14 16:41:00 only the case in garbage like javascript Mar 14 16:42:23 it's the same in C, that's why I asked Mar 14 16:43:58 that's because in C false = 0, and NULL = 0 Mar 14 16:44:06 there's no such thing as "boolean" in C Mar 14 16:46:42 I thought it's -1? but nvm Mar 14 16:46:58 yeah I guess I meant bool in C++ but nvm Mar 14 16:47:24 if you thought it's -1.... Mar 14 16:50:35 Just can't let that pass by without a comment: there's been a boolean type in C for the last 17 years or so. (Doesn't really affect the overall point, since control structures and such test for "compares unequal to 0".) Mar 14 16:54:35 I don't think anyone's used it for the last 17 years either :P Mar 14 16:57:06 It's not hard to find counterexamples for that taken literally, but maybe that's fair enough. Mar 14 16:58:19 'tis a matter of C90 vs C99 Mar 14 17:08:41 I narrowed it down, the locale defaults back to english inside anonymous classes like instances of OnClickListener, the OnClick implementation would access the default locale resources, why is that? Mar 14 17:08:43 Hi all, If you have a bitmap. Can you modify it so that it isn't a straight rectangle? like topLeft - topRight - bottomLeft - bottomRight xycoordinates? Mar 14 17:09:04 scaling - resizing a bitmap to a trapezium Mar 14 17:10:12 Hi! Mar 14 17:10:14 sure Mar 14 17:10:47 How I can execute Android NDK inside Android Studio? Mar 14 17:10:55 How I configure it? Mar 14 17:11:03 Error:Execution failed for task ':app:ndkBuild'. Mar 14 17:11:03 > A problem occurred starting process 'command '/path/to/android/ndk-r10e/ndk-build'' Mar 14 17:11:13 That's what it gives :S Mar 14 17:11:32 sounds like you have a wrong path to the NDK in local.properties Mar 14 17:12:53 Question: I want to override only the text size for buttons (otherwise using the values set by the theme upstream, which in my case is Theme.AppCompat.Light.DarkActionBar. Preferably I'd like to override the defaults rather than create a new Style and apply that to buttons in my layouts. Mar 14 17:16:43 there should be a defaultButtonStyle or something like that in the theme Mar 14 17:18:17 where I should put the Android NDK inside an Android project? Mar 14 17:18:31 put it somewhere outside of your project Mar 14 17:18:47 then add this line to your local.properties: ndk.dir= Mar 14 17:18:52 it's already outside but it doesn't work Mar 14 17:19:01 what's in your local.properties? Mar 14 17:19:01 and I have done that also Mar 14 17:19:22 sdk.dir=/Users/wesstlab/Library/Android/sdk Mar 14 17:19:23 ndk.dir=/Users/wesstlab/Downloads/android-ndk-r13b Mar 14 17:19:30 that's inside local.properties Mar 14 17:19:52 then you already have ANDROID_NDK_HOME set Mar 14 17:19:52 hi Mar 14 17:19:58 can i put 2 arguments in plurals? Mar 14 17:20:37 pfn, is the 'sure' on my question? Mar 14 17:21:31 ugh, this app I'm writing has 3 processes now... Mar 14 17:21:56 FrancescoV, sure Mar 14 17:24:50 what do you need 3 processes for? Mar 14 17:24:58 UI process, CV process, and persistent process Mar 14 17:25:26 persistent = run all the time (so as lightweight as possible), CV to load up memory intensive stuff in a separate processing container Mar 14 17:25:32 and then UI takes processed data and renders it Mar 14 17:26:37 pfn, thanks! Mar 14 17:27:16 FrancescoV, of course, a bitmap must always be rectangular, but you can apply a matrix to expand it and shear it into a trapezoid/parallelogram Mar 14 17:30:39 pfn, I haven't used those thing before but looks like I've got a new project for myself :) Mar 14 17:32:03 Hello, I downloaded Android NDK. I end up with a directory called ndk-bundle. It contains, among other things, some scripts: ndk-build, -depends, -gdb, -stack, -which. May anybody explain what do these scripts perform exactly? Mar 14 17:32:22 Enrico_Menotti, google can Mar 14 17:32:55 pfn: Not true. It's a couple of days I'm wondering around and cannot find a detailed documentation. Mar 14 17:33:22 Sorry for haven't been able to, but otherwise I wouldn't have asked here. Mar 14 17:35:36 google any one of those Mar 14 17:35:41 first result is the documentation for each. Mar 14 17:37:19 ndk-build -- google, shows up documentation Mar 14 17:37:25 ndk-gdb -- google, shows up documentation... Mar 14 17:37:51 it's like you don't want to find documentation and want to be taught for free Mar 14 17:39:03 pfn: That's not correct. The documentation explains how to use the ndk for building apps. I am trying to use the cross-compiler for building kernels. I still don't understand how. Mar 14 17:39:23 don’t Mar 14 17:39:34 the NDK is for building apps Mar 14 17:39:51 ^ Mar 14 17:40:00 s73v3r: But how to build kernels, then? Mar 14 17:40:01 If you are interested in that kind of thing, you want to look at how to cross-compile linux kernels for ARM processors Mar 14 17:40:09 Exactly. Mar 14 17:40:18 which is NOT using the ndk Mar 14 17:40:29 read the book I told you to, Embedded Android Mar 14 17:41:39 I found that book. I will read again, but so far I have been unable to find what I was looking for. Mar 14 17:41:49 Sorry for asking, but I am a bit confused. Mar 14 17:41:55 and really, this is not the place to discuss kernel building Mar 14 17:41:58 this is for apps Mar 14 17:42:12 please try #android-root or XDA for that topic Mar 14 17:42:22 I know, but on #android-root nobody is answering. Mar 14 17:42:38 that doesn’t make us the place to go Mar 14 17:43:14 s73v3r: Ok, I won't disturb you anymore. Thank you in any case. Mar 14 17:43:16 I hate mockito sometimes Mar 14 17:44:18 Enrico_Menotti: Remember, the Android kernel is just the Linux kernel with a couple patches added on Mar 14 17:44:46 so building an Android kernel is no different than building a stock Linux kernel for an ARM Mar 14 17:45:24 s73v3r: I know. But I read that I don't have to use gcc as it comes with X-code (I am on Mac), since it would build a kernel fo Mac, not for ARM. Mar 14 17:46:03 if you can't figure out to extract. a toolchain, I would argue that you shouldn't be building kernels Mar 14 17:46:35 pfn: One has to learn, starting from some point. Nobody is born with knowledge. Mar 14 17:47:05 getStackTraceCleanerProvider()' on a null object reference (WHAT IS THIS?) Mar 14 17:47:13 pay for training Mar 14 17:47:19 education isn't free Mar 14 17:48:28 Context context = Mockito.mock(Context.class); not working at all for me :( Mar 14 17:50:23 if I use MockitoJUnitRunner I get no test found Mar 14 17:50:40 AndroidJUnit4 leads to all sorts of errors Mar 14 17:50:46 all spawning from trying to mock context Mar 14 17:50:55 are you using a mockable android.jar? Mar 14 17:50:57 or using doReturn.when Mar 14 17:51:05 MockContext() Mar 14 17:51:27 I am not sure pfn Mar 14 17:51:33 http://stackoverflow.com/questions/34853185/how-to-use-mockableandroidjar Mar 14 17:52:59 basically leads here https://developer.android.com/training/testing/start/index.html Mar 14 17:53:17 and here https://developer.android.com/studio/releases/gradle-plugin.html Mar 14 17:53:35 im running the unit tests on an actual device Mar 14 17:53:51 why are you mocking on actual device Mar 14 17:54:01 espresso has Context Rules Mar 14 17:54:23 I didnt think I am even using expresso Mar 14 17:55:26 I'll create a project which demonstrates the issue i guess Mar 14 17:56:41 this is the part I dont liek about Android.. trying to learn something and all the resources are out of date and conflicting Mar 14 17:56:54 it should be as easy as Context ctx = mock(Context.class) Mar 14 17:57:02 I guess it's because I rarely read guides.... Mar 14 17:57:40 maybe that's my problem Mar 14 17:57:55 haha I try but whats in teh guide works 20% of the time Mar 14 17:57:58 shouldn't be mocking context if you're running on-device, though Mar 14 17:58:14 other 80% i'm searching through other guides trying to figure out how to patch the holes Mar 14 17:58:19 Tricknology: Well, once you’ve mastered it, you can write a guide that’s slightly less out of date :D Mar 14 17:58:20 I think it's this.. Mar 14 17:58:20 Context appContext = InstrumentationRegistry.getTargetContext(); Mar 14 17:58:25 I think I'm going to Mar 14 17:58:30 with a big date on the top of it Mar 14 17:58:34 and a disclaimer Mar 14 18:08:26 hi all, I'm trying to pass a string extra from a pending intent (notification content intent) to a singleTask activity. getIntent() returns null, i believe because it's returning the data from the original creation intent. and I can't use onNewIntent because it's only sent to singleTop activities Mar 14 18:10:28 thebishop, NEW_TASK/CLEAR_TASK Mar 14 18:11:05 alright broken repo is here https://github.com/znwabudike/JustAndroidUnitTestingThings Mar 14 18:11:14 realllly simple Mar 14 18:11:24 https://github.com/znwabudike/JustAndroidUnitTestingThings/blob/master/app/src/androidTest/java/com/drawingboardapps/brokencontextmock/ExampleInstrumentedTest.java Mar 14 18:12:07 log? Mar 14 18:12:38 https://gist.github.com/znwabudike/0e684fcf48972ae8d3477ff3f95708b7 Mar 14 18:12:55 brb, cig time Mar 14 18:23:05 and back Mar 14 18:23:07 Tricknology, sounds like you've misconfigured mockito Mar 14 18:23:33 looks like it huh? Mar 14 18:23:48 if I use MockitoJUnitRunner in @RunWith annotation I get something like "No Tests Found" Mar 14 18:23:50 why are you using mockito Mar 14 18:23:59 you know.. Mar 14 18:24:02 because MockitoJUnitRunner doesn't work on android Mar 14 18:24:08 at this point im not even sure Mar 14 18:24:12 oooh well that would explain it Mar 14 18:24:18 I just like the do().when() Mar 14 18:24:24 doReturn Mar 14 18:24:28 write up your own abstraction that does that Mar 14 18:24:45 I guess that would be more solid, less pretty though Mar 14 18:24:57 Honestly all came about when context.getString() was failing Mar 14 18:25:49 but.. now that I've found InstrumentationRegustry.getTargetContext() that probably wont be in issue... so you say MockitoJUnitRunner doesn't work on Android.. is that only for local unit tests? (Emulated) Mar 14 18:26:04 yes Mar 14 18:26:31 alright.. good to know Mar 14 18:27:52 I feel like a newborn.. Mar 14 18:27:56 tests passing now. thanks pfn Mar 14 18:28:50 Android NDK gives me an exit value of 2 Mar 14 18:30:34 dunno about mockito on android (instrumentation) in general, I don't do unit tests Mar 14 18:31:26 I am trying to start them at this company.. too much stuff went out broken Mar 14 18:31:36 simple errors could have been found with proper unit tests Mar 14 18:31:43 like putting a null JSON through a parser Mar 14 18:32:10 Think of all the time wasted though, time that could have been spent breaking other code Mar 14 18:39:05 Iarfen: That doesn't tell us much of anything. What's in the log? Mar 14 18:45:17 Error:Execution failed for task ':app:ndkBuild'. Mar 14 18:45:17 > Process 'command '/Users/wesstlab/Downloads/android-ndk-r10e/ndk-build'' finished with non-zero exit value 2 Mar 14 18:45:25 danalbert: that's what I get Mar 14 19:02:10 Iarfen, you need to enable verbosity or something because that's not enough information Mar 14 19:02:43 something like --debug Mar 14 19:03:32 just run ndk-build outside Mar 14 19:03:41 and yes, there are more logs Mar 14 19:03:45 --info would provide more Mar 14 19:12:38 adq: how I do that inside Android Studio? Mar 14 19:12:54 Iarfen, inside settings, compiler, somewhere Mar 14 19:13:11 you should have an edittext to add additional flags Mar 14 19:14:56 yes, I have found it, I paste now Mar 14 19:15:41 Here: https://gist.github.com/anonymous/92b7a2bf05a33b5a9227a4aefe6c6f09 Mar 14 19:15:52 It's not printing all the stacktrace now, I'll search how to disable the limit Mar 14 19:18:21 so my understanding is in XML you can use IMEoptions, but do i need to label what is next to send something to actionNext ? Mar 14 19:19:02 my experience at the moment is. allowing a edit text to have multiple rows ( in a oneLineview Mar 14 19:25:04 hmm, is there a version of SqliteOpenHelper that can open from /sdcard public area? Mar 14 19:25:09 or do I have to write that up myself... Mar 14 19:25:37 I want to store some data in /sdcard rather than internal storage (not like it matters for many devices.... but nice to be flexible in expending storage) Mar 14 19:34:30 pfn, shouldn't SqliteOpenHelper be able to accept absolute paths? Mar 14 19:55:27 I don't think so, it just accepts a relative path name which gets generatd in getFilesDir/databases Mar 14 19:55:32 or something like that Mar 14 19:56:04 rather, getDatabasePath(...) Mar 14 20:10:52 after updating Android Gradle Plugin to 2.3.0, i get the following when I try to run my install task: com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to install all Mar 14 20:11:00 is this a bug or am I missing something? Mar 14 20:11:15 also, couldn't find anything on Google that helped Mar 14 20:32:54 has anyone run into this error before when running an install task?: http://pastebin.com/7yKUQPHb Mar 14 20:36:32 alexfu: What version of gradle/the build tools? Mar 14 20:36:57 ref: https://code.google.com/p/android/issues/detail?id=207148 Mar 14 20:37:07 Roughy: updating Android Gradle Plugin to 2.3 creates this error Mar 14 20:37:27 "We recently fixed an issue with split apk installation on certain devices. I believe this is the same issue. Please try 2.3 beta 3 (which should be released in a few hours) and let us know if the problem persists." Mar 14 20:38:22 2.3.0 is newer than 2.3 beta 3 Mar 14 20:39:08 I would also check the list of devices with adb. I've encountered multiple times that additional broken emulator-devices appear in the list, which means that the install task will fail unless I've specified device (or restart adb server). Mar 14 20:39:09 if I go back to 2.2.3, it works fine Mar 14 20:41:41 Thorbear: restarting adb does nothing for me Mar 14 20:42:07 or rather, doesn't fix the problem Mar 14 20:42:51 But does it list additional devices? Mar 14 20:43:17 just the one i'm using Mar 14 20:43:55 Then obviously restarting adb won't help :) Mar 14 20:44:40 anything i could be missing? Mar 14 20:44:52 or most likely just a bug Mar 14 20:45:37 ok. i think it's a bug Mar 14 20:46:07 I created a new AS project with 0 changes and tried to run installDebug and it threw the same error Mar 14 20:46:32 using AS 2.3 Mar 14 20:47:09 can someone else confirm this? Mar 14 20:48:01 I'm using AS 2.3 without issues, so it doesn't affect all users at least. Mar 14 20:48:22 hm Mar 14 20:53:10 guess i'll re-install sdk then Mar 14 20:54:11 danalbert, is there any hope of ever getting android build-tools artifacts on maven central vs. just jcenter? Mar 14 20:54:23 danalbert, or has google abandoned central completely? Mar 14 20:54:43 I would like to move support for android builder forward... but I'm stuck at 2.2 because that's all central has Mar 14 20:54:50 and I'm not willing to force users to add jcenter to their build Mar 14 20:54:57 build-definition Mar 14 20:55:20 I actually don't know (I'm a bit removed from the rest of the SDK), but I can check with someone really quick Mar 14 20:55:20 could include and shade builder... but that's terrible Mar 14 20:55:31 oh, hot shit Mar 14 20:55:35 2.3.0 is on central Mar 14 20:55:39 as of... a few days ago Mar 14 20:55:41 http://search.maven.org/#search%7Cga%7C1%7Ccom.android.tools.build Mar 14 20:55:41 Never mind then :) Mar 14 20:55:48 well, whether it's complete is a different story Mar 14 20:55:56 I'll have to give it a whirl and see Mar 14 20:56:03 If it isn't, probably file bugs Mar 14 20:56:49 danalbert, what is your area of expertise in android? (for future reference as to what's most applicable to ask you) Mar 14 20:57:01 expertise/responsibility Mar 14 20:57:31 I currently own the NDK, but historically I did all the C++ stdlib stuff for the platform and worked on bionic Mar 14 20:57:47 thanks, that's helpful--yeah, see you chime up often re the ndk Mar 14 21:06:15 in preferences, I have a list of objects that I can add and remove, and each needs their own PreferenceScreen to configure, how would I handle that? Mar 14 21:07:15 I'm thinking of using a wildcard key in the xml file, and then walking over the Preference's and replacing the wildcard with an object identifier obtained from an Intent Mar 14 21:15:52 hey, Context.createConfigurationContext( config ) returns a context configured , how do I apply that context to the activity/app ? Mar 14 21:22:14 hi all Mar 14 21:22:22 i am use this for register a user: Mar 14 21:22:41 private static final String REGISTER_REQUEST_URL="http://64.137.182.149:8080/jbeefree/servletRegistraUsuario"; how to test on Emulator? Mar 14 21:25:31 should work just fine. nothing special about the emulator and network access Mar 14 21:25:53 the only thing you’ll have to do is make sure the machine running the emulator is on the same network as the server you’re pointing at Mar 14 21:26:53 s73v3r what do you see: http://64.137.182.149:8080/jbeefree/ ? Mar 14 21:27:03 https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html !!! Mar 14 21:27:07 breath Mar 14 21:29:01 currently i’m trying to understand services, for my little mediaplayer. I’m starting to get the concept i think: seperate gui and playback logic Mar 14 21:29:44 not sure services purpose is for that kind of separation Mar 14 21:29:50 but if you that helps you, sure, why not Mar 14 21:30:06 HAHAHAH Jack is deprecated Mar 14 21:30:08 hilarious Mar 14 21:30:10 it is Mar 14 21:30:14 i just pasted the link Mar 14 21:30:19 I just logged in lol Mar 14 21:30:20 2 sec before you joined Mar 14 21:30:31 hilarious Mar 14 21:30:35 now if they coud deprecated gradle, i was saying elsewhere Mar 14 21:30:38 could* Mar 14 21:30:40 no no Mar 14 21:30:46 what are they gonna use instead ?? Mar 14 21:30:52 well, my playback stuff is in jni, it generates the audio, would it be wise to start the jni stuff from the service? Mar 14 21:30:56 not my problem Mar 14 21:30:57 :p Mar 14 21:31:02 lol gtfo :p Mar 14 21:31:05 gradle is goo Mar 14 21:31:06 good Mar 14 21:31:10 gradle is pain for me Mar 14 21:31:18 why? Mar 14 21:31:21 i can do stuff with it, but it's often more pain than joy Mar 14 21:31:43 because it makes me spend time in gradle instead of building the app Mar 14 21:31:51 honestly after, 3 or 4 (?) years, gradle is great! Mar 14 21:32:01 really? Mar 14 21:32:07 I barely spend any time in the gradle files now Mar 14 21:32:13 well, after the same amount of years, i don't share the same opinion, but it's ok, it's tolerable Mar 14 21:32:36 have to publish a library: copy/paste a gradle script I wrote long time ago Mar 14 21:32:55 have to generate an app skeleton: use that skeleton gradle file I wrote long time ago Mar 14 21:32:56 If the service is started in the same process as the activity, the activity can directly bind to the service. Mar 14 21:32:57 done Mar 14 21:33:10 niekniek as compared to indirectly bind?? Mar 14 21:33:29 well as compared to the other options in chapter 6 of this :) Mar 14 21:33:31 http://www.vogella.com/tutorials/AndroidServices/article.html Mar 14 21:33:50 I’m trying to take the right path Mar 14 21:33:54 ah yeah, 6.4 for same process Mar 14 21:34:17 huh Messenger, never used that before Mar 14 21:34:47 I don't like binding services Mar 14 21:35:16 Afzal: well how would you do it then? Mar 14 21:35:36 i want to have something similar to google play music Mar 14 21:35:49 so the playback logic including the audio generation should be in the service right? Mar 14 21:36:09 and then if the app is running it can show progress and titles, time and stuff Mar 14 21:36:36 niekniek these days, I put a state object and set the activity/presenter to listen to it or something if I wanna do it quick and dirty Mar 14 21:36:40 otherwise event bus Mar 14 21:37:42 usually when I use a service, I save some data in the database, so the presenter gets notified through the database instead Mar 14 21:38:17 if i create a local service with my app and bind with it, and my app gets killed for some reason, the service will remain playing, right? Mar 14 21:38:34 how would i couple again with that service when the app is started again? Mar 14 21:38:37 niekniek depends on the flag I believe Mar 14 21:38:53 you bind again, the service won't be restarting when you bind to a running service Mar 14 21:41:31 niekniek When the last client unbinds from the service, the system destroys the service, unless the service was also started by startService(). Mar 14 21:41:32 hmm Mar 14 21:42:02 niekniek As discussed in the Services document, you can create a service that is both started and bound. That is, you can start a service by calling startService(), which allows the service to run indefinitely, and you can also allow a client to bind to the service by calling bindService(). Mar 14 21:42:02 If you do allow your service to be started and bound, then when the service has been started, the system does not destroy the service when all clients unbind. Mar 14 21:42:05 https://developer.android.com/guide/components/bound-services.html Mar 14 21:42:08 useful page Mar 14 21:43:40 hmmm ty Mar 14 21:47:01 still getting my head around it… what should be in the service and what not? Mar 14 21:47:40 for examply my player generates an list of game objects, every game object has a list with musictrackobjects Mar 14 21:47:55 i guess those should be in the service as well? Mar 14 21:48:19 to be able to restart the app and then ask the service about the currently playing game and tune? Mar 14 21:49:23 adq: Does that mean what I think it means? Mar 14 21:49:34 s73v3r have a chance for test? Mar 14 21:49:39 no Mar 14 21:49:55 kthanks Mar 14 21:52:50 s73v3r, idk, that depends on what you think it means :) Mar 14 21:53:10 streams. streams everywhere Mar 14 21:53:37 well, the news is more about "good bye jack" than "hello java 8" Mar 14 21:54:10 but i'm not that good in java so idk, recently i know oracle posted roadmap for java 9 even i think Mar 14 22:02:40 presumably it would mean that we could use Java 8 features with the regular compiler, which would allow us to go back a few versions with those features Mar 14 22:05:02 news? wut? Mar 14 22:05:42 jack deprecated? hot shit Mar 14 22:05:49 We've decided to add support for Java 8 language features directly into the current javac and dx set of tools, and deprecate the Jack toolchain. With this new direction, existing tools and plugins dependent on the Java class file format should continue to work. Moving forward, Java 8 language features will be natively supported by the Android build system. We're aiming to launch this as part of Android Mar 14 22:05:55 Studio in the coming weeks, and we wanted to share this decision early with you. Mar 14 22:05:58 hah Mar 14 22:07:55 yeah, jack was garbage, it was pretty obvious from the start Mar 14 22:08:08 only reason I could see jack getting traction internally would be political issues with Oracle Mar 14 22:15:58 and Studio 2.4 preview 1 Mar 14 22:33:44 so... jack's dead, right? Mar 14 22:33:52 it will be soon Mar 14 22:39:14 Jack is as dead as homescreen widgets Mar 14 22:39:20 So, kind of dead Mar 14 22:42:32 wait, homescreen or lockscreen? Mar 14 22:45:54 Home Mar 14 22:48:08 so does this also mean the addition of default Interface methods? Mar 14 22:58:26 are homescreen widgets dead? Mar 14 22:58:47 pretty much Mar 14 22:58:47 Leeds lockscreen widgets are Mar 14 22:58:55 I still use home screen widgets Mar 14 22:59:22 there's unpopular, and there's "we've stopped working on it and you should transition away from using it" Mar 14 23:00:06 unpopular, then Mar 14 23:00:26 whaaaaaat? really??! Mar 14 23:00:39 yeah, they aren’t used a whole lot Mar 14 23:00:57 as opposed to jack, which is actually dead Mar 14 23:01:11 it is announced that it will soon be dead Mar 14 23:01:21 :( Mar 14 23:01:30 as opposed to homescreen widgets, which are just unpopular Mar 14 23:01:43 i suppose Mar 14 23:02:02 s73v3r: stop being a pedant Mar 14 23:40:04 Leeds jack is dead ? Mar 14 23:40:53 oic lol https://www.reddit.com/r/androiddev/comments/5zf1xo/future_of_java_8_language_feature_support_on/ Mar 14 23:43:51 sounds good Mar 14 23:54:25 yep, gtfo jack Mar 15 00:30:24 Hit the road, jack! Mar 15 00:41:06 do ViewModels need to exist 1:1 or can they be reused? Mar 15 00:41:16 in MVVM + databinding.. Mar 15 00:41:44 I'm finding that when trying to reuse a ViewModel - it's picking a different Layout to bind to than the intended layout.. :/ Mar 15 00:41:54 weirdest damn thing Mar 15 00:46:08 oh my im silly Mar 15 00:46:17 fragment.newInstance() was returning a differetn fragment Mar 15 00:46:22 ill check if it has to be 1:1 now Mar 15 01:26:35 what do i have to do to get a commit to android studio merged? :/ **** ENDING LOGGING AT Wed Mar 15 03:00:02 2017