**** BEGIN LOGGING AT Mon Dec 05 03:00:00 2016 Dec 05 03:14:09 is it 3am in the morning in the us or something Dec 05 03:14:20 there's corpses more alive than this channel Dec 05 03:18:08 it's only 19:18 on the west coast Dec 05 03:43:29 any ideas how i am supposed to prevent okhttp from encoding my form fields when adding them via FormBuilder.add("name", "value") ? Dec 05 05:05:08 teasp00n: encoding how? maybe they should be encoded Dec 05 05:09:01 Yeah you'd typically want to solve that by doing the proper decoding on the server Dec 05 05:42:53 hi Dec 05 05:43:07 does anyone here have experience with in-app billing? Dec 05 05:45:07 sure Dec 05 05:45:13 but not me Dec 05 05:45:42 basically i just want to know how to apply the same key to debug builds as i do to release builds Dec 05 05:45:59 because i dont think you can test/debug in-app purchasing if you just debug in Android Studio Dec 05 05:46:03 it needs to be a signed apk Dec 05 05:48:31 even just knowing how to debug a release apk would be pretty handy Dec 05 08:39:34 Hi all. I have a qrcode scanner in my app which uses the play-services. Is it possible to put all the resources in the apk? Currently I have a tablet which needs to update the play-services in the play store Dec 05 08:39:46 I'm wondering if I can bypass this Dec 05 09:21:07 Is there a sweet and short way to load an image into an image view without it making the UI hang ? Dec 05 09:21:18 from the web I mean. Dec 05 09:21:39 i have 4 buttons in my top menu (http://pastie.org/private/ubwemwafgwifolofzhyjkg) when i want to hide some buttons inside a fragment, they are not aligned to the right side, they just stand where they are (because of the margin i think) how can i change this code to make them align right? and have a margin to each other? Dec 05 09:27:06 Are there any know methods for letting the text inside a TextView increase/decrease depending on how long the text is? I'll have my users insert their name, so when there are really long names I'd want it to still fit inside a give size of the TextView, just having the textsize dynamically change Dec 05 09:31:50 Bernzel: no, you have to write you own view Dec 05 09:32:06 Melatonina, okey thanks Dec 05 09:32:58 NeoFrontier, try Picasso, Glide or another image loading lib Dec 05 09:33:15 or watch the text being edited, compute the size of the rendered text and adjust the textSize accordingly Dec 05 09:33:45 adq, yeah I've seen all these options... Dec 05 09:33:49 in this second way you would re-use all the editing features Dec 05 09:41:21 I am sure this is the wrong place to ask but the phone is an android so. I have an LGL15G(I think) and when I call people on it I cannot hear it ring though to them (which it does). Is there anything I can check on the phone to see if there is a setting doing this or should I can the phone provide and see if they will send another one to replace this one? Dec 05 09:55:44 http://i.imgur.com/wMxCuof.jpg Dec 05 10:11:57 where do you usually set attributes to 3rd part libraries I use in my app? In the play store page or in the app itself? Dec 05 10:22:15 * thepoosh gestures raoul11 with his fedora and neckbierd Dec 05 10:22:26 12:22 Dec 05 10:22:31 someone been slackin hard Dec 05 10:22:48 get me 5 star reviews thepoosh Dec 05 10:22:57 am dying on playstore backbenches Dec 05 10:25:12 raoul11: just bought a car Dec 05 10:25:22 also, I already gave you 5* review Dec 05 10:25:47 yes, get me 400 more plz Dec 05 10:25:53 which car thepoosh ? Dec 05 10:25:59 getz Dec 05 10:26:05 what Dec 05 10:26:15 how'd u gonna fit 12 kids in that Dec 05 10:26:33 I am sure this is the wrong place to ask but the phone is an android so. I have an LGL15G(I think) and when I call people on it I cannot hear it ring though to them (which it does). Is there anything I can check on the phone to see if there is a setting doing this or should I can the phone provide and see if they will send another one to replace this one? Dec 05 10:26:47 it is the wrong place Dec 05 10:26:55 #android Dec 05 10:27:07 Already asked there Dec 05 10:28:04 just the ringing Jorja ? Dec 05 10:28:29 sounds like something to do with yer provider/phone Dec 05 10:32:35 raoul11: I can hear when they pick up and answer the call but not the ringing of the call going though Dec 05 10:32:59 sounds like an issue with your mobile provider Dec 05 10:33:06 or your phone Dec 05 10:33:07 or both Dec 05 10:34:22 The phone Dec 05 10:35:42 As the call goes though so it cannot be the service Dec 05 10:36:48 Jorja_: please keep device questions in the appropriate channels :) Dec 05 10:37:46 SimonVT: I was answer a question sooorrrrrrrrrrrryyyyyyyyy Dec 05 10:40:33 Hello everyone. Can someone please help with this. I have a string which is encoded with ’ I think it’s apostrophe and I want to get rid of it. How can I do that? Dec 05 10:41:21 Why do you want to remove the apostrophes? Dec 05 10:41:35 It's not going to be gramatically correct then Dec 05 10:41:52 I mean, turn it into apostrophe Dec 05 10:42:24 I have this but it’s not working holder.title.setText(Html.fromHtml(post.getTitle()).toString()); Dec 05 10:43:09 the post.getTitle is a string from my POJO.. which contains the encoded html characters Dec 05 10:43:18 spykins, Html class could help you Dec 05 10:43:24 Html.fromHtml or Html.escape Dec 05 10:43:54 I tried html.fromHtml but it’s not getting rid of it Dec 05 10:44:01 Let me try the escape Dec 05 10:47:03 Mavrik: Thank you but I can’t use the escape Dec 05 10:47:23 you'll have to find a 3rd party library for it then. Dec 05 10:48:09 Seems like you just need to decode the string as UTF8 Dec 05 10:49:09 Whatever you're parsing into the POJO should be handling this though Dec 05 10:50:54 Dark-Side: Thanks, I will try to decode. For some reasons

tags are cleared out but that ’ is not . I will try the utf8 Encode Dec 05 10:51:22 Html is more aobut the tags than the encoding Dec 05 10:51:49 It's still a html entity that has to be converted. Dec 05 10:51:56 Just the Html class uses a pretty crappy parser. Dec 05 10:56:11 Thanks Dark-Side and Mavrik . For some reason, converting it to utf-8 still doesn’t work. Html.fromHtml(URLEncoder.encode(post.getTitle(), "UTF-8")).toString() I am doing anything wrong Dec 05 10:57:17 String s = new String(post.getTitle(), "UTF-8"); Dec 05 10:57:29 then Html.FromtHtml(s) Dec 05 10:57:38 or something along those lines Dec 05 10:58:07 might have to do post.getTitle().getBytes() actually Dec 05 10:58:11 I don't know why you expected that to work :) Dec 05 10:58:53 Cannot resolve constructor Dec 05 10:59:08 @ Dark-Side for String() Dec 05 10:59:44 yeah you have to give it the bytes Dec 05 11:00:15 String s = new String(post.getTitle().getBytes(), "UTF-8"); Dec 05 11:00:33 still doesn’t work, am I doing anything wrong Dec 05 11:00:45 the constructor takes a bytearray and a type Dec 05 11:01:12 Dark-Side, what would that do at all if he already has ASCII entity string? Dec 05 11:05:53 make a new string using the utf8 charset Dec 05 11:11:20 That's fine, but he has an ASCII string with HTML entities in it :P Dec 05 11:21:22 Thanks Dark-Side and Mavrik . I screwed up big time. After checking the code, I discovered that while I was seting the html encoded value, below I was resetting thr textView with post.getTitle(). It’s so embarassing Dec 05 11:21:50 Thank you guys so much, God bless… You will never experience waist pain Dec 05 11:32:15 Can I make the textinput stop when it reaches the maxLines value? Right now when the user get's to the second line (final) it continues to take input text expanding beyond the border of the textfield Dec 05 11:33:30 nvm I was mistaken Dec 05 13:09:18 What's a good way to mock my devices location? Dec 05 13:09:48 I am sure this is the wrong place to ask but the phone is an android so. I have an LGL15G(I think) and when I call people on it I cannot hear it ring though to them (which it does). Is there anything I can check on the phone to see if there is a setting doing this or should I can the phone provide and see if they will send another one to replace this one? Dec 05 13:10:22 I assume #android would be a better place to ask. Dec 05 13:12:31 I have asked there Dec 05 13:16:46 you gonna keep gettin the same answer Jorja_ Dec 05 13:40:17 hey i have some icons in my action bar (menu items) and it turns out that all icons are black, whats the best way to make them white? i use google material vector icons Dec 05 13:43:45 pila, apply a theme, or open your vector drawable and change android:fillColor Dec 05 13:43:53 you could also tint it, etc Dec 05 13:45:57 hi, does anyone have on amazon fire? Dec 05 13:46:20 I know I've asked this before not long ago, but can't remember what conclusion I came to. But when I have two layout folders "layout" and "layout-sw600dp" for example, I will need to copy over my layout activity files to that folder right? Dec 05 13:46:22 adq yeah i applied white color for tint but it doesnt change anything Dec 05 13:46:30 can I build a kiosk mode with it without amazon showing studip stuff? Dec 05 13:46:46 can I even sideload apks via adb or install form the appstore? Dec 05 13:48:43 I guess I'd need to root it? Is that legal? (I'm in the EU, I think it is) Dec 05 13:51:24 anotheryou rooting itself is not illegal, you will loose warranty and rooted devices may be excluded from amazon TOS Dec 05 13:51:41 pila, I'm pretty sure I won't loose warranty in the EU Dec 05 13:51:54 oh sure you do Dec 05 13:52:01 No, you don't. Dec 05 13:52:09 oh, thats new to me Dec 05 13:52:17 I think they have to prove that I caused the failure Dec 05 13:52:23 Pretty much. Dec 05 13:52:23 and rooting itself is no proof Dec 05 13:52:46 but as I want to use a tablet comercially I really want the setup to be legal :) Dec 05 13:53:04 guess I'll have to chew through the TOS Dec 05 13:53:27 no root no kiosk mode I fear, need to get to that home button XD Dec 05 13:53:34 If you bought the hardware, you can pretty much do whatever you like with it. Dec 05 13:53:45 great Dec 05 13:53:59 so I could even buy the ad sponsored version for 15 bucks less? :) Dec 05 13:54:03 if I root anyways... Dec 05 13:54:17 That would be pushing your luck. Dec 05 13:54:32 hehe :) jup Dec 05 13:55:28 why does samsung then have a knox counter? Dec 05 13:55:43 Because it keeps the idiots at bay Dec 05 13:56:01 ...and because there's no law against sniffing your own farts. Dec 05 13:58:15 Dagmar, TOS are pretty spare, basicly just some TOS about the pre-installed software which I would kick out anyways.. Dec 05 13:58:40 Guess they'll just ban my account when I order 200 of these things and they get suspicous Dec 05 13:58:55 Or they'll simply not deliver them in the first place. Dec 05 13:59:01 exactly Dec 05 14:00:14 Let me make this perfectly clear to you Dec 05 14:00:41 If you attempt to buy a bunch of these devices which are essentially post-purchase subsidized, you're going to potentially make it worth someone's time to sue you. Dec 05 14:01:13 yea, that's my trouble :) Dec 05 14:01:27 ...and if you don't spend the money to respond to the suit, you can be sure they'll get a default judgement against you and get MUCH more money than just $3,000. Dec 05 14:01:52 So don't diddle around by trying to save $15 per unit. Dec 05 14:02:17 Buy hardware outright where they won't have a legal leg to stand on as to what you do with the hardware. Dec 05 14:02:27 ah yes, I forgot about the 15 bucks, but it might be the same for the nun subsidized devices Dec 05 14:02:33 non Dec 05 14:02:54 Maybe they are in fact subsidized too Dec 05 14:03:59 If they are not, than they should have no problem selling me a bunch of them, because it will earn them money, even if I use it in a way they make no further money Dec 05 14:04:22 guess I'll just ask if I need more than 20 of them Dec 05 14:09:00 Hi all. Is it possible to open a specific url in the browser when your app crashes? Dec 05 15:03:28 besides Fragmented and he Developers google stuff is there any good podcast or youtubers to listen too ? ( in relation to droid stuff ) Dec 05 15:38:04 heya, anyone know if there is any word on when api 25 goes full public release? Dec 05 15:43:18 truckcrash: early December according to this: http://android-developers.blogspot.co.il/2016/11/final-update-to-android-7-1-developer-preview.html Dec 05 15:43:51 thepoosh, Thanks! thats perfect Dec 05 15:43:55 It's being timed to match the release of Half Life 3. Dec 05 15:44:09 Dagmar: or maybe Portal 3 Dec 05 15:44:18 or witcher 4 Dec 05 15:44:31 thepoosh: Those will actually come out Dec 05 15:44:40 allow me to be sceptic Dec 05 15:44:57 although I can't wait enough for them Dec 05 15:45:01 CD Projekt knows what large bags of money look like, and they like them. Dec 05 15:45:07 and actually didn't like HL Dec 05 15:45:18 Dagmar: I am in the beta group for gwent Dec 05 15:45:22 it's quite fun Dec 05 15:45:42 but too much a heartstone competitor Dec 05 15:47:56 I'm sure there are MtG players who would swear something simliar Dec 05 15:52:12 hey fellas Dec 05 15:52:24 hi guy Dec 05 15:57:26 hey fella Dec 05 15:57:45 you worked with alarms before? the alarms im setting are getting triggered immediately if their time has past Dec 05 15:58:19 like so http://pastie.org/10976933 Dec 05 15:58:38 line 5 was a suggested fix to this, it did nothing but the line stayed there Dec 05 15:59:22 Odaym: I made this as a sample for using alarms Dec 05 15:59:23 https://github.com/yishai-glide/AlarmedNotificationsSample Dec 05 15:59:51 where is g00s Dec 05 16:00:03 raoul11: sup sup sup Dec 05 16:00:09 sure but that example has its alarm set to somewhere forward in time Dec 05 16:00:16 yessir Dec 05 16:00:23 why would set an alarm to the past?! Dec 05 16:00:36 it's not in the past, it's only in the past today Dec 05 16:00:50 tomorrow and onwards, for every day after today, it will be needed to go off Dec 05 16:00:59 everyday at X, trigger an alarm, is what I want Dec 05 16:01:22 get what I mean bruh Dec 05 16:01:52 yes, you shouldn't be setting the first one to be in the past Dec 05 16:01:56 and that's it Dec 05 16:02:16 oh Dec 05 16:02:18 well..... Dec 05 16:02:22 Hello. I am trying to add a camera feed to a view in my application. But I keep getting D/Camera: app passed NULL surface, which I find to be very weird, since its not null when I debug it.. Does anyone of you have any experience with this? The relevant code is located here: https://github.com/smholsen/whatIsThisThing/blob/master/app/src/main/java/com/simon/whatisthisthing Dec 05 16:02:22 I can set a delay can't I? Dec 05 16:02:52 I dont get it, how do you set an alarm today, to trigger tomorrow at 9 am Dec 05 16:05:10 Odaym: er... you set an alarm for tomorrow at 9am? Dec 05 16:07:30 yea Leeds Dec 05 16:07:38 everyday at X am let's say, i want an alarm to go off Dec 05 16:09:14 halp? Dec 05 16:09:40 see code above Leeds Dec 05 16:10:12 so... set an alarm for X am tomorrow? Dec 05 16:10:23 it's triggering right now Dec 05 16:10:26 : Dec 05 16:10:29 :\ Dec 05 16:10:56 don't set it for X am today Dec 05 16:11:07 hm Dec 05 16:11:21 so I should have a service? Dec 05 16:11:42 I have to wait until it's tomorrow so I trigger an alarm for that day? Dec 05 16:12:51 well, yes, maybe you should have a service... Dec 05 16:13:05 never tried this specifically before? Dec 05 16:13:25 Well, you'll probably want an Activity. Dec 05 16:13:27 but you're setting an alarm for January 1st? Dec 05 16:13:48 This is pretty standard AlarmManager stuff Dec 05 16:13:50 I removed that part because I just followed a nonsensical fix Dec 05 16:15:13 how is it standard Dankmar Dec 05 16:15:29 The name "AlarmManager" should probably be clueing you in Dec 05 16:15:33 give me the code that will set an alarm to trigger everyday at a specific time but not right away when you set it Dec 05 16:15:36 smartass Dec 05 16:15:57 It's a system-level thing. You tell it when you want the alarm to go off and an intent that will come back and fire off your Activity Dec 05 16:16:06 No, I will not write your bloody code for you Dec 05 16:16:06 show me the code that will do the above Dec 05 16:16:10 or stop typing Dec 05 16:16:17 bugger off, shortbus Dec 05 16:16:21 :) Dec 05 16:16:30 dont reply when you see my name man, I told you the last time Dec 05 16:16:39 Get off my Internets. Dec 05 16:17:14 you told it to trigger on or after January 1st - so it does Dec 05 16:17:32 without the set Calendar.DAY Dec 05 16:17:36 it behaves teh same Dec 05 16:18:00 am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, Dec 05 16:18:00 pendingIntent); Dec 05 16:18:01 so set it to start in the future Dec 05 16:18:06 this should mean starting 1 day from now Dec 05 16:18:12 because of the INTERVAL_DAY Dec 05 16:19:59 no Dec 05 16:20:19 the trigger is when you want the first alarm to fire Dec 05 16:20:35 which is presumably "the next 9am" Dec 05 16:20:39 teh trigger is in the calendar.getTimeInMillis field Dec 05 16:20:45 the interval is the INTERVAL_DAY Dec 05 16:20:56 oh, stop being obtuse Dec 05 16:21:15 * Leeds goes back to watching netflix before bed, let someone else explain basics Dec 05 16:21:34 well thanks anyways Dec 05 16:21:50 "obtuse" is a fun word ;) Dec 05 16:22:13 O.o Dec 05 17:21:07 g00s has gone missing. We have 24 hours to locate him. Dec 05 17:22:23 Where is Jack Bauer when you need him? Dec 05 19:07:35 cool, i was thinking about this back in 2010, guess i should have followed through https://blog.google/products/maps/let-your-loved-ones-know-youre-safe-our-new-personal-safety-app/ Dec 05 19:08:36 oh yeah, i abandoned it because the phone signal strength apis weren't working when phone had partial wakelock Dec 05 19:08:41 Hey! :) Dec 05 19:09:12 Does any of you have any time to help me a bit out with some trouble regarding SurfaceViews? (https://www.reddit.com/r/learnprogramming/comments/5gmz5s/trouble_with_surfaceholder_in_android_java/) Dec 05 19:17:22 god damn do I hate how shitty the layout and preview crap is Dec 05 19:19:58 i just (try to) use it for previewing only, i could not imagine how ppl can use it for editing so broken it has been since day 1 Dec 05 19:20:20 the preview doesn’t work worth a shit either Dec 05 19:20:47 is it seriously that fucking hard to give me an idea of what things are going to look like? Dec 05 19:21:13 hence the "(try to)" Dec 05 19:21:50 instant-ruin or prevezrfjiozjrizejer, you choose Dec 05 19:21:57 * adq runs Dec 05 19:22:03 instant run doesn’t work either Dec 05 19:22:23 i seriously want the person responsible for this tool to be beaten, and continued to be beaten until they fix it Dec 05 19:22:37 you misspelled instant ruin Dec 05 19:22:40 hence, ruin not run Dec 05 19:25:07 speaking of people who should be beaten, my addition to them would be the person who decided to use gradle in android studio. the thing takes 10 minutes to build a project that builds on iOS and windows in 30 seconds :| Dec 05 19:33:27 Which ad networks do you recommend? Is AdMob any good? I have a puzzle game and my plan is to show an ad after every X solved puzzles to start with and get a feel for how the user reacts and how much i earn. How does it work, do you get a web link to an ad? So ads requires an internet connection? Dec 05 19:33:43 do all ndk-builds run build-binary.mk? Dec 05 19:33:54 I think so Dec 05 19:34:23 ok, if i set my toolchain to 4.9 it just tells me the build failed in there. if i use clang i get unknown cpu armv7-a Dec 05 19:34:34 sirish: one option is ampiri. it shows ads from multiple different networks. i don't have much experience from it though Dec 05 19:35:45 its seems to me like AS is using the x86 build tools to build arm code Dec 05 19:36:53 thats not an "android studio is broken!", the b0rked part is my configs i just dont know how Dec 05 19:37:04 mark4: we have tests that show otherwise: https://android.googlesource.com/platform/ndk/+/master/tests/build/asmflags/jni/Android.mk Dec 05 19:37:39 danalbert, can you explain what you mean there? Dec 05 19:38:08 Our tests show that building asm is working Dec 05 19:38:12 why is clang saying "unknown cpu armv7-a" and i also get "unknown directive" on the first directive in the first file ".thumb" Dec 05 19:38:21 That test should help as an example to get asm working in ndk-build Dec 05 19:38:29 danalbert, yes yes im 100% sure it is lol Dec 05 19:38:46 i have a working arm build. i switchi into the directory and do ndk-build and it builds fine Dec 05 19:38:54 i click build project and... barf Dec 05 19:39:04 Oh... Dec 05 19:39:10 :)\ Dec 05 19:40:02 Oh. Is your asm ARM only? Dec 05 19:40:14 And you didn't set whatever the gradle equivalent of APP_ABI is? Dec 05 19:40:15 yes and its coded in assembler, no c :P Dec 05 19:40:29 its in my ndk-build scripts Dec 05 19:40:35 Android.mk Dec 05 19:40:42 Gradle ignores APP_ABI Dec 05 19:40:49 Or at least it used to Dec 05 19:40:52 iirc Dec 05 19:40:59 i see nothing in any of the google documentation telling me i need to move things out of the .mk files into gradle build scripts Dec 05 19:41:03 I can't figure out where Activity creates an instance of PackageManager when calling getPackageManager. Anyone? Dec 05 19:41:44 mark4: file a doc bug Dec 05 19:42:23 danalbert, i actually see very little point in filing bugs on google documentation. its historicaly been utterly useless for learning android, its "ok" as a reference Dec 05 19:42:28 (test my theory first though, I don't use studio so I might be remembering wrong) Dec 05 19:42:43 mark4: if you don't file bugs it won't get better Dec 05 19:42:53 heh Dec 05 19:43:18 i know - i didnt say i wont do it, i just said theres little point :P Dec 05 19:43:26 hang on gimme a sec looking for something Dec 05 19:43:46 https://developer.android.com/studio/projects/add-native-code.html#link-gradle Dec 05 19:44:14 theres a good example of how utterly useless google docs are. the first sentence is a "you must do this first". then thers a wall of text NOT telling you how to do "this" Dec 05 19:45:01 That section is explaining how to do that... Dec 05 19:45:18 That's what the image below is Dec 05 19:45:32 i went over that section repeatedly and never got how to do that Dec 05 19:45:50 i went over and over and over and it took me hours to find that popup Dec 05 19:46:08 Right-click on the module you would like to link to your native library, Dec 05 19:46:12 there IS no module Dec 05 19:46:33 im not building an application and linking a library into it. im building a library. Dec 05 19:47:12 there is no "module" showing in my project structure for the item i want to add, i need to add it first Dec 05 19:47:22 chicken/egg Dec 05 19:47:27 but in the end i got it Dec 05 19:48:00 im working with years of experience not doing andrid dev :) Dec 05 19:48:37 Non-app is probably the missing piece of the puzzle Dec 05 19:48:46 yup Dec 05 19:48:55 File a bug with the workflow Dec 05 19:49:06 hey how can i hide some icons from action bar? Dec 05 19:49:21 google thinks inside the box. im so far outside the box most people in here cant help me. im working in 100% pure arm assembler Dec 05 19:49:23 If you send me the URL I'll make sure it gets triaged Dec 05 19:49:37 danalbert, are you a google dev? Dec 05 19:49:41 Yes Dec 05 19:49:45 cool Dec 05 19:50:34 google ripped the rug right out from under me lol. what im doing is soooo far against the grain it will probably be nipped in the bud eventually anyway. Dec 05 19:51:03 for example. i dont use .text because i cant modify its flags. i use section .whatevver which is +r +w +x Dec 05 19:51:41 my stuff was working fine till the whole text reolcations thing, so im rewriting everything - switching to gradle is the painful part Dec 05 19:51:51 anyway im going to go see if i can figure how to file those bugs Dec 05 19:53:25 bug 1: nothing to tell me what parts of my Android.mk need to be transferred to the gradle scripts or how to do it, end result gradle fails to select arm build tools. bug 2: that page assumes application Dec 05 19:53:44 where would i file those bugs and do i file them as one bug report or 2? Dec 05 19:54:05 Follow http://tools.android.com/filing-bugs for the most part, I think Dec 05 19:54:09 Sounds like two bugs to me Dec 05 19:54:53 ok will file 2 bugs, meanwhile, do you know what parts of Android.mk need to be transferred to gradle and how? Dec 05 19:55:29 https://paste.pound-python.org/show/vwIww2PFmvFWEfnO5hkQ/ Dec 05 19:55:32 Unfortunately no. I only know the Android.mk side of the problem Dec 05 19:55:34 thats my android.mk Dec 05 19:56:32 this is a forth compiler btw. forth sources in Assets, load and unload on the fly. dynamically redefine what the application does at run time Dec 05 19:58:52 im not sure i can follow those instructions to the letter. "please state the exact steps". i dont know the exact steps leading to what i have now. thats 2 weeks of create project, delete project, create prokect mess round following tips found online till i get it to "mostly" work. Dec 05 19:59:10 if i deleted my project right now it would probably take me 2 weeks to get to where i am now Dec 05 20:00:36 i also dont see any link for documentation bugs Dec 05 20:02:31 why doesnt gradle just cd into the jni dir and run "ndk-build" instead of trying to futz around running the build tools itself? Dec 05 20:04:23 because every build system is the one true path Dec 05 20:04:35 eventually it'll implement emacs and irc in gradle :P Dec 05 20:04:39 <_astroduck> Hi I am using RxJava to observe bluetooth for input message. Whenever the bt replies, i send a new command. Sometimes the bluetooth sends no reply and my code stops working, so is there a way to make my code re trigger after a certain interval? I know the question is very vague and I am asking help about how to design an observable for this. Dec 05 20:17:37 lol Dec 05 20:17:57 still trying to find how to report a google documentation bug, thing is, ive been there before :/ Dec 05 20:22:58 Which ad networks do you recommend? Is AdMob any good? I have a puzzle game and my plan is to show an ad after every X solved puzzles to start with and get a feel for how the user reacts and how much i earn. How does it work, do you get a web link to an ad? So ads requires an internet connection? Dec 05 20:23:26 mark4: hows it going? get it sorted? Dec 05 20:24:34 Napalm, 99% yes. 1% left to go to get a working build in AS> firstly.... i appologise for my frustration and anger, it was not directed at you. i dont mean to come across as a complete jerk, it just turns out that way :/ Dec 05 20:24:59 mark4: its cool Dec 05 20:25:04 whats your 1%? Dec 05 20:25:13 the frustration is not directed at anyone in here or even at google, this is a "work in progress" and minds far greater than mine created these tools Dec 05 20:25:20 experiences android programmers, which do you think would easier to implement for an unexperienced android programmer for it's first time, volley or retrofit? Dec 05 20:25:27 when i run build from command line with ndk-build my library builds just fine Dec 05 20:25:41 when i click build it uses the wrong tools. uses x86 build tools on arm soruces Dec 05 20:25:47 hexagonSun_: retrofit Dec 05 20:26:13 you have to tell gradle which tools to use and i cant see anything telling me what parts of Android.mk need to also be in the gradle scripts, or where to put them Dec 05 20:26:14 hexagonSun_: do you have any programming experience, and if so, how much in Java? Dec 05 20:26:47 I only ask because Retrofit uses Annotations, which you might be new to, and you might want to read up about them Dec 05 20:27:19 what is retrofit, and what is volly? :) Dec 05 20:27:25 and wtf are annotations lol Dec 05 20:27:34 my java skillz are < 0 Dec 05 20:28:38 mark4: they are two popular HTTP libraries, Annotations let you add extra Metadata to parts of your code so that, the code itself can use it. Dec 05 20:28:46 Napalm i've been programming my app for about 3 months now, i'm not that familiar with Annotations beyond the rand(); function Dec 05 20:29:17 i mean, i used it that one time, i remember, i'll read into them, thanks, i'll go for retrofit! :) Dec 05 20:29:22 if i select clang as my build tool (preferred) and click build it tells me unknown cpu armv7-a. if i select 4.9 it just tells me build failed in build-binary.mk no telling me HOW it failed. i have also seen unknown assembler directive ".thumb" Dec 05 20:29:55 that all tells me its using x86 tools to build arm code so the selection of armv7-a in android.mk needs to somehow/somewhere be ported into gradle Dec 05 20:30:34 so gradle knows to invoke the right tools. this also tells me that the ndk-build support in AS is not ndk-build support. its not using ndk-build like they claim it is Dec 05 20:30:49 i know it cant be doing so because if i cd into the dir and run ndk-build by hand... it builds just fine Dec 05 20:32:38 theres a iddy biddy piece of the puzzle left to solve. make gradle invoke the right tools when pretending to invoke ndk-bukld Dec 05 20:33:40 ooh i know another doc bug i could file. there are 2 separate build systems for ndk. cmake and ndk-build. theres one document with interleaved information that speaks 10% about ndk-build and 90% about cmake. Dec 05 20:33:46 it should be 2 separate pages Dec 05 20:33:51 mark4, http://stackoverflow.com/questions/29738953/ndkbuild-failure might be relevant Dec 05 20:34:06 dragorn, brb, rtfm that page :) Dec 05 20:35:00 well i didnt read all of it yet but i already dont think it fits. thats an application using an ndk library... i have no application, i have a library (continuing to read) Dec 05 20:35:01 i haven't done ndk since AS started supporting it so i don't have any smarter comments, but that seems in-line with how it half-automates a lot of other stuff and runs its own build scripts Dec 05 20:35:48 dragorn, google says it supports 2 build methods, cmake and ndk-build. i think they are fuzzy with the truth there lol. i dont think theres any true ndk-build support in AS, just "faked" support Dec 05 20:36:05 but... im not complaining, its WIP so i know theres going to be teething problems Dec 05 20:36:28 project.ext.versionCodes <-- thats the first time i have seen reference to this Dec 05 20:36:36 I think it likely builds some ndk-build config files from your gradle config and is building using those Dec 05 20:36:38 Is noone here using ads? For a puzzle game which type of CPX fo you think is best? CPC or CPI or...? What can you make for a click or an impression? Dec 05 20:37:09 and you probably need to figure out how to set your parameters in gradle to match what you hardcoded before; gradle likes to "own" a lot of the config; it does a similar trick w/ manifests where it autopopulates parts of your manifest.xml from gradle Dec 05 20:37:20 where it used to all be in the xml file Dec 05 20:40:55 i have no gradle config for the ndk stuff, i dont know what to config, where or how and i cant see any info on it. all ive done is attempt to get AS to use ndk-build, im not even sure it is doing so Dec 05 20:41:09 Hey! I want to use androids support design library, but it is for sdk version 25, while my app uses 24, Can I change the SDK version? how does that work? Do I have to download a new sdk? or how does this work? Dec 05 20:41:16 This one: com.android.support:design:25.0.1 Dec 05 20:41:53 dragorn, its that whole "you have to figure out" part lol. like i said, i have years of inexperience with these sort of things. give me a brand spanking new CPU and an instruction set reference and ill write a full blown forth compiler for it in a couple of days Dec 05 20:42:35 i have been doing a lot of RTFM on gradle, i have scratched the surface so i can sort of understand whats going on... only just Dec 05 20:46:34 ask ndkBuild(type: Exec) <-- never saw any reference to this either. i dont entirely trust this gradle script either, most of the time online scripts are so far out of date to be utterly useless, very difficult to separate the weat from the chaffe Dec 05 20:48:54 mark4, yeah; it doesn't seem hugely documented, but I haven't used it. That link from stackexchange shows a bunch of gradle config for ndk that might be helpful though Dec 05 20:50:14 dragorn, theres a 10% chance the info in here will fix my issue... thats like a HUGE upgrade from 0% i had earlier :) Dec 05 20:50:32 i only give it 10% due to MY ignorance, not its correctness Dec 05 20:53:39 Fastboot doesn't honour TMPDIR for the zip files. https://android.googlesource.com/platform/system/core/+/master/fastboot/fastboot.cpp#594 Is that known? Dec 05 20:55:48 Hey, I want to create a back-end server for my app. It needs to login and register users. What languages is the best to make this? Dec 05 20:59:59 Jestin depends on your preference and knowledge Dec 05 21:00:24 you could go with php or nodejs Dec 05 21:00:54 for php you could also use jwt-auth Dec 05 21:02:03 I was thinking of using nodejs with express Dec 05 21:02:11 Using post requests etc. Dec 05 21:02:24 you can also learn how to program poorly with php too Dec 05 21:02:58 Jestin: django / flask imo Dec 05 21:03:20 i use django with jwt-auth Dec 05 21:03:58 <3 Dec 05 21:05:43 and for android you could go with retrofit2 it integrates nice with django Dec 05 21:06:56 mark4: https://code.google.com/p/android/issues/entry?template=Developer%20Documentation for doc bugs, probably Dec 05 21:07:21 FWIW, it's not really that Gradle is using x86 *instead of* arm Dec 05 21:07:26 It's building for *all* architectures Dec 05 21:07:29 danalbert, ty, am multi tasking, im notoriously bad at that :) Dec 05 21:10:35 As for why Gradle doesn't obey APP_ABI, I *think* the reason is because you might have multiple native projects, and they need to all match for that setting Dec 05 21:10:54 I'm only guessing, but that seems plausible Dec 05 21:11:05 wow now im getting a little better of an error message its trying to assemble my sources as MIPS lol Dec 05 21:11:28 i have only one native project, not multiple. Dec 05 21:11:41 Sure, but other users might have many Dec 05 21:12:06 the problem is probably 99% my configs and 1% google incomplete work in progress :) Dec 05 21:12:30 What is the best way to implement this feature? "Distance need to be tracked even if the app is not visible on the screen and recovered if the device randomly reboots." Do I need to store the data in a SQLite DB? [21:12] == Cannot send to channel: #android-unregistered Dec 05 21:14:08 droidace "Google suggest if your app has to poll location continuously in background then use FusedLocationApi" Dec 05 21:14:19 https://developer.android.com/training/location/receive-location-updates.html Dec 05 21:16:49 thanks pila but what if my device reboot randomly? Dec 05 21:17:34 How can a class fragment A communicate with fragment B is B declares an interface and A implements it ? Dec 05 21:18:16 droidace: what kind of app is this? Dec 05 21:18:37 tsousa: don’t have fragments communicate directly. they should be going through the hosting activity Dec 05 21:18:56 another alternative is an event bus, but I’d be careful with that, as it’s easy to go overboard Dec 05 21:19:00 just a test app for learning purposes I'm trying to learn Google Map Dec 05 21:19:30 there’s an event you can register to receive that tells you when the device has booted up Dec 05 21:19:34 s73v3r, Yes sorry. if i have a fragment A and a activity B and if the fragment A declares a interface and the activity implements it Dec 05 21:19:39 how does that work in java Dec 05 21:19:51 same way as any other class and interface Dec 05 21:20:12 in pretty much any other language Dec 05 21:21:30 ok well my build now completes without error but... no output is created Dec 05 21:21:55 yay! no errors Dec 05 21:22:36 inorite :) Dec 05 21:22:49 thats not a step forward, its a step sideways :) Dec 05 21:23:38 anyone know much about talkback and accessibility? Dec 05 21:24:07 I have a sliding view panel, but the items on the view behind it still are triggered with talkback Dec 05 21:24:20 s73v3r? Oh so I can use event bus to continue recording my distance even when the device has booted up by accident? I dont need SQLite to store the data? Dec 05 21:24:31 droidace: no, that wasn’t for you Dec 05 21:24:45 ah lol Dec 05 21:25:15 it’s not an event bus, it’s a system broadcast that tells you when the system is up. you can register a broadcast receiver to get this Dec 05 21:26:32 ! amg Dec 05 21:27:10 ok. NOW my ndk-build is working :) Dec 05 21:27:19 what a pita lol Dec 05 21:41:44 danalbert, https://code.google.com/p/android/issues/detail?id=229560&thanks=229560&ts=1480973982 <-- filed this one, not sure if it passes the google taste test :) Dec 05 21:42:49 i must be bi-polar, yesterday i was sooooooo angry, depressed, frustrated not to mention angry, depressed and frustrated... today im extatic lol Dec 05 21:43:05 freeking build works $*^$*! Dec 05 21:43:19 now i have to make the CODE work (that part i can do :) Dec 05 21:43:31 mark4 gkk Dec 05 21:43:37 gkk ? Dec 05 21:43:41 mark4 good luck with that :D Dec 05 21:44:01 my hand flew away from the keyboard and pushed enter too early ^^ Dec 05 21:44:12 it was working just fine before google ripped the rug right out from under me with their whole text relocations phobia :P Dec 05 21:44:51 hehe Dec 05 21:44:56 To answer my own question from before, if you’re on API 19 and above, you can set the importantForAccessibility attribute on slide. Dec 05 21:44:57 omg!!!!!1 I think i might just have overthought my solution! Dec 05 21:45:32 my fix was 2 parts. 1: move all code out of .text into .foobar and make .foobar +rwx and fix all the text relocations Dec 05 21:45:44 errr but my code isnt in .text! the reolcations dont matter! Dec 05 21:45:46 i am so happy that i fixed my actionbar menu Dec 05 21:46:07 maybe i didnt need to rewrite my library at all! Dec 05 21:46:37 mhh Dec 05 21:46:58 i can take known working code, move it all to .fubar and see if that makes it work where "text" relocations are forbidden Dec 05 21:47:04 i implemented inapp purchase but without submitting it to google i cannot create "products" Dec 05 21:47:15 what happens when i submit my app that is not finished yet? Dec 05 21:47:45 mark4: I'll pass the bug on to the gradle/doc folks. Thanks for filing Dec 05 21:48:07 danalbert, noo! thank YOU and everyone else lol Dec 05 21:48:26 and even though google is mostly the thorn in my side i thank them too :P Dec 05 21:48:50 pila: why would you submit an app that isn’t finished yet? Unless you’re using the Play Store alpha/beta stuff Dec 05 21:49:40 yeah i dont want to, but google said somewhere that i need to submit my app for creating buyable in app purchases Dec 05 21:49:42 if my moving everying from .text to .fubar negates the whole text relocations problem i wont need to make my code space +wrx, i can keep the forth indirect threaded - which is a simpler solution to "make forth subroutine threaded and make code space +rwx" Dec 05 21:50:16 tho... it seems like a cheat to simply move all the relocations out of .text Dec 05 21:50:22 quit Dec 05 21:51:14 ? Dec 05 21:52:13 Is IAB/IAP really supposed to be such a pain to develop and debug? Dec 05 21:53:19 yeah inapp purchase is a pain to me Dec 05 21:53:24 I mean, besides the ridiculous turn-around time for my build to show up in Alpha. Dec 05 21:53:42 i dont understand why you have to submit your app for a pre review Dec 05 21:54:02 danalbert, this library is in 3 parts, the lib.so file and a java wrapper to it and some assets. if i create a jar can i put the assets in the jar file so that they are available to whatever application uses this library? Dec 05 21:54:26 I don't understand why the app doesn't immediately appear. It's not like it has to sync it to all over the world; just let the testers download it immediately Dec 05 21:54:53 Because it still has to go through the malware scanning and policy vetting mechanisms. Dec 05 21:55:25 Dagmar: Why? It's alpha released only to a closed list of people who sign up to different terms than normal Google Play. Dec 05 21:55:34 Because reasons. Dec 05 21:56:11 Rather because Google didn't think one through. Dec 05 21:56:25 1: protect google. 2: protect end users Dec 05 21:56:49 Why would they want to allow people to use the beta/alpha channel mechanisms to distribute malware?? Dec 05 21:57:20 Dagmar, do all applications submitted go thru beta/alpha ? Dec 05 21:57:27 no Dec 05 21:57:30 k Dec 05 21:57:36 Nope. People are perfectly welcome to just throw their apps out there for public release from day one Dec 05 21:57:36 you don’t have to use beta/alpha. Dec 05 21:57:38 Dagmar: Because reasons. Dec 05 21:57:57 Zta: SHould I have to repeat myself because you think you know more than Google? Or me? Dec 05 21:57:59 are you trying to argue that google shouldn’t scan alpha/beta apps? Dec 05 21:58:03 that doesn’t make any sense Dec 05 21:58:16 s73v3r, seems to me like beta/alpha is a TOOL that developers can use for their benefit Dec 05 21:58:23 any? Dec 05 21:58:24 They could just add this to developer's terms: "Don't dist malware or else..." and add this to testers' terms: "use at own risk, don't download something you don't trust" Dec 05 21:58:24 and? Dec 05 21:58:38 or, they could scan like they do for everything else, and be just fine Dec 05 21:58:41 That's _not_ something Google does./ Dec 05 21:59:00 if you really want to not have the scan, use another service, like HockeyApp Dec 05 21:59:01 They're not going to let people ship malware to Android phones on the basis of "Well we warned you that this was iffy" Dec 05 21:59:01 * capella . o O ( .text .code relocation talk ??? ) Dec 05 21:59:07 Ah! That issue from yesterday ... library / project :D Dec 05 21:59:09 Zta you trust people who have the lack of morals enough to create malware in the first place to not publish it to any place they can ? Dec 05 21:59:13 s73v3r: I'm just saying that I don't want to wait hours to be able to debug my alpha app. Dec 05 21:59:21 kewl for this channel Dec 05 21:59:35 There's plenty of shifty-looking Chinese app stores you can use if you don't want to have to wait an hour or two for packages to migrate out. Dec 05 21:59:40 thats the same argument the socialists make for gun control. we need more laws against gun ownership so the criminals wont get a gun! Dec 05 21:59:41 that’d be nice, but unfortunately we live in the real world Dec 05 21:59:50 what s73v3r said Dec 05 21:59:55 Good luck getting anyone to trust you using those Dec 05 22:00:03 no, i’m arguing in favor of the scans Dec 05 22:00:30 Zta: You're perfectly welcome to push the thing right to your phone with adb as per usual Dec 05 22:00:31 I wouldn't signup of alpha test for someone I don't trust. Dec 05 22:00:49 I don't see the problem not scanning alpha Dec 05 22:01:03 you’re not at google scale Dec 05 22:01:14 That's because you lack experience. Dec 05 22:01:16 zta just because you trust them doesnt make them trustworthy lol Dec 05 22:01:29 "Trust" isn't that simple. Dec 05 22:01:32 open a door and someone is going to stick their foot in it and walk all over you Dec 05 22:01:44 google is right to require a ticket to get in Dec 05 22:01:49 plus, all it takes is one bad apple, and now google is getting tons of bad press Dec 05 22:02:02 they already have big enough problems with android security Dec 05 22:02:07 they get enough of that as it is :P Dec 05 22:02:45 People paying PR firms to schlep yellow journalism on a quarterly basis Dec 05 22:03:09 Dagmar, ^5 for knowing what yellow journalism is Dec 05 22:03:23 Dagmar: I can't adb push to my customers' phones. Dec 05 22:03:50 Zta: Not my problem Dec 05 22:04:11 Dagmar: What? Dec 05 22:04:14 Android is a work in progress but thers a reason it is used on more phones than any other system Dec 05 22:04:23 google is doing it right Dec 05 22:04:42 Zta: Did I stutter? Dec 05 22:04:47 Am I really the only one who think Alpha publishing is too slow!? Dec 05 22:04:55 yes Dec 05 22:05:00 Pretty much. Dec 05 22:06:18 crap i did something and now im back to it just failing with "it didnt work" sort of message Dec 05 22:06:36 Log.wtf Dec 05 22:06:51 mark4: rebuild, push to alpha, wait 4 hours, retest. Dec 05 22:08:02 Perhaps you could do some, oh, I dunno, local testing and non-trivial changes before trying to foist them out on the rest of the world. Dec 05 22:08:14 all i did was delete an output directory to see if it is created by the current build or if it was part of the old broken build Dec 05 22:08:22 now my build is broken and it was an output directory Dec 05 22:08:27 not an input Dec 05 22:08:48 mark4: Maybe slap the Clean Project button Dec 05 22:08:53 tried that Dec 05 22:08:54 Maybe it's because I've misunderstood something regarding IAB. Isn't it true, that I have to publish to Google Play Alpha or Beta in order to do any IAB testing? In order to get my SKUs and be able to purchase them? Dec 05 22:09:50 Nope. You can skip alpha/beta phases and go straight to pissing off customers. Dec 05 22:09:59 all it is telling me is that the build failed. not HOW it failed Dec 05 22:10:46 It's gonna be saying more than that Dec 05 22:10:49 Dagmar: Then the purchase would cost money and not be within the sandbox environment. Dec 05 22:11:57 mark4: There's a 'Gradle Console' link way down in the right corner Dec 05 22:12:10 mark4: It'll be saying quite a bit I suspect Dec 05 22:12:27 aha ty! Dec 05 22:13:16 linux-x86_64/bin/clang: error while loading shared libraries: libncurses.so.5: Dec 05 22:13:19 *$^$&! Dec 05 22:13:42 da!@#!@ are you compiling? heh Dec 05 22:13:54 lol Dec 05 22:14:22 You do know you can't just drop some GNU autotools thing in there and have it turn into an APK right? Dec 05 22:14:50 arm assembler code. clang has a runtime dep on ncurses. it also has a dep on tinfo being built with ncurses which was part of why i was failing originally Dec 05 22:14:55 Wait... caffiene is kicking in Dec 05 22:15:13 Yeah I can't believe you managed to install Linux without ncurses Dec 05 22:15:16 no. its using the android dev tools. for some reason my deleting an output dir made ncurses disappear Dec 05 22:15:23 no ncurses is installed Dec 05 22:16:02 but it was previously installed sans tinfo (use flag). the build worked moments ago proving ncurses was installed at that time. ive not done any stupid emerge -C libncurses lately that I remember :) Dec 05 22:16:16 something else is b0rked and this is a symptom not the cause Dec 05 22:16:28 [ebuild R ] sys-libs/ncurses-6.0-r1:0/6::gentoo Dec 05 22:16:46 Ya might wanna `ldconfig -Np | grep ncurses` Dec 05 22:17:08 the whole error /home/mark4/Android/Sdk/android-ndk-r13b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory Dec 05 22:17:29 Yeah just because you have ncurses present doesn't necessarily mean that a version involving shared libraries was installed Dec 05 22:17:33 Dagmar, ncurses is not broken :) Dec 05 22:17:40 * Dagmar looks suspiciously at the word "gentoo" Dec 05 22:18:04 build works. i delete a out/foo/bar/bam directory. build fails with ncurses errors Dec 05 22:18:23 If it were me I'd be in the ndk directory burning the redundant pieces out with a blowtorch Dec 05 22:18:54 which pieces? Dec 05 22:19:17 All of llvm. Heh Dec 05 22:19:35 Heck man I run mainly Slackware and it comes with a working llvm Dec 05 22:19:42 clang is orders of magnitude better than anything ever created by the GNU foundation Dec 05 22:20:10 ...and yet yours is somehow failing to find libncurses Dec 05 22:20:15 but. i still consider llvm/clang to be billions of times more complex than it needs to be Dec 05 22:20:29 not mine. androids Dec 05 22:20:39 meh, slackware is for hipsters :P Dec 05 22:20:50 i can run mc just fine, it finds ncurses just fine Dec 05 22:20:56 leeds no. gentoo is and i use gentoo :P Dec 05 22:21:00 im hip! Dec 05 22:21:38 I'm trying to guess wtf is going on with clang there Dec 05 22:21:43 mark4: do you have ncurses installed? Dec 05 22:21:52 poke _their_ version of clang with ldd and see what it says Dec 05 22:21:58 danalbert, of course and its working just fine, this is not an ncurses issue Dec 05 22:22:07 it just thinks it is Dec 05 22:22:18 Mine's literally not build with ncurses at all, and i'm a bit baffled as to why it appears to be stuck on that Dec 05 22:22:34 Is your ncurses not versioned? Dec 05 22:22:35 i literally did a build, deleted out/foo/bar/bam and.. did another build and its failing with ncurses issues Dec 05 22:22:45 i.e. do you have libncurses.so rather than libncurses.so.5 Dec 05 22:22:55 no its .5 Dec 05 22:23:13 actually Dec 05 22:23:14 Oh wait Dec 05 22:23:16 its .6 ! Dec 05 22:23:25 does it point to a decent .so then? Dec 05 22:23:27 mark4: Did you try to be purist and only install _one_ arch libraries? Dec 05 22:23:34 ah.. Dec 05 22:23:54 Dagmar, the build was working moments ago, ive not done any installs or uninstalls since Dec 05 22:24:05 mark4: Since that llvm build appears to be 64-bit if all you ahve on your system is 32-bit ncurses, you're dead in the water Dec 05 22:24:21 no i told you lol it was working moments ago :) Dec 05 22:24:23 mark4: It's probably more accurate to say that you didn't _trigger_ this problem until moments ago Dec 05 22:24:34 and ive not done any emerge -C ncurses that i remember :) Dec 05 22:25:00 It could easily be something stupid in the build scripts that fails to properly check for each directory Dec 05 22:25:02 Dagmar, no - i dont think this is actually an ncurses issue Dec 05 22:26:02 If you don't have libncurses.so.5 then yes you DO have an ncurses issue Dec 05 22:26:37 If it's complaining about libncurses.so.5, then that's the soname it was linked against and that is the soname you must provide it or the linker will bail Dec 05 22:26:40 i have .6 not .5 Dec 05 22:26:58 then why didnt it bail earlier? Dec 05 22:27:20 Because whatever it was calling wasn't being invoked until you deleted the directory Dec 05 22:27:52 mark4: I have literally been running Linux since the _early 90's_. I am not having you on here. Dec 05 22:28:18 Dagmar, actually so have i but... i claim no expertise Dec 05 22:28:40 I've had to boostrap everything onto a machine from a six floppies and a modem. Dec 05 22:29:10 is jack required to use retrolambda? Dec 05 22:30:00 mark4: you do need libncurses 5 Dec 05 22:30:07 Clang depends on it Dec 05 22:30:16 (or as far as I can tell, *did* depend on it) Dec 05 22:30:22 If you'd poked clang with ldd you'd probably be looking at a great big 'not found' message Dec 05 22:30:24 danalbert, yea im working towards installing that :) Dec 05 22:36:48 Napalm: damn this retrofit thing is quite complicated :p Dec 05 22:37:07 seriously? Dec 05 22:37:13 just creating a .so.5 symbolic link doesnt work but nobody in #gentoo is responding and this "doesnt work" solution is the only one i can find to this problem so far Dec 05 22:37:34 o.O Dec 05 22:37:49 Be _glad_ it failed outright Dec 05 22:38:01 That's not a solution any more than renaming the library is Dec 05 22:38:21 Yeah, you need to actually install the right one Dec 05 22:38:35 The reason they break the naming is specifically to prevent using version 6 instead of 5 Dec 05 22:38:57 I am not particualrly surprised someone in #gentoo suggested that Dec 05 22:39:10 next thing they'll be telling you to add -funroll-loops to your USE flags Dec 05 22:39:11 https://forums.gentoo.org/viewtopic-t-1028172-start-0.html <-- this doesnt give me confidence Dec 05 22:39:36 mark4: The answer is install a version of ncurses like say, 5.9 Dec 05 22:39:40 well, i'm still trying to make it work Dec 05 22:39:44 i already cannot build Android soruces in gentoo because there are no ebuilds for the required java version and i refuse to go to www.virus-r-us.com to download the required java version Dec 05 22:39:50 Having more than one version installed won't set your keyboard on fire Dec 05 22:40:08 Dagmar, i dont want to downgrade libncurses. the solution is to have both versions installed Dec 05 22:40:21 I didn't say anything about downgrading Dec 05 22:40:55 Dagmar, no - but simply doing emerge=libncurses-5.whatever will downgrade. thers a proper way to install it in parallel Dec 05 22:41:28 You can either install a usable version of ncurses that the NDK's version of llvm requires, or you can attempt to be even more invasive and force it to use your own, probably deeply questionable build of llvm, or you can just continue failing Dec 05 22:41:30 its a gentoo thing and ive never done it before so i asked in #gentoo. im not one of those "i expect an answer NOW dammit" people :) Dec 05 22:42:26 i didnt fail yet, i just stumbled. once i get a little instruction in #gentoo ill be good to go :). im taking this to be a gentoo problem now, not a build problem not an android problem Dec 05 22:42:49 emerge -va =ncurses-5.9-r101:5 Dec 05 22:44:39 no Dec 05 22:44:45 emerge ncurses:5/5 Dec 05 22:46:05 ya ncurses 5 now installing Dec 05 22:47:16 one thing i do wish tho is that openjdk would have an LTS version and that google would depend on the LTS version instead of me going broke every time gentoo end of lifes an ebuild that android depends on Dec 05 22:47:38 build successfull again. Dec 05 22:47:41 ty again :) Dec 05 22:47:54 gotta chip away at my ignorance... Dec 05 22:47:59 me i mean, not you lol Dec 05 22:55:30 Don't recent Studio versions ship openjdk with them? Dec 05 23:00:32 I just use the Oracle binaries if I have to install them myself. Dec 05 23:36:22 Style Question: I have a resource, say a drawable, that needs to be programatically set depending on a bunch of if checks (If this, than the drawable ID is this, else if that, then the drawable ID is that, etc) Dec 05 23:37:15 is it better to have an int resourceID at the top of these checks, assign the ID to that, and then at the end do setImageResource with that? Or should I just do setImageResource each time, and not have the variable? Dec 05 23:47:07 I have a recyclerview where if an item is clicked, a detail screen is open. If I go back to the previous activity within a few seconds, the list of results is still there. If I wait longer, the list is cleared Dec 05 23:47:26 I assume this is because the activity is being stopped Dec 05 23:47:41 Is there a way to prevent results in the adapter from clearing? Dec 05 23:47:55 I would rather not have to persist results to a DB just for this Dec 05 23:48:21 You are witnessing the joy that is Android's GC. Dec 05 23:48:33 Remember those places where it talks about savedInstanceState? Dec 05 23:49:18 Basically, you need to push those results into bundle to be saved when the app leaves the foreground and brought back up when it's resumed Dec 05 23:50:25 Will do Dagmar, thanks Dec 05 23:59:15 this asshole from the university are actually telling me NOT to do a rest api to connect my app to their database via Retrofit but to use JDBC :s Dec 05 23:59:23 assholes* :$ Dec 05 23:59:31 whyfor? Dec 05 23:59:43 Asshole Dec 05 23:59:54 cause i told them i was gonna take a little more time doing the rest api Dec 06 00:00:12 which is true Dec 06 00:02:50 fuck em. Security and good design are not optional in this day and age. Dec 06 00:06:16 good evening. Dec 06 00:06:30 s73v3r i am gathering information to make a good case about it, mostly because i have already spend a shitton of time doing the rest api and the whole web service D: Dec 06 00:06:52 Can they actually stop you from doing it? Dec 06 00:07:11 they basically own me... Dec 06 00:07:19 but it's my app, my baby :'( Dec 06 00:07:37 refuse to do it Dec 06 00:07:46 ? Dec 06 00:07:50 i am, gonna gather info to present a good case Dec 06 00:07:52 at this point, it would literally be malpractice for you to do that Dec 06 00:08:14 s73v3r it's not te most prestigious university :/ Dec 06 00:08:21 and what if they say, “Good points. We’ll revisit later. We have to get this out now, though" Dec 06 00:08:45 i guess i've got to do what my boss tells me Dec 06 00:08:50 no Dec 06 00:09:10 that’s where the refusal to do it otherwise comes up Dec 06 00:11:52 ugh Dec 06 00:14:22 What's up? Dec 06 00:14:38 you can't really do jdbc on android easily Dec 06 00:15:45 also, how complex is the restapi? building one takes like half a day, just roll out a dropwizard Dec 06 00:18:51 Zharf: what's dropwizard? o: Dec 06 00:19:06 http://www.dropwizard.io/1.0.5/docs/ Dec 06 00:19:44 puff i've been trying to connect my app to a database of my university using retrofit, but i was taking too long, they're telling me to do it in jdbc :s Dec 06 00:36:32 I know with Serializable each field in the class must also implement Serializable Dec 06 00:36:37 Is Parcelable the same way? Dec 06 00:36:54 i think so Dec 06 00:36:58 wait, no Dec 06 00:37:19 with parcelable, you define the writeToParcel and readFromParcel methods Dec 06 00:37:34 there, you can decide how you want those objects to be parceled. Dec 06 00:37:59 usually it’s easiest to just have those objects also implement Parcelable, but they don’t have to if you would rather do it another way Dec 06 00:38:20 ok so... this is weird. i now have libnaf.so being built. the java code in the project does not seem to be being built that i can tell Dec 06 00:38:32 s73v3r Yea, I was trying to use Parceler so I could implement it with an annotation Dec 06 00:38:49 so you’d probably want to just annotate the other objects as well Dec 06 00:39:01 Well some of the fields are 3rd party classes Dec 06 00:39:13 then you might be in some trouble Dec 06 00:39:36 Ha na Dec 06 00:48:53 I'm getting a LOT of GC_... (garbage collection) going on in my APP on the android, it's causing awful glitches/errors - is there anyway to control/disable the GC? Dec 06 00:49:20 manage your objects Dec 06 00:49:45 Elaborate.. Dec 06 00:49:56 It's a very simple app, like painfully minimalist Dec 06 00:50:04 I have no idea why there are memory issues, if tha'ts what it is Dec 06 00:50:06 It's new to me.. Dec 06 00:50:24 MoltenMurw_ Post some code? Dec 06 00:50:24 GC in Android is more auto ... you disregard it in Java apps for the most part always kinda mostly Dec 06 00:50:55 Okay, but it's in GML (gamemaker studio) Dec 06 00:51:11 So it that gonna help? Dec 06 00:51:15 s73v3r Yea child objects need to implement it as well Dec 06 00:51:15 MoltenMurw_: then why do you have GC issues if you don't use much memory Dec 06 00:51:21 no, that’s an issue with game maker Dec 06 00:51:37 Melatonia, I have no idea Dec 06 00:51:55 It's an old android.. Dec 06 00:52:02 It may have mem leaks, I don't know how i'd even find out though Dec 06 00:52:12 Because surely a lack of memory wouldn't cause glitches would it? Dec 06 00:52:20 no, that causes crashes Dec 06 00:52:45 MoltenMurw_: You’d probably have more luck asking in a GameMaker channel, as that’s what your issue is likely with Dec 06 00:53:07 Well it works on PC perfectly fine. Dec 06 00:53:16 As there is no GC Dec 06 00:53:16 PC isn’t Android Dec 06 00:53:32 And GameMaker would make the thingy that the GML runs in on Android Dec 06 00:53:34 It's hard to find anyone that's even heard of GC Dec 06 00:53:40 Your ram model on android is *significantly* more restricted than on PC Dec 06 00:53:47 particularly on older devices Dec 06 00:54:16 Depending how old the device you're testing on is you may have a ram cap of 32 or 64 meg. Dec 06 00:55:46 any snow dragorn ? Dec 06 00:56:46 * capella still thinks bacon is awesome :p Dec 06 00:56:57 g00s, oh sure; had to plow out this morning Dec 06 00:57:03 g00s, not as much as the other week Dec 06 00:59:38 .....Can you not save more than 1 type of data each in a Parcelable? Dec 06 01:00:18 eg, can I not save 2 seperate Strings? Dec 06 01:00:25 yes, you can. Dec 06 01:00:50 The returned (Parcel in) has only a in.readString method Dec 06 01:01:04 yup Dec 06 01:01:19 so you’d read two strings Dec 06 01:01:25 if you're doing custom parcel then you define the order you parcel out and back in Dec 06 01:02:43 Well here to snippet Dec 06 01:02:44 http://pastebin.com/hxu5rynJ Dec 06 01:02:54 dragorn So are you saying i call in.readString() twice? Dec 06 01:02:58 yeah Dec 06 01:03:02 and the second time i call it will be a diff value? Dec 06 01:03:13 yeah Dec 06 01:03:20 Thats really odd Dec 06 01:03:32 not if you think about how parcelable works Dec 06 01:03:34 it's (literally) a serialzied blob of data Dec 06 01:03:49 so you put a bunch of things in, serially, then read them back out Dec 06 01:03:52 and each time you read something, it takes a little blob off the front, Dec 06 01:03:54 you're just telling it what kind of record this blob is Dec 06 01:04:12 so you do readstring once, and it takes that blog off, then read string again has a different blob at the front Dec 06 01:04:38 s73v3r I guess maybe if it returned like an array of "blobs" it would make more sense. Also, I wonder if its better to save a String[] and just know the order? Dec 06 01:04:46 no Dec 06 01:04:51 do it the way you’re doing it Dec 06 01:05:12 Im curious why? Dec 06 01:05:20 cause this way is more explicit Dec 06 01:05:53 Hmm, ok. Dec 06 01:06:10 Thanks dragorn, s73v3r Dec 06 01:06:11 also don't write a custom serializer when you don't need to Dec 06 01:06:26 you have to know the order either way, but this way is more clear as to what string goes where Dec 06 01:06:30 when in doubt don't write your own type converting and parsing code :) Dec 06 01:14:40 so .. what happens with Amazon Go when you walk out the store with stuff but the card was declined :P Dec 06 01:15:16 you Go Go Go... Dec 06 01:19:20 lol Dec 06 01:21:49 Amazon has released a ridicoulous amount of products this past week Dec 06 01:22:03 pretty cool Dec 06 01:40:08 anyone knows Network Spoofer? Dec 06 02:05:14 this app i'm working on causes my s7e to restart when tapping a button that performs an action too fast. is this usually a sign of OOM? Dec 06 02:05:41 it's a sign of a samsung phone Dec 06 02:06:00 Zharf: interesting. is this just common for samsung devices? Dec 06 02:06:08 fwiw I haven't been able to test on a non-samsung device yet Dec 06 02:07:28 it's likely a device specific problem unless you're doing something very weird Dec 06 02:19:32 So my onSaveInstanceState is definitely being called, but in onCreate its always null... Dec 06 02:19:38 why might that be? Dec 06 02:21:43 orbyt_: because there's nothing to deliver then Dec 06 02:22:51 onStart(), onRestart(), and onResume()... _maybe_. Not in onCreate(). Dec 06 02:24:27 Dagmar Are you saying theres nothing in the Bundle to deliver? Dec 06 02:24:42 Unless this is incorrect, theres definitely something saving: http://pastebin.com/s2m5v5uf Dec 06 02:37:50 orbyt_: You need to actually read up on the Android Activity Lifecycle, man. Dec 06 02:38:49 Why do you say that? I understand the lifecycle. Dec 06 02:43:07 orbyt_: Apparently you _don't_ if you're wondering why you're not seeing a bundle come back from _nowhere_. onCreate() is called when the activity is first instantated. Are you _sending_ it one from somewhere else? Dec 06 02:45:43 orbyt_: As far as I know it's supposed to come back through onStart or onResume, but their docs are a mess so *shrug* Dec 06 02:46:06 On create is called when the activity initializes. I can go to a child activity and hit the up button and onCreate will be called Dec 06 02:47:01 And yes, most examples for retrieving from the bundle are in onCreate Dec 06 02:47:22 Yeah looking at the docs I'm refreshing my hatred for these people Dec 06 02:47:51 Heck, store a stupidly simple bundle first and use that to see WTF is going on Dec 06 02:52:48 I'm looking at a rather sizeable block of obscenities in the comments of one of my own projects, relating to how this doesn't match the lifecycle diagrams Dec 06 02:54:55 @!#!@# Walker pulled down the debug classes I was using. Gonna have to poke him about that **** ENDING LOGGING AT Tue Dec 06 03:00:00 2016