**** BEGIN LOGGING AT Sat Feb 11 03:00:02 2017 Feb 11 03:01:12 this isnt #personality-trait discussion its android-dev please stay on topic Feb 11 03:11:48 (psssst g00s?) Feb 11 04:00:26 oh noes, g00s has been disenfranchised :-( Feb 11 04:44:11 "I had a user like that too! Until I realized I had also accidentally been logging all of my crashes while developing on my own devices..." hehe Feb 11 04:49:22 hrm, oracle going after android / java again in court Feb 11 04:52:47 Anyone else having issues with github atm? Feb 11 04:53:06 Getting 404s Feb 11 05:17:21 with retrofit2 logging, is it possible to only log the RESPONSE body? not both the request and response Feb 11 05:19:04 CedricBeust i was just reading your blog post on TDD :D Feb 11 05:19:24 g00s: Wow that's old Feb 11 05:19:41 it was about something dhh said Feb 11 05:19:48 Yeah I remember Feb 11 05:19:54 i guess i'll read that one next Feb 11 05:20:48 CedricBeust have you written anything about agile / scrum .. .i see something *really* old from like 2006 on theserverside Feb 11 05:21:07 scrum, lean, xp, kanban Feb 11 05:21:28 A few things yes, a while ago. This one is probably the most popular, more than 10 years old though... http://beust.com/weblog/2006/06/07/agile-people-still-dont-get-it/ Feb 11 05:22:01 yeah thats the one Feb 11 05:24:02 any ideaz? Feb 11 05:24:24 if i log my request my large file size eats up log space and causes loss of memory Feb 11 05:25:23 heh... "showing the implementation of a Stack will soon have everyone leave the room with the thought "Cute, but useless. Now let’s go back to work". Feb 11 05:26:09 CedricBeust one of the things mentioned about scrum, is that its just a project management thing, without any programming practices like XP has - have you seen any good modern books that outline current state of the art programming practices ? Feb 11 05:27:01 seems like the software engineering lit has slowed down over the last 10 years, with the exception of a bazillion scrum books Feb 11 05:27:22 scrum is as unproven as everything that preceded it Feb 11 05:27:35 =) Feb 11 05:28:06 I always view Agile as just the simplest case in a trivial sdlc completion... Feb 11 05:28:23 less than 2 weeks project Feb 11 05:29:00 as in, no PM reqd... just start coding :) Feb 11 05:29:03 i was looking at 'Clean CodeR' with an R, but Uncle bob is pretty militant about TDD, although i agree with him on some things Feb 11 05:29:27 doesn't seem like he likes scrum either :D but maybe because he likes xp or something dunno Feb 11 05:29:50 He's too extreme and unreasonable. Also not really in touch with the industry Feb 11 05:30:18 where the hell did all the reasonable people go :( Feb 11 05:30:49 CedricBeust are you going to write any more books ? Feb 11 05:31:34 Been asked a few times, I've declined so far Feb 11 05:32:15 i guess its a lot of work, for maybe not much reward Feb 11 05:34:06 However I came up with a new coding challenge recently, haven't posted one in a while but I think this one is interesting. Need to write it up. Feb 11 05:34:29 I need to find an easy way to draw graphs first Feb 11 05:38:26 CedricBeust graphs, like plotting function, or graphs like edges / nodes ? Feb 11 05:39:08 yFiles does the latter Feb 11 05:39:22 https://www.yworks.com/products/yfiles-for-java-2.x Feb 11 05:39:54 i guess the gui is called yEd, but they have a java library Feb 11 05:40:00 graph/tree, like GraphViz. Ideally so I can draw one of these in a few minutes Feb 11 05:40:26 CedricBeust: did you publish a book? Feb 11 05:40:34 A couple Feb 11 05:41:53 ah good old graphviz Feb 11 05:42:02 oh, your nickname is googleable Feb 11 06:13:46 graphviz, is PowerPoint finally dead? Feb 11 06:14:00 ir Excel? Feb 11 06:14:50 or too simple as tools perhaps for publishing ing Feb 11 06:32:59 CedricBeust there is also Gephi Feb 11 06:33:29 and keylines too. haven't used them Feb 11 06:40:42 hey guys hope everyone is well. Feb 11 06:41:10 i am looking at interfacing firebase cloud messaging with amazon SNS. to send out push notifications. my question is how would one get the android apps that is with firebase to register itself with sns Feb 11 06:41:33 also I am a bit confused as to the pricing with firebase cloud messaging Feb 11 06:41:52 not sure if anyone can help me understand its pricing as the pricing plans have alot of features which I do not need. Feb 11 07:05:45 eagles0513875|2: is there an API? Feb 11 07:07:28 api for which end snapfractalpop Feb 11 07:07:37 http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html Feb 11 07:07:48 looks like you would register your app with gcm? Feb 11 07:07:58 gcm == firebase cloud messaging now Feb 11 07:08:22 im debating at this stage is amazon sns cheaper then going directly with firebase cloud messaging Feb 11 07:08:41 whats confusing me is the pricing for firebase cloud messaging (renamed GCM) the devices im doing this for are all android Feb 11 07:09:03 from what I am seeing pricing is for a whole slew of services which i dont even need. Feb 11 07:09:14 what do you need? Feb 11 07:09:20 maybe sqs is better? Feb 11 07:09:56 i just need to be able to have some people at the office send push notifications to mobiles. Feb 11 07:10:00 company mobiles Feb 11 07:10:45 i want to compare prices if firebase cloud messaging is a better price then ill not use amazon SNS Feb 11 07:12:47 isnt GCM/FCM free Feb 11 07:12:51 :o Feb 11 07:13:30 I'm not sure about prices Feb 11 07:13:32 Ashiren: thats what im not sure of Feb 11 07:13:37 they link to here on the web page Feb 11 07:14:42 snapfractalpop: and Ashiren https://firebase.google.com/pricing/ Feb 11 07:14:45 thats where it takes you Feb 11 07:14:55 fyi firebase cloud messaging is the rebranded GCM Feb 11 07:17:54 eagles0513875|2: if you're usage will remain under the limits of the free tier, it seems it will be free Feb 11 07:18:03 so.. it really depends on what your usage will be Feb 11 07:18:28 if it's just a few people at the office.. could be under the limits Feb 11 07:18:30 what is the cloud messaging limits on the free tier Feb 11 07:18:39 if it's a few people, but lots of usage.. might go over.. etc. Feb 11 07:19:00 we are a taxi company and each car is associated with a mobile its more to provide information updates to drivers Feb 11 07:19:18 not all 96 mobiles are used at once at the moment Feb 11 07:19:21 come summer then they will be Feb 11 07:19:35 eagles0513875|2: do you have a prototype that you can use to guage bandwidth allocation needs? Feb 11 07:19:40 at this point no Feb 11 07:19:57 im still in the r&d soon to start prototyping phase Feb 11 07:20:11 eagles0513875|2: do some rough math and add some margin for error Feb 11 07:20:30 96 * message/day * sizeofmessage, etc. Feb 11 07:20:58 are the limitations listed somewhere for the free tier? Feb 11 07:21:36 the link you just sent has the numbers Feb 11 07:21:50 what exactly there should i be looking at though Feb 11 07:21:53 "spark" Feb 11 07:22:01 the left most column Feb 11 07:22:07 yes yes i am seeing spark but there is no mention of where cloud messaging fits in in it all though Feb 11 07:22:27 100 simultaneous connections should be *just* sufficient for your maximum load Feb 11 07:22:37 the way i was reading that Feb 11 07:22:39 not sure about hte other numbers.. that depends on your app design, etc. Feb 11 07:22:47 though 100 simultaneous connections is for the DB Feb 11 07:25:58 guess i am at a bit of a loss Feb 11 07:26:16 how does the push notification system work it stores the messages in a database and then pushes them out to the mobile device? Feb 11 07:27:11 eagles0513875|2: I believe it "syncs" them somehow.. though I'm not entirely familiar with it Feb 11 07:27:21 I think the idea is that you don't have to care *how* it works Feb 11 07:27:39 but if you do want to really know, you could probably just roll your own Feb 11 07:27:43 my only concern is costs. Feb 11 07:27:54 one thing im always asked for by my superiors granted its a valid question Feb 11 07:28:05 i guess ill go for the free tier Feb 11 07:28:18 eagles0513875|2: my advice is, make an estimate on each of the parameters mentioned in the free tier Feb 11 07:28:22 see if you can get by with just that Feb 11 07:28:33 if so, go for it! Feb 11 07:28:55 im thinking i can hence the question of how the push notifications work Feb 11 07:29:26 maybe someone with experience with it can chime in.. Feb 11 07:29:35 I don't want to lead you astray Feb 11 07:29:41 (since I've not used it) Feb 11 07:30:10 afk for a efw Feb 11 07:30:13 few* Feb 11 07:30:31 snapfractalpop: you have been very helpful Feb 11 07:30:42 once this idea is complete it too will be very helpful as well Feb 11 07:30:58 now I have to figure out how push notifications work through FCM Feb 11 07:31:05 damn console isnt very clear Feb 11 07:33:35 snapfractalpop: what i find very interesting is you need your own server as well to be able to send out the push notifications Feb 11 08:22:50 lolwut, golang doesn't support sub-packages O.o Feb 11 10:39:18 hey all Feb 11 10:39:28 snapfractalpop: hey Feb 11 10:42:16 is it possible that on a fragment lifecycle setUserVisibleHint is called b4 the onAttach? Feb 11 10:42:54 any experts on with experience with the FCM (firebase cloud messaging) (GCM) please Feb 11 10:43:58 i am setting a map with markers on it, and while converting the drawables for the marker, i need getContext. i am callin the setmap method from the setUserVisibleHint, so was kinda suprised that getContext sometimes (rarely, when trigger switchin between activities) Feb 11 10:44:11 eagles0513875|2 whats the issue/question? Feb 11 10:44:57 raoul11: this is my first foray into the FCM world and android dev completely. im using android studio so I had it setup the necessary stuff in my project Feb 11 10:45:12 im now looking at https://firebase.google.com/docs/cloud-messaging/android/client and im trying to understand where what they are saying goes Feb 11 10:45:33 regarding the tokens is that meant to be in its own java file? Feb 11 10:46:03 u need two files Feb 11 10:46:17 ok are you referring to a manifest and one other one? Feb 11 10:46:30 MyFirebaseMessagingService extends FirebaseMessagingService and MyFirebaseInstanceIDService extends FirebaseInstanceIdService Feb 11 10:46:39 two classes i mean Feb 11 10:46:41 ok Feb 11 10:47:01 the one FirebaseInstanceIdService is where u refresh the token Feb 11 10:47:29 raoul11: ok another question Feb 11 10:47:39 the other implements the onMessageReceived and sendNotification methods Feb 11 10:48:11 the latter is actually where the listener on the service and the actual intent to push a notification happens Feb 11 10:48:23 ok raoul11 my question is not related to that just yet Feb 11 10:48:44 https://firebase.google.com/docs/cloud-messaging/server there is a mention of the FCM server and app server which im guessing I would setup to speak to the FCM server correct? Feb 11 10:48:56 or can I chose one or the other? or are both needed? Feb 11 10:50:21 u can chose one i guess if you dont user a custom notification server Feb 11 10:50:36 if you push notifications via firebase panel without setting a server Feb 11 10:50:49 or you can push them via your own server logic Feb 11 10:51:06 i was going ot create a java ui that would allow certain people to write and send the push notifications out as needed Feb 11 10:51:15 that would be a separate java application Feb 11 10:51:29 also i saw mentions of google play store and all that im guessing play store is not essential depending on the application Feb 11 10:52:16 sorry for probably my stupid questions here raoul11 Feb 11 10:52:18 for the server part id say no Feb 11 10:52:43 ok so if i setup my own server i can setup my own logic and avoid any costs to send out the push notifications? Feb 11 10:54:15 yep, just another way to send push notifications: firebase console or server Feb 11 10:54:18 or both (: Feb 11 10:54:57 ohh perfect free price tag superiors would love that :) Feb 11 11:10:51 does anyone have knowledge about greenorm? Feb 11 11:15:58 anyone use firebase cloud messaging in here? have some questions Feb 11 11:17:03 Yes Feb 11 11:17:33 Receive on Android, send via Webserver (PHP) Feb 11 11:17:54 misterli: im looking at the client side app side of it Feb 11 11:18:01 i just need it to recieve the push notifications Feb 11 11:18:14 misterli: im following https://firebase.google.com/docs/cloud-messaging/android/client Feb 11 11:18:29 What doesnt work? Exceptions? Code? Feb 11 11:18:33 and it mentions .getToken() but for some reason that doesnt exist Feb 11 11:18:39 at least android studio is not picking it up for me Feb 11 11:18:49 im not sure if its cuz i have android 2.3 set as my min SDK Feb 11 11:19:09 just an overview this is going on 95 company phones and only purpose of this is to recieve push notifications Feb 11 11:19:21 Pastebin the code of your receiver Feb 11 11:19:56 i have nothing yet im just starting out with this Feb 11 11:20:03 you have extended your service with FirebaseMessagingService and grab the messages using onMessageReceived()? Feb 11 11:20:18 im not at that stage im still at the very beginning Feb 11 11:20:26 im trying ot get the current registration token Feb 11 11:20:41 you have extended a Service with FirebaseInstanceIdService and use the onTokenRefresh? Feb 11 11:20:56 Since its async you need to do that Feb 11 11:21:00 ok do that first Feb 11 11:21:10 so i need to be workign with the refreshed token Feb 11 11:21:19 http://pastebin.com/hDDw4Vf6 Feb 11 11:22:05 to start the "registering process" you need to call FirebaseInstanceId.getInstance().getToken(); somewhere. (in a service, your activity, or whatever) Feb 11 11:22:49 the result/return value MAY or MAY NOTE the token since you need to grab it in the service extended by FirebaseInstanceIdService Feb 11 11:25:08 ok thats what was confusing me the documentation prior to the example they gave is different just says .getToken() and that could return null Feb 11 11:25:23 so basically what you are saying the initial registration token isnt of much importance for us Feb 11 11:26:05 getToken is async. It MAY return in time/stored token or not Feb 11 11:26:28 This is why you call getToken() and if it is null you have to wait until its received in your bla extends FirebaseInstanceIdService {} Feb 11 11:26:56 ok. Feb 11 11:26:57 if you have received it onec, store it in your shared preferences since you dont need to grab the token again and again and again . Feb 11 11:26:58 #got iit Feb 11 11:27:16 and be carefull, there's a little but on the sender side which is a little bit confusing Feb 11 11:27:20 isnt it going to be different from one device to the next or not necessarily Feb 11 11:27:41 yes, its different on every device but usually keeps the same on one device Feb 11 11:28:06 ahh ok i see what you saying Feb 11 11:28:18 When you need to retrieve the current token, call FirebaseInstanceID.getToken(). This method returns null if the token has not yet been generated. Feb 11 11:28:23 that is the bit in the documentation i hit the snag on Feb 11 11:28:39 the way its worded its like if you create a method you should get a token or null value Feb 11 11:28:47 Usually it starts the registrationprocess. Then in the extends (code above) you receive it Feb 11 11:29:31 misterli: is registration something i need to include in my code? Feb 11 11:29:38 Sure. Feb 11 11:29:39 or is it more something that occurs behind the scenes Feb 11 11:30:13 chck the second sample. You can also create a receiver. http://stackoverflow.com/questions/37517860/how-to-handle-firebaseinstanceid-getinstance-gettoken-null Feb 11 11:31:09 And check my code above. Its the only code which is needed for the registration/receiving of the token after you have called FirebaseInstanceId.getInstance().getToken() somewhere. Usually you want to validate if you have stored the token in your sharedpreferences and if not, then you call FirebaseInstanceId.getInstance().getToken() when the app starts Feb 11 11:33:00 hey misterli what about background app one that runs in the background as my users do not even need to interact or touch the app just get the notifications and read them Feb 11 11:33:35 this is what i have done. MyService extends Service { onCreate(...) { FirebaseInstanceId.getInstance().getToken() } Feb 11 11:35:09 ok. Feb 11 11:35:57 thanks for your patience and help misterli :) will try your suggestions and get back to you as I progress Feb 11 11:36:21 np. Its not that hard, just paste your code and ill fix it for you Feb 11 11:37:31 im eager to learn to be honest so would rather try to debug the issues myself if I can :) Feb 11 11:39:50 misterli: im getting this Error:(7, 49) error: cannot find symbol class firebaseMessagingService as im trying to incrementally build Feb 11 11:40:07 I have two classes one for the push notification service that will have the token registration Feb 11 11:40:14 and the other for the messaging service Feb 11 11:40:34 the messaging service is complaining about an import Feb 11 11:40:37 what exactly am i missing Feb 11 11:42:03 One second Feb 11 11:42:19 disregard i sorted it it was a captialization on the name of what I wanted to inherit from Feb 11 11:42:37 public class PushMessagingService extends FirebaseMessagingService {} Feb 11 11:43:14 ya :) figured out that was the issue forgot to capitalize the F earlier thats my fault there. Feb 11 11:43:17 dont forget to register the extended FirebaseInstanceIdService in your manifest Feb 11 11:43:33 i had android studio do that for me Feb 11 11:43:39 just rebuilt my app and it built just fine. Feb 11 11:43:47 Feb 11 11:44:22 same for the PushMessagingService but change the intent filter to Feb 11 11:47:00 already have those but will double check Feb 11 11:47:20 this is the only one that android studio added for me Feb 11 11:47:36 guess i havent gotten to the documentation about the other one. Feb 11 11:47:52 depends on the service. the PushInstantService where you receive the registration requires com.google.firebase.INSTANCE_ID_EVENT Feb 11 11:48:08 the service where you receive the messages/notifications requires com.google.firebase.MESSAGING_EVENT Feb 11 11:49:05 ok. im guessing that is in the documentation somewhere correct? Feb 11 11:49:11 yup Feb 11 11:49:29 since the most google documentations are not always up2date, you should also check the git/stackoverflow Feb 11 11:49:31 ok ill deal with that when i get to it :) Feb 11 11:49:37 ya i will as needed Feb 11 11:49:46 shame they dont keep their documentation updated Feb 11 11:50:31 the company was aquired end of 2014 which means its not completly updated by google Feb 11 11:50:33 same as fabric Feb 11 11:51:36 i thought the name firebase sounded familiar to be honest Feb 11 11:51:48 i was going to make things harder in the sense of use amazon SNS as a middle man Feb 11 11:52:02 but if you are telling me i can host my own http/xmpp server for this then i will take the free price tag Feb 11 11:52:03 any day Feb 11 11:52:18 hosting your own xmpp service is easy as hell Feb 11 11:52:36 i have a server which i have owncloud on being used as a DAV client Feb 11 11:52:41 was going to put the xmpp server there. Feb 11 11:52:44 its on a linode vps Feb 11 11:52:54 plus given the amount of linodes i have i have around 24TB of bandwidth Feb 11 11:52:59 check smack for android which is a pretty good easy and very updated xmpp client Feb 11 11:53:09 what does smack do? Feb 11 11:53:19 its a xmpp client which connects to your own xmpp server Feb 11 11:53:31 xmpp client library Feb 11 11:54:16 the default app that i android studio creates for you is that a background app? Feb 11 11:54:34 aslong as you create an activity which uses setContentView its not a background app Feb 11 11:54:48 i havent created an activity yet Feb 11 11:54:56 If you want a "background app" then you have to create a service which get started when the BOOT_COMPLETED is triggered Feb 11 11:55:25 thats what i want but I dont think im at that stage yet? Feb 11 11:55:29 am i? Feb 11 11:55:52 usually if you start using librarys or frameworks like firebase you should have the knowledge to handle services, activities and fragments Feb 11 11:56:10 im as green as they come when it comes to google dev :( Feb 11 11:56:39 and receivers which are required for the task you want to do. receive -> boot completed.. -> receiver start service -> service starts with return_sticky so it reconnects as soon as it get killed Feb 11 11:57:22 misterli: i might extend what this app does besides for push notifications. like i wooudl love to restrict access to the accounts settings. Feb 11 11:57:22 anyway, if you have an app which registers as receiver for notifications then it liste for the notification all the time, even when its in background Feb 11 11:57:49 i have a card dav app that needs to be there and setup to access the account it has on my dav server yet drivers are removing the accounts hence the contacts on the phone Feb 11 11:57:57 is what im thinking even possible to do Feb 11 11:58:03 you cant restrict access to the "users account settings" beside if you use KIOSK mode Feb 11 11:58:17 i even tried an app lock to lock certain things out and they some how manage to remove the app lock Feb 11 11:58:37 what pisses me off these phones majority of them are android 5.1.1 Feb 11 11:58:45 samsung remove the ability to create user accounts Feb 11 11:58:51 not really Feb 11 11:59:01 Im working for/with Samsung... -) Feb 11 11:59:01 if there was that feature i think that would solve my issue Feb 11 11:59:13 misterli: why then was user account creation removed Feb 11 11:59:21 like a pc you have admin user and normal users Feb 11 11:59:39 it would be great to have that as I can restrict access to what our drivers have access to Feb 11 11:59:49 right now all they are causing me by removing the DAV account is headaches Feb 11 12:00:18 system/build.prop -> fw.max_users=.... fw.show_multiuserui=1 Feb 11 12:00:56 ?? Feb 11 12:01:06 anyway, samsung uses knox which allows you to use multiple restricted accounts Feb 11 12:01:11 really nowO_o Feb 11 12:01:18 the phones in questions are j1 mini's Feb 11 12:01:28 if you have root you can modify the file stored in /system called build.prop Feb 11 12:01:40 i dont Feb 11 12:01:43 just modify those 2 entries where fw.max_users define how many users may be created. the second one defines that multi user is enable Feb 11 12:01:53 are there any custom roms for the j1 mini? Feb 11 12:02:03 if those are in "business-line" we/samsung offers knox to modify the settings with the first start Feb 11 12:02:11 to be honest the amount of junk that comes on the stock rom is a waste of space Feb 11 12:02:15 these are consumer grade Feb 11 12:02:19 https://www.samsungknox.com Feb 11 12:02:40 samsung is one of the manufactures which dont have much junk on the device by default Feb 11 12:02:55 misterli: http://www.gsmarena.com/samsung_galaxy_j1_nxt-7768.php thats the phone Feb 11 12:03:01 but all providers can "buy" custom junk on the device since "knox" allow the provider to install custom crap by default Feb 11 12:03:29 easy to root Feb 11 12:03:37 dont get me wrong misterli the j1 mini is a great phone Feb 11 12:03:40 http://androidrootmania.net/how-to-root-samsung-galaxy-j1-mini-tutorial/ Feb 11 12:04:03 anyway, multiple users is always a risk and you SHOULD NOT use it Feb 11 12:04:47 as i said, my company works with samsung since we produce custom tablets with a modified android by default and get the hardware from samsung Feb 11 12:05:05 i just need 2 users Feb 11 12:05:12 one admin which is restricted to my access Feb 11 12:05:16 for which case? Feb 11 12:05:18 and the 2nd is a normal user Feb 11 12:05:28 with limited access to certain settings and functionality Feb 11 12:05:41 use Knox. Feb 11 12:05:42 to switch on wifi hot spot make calls no need to touch any accounts Feb 11 12:05:50 how do i know if its compatible with my device. Feb 11 12:06:10 and try to think different. Do you want to RESTRICT access to certain features or do you want to ALLOW access to some apps? Feb 11 12:06:15 (for a user) Feb 11 12:07:01 samsung is one of the manufactures which dont have much junk on the device by default Feb 11 12:07:05 * cough cough * Feb 11 12:07:09 Check HTC, Acer, Feb 11 12:07:19 if you only want to allow access to different apps like browser, facebook or whatever, then you can use the KIOSK mode (like on a airport) Feb 11 12:07:28 i need more then just apps Feb 11 12:07:29 wrong channel anyway lol Feb 11 12:07:39 adq, there is only one app by samsung which cant be removed by default on a samsung device which is Knox? Feb 11 12:07:41 as we offer free wifi through the mobiles hotspot functionality and very few apps Feb 11 12:07:55 and they need to be able to make calls Feb 11 12:08:11 we probably don't share the same definition of junk, and it's because you find worse that it makes your statement valid Feb 11 12:08:15 it's not* Feb 11 12:08:20 If you have junk software on your Samsung Device then its USUALLY not samsungs fault, since the providers purchase access to knox to preinstall crap w Feb 11 12:09:05 misterli: this is a samsung samsung device new out of the box though from samsung granted it was bought from a local shop Feb 11 12:09:08 box unopened Feb 11 12:09:17 unbranded? Feb 11 12:09:24 what do you mean Feb 11 12:10:08 misterli: mind if i pm you m8 Feb 11 12:10:23 several providers have branded devices which means that it has several software preinstalled and may have a different buildversion Feb 11 12:12:23 adq, dont get me wrong. I dont like Samsung since all my Samsung devices get broken displays, broken finger print sensors, etc after a few weeks (Galaxy A8, S7 Edge, S6 Edge, and so on..) but at the end the software and even the hardware cant be compared to manufacturer like htc, acer, huawaii, xiaomi, .. Feb 11 12:12:40 i don't mind samsung at all Feb 11 12:14:17 you can compare anything, as long as you have criteria and not too much distance between those collections of criteria Feb 11 12:14:33 but really, i don't see the relation with app development, which i'm more interested with it here :) Feb 11 12:14:51 i thought i was on #android-root when i switched the channel tbh Feb 11 12:14:56 :-P Feb 11 12:15:05 didtn know that android root exists Feb 11 12:15:16 it's the place where ppl are redirected to talk about rom Feb 11 12:15:21 among other things Feb 11 12:15:35 (see topic) Feb 11 12:15:56 Yup, thanks Feb 11 12:16:05 no worry Feb 11 12:21:00 hey guys can anyone solve my problem on stackoverflow http://stackoverflow.com/questions/42174966/send-and-receive-a-message-to-localhost-from-the-android-emulator Feb 11 12:21:01 does anyone have a very good tutorial about rxjava2 (rxandroid)? All i find is video tutorials on Youtube which aint be that "good" to learn Feb 11 12:22:47 Bantu01, you want to send a emulated sms in genymotion? Feb 11 12:23:02 ah sorry, you wrote "android meulator" Feb 11 12:24:23 misterli yeah Feb 11 12:25:42 ctrl, shift, p Feb 11 12:33:45 zharf are yoi line Feb 11 12:34:02 partly Feb 11 12:36:52 Would you mind to help me at e strange issue? Feb 11 12:37:47 Bantu01, i still dont get it. You mean localhost as a software running on a linux bot? Feb 11 12:37:54 which emulates a SMS gateway? Feb 11 12:39:10 usually (like whatsapp or any other verification tools based on sms) they send a request to the server using REST or whatever and receive a "PIN". Then uses the own number to send to its own device and verify if the SMS is received and matches the pin received from the server. If the "handshake" succeed then it sends a succeed to the server Feb 11 12:40:20 misterli i have a test website running laravel at localhost http://localhost:8000 Feb 11 12:41:22 you should use artisan to use the "public" address. php artisan serve --address 192.168... Feb 11 12:41:53 oh sorry. Its --host=192... --port=... Feb 11 12:44:50 misterli okay but i don't have a remote server i just wanted to clarify that its on localhost Feb 11 12:44:59 can I ask a question Feb 11 12:46:04 Bantu01, "remote server" means that laravels instance is accessable from your device in the same network Feb 11 12:46:42 if you host laravel on localhost only your own device can access it. If you service it on your network adapter all devices in the same network or with access to the network may access it. php artisan serve --host 192.168.1.100 for example. Feb 11 12:49:02 okay thanks for that, my set up is the first option where only my own device can access it. Feb 11 12:49:51 aslong as your device is in the same network. Anyway, still dont get it on the server side. Do you want laravel to listen for incoming SMS? Feb 11 12:50:16 The feature i want to add is not a "handshake" type verification system, i want users to be able to verify that a user exists in the system. Feb 11 12:50:16 does that make sense Feb 11 12:50:39 sure, but not by SMS :P Feb 11 12:51:01 Use a REST api which is designed for that. (Retrofit does a good job on android side) Feb 11 12:52:35 yeah im already using Retrofit to send and get json responses from the device for other services. Feb 11 12:53:12 This is the way to go. Noone use SMS anymore if you dont want to verify the phone number Feb 11 12:55:22 misterli: i second that mate its push notifications today with the smartphones we have Feb 11 12:57:45 can I ask a question Feb 11 13:01:30 okay let me explain the whole scenario of how i want it to play out maybe we will be on the same page. I would have officials using the application to collect information from the public and they would go door to door asking questions like a survey, now each official has an identification card with an identification number, so to prevent robbers or other malicious people from claiming to collect information. Feb 11 13:02:32 I want the public to verify that Identification number by sending an sms or shortcode to the server where they would get a message Feb 11 13:03:27 back telling them if the person is authorized to get the information or not Feb 11 13:39:57 i have an error in my application about appcontext does that mean im missing an import somewhere Feb 11 13:42:19 anyone alive in here? Feb 11 16:28:34 hey all Feb 11 19:13:50 My Nexus 5 is running through battery charge extremely quick, Google Play Services is accounting for 31% usage. Any ideas? Feb 11 19:14:47 Just started within the last few days, very odd. Feb 11 19:14:59 question, what do Activities correspond to, exactly? Feb 11 19:15:21 if I, say, have a main screen and a settings screen, is that multiple activites or just setContentView calls? Feb 11 19:17:18 Hello, Feb 11 19:18:12 oops hit enter, I'm looking for some advice on how to aquire android qemu-emultor and required files to run in qemu without having to download android-studio Feb 11 19:20:21 so from the branches in android manifest do I need the emu-x.x-release branch and one of the anrdoid-x.x.x branches ? Feb 11 19:21:40 or will the android-x.x.x branch provide a suitable version of qemu Feb 11 20:11:01 hey all Feb 11 20:11:06 misterli: heyo Feb 11 20:15:07 Hi -- does anybody have a tip on how to find out how to import classes, what their path is? Feb 11 20:15:34 E.g. I need a LocationResult, but it's not found at android.location.LocationResult or android.LocationResult Feb 11 20:15:48 and the docs seldom say. (I'm building with ant, not android studio.) Feb 11 20:16:01 Search d.android.com Feb 11 20:16:34 Or use a proper ide, it will find the package for you Feb 11 20:18:29 d.android.com isn't finding any API with that name. Feb 11 20:18:42 But https://developers.google.com/android/reference/com/google/android/gms/location/LocationResult makes it look like it's an available API. Feb 11 20:19:43 https://cl.ly/0K091l3w3v1w Feb 11 20:19:45 Finds it fine for me Feb 11 20:20:30 Seems to be in google play services, so add that as a dependency Feb 11 20:21:42 I'm not sure how, but I don't want to be dependent on google play anyway, so I guess that tells me I shouldn't use it. Feb 11 20:22:00 I was looking for a simple way to read the GPS location, and the simplest example I found used a LocationResult. Feb 11 20:36:05 What are other options to reach GPU on android apart from sdl? Can i do it directly by opengles? Or using something else? (Apart from java and NDK) Feb 11 21:18:04 Hello fellow devs, how do you guys generate privacy policy for the app? Furthermore, does user location counts as user sensitive information? Feb 11 21:19:58 in the play console it says what permission is the issue for privacy policy Feb 11 21:22:05 Location definitely seems like sensitive information. Feb 11 21:25:04 whatitis, hmmm, I can't find it anywhere. It just states I have to include Privacy Policy (when trying to publish), unless I check the box stating 'Not submit Privacy Policy...'. Feb 11 21:25:34 in store listings under where you'd input a privacy policy it'll tell you why Feb 11 21:26:05 did you get an email, or just for first upload? Feb 11 21:27:26 whatitis, first upload (trying to to beta release) Feb 11 21:27:41 whatitis, I've heard about resent e-mails Feb 11 21:28:17 well if new upload, take some time to create a privacy policy based on your app Feb 11 21:28:51 hi guys Feb 11 21:29:04 akk, indeed. I've found few articles which mention location together with contacts/phonebook/etc. Feb 11 21:29:13 i get this error when i build gradle what should i do Feb 11 21:29:15 http://picpaste.com/error266-Ug6CrGxu.png Feb 11 21:29:43 whatitis, that's what I'm tring to do. Do you have any tips on generating Privacy Policy? Feb 11 21:30:14 sure, keep it related to what your app does Feb 11 21:30:32 Yotta92: I found another way that uses LocationListener, haven't tried it yet (LocationManager.getLastKnownLocation works but I don't know if I should rely on just that). Feb 11 21:30:40 http://picpaste.com/error266-Ug6CrGxu.png Feb 11 21:31:21 linuxlove: Compile using the latest version of android Feb 11 21:32:29 SimonVT, what do you mean exactly ? Feb 11 21:32:51 Update compileSdkVersion Feb 11 21:46:48 SimonVT, compileSdkVersion 24 Feb 11 21:46:54 right? Feb 11 21:51:01 25 is the latest Feb 11 21:51:17 i did 24 Feb 11 21:51:27 it is in process now Feb 11 21:58:27 SimonVT, i got same error with 24 Feb 11 21:58:39 and i see 25 doesnt exist in my sdk Feb 11 21:58:47 what should i do ? Feb 11 21:59:31 Probably updated the wrong build.gradle Feb 11 22:00:17 i did in app/gradle Feb 11 22:00:45 but error wasnt same Feb 11 22:00:48 Keep updating until you got it Feb 11 22:01:19 i think it was about values Feb 11 22:01:46 let me send scrrenshot again Feb 11 22:01:59 So your one and only build.gradle with a compileSdkVersion is in app/? Then I don't know what could be wrong Feb 11 22:02:09 Good luck, hope you figure it out :) Feb 11 22:02:34 no i have 2 buld.gradle Feb 11 22:03:18 one is same as name of the project and another is in app Feb 11 22:04:37 Eveeening! Feb 11 22:07:26 Evening :) Feb 11 22:14:15 Sometimes the Android kb swiping isn't available (like when I'm in ssh it seems to disable it). What changes this? I'm guessing it's three type of text input area "told" to Android by the app? Feb 11 22:15:36 And it's there some way i can force it on (so i can do the swiping in those areas) Feb 11 22:15:45 jaggz, yeah, probably autocomplete / autocorrect flags on EditText aren't enabled. Feb 11 22:16:03 Or it's marked as a password field which should imply the former. Feb 11 22:17:08 Through ssh.. so each letter is sent, and would need backspace sent to erase. I wonder if auto-correct supports that Feb 11 22:18:06 Sounds like it's up to the app though, with no hope of me overriding it Feb 11 22:18:42 Oh, connect bot is open source Feb 11 22:19:06 Thanks mavrik Feb 11 22:19:39 It's not really an edittext is why Feb 11 22:20:05 It's a terminal. For ConnectBot to assume you were doing input for an entire line all the time would be wrong and break every TUI you tried to use on the remote end. Feb 11 22:20:48 Yup.. should definitely be default off Feb 11 22:22:07 If it's even possible for gesture-typing to be sent as individual letters Feb 11 22:32:56 How can I "replace" the current activity? Feb 11 22:33:11 I want it so that back goes to the same place as before the intent Feb 11 22:36:36 You mean like, go to a new screen and let the user hit the back button to go back? Feb 11 22:43:45 Dagmar: http://pasteboard.co/xdibVI4JM.png Feb 11 22:44:14 rubenwardy, finish() then start new intent. Feb 11 22:44:31 Probably the easiest. Feb 11 22:47:13 hmmm Feb 11 22:47:21 Are intellij annotations incompatible with retrolambda? Feb 11 22:47:32 Mavirk's pretty much right Feb 11 22:47:44 Get fancy with your fragment wrangling Feb 11 22:48:44 People, you don't "start an intent". You use an intent to start an activity. Feb 11 22:49:10 You can actually replace a fragment with another one. Feb 11 23:09:34 i get this error when i synch gradle Feb 11 23:09:41 http://picpaste.com/error97-FpDYxOgk.png Feb 11 23:09:58 what should i do ? Feb 11 23:10:43 anyone hare ? Feb 11 23:21:36 you should start pasting the errors as text somewhere instead of linking almost unreadable images Feb 11 23:22:18 Melatonina, you want to see whole error? Feb 11 23:22:56 no, you want people to the see the whole errors so that they can possibly help you Feb 11 23:23:55 it will increase your chances to get help Feb 11 23:24:01 how to break up a line for "if" control sentence? Feb 11 23:24:38 epinky: your question is obscure but almost certainly for the #java channel Feb 11 23:25:04 epinky: or for a generic programming channel Feb 11 23:25:35 Melatonina: wouldn't be easier to answer it here and give some light? Feb 11 23:25:37 i get this error when i sync gradle Feb 11 23:25:39 http://pastebin.com/4Ci3EUcZ Feb 11 23:26:27 epinky: it would be more polite from you posting in the appropriate channel. Anyway, as I said, your question's meaning is not very clear. I would rephrase it Feb 11 23:26:47 Melatonina: never minds! Feb 11 23:27:11 epinky: just rephrase it! What do you mean? Feb 11 23:27:23 Melatonina: I won't Feb 11 23:27:31 epinky: good luck Feb 11 23:28:08 i get this error when i sync gradle Feb 11 23:28:10 http://pastebin.com/4Ci3EUcZ Feb 11 23:29:05 linuxlove: don't repeat. Some resource file is missing, probably. Is it a project of yours? Feb 11 23:30:17 Melatonina, my friend gave me to create some changes in views Feb 11 23:30:52 you mean project is not complete? Feb 11 23:31:40 did you let Android Studio upgrade your files when opening the project? Feb 11 23:32:41 Melatonina, yes Feb 11 23:32:52 It's probably some SDK or build tool version mismatch. Feb 11 23:33:03 how can i fix ? Feb 11 23:33:25 i have original folder Feb 11 23:33:43 Try taking the files your friends gave and and when you open again the project do not let Android Studio upgrade the build files. Feb 11 23:33:57 It requires a knowledge that you don't have. Feb 11 23:34:06 (and I don't have either) Feb 11 23:34:30 you mean open project again ? Feb 11 23:34:41 open the ORIGINAL project again Feb 11 23:34:47 okay Feb 11 23:34:49 do not upgrade anything Feb 11 23:34:55 and hope for the best Feb 11 23:35:38 otherwise you have to google for details about that errors and how to adjust the source code to compile with a new API and/or and new tool set Feb 11 23:39:51 can i fix in this step or the best way is new original from first Feb 11 23:46:27 i just change compilesdk version from 17 to 24 Feb 11 23:46:44 Melatonina, is it problem ? Feb 11 23:47:05 it could be the problem, yes Feb 11 23:47:24 but i got error when it was 17 Feb 11 23:47:32 is it fixed now? Feb 11 23:47:42 and one guy said change to latest version Feb 11 23:47:59 If it's fixed and your friend can use SDK 24, then everything is good Feb 11 23:48:10 that's the best option Feb 11 23:48:17 no Feb 11 23:48:35 no = it didn't fix the problem? Feb 11 23:48:36 i got error that you saw when i changed to 24 Feb 11 23:48:41 Ah, ok Feb 11 23:49:03 i should change to 17 right? Feb 11 23:49:16 I'm not an expert in the differences between SDK versions because I started to program Android only recently Feb 11 23:49:34 and try to download 17 for sdk Feb 11 23:49:52 Im attempting to build android-7.1.1 but I keep runnign into the following error SyntaxError: Missing parentheses in call to 'print' I'm running oracle jdk 8 I'm not firmiliar with java syntax but it seems pretty clear that parentheses are required ? Feb 11 23:49:53 maybe that could be a solution, yes Feb 11 23:50:12 especially if your friend can't use SDK 24 Feb 11 23:50:28 otherwise HE should update his project and send you the updated version Feb 11 23:50:39 linuxlove: I can't help you more, sorry Feb 11 23:51:40 whoisxy: method calls require parentheses in Java, yes Feb 11 23:52:04 Melatonina: well this is from the android repo Feb 11 23:52:14 File "build/tools/findleaves.py", line 95 Feb 11 23:52:43 .py is Python, not Java Feb 11 23:52:45 branch refs/tags/android-7.1.1_r22 Feb 11 23:52:56 okay oops hahah I should have read that Feb 11 23:53:08 anyway, print was a special instruction in Python 2.0 Feb 11 23:53:15 Python 2 Feb 11 23:53:16 yes I'm running 3 Feb 11 23:53:29 in Python 3 it became a function like any other Feb 11 23:53:40 and requires parentheses Feb 11 23:53:40 Ill swap back to 2.7 for this but really they should specify in the file Feb 11 23:54:08 Melatonina: yes I'm aware I actually use python just too tierd and assumed this was all java Feb 11 23:54:16 ok Feb 11 23:55:44 but thet can set whcih version is used with #!/usr/bin/env python2 inseat of just #!/usr/bin/env python Feb 11 23:59:01 whoisxy: complain with them. Also, this channel is mostly about development of Android applications, not about Android platform development or building Android for customization or rooting. Feb 11 23:59:19 hey guys i get this error when i sync gradle i just chenged compile sdk version and target sdk version to 24 Feb 11 23:59:25 http://pastebin.com/4Ci3EUcZ Feb 11 23:59:44 Melatonina: is there a channel for building android Feb 12 00:00:21 whoisxy: you may have a better luck on #android-root Feb 12 00:01:05 whoisxy: topic like of this channel says "Root/custom ROMs, head to #android-root" Feb 12 00:01:18 hey guys i get this error when i sync gradle i just chenged compile sdk version and target sdk version to 24 Feb 12 00:01:21 http://pastebin.com/4Ci3EUcZ Feb 12 00:01:32 Melatonina: it has nothing to do with any of the things you mentioned Feb 12 00:01:50 linuxlove: stop repeating the same question every 30 seconds Feb 12 00:01:51 this is building andoid aosp Feb 12 00:02:04 Melatonina, okay Feb 12 00:02:19 whoisxy: I'd try in that channel too, anyway Feb 12 00:02:25 Okay Feb 12 00:02:33 j #android-root Feb 12 00:02:36 oops Feb 12 00:05:51 linuxlove: and try googling for those error messages. (I googled for YOUR question.) You probably won't find the the answer to your exact question but you could get some hint. Feb 12 00:06:18 did you find in stack ? Feb 12 00:06:39 "You probably won't find the the answer to your exact question but you could get some hint." Feb 12 00:09:22 I wrote this yesteday: "This year I learn to not trust two kinds of people on IRC: 1) people who contact you privately without asking permission first 2) people who use random character sequences as their nicknames" Feb 12 00:10:08 Melatonina, you are in right way Feb 12 00:10:28 s/trust/talk to/ Feb 12 00:39:59 Melatonina, i saw in original build gradle that was 23 Feb 12 00:40:13 i changed all to 23 Feb 12 00:40:31 but still i get error in my values.xml Feb 12 00:40:52 65 errors in this file Feb 12 00:42:06 Build->Clean Project Feb 12 00:43:08 hi all Feb 12 00:43:24 is there any android developer Feb 12 00:43:56 no, we all just pretend because it's cool Feb 12 00:53:02 Dagmar, i did build->clean project Feb 12 00:53:09 same error yet Feb 12 00:54:27 Error:(1572) Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AlertDialogPro.Material.Light'. Feb 12 00:55:48 what is problem ? Feb 12 00:56:05 Error:(1819, 21) No resource found that matches the given name: attr 'adobe_fontFamily'. Feb 12 01:03:33 anyone here? Feb 12 01:06:21 Error:(1587) Error retrieving parent for item: No resource found that matches the given name 'Widget.AlertDialogPro.Material.Light.Button'. Feb 12 01:06:51 Perhaps you should reconsider including whatever this AlertDialogPro thing is Feb 12 01:07:00 ...and _no_ I will not advise you in privmsg. Feb 12 01:10:28 Dagmar, do i rebuild project ? Feb 12 01:12:10 I'd just revert the number you changed back to 24. Feb 12 01:12:36 ...until you figure out whatever is broken in that AlertDialogPro thing Feb 12 01:13:27 hi, can ask a questiion Feb 12 01:19:23 Dagmar, i am going to import original folder in android studio Feb 12 01:38:29 edi_: Welcome in this channel! Yes, you can ask a question. Feb 12 01:51:32 melatonina, thank you, I am doing a school project, meantime trying to learn. I want to do a chat like whatsup but adjusting textinput when long text is writen is a bit difficult. text hides behind keyboard Feb 12 01:55:52 Text is shy Feb 12 01:56:47 xd lol Feb 12 01:57:25 I am using ConstraintLayout Feb 12 02:00:25 I have no experience with ConstraintLayout Feb 12 02:00:53 ah ok thank you for your time Feb 12 02:00:57 try googling "android soft keyboard hides text in EditText" Feb 12 02:01:20 soft keyboard can be configured to behave in different ways Feb 12 02:02:26 actualyy the problem is the EditText Feb 12 02:02:49 when keyboard appears its ok Feb 12 02:03:10 then you didn't describe your problem very well, I guess Feb 12 02:03:27 try rephrasing it or posting a snapshot Feb 12 02:03:31 or both Feb 12 02:08:32 My probem is that wrap_content moves down the bottom border of EdiText so the text is hidden from keyboard. The EditText goes also up to a certai Feb 12 02:08:46 n position Feb 12 02:09:16 I wanted it to behave like in whats up Feb 12 02:11:38 I never used whatsapp. I don't want to discourage you but you are not expressing your problem in a clear way (I find your description contradictory). Maybe it's just me and someone else will understand and help you. Feb 12 02:13:01 Consider that communicating your problems is part of being an employable software developer. You make exploit this occasion to develop this skill too. Feb 12 02:13:14 I hope I didn't offend you Feb 12 02:13:55 no problem, Feb 12 02:14:13 You may try using pictures Feb 12 02:14:24 ok Feb 12 02:27:48 here is the link http://imgur.com/a/rJvx3 Feb 12 02:48:19 is it possible to obtain support-v4 and the like outside of the SDK manager? Feb 12 02:48:35 perhaps there's a web-accessible mirror somewhere? Feb 12 02:49:37 mniip outside the sdk manager, or outside of google's hosting of things? Feb 12 02:49:53 outside of the sdk manager Feb 12 02:50:16 there is a command line version Feb 12 02:50:52 and that is? Feb 12 02:51:57 android-sdk-macosx/tools/bin/sdkmanager Feb 12 02:53:28 hmm Feb 12 02:53:43 it claims, extras;android;m2repository | 43.0.0 | Android Support Repository | extras/android/m2repository/ Feb 12 02:54:36 perhaps I'm misunderstanding how to use it Feb 12 02:55:14 under "com/android/support/support-v4/25.1.1/" there's some files but nothing you could link Feb 12 02:58:06 edi_: did you google the keywords that I suggested? **** ENDING LOGGING AT Sun Feb 12 03:00:01 2017