**** BEGIN LOGGING AT Thu Jul 14 02:59:59 2016 Jul 14 03:01:27 Hey guys, I am currently using a navigationview for a side-menu bar Jul 14 03:01:58 but I need to make it multiple levels deep now (tapping on one of the main menu items then slides left showing another list of items) Jul 14 03:02:31 best way to do this to implement a custom navigationview with an over-rideable listview? Jul 14 03:04:47 i want to create a view that has a number of buttons created based on a number passed to the activity from the intent... do I use listview for this? (sorry android newbie here) Jul 14 03:36:44 tx you could try that material nav drawer library, the stock one doesn't do anything fancy like that Jul 14 03:37:07 ron_frown heard anything about android AOSP support for RPi3 ? Jul 14 03:37:23 I've heard that they were going to support it Jul 14 03:37:30 havent tried to build android for mine Jul 14 03:37:44 I'm losing faith in android as a whole if you couldnt already tell Jul 14 03:38:00 lol Jul 14 03:38:04 I'm considering going back to my old employer and if I did, next generation of my hardware would likely not be android Jul 14 03:38:34 honestly at this point Jul 14 03:38:41 I'd rather just build straight c++ Jul 14 03:38:49 that fuck around with java and androids shitty ui toolkit Jul 14 03:38:53 ron_frown have you used Yocto before ? Jul 14 03:39:03 isnt that like a disto builder? Jul 14 03:39:06 yeah Jul 14 03:39:22 briefly when messing with that mainstream alternate ROM company Jul 14 03:39:25 not cyanogen Jul 14 03:39:26 the other one Jul 14 03:39:50 i didn't think its for android tho Jul 14 03:39:57 my fucking galaxy note 5... holy fucking shit Jul 14 03:40:06 I feel bad for the girl I spoke with at verizon last night Jul 14 03:40:15 s/spoke/decimated Jul 14 03:42:49 g00s: thanks Jul 14 03:44:21 honestly at this point I'd consider win10 iot Jul 14 03:44:42 ron_frown whats going on with brillo ... Jul 14 03:44:48 brillo? Jul 14 03:45:01 they announced that at i/o 2015 , i don't remember them saying anything at i/o 2016 Jul 14 03:45:08 google android brillo / weave Jul 14 03:45:32 I dont recall ever hearding abou tit Jul 14 03:46:18 again my life for the last year and half minus a few little apps Jul 14 03:46:30 has been c#, C++ etc Jul 14 03:46:42 eg, much more pleasant than dealing in android world Jul 14 03:47:00 I thought latest android was supposed to actually improve battery Jul 14 03:48:57 well, at that previous place that used android for the industrial control , if you need a GUI - really, i can't think of how complicated a GUI for that would need to be, what would be better than android ? as long as you get the HW support ... Jul 14 03:49:21 i can't see many people wanting to support some custom one-off c++ qt thing :) Jul 14 03:51:23 ron_frown you might like https://droidcon.de/en/sessions/android-industrial-real-time-data-visualization Jul 14 03:51:47 that was the problem with android Jul 14 03:51:54 bionic was no where near hardened enough Jul 14 03:52:11 and honestly neither were the way services worked in android Jul 14 03:52:21 (the actual startup services in boot) Jul 14 03:53:04 ron_frown: what were you making in android? Jul 14 03:53:14 HMI devices Jul 14 03:53:33 HMI's and Scada panels Jul 14 03:54:41 I'm sure changed since Jul 14 03:54:49 but a while ago soemone built a android datagrid Jul 14 03:55:02 I figure crap mine was hobbled together, because we had real weird needs Jul 14 03:55:16 install that one, and was like wow... mine looks really really good considering Jul 14 03:55:29 hmm Jul 14 03:55:46 scrolling left right / up down was really fluid Jul 14 03:55:50 g00s: How about this, what I used a single list/recyclerview, and to change "pages" Jul 14 03:55:56 and I could run like 50 rows, 100 columns Jul 14 03:56:00 I would slide all of the items left Jul 14 03:56:06 powers that be at my work actually thought that necessary Jul 14 03:56:08 I just need a way to slide the items without sliding each item :P Jul 14 03:56:24 maybe in a cascadey way too Jul 14 03:56:47 tx so what you would do is make a custom LinearLayout Jul 14 03:56:56 in kinda scrolling around in that vid g00s, I did see some stuff that sounded good Jul 14 03:56:57 horizontal Jul 14 03:57:17 tx and when you press an item, it translates the right view over the left Jul 14 03:57:25 in using virtual actor systems to simplify threading Jul 14 03:57:33 reading a ton of what ammounts to iot like sensor data Jul 14 03:57:36 g00s: I was thinking of maybe having each item sliding out slightly offset Jul 14 03:57:40 might look fancy :P Jul 14 03:57:52 might :) Jul 14 03:58:24 ron_frown in that vid, i had the same problems as he did Jul 14 03:58:42 Hey does anyone have the issue that onclick listener for a recycler view shows position as -1 index when scrolling really fast and clicking last list item ----- The list size shows correctly, I think it might have to do with the notifySetChanged being called maybe... if that is the case how do I wait till it is complete? Jul 14 03:58:50 but not @ 200hz, i don't think i need c++ + openGl for the graphing Jul 14 03:59:00 but still, i hate fighting GC Jul 14 03:59:11 well and honestly only until recently was opengl really solid Jul 14 03:59:21 I built some things in opengl trying to hardware accel a few things Jul 14 03:59:25 it was... Jul 14 03:59:29 flaky Jul 14 03:59:42 immediate mode? Jul 14 04:00:00 wow... mr robot Jul 14 04:00:02 ron_frown you would have to test it on a bunch of GPUs Jul 14 04:00:11 I wouldnt =) Jul 14 04:00:42 from what i read seems like the device drivers are often the weakest link Jul 14 04:01:04 they tend to be very poor quality Jul 14 04:01:51 oh dude Jul 14 04:01:57 let me tell you that was absolutely the case Jul 14 04:02:20 I cant remember what android release it was Jul 14 04:02:25 lolipop or something Jul 14 04:02:34 that bumped gles up Jul 14 04:02:51 my gpus were capable and supported gles whatever version Jul 14 04:03:06 but the driver didnt have support Jul 14 04:03:21 if drivers get updated the problems get fixed Jul 14 04:03:27 and hardware was a couple years old, the hardware vendors were on to bigger/better thigns Jul 14 04:04:52 vigilancer, so what are you doing with sbt now? Jul 14 04:05:56 gpu mfgs are some shady mf's Jul 14 04:08:10 ron_frown which did you find best, mali, adreno, or nvidia ? Jul 14 04:08:28 capability or vendor Jul 14 04:08:35 support Jul 14 04:08:40 driver quality Jul 14 04:08:42 my stuff was mali and adreno Jul 14 04:08:57 they were good at launch Jul 14 04:09:03 not so great as products got on in age Jul 14 04:13:31 i keep hearing about pokemon go, wth is this stuff ... Jul 14 04:14:01 my friend's daughter was playing it as she was walking down the street, looking up at the sky the whole time ... Jul 14 04:14:43 i have a better game ; turn all the lights off / light pollution and look up at the sky and behold your place in the universe ;) Jul 14 04:16:16 I find all this sneering "kids playing a dumb game" stuff pretty disappointing Jul 14 04:17:27 * g00s sneers at Leeds :D Jul 14 04:17:41 pfn: well, I'm exploring ways to run unit-tests. going tdd \m/ . or at least hoping to Jul 14 04:20:23 dude Jul 14 04:20:27 I was going prety quick Jul 14 04:20:31 there was a somewhat blind corner Jul 14 04:20:33 get around the bend Jul 14 04:20:34 BAM Jul 14 04:20:38 tons of kids in the street Jul 14 04:20:41 like 5 Jul 14 04:20:59 don't go quickly around somewhat blind corners? Jul 14 04:21:14 might hit a pokemon Jul 14 04:21:32 Leeds seriously, do any drivers in china care about blind corners ? :D Jul 14 04:21:51 i just watched a video of some dude moving an illegally parked car with a front loader Jul 14 04:22:06 flipped it first so it was easy to slide :D Jul 14 04:22:32 in China? probably not... Jul 14 05:26:33 Can I generate / create a listview or list-view type of view based on an XML menu file Jul 14 05:26:54 trying to re-create the navigationview widget Jul 14 05:28:10 tx just copy the NavigationView presenter code Jul 14 05:28:35 its kinda mess because of internal menu impl junk Jul 14 05:28:54 hmm Jul 14 05:29:02 I could just implement my menu xml in a layout Jul 14 05:29:05 get rid of it all together Jul 14 05:29:08 (it's static) Jul 14 05:30:01 its kinda lame NavigationView just draws a ----- between each nested group Jul 14 05:30:57 I like the layout of the navigationmen items Jul 14 05:49:39 I'm subscribing to a FCM topic in my mainactivity when the app is launched. Should that happen every time the app is launched? Jul 14 06:04:08 I want to have notifications enabled by default. But the user will be able to go to settings and disable them. How would my app check this and act on it? Jul 14 06:04:23 Do i need to detect 'first run' somehow? Jul 14 06:11:35 'first run' is easy - just leave a flag in your shared preferences Jul 14 06:24:30 kostodo: also, most android OS will allow the user to disable notifications Jul 14 06:24:57 also, having a flag in your code won't prevent firebase console notifications from showing Jul 14 06:26:22 so i'll just subscribe and unsubscribe from FCM topic based on my settings toggle for notifications Jul 14 06:51:16 Hi Jul 14 06:51:34 I am using an "android:actionLayout" in my actionbar Jul 14 06:51:49 in that layout there is a textview, which i've assigned an id Jul 14 06:52:07 however, when I do a "(TextView) findViewById" from my activity - it comes back as null Jul 14 06:52:19 this is from within onCreateOptionsMenu() Jul 14 06:52:25 am I missing a step? Jul 14 07:30:02 hi Jul 14 09:04:23 any clue how to expose custom view's attributes to ui automation? Jul 14 09:18:09 To allow a user not to receive my apps notifications is it enough to do irebaseMessaging.getInstance().unsubscribeFromTopic("updates"); Jul 14 09:18:12 ? Jul 14 09:41:43 In preferences if I have a SwitchPreference, does it automatically change between true/false values or is it only a graphical element? ie. do i have to make some kind of listener? Jul 14 09:46:14 what is pocket mon go? Jul 14 09:47:55 battery: pocket mon go Jul 14 09:48:03 battery: its a game sire Jul 14 09:48:08 oh Jul 14 09:48:20 android gmae? Jul 14 09:48:22 game? Jul 14 09:50:13 i setTextOff and setTextOn on ToggleButton, but it doesnt refresh the text until i click it Jul 14 09:50:18 a bug? Jul 14 09:53:49 eh setText does work. but meh Jul 14 10:06:04 i need help, I've used my existing listactivity code and turned into a listfragment, however when I run it it crashes, because it gives a nullpointexception in post execute http://pastebin.com/jqTLMwWG Jul 14 10:06:17 can someone please help me, trying to get help all day since yesterday. http://pastebin.com/e5GDXZXr Jul 14 10:10:31 Find out what is null Jul 14 10:10:38 Handle that being null Jul 14 10:11:30 what is null? baby dont hurt me Jul 14 10:11:33 dont hurt me, no more Jul 14 10:13:06 I know its something in postexecute but dont know where Jul 14 10:13:19 is it setlistadapter is it that getlistview Jul 14 10:13:33 you have the line Jul 14 10:15:43 The stack trace gives you the line number.. that should make it somewhat obvious Jul 14 10:16:05 Otherwise attach the debugger and set a breakpoint, step through the code and inspect variables Jul 14 10:16:40 Step 1 to debugging NullPointerExceptions is always to find out what's null Jul 14 10:22:33 done a red dot on the line that breaks and run debug app Jul 14 10:23:01 debugger says nothing Jul 14 10:23:06 it says frame not available Jul 14 10:24:19 why would I be getting the wrong/old info for a subscription SKU from IAP? Jul 14 10:24:33 i tried clearing the cache but that doesn't seem to work Jul 14 10:25:52 it's telling me correctly when I own an SKU, but when I try to get the receipt data, it's showing info from a valid purchase days ago Jul 14 10:27:50 i tried clearing the program data and uninstalling and reinstalling it Jul 14 10:28:01 i think the information is coming directly from google's servers Jul 14 10:28:42 are IAP subscriptions fully supported for alpha testing? Jul 14 10:30:32 can android handle animated svg backgrounds/wallpaper? Jul 14 10:40:13 welp deleted my app in anger -_- Jul 14 10:46:57 aww Jul 14 10:53:42 I really ought to ditch making android apps, nothing but rage :| Jul 14 10:54:52 and I just messed up importing my old simple app from eclipse to android GG.. messed up on graddle wrapper crap :< Jul 14 10:55:03 2 apps messed up in the span of 1 day! Jul 14 10:55:11 * DarkChaoz facepalms Jul 14 10:55:30 fitting nick :3 Jul 14 11:03:34 i know :\ Jul 14 11:03:56 to be honest, have no idea how to fix the other one.. Jul 14 11:04:01 Why this version of fragment life cycle https://i.imgur.com/0EVReuq.png is different from the one in document: https://developer.android.com/images/fragment_lifecycle.png I mean the green dotted lines? Jul 14 11:04:21 followed the error log, but even after that somehow gradle project sync fails Jul 14 11:25:00 Hello! I am trying to implement call-recording feature in my app, but AudioSource.VOICE_COMMUNICATION doesn't work well on all devices (Only microphone sound recorded, no sound from other side). Maybe there are other ways to record sound from both sides? Jul 14 11:38:39 How can I pass a url to my webview from a notification? Jul 14 11:41:44 Hi guys Jul 14 11:42:52 I've a problem using MediaPlayer class with filenames containing special characters, like '?'. I've put this problem on SO but escaping \\? didn't work (here is the question: http://stackoverflow.com/questions/38371991/special-characters-and-mediaplayer ). Any idea?? Thanks in advance! Jul 14 11:53:15 creating my first demo app hehe Jul 14 11:53:20 dev is interesting Jul 14 11:58:05 just the emulator messed up with kvm hmmm Jul 14 12:07:43 Hi guys! Jul 14 12:09:08 I want to ask something, probably trivial, is there any proper way to create superscript or subscript? Jul 14 12:10:17 by proper, I mean I can use it easily, also works with localization. Jul 14 13:12:46 What are the attributes of WebView component? Jul 14 13:12:57 I need to set the URL in the XML. Jul 14 13:54:21 Which .gitignore file do you use? Jul 14 13:54:24 for new applications? Jul 14 13:54:40 is it the auto generated with git init? Jul 14 13:58:04 crised: you can find a complete examples here: https://www.gitignore.io/ Jul 14 13:59:53 when i go to something else in my app and then go back to the fragment that has this viewpager, some of the 'screens' dont appear Jul 14 14:00:21 anyone know why? this is my code for making it appear in the fragment http://ideone.com/79lrjf Jul 14 14:02:04 with gradle, is there a way that i can write some logic that will provide me with some kind of build dependent variable in code? Jul 14 14:02:07 for java Jul 14 14:02:42 basically, i have a server and i would like that if i'm building on my build server (detected by querying env variable), i define a different server url than if i'm building locally Jul 14 14:03:02 server url = server that my application connects to Jul 14 14:04:43 nice nick DrGonzo Jul 14 14:04:50 thx... Jul 14 14:11:27 ive a question.. im developing a widget and dont want to remove the widget, remove the app, reinstall the widget.. is there anyway to update the widget while "running" with android studio? Jul 14 14:12:02 Hi folks. I have populated a spinner, and that works fine. But in Android Studio it displays the default ¨Item 1, Sub Item 1¨ stuff, which screws over my layout. How can I change it for the IDE/Android Studio? Jul 14 14:13:41 Sepho: thanks Jul 14 14:27:34 Anyone know the main XML attributes needed by WebView? Jul 14 14:27:43 url nor address work Jul 14 14:27:47 when i go to something else in my app and then go back to the fragment that has this viewpager, some of the 'screens' dont appear Jul 14 14:27:51 anyone know why? this is my code for making it appear in the fragment http://ideone.com/79lrjf Jul 14 14:27:53 :/ Jul 14 15:08:33 I've a problem using MediaPlayer class with filenames containing special characters, like '?'. I've put this problem on SO but escaping \\? didn't work (here is the question: http://stackoverflow.com/questions/38371991/special-characters-and-mediaplayer ). Any idea?? Thanks in advance! Jul 14 15:30:48 how to get textview text values from a view pager within a fragment? Jul 14 15:41:05 How do I practice my Java for Android? Jul 14 15:42:12 by learning java for pc Jul 14 15:44:04 I have a recycler view (horizontal) within a recycler view (vertical) - the horizontal view has width/height of 0x0 depspite there being data in the horizontal adapter (and the vertical adapter to have it there to begin with) Jul 14 15:44:22 The first view of the horizontal is onCreateViewHolder'd Jul 14 15:44:48 It must have to do with the crazy presenter pattern i'm using for the adapter Jul 14 15:45:21 but me and a coworker spent all day yesterday trying to figure it out. what are some things I should be checking that we might have missed? Jul 14 16:31:43 hi all Jul 14 16:31:57 could someone help me out with something android-studio related in about half an hour? Jul 14 16:32:18 Just ask your question, if someone can help they will Jul 14 16:32:34 there will be people around in half an hour (and always) Jul 14 16:33:21 haha sorry I dunno why I asked now instead of waiting half an hour Jul 14 16:33:42 (I'm still under contractual/job rules for the next half hour :P) Jul 14 16:33:53 my issue is basically Jul 14 16:34:22 I've forked a project on github and trying to get it set up locally and am having a lot of issues with gradle versions and signing/build stuff Jul 14 16:34:34 I'll provide more detail in half hour when I boot up android studio Jul 14 16:34:51 the repo is this one https://github.com/dinosaurwithakatana/hacker-news-android Jul 14 16:38:55 ok this ListViewActivity works but I cant really set it up programatically how I want from my MainActivity so i think its time for ListViewFragment with fragment back stack Jul 14 16:41:07 im basically recreating iOS's UITableView Jul 14 16:41:20 and UINavigationController Jul 14 16:41:56 right so would anyone be available maybe for 1on1 Jul 14 16:42:29 I don't really know what I'm doing and the whole build system is foreign to me.. Jul 14 16:47:40 nevermind.. Jul 14 16:47:44 it looks like...it works Jul 14 16:47:47 I have no idea what I did... Jul 14 16:51:51 Yayyyyy....finally found this chan Jul 14 16:53:48 I couldnt find any news about it. Is it possible on a rooted device or as systemapp to add widgets to the screen programtically and/or set its fixed size/position? Jul 14 17:07:38 am I allowed to post a link to my StackOverflow question that I need help on? (it's easier than explaining the problem again) Jul 14 17:07:51 Sure Jul 14 17:08:46 https://stackoverflow.com/questions/38287160/custom-info-window-works-on-phone-but-not-on-wear Jul 14 17:09:41 i keep alternating between ios and android dev but cant decide how big/small chunks to devote to each Jul 14 17:10:19 I'm just building stuff from tutorials lol, I only know a bit of android dev xD Jul 14 17:10:35 I'd suggest learn one first, cuz android is hard :| Jul 14 17:10:53 Anyone using the storage access framework in an app and persisting UriPermissions? Jul 14 17:11:30 Moving an app to the sdcard on 6.0 seems to cause persistet permissions to be lost on reboot... Jul 14 17:11:33 i agree android is harder than ios. but i do like androids concept of activitys. Jul 14 17:11:43 :O Jul 14 17:11:50 @youcallitfar you know what appen? I couldnt figure out whats going wrong with my app so in rage i deleted it Jul 14 17:12:10 and messed up importing an old app i made on eclipse onto android studio Jul 14 17:12:30 trying to recover the said app now .-. Jul 14 17:12:59 hah. i dont use android studio. i like that android dev info on the web isnt as tightly bound to a particular ide as ios is with xcode. Jul 14 17:13:30 I love Android Studio Jul 14 17:13:35 i dont get why people, even newbies, dont use android studio, at least at the beginning Jul 14 17:13:43 everything doing backwards Jul 14 17:13:47 ahsiren Im a noob and I use android studio Jul 14 17:14:00 i have a multiplatform cmake build system so i dont currently use android studio or xcode Jul 14 17:14:01 its just one app was completely made by tuts and on eclipse too :P Jul 14 17:14:04 good for you Jul 14 17:14:07 I messed up on the importing xD Jul 14 17:14:20 because of this gradle wrapper crap Jul 14 17:14:32 i do use gradle tho Jul 14 17:14:50 Seems similar, https://code.google.com/p/android/issues/detail?id=210861 Jul 14 17:16:50 its harder but its sweet to have code that runs on so many different devices and computers. (cuz i have painstakenly hidden tons of platform specific stuff behind common interface) Jul 14 17:17:14 o.o Jul 14 17:17:31 im still stuck on fixing the nullpointer im having Jul 14 17:17:39 Is it easy to make a simple app? Jul 14 17:17:42 language and framework is one thing. other thing is what do you expect after gaining the knowledge Jul 14 17:18:01 considering I just used the same working code as I done for listactivity, I'm tryiing to turn into listactivity Jul 14 17:18:07 ios, android job? become your own boss and make apps? Jul 14 17:18:08 *listfragment Jul 14 17:18:41 own boss of app comp is what i wanna do Jul 14 17:21:10 I couldnt find any news about it. Is it possible on a rooted device or as systemapp to add widgets to the screen programtically and/or set its fixed size/position? Jul 14 17:22:35 @acos you can probably using tutorials Jul 14 17:23:01 I tried to make an app 4 years ago and it was dreadful sorry. Jul 14 17:23:15 I am trying to make a quick app so I can use it. Jul 14 17:23:46 I'm just using tutorials myself to make a news feed app, trying to incorperate listfragments so im stuck on that lol Jul 14 17:23:56 what app u making Jul 14 17:24:00 Basically I just want to run 4 countdown timers at same time. And have control over pausing them and resetting them. Jul 14 17:24:12 To track camera record time. Jul 14 17:25:51 try find tutorials which does something similar and incorperate that. Jul 14 17:38:42 Ya. Jul 14 17:38:51 Gonna have to. It sounds fun. Jul 14 17:39:02 Cause native apps run better I think. Jul 14 17:39:15 but finding an answer to fixing your issue from the tut is a pain in the ass lol Jul 14 17:39:25 especially since there isnt one yet.. Jul 14 17:41:22 I always get confused with the crazy .r files Jul 14 17:43:21 yeah same Jul 14 17:44:31 acos: countdowntimer? Jul 14 17:44:44 Yes. I wanna get 5 on same view. Jul 14 17:44:50 With a few buttons Jul 14 17:45:29 whats the problem though? Jul 14 17:46:33 Problem is I haven't setup the environment yet. Jul 14 17:46:41 Guess I gotta download eclipse rite? Jul 14 17:46:56 nope Jul 14 17:47:09 you deffo do not wanna do that Jul 14 17:47:27 So how do I write code then? Jul 14 17:47:32 I'm a noob. Jul 14 17:47:47 android studio Jul 14 17:48:13 watch a few tutorials on youtube to find your way Jul 14 17:49:06 That's better than eclipse? Jul 14 17:49:12 Does it have drag and drop? Jul 14 17:49:22 for ui? Jul 14 17:49:24 yes Jul 14 17:49:24 Back in the day I used eclipse galalio. Jul 14 17:49:26 Yes Jul 14 17:52:13 Awesome. Is that on the link from the Google Android page Jul 14 17:52:22 Or is it 3rd party dev software? Jul 14 17:52:36 it’s on the Google Android page Jul 14 17:53:30 I gotta check it out. Jul 14 17:57:05 acos, https://developer.android.com/studio/index.html Jul 14 17:57:29 wooo butterknife works in library projects Jul 14 17:57:35 wait why is 8.2.1 not in maven yet Jul 14 17:58:58 Thanks for link thebishop Jul 14 17:59:32 Software looks great. I hope to make my first app tonight. Jul 14 17:59:49 When I'm done with the app can I just add it too my Samsung galaxy s4? Jul 14 18:00:06 oh I didn't have jcenter Jul 14 18:00:19 hmm now weird support-annotion dep conflicts Jul 14 18:00:19 acos, yep, android is surprisingly accessible to developers. no $99 fee, the SDK is cross platform, etc Jul 14 18:00:41 does it /really/ need support-annotations:24.0.0 Jul 14 18:00:41 acos, you'll have to enable developer options and "unknown sources" on your phone Jul 14 18:00:51 is it still 99$ for a year? Jul 14 18:01:00 raoul11, for ios you mean? Jul 14 18:01:03 aye Jul 14 18:01:12 been a while since i had my dev account there Jul 14 18:01:14 i'm not sure if it's per year or a one time thing Jul 14 18:01:17 Then I'm at thanks guys. I will Share it when I'm done. Jul 14 18:01:19 but you do have to pay Jul 14 18:01:33 i think it was per year Jul 14 18:01:55 There is payed Google store I know that. Jul 14 18:01:58 raoul11, you could be right. i have no experience with ios. i do know that you have to pay a fee to release on the google store Jul 14 18:01:59 yeah Jul 14 18:02:23 but you don't need to pay anything to develop, and there are other distribution options if you don't need the play store (lol) Jul 14 18:03:13 JakeWharton: can I get away with support-annotations 23.3 in butterknife 8.2.1 Jul 14 18:03:46 Yes Jul 14 18:03:48 what really pissed me off with ios is that xcode requires a relatively late osx Jul 14 18:04:17 so i got 2 old macbooks here, running 10.7 which cant do shit Jul 14 18:04:21 dev wise. Jul 14 18:06:11 yay Jul 14 18:13:31 raoul11, yeah at various times i've wanted to take up ios development, but the osx requirement is a non-starter Jul 14 18:13:49 from what i've seen x-code is a nice ide though Jul 14 18:13:55 Ya you have to have a mac Jul 14 18:14:27 it's kind of embarrassing that the one major desktop OS unsupported by the Android SDK is chromeOS Jul 14 18:14:49 is that a “major desktop OS”, though? Jul 14 18:16:07 s73v3r, yeah, it outsold osx in the US last year Jul 14 18:16:17 damn nullpointer! Jul 14 18:16:21 source? i can’t really believe that Jul 14 18:16:38 http://www.theverge.com/2016/5/19/11711714/chromebooks-outsold-macs-us-idc-figures Jul 14 18:16:46 chromebooks are a hit with education Jul 14 18:17:12 ahh, just one quarter, not overall Jul 14 18:17:25 ah ok Jul 14 18:17:39 but still, it's google's platform and it's seemingly on the rise. Jul 14 18:18:29 it’s a mix of many chromebooks still being ARM, and not really being a system for installing native apps Jul 14 18:18:45 although I have heard of people doing a linux thing with the chromebook, and installing it that way Jul 14 18:19:16 After changing my code to try fix nullpointer I still get nullpoint on postexecute http://pastebin.com/R75q4f7B Jul 14 18:19:37 where at Jul 14 18:19:50 line 72 & line 122 Jul 14 18:20:00 The code works fine as a listactivity Jul 14 18:20:11 but when I convert it to listfragment it just crashes Jul 14 18:20:21 i think your line numbers are off Jul 14 18:21:04 s73v3r, yeah you can basically install ubuntu on a chromebook through Crouton Jul 14 18:21:17 Hi guys. I overrode onBackPressed(). When the keyboard is not showing, this executes properly. But, when the keyboard is showing, the keyboard seems to steal the event and it is not fired. Any ideas? Jul 14 18:21:29 dont think so the error on the AS (line 22) points towards postexecute setlistadapter which is line 122 on the pastebin Jul 14 18:21:37 s73v3r, but it's an annoying experience because you have to enable some developer mode that complains frequently Jul 14 18:22:22 DarkChaoz: Paste your full stack trace Jul 14 18:22:25 also got another error on the AS error log which says postexecute which is line 74 the line 72 on the pastebin Jul 14 18:22:28 alright Jul 14 18:22:37 and do some debugging to make sure that adapter isn’t null Jul 14 18:22:50 line 72 on the pastebin is a } Jul 14 18:24:34 I meant line 74 on the pastebin, line 72 is mentioned in the error log Jul 14 18:24:43 let me copy / paste the log Jul 14 18:25:51 http://pastebin.com/24wNM1bq Jul 14 18:26:10 how do I do that? Jul 14 18:26:47 check your tweets, and make sure that it’s not null Jul 14 18:27:07 and also make sure that adapter isn’t null Jul 14 18:27:59 the code works fine as listactivity, I dont understand why its suddenly becomes null if its turned into listfragment? Jul 14 18:28:16 Then why change it from an activity? Jul 14 18:28:22 so I add if(adapter != null) { setlistadapter = etc etc ) Jul 14 18:28:36 Because I want to incorperate it as a swipe tab layout Jul 14 18:29:39 yeah, that’s what you’d do. Jul 14 18:29:44 or, better yet, do the inverse Jul 14 18:30:02 if(adapter == null) { /*log error*/ return; } Jul 14 18:30:12 so you don’t have an extra indentation making it harder to read Jul 14 18:31:59 Are iab subscription purchaseTime's supposed to always be from the initial purchase or are they supposed to be moved up to when the renewal occurs? Jul 14 18:32:19 what do i put for log error? Log.i(LOG_TAG, adapter); Jul 14 18:33:55 or Log.e Jul 14 18:35:19 ok, I'll test it out and log the twits as well Jul 14 18:39:22 @s73v3r should I wrap twits and adapter as String.valueOf(twits) Jul 14 18:39:32 because its giving me an error when logging it Jul 14 18:39:38 no Jul 14 18:42:00 it says wrong argument type and requires java.lang.string Jul 14 18:43:09 you don’t need to print off every tweet Jul 14 18:43:17 but how were you planning on displaying them? Jul 14 18:43:33 you were using an ArrayAdapter Jul 14 18:44:03 moto e3 is only $132 :O Jul 14 18:44:21 yeah, the tweets are pulled from json Jul 14 18:44:41 async task process the json into string which is put into arrayadapter for listview Jul 14 18:44:43 no, I mean how were you planning on displaying the Tweet object Jul 14 18:44:51 that’s not what I saw Jul 14 18:45:16 Twits is a Twitter object Jul 14 18:45:18 not an array Jul 14 18:45:32 as tweet.getText() which displays the specific tweet Jul 14 18:45:51 I’m talking about your adapter Jul 14 18:46:00 tbh, i dont know how it works, I've followed a tut Jul 14 18:46:07 that’s your problem Jul 14 18:46:44 i guess, I'll just stick to listactivity then Jul 14 18:47:11 i honestly don’t see how this same code works for that, either Jul 14 18:47:19 hello! I’m using big arrays in c in JNI. Is the performance penalty big when I transport them to Java? Jul 14 18:47:31 you’re not giving your ArrayAdapter an array of items Jul 14 18:48:08 Twitter is an arraylist Jul 14 18:48:22 where’s that defined? Jul 14 18:48:50 Twitter: http://pastebin.com/9EPUEWRi Jul 14 18:48:58 don’t do that Jul 14 18:49:43 Tweet: http://pastebin.com/APNRD6RU Jul 14 18:50:48 I mean the transport itself… will it eat a lot of cpu? Jul 14 18:51:08 Just want to get it to work for listfragment dont want to rewrite the entire code Jul 14 18:51:41 is there more to your stack trace? Jul 14 18:52:14 and what’s the error you get when you try to log your tweets? Jul 14 18:53:45 when I try to log twits AS gives me wrong argument type found in Twitter Jul 14 18:54:14 required java lang string, I cant even compile it without using getstring value Jul 14 18:54:23 same with adapter as well Jul 14 18:54:55 since you’re just displaying the text, maybe try creating an array of just the tweet texts Jul 14 18:56:12 I plan to display other stuff than text in future, so if possible I want to get it to work as an array Jul 14 18:56:16 for all of em Jul 14 18:56:22 you’re gonna need a custom adapter then Jul 14 18:56:46 but for now, you should be able to create a list of just the text Jul 14 18:57:38 i see, well I need to go now, what do I have to do to log? Jul 14 18:57:50 get rid of everything from Tweet except the text? Jul 14 18:58:10 I’d have to see the stack trace Jul 14 18:58:50 I cant compile without fixing the log issues. Jul 14 18:58:57 thats the problem Jul 14 18:59:04 oh. then fix it Jul 14 18:59:35 it’s the Log.i line? line 113? Jul 14 19:00:03 that log line is fine, it brings no errors Jul 14 19:00:11 then what does? Jul 14 19:00:33 its only when i do Log.eLOG_TAG, twits); Jul 14 19:00:46 ahh, yeah, you shouldn’t need that Jul 14 19:01:02 all you need to do is print whether or not it’s null Jul 14 19:01:26 how do i do that? Jul 14 19:01:34 Actually, s7 Jul 14 19:01:35 v Jul 14 19:01:40 I need to go now, s7 Jul 14 19:01:41 v Jul 14 19:01:45 If(twits == null) { log.e(error) Jul 14 19:01:45 oops Jul 14 19:02:19 anyhow, are you on tomorrow? I need to compile my old listactivity to see that the stacktrace prints for tweet.gettext Jul 14 19:02:29 and I'll get back to you Jul 14 19:17:39 "Visiting a Website against the Owner's Wishes Is Now a Federal Crime" O.o Jul 14 19:20:00 That had to happen Jul 14 19:20:42 "You need my explicit consent to read this" Jul 14 19:21:19 capella oh oh, i read it already :( Jul 14 19:21:24 "A new app lets women charge for a night out. Will dating join the on-demand economy?" Jul 14 19:21:27 lol wtf Jul 14 19:27:17 next up: my god creates app that charges for walks Jul 14 19:27:20 *dog Jul 14 20:04:09 man I am having the hardest time getting library butterknife to work Jul 14 20:04:29 it wasn't clear that you need android-apt in your library as well, but it still does not work Jul 14 20:05:44 maybe I don't need it Jul 14 20:06:21 missingno so ... if you use butterknife in your library, and somebody wants to use your library ... will they depend on butterknife too? (i'm guessing yes?) Jul 14 20:07:20 this is not an actual library Jul 14 20:07:35 ;) Jul 14 20:07:40 I have components of my app organized into submodules Jul 14 20:07:49 ah ok Jul 14 20:08:35 JakeWharton: build/intermediates/exploded-aar/com.jakewharton/butterknife/8.2.1/jars/classes.jar(butterknife/ButterKnife.class): warning: Cannot find annotation method 'value()' in type 'RequiresApi': class file for android.support.annotation.RequiresApi not found Jul 14 20:08:41 I guess 24.0.0 is required Jul 14 20:09:50 oh that annotation is informational maybe I can get away without it Jul 14 20:09:57 if I could actually build I could try it... Jul 14 20:10:45 oh R2 only got generated after building, which was prevented by my prematurely trying to bind something to R2 Jul 14 20:24:28 ok now it built but can't find the library class's viewbinder Jul 14 20:24:35 also android-apt totally not needed Jul 14 20:24:50 I put a Log.v(..) right after onCreateView() in my fragment. but the log never shows up. Jul 14 20:24:55 well unless that is the missing piece here... Jul 14 20:25:00 * missingno syncs gradle file again Jul 14 20:25:27 --> inside onCreateView Jul 14 20:27:30 aha it does need android-apt repeated in every library... which makes sense but I was being lazy Jul 14 20:31:47 also support-annotations 23.3 worked fine Jul 14 20:35:37 I'm so excited to make my app Jul 14 20:38:36 I've been reading through effective java, and I'm convinced immutables are amazing. I'm going through and making a lot of my objects immutable, but finding that I do indeed depend a lot on mutators. Anyone up to have a discussion about that? Jul 14 20:38:51 sure Jul 14 20:41:54 So I'm not sure where I start or draw the line in turns of what I try to make immutable. Thread safety is my biggest concern, and I know that can be solved with synchrnoization but immutability is the way to go. I'm starting with my model objects, but I have other objects that should be able to mutate. Jul 14 20:45:43 eghdk you should know, there is a downside. immutable objects can't be reused, so they can't be pooled. if you have to allocate a lot of them, its a problem Jul 14 20:45:47 *can be a problem Jul 14 20:46:15 but ideally, its makes it easier to reason about Jul 14 20:46:54 eghdk: I would start with the easy stuff first. You should see a pretty good difference there. Jul 14 20:47:32 If something should be able to mutate, then you can either leave it to be able to mutate, or implement a Builder type thing and create a new object with the change Jul 14 20:49:51 wait I take that back, support-annotations 23 fails proguard Jul 14 20:49:59 Would a builder take the object that you want to "mutate" but want to keep immutable? Didn't think of that, but a convienient way to do like new MyObject.copyOf(thisGuy).changeAge(22); Jul 14 20:50:15 I could add an ignore rule but I guess I'll substitute 24.0.0 instead Jul 14 20:50:51 g00s: Can you elaborate on the "can't be pooled part"? Strings are immutable but they sit in a pool? Jul 14 20:51:16 i imagine it’d be like a normal Builder, except there’d also be a method for buildFrom or something that would take an instance of the object, and would copy it’s properties, and modify what you want before creating the new one Jul 14 20:53:01 eghdk strings are somewhat special. i think Integer objects are also pooled from -128 to 127 at least on oracle jvm Jul 14 20:53:20 if you declare the object with Final variables, then you can’t pool them, because you can’t change the final members Jul 14 20:53:41 but, if you give them normal members, and just don’t give them setters, you could pool them. Jul 14 20:54:11 s73v3r: Aha. Good point on that. Should I go ahead and synchronize any mutator methods as well? I'm helping on the library side of things, so I wanna make sure I'm as robust and un opinionated as possible in terms of the threading model someone may be using. Jul 14 20:54:40 that I’m not sure Jul 14 20:55:32 https://code.google.com/p/android/issues/detail?id=185901#c8 :') Jul 14 20:59:05 anyone able to set a fixed header within a coordinatorlayout? my content always seems to be pushed. Jul 14 21:21:06 adq haha, a lot of my bugs were closed (obsolete). glad they finally looked at them 1-2 years later :D Jul 14 21:21:24 been seeing this the past few days ... Jul 14 21:21:38 yeah with the tag bash-2016... Jul 14 21:21:51 but i'm not glad, why and how would you be glad space in a path is still an issue.. Jul 14 21:22:01 g00s the bughunter! Jul 14 21:22:22 whats really pissing me off with AS is that many places autocomplete just doesn't work in XML. i'd have to create videos of like 7 different scenarios Jul 14 21:22:52 often when i create new XML files i also get IDE internal error Jul 14 21:24:08 everything builds fine tho Jul 14 21:29:40 I don't get it what is wrong, i put Log.e("test", "test); inside onCreate() in my fragment. but it doesn't show up in the logcat (i used adb logcat -s "test" ) Jul 14 21:41:13 your fragment doesn't get created Jul 14 21:41:18 or you're not running it like you think you are Jul 14 21:45:01 pfn: the fragment is being created since setHasOptionsMenu(true) which is one line above it works. Jul 14 21:49:38 I'm awful excited to develop. Jul 14 21:54:27 "After having become one of the most viral mobile applications of all time, Pokémon Go will soon include advertising, according to its developer." Jul 14 21:54:41 so its not there already? haha , great way to get everyone hooked first :D Jul 14 21:55:25 "retailers and companies will be granted the paid opportunity to be featured prominently on the game’s virtual map, in the hope to drive customers inside their facilities." Jul 14 21:56:14 can't they already pay for 'lures' or whatever they're called? isn't that enough? ... Jul 14 21:56:38 oh so niantic made ingress too Jul 14 21:57:03 bankai_ nothing is enough until all of your attention and time has been privatized and sold ;) Jul 14 22:08:30 Hey, I want to register my users with my own account, and have support to login with facebook, instagram, etc....which is the best way to accomplish it? Jul 14 22:08:43 I'm running a nodejs api Jul 14 22:09:22 and I looked for a framework called passport.js but its eems to bemore for web apps Jul 14 22:09:47 any advice or tool I could use for handling this? Jul 14 22:10:01 probably implementing a server with Node JS that your android app would call to Jul 14 22:10:12 I already did Jul 14 22:10:19 so what’s your problem? Jul 14 22:10:19 but my question is Jul 14 22:10:25 which is the best way to handle Jul 14 22:10:29 that? Jul 14 22:10:40 or at least the common practice? Jul 14 22:10:45 your app calling to your server, and your server handling talking to the services Jul 14 22:10:46 there is 0 info about that on google Jul 14 22:10:57 because it doesn’t sound like a common thing Jul 14 22:11:06 why do you want all users to be using your account? Jul 14 22:11:29 I just want in the login screen the button "log in with facebook " and the button "log in with user account" Jul 14 22:11:36 I already did the local user login Jul 14 22:11:48 but I need to know how to add more accounts Jul 14 22:12:07 like, if I'm a user, I want to link twitter, facebook, google+ Jul 14 22:12:11 oh, sorry, I misunderstood what you were doing Jul 14 22:12:46 for the app, you’re gonna have to implement them one by one, and then each service should have a server sdk that should tell you how to associate their account Jul 14 22:14:06 that is the way most people do? Jul 14 22:14:12 I'm trying to figure out if okhttp-ws is included with compile 'com.squareup.okhttp3:okhttp:3.4.1' Jul 14 22:14:16 isn't there like a "passport" app Jul 14 22:14:16 but i'm not sure how to do it Jul 14 22:14:17 it’s kinda the only way Jul 14 22:14:34 I've tried obviously importing the ws code but I haven't been able to Jul 14 22:14:59 https://www.youtube.com/watch?v=C4ik82C5G8g Jul 14 22:15:03 this guy did a library Jul 14 22:15:07 but it's unsoported Jul 14 22:15:09 he stopped Jul 14 22:15:33 i know nothing about node, so if your question is about that, you’ll want to ask in a node channel Jul 14 22:16:23 I did, but the sent me here Jul 14 22:16:43 but your question is how to do all that on the server side Jul 14 22:16:44 cause it's hard to believe that you have to implement every single social network connection Jul 14 22:16:51 there must be something to solve that quickle Jul 14 22:16:54 y Jul 14 22:17:13 you have to set them up separately because they don’t play nice together Jul 14 22:18:29 and even if there was a library to handle that on the Android side, you’d still be trying to deal with it on the server side Jul 14 22:19:15 you could use something like Firebase, or one of the other backends, which does all the work for you Jul 14 22:21:57 I want to populate a listview with data from a hashmap, I have seen a lot of people making a new adapter, and overriding the getView method. But they all seem to be altering the values of textviews, not listviews. Like this one: http://stackoverflow.com/questions/19466757/hashmap-to-listview Jul 14 22:22:02 what am I missing? Jul 14 22:23:19 is there any downside about using firebase? Jul 14 22:23:27 is there a listview xml that refers to the linear layout in the accepted answer in that link? Jul 14 22:26:50 eemgr: it isn't Jul 14 22:27:22 :/ Jul 14 22:27:44 Does anyone have any suggestions for websocket libraries? Jul 14 22:37:37 s73v3r thank you very much for the firebase advice...just what I needed Jul 14 22:40:55 does firebase authentication service is free? Jul 14 22:41:01 or I will have to pay? Jul 14 22:41:28 they have a free tier, but after that you do have to pay Jul 14 22:41:53 "is there any downside about using Parse[.com]"? Jul 14 22:44:27 j4f-shredder, now i prefer to go my own way on backend Jul 14 22:58:04 ok now I am having trouble getting butterknife to compile on my jack branch Jul 14 22:58:08 > Error:Library reading phase: file 'build/intermediates/packaged/debug/classes.zip' is an invalid library Jul 14 22:59:01 missingno lol Jul 14 23:00:18 ok I cleaned and I get this helpful error now: Jul 14 23:00:20 > Error:Execution failed for task 'transformJackWithJackForFDebug'. > java.lang.AssertionError: java.lang.IllegalArgumentException Jul 14 23:00:26 no other detail Jul 14 23:01:30 man gradlew --debug is reeeeally verbose Jul 14 23:03:07 Hi I'm using the fused location api and I can't get my code to call onLocationChanged. Code is here: http://pastebin.com/jgdQ5DqL Jul 14 23:03:44 getLastLocation works however Jul 14 23:06:49 it seems that the LocationReceiver's constructor is never called Jul 14 23:07:01 perhaps I'm just misunderstanding how to use intents Jul 14 23:17:52 http://blog.oestrich.org/2015/04/using-the-new-google-play-services-api/ doesn't seem to work either :( Jul 14 23:18:46 wow my classes.zip is 36mb Jul 14 23:18:59 definitely not a 0 length file tho Jul 14 23:20:25 org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:245) Jul 14 23:20:37 guess that confirms my suspicions of it being related to butterknife Jul 14 23:26:03 derp I should've looked here first https://github.com/JakeWharton/butterknife/issues/673 Jul 14 23:51:45 where can I find a 3-button appcompat alert dialog in some publicly facing app Jul 14 23:51:58 my theme is being weird and I want to see what it is supposed to look like Jul 14 23:52:50 oh weird google calendar uses teal for their dialog color accents Jul 14 23:54:23 is it me, or android:layout_gravity is wonky for PercentFrameLayout ? Jul 14 23:54:56 AS preview stopped showing my PercentRelativeLayout properly Jul 14 23:55:06 did something weird in my layout I guess Jul 14 23:55:29 haven't tried gravity just yet, what does it do Jul 14 23:55:42 i have layout_gravity="center_vertical" but its like 2/3 ways down Jul 14 23:57:22 that sounds wack Jul 15 00:01:43 yeah seems pretty screwed. simplest example , gravity doesn't work. lol but this has been out for a while ... Jul 15 00:04:34 ok i think i see whats going on. its aligning the top of the child with the imaginary line that would be "center_vertical" Jul 15 00:05:13 hm, actually not Jul 15 00:42:07 hrm. cant figure out what the difference of passing this versus an static instance=this; to jni function that NewGlobalRefs it. if i leave everything else change but just s/this/instance/ with instance=this; directly above. i get crashes or not Jul 15 00:42:57 seems kinda like im NewGlobalRef a pointer instead of what pointed Jul 15 00:57:02 Hello! I'm making an application that allows a user to create events. I'm allowing the user to use recurrence, but... how do I change (update/delete) instances? Hope you can help me, guys. Jul 15 00:57:22 (using CalendarContract) Jul 15 01:42:56 hm. avoided issue by using member native function instead of static native function where object passed Jul 15 01:57:01 Two men were rescued after falling more than 40 feet from an ocean bluff while playing the gaming hit Pokémon Go in San Diego." Jul 15 02:16:28 interesting, Moto E 2016 not coming to the US Jul 15 02:45:43 anyone has experience on apk decompilation? Jul 15 02:53:05 nole Jul 15 02:53:14 they're irreversible Jul 15 02:54:54 bq to be blunt, if you're new around here, benefit of doubt will not be extended to this being your app ;) Jul 15 02:55:09 and this isn't android-reversing ;) Jul 15 02:56:35 g00s: ahh, i don't get you Jul 15 02:57:18 g00s: i was here long before. i didn't do android dev for a long time. Jul 15 02:58:58 pfn: so android sdk does an automatic obfuscating? Jul 15 02:59:11 now **** ENDING LOGGING AT Fri Jul 15 02:59:58 2016