**** BEGIN LOGGING AT Sun Jan 31 02:59:58 2016 Jan 31 03:01:13 has anyone used the reddit api Jan 31 03:04:03 am I correct in thinking that you need to wrap all alertdialogs in if (! isFinishing()) { ... } in order to avoid "unable to add window" crashes if the user leaves the app before the alertdialog shows? Jan 31 04:04:04 am I correct in thinking that you need to wrap all alertdialogs in if (! isFinishing()) { ... } in order to avoid "unable to add window" crashes if the user leaves the app before the alertdialog shows? Jan 31 04:31:45 http://i.imgur.com/m7Bvt3L.gifv Jan 31 04:31:47 lel Jan 31 04:41:28 Omg, the song I had playing made that gif way more hilarious than it should https://gifsound.com/?gifv=m7Bvt3L&v=ls9_HPTs06I&s=160 Jan 31 04:44:25 I treat red lights like stop signs and stop signs like yield Jan 31 04:44:45 which is the proper way to do it, despite running a red light Jan 31 04:46:15 Yeah. That and dedicated bike roads when possible (there's a lot of those where I live and they're totally seperate from the car roads) Jan 31 04:46:32 nope, normal streets Jan 31 04:47:04 bike paths here have pedestrians and typically have speed limits Jan 31 04:47:09 it's pretty stupid Jan 31 04:48:31 That's ridiculously stupid. Do they even enforce those? Jan 31 04:48:38 It's not the proper way to do it, you can get a ticket doing that and some have even have had their driving license revoked Jan 31 04:49:10 I just rollerblade around the people and bikes at 50 km/h like I don't give a crap Jan 31 04:59:40 CedricBeust, it's the only proper way to ride, anything else is horridly inefficient Jan 31 04:59:46 Max-P, on some paths they are Jan 31 05:00:06 pfn: safety >>>> efficiency Jan 31 05:00:30 Putting everyone at risk just so you don't have to push your pedals after a complete stop... Jan 31 05:00:35 CedricBeust, thus a stop sign at Red and yield at stop is safe Jan 31 05:00:56 No, red is red, stop is stop. For all vehicles. Disobeying this puts everyone at risk. Jan 31 05:01:09 that is rather untrue Jan 31 05:01:38 and there is legislation in other states that support this, California has not yet progressed to this point Jan 31 05:01:39 It's the rule, period. Don't want to follow it, don't use a bicycle or a car, walk. Jan 31 05:01:54 it will Jan 31 05:02:15 Until it does, you should not be doing it, it's just dangerous. Jan 31 05:02:35 and irresponsible and selfish Jan 31 05:02:39 we'll have to disagree Jan 31 05:03:06 Hospitals and graveyards are filled with people who thought running the red was safe Jan 31 05:03:51 lol come on guys; i think it kinda depends on the intersection. if you're on a country road ... Jan 31 05:04:06 It's not your call. These signs are there for a reason. Jan 31 05:04:56 eh, I'd rather control who I hit rather than be hit by a sheriff's deputy that ran across the wrong side of the road because he was feeling sleepy Jan 31 05:04:58 read the other day germany is putting in a bunch of bike highways; that sounds awesome Jan 31 05:05:17 * pfn went to high school with that person Jan 31 05:05:26 not the deputy Jan 31 05:05:42 and I ride that road fairly regularly Jan 31 05:05:52 drivers are the problem, not cyclists Jan 31 05:06:13 i hit the serif ... but i didn't hit no deputy ... Jan 31 05:06:16 *sherif Jan 31 05:06:42 I'm curious, which states allow bicyclists to do that? Jan 31 05:08:06 As far as I can tell, none. Jan 31 05:08:19 Idaho since 1982 Jan 31 05:08:31 any other? Jan 31 05:09:04 "It first became law in Idaho in 1982, but has not been adopted elsewhere" Jan 31 05:09:18 So much for your claim that there's a trend in that direction and that California will soon do it too Jan 31 05:09:53 https://twitter.com/CMReynoso34/status/669132781067378689 Jan 31 05:10:14 Yeah lot of proposed laws, all rejected Jan 31 05:10:14 NYC a bill in progress Jan 31 05:11:35 "there is the issue of losing momentum" Gotta love the sense of entitlement... "I might lose momentum, better to just violate the vehicle code" Jan 31 05:12:05 considering cars do the California roll all the time Jan 31 05:12:26 a bike cruising through at 10mph is nothing Jan 31 05:12:27 Bicycles should be allowed to do exactly like cars, that's my point. Jan 31 05:12:43 It's illegal to roll through red or stop, though. Jan 31 05:13:13 cars also are allowed to treat lights as stop signs in the case that they're not functional Jan 31 05:13:32 for the vast majority of bikes on the road, lights are not functional Jan 31 05:13:47 Again, all I'm saying is same rules for bicycles and cars, period. Jan 31 05:14:02 Which means, no rollling through red and not yielding for stops. Jan 31 05:14:04 also, stop as yield has been adopted in a number of states Jan 31 05:14:20 there is no rolling through red Jan 31 05:14:48 different perspective, I imagine Jan 31 05:15:01 My perspective is simple: respect the vehicle code. Jan 31 05:15:40 read a little while ago, europe was removing their roundabouts while they are getting more popular in the US - reason europe is doing that is because they are very dangerous for bicycles Jan 31 05:15:47 as a non cyclist Jan 31 05:16:25 Just learned that Paris has a few relaxed laws for bicycles for specific intersections. Jan 31 05:16:30 hey guys anyone experience a similiar issue: Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.music.medialist.CaqPlayQueueSongList Jan 31 05:29:24 hey Jan 31 05:29:42 if i wanna make an app with video chat what should I look into Jan 31 05:29:44 if they banned cars tomorrow and we all had to ride bikes, i'd be totally OK with that Jan 31 05:30:04 django_: Probably WebRTC but it's very, very hairy Jan 31 05:30:36 so how are people making video chat apps? Jan 31 05:30:46 (source: shipped a WebRTC based app, it wasn't all fun) Jan 31 05:31:20 CedricBeust, how you worked with hybrid technolgies like ionic? Jan 31 05:31:33 I haven't. Jan 31 05:32:24 so annoying having to develop iphone/android separately Jan 31 05:33:09 @CedricBeust what webrtc lib did you use? Jan 31 05:33:30 Google's Jan 31 05:34:29 CedricBeust, whats it called Jan 31 05:34:37 ^ Jan 31 05:34:41 Should I retain instance of Snackbar specially the SHORT one? It's suppose to be gone anyways in the time it takes to rotate the screen. Jan 31 05:34:52 also im having unmarshalling parcelables error but im not certain if its with my code or not Jan 31 06:13:13 CedricBeust: btw, in Germany, the traffic rules don’t even consider jaywalking a crime, and you may only get fined, if you actually stop traffic, or do it right beside a traffic light Jan 31 06:13:32 so, yeah, no. Red isn’t Red. For Bikes there are similar exceptions in many places. Jan 31 06:13:50 Just obey the local laws. Jan 31 06:15:02 surprised the privatized justice system in the US hasn't lobbies to mandate j-walking minimum prison sentence Jan 31 06:17:50 Not even necessary, what’s necessary is mostly obeying Streettrafficregulation, paragraph §1: Jan 31 06:17:50 (1) The use on the road requires constant caution and attention. Jan 31 06:17:50 (2) Every road user must behave in such a way that no other users are damaged, endangered or, unless unavoidable under the circumstances, hindered or harassed. Jan 31 06:18:58 and you do that by obeying the local vehicle code Jan 31 06:19:49 this is a quote from the vehicle code for Germany. First and foremost rule. Jan 31 06:20:30 Does the German code say it's okay to disregard the regulations if you think it's safe? Jan 31 06:21:11 Actually, some cities even have created streets and areas where the regulations except for §1 don’t apply Jan 31 06:21:17 because that actually works bette Jan 31 06:21:19 *better Jan 31 06:45:07 * [Saint] wonders how anyone would adhere to such a code Jan 31 06:45:34 <[Saint]> "hundreds of fast moving lumps of tonnes of steel"; "no endangerment to road users" Jan 31 06:45:36 <[Saint]> pick one. Jan 31 06:46:00 <[Saint]> "don't use roads" seems to be the only valid solution. Jan 31 06:47:07 google should make cardboard cars that crumble, that way we'll be safe Jan 31 06:48:09 <[Saint]> Just /wear/ Google Cardboard, and get their self-driving goons to go out and do the dirty work for us. Jan 31 06:48:22 <[Saint]> Can't die on the road if you're on the couch. Jan 31 07:07:20 Hi, I want to use the repo from google tool to pull down a project Jan 31 07:08:07 the project use https protocol to transform code, but the certificate is selfed signed Jan 31 07:08:30 how could I let repo ignore the certificate issue? Jan 31 07:24:52 Hi, How can I export data from one DB to antoher using sqlite? Jan 31 07:31:21 Hi guys.. I have a large code base. I have added a seekbar to a fragment. I am inflating this fragment in onCreateView(..). and then I am implementing setOnSeekBarChangeListener(..) methods inside onViewCreated(..). I am trying this since days, looked into stack overflow. I am doing everything right, but the onProgressChanged(..) methods are not ca Jan 31 07:31:22 lled. Any ideas that I could be missing.. Jan 31 07:31:29 Thanks for any help in advance Jan 31 07:36:53 when i do toString after initializing the seek view to seekbar object. I get this: android.widget.SeekBar{42d9e190 V.ED.... ......I. 0,0-0,0 #7f0c0123 app:id/seekBarCarType} Jan 31 07:37:08 definitely its not null Jan 31 07:39:48 Hi guys.. I have a large code base. I have added a seekbar to a fragment. I am inflating this fragment in onCreateView(..). and then I am implementing setOnSeekBarChangeListener(..) methods inside onViewCreated(..). I am trying this since days, looked into stack overflow. I am doing everything right, but the onProgressChanged(..) methods are not ca Jan 31 07:39:49 lled. Any ideas that I could be missing.. Jan 31 07:45:03 Please help guys.. Jan 31 07:47:51 Is my text visible to you guys? Jan 31 07:50:28 pranav: pastebin your code Jan 31 07:51:26 wait.. I am trying to setOnSeekBarChangeListener(..) inside onActivityCreated(..). My code is very large. I will try to simply. Jan 31 07:51:31 for pastebin Jan 31 07:56:26 did not work still Jan 31 07:56:40 vigilancer: Here is the part of the code: http://pastebin.com/bvjZuF9b Jan 31 07:56:57 When is google going to release android studio experimental release ? Jan 31 07:59:00 vigilancer: this is inside a extends Fragment class Jan 31 07:59:43 when it becomes stable enough to release :v Jan 31 08:00:44 pranav: but onStartTrackingTouch and onStopTrackingTouch are called? Jan 31 08:01:21 pranav: shouldn't it be inside "onViewCreated" ? Jan 31 08:01:25 none of them are called, i know this because there is no log in logcat Jan 31 08:01:40 vigilancer: have tried it into onViewCreated as well before, did not work Jan 31 08:02:01 getActivity().findViewById(R.id.seekBarCarType); Jan 31 08:02:07 :o Jan 31 08:02:29 shouldn't you find view inside fragment's viewgroup? Jan 31 08:02:40 yes Jan 31 08:03:55 um Jan 31 08:04:13 whats activity's xml and fragment's xml look like Jan 31 08:04:15 i did this before Jan 31 08:04:49 inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); Jan 31 08:05:01 view = inflater.inflate(R.layout.fragment_map, container, false); Jan 31 08:05:23 pranav: pastebin full code and xml layouts for activity and fragments Jan 31 08:06:34 my chakras closed today, no remote healing Jan 31 08:06:36 ahhh Jan 31 08:06:47 ok Jan 31 08:08:37 what are you suppose to use to interact with the Twitter api? Can you use it as a regular REST api with Retrofit? Is the Fabric plugin needed? Jan 31 08:08:43 how can i make an app with video chat Jan 31 08:09:43 vigilancer: http://www.wikihow.com/Open-Your-Spiritual-Chakras Jan 31 08:09:47 I've also come across twitter4j but it doesnt return responses as Java objects by default so meh Jan 31 08:11:27 Ashiren: fair enough. I'll be back to you in few decades :) Jan 31 08:16:59 vigilancer: here is the fragment xml http://pastebin.com/4ASBZFJQ Jan 31 08:17:18 and code: http://pastebin.com/BDGdATSa Jan 31 08:19:50 i hve shortenrd Jan 31 08:20:36 hmm there are 2 seekbars with seekBarCarType Jan 31 08:21:00 although i dont know how android would react if one is @+id and other @id Jan 31 08:21:07 i only used @id for belows and aboves Jan 31 08:21:37 also why clickable and focusable are false? Jan 31 08:27:24 oh ok Jan 31 08:27:42 i have tried in both seekbar, but not reacts.. I will rename it and tell. Jan 31 08:32:25 Ashiren: Hi It is working, I dont know there was a dummy seekbar with same name Jan 31 08:32:34 just deleted it, and it works Jan 31 08:32:51 i was fixing the java code. Thanks a lot :) Jan 31 08:33:32 Ashiren : android will throw if @id/some is before @+id/some in one xml layout Jan 31 08:36:36 ok Jan 31 08:37:02 unluckily + was before in this case Jan 31 09:18:19 Hey Jan 31 09:18:22 need help Jan 31 09:18:40 regarding android studio Jan 31 09:20:24 ok I am running my app using emulator. My code has no error but it is not launching in the emulator and shows the message Jan 31 09:20:36 "Unfortunately my app has stopped" Jan 31 09:21:09 and these errors in Event log. http://pastebin.com/By8i5chX Jan 31 09:24:05 I am using retrofit to interact with a REST server. What's the preferred way to cache the responses so that I don't have to hit the server every time? Jan 31 09:31:16 samroar, did you try to clean the project, maybe import it into a new workspace and create a new AVD Jan 31 09:31:58 and if that still didnt help maybe try to redownload the SDK Jan 31 09:33:14 Yeah I clean it several times. Hmm ok i will give it a try Jan 31 09:34:30 maybe try to start a hello world app in a new avd, so you can exclude something is wrong with the environment itself Jan 31 09:35:24 Thanks! I am on it Jan 31 09:37:09 logcat will tell you the exception, not the event log Jan 31 09:37:34 yeah right I said it wrong these errors were in logcat only Jan 31 09:38:36 I really doubt that paste is from logcat Jan 31 09:39:18 hmm let me take a look then Jan 31 09:40:02 Actually this software is just messy to me. Its difficult to digest. Jan 31 09:53:18 ok let me ask this once and for all, do I place the calls to DB query inside an AsyncTask instead of leaving it on the UI thread? Jan 31 09:53:42 this is a case where Rx would be overkill, and the DB calls are still out there on the UI thread Jan 31 09:55:28 How would Rx be an overkill? Jan 31 09:55:49 well because what I do is "objectDAO.getAllObjects()" and that's it Jan 31 09:56:02 I feed those to the adapter and my list is finished and I move on Jan 31 09:56:38 Im not sure if it would be overkill, I just learned it properly yesterday Jan 31 09:57:14 I mean, you certanly should do all IO on background thread. Jan 31 09:57:38 I just don't get why you'd put up with AsyncTask cludge when you have Rx available. Jan 31 09:57:44 It's just an Observable.defer call. Jan 31 09:58:14 oh, I didnt know that, I thought all Rx means there must be a subscriber for the observable and things must happen on each iteration Jan 31 09:58:44 that's just how from works Jan 31 10:04:48 sorry DC Jan 31 10:15:57 ok so if I try to pass an assignment to defer, meaning I assign the value of the query to a variable, I get that Lambda expressions are not supported, so I read that you use Func1 class to emulate that behavior Jan 31 10:24:29 I got rejected for a huge work opportunity in the US, it was at the last stage of the interviews where I had to show code, I showed them this https://gist.github.com/Odaym/0af4e2e46973314c2168 Jan 31 10:24:32 you think it's shit? Jan 31 10:26:57 this was the position https://hire.clevertech.biz/job/554bbcc44dfd4fdc609b4690 Jan 31 10:50:27 Is there a way in android studio to show me where runtime permission is required in my project? Jan 31 10:52:47 *for sdk 23 Jan 31 10:55:48 could someone highlight me now please? testing weechat in tmux Jan 31 10:56:45 * shmooz highlights vigilancer Jan 31 10:57:18 ah, yes, weechat in tmux ever better Jan 31 10:57:29 thanks, shmooz :) Jan 31 10:57:47 you're welcome vigilancer :) **** BEGIN LOGGING AT Sun Jan 31 12:29:51 2016 Jan 31 12:31:03 Well, I'll have to use mqtt then, and tell 6.0 users to go complain to Google then. Jan 31 12:44:13 how can I figure out the buildtoolsVersion? Jan 31 12:44:40 I'm getting some nasty error, failed to find Build Tools revision 22.0.1 Jan 31 12:52:37 they are in app's gradle Jan 31 12:52:56 also if you get the error android studio should link you to download Jan 31 13:04:04 still no idea how to figure out the build sdk version so I just took the information form a saved project Jan 31 13:08:30 I have an sqlite table with a unique constraint on a TEXT 'name' field. When I INSERT a new row where 'name' is not unique I get a SQLiteConstraintException but the program continues on fine. When I UPDATE a row to a non-unique name I get that same exception, however my app crashes. Why is that? Jan 31 13:58:23 hello everyone i have something to ask Jan 31 13:58:37 i am creating a social network kind application. Jan 31 13:59:11 Should i login everytime to the server when someone starts the app. or just login once and keep the users id at the sharedprefs and go on with that Jan 31 13:59:43 Shared prefs are faster but not too secure. Someone can change their id to someoneelses and BAM youre hacked someone. Jan 31 14:00:32 am i right? Just a memory editor or someting like that can hack this easly. I should create a login class and check to the server everytime for if the pass and username matches Jan 31 14:02:07 this sort of security isn't android or mobile only Jan 31 14:03:43 pfn: what do you mean? Jan 31 14:03:45 torak: suggestion: Jan 31 14:03:49 learn about sessions, Jan 31 14:03:51 and session keys Jan 31 14:04:02 let the server generate a session token, store that locally Jan 31 14:04:16 the server maps session token to userid, and can invalidate tokens after some time Jan 31 14:04:29 justJanne: hmm Jan 31 14:04:39 this means the server can log out only one client, or all, or log out clients after some time Jan 31 14:04:52 also it means you don’t store the password, Jan 31 14:04:56 and it’s secure Jan 31 14:05:08 (because the server knows which userid was used to generate the session token) Jan 31 14:05:27 justJanne: but what if i have someone else's session key? Jan 31 14:05:38 if you somehow get the session token of another user, yes, you’d be logged in as them – but for that you need (a) access to their device, and (b) they can always log you out again Jan 31 14:06:08 this type of authentication has been used for decades now, and tutorials for how to do it with good old cgi webservers existed ages ago Jan 31 14:06:41 justJanne: that makes sense. thank you ! I will search about it. Jan 31 14:08:05 Also, differences between session and token auth, and how they work in theory: http://security.stackexchange.com/questions/81756/session-authentication-vs-token-authentication Jan 31 14:08:21 what you want: https://en.wikipedia.org/wiki/Access_token Jan 31 14:09:59 I was using parse.com probably they think of something for this and probably have their own functions for this in the api. But since they reported service will be shut down in 1 year. It's better i wrote my own functions. Jan 31 14:10:47 I’d suggest you to read some books about web authentication, databases, scalable services, etc first ;) Jan 31 14:12:41 I used to be like you, storming into new projects. Nowadays I first try to draw diagrams and think about what I actually want, what the protocols should look like, how I want to structure the backend – then I go and search for libraries that solve most of my issues already, and only after that I actually start building prototypes for each features, test what works, what doesn’t, update the drawings, etc. Then I implement everything, piece by piece Jan 31 14:12:41 ;) Jan 31 14:16:43 justJanne: yea you are right working systematicly can really help and saves you from a tons of extra work. Jan 31 15:32:26 Hey all, when I return from an activity with the backbutton, the activity I return to displays a different fragment from the one it was displaying. How can I get it to return to the fragment that started the new activity ? Jan 31 15:35:12 This is because in onCreate I display a fragment. How can I display the last used fragment ? Jan 31 15:48:51 Hi. Can I create fullscreen layout on android 2.1? Jan 31 15:49:35 you shouldn't be creating *anything* on android 2.1 in 2016 Jan 31 15:50:29 Sure, but I need very-very simple app with full screen Jan 31 15:51:00 hello Jan 31 15:51:28 what is the best way to do an android chat application? sockets? google cloud messaging? Jan 31 15:54:05 I don't know if they still do, but I believe that whatsapp used cloud messaging for quite a long time Jan 31 15:54:18 if you get to their sort of scale, your questions become very different :) Jan 31 15:55:24 Leeds: not so big application, just a little simple group chat... Jan 31 15:55:51 but a have to retain some about last 100 messages Jan 31 15:55:51 right, I'm saying that if it worked for them, it'd probably work for you Jan 31 15:55:52 like that Jan 31 15:56:03 oh, sure! Jan 31 15:56:27 thkz :D Jan 31 15:57:43 pauloreloy, if you want simple, use GCM. Jan 31 15:57:48 You'll need a server anyway. Jan 31 15:58:38 Mavrik: probably im gonna do that, gcm... thankz man! Jan 31 15:59:00 I'm doing a little GCM with Django on my server, and it's really pretty easy Jan 31 15:59:21 I wish the client-side were as easy, but Java makes everything excitingly abstract and boilerplate Jan 31 16:00:59 Leeds: Django is for listening? Jan 31 16:01:18 I'm only doing push from server to phone, so it's simple Jan 31 16:08:08 hmm Jan 31 16:19:18 Hi all. I created a new activity page in Android Studio and it's not letting me drag and drop Widgets onto the screen. Any ideas? Jan 31 16:19:35 Quick question, is there a method that will be called before the app quits ? Jan 31 16:20:01 Define "quits". Jan 31 16:20:36 theres no method when app "quits" Jan 31 16:20:51 if you are thinking about when all activities are closed Jan 31 16:20:58 Before it gets killed by android or the user. Jan 31 16:21:02 you need to trace them manually Jan 31 16:21:03 Yes. Jan 31 16:21:48 and check last one onBackPreseed() or onDestroy()* Jan 31 16:21:56 SASDOE, when it gets killed it gets killed. Jan 31 16:22:04 No warning before that. Jan 31 16:22:42 Ok, I come from iOS so I just assumed. Cheers. Jan 31 16:23:00 :o Jan 31 16:29:01 Why when I set android:id="@id+/" then I can't find it in R.Java? Jan 31 16:37:07 Ozymandy, because R is generated at compile time and not everytime you edit an xml Jan 31 16:40:07 How can I close a expanded cardview of given position? A reference doesn't help because the cardviews gets cached and shuffled all the time Jan 31 16:40:30 SimonVT: You remember my situation from yesterday? Just wondering if you could help about this question too. Jan 31 16:56:45 hey guys! can I dynamically create an enum in java from an string-array defined in strings.xml? Jan 31 17:28:47 you can't Jan 31 17:31:26 Objects in recyclerview gets shuffled all the time so how can I get hold of a object in a recyclerview by position? Jan 31 17:34:05 layout get at position Jan 31 17:34:37 pfn ok thanks Jan 31 17:36:01 pfn: How do you mean? Jan 31 17:37:14 I don't see how you can get a view from position Jan 31 17:38:00 If I want textview from position 0, how would I do that? Jan 31 17:38:24 that's not what you asked Jan 31 17:38:51 and not what you should be doing Jan 31 17:40:58 I have included a project from github as a dependency, but I also have it on my local machine. It is a separate module that my android app is using. When I make changes to the code, the build doesn't reflect them (it seems to pull from github, or keep a cache that I don't know how to invalidate). Anyone know how to make gradle point to the local source? Jan 31 17:41:42 publish you're local copy locally Jan 31 17:41:51 add local repo to your resolvers Jan 31 17:42:16 pfn: when you say "publish" I take it that's different from building? Jan 31 17:42:34 yes Jan 31 17:42:45 do I do that in gradle? Jan 31 17:42:56 Probably Jan 31 17:43:12 pfn: I'm expanding and collapsing cardviews in recyclerview, there can only be 1 open cardview at time. I just close others if they are open and not in the original clicked position on onBindViewHolder, but if I open another cardview and the positions are shuffeled I can't just close it by reference and it won't close before onBindViewHolder gets called, so now I have two open cardviews... Jan 31 17:44:54 mentazoom, store a reference to the card view that is expanded, problem solved Jan 31 17:46:57 pfn: That's what I'm doing, openCardView = "clicked cardview", it all works fine til you scroll down and recyclerview recycles and shuffles, then it won't be able to close the cardview at the right position Jan 31 17:48:17 I was debugging and it seems like the references get's isn't same all the time for gives position, and when it changes it won't work else it works Jan 31 17:49:27 So what I'm trying to say is that for example #1 won't have same reference all the time Jan 31 17:55:02 that's fine Jan 31 17:55:15 when your view gets recycled, you must collapse it Jan 31 17:56:12 pfn: I've been looking around on google, etc. but I'm lost. Is this something I would do with "artifacts"? Jan 31 17:57:14 snapfractalpop, google gradle publish local Jan 31 17:58:17 Lets say I open #0 and view gets recycled, I keep #0 open because I don't want it to close automatically. So now I open #1, but I can't collapse #0 now because I don't have reference to it anymore because it's recycled. What can I do now? It will close when the view calls onBindViewHolder, because I close all views there which are open but doesn't equal too the original clicked position. What can I do Jan 31 17:58:19 now then? Jan 31 17:59:12 then your problem is solved Jan 31 17:59:39 you can also use view. types to keep track of collapsed and expanded Jan 31 17:59:57 How do you mean? There will still be two cardviews open. That's a no no :) Jan 31 18:00:12 there won't be, you said it. got collapsed when recycled Jan 31 18:00:15 problem. solved Jan 31 18:00:36 snapfractalpop you can use uploadArchives() Jan 31 18:01:09 But there will be two cardviews open before you scroll down or whenever recyclerview decides to recycle and call onBindViewHolder. It's quite random and not good design Jan 31 18:03:19 g00s: how does that work? (I'm not trying to upload anything.. as my changes aren't even commited in git or anything like that) Jan 31 18:03:27 mentazoom, you kept a reference to. collapse it already Jan 31 18:03:36 there won't be 2 open Jan 31 18:04:23 snapfractalpop uploadArchives() installs an artifact to your local maven repo, like ~/.m2 ... maybe i misread your question Jan 31 18:04:40 anyone here know if emojis only work on same OS? eg. it renders same on same os but on differ os may look differ but supported? anyone can help? Jan 31 18:06:53 g00s: basically, I cloned a github project locally, which has two modules. an android one, which code I can change, and a library that I can change the files to, but the android project keeps pointing to the "original" file Jan 31 18:06:58 pfn: I opened #0 and I have reference to it so when I open #1 then #0 gets closed. Now #1 and I have reference to it for future so I can close it when some other cardview opens. But lets say now everything gets recycled and I have some random reference, but not for #1 so if I open #2 now I can't close #1 Jan 31 18:08:22 snapfractalpop: ? Jan 31 18:09:17 When everything gets recycled I won't close #1 by design, because the user opened it Jan 31 18:10:01 chaitime: the android projects extends and implements a class and interface from the module I'd like to change. I can change the local files, but when I hover the mouse in AS and click "edit source" it opens a cached version of that module's file, without the changes. cleaning, rebuilding, etc. have no effect Jan 31 18:10:23 I think the dependencies are pointing to the online github, even though I have it locally Jan 31 18:10:56 What I meant by that other cardviews gets closed when it gets recycled is that if I open #0 and scroll down then #0 gets recycled and some other cardviews gets opened, but I close them but keep #0 open Jan 31 18:11:26 who snapfractalpop im sorry thought you meant me, its over my head bro Jan 31 18:11:38 mentazoom, you close the recycled view Jan 31 18:11:59 when you bind 0, if it's expanded, you expand the view Jan 31 18:12:02 problem solved Jan 31 18:12:08 as originally pointed out Jan 31 18:12:55 pfn: Okey now #0 is open, but I lost the reference because of recycling, how do I close it in future? Jan 31 18:13:39 mentazoom: pfn snapfractalpop why yall ignore my emoji question liek its so hard for yall to answer Jan 31 18:14:56 chaitime: I think it could look different.. but I'm not sure. It's unicode, right? Jan 31 18:15:32 I can close all other easily by if(getAdapterPosition() != expandedPosion)close(cardview) at onBindViewHolder, but I can't close one specific cardview if I don't have reference to it Jan 31 18:16:48 if I could have something like getViewByPostion(position) then problem solved Jan 31 18:20:37 man im so confused, android allows devs to add icons to emoji set or you have to make a new keyboard? Jan 31 18:22:50 chaitime: are you on M? Jan 31 18:26:13 mentazoom, if it got recycled, it's not visible, you don't need to collapse it Jan 31 18:28:07 snapfractalpop: yes sir i am Jan 31 18:29:25 Can I make some layouts for different versions of android? Jan 31 18:29:44 For 2.3 one layout, for 4.0.3 another one and so on Jan 31 18:29:47 chaitime: as I understand it, M has unicode emojis, so I suspect that they could appear different on other systems, using different "fonts". I'm not certain of this Jan 31 18:30:41 so if I want to make my own image/icons/sticker that a person can insert in a SMS or Hangouts or some chat app, do I just make an image pack, or do I have to make a new keyboarD? can my emjojis be added to android M emoji pack? Jan 31 18:31:56 pfn: The problem is that I force it open after recyclig because it's the oldClickedPosition but then I don't have the reference for closing it in future. And it won't get closed automatically before onBindViewHolder gets called and it checks the new oldClickedPosition Jan 31 18:33:02 Till then you can see two cardviews opened Jan 31 18:34:10 chaitime: when you send unicode emojis, AFAIK, it is just sending unicode characters that, if supported on the receiving end, will render as emojis Jan 31 18:34:38 then forget emojis, nobody adheres to it, I need something like a sticker pack instead of text->image Jan 31 18:34:50 Can anyone help me? Jan 31 18:34:52 I decompiled a apk with jadx (https://github.com/skylot/jadx) and modified it. How do I recompile it into an apk? Jan 31 18:34:57 android i think has asshole non-dev permission for me to easily add emojis to the current set Jan 31 18:35:09 fuckers gave no API access Jan 31 18:35:38 chaitime: haha I don't think it's some exclusive thing like that Jan 31 18:35:47 chaitime: you could use fonts Jan 31 18:35:54 as a work around? Jan 31 18:36:16 develop a font maybe, that renders the characters differently Jan 31 18:36:21 what are you envisioning? Jan 31 18:36:47 both users will have to have your font in use.. Jan 31 18:37:03 I just want a set of icons available to users Jan 31 18:37:17 like a sticker pack? Jan 31 18:37:35 because, as far as I can tell, it's not sending the images over SMS, but rather, just bytes that can be interpretted as images Jan 31 18:38:01 whats the itnerepret, some standard protocol or OS independant? Jan 31 18:38:21 chaitime: I think it's literatlly unicode characters Jan 31 18:38:56 so, the same way that you see c h a r a c t e r s in your irc, it could be slightly different than mine Jan 31 18:39:15 but the letters are "images" at some point Jan 31 18:39:18 snapfractalpop: you are cool man, you are like Android OG here Jan 31 18:39:21 yes Jan 31 18:39:37 does Android offer any sticker pack system that integrates with all its shit Jan 31 18:39:42 eg. hangouts and sms and whatsapp Jan 31 18:39:46 idk about that.. haha I can't get my gradle working for me for shit Jan 31 18:39:53 like what dev tuturoial do i google for sticker pack stuff Jan 31 18:40:05 the hand the rocks the gradle Jan 31 18:40:37 when you say sticker packs, are you talking about hangouts? Jan 31 18:40:57 you could look to see if there is some api for that.. I haven't a clue about stickers Jan 31 18:41:47 also, I should mention that roboto is open source.. (the font used on android) Jan 31 18:43:46 snapfractalpop: all I want is for someone to download an app that has images, and when they go to sms for example, they can type message and then tap button or attachments and then have a image pack available to pick from Jan 31 18:44:09 i guess i have to make the app just a folder of images that installs to root dir of DCIM type stuff on android fiselsuystem? Jan 31 18:44:33 chaitime: ok, so you can do that, but why an app then? Jan 31 18:44:40 why not just a folder of images Jan 31 18:44:47 snapfractalpop: for fans of this rapper Jan 31 18:44:59 I want to release a pack of images relative to chattin that all the fans can use Jan 31 18:45:25 so all android OS allows me to do is this ghetto install of a folder of images? Jan 31 18:45:41 they need to open up this API to allow people to attach images and gifs better and render them for fucks sake Jan 31 18:45:56 I think, by default, one of the image locations that gets looked in is the Downloads folder Jan 31 18:46:06 you could just have the app save them their Jan 31 18:46:27 perfect Jan 31 18:46:37 thanks snapfractalpop Jan 31 18:46:41 you are one helpful dude Jan 31 18:46:50 these other dudes here are crabs in a barrel Jan 31 18:47:04 you're welcome.. but I don't know about the others.. probably just debugging shit Jan 31 18:47:52 as far as android goes.. it can seem closed off, but it's a pretty large complex project. if you dig around, you'll find it's pretty open though Jan 31 18:48:54 thanks bro Jan 31 18:49:03 snapfractalpop: do you slave 9-5 or have your own busienss? Jan 31 18:49:42 own business Jan 31 18:50:06 heck yea Jan 31 18:50:10 hence why you can answer questions here Jan 31 18:50:17 and others are debugging or "slaving hard" Jan 31 18:50:18 lol Jan 31 18:50:23 in Rx, if Im creating a new observable with takes Observable.OnSubscribe callback as a parameter and in that callback I want to call subscriber.onNext() manually, how can I call it in a way that it doesn't take any parameters? Jan 31 18:52:00 and also I can't see to find what the correct syntax for using defer() is Jan 31 18:52:16 chaitime: I still slave pretty hard to the code though.. "everybody's gotta serve somebody" -Bob Dylan Jan 31 18:52:44 like this snippet here, what would be its equivalent in defer() terms? http://pastie.org/10703160 Jan 31 18:54:13 Mavrik you around? Jan 31 18:54:44 bob dylan was in debt and lived off credit and was addicted to crack Jan 31 19:02:45 chaitime: I'm talking about this song: https://vimeo.com/87876758 Jan 31 19:07:51 pfn: Any hope for this? Jan 31 19:10:09 hi, i'm trying to develop on a macosx and was wondering if there is a better image i can use that's less laggy Jan 31 19:10:30 currently i'm running a nexus 5 emulation and it's extremely slow Jan 31 19:13:32 g00s: pfn basically, this is the gradle of the github I cloned: https://github.com/yangweigbh/Libgdx-CardBoard-Extension/blob/master/build.gradle and I built the Demo project. Changes to the demo code are reflected in my build, but not changes to the other module Jan 31 19:13:52 can you point me what I'm supposed to change here, in the gradle file? Jan 31 19:14:34 eindoofus__: Use intel image, it's quite fast for me on osx Jan 31 19:14:45 don't use arm Jan 31 19:15:15 thanks mentazoom Jan 31 19:16:28 mentazoom, any idea whether Intel x86 Atom 64 System Image is better or Intel x86 Atom System Image (without 64)? Jan 31 19:16:54 Hi. I'm trying to implement a small app using WiFi Direct P2P Api. Following the documentation ( http://developer.android.com/guide/topics/connectivity/wifip2p.html ), I'm a little confused with the mention of `WifiP2pManager.PeerListListener mPeerListListener`. From what I can see in the example, this variable is never initialized... Jan 31 19:16:54 i'm running a 64 bit but the "x86" in the title confuses me Jan 31 19:17:12 (64 bit on the host) Jan 31 19:18:36 I'm just not sure where, or what, I should be instantiating the variable to. Presumably I make my own PeerListListener, so that I can override the methods to do what I need? Jan 31 19:31:23 huck5: I think that sounds right Jan 31 19:31:40 you'd override onPeersAvailable() Jan 31 19:32:32 not sure whether you could just have your activity implement PeerListListener.. Jan 31 19:33:07 (and not even have an mPeerListListener member Jan 31 19:33:11 ) Jan 31 19:34:22 but you could try that.. and mManager.requestPeers(mChannel, this); Jan 31 19:34:29 not sure though.. Jan 31 19:37:17 snapfractalpop, thanks! I found the example where they write their PeerListListener, it was just on a different page :) Jan 31 19:38:26 huck5: cool Jan 31 19:38:46 snapfractalpop, although they do write this as an inner class... Is there a benefit to doing it this way, rather than creating a separate class file? Jan 31 19:38:50 sometimes I wonder why they even put "examples" like that in the documentation if they aren't going to be at least somewhat complete Jan 31 19:39:37 snapfractalpop, I wonder the same thing. Maybe it's along the lines of "If you don't care enough to find the pieces of the example, you don't deserve to know" :P. Which, to some degree makes sense. Though a complete example in one place would be more helpful, I think. Jan 31 19:40:25 huck5: yeah.. but I think creating arbitrary "hoops to jump through" just impedes the learning of people who are trying Jan 31 19:40:36 I totally agree. Gets kind of frustrating, actually. Jan 31 19:40:43 huck5: re inner class.. I suspect just a difference in style? Jan 31 19:40:57 snapfractalpop, maybe it's supposed to be easier to follow in the example.. Jan 31 19:41:00 to access other members, local vars, you'd need to inject them, I think Jan 31 19:41:29 Oh, I see, that could be it. So they have access to outer-class vars, instead of passing. Jan 31 19:41:34 h Jan 31 19:41:55 I believe so Jan 31 19:41:57 Interesting. Well, thanks for the info :) Jan 31 19:42:09 (and methods) Jan 31 19:42:23 Inner classes kind of seem like extra confusiong to me... I'd rather have everything organized/abstracted into their own class files. Jan 31 19:42:29 confusion* Jan 31 19:42:38 How to create different activities for different android versions? Jan 31 19:43:38 inner classes are a basic feature of java Jan 31 19:43:52 Ozymandy, if(version == ...) startActivity(activityA) else startActivity(activityB) Jan 31 19:44:14 Where I can write this code? Jan 31 19:44:14 pfn, I've just never really used them much... I'm sure there is good reason to, though. Jan 31 19:44:29 Ozymandy,at the point u start the activity Jan 31 19:50:07 Where I can read about supporting themes in another android versions? Jan 31 19:51:10 Ozymandy, use appcompat themes, they work on every android version > 7 Jan 31 19:52:06 danijoo: I need notitlebar.fullscreen in my app, but I need make app with supporting from 2.1 android Jan 31 19:54:23 whats the problem? Jan 31 19:55:02 supporting 2.1 is for suckers :) Jan 31 19:55:37 danijoo: it doesn't work when I set theme notitlebar.fullscreen Jan 31 19:55:38 its actually bad for the whole dev community Jan 31 19:55:43 if you dont let it die Jan 31 19:56:24 * g00s doubts Ozymandy will cause a resurgence of 2.1 popularity :D Jan 31 19:56:36 g00s, everyone matters :) Jan 31 19:56:43 Ozymandy, maybe its not supported ? Im not sure Jan 31 19:57:05 Yes, so I need alternative solution Jan 31 19:57:44 if its not supported, you cant do it. theres no alternative then :p Jan 31 19:57:58 set a theme where this is not set in 2.1 Jan 31 20:00:31 With AppCompap I can set notitlebar.fullscreen? Jan 31 20:00:40 huck5: I find them somewhat awkward as well.. but they can be useful when behavior is highly coupled and you don't want to pass too much of that to the contructor Jan 31 20:00:50 (that can be equally awkward) Jan 31 20:01:41 pfn: any ideas on the gradle file? I'm completely lost on how to get it to accept my local changes. this seems such a simple think, and I can't get it to work Jan 31 20:03:15 Ozymandy, use seperate style files for different api versions to adjust that Jan 31 20:06:44 Hmm, it works with appcompat Jan 31 20:06:46 Thanks Jan 31 20:07:22 But is appcompart supported on late versions of android? Jan 31 20:08:17 this client was a big dildo Jan 31 20:10:06 Ozymandy, appcompat is supported on every api version > 7 Jan 31 20:10:14 thats why its name is support-v7 Jan 31 20:11:41 they should screw oldies and support >=11 Jan 31 20:11:46 or >=14 even Jan 31 20:12:47 Ashiren, why should they unsupport versions that are captable of being supported? Jan 31 20:12:52 that makes not much sense Jan 31 20:13:39 but 2.3.3 is like IE6 Jan 31 20:13:51 and they changed so much in 3.0 and 4.0 Jan 31 20:14:08 yes but still why should they activly drop support if they dont have to Jan 31 20:14:20 for now Jan 31 20:14:20 2.3.3 is still the best version ;P Jan 31 20:14:27 that wouldnt make sense from the business point of view Jan 31 20:14:37 this client was a big dildo Jan 31 20:15:02 if something wont be possible to be part of 2.3.3 theyll put it in another support lib Jan 31 20:15:12 v11 or whatever Jan 31 20:15:27 nyoro~n Jan 31 20:17:51 all these system ui visibility flags are confusing as hell :( Jan 31 20:44:02 gary_host: blow it out your ass Jan 31 20:46:38 if I use the concat() function from Observable and my is a String[], I cannot use it anymore because it gives me that its expecting a String[] but it got Serializable Jan 31 20:46:42 from concat Jan 31 20:50:06 nope, all works Jan 31 20:50:14 something was still saying String Jan 31 20:59:04 Last week, I had a screen call with a startup (whose product is an app) for a summer internship, and they liked me enough to give me a coding project -- making an Android app that did some basic stuff with threading and location. They liked what I turned in enough to ask me to do a 90-minute call with their android dev. How should I prep for an Android internship interview Jan 31 20:59:04 call? Jan 31 20:59:45 Or is it better to just go in as I am, with the knowledge I currently have (aka wing it)? Jan 31 21:00:30 snapfractalpop, if you cloned the entire project, and are just trying to build the project and library, it should just work as is Jan 31 21:00:34 Is there an easy way to convert BufferedReader to a StreamInput ? Jan 31 21:03:19 what was the project HenriettaSalt if you dont mind sharing? Jan 31 21:03:46 if i want to use a javascript library in a webview do i just use loadUrl and pass it the url of the javascript lib? Jan 31 21:04:42 Odaym: They had me make an Android app that pulled some data from a JSON URL and displayed it in a list (generated on a background thread) while also displaying the user's GPS coords. Jan 31 21:05:03 the list generated on a background thread? Jan 31 21:05:09 or the request to pull the JSON URL contents? Jan 31 21:05:58 Odaym: Oops yeah, the request was in the background thread. Although the list items were created in that thread too and then passed to the UI thread to be displayed Jan 31 21:06:14 the ArrayList was populated in the thread only Jan 31 21:06:18 yea? Jan 31 21:06:41 and the coords just a fetch coords and display in the Logcat? Jan 31 21:06:47 or on a textview maybe? Jan 31 21:07:08 Odaym: ArrayList was populated in the thread, correct. And the coords were displayed in a textview above the list of items. Jan 31 21:07:26 ok Jan 31 21:07:40 this is *very* basic, they just want to make sure you didn't apply for the position by mistake Jan 31 21:08:03 Odaym: Haha, yeah. Writing it down did make it seem pretty basic. Jan 31 21:08:24 Do you have any advice for preparing for an android interview call? What sort of questions should I expect? Jan 31 21:08:27 because it doesn't count as a project with threading, where else would you run the request for the JSON, you will crash if you dont send it to a background thread Jan 31 21:09:24 you can use this https://dl.dropboxusercontent.com/u/19390574/100_Android_Questions.pdf Jan 31 21:10:06 it's very good Jan 31 21:10:30 you're supposed to know up until intermediate if you're applying for something below Senior Jan 31 21:10:33 Is there an easy way to convert BufferedReader to a StreamInput ? Jan 31 21:10:42 I think Jan 31 21:11:57 Odaym: Looks awesome! Thanks. It's just an internship, so I'll probably be good with just the beginner/junior questions Jan 31 21:12:23 mind disclosing company? Jan 31 21:22:31 Hello everyone. Jan 31 21:22:37 When using GridView, say I wanted to have 1 of 5 image-sets be visible on the screen, depeneding on the user selection of buttons that are always visible. Is it better to create a seperate identical activities to display each of the 5 image-sets and then change which activity is active? Or to have 1 activity and re-use the same GridView by dumping its data and refilling with the new image-set? Jan 31 21:24:49 galamar, why not one Gridview and switch out the images? Jan 31 21:25:29 danijoo, That is what I was thinking. Jan 31 21:26:15 Hello, I'd like to make a 2x3 GridLayout with each cell taking all the possible space, so each cell would be 50% width of the screen and 33% height Jan 31 21:26:18 How can I achieve that? Jan 31 21:27:11 I am just not sure how to set that up, all the guides I can find are for just loading the GridView once. Jan 31 21:27:44 Aichan, use a TableLayout for that Jan 31 21:27:52 thats not a Grid usecase Jan 31 21:28:16 danijoo Oh I assumed from the name Jan 31 21:28:18 Ok :) Jan 31 21:28:42 grid doesnt have the feature to set weight on the items, but Table can do that :) Jan 31 21:28:58 Aichan GridLayout would be fine, use weights like LinearLayout Jan 31 21:29:54 g00s, i think gridlayout does not support weight before api 21 Jan 31 21:30:02 does it? Jan 31 21:30:06 its in the support lib Jan 31 21:30:15 ah! I see :) Jan 31 21:31:01 I read about that but couldn't get it to work Jan 31 21:31:06 table works fine without support lib though. but if thats true, it doesnt matter what you use Jan 31 21:31:23 Xamarin's layout editor didn't seem to like it Jan 31 21:31:54 never trust the layout editor :p Jan 31 21:35:57 Aichan using app:layout_columnWeight and rowWeight ? Jan 31 21:36:21 g00s GridLayout didn't know about columnWeight Jan 31 21:36:27 GL is a bitch to get working though, all it takes is one child to have the wrong setup and everything goes nuts Jan 31 21:36:38 Aichan /use the support lib version/ Jan 31 21:37:00 g00s also tried it but since I'm using Xamarin it's not fun to get it to work :D Jan 31 21:37:10 Aichan, TableLayout and stretchColumns="*" => problem solved Jan 31 21:37:19 Once again the layout editor didn't seem to like it so much Jan 31 21:38:10 danijoo I'm trying your idea as soon as I understand how it works :D Jan 31 21:38:50 xamarin - adding bugs to your bugs :) Jan 31 21:38:59 Hahaha Jan 31 21:39:12 you just add android:strechColumns="*" to tableLayout. this tells it to stretch all columns until remaining space is filled Jan 31 21:39:56 danijoo Exactly what I needed ! Thank you Jan 31 21:40:58 is there a way to develop cross platform mobile apps? Jan 31 21:41:02 danijoo About the height what do you recommand? Jan 31 21:41:12 SparkyFlary You mean iOS/WinPhone/Android? Jan 31 21:41:34 yea Jan 31 21:41:40 SparkyFlary Xamarin is an example Jan 31 21:41:47 If you're ok with C# Jan 31 21:41:54 But I think there is a few of them Jan 31 21:42:17 I'm ok with C++ Jan 31 21:42:36 TableLayout has no option to control childs height I fear Jan 31 21:43:12 danijoo So I can't make it 33% of the screen unfortunately? Jan 31 21:43:19 I'll have to set a value Jan 31 21:43:47 yeah. Jan 31 21:44:07 maybe gridlayout can do that. g00s knows :p Jan 31 21:44:13 i dont Jan 31 21:45:46 do yall people slave 9-5 mostly here Jan 31 21:46:03 anyone here took android and made a business and at least able to schedule thier own non-slave hours? Jan 31 21:47:09 danijoo android:layout_height="0dp" android:layout_weight="1" on tablerow did the job Jan 31 21:48:44 danijoo, If I am switching out the images of a GridView would it matter that the new image-set had more or less items than the previous set? Jan 31 21:50:09 galamar, maybe you want a gridlayout instead. Jan 31 21:51:21 danijoo: do you code Jan 31 21:51:53 I have been told here previously that GridView was the better way to go for my desired function of the app. Jan 31 21:52:03 chaitime, no im only here to answer questions.. Jan 31 21:52:24 danijoo: are you on the Android team? Jan 31 21:52:28 galamar, you can add/remove items all the time Jan 31 21:52:48 chaitime, _the_ android team? Jan 31 21:53:18 danijoo: heck yea, duarte and the other chutias Jan 31 21:53:29 no idea what u mean Jan 31 21:54:58 Hmm, didn't realise that Otto was deprecated till I saw this link on Reddit: https://github.com/square/otto#deprecated Jan 31 21:55:14 TacticalJoke, huh? good to know.. Jan 31 21:55:32 havent visited their git for a long time Jan 31 21:55:40 *shrug* EvenBus had better API anyway. Jan 31 21:55:45 *EventBus Jan 31 21:56:41 Deprecated in favour of Rx.. hm. Jan 31 21:57:00 I think Busses are still useful in the world of rx. Jan 31 21:57:06 Still not sure how Rx really compares :P Jan 31 21:57:11 yeah.. Jan 31 21:57:37 I cant see how it helps me when I want to send some stuff from my syncadapter to all listening fragments for example Jan 31 21:57:42 thats where a bus is super useful Jan 31 21:58:11 well. I could do a static Observable. but thats ugly imo Jan 31 22:00:14 oh theres actually a blog post about that.. http://nerds.weddingpartyapp.com/tech/2014/12/24/implementing-an-event-bus-with-rxjava-rxbus/ Jan 31 22:02:34 Yeah we use that. Jan 31 22:02:39 It's fugly. :) Jan 31 22:04:29 thats basically write-your-own-bus . Jan 31 22:06:54 Here's the recent /r/androiddev sub-thread about this: https://www.reddit.com/r/androiddev/comments/43f6hh/whats_changed_in_android_dev_in_the_last_two_years/czi6751 Jan 31 22:07:31 hm. now that I read the blog post its not that bad.. Jan 31 22:07:50 Rx clearly gives you some advantages here. Jan 31 22:09:21 Yeah, overuse of busses can get a bit problematic. Jan 31 22:09:36 But Rx can still be very verbose at times. Jan 31 22:09:50 Also I'm a bit annoyed of the square cargo cult :P Jan 31 22:11:15 there arent alternatives to a lot of their stuff. Jan 31 22:11:24 and they do their job really really good imo Jan 31 22:14:15 well, sometimes, one can also just use multiple, separate event busses ;) Jan 31 22:14:21 then you basically got channels again Jan 31 22:15:19 That's what people essentially do with Rx Jan 31 22:15:31 and its the only think where busses dont shine Jan 31 22:20:47 Android chat app with GCM -> with Django or without ? Jan 31 22:20:54 what is the best way Jan 31 22:21:57 What does django have to do with it? O.o Jan 31 22:23:31 mysql integration? Jan 31 22:23:38 to save messages, something like that Jan 31 22:23:54 Well use the framework that suits you. Jan 31 22:24:18 what do you recommend? Jan 31 22:36:56 gah, when i put my app in fullscreen mode, the nav drawer has a gap underneath it where the system navigation bar was - how would i fix that ? Jan 31 22:38:09 Fix the paddings and clipToPadding attributes? :) Jan 31 23:04:52 roarde: you tell me genius Jan 31 23:06:19 anyone used Fabric or Twitter4J? Which is recommended Jan 31 23:48:43 argh, these android app tutorials are frustrating Jan 31 23:49:19 I learned windows programming in a very low-level way, I learned how to make a pixel buffer, and an algorithm to change the color of every pixel in a 2D loop, so you can show stuff on the screen Jan 31 23:49:39 But android programming, blegh, it's high level java and it makes me start off with the crap like buttons and text boxes Jan 31 23:49:57 Learned winprog in C Jan 31 23:52:39 Windows programming in C was so much fun. (Said nobody who's ever programmed for any other environment. :D) Jan 31 23:53:04 I shudder when I think back to those days. Jan 31 23:54:32 MDaxo, why you learning Android? Jan 31 23:54:34 MDaxo: Did you go from Win32/C to [something] to Android? Or straight to Android? Jan 31 23:54:47 TacticalJoke: this is a program that I'm working on for windows, it's entirely in C with no graphics libraries https://www.youtube.com/watch?v=fg-KHssO_ZU Jan 31 23:55:20 The google play store would be a good place for that, but it's a huge jump moving from win32/C programming to android/java Jan 31 23:55:46 That reminds me of Lemmings. Jan 31 23:55:51 Thats pretty cool MDaxo Jan 31 23:56:13 Here's the thing, that program is actually pretty simple to make because it's low level Jan 31 23:56:28 there's no XML crap to worry about, just a pixel buffer, functions to manipulate pixels, and that's that Jan 31 23:56:49 android app dev is more picky, and most tutorials start you off with high-level sutff like buttons and text forms, instead of taking you straight into the low-level part Jan 31 23:57:16 What low level part are you looking for Jan 31 23:57:17 ? Jan 31 23:57:33 JW Jan 31 23:57:35 for example the sand program in the youtube video, there's very little high-level stuff, it's almost all math and algorithms Jan 31 23:57:39 drose379 hard to explain what i mean Jan 31 23:57:48 but graphical programming on android and java is just less conducive Jan 31 23:58:22 if i want to make a windows program that draws a circle, i can do that in less than 5 minutes from a win32 template Jan 31 23:58:53 X^2 - Y^2 <= R^2 there you go Jan 31 23:59:13 MDaxo: How long would it take to make a Windows Twitter client? Jan 31 23:59:14 but with android app dev there's a lot of crap to get through before you can even think about drawing one pixel Jan 31 23:59:27 I think the mere decision regarding what GUI framework to use could take hours. Jan 31 23:59:56 I'm talking about if you already made the decision, in this case I decided i want to make a program that draws 1 pixel on the screen Feb 01 00:00:06 Imagine making a Twitter client in C/Win32. That'd take foreer. Feb 01 00:00:13 forever* Feb 01 00:00:25 trivial for someone experienced in win32, but lots of crap to wade through on android Feb 01 00:00:40 especially someone who's accustomed to procedural programming Feb 01 00:01:59 I probably sound like an old man here, but the good old days were when everyone used a PC, and smartphones were secondary Feb 01 00:04:47 This might be the kind of thing you're looking for: http://developer.android.com/guide/topics/graphics/2d-graphics.html Feb 01 00:05:33 I think mobile devices are taking over because they do almost all of what most people need (media consumption) without constraining the user to a desk. It seems that desktops and laptops are becoming power-user (or gaming) devices now. Feb 01 00:06:10 But at the cost that programming was simpler with older technology IMO Feb 01 00:06:21 I find it unfortunate as well, but I can definitely see benefits to smartphones. I fall asleep reading Reddit, for example. Couldn't do that on my desktop or laptop (not so easily, anyway). Feb 01 00:06:31 pfn: I have build it successfully, but what I'm trying to do is make minor modifications to it Feb 01 00:06:50 And of course the whole outside-the-house thing. :D Feb 01 00:06:52 for example, the altair8800 was really easy to program in Feb 01 00:06:59 I can change the project (android activity) and compile it to see different behavior Feb 01 00:07:09 just put in the memory location, bits, and that's it, you're programming in pure binary, pure machine code, no hassle Feb 01 00:07:15 but the library module refuses to change Feb 01 00:07:21 now you have to jump through so many hoops to program in even assembly Feb 01 00:07:47 the changes persist on the filesystem, but there seems to be some cached jar file that doesn't get cleaned out when I make changes to the library Feb 01 00:08:11 I think it is getting that from a github dependency instead of the local filesystem Feb 01 00:08:15 TacticalJoke: do you see what i mean here Feb 01 00:08:22 as technology advances, it gets harder to write a simple program Feb 01 00:08:55 I just need some help fixing the gradle file to point to the local file system Feb 01 00:09:02 a program with only 0's and 1's, or machine code, is very simple, but really hard to get into Feb 01 00:09:16 or maybe what I need is for the library module to be "linked" or something Feb 01 00:09:20 but I don't know how to do that Feb 01 00:09:35 Yeah, but simple programs have little utility. And you can get a Raspberry Pi and write simple stuff. Feb 01 00:10:29 it's a double curse, because simple programs are more likely to succeed on a smartphone than on PC Feb 01 00:10:36 MDaxo: I felt similarly when I started out in android programming Feb 01 00:10:46 people will pay 99 cents for an app where you press a big red button, and it makes a fart noise Feb 01 00:10:52 no one would even look at that for a desktop Feb 01 00:10:56 what I came to realize is that everything is so tentative because a call can come in at any moment Feb 01 00:11:35 your program is not a first class citizen, in a sense Feb 01 00:12:51 TacticalJoke: Otto hasn't changed in 3 years, the depreciation means nothing really. Feb 01 00:14:10 I see. Feb 01 00:14:35 windows phones aren't popular enough Feb 01 00:14:50 MDaxo: It sounds like you'd love the Raspberry Pi. You can even connect basic hardware components (e.g., simple LEDs) and write drivers and such. Feb 01 00:15:02 I guess you could even write the entire OS. Feb 01 00:15:37 I think it comes with a simple GNU/Linux distribution. Feb 01 00:20:24 I second that.. Rpi is great Feb 01 00:20:29 Though Android won't hold you back. If you want to draw simple pixels, you can. If you want to write the most brain-damaging algorithms ever, you can do that too. Feb 01 00:20:59 hahaha "brain-damaging algorithms" Feb 01 00:23:44 also, for neo-pixels, or other IoT stuff, NodeMCU is pretty cool, as is espruino Feb 01 00:24:25 the wifi microcontroller esp8266 is so cheap, you could by 20 of them and just experiment away Feb 01 00:25:02 it has tight enough timings to drive neo-pixel addressable LEDs.. lots of fun Feb 01 00:33:12 Hey everyone... I'm having trouble with RadioGroups. How do I set a specific RadioButton's checked state programmaticaly, if I know it's ID? Feb 01 00:39:11 magic: Is it this? http://developer.android.com/reference/android/widget/RadioGroup.html#check(int) Feb 01 00:40:57 TacticalJoke: You'd think! But that seems to set the checked state everywhere but on the screen Feb 01 00:41:14 I've tried stepping through the Android code and it invalidates the Drawable state Feb 01 00:41:19 But it doesn't seem to change Feb 01 00:43:33 Just as a random guess, are you calling it from the UI thread? Feb 01 00:44:21 fizzie: Yep. Feb 01 00:44:27 Good to check, though :) Feb 01 00:54:54 hey Feb 01 00:56:07 created a brand new project with the side menu template Feb 01 00:56:07 https://gist.github.com/rohanbhangui/17bf0d66e80b4b3f0cde Feb 01 00:56:19 ^ i get an error at line 41 in the activity_main.xml Feb 01 00:56:33 android.view.InflateException: Binary XML file line #41: Binary XML file line #41: Error inflating class fragment Feb 01 00:56:39 ^ this is what it says Feb 01 00:56:41 any ideas? Feb 01 01:01:36 Hei Feb 01 01:02:06 if I use GCM in an android app, the clients needs to be logged in a google account to use the chat? Feb 01 01:03:38 pauloreloy I believe so yes Feb 01 01:03:54 :( Feb 01 01:18:09 I'm having trouble with the auto-generated guild.gradle in Android Studio. It's complaining about "Failed to find: com.android.support:appcompat-v7:23.+" Feb 01 01:18:34 Presumably this is something I can download with the SDK Manager, I'm just not sure which file in the SDK Manager this refers to Feb 01 01:22:22 TacticalJoke lol, did you see this BlitzMax cross-platform OO basic ? Feb 01 01:22:30 finally google has an out from java :D Feb 01 01:22:59 ##java Feb 01 01:26:22 Nah. What was that? Feb 01 01:28:42 i imagine this is how google engineers remove bugs from android http://digg.com/video/cockroach-horror-movie Feb 01 01:28:59 TacticalJoke https://news.ycombinator.com/item?id=11008202 Feb 01 01:39:20 i dont get why the android docs for full screen have both these flags Feb 01 01:39:22 | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN Feb 01 01:39:37 | View.SYSTEM_UI_FLAG_FULLSCREEN Feb 01 01:39:53 i can see using the LAYOUT version w/o the other one, but why both ? Feb 01 01:54:00 so theres something i guess i still dont understand about intents Feb 01 01:54:27 youre not limited to "existing" intents are you? you can just create a completely new one? Feb 01 01:57:12 rigel, yes Feb 01 01:59:20 danijoo: i just havent seen a lot of that in the code i've looked at then, either sending or receiving arbitrary intents Feb 01 01:59:39 rigel, every start of a new activity needs an intent Feb 01 02:02:13 im kind of confused then why more projects dont use intents for interprocess communication. i've been trying to figure out how to get e.g. my k-9mail app to automatically open an ssh port-forwarded pipe via connectbot, but connectbot doesnt listen and k-9 doesnt broadcast so id have to modify both of them Feb 01 02:02:46 and the vpnservice functionality doesnt seem to quite be the same thing. Feb 01 02:04:57 android phones dont have open ssh ports Feb 01 02:05:02 no idea what you are talking about Feb 01 02:06:23 connectbot will port-forward on non-privileged ports if you have an ssh connection open Feb 01 02:07:45 I dont get what this has to do with intents.. Feb 01 02:08:40 i want my mail client to fire an intet that ensures the ssh tunnel is open before grabbing new mail, because the mail server is not exposed to the interwebs Feb 01 02:09:31 i doubt your mail client can do that and I doubt connect bot app has this kind of intent-filters build in Feb 01 02:09:34 but neither connectbot nor my mail client are set up to do so, and im just trying to make sure im not barking up the wrong tree digging into intent and IPC Feb 01 02:09:52 yeah, i'd have to modify the code and repackage it myself Feb 01 02:10:17 is connectbot open source? Feb 01 02:10:22 again, i just want to make sure i'm sniffing around in the right direction Feb 01 02:10:23 yes Feb 01 02:12:14 im not sure if I undertodd 100% but I think another possible way it so make connecctbot send a broadcast telling every other app on the phone when an ssh tunnel is opened Feb 01 02:12:44 oh, that's interesting Feb 01 02:14:23 i think i want it to be in service to the email client though. ssh connections in connectbot are not particularly robust, so i was hoping to send setup and teardown signals Feb 01 02:14:40 is there a better plotting library than android-plot? Feb 01 02:14:41 so that it doesnt just time out and sit there Feb 01 02:15:18 you can send whatever you want via broadcasts Feb 01 02:17:44 Jonno_FTW there is mpandroid Feb 01 02:17:51 and hello android charts or something like that Feb 01 02:18:31 https://github.com/PhilJay/MPAndroidChart Feb 01 02:18:57 https://github.com/lecho/hellocharts-android Feb 01 02:47:20 rigel, you ask why, the reason is that it is a super niche feature that next to no one wants Feb 01 02:58:49 rigel, if you want to tunnel ssh traffic, you'd probably be better off using the vpn architecture and making the backend transport use ssh **** ENDING LOGGING AT Mon Feb 01 02:59:58 2016