**** BEGIN LOGGING AT Tue Feb 21 03:00:00 2017 Feb 21 04:12:10 are jack / jill still being worked on? haven't heard anything in a long time Feb 21 04:59:28 oh!... /now/ I understand http://www.3gpp.org/technologies/keywords-acronyms/101-carrier-aggregation-explained Feb 21 04:59:36 🙃 Feb 21 06:05:49 Hi Feb 21 06:06:16 i have made a service class but i am not getting how to call it from mainactivity Feb 21 06:07:04 how and when* Feb 21 06:07:06 https://developer.android.com/guide/components/services.html Feb 21 06:08:04 i am following the same tutorial Feb 21 06:09:23 i am trying to make a foreground service Feb 21 08:39:19 Hi all, I'm using dagger 2 in an Android Library module, I've defined a Component but the Component Builder isn't generated; any advice on this? Feb 21 08:52:30 what type of server side software should i use for my android application? Feb 21 08:52:43 i mean which is recommended by android? Feb 21 08:55:57 Android doesn't care at all Feb 21 08:57:13 Google would recommend firebase, but that's a little different :) Feb 21 08:58:45 well i am planning on openresty Feb 21 09:01:42 i mean like is it worth to setup openresty, or should i just just use some node.js server to interact with android applications? which is more practical to use? Feb 21 09:04:18 You should probably spend some time going over your requirements and what the different solutions offer.. but from the Android side of things it doesn't matter Feb 21 09:04:54 As long as you expose your data in a sensible way (e.g. a rest api) Feb 21 09:04:55 assuming you're sensible and use retrofit... it doesn't matter that much Feb 21 09:07:21 ok thanks guys Feb 21 09:34:07 anyone using jack in production here? Feb 21 09:44:29 Hi, Is it possible to compile a kernel object without compiling the kernel? Feb 21 10:18:38 probably Feb 21 10:29:48 hey guise Feb 21 10:30:30 I'm building a custom view, an image picker linear layout in the shape of a box with a camera icon in it Feb 21 10:30:58 when clicking on this box I want to open a dialog that asks the user whether they'd like to take a new picture or attach from existing Feb 21 10:31:45 I cannot ask for permissions inside the view class Feb 21 10:33:16 yea I can just ask previously Feb 21 10:33:25 beforehand, rather Feb 21 10:36:52 Odaym, requesting a permission should be asked in your Fragment / Activity, not in a custom view Feb 21 10:37:04 I know Feb 21 10:37:15 I'm just wondering about the place where it would be appropriate Feb 21 10:37:33 its gonna be at a central place where they must land every time Feb 21 10:37:42 and are about to head into camera-usage territory Feb 21 11:23:51 Hello folks! I am getting a strange issue does any one have worked on VideoView, issue is while playing a mp4 file and then change the seek point then it never play from the same point where it was left? Feb 21 11:26:12 it never work for the provided seek points infact it takes seek point by its own and start the video from that place. Feb 21 13:08:53 why am I unable to grab back the data I set to the intent while launching it with startActivityForResult? Feb 21 13:09:45 this https://paste.ofcode.org/3bGzMSSEhCrRnbXGtXMynqj Feb 21 13:10:30 data.getExtras() is always null Feb 21 13:12:20 hi. Can I size an image in to 16:9 ratio with just the xml? I have width="match_parent", now I want height to be width/16*9 Feb 21 13:13:03 or height 56.25% of the width, however you want to spell it Feb 21 13:13:54 why are you putting it as a bundle and not just as an int Odaym ? Feb 21 13:14:20 because I tried setting it as putExtra directly, data was still null, this was the second resort Feb 21 13:14:56 hows the receiving end? Feb 21 13:16:13 here's a repaste https://paste.ofcode.org/TBYuHrJQR5Mmj9PKtm4zYA Feb 21 13:17:33 but I am able to getData from it just fine Feb 21 13:17:56 one moment Feb 21 13:18:47 yea, unpossible Feb 21 13:34:10 hi all Feb 21 13:35:49 does anyone knows how to attach ScriptIntrinsicBLAS to ScriptGroup? i can't found how i can retrieve kernelids for this Feb 21 14:02:08 I just dont get it Feb 21 14:02:20 why can't I send extras with intents that go out in startActivityForResult Feb 21 14:03:04 Im sending stuff in MediaStore.EXTRA_OUTPUT and it's just fine, just not literal extras like in the usual case Feb 21 14:06:29 I see here that getData from the Intent called "data" can be assigned to a Uri Feb 21 14:09:26 hi ,i am following android docs by google for creating swipe views with tabs but the examples they are using are having deprecated methods Feb 21 14:09:38 so is their any better alternative? Feb 21 14:17:23 Hello, qq re JNI references Feb 21 14:18:01 If a method on a java object that returns a string is called on a native thread that doesn't return to java, I need to free the reference to the string correct? Feb 21 14:18:32 yea here's the issue Feb 21 14:18:45 i send off a new intent that says Take Picture for example, or choose picture from gallery Feb 21 14:18:58 when that action is done, naturally a setResult will be called from wherever that code lies in Feb 21 14:19:09 it calls setResult with a new intent, not with the intent I sent it with Feb 21 14:19:24 there should be no solution to this Feb 21 14:21:39 Looks like DeleteLocalRef is the correct way to release the return value Feb 21 14:24:11 bhosdiwalo Feb 21 14:24:44 danhedron: correct, but you'll also may need GetStringUTFChars() and ReleaseStringUTFChars() Feb 21 14:26:01 and, if you don't get too many objects on the native side (iirc the default limit is 512), then java will deallocate local refs for you, when you return from native back to java Feb 21 14:26:45 why don;t' buttons stay in place where you drag them in android studio Feb 21 14:28:05 ah, you said "that doesn't return to java". then yes, you will need to deallocate yourself. Feb 21 14:30:27 if it's a string, i'd get characters to std::string and deallcocate the java stuff right away. Feb 21 14:30:52 That's what we're doing already, I just wanted to makes sure we didn't leak the java object Feb 21 14:40:26 misterli, hey are you around m8 Feb 21 14:45:21 im trying to build my app to test how things are progressing so far Feb 21 14:45:28 Session 'app': Error Launching activity is the error im getting and the app is not launching Feb 21 14:45:31 what am i missing please Feb 21 14:47:32 bytefire, heyo :) Feb 21 14:57:44 How do I get the ID from json then I click on the user? : http://pastebin.com/JCUu4Evi Feb 21 15:08:12 is it possible to use gpu for gradle building? Feb 21 15:12:15 Does anyone face VideoView seekTo issue in marshmallow and nougat for particular mp4 file, it always start from beginning rather than seek point Feb 21 15:24:42 is it possible to tell the main looper read from a message queue and let my code dispatch the messages (in the main thread) Feb 21 15:27:41 from something implementing BlockingQueue or similar Feb 21 15:34:47 What's the best way to create an alarm that repeats only during the hours of 9am-5pm on android? Feb 21 15:34:58 would i have to cancel the alarm at 5pm and then recreate it at 9am? Feb 21 15:53:05 I believe the answer is no, but is there any Android equivalent of SLComposeServiceViewController in iOS Feb 21 15:53:25 Like http://www.technetexperts.com/wp-content/uploads/2015/12/Share-Extension-in-iOS-Application-Overview-with-Example-9.png Feb 21 15:53:37 from http://www.technetexperts.com/mobile/share-extension-in-ios-application-overview-with-example/ Feb 21 15:55:21 Ultimately I'm trying to wrap the sending of an Intent with type "image/*" and action "Intent.ACTION_GET_CONTENT" Feb 21 15:55:38 Plus an api call to send the content returned from that intent Feb 21 15:55:44 In my library Feb 21 15:56:00 Dunno if there's any UI that it would make sense to provide Feb 21 16:05:09 I need some help populating a listview from asynchttpclient rest GET call. Feb 21 16:16:03 Hello Feb 21 16:38:01 Anyone alive? Feb 21 16:38:26 no Feb 21 16:38:33 tr0y: We're all robots. Feb 21 16:38:38 knew it Feb 21 16:38:39 I'm a ghost who talks in the channel Feb 21 16:38:39 So technically, no. Feb 21 16:38:41 :D Feb 21 16:41:11 help a newb: https://uploadpie.com/p8FeU3 i want some sort of bargraph on top of each up/down button and also displaying a number. i think i need some 3rd party widget Feb 21 17:18:57 I'm looking for an SSH client library with which I can run SSH commands to a remote host from inside my app's code. Any recommendations ? Feb 21 17:24:10 hey guse Feb 21 17:24:18 anyone got a solution to this? http://stackoverflow.com/questions/14394113/onactivityresult-return-null-getextra-value-after-return-back-from-gallary-with Feb 21 17:29:36 adnn: You could launch OpenSSH in its own process from your app. Feb 21 17:31:51 jjuran: as an SSH client ? Is OpenSSH built into android ? Feb 21 17:32:21 adnn: No, but CyanogenMOD had a port. Feb 21 17:33:09 I found a library called Jsch which seems to be the most popular Feb 21 18:24:56 hey, is it possible to launch another app from an app to sort of run it embedded? Feb 21 18:25:41 I'm looking to put a little "adapter" between an app and the OS Feb 21 18:25:53 no Feb 21 18:27:36 that's unfortunate Feb 21 18:29:31 not even on rooted devices? Feb 21 18:30:53 Anything(*) is possible on rooted devices, I suppose, but we're appdev focused; you'd probably be best served by the xda web forums Feb 21 18:31:06 (* if you're willing to put in the time, programming, and compromise device security) Feb 21 18:33:06 * raoul11 g00ses g00s Feb 21 18:33:19 hey raoul11 Feb 21 18:33:24 hi buddy Feb 21 18:33:48 dapoosh wasnt here allday Feb 21 18:33:51 it's probably more laborous than I'm looking to get into to be frank Feb 21 18:33:51 must be a record Feb 21 18:34:18 Read the stacktrace Feb 21 18:34:31 whoops Feb 21 18:34:35 forgot to scroll <_<' Feb 21 18:35:15 raoul11 did he start his new side gig ? Feb 21 18:35:29 if by side gig u mean baby yes Feb 21 18:35:37 if you mean that other thing i dont think so Feb 21 18:42:24 dragorn from last night https://news.ycombinator.com/item?id=13691920 Feb 21 18:43:18 g00s, they can do most weather statiosn with rtl433 Feb 21 18:44:03 How do I get the ID from json then I click on the user? : http://pastebin.com/JCUu4Evi Feb 21 18:45:10 hmm what Feb 21 19:31:53 in git, is there a way to “force pull”? Feb 21 19:32:17 like, it says that i’m 1 ahead and 1 behind of origin. The other guy did a rebase and a force push Feb 21 19:32:26 all I want is to get mine to be what that is Feb 21 19:35:54 git fetch && git reset --hard origin/master Feb 21 19:36:06 thanks Feb 21 19:36:15 You lose anything you've done on your branch Feb 21 19:36:26 anything i cared about i have stashed Feb 21 19:36:39 and really, I hadn’t done much work Feb 21 20:08:56 stupid java question: I have class A, and subclass Aprime. A defines a method foo, which is overridden in Aprime. If I pass around Aprime as an A, when I call foo, which version gets called? Feb 21 20:11:33 I think if you're passing around Aprime then the overridden version gets called Feb 21 20:11:35 not 100% sure Feb 21 20:11:39 somebody else will verify Feb 21 20:14:52 It should call the child implementation Feb 21 20:14:55 afaik Feb 21 20:15:01 ok Feb 21 20:15:15 my head hurts, so I couldn’t think about it Feb 21 20:15:19 that's one of those questions where everyone goes "well of course it... wait... " and then second guesses themselves Feb 21 20:18:32 methods in java are virtual Feb 21 20:18:50 that means if the instance is child, it will call child's method Feb 21 20:18:56 even its of a parent type Feb 21 20:19:01 if Feb 21 20:26:43 If you already know android programming how much does it take to develop a simple game (if is your first game, but not your first app)? Feb 21 20:35:51 If you already know android programming how much does it take to develop a simple game (if is your first game, but not your first app)? Feb 21 20:36:17 how simple is simple game Feb 21 20:36:27 is it 2d/3d or some simple logic game Feb 21 20:36:47 2d, similar to stickman cliff diving Feb 21 20:37:22 maybe a bit more complex Feb 21 20:39:05 i made some pencil and paper game in over month, most of it was computer ai though Feb 21 20:39:19 the stickman seems more complex like needing 2d engine or framework Feb 21 20:39:44 like libgdx or andengine. unity3d too but imo overkill Feb 21 20:40:46 so extra time for some learning framework Feb 21 20:41:26 Ok thank you Feb 21 20:41:54 s73v3r: imagine the A class has the method defined as abstract Feb 21 20:46:40 is it possible to use a seekbar as just a bar display without it being able to be selected Feb 21 20:49:55 alphaferret: sure, override it and eat the touch events. or place a transparent view on top if it with clickable="true" Feb 21 20:57:05 i am having a hard time with the simplest resizing of a seekbar, i want it vertical, ~60dip wide by 180dip high Feb 21 21:11:49 Hey. My background is in C, C++ and Python but I have no previous experience with Java (well, just very few). Could I just jump in and learn about android development? Feb 21 21:13:25 java’s not that hard to pick up if you know the other stuff Feb 21 21:13:34 if you have some programming experience before, yes. still it would always be good to learn java first at level beyond hello world Feb 21 21:13:44 it’s got some annoyances, but everything does Feb 21 21:15:16 I know Java is not hard to learn that's why I'm asking if I could jump into android development. Feb 21 21:15:23 Ashiren: I have an MSc in CS. Feb 21 21:15:56 ok then dive into android. Feb 21 21:16:20 Is Android Studio the common IDE or just a preference? Feb 21 21:16:28 is there a noob channel while i suffer through the ui stuff Feb 21 21:16:37 it’s the common ide Feb 21 21:17:11 Ok, great. Any recommended resources to start with? Feb 21 21:18:01 the big nerd ranch book is pretty good Feb 21 21:18:06 and they just came out with the 3rd edition Feb 21 21:18:22 alphaferret: i think only this channel deals with general android development Feb 21 21:18:42 Lurika: Acquiring Java already knowing C++ is pretty easy. The trick is learning the activity lifecycle, the Android libraries, and the tooling. Feb 21 21:18:49 i'm spending way too much time with all of the ui settings Feb 21 21:19:42 I started when Eclipse was recommended, and I immediately gave up on that and switched to building with ant. Feb 21 21:21:10 jjuran: Oh ok great I just installed Android studio. Are there any sneaky licenses in deploying android applications like there is in the oracle community for microsoft softwares? Feb 21 21:21:16 s73v3r: Great, thanks. Feb 21 21:22:07 ant as for antic? nowadays gradle is used Feb 21 21:22:15 which is used by android studio Feb 21 21:24:27 Lurika: Last I checked you had to pay to sign up as a Google Play Store developer. I've never actually done so myself. Feb 21 21:25:38 25$, is that all you pay? Feb 21 21:25:40 $25 one time Feb 21 21:26:03 If you can afford the computer to dev on, you can afford that Feb 21 21:26:10 Google doesn't make their money from developers. Feb 21 21:26:30 it makes money from souls of smartphone users Feb 21 21:26:39 There is a book which is online and is always updates, what's it called? Feb 21 21:26:59 commonsware? Feb 21 21:27:02 search for that Feb 21 21:27:02 Yea 25$ one time is nothing. Feb 21 21:27:16 s73v3r: Yea I think so. Feb 21 21:28:10 another resource for learning https://developer.android.com/training/index.html Feb 21 21:29:17 I have a java issue, in one line of code a variable has value, the next line in debug that variable is missing.. not null, missing, cant get it in Evaluate expression, not in debug window ... what could be happening? when the following code tries to access that variable, the app goes into ANR Feb 21 21:29:43 post the code Feb 21 21:30:42 this is the relevet part, http://pastebin.com/aHP9MGUL line 2, result has value... one more step... nothing Feb 21 21:32:12 you need more context Feb 21 21:32:23 no you don't Feb 21 21:32:39 result is declared outside of the if statement, right? Feb 21 21:32:39 which one is it? Feb 21 21:32:46 more context Feb 21 21:33:23 yes, result is declared in the root of that function Feb 21 21:33:41 anr indicates its hanging Feb 21 21:34:00 endless loop? Feb 21 21:34:03 in main thread Feb 21 21:34:20 yes, main thread Feb 21 21:34:54 this is the function: http://pastebin.com/tj7yJ9Yu .. it's part of the dfp java library.. really old, big numbers, lib Feb 21 21:35:57 and the library has been tested to make sure it’s compatible with Android? Feb 21 21:36:26 no, but all it does is string manipulation on character arrays Feb 21 21:36:54 and check overflow flags Feb 21 21:37:05 I didnt have this issue in previous versions of my app, could this be a build tools issue? Feb 21 21:37:14 s73v3r: how do I check them? Feb 21 21:37:22 isn’t that what dotrap is doing? Feb 21 21:37:42 yeah, but do trap returns a vaild value\ Feb 21 21:37:47 the next line result is gone Feb 21 21:38:47 what happens if you break on return result, and try to print the variable Feb 21 21:40:01 I do, the result variable does not exist at that point.... evaluate expression -> result return an error about invalid input Feb 21 21:42:55 screenshot: http://i.imgur.com/7X38X6h.png Feb 21 21:48:19 any suggestions? :/ Feb 21 21:52:35 Hey guys. Can anyone answer a Cordova question? Feb 21 21:52:36 I’m mostly curious if Cordova can really add anything to an existing android project or if it’s really made to be an entire android project in itself. I wrote an Ionic 2 app as a PoC, and now I have to add some of it to an existing android app. It seems to me that Cordova just embeds some javascript/html inside a webview and makes it look native. Am I just missing something? Feb 21 21:54:01 is the existing app native Android? Feb 21 21:54:09 if so, you’d be better off continuing with that. Feb 21 21:54:26 The existing app is native android. Feb 21 21:54:34 if it’s Cordova/Ionic, you’d be better off continuing with that (or rewriting as native :p) Feb 21 21:54:47 The people I'm working with want to eventually move to an Ionic app so they acn have one codebase for iOS and Android. It's not that yet. Feb 21 21:55:20 So I'm looking for specific answer as to what Cordova can add to an existing Native app to see if its anything, or if for now we should just add our new stuff in a webview and pass data in and out of it while we work on the complete Ionic 2 app. Feb 21 21:55:41 hi Feb 21 21:55:42 mixing the two is not a good idea Feb 21 21:55:45 Am I correct in assuming that Cordova adds nothing (or close to it) for an existing native app? Feb 21 21:55:57 s73v3r: I agree with you. I'm in that camp, but I need to have more data before I can convince people. :) Feb 21 21:56:02 And googling it didn't help much Feb 21 21:56:06 I've implemented an appwidgetprovider/broadcast receiver for a widget Feb 21 21:56:48 If that’s your professional opinion, they should accept that. If they don’t trust you, then you probably shouldn’t be working with them Feb 21 21:56:55 s73v3r: So why is it not a good idea, and what can adding Cordova to an existing app give you? Feb 21 21:57:17 s73v3r: It's not that they don't trust me, it's that they want to know why. I don't have the details to tell them that, so at the moment, my opinion is just a gut feeling. I really don't know enough about Cordova to tell them specifics. Feb 21 21:57:29 I'm okay with somenoe asking why when I tellt hem something. I do it all the time. ;) Feb 21 21:57:50 because now you’re mixing two different worlds. you’re going to have to shovel data back and forth Feb 21 21:58:08 it’s going to add extra points of failure, extra points needed for conversion, and extra lag Feb 21 21:58:14 so, I've populated onUpdate method and I've added onReceive method Feb 21 21:58:26 not to mention having to style the webview to get it to match the app, which is not going to be done just right Feb 21 21:58:33 so it’s always going to feel “off" Feb 21 21:58:35 So I'm going to have to do that no matter what. :( Feb 21 21:58:44 Right now my options are "webview" or "Cordova webview" Feb 21 21:58:50 I'm just not sure whether there's any difference. Feb 21 21:58:53 unfortunately, though I've placed some log call in logcat, visual changes in my widget are not displayed Feb 21 21:58:53 or native Feb 21 21:58:57 That's not an option. Feb 21 21:59:05 Trust me, it's my preferred option, but I'm not in charge =p Feb 21 21:59:18 in particular, onUpdate log message ia not displayed anymore in logcat Feb 21 21:59:22 I pastebin java code Feb 21 21:59:25 Actually my preferred option is Ionic 2, because I don't like Java. But still. No an option for now ;) Feb 21 22:00:24 i would not bolt stuff on like that. It’s a recipe for bugs. Wait until you move to the new code base to do it Feb 21 22:00:35 Again, you're preaching to the choir. Feb 21 22:00:41 http://pastebin.com/RDNC1Gyq Feb 21 22:01:01 I just need to know is there any difference between using a pure webview and passing data back and forth or trying to use cordova in an existing native app? Feb 21 22:01:04 any ideas? Feb 21 22:01:31 you’d be better off asking in a Cordova channel, then Feb 21 22:02:00 i don’t know enough about how Cordova works Feb 21 22:02:58 Alrighty. I did, right after here (because my brain seems to work on about 5 seconds of lag). I'll hang out there and hope for an answer. For what its worth, I agree with literally everything you've said. I'm just trying to minimize the headache. :p Feb 21 22:03:04 Thanks s73v3r Feb 21 22:11:36 s73v3r: Which SDK should I use? Feb 21 22:11:51 you mean which API level? Feb 21 22:11:55 ye Feb 21 22:11:58 IceCream? Feb 21 22:12:11 either go with the most recent, or go with whatever the minSDK twitter says Feb 21 22:12:15 unless you have a better reason Feb 21 22:12:25 The bot sez minSdkVersion 19 Feb 21 22:12:34 All hail 4.4 Feb 21 22:12:37 https://twitter.com/minsdkversion?lang=en Feb 21 22:13:06 It says 97.4% for Ice Cream Sandwich Feb 21 22:13:10 In the android studio Feb 21 22:13:18 Which is highest. Feb 21 22:13:27 doesn’t matter Feb 21 22:14:21 you don’t go for purely what reaches the most, because if you drop Ice Cream Sandwich, you can move up, get some better features, and not lose that many peopel Feb 21 22:14:35 and people with older devices aren’t known for buying a lot of apps Feb 21 22:15:00 So which one is preferred? Feb 21 22:15:08 Latest is level 25. Feb 21 22:15:12 like I said, either go with what the bot says, or the latest Feb 21 22:15:12 Nougat. Feb 21 22:15:22 depends on your aims Feb 21 22:15:34 The lowest one which still meets all your needs, I'd imagine. If you don't REQUIRE t hings from 25, go lower. Feb 21 22:15:47 DIsclaimer: I'm an android noob. Feb 21 22:16:18 Actually, the few build version checks aren't a very big deal Feb 21 22:17:04 hey guys, should the Application instance be cached to a public variable? Feb 21 22:17:11 ...but there's a lot more messiness between 4.4 and 4.0, hence minSdkVersion 19 and not 14 Feb 21 22:17:16 to get access to it from anywhere? Feb 21 22:17:34 shipit: no Feb 21 22:17:37 shipit: Why are you trying to get at it from everywhere is a better question Feb 21 22:17:56 yea ... I'm just looking at another codebase and it's all over the place Feb 21 22:18:04 That can be a problem Feb 21 22:18:11 I never do it Feb 21 22:18:43 can it happen that for the Application instance it's Context may be recycled? Feb 21 22:18:51 Very likely so Feb 21 22:19:07 so if someone has it cached, that'd be basically an ass whupping waiting to happen? Feb 21 22:19:08 k Feb 21 22:19:20 The bigger issue is that there's a lot of things attached to it, so one loose copy floating around can leak a bunch of memory at once Feb 21 22:19:22 gawd dammit Feb 21 22:19:32 yea Feb 21 22:19:40 I'm a nervous wreck right now Feb 21 22:19:43 I know it seems counter-intuitive to make an external call instead of an instance variable Feb 21 22:20:14 Slowly but surely I'm breaking myself of tryign to make those kinds of optimizations, because they seem prone to buggery in Java/Android Feb 21 22:20:37 no, I don't trust the OS outside of the execution block I am in Feb 21 22:20:42 I don't trust Contexts Feb 21 22:20:59 and never ever trust instance vars in Activities/Fragments/Services Feb 21 22:21:13 You probably shoudln't, but know that if Android Studio doesn't scream at you for it, wherever you're calling getActivity() or whatevs, it's not coming back null on you Feb 21 22:21:29 huh what? application will never be recycled... Feb 21 22:21:31 shipit: You haven't seen pain yet. Try writing a homescreen widget Feb 21 22:21:39 I ahve Feb 21 22:21:41 *have Feb 21 22:21:46 Yeah that shit will make you paranoid Feb 21 22:21:46 RemoteView :/ Feb 21 22:21:47 homescreen widgets are easy Feb 21 22:21:59 pfn: Until they start discarding variables left and right Feb 21 22:22:10 * pfn shrugs, never had an issue with widgets Feb 21 22:22:16 and I have some very complex widgets Feb 21 22:22:46 it's not the layout but I saw ghost views because the code wasn't managing the widget ids correctly Feb 21 22:22:48 I wish android N's RemoteInput were extended to widgets Feb 21 22:23:09 I got so sick of stuff being discarded I started pathologically checking for instantation values showing up from time to time, and was not disappointed Feb 21 22:23:53 shipit, anyway, keeping the Application instance around as a variable doesn't break in android, but it's generally a bad practice, because reliance on global state, etc. Feb 21 22:24:06 I agree pfn Feb 21 22:24:56 Where this falls down is in a part of java I still consider to be black voodoo Feb 21 22:24:56 http://www.androiddesignpatterns.com/2013/01/inner-class-handler-memory-leak.html Feb 21 22:25:30 there's tons of ways to leak objects Feb 21 22:25:34 it's pretty much standard java Feb 21 22:26:06 Is there any way for an app on android to check whether touch pressure and size are supported? Feb 21 22:26:41 On some hardware the pressure seems to be fixed as 1 and the size as 0 Feb 21 22:27:04 i don’t think any device supports that Feb 21 22:27:32 I thought one of the notes did Feb 21 22:27:42 if you go into developer options, then enable "pointer location", you can see the pressure and size values. Feb 21 22:27:58 well it's not like living in a library, but Barnes and Noble wfm :) Feb 21 22:28:05 Granted, it required the fancy stylus to do so Feb 21 22:28:49 the pressure and size values they use are derrived from the size of the finger. It’s not like 3D Touch on the iPHone Feb 21 22:29:23 the Samsung might do it, however that’d be a special Samsung SDK, i think Feb 21 22:29:45 Right, I know, but it seems that some hardware claims to support multitouch, but the values passed to those fields seem to be hardcoded Feb 21 22:30:10 multitouch doesn’t have anything to do with pressure Feb 21 22:31:01 my nexus 5 reports different values in the pressure field Feb 21 22:31:17 I don't care how it's derived, i just want to know whether i can expect non-fixed values Feb 21 22:31:24 i doubt it Feb 21 22:46:03 hello, i’m new to layouts… i’m trying to use a layout copied from another project Feb 21 22:46:23 however it gives me ‘No resource identifier found for attribute’ Feb 21 22:46:52 for every layout entry looking like this sothree:umanoPanelHeight="68dp" Feb 21 22:46:55 is it a custom attribute? If so, you’ll need to copy over the class and the attribute definition Feb 21 22:47:00 however i have xmlns:sothree="http://schemas.android.com/apk/res-auto" Feb 21 22:47:09 you don't have umanoPanelHeight in your project Feb 21 22:48:15 i know, but https://github.com/umano/AndroidSlidingUpPanel is not telling me to do that Feb 21 22:48:42 compile 'com.sothree.slidinguppanel:library:3.3.1' Feb 21 22:48:46 is in my gradle.build Feb 21 22:48:59 shouldn’t that be enough? Feb 21 22:50:19 if it's in the correct file it is Feb 21 22:50:27 assuming that version is the same Feb 21 22:55:39 hmm it compiles now Feb 21 22:55:54 but at running: Didn't find class "nl.vlessert.vigamup.SlidingUpPanelLayout" on path DexPathList Feb 21 22:56:01 ah i know Feb 21 23:03:07 hi. is there a preferred openjdk build on windows for dev? Feb 21 23:03:27 i.e. one tested or used by google? Feb 21 23:04:54 google generally recomends the Oracle stuff Feb 21 23:11:31 won’t android studio install the right one? Feb 21 23:13:11 android studio doesn't come with a jdk Feb 21 23:13:17 well, I suppose it does Feb 21 23:13:21 but it's a pain to set the path to it Feb 21 23:13:37 ok Feb 21 23:16:15 mmh Feb 21 23:17:27 nngh Feb 21 23:17:43 gradle ndk seems to ignore BUILD_EXECUTABLEs Feb 21 23:19:43 Zharf: file a bug? I was going to ping the gradle NDK person but it seems he's out today Feb 21 23:20:14 That vaguely rings a bell, but idr Feb 21 23:20:18 https://code.google.com/p/android/issues/detail?id=224987 Feb 21 23:20:35 not using cmake though... wonder if that'd still be doable Feb 21 23:21:31 Does the fix in #10 work? Feb 21 23:21:53 Or maybe `arguments "APP_MODULES=myexecutable"`? Feb 21 23:22:32 I wonder if I need to list all my modules, 'cause there's a shitton of them :p Feb 21 23:24:04 You might be able to define it to empty Feb 21 23:24:37 That's hinged on the assumption that gradle is explicitly setting APP_MODULES to something, and that your value in arguments would win Feb 21 23:24:50 ndkBuild doesn't seem to have targets Feb 21 23:25:01 It's also possible that it's being built but not packaged Feb 21 23:25:15 I'll try arguments Feb 21 23:26:24 arguments doesn't seem to work either Feb 21 23:26:54 https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.NdkBuildOptions.html oh great Feb 21 23:27:06 there's only path Feb 21 23:27:22 oh but so does cmake.. hmm Feb 21 23:33:16 all the documentation says there's all sorts of methods for ndkBuild/cmake, but there isn't -.- Feb 21 23:33:24 only path seems valid Feb 21 23:38:52 Should probably either file a new bug or comment on the one you linked Feb 21 23:39:03 Even if there is a solution, there's clearly a doc bug here Feb 21 23:39:33 hm, I found the methods here https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.ExternalNativeNdkBuildOptions.html Feb 21 23:39:33 Doc and UX, for that matter Feb 21 23:40:17 I must be missing something Feb 21 23:41:52 i have an existing android sqlite db, if i open it with SQLiteOpenHelper it always calls onCreate and never onUpgrade, what could cause this? if i open the database directly with SQLiteDatabase.openDatabase(...).getVersion() it also shows the old correct version. The new version in my SQLiteOpenHelper is of course bigger than the 'old' version Feb 21 23:41:54 think I got it Feb 21 23:43:14 yeah, it wants me to list all of my modules Feb 21 23:43:41 there's only 40 of them Feb 21 23:47:02 Zharf: I sent an email to the gradle ndk-build integration owner asking if there's a better solution, if not I'll bother him about adding one :) Feb 21 23:47:07 What's the difference between a content view and an activity view and what are they both for? Feb 21 23:47:33 danalbert, I just need to figure out how to rename the executable after this so it gets included in my apk too :E Feb 21 23:48:11 after ndkBuild, before packaging, I need to run a script that renames the file Feb 21 23:49:34 hi, I'm trying to use fragments with a ViewPager. Inside my fragment I have a ListView inside of a RelativeLayout, but the problem is my framelayout/viewpager is scrolled down so that my listview content at the bottom gets cut off: http://i.imgur.com/X2AClm7.png Feb 21 23:49:51 code: https://hastebin.com/davatocobe.xml fragment: https://hastebin.com/qucusumivo.xml Feb 21 23:50:00 (and by code i mean layout) Feb 21 23:53:58 Zharf: or name your executable libexecutable.so ;) Feb 22 00:00:40 danalbert, I can't, ndk-build doesn't like that Feb 22 00:00:58 it's a legacy problem with cmake in the game but I'm not going to convert right now at least Feb 22 00:14:41 Zharf: fyi, no need to convert away from ndk-build if you don't want to, it's not going anywhere Feb 22 00:14:52 I know Feb 22 00:31:54 Thoughts on design for a desktop chat app for developers? Feb 22 00:32:11 Currently, my design and layout is fairly similar to slack (main chat screen and sidebar of channels) Feb 22 00:32:50 The third feature I need to design for is a code search section Feb 22 00:33:08 Trying to think of innovative or better ways to design and layout the application Feb 22 00:34:07 why not just make it a slack plugin? Feb 22 00:36:27 Which part? Feb 22 00:56:59 I hate gradle Feb 22 01:03:40 can't even debug it easily Feb 22 01:07:04 is this: http://stackoverflow.com/a/26245463/2684182 _REALLY_ the best way to have multiple views for a recycler view Feb 22 01:07:11 it seems absolutely ridiculous that you have to do that Feb 22 01:09:00 everything in android is ridiculous Feb 22 01:09:16 that’s kinda the way, but that’s the naive way Feb 22 01:09:29 the sample code way, if you will Feb 22 01:09:32 graah Feb 22 01:09:40 s73v3r: what's the _good_ way? Feb 22 01:10:21 it’s similar in mechanics. you implement getItemViewType to return a viewType, and you key off that to determine which things to inflate Feb 22 01:10:44 ProTip: The IDs from GetItemViewType do NOT have to be sequential like they did in a ListView Feb 22 01:11:04 so I’m going to paste a couple articles on the subject Feb 22 01:11:06 https://medium.com/@dpreussler/writing-better-adapters-1b09758407d2#.ea2a8lkcz Feb 22 01:11:17 thomasross there are a few libs out there for complex RV, like groupie and epoxy Feb 22 01:11:20 http://hannesdorfmann.com/android/adapter-delegates Feb 22 01:12:22 That one I really like, although it’s really only useful after you have a few types Feb 22 01:15:35 hm thanks Feb 22 01:19:29 s73v3r: i think i'm reading all the wrong stuff LOL Feb 22 01:19:42 i mean i want to have multiple textviews or other widgets in one list item in the recyclerview Feb 22 01:27:49 i think s73v3r and i will party when they reboot android from scratch Feb 22 01:27:53 lol Feb 22 01:28:46 I think many would. Feb 22 01:29:19 The current api's are large and complex, and could use a modern update. Feb 22 01:32:46 s73v3r Your comment made me think of a good way to design the code search feature. Feb 22 01:33:10 I was going to have some sort of side menu or something, but I think it would be cool to just have a / command for inline searches Feb 22 01:33:45 Could just have a small div popup and populate results while typing Feb 22 01:34:32 cool. let us know how it works out Feb 22 01:46:50 in a recyclerview item layout, for my relativelayout i should use wrap_content for the height right? Feb 22 01:59:38 I need to do some simple IPC within my application. Feb 22 02:00:51 My app has more than one activity, they live in different processes. I need Activity A to start Activity B. A needs to receive a callback from B when it has reached a certain point, but B must continue running (so, e.g., startActivityForResult isn’t appropriate). Feb 22 02:01:40 Should I be looking at implementing my own Binder? Or is there some other thing which is right for this? (e.g., do I need to look into aidl ? ) Feb 22 02:03:40 does the "send" arrow thing exist in android.R.drawable? Feb 22 02:04:02 ic_menu_send renders as that in the IDE, but on my phone it's a mail icon Feb 22 02:05:45 mniip: did the oem override it [is that a thing?] Feb 22 02:05:59 I wouldn't think so? Feb 22 02:06:12 only thing i can think of Feb 22 02:06:16 I've seen other apps use it just fine Feb 22 02:06:42 its possible they added their own drawable icon Feb 22 02:06:47 you should be able to add your own anywa Feb 22 02:07:02 right click-> new -> vector asset Feb 22 02:11:57 Maybe a Messenger / Handler pair is what I need? Feb 22 02:12:34 thomasross, hmm, if only there was a way to view what all drawables look like on my phone Feb 22 02:15:09 apparently theres an app for that Feb 22 02:17:42 http://i.imgur.com/qyOrIXq.png Feb 22 02:23:02 Suppose that smartphone has older android os, now I want to try newer android os. Feb 22 02:23:06 Can I compile latest android os for a specific smartphone and use it there? Feb 22 02:26:55 newcoder: I haven’t done much of that kind of thing, but afaik it’s not going to be easy. The upstream android open source project won’t contain precisely what your phone has (i.e., there may be hardware specific things missing); you’d need to make sure you didn’t have a locked bootloader (otherwise you might compile your stuff but not be able to load it), etc. etc. Feb 22 02:28:23 just downloading the relevant sources was very time consuming, a few tens of Gigs, the project uses ‘repo’ instead of just git, so you need to use that to keep several git repositiories in sync; setting up the compilation environment was a little fussy (I did it on a mac, I recall issues with case-insensitive filesystems). Feb 22 02:28:26 Suppose there is no locked bootloader, then how can I upgrade to latest android os? Feb 22 02:29:06 I’m no expert so I don’t know. In that case, maybe you can. Feb 22 02:29:45 I just wouldn’t expect it to be a trivial process. Feb 22 02:30:17 I think #android-root may be a better forum for that. Feb 22 02:30:28 (but again, I’m not in this channel much so I don’t know for sure) Feb 22 02:36:26 newcoder read the topic Feb 22 02:36:39 (or get a nexus or iphone) Feb 22 02:37:13 Samsung Feb 22 02:42:50 danalbert, http://eclipser.xmms2.org/git/xmms2-android.git/tree/xmms2/build.gradle?h=gradleify#n47 ;_; Feb 22 02:42:59 it works though, so I'm content for now Feb 22 02:44:06 I should've slept instead of doing all this though Feb 22 02:44:16 need to get up in 2 hours to catch a train Feb 22 02:47:18 when I notifyItem*, what state should I use as the reference point? Feb 22 02:47:34 then one when notifyItem* were last called? or when getItemCount was? **** ENDING LOGGING AT Wed Feb 22 03:00:01 2017